Gutenberg - Version 12.7.0

Version Description

Download this release

Release Info

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

Code changes from version 12.6.1 to 12.7.0

build/a11y/index.js CHANGED
@@ -91,7 +91,7 @@ function addIntroText() {
91
 
92
  return introText;
93
  }
94
- //# sourceMappingURL=add-intro-text.js.map
95
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/add-container.js
96
  /**
97
  * Build the live regions markup.
@@ -119,7 +119,7 @@ function addContainer() {
119
 
120
  return container;
121
  }
122
- //# sourceMappingURL=add-container.js.map
123
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/clear.js
124
  /**
125
  * Clears the a11y-speak-region elements and hides the explanatory text.
@@ -137,7 +137,7 @@ function clear() {
137
  introText.setAttribute('hidden', 'hidden');
138
  }
139
  }
140
- //# sourceMappingURL=clear.js.map
141
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/filter-message.js
142
  let previousMessage = '';
143
  /**
@@ -169,7 +169,7 @@ function filterMessage(message) {
169
  previousMessage = message;
170
  return message;
171
  }
172
- //# sourceMappingURL=filter-message.js.map
173
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/index.js
174
  /**
175
  * WordPress dependencies
@@ -254,7 +254,7 @@ function speak(message, ariaLive) {
254
  introText.removeAttribute('hidden');
255
  }
256
  }
257
- //# sourceMappingURL=index.js.map
258
  (window.wp = window.wp || {}).a11y = __webpack_exports__;
259
  /******/ })()
260
  ;
91
 
92
  return introText;
93
  }
94
+
95
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/add-container.js
96
  /**
97
  * Build the live regions markup.
119
 
120
  return container;
121
  }
122
+
123
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/clear.js
124
  /**
125
  * Clears the a11y-speak-region elements and hides the explanatory text.
137
  introText.setAttribute('hidden', 'hidden');
138
  }
139
  }
140
+
141
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/filter-message.js
142
  let previousMessage = '';
143
  /**
169
  previousMessage = message;
170
  return message;
171
  }
172
+
173
  ;// CONCATENATED MODULE: ./packages/a11y/build-module/index.js
174
  /**
175
  * WordPress dependencies
254
  introText.removeAttribute('hidden');
255
  }
256
  }
257
+
258
  (window.wp = window.wp || {}).a11y = __webpack_exports__;
259
  /******/ })()
260
  ;
build/a11y/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'de03ad259a34d13f49547789da5da4af');
1
+ <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '61426e9062fe75b223591a637c8c04bb');
build/a11y/index.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{setup:function(){return d},speak:function(){return p}});var n=window.wp.domReady,i=t.n(n),o=window.wp.i18n;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"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 a="";function d(){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=(0,o.__)("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&&r("assertive"),null===n&&r("polite")}function p(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," "),a===t&&(t+=" "),a=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");i&&"assertive"===e?i.textContent=t:o&&(o.textContent=t),n&&n.removeAttribute("hidden")}i()(d),(window.wp=window.wp||{}).a11y=e}();
 
1
+ !function(){"use strict";var t={n:function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},d:function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{setup:function(){return d},speak:function(){return p}});var n=window.wp.domReady,i=t.n(n),o=window.wp.i18n;function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"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 a="";function d(){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=(0,o.__)("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&&r("assertive"),null===n&&r("polite")}function p(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," "),a===t&&(t+=" "),a=t,t}(t);const n=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");i&&"assertive"===e?i.textContent=t:o&&(o.textContent=t),n&&n.removeAttribute("hidden")}i()(d),(window.wp=window.wp||{}).a11y=e}();
2
+ //# sourceMappingURL=index.min.js.map
build/a11y/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/a11y/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,GAChC,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,WAAa,OAAOF,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLR,EAAwB,SAASI,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/F,EAAwB,SAAST,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,2ECLvD,IAAI,EAA+BC,OAAW,GAAY,S,SCAtD,EAA+BA,OAAW,GAAQ,KCOvC,SAASC,IAAoC,IAAtBC,EAAsB,uDAAX,SAChD,MAAMC,EAAYC,SAASC,cAAe,OAC1CF,EAAUG,GAAM,cAAcJ,IAC9BC,EAAUI,UAAY,oBAEtBJ,EAAUK,aACT,QACA,iNAYDL,EAAUK,aAAc,YAAaN,GACrCC,EAAUK,aAAc,gBAAiB,kBACzCL,EAAUK,aAAc,cAAe,QAEvC,MAAM,KAAEC,GAASL,SAKjB,OAJKK,GACJA,EAAKC,YAAaP,GAGZA,ECnCR,IAAIQ,EAAkB,GCgBf,SAASC,IACf,MAAMC,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE9B,OAAdD,GCVS,WACd,MAAMA,EAAYT,SAASC,cAAe,KAE1CQ,EAAUP,GAAK,wBACfO,EAAUN,UAAY,wBACtBM,EAAUI,aAAcC,EAAAA,EAAAA,IAAI,iBAE5BL,EAAUL,aACT,QACA,iNAYDK,EAAUL,aAAc,SAAU,UAElC,MAAM,KAAEC,GAASL,SACZK,GACJA,EAAKC,YAAaG,GDdlBM,GAG2B,OAAvBJ,GACJd,EAAc,aAGU,OAApBe,GACJf,EAAc,UA2BT,SAASmB,EAAOC,EAASnB,IExDjB,WACd,MAAMoB,EAAUlB,SAASmB,uBAAwB,qBAC3CV,EAAYT,SAASU,eAAgB,yBAE3C,IAAM,IAAIU,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IACpCF,EAASE,GAAIP,YAAc,GAIvBJ,GACJA,EAAUL,aAAc,SAAU,UFmDnCkB,GAEAL,EDzDc,SAAwBA,GAoBtC,OAZAA,EAAUA,EAAQM,QAAS,YAAa,KAMnChB,IAAoBU,IACxBA,GAAW,KAGZV,EAAkBU,EAEXA,ECqCGO,CAAeP,GAEzB,MAAMR,EAAYT,SAASU,eAAgB,yBACrCC,EAAqBX,SAASU,eACnC,wBAEKE,EAAkBZ,SAASU,eAAgB,qBAE5CC,GAAmC,cAAbb,EAC1Ba,EAAmBE,YAAcI,EACtBL,IACXA,EAAgBC,YAAcI,GAO1BR,GACJA,EAAUgB,gBAAiB,UA9C7BC,GAAAA,CAAUlB,I","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"domReady\"]","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/add-container.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/filter-message.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/index.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/add-intro-text.js","webpack://wp/./packages/a11y/build-module/@wordpress/a11y/src/clear.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"domReady\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n","let previousMessage = '';\n\n/**\n * Filter the message to be announced to the screenreader.\n *\n * @param {string} message The message to be announced.\n *\n * @return {string} The filtered message.\n */\nexport default function filterMessage( message ) {\n\t/*\n\t * Strip HTML tags (if any) from the message string. Ideally, messages should\n\t * be simple strings, carefully crafted for specific use with A11ySpeak.\n\t * When re-using already existing strings this will ensure simple HTML to be\n\t * stripped out and replaced with a space. Browsers will collapse multiple\n\t * spaces natively.\n\t */\n\tmessage = message.replace( /<[^<>]+>/g, ' ' );\n\n\t/*\n\t * Safari + VoiceOver don't announce repeated, identical strings. We use\n\t * a `no-break space` to force them to think identical strings are different.\n\t */\n\tif ( previousMessage === message ) {\n\t\tmessage += '\\u00A0';\n\t}\n\n\tpreviousMessage = message;\n\n\treturn message;\n}\n","/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addIntroText from './add-intro-text';\nimport addContainer from './add-container';\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Create the live regions.\n */\nexport function setup() {\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( introText === null ) {\n\t\taddIntroText();\n\t}\n\n\tif ( containerAssertive === null ) {\n\t\taddContainer( 'assertive' );\n\t}\n\n\tif ( containerPolite === null ) {\n\t\taddContainer( 'polite' );\n\t}\n}\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText() {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = __( 'Notifications' );\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n","/**\n * Clears the a11y-speak-region elements and hides the explanatory text.\n */\nexport default function clear() {\n\tconst regions = document.getElementsByClassName( 'a11y-speak-region' );\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\n\tfor ( let i = 0; i < regions.length; i++ ) {\n\t\tregions[ i ].textContent = '';\n\t}\n\n\t// Make sure the explanatory text is hidden from assistive technologies.\n\tif ( introText ) {\n\t\tintroText.setAttribute( 'hidden', 'hidden' );\n\t}\n}\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild","previousMessage","setup","introText","getElementById","containerAssertive","containerPolite","textContent","__","addIntroText","speak","message","regions","getElementsByClassName","i","length","clear","replace","filterMessage","removeAttribute","domReady"],"sourceRoot":""}
build/admin-manifest/index.js CHANGED
@@ -1,5 +1,33 @@
1
  /******/ (function() { // webpackBootstrap
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  var __webpack_exports__ = {};
 
 
 
 
 
 
 
 
 
 
 
3
  function addManifest(manifest) {
4
  const link = document.createElement('link');
5
  link.rel = 'manifest';
@@ -168,10 +196,12 @@ window.addEventListener('load', () => {
168
  });
169
  }))]).then(() => {
170
  addManifest(manifest);
171
- window.navigator.serviceWorker.register(adminUrl + '?service-worker');
 
 
172
  });
173
  });
174
- //# sourceMappingURL=index.js.map
175
  (window.wp = window.wp || {}).adminManifest = __webpack_exports__;
176
  /******/ })()
177
  ;
1
  /******/ (function() { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/make namespace object */
8
+ /******/ !function() {
9
+ /******/ // define __esModule on exports
10
+ /******/ __webpack_require__.r = function(exports) {
11
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
12
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
13
+ /******/ }
14
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
15
+ /******/ };
16
+ /******/ }();
17
+ /******/
18
+ /************************************************************************/
19
  var __webpack_exports__ = {};
20
+ // ESM COMPAT FLAG
21
+ __webpack_require__.r(__webpack_exports__);
22
+
23
+ ;// CONCATENATED MODULE: external ["wp","url"]
24
+ var external_wp_url_namespaceObject = window["wp"]["url"];
25
+ ;// CONCATENATED MODULE: ./packages/admin-manifest/build-module/index.js
26
+ /**
27
+ * WordPress dependencies
28
+ */
29
+
30
+
31
  function addManifest(manifest) {
32
  const link = document.createElement('link');
33
  link.rel = 'manifest';
196
  });
197
  }))]).then(() => {
198
  addManifest(manifest);
199
+ window.navigator.serviceWorker.register((0,external_wp_url_namespaceObject.addQueryArgs)(adminUrl, {
200
+ 'service-worker': true
201
+ }));
202
  });
203
  });
204
+
205
  (window.wp = window.wp || {}).adminManifest = __webpack_exports__;
206
  /******/ })()
207
  ;
build/admin-manifest/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c2d3d89e2c9b67f3013f81cf60cdecb5');
1
+ <?php return array('dependencies' => array('wp-polyfill', 'wp-url'), 'version' => '69cf68c5058c105a891f84697db3f0e0');
build/admin-manifest/index.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(){function e(e){let{svgElement:t,size:n,color:o,backgroundColor:i,circle:r}=e;return new Promise((e=>{const c=document.createElement("canvas"),l=c.getContext("2d"),a=n/8,d=6*a;t.setAttribute("width",d),t.setAttribute("height",d),t.querySelectorAll("path").forEach((e=>{e.setAttribute("fill",i)})),c.width=n,c.height=n,r||(l.fillStyle=i,l.fillRect(0,0,c.width,c.height)),l.fillStyle=o,l.beginPath(),l.arc(n/2,n/2,d/2-1,0,2*Math.PI),l.closePath(),l.fill();const s=new window.Blob([t.outerHTML],{type:"image/svg+xml"}),m=URL.createObjectURL(s),u=document.createElement("img");u.src=m,u.width=d,u.height=d,u.onload=()=>{l.drawImage(u,a,a),c.toBlob((t=>{URL.revokeObjectURL(m);const n=new window.FileReader;n.readAsDataURL(t),n.onloadend=()=>{e(n.result)}}))}}))}window.addEventListener("load",(()=>{if(!("serviceWorker"in window.navigator))return;const{logo:t,siteTitle:n,adminUrl:o}=window.wpAdminManifestL10n,i={name:n,display:"standalone",orientation:"portrait",start_url:o,scope:o,icons:[]},{color:r,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}(t);Promise.all([...[180,192,512].map((t=>e({svgElement:l,size:t,color:r,backgroundColor:c}).then((e=>{i.icons.push({src:e,sizes:t+"x"+t,type:"image/png",purpose:"maskable"}),180===t&&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,e)})))),...[180,192,512].map((t=>e({svgElement:l,size:t,color:r,backgroundColor:c,circle:!0}).then((e=>{i.icons.push({src:e,sizes:t+"x"+t,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)}(i),window.navigator.serviceWorker.register(o+"?service-worker")}))})),(window.wp=window.wp||{}).adminManifest={}}();
 
1
+ !function(){"use strict";var e={};(function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var t=window.wp.url;function o(e){let{svgElement:t,size:o,color:n,backgroundColor:i,circle:r}=e;return new Promise((e=>{const l=document.createElement("canvas"),a=l.getContext("2d"),c=o/8,d=6*c;t.setAttribute("width",d),t.setAttribute("height",d),t.querySelectorAll("path").forEach((e=>{e.setAttribute("fill",i)})),l.width=o,l.height=o,r||(a.fillStyle=i,a.fillRect(0,0,l.width,l.height)),a.fillStyle=n,a.beginPath(),a.arc(o/2,o/2,d/2-1,0,2*Math.PI),a.closePath(),a.fill();const s=new window.Blob([t.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((t=>{URL.revokeObjectURL(u);const o=new window.FileReader;o.readAsDataURL(t),o.onloadend=()=>{e(o.result)}}))}}))}window.addEventListener("load",(()=>{if(!("serviceWorker"in window.navigator))return;const{logo:e,siteTitle:n,adminUrl:i}=window.wpAdminManifestL10n,r={name:n,display:"standalone",orientation:"portrait",start_url:i,scope:i,icons:[]},{color:l,backgroundColor:a}=function(){const e=document.createElement("div");e.id="wpadminbar",document.body.appendChild(e);const{color:t,backgroundColor:o}=window.getComputedStyle(e);return document.body.removeChild(e),{color:t||"white",backgroundColor:o||"black"}}(),c=function(e){const t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;const{firstElementChild:o}=t.body;return o.setAttribute("viewBox","0 0 80 80"),o}(e);Promise.all([...[180,192,512].map((e=>o({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 o=document.createElement("link");o.rel="apple-touch-icon",o.href=t,o.sizes="180x180",document.head.insertBefore(o,document.head.firstElementChild)}(0,t)})))),...[180,192,512].map((e=>o({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((0,t.addQueryArgs)(i,{"service-worker":!0}))}))})),(window.wp=window.wp||{}).adminManifest=e}();
2
+ //# sourceMappingURL=index.min.js.map
build/admin-manifest/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/admin-manifest/index.min.js","mappings":"yBACA,I,MCAwB,SAASA,GACX,oBAAXC,QAA0BA,OAAOC,aAC1CC,OAAOC,eAAeJ,EAASC,OAAOC,YAAa,CAAEG,MAAO,WAE7DF,OAAOC,eAAeJ,EAAS,aAAc,CAAEK,OAAO,K,ICLvD,IAAI,EAA+BC,OAAW,GAAO,IC8BrD,SAASC,EAAT,GAA4E,IAAvD,WAAEC,EAAF,KAAcC,EAAd,MAAoBC,EAApB,gBAA2BC,EAA3B,OAA4CC,GAAW,EAC3E,OAAO,IAAIC,SAAWC,IACrB,MAAMC,EAASC,SAASC,cAAe,UACjCC,EAAUH,EAAOI,WAAY,MAG7BC,EAAUX,EAAO,EAEjBY,EAAqB,EAAVD,EAGjBZ,EAAWc,aAAc,QAASD,GAClCb,EAAWc,aAAc,SAAUD,GAGnCb,EAAWe,iBAAkB,QAASC,SAAWC,IAChDA,EAAKH,aAAc,OAAQX,MAI5BI,EAAOW,MAAQjB,EACfM,EAAOY,OAASlB,EAGTG,IACNM,EAAQU,UAAYjB,EACpBO,EAAQW,SAAU,EAAG,EAAGd,EAAOW,MAAOX,EAAOY,SAI9CT,EAAQU,UAAYlB,EACpBQ,EAAQY,YACRZ,EAAQa,IAAKtB,EAAO,EAAGA,EAAO,EAAGY,EAAW,EAAI,EAAG,EAAG,EAAIW,KAAKC,IAC/Df,EAAQgB,YACRhB,EAAQiB,OAGR,MAAMC,EAAU,IAAI9B,OAAO+B,KAAM,CAAE7B,EAAW8B,WAAa,CAC1DC,KAAM,kBAEDC,EAAMC,IAAIC,gBAAiBN,GAC3BO,EAAQ3B,SAASC,cAAe,OAEtC0B,EAAMC,IAAMJ,EACZG,EAAMjB,MAAQL,EACdsB,EAAMhB,OAASN,EACfsB,EAAME,OAAS,KAEd3B,EAAQ4B,UAAWH,EAAOvB,EAASA,GAEnCL,EAAOgC,QAAUC,IAEhBP,IAAIQ,gBAAiBT,GAGrB,MAAMU,EAAS,IAAI5C,OAAO6C,WAC1BD,EAAOE,cAAeJ,GACtBE,EAAOG,UAAY,KAClBvC,EAASoC,EAAOI,gBAoBrBhD,OAAOiD,iBAAkB,QAAQ,KAChC,KAAS,kBAAmBjD,OAAOkD,WAClC,OAGD,MAAM,KAAEC,EAAF,UAAQC,EAAR,SAAmBC,GAAarD,OAAOsD,oBACvCC,EAAW,CAChBC,KAAMJ,EACNK,QAAS,aACTC,YAAa,WACbC,UAAWN,EAGXO,MAAOP,EACPQ,MAAO,KAGF,MAAEzD,EAAF,gBAASC,GA9BhB,WACC,MAAMyD,EAAgBpD,SAASC,cAAe,OAC9CmD,EAAcC,GAAK,aACnBrD,SAASsD,KAAKC,YAAaH,GAC3B,MAAM,MAAE1D,EAAF,gBAASC,GAAoBL,OAAOkE,iBAAkBJ,GAG5D,OAFApD,SAASsD,KAAKG,YAAaL,GAEpB,CACN1D,MAAOA,GAAS,QAChBC,gBAAiBA,GAAmB,SAqBF+D,GAC7BlE,EAxGP,SAA2BmE,GAC1B,MAAMC,EAAM5D,SAAS6D,eAAeC,mBAAoB,IACxDF,EAAIN,KAAKS,UAAYJ,EACrB,MAAQK,kBAAmBxE,GAAeoE,EAAIN,KAE9C,OADA9D,EAAWc,aAAc,UAAW,aAC7Bd,EAmGYyE,CAAkBxB,GAErC5C,QAAQqE,IAAK,IAGT,CAAE,IAAK,IAAK,KAAMC,KAAO1E,GAC3BF,EAAY,CACXC,WAAAA,EACAC,KAAAA,EACAC,MAAAA,EACAC,gBAAAA,IACGyE,MAAQC,IACXxB,EAASM,MAAMmB,KAAM,CACpB1C,IAAKyC,EACLE,MAAO9E,EAAO,IAAMA,EACpB8B,KAAM,YACNiD,QAAS,aAII,MAAT/E,GApIT,SAA4BA,EAAM4E,GACjC,MAAMI,EAAWzE,SAASC,cAAe,QACzCwE,EAASC,IAAM,mBACfD,EAASE,KAAON,EAChBI,EAASF,MAAQ,UACjBvE,SAAS4E,KAAKC,aAAcJ,EAAUzE,SAAS4E,KAAKZ,mBAgIhDc,CAAmBrF,EAAM4E,WAMzB,CAAE,IAAK,IAAK,KAAMF,KAAO1E,GAC3BF,EAAY,CACXC,WAAAA,EACAC,KAAAA,EACAC,MAAAA,EACAC,gBAAAA,EACAC,QAAQ,IACLwE,MAAQC,IACXxB,EAASM,MAAMmB,KAAM,CACpB1C,IAAKyC,EACLE,MAAO9E,EAAO,IAAMA,EACpB8B,KAAM,YACNiD,QAAS,eAITJ,MAAM,MApKX,SAAsBvB,GACrB,MAAMkC,EAAO/E,SAASC,cAAe,QACrC8E,EAAKL,IAAM,WACXK,EAAKJ,KAAQ,kCAAkCK,mBAC9CC,KAAKC,UAAWrC,MAEjB7C,SAAS4E,KAAKrB,YAAawB,GA+J1BI,CAAatC,GACbvD,OAAOkD,UAAU4C,cAAcC,UAC9BC,EAAAA,EAAAA,cAAc3C,EAAU,CAAE,kBAAkB,Y","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/admin-manifest/build-module/@wordpress/admin-manifest/src/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport { addQueryArgs } from '@wordpress/url';\n\nfunction addManifest( manifest ) {\n\tconst link = document.createElement( 'link' );\n\tlink.rel = 'manifest';\n\tlink.href = `data:application/manifest+json,${ encodeURIComponent(\n\t\tJSON.stringify( manifest )\n\t) }`;\n\tdocument.head.appendChild( link );\n}\n\nfunction addAppleTouchIcon( size, base64data ) {\n\tconst iconLink = document.createElement( 'link' );\n\ticonLink.rel = 'apple-touch-icon';\n\ticonLink.href = base64data;\n\ticonLink.sizes = '180x180';\n\tdocument.head.insertBefore( iconLink, document.head.firstElementChild );\n}\n\nfunction createSvgElement( html ) {\n\tconst doc = document.implementation.createHTMLDocument( '' );\n\tdoc.body.innerHTML = html;\n\tconst { firstElementChild: svgElement } = doc.body;\n\tsvgElement.setAttribute( 'viewBox', '0 0 80 80' );\n\treturn svgElement;\n}\n\nfunction createIcon( { svgElement, size, color, backgroundColor, circle } ) {\n\treturn new Promise( ( resolve ) => {\n\t\tconst canvas = document.createElement( 'canvas' );\n\t\tconst context = canvas.getContext( '2d' );\n\n\t\t// Leave 1/8th padding around the logo.\n\t\tconst padding = size / 8;\n\t\t// Which leaves 3/4ths of space for the icon.\n\t\tconst logoSize = padding * 6;\n\n\t\t// Resize the SVG logo.\n\t\tsvgElement.setAttribute( 'width', logoSize );\n\t\tsvgElement.setAttribute( 'height', logoSize );\n\n\t\t// Color in the background.\n\t\tsvgElement.querySelectorAll( 'path' ).forEach( ( path ) => {\n\t\t\tpath.setAttribute( 'fill', backgroundColor );\n\t\t} );\n\n\t\t// Resize the canvas.\n\t\tcanvas.width = size;\n\t\tcanvas.height = size;\n\n\t\t// If we're not drawing a circle, set the background color.\n\t\tif ( ! circle ) {\n\t\t\tcontext.fillStyle = backgroundColor;\n\t\t\tcontext.fillRect( 0, 0, canvas.width, canvas.height );\n\t\t}\n\n\t\t// Fill in the letter (W) and circle around it.\n\t\tcontext.fillStyle = color;\n\t\tcontext.beginPath();\n\t\tcontext.arc( size / 2, size / 2, logoSize / 2 - 1, 0, 2 * Math.PI );\n\t\tcontext.closePath();\n\t\tcontext.fill();\n\n\t\t// Create a URL for the SVG to load in an image element.\n\t\tconst svgBlob = new window.Blob( [ svgElement.outerHTML ], {\n\t\t\ttype: 'image/svg+xml',\n\t\t} );\n\t\tconst url = URL.createObjectURL( svgBlob );\n\t\tconst image = document.createElement( 'img' );\n\n\t\timage.src = url;\n\t\timage.width = logoSize;\n\t\timage.height = logoSize;\n\t\timage.onload = () => {\n\t\t\t// Once the image is loaded, draw it onto the canvas.\n\t\t\tcontext.drawImage( image, padding, padding );\n\t\t\t// Export it to a blob.\n\t\t\tcanvas.toBlob( ( imageBlob ) => {\n\t\t\t\t// We no longer need the SVG blob url.\n\t\t\t\tURL.revokeObjectURL( url );\n\t\t\t\t// Unfortunately blob URLs don't seem to work, so we have to use\n\t\t\t\t// base64 encoded data URLs.\n\t\t\t\tconst reader = new window.FileReader();\n\t\t\t\treader.readAsDataURL( imageBlob );\n\t\t\t\treader.onloadend = () => {\n\t\t\t\t\tresolve( reader.result );\n\t\t\t\t};\n\t\t\t} );\n\t\t};\n\t} );\n}\n\nfunction getAdminBarColors() {\n\tconst adminBarDummy = document.createElement( 'div' );\n\tadminBarDummy.id = 'wpadminbar';\n\tdocument.body.appendChild( adminBarDummy );\n\tconst { color, backgroundColor } = window.getComputedStyle( adminBarDummy );\n\tdocument.body.removeChild( adminBarDummy );\n\t// Fall back to black and white if no admin/color stylesheet was loaded.\n\treturn {\n\t\tcolor: color || 'white',\n\t\tbackgroundColor: backgroundColor || 'black',\n\t};\n}\n\nwindow.addEventListener( 'load', () => {\n\tif ( ! ( 'serviceWorker' in window.navigator ) ) {\n\t\treturn;\n\t}\n\n\tconst { logo, siteTitle, adminUrl } = window.wpAdminManifestL10n;\n\tconst manifest = {\n\t\tname: siteTitle,\n\t\tdisplay: 'standalone',\n\t\torientation: 'portrait',\n\t\tstart_url: adminUrl,\n\t\t// Open front-end, login page, and any external URLs in a browser\n\t\t// modal.\n\t\tscope: adminUrl,\n\t\ticons: [],\n\t};\n\n\tconst { color, backgroundColor } = getAdminBarColors();\n\tconst svgElement = createSvgElement( logo );\n\n\tPromise.all( [\n\t\t// The maskable icon should have its background filled. This is used\n\t\t// for iOS. To do: check which sizes are really needed.\n\t\t...[ 180, 192, 512 ].map( ( size ) =>\n\t\t\tcreateIcon( {\n\t\t\t\tsvgElement,\n\t\t\t\tsize,\n\t\t\t\tcolor,\n\t\t\t\tbackgroundColor,\n\t\t\t} ).then( ( base64data ) => {\n\t\t\t\tmanifest.icons.push( {\n\t\t\t\t\tsrc: base64data,\n\t\t\t\t\tsizes: size + 'x' + size,\n\t\t\t\t\ttype: 'image/png',\n\t\t\t\t\tpurpose: 'maskable',\n\t\t\t\t} );\n\n\t\t\t\t// iOS doesn't seem to look at the manifest.\n\t\t\t\tif ( size === 180 ) {\n\t\t\t\t\taddAppleTouchIcon( size, base64data );\n\t\t\t\t}\n\t\t\t} )\n\t\t),\n\t\t// The \"normal\" icon should be round. This is used for Chrome\n\t\t// Desktop PWAs. To do: check which sizes are really needed.\n\t\t...[ 180, 192, 512 ].map( ( size ) =>\n\t\t\tcreateIcon( {\n\t\t\t\tsvgElement,\n\t\t\t\tsize,\n\t\t\t\tcolor,\n\t\t\t\tbackgroundColor,\n\t\t\t\tcircle: true,\n\t\t\t} ).then( ( base64data ) => {\n\t\t\t\tmanifest.icons.push( {\n\t\t\t\t\tsrc: base64data,\n\t\t\t\t\tsizes: size + 'x' + size,\n\t\t\t\t\ttype: 'image/png',\n\t\t\t\t\tpurpose: 'any',\n\t\t\t\t} );\n\t\t\t} )\n\t\t),\n\t] ).then( () => {\n\t\taddManifest( manifest );\n\t\twindow.navigator.serviceWorker.register(\n\t\t\taddQueryArgs( adminUrl, { 'service-worker': true } )\n\t\t);\n\t} );\n} );\n"],"names":["exports","Symbol","toStringTag","Object","defineProperty","value","window","createIcon","svgElement","size","color","backgroundColor","circle","Promise","resolve","canvas","document","createElement","context","getContext","padding","logoSize","setAttribute","querySelectorAll","forEach","path","width","height","fillStyle","fillRect","beginPath","arc","Math","PI","closePath","fill","svgBlob","Blob","outerHTML","type","url","URL","createObjectURL","image","src","onload","drawImage","toBlob","imageBlob","revokeObjectURL","reader","FileReader","readAsDataURL","onloadend","result","addEventListener","navigator","logo","siteTitle","adminUrl","wpAdminManifestL10n","manifest","name","display","orientation","start_url","scope","icons","adminBarDummy","id","body","appendChild","getComputedStyle","removeChild","getAdminBarColors","html","doc","implementation","createHTMLDocument","innerHTML","firstElementChild","createSvgElement","all","map","then","base64data","push","sizes","purpose","iconLink","rel","href","head","insertBefore","addAppleTouchIcon","link","encodeURIComponent","JSON","stringify","addManifest","serviceWorker","register","addQueryArgs"],"sourceRoot":""}
build/annotations/index.js CHANGED
@@ -73,7 +73,7 @@ var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
73
  * @type {string}
74
  */
75
  const STORE_NAME = 'core/annotations';
76
- //# sourceMappingURL=constants.js.map
77
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/format/annotation.js
78
  /**
79
  * WordPress dependencies
@@ -267,7 +267,7 @@ const annotation = {
267
  }
268
 
269
  };
270
- //# sourceMappingURL=annotation.js.map
271
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/format/index.js
272
  /**
273
  * WordPress dependencies
@@ -283,7 +283,7 @@ const {
283
  ...settings
284
  } = annotation;
285
  (0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings);
286
- //# sourceMappingURL=index.js.map
287
  ;// CONCATENATED MODULE: external ["wp","hooks"]
288
  var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
289
  ;// CONCATENATED MODULE: external ["wp","data"]
@@ -324,7 +324,7 @@ const addAnnotationClassName = OriginalComponent => {
324
  };
325
 
326
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName);
327
- //# sourceMappingURL=index.js.map
328
  ;// CONCATENATED MODULE: external "lodash"
329
  var external_lodash_namespaceObject = window["lodash"];
330
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/store/reducer.js
@@ -431,7 +431,7 @@ function annotations() {
431
  return state;
432
  }
433
  /* harmony default export */ var reducer = (annotations);
434
- //# sourceMappingURL=reducer.js.map
435
  ;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
436
 
437
 
@@ -794,7 +794,7 @@ function __experimentalGetAnnotations(state) {
794
  return annotations;
795
  });
796
  }
797
- //# sourceMappingURL=selectors.js.map
798
  ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
799
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
800
  // require the crypto API and do not support built-in fallback to lower quality random number
@@ -979,7 +979,7 @@ function __experimentalRemoveAnnotationsBySource(source) {
979
  source
980
  };
981
  }
982
- //# sourceMappingURL=actions.js.map
983
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/store/index.js
984
  /**
985
  * WordPress dependencies
@@ -1011,7 +1011,7 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
1011
  actions: actions_namespaceObject
1012
  });
1013
  (0,external_wp_data_namespaceObject.register)(store);
1014
- //# sourceMappingURL=index.js.map
1015
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/index.js
1016
  /**
1017
  * Internal dependencies
@@ -1019,7 +1019,7 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
1019
 
1020
 
1021
 
1022
- //# sourceMappingURL=index.js.map
1023
  (window.wp = window.wp || {}).annotations = __webpack_exports__;
1024
  /******/ })()
1025
  ;
73
  * @type {string}
74
  */
75
  const STORE_NAME = 'core/annotations';
76
+
77
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/format/annotation.js
78
  /**
79
  * WordPress dependencies
267
  }
268
 
269
  };
270
+
271
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/format/index.js
272
  /**
273
  * WordPress dependencies
283
  ...settings
284
  } = annotation;
285
  (0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings);
286
+
287
  ;// CONCATENATED MODULE: external ["wp","hooks"]
288
  var external_wp_hooks_namespaceObject = window["wp"]["hooks"];
289
  ;// CONCATENATED MODULE: external ["wp","data"]
324
  };
325
 
326
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName);
327
+
328
  ;// CONCATENATED MODULE: external "lodash"
329
  var external_lodash_namespaceObject = window["lodash"];
330
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/store/reducer.js
431
  return state;
432
  }
433
  /* harmony default export */ var reducer = (annotations);
434
+
435
  ;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
436
 
437
 
794
  return annotations;
795
  });
796
  }
797
+
798
  ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
799
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
800
  // require the crypto API and do not support built-in fallback to lower quality random number
979
  source
980
  };
981
  }
982
+
983
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/store/index.js
984
  /**
985
  * WordPress dependencies
1011
  actions: actions_namespaceObject
1012
  });
1013
  (0,external_wp_data_namespaceObject.register)(store);
1014
+
1015
  ;// CONCATENATED MODULE: ./packages/annotations/build-module/index.js
1016
  /**
1017
  * Internal dependencies
1019
 
1020
 
1021
 
1022
+
1023
  (window.wp = window.wp || {}).annotations = __webpack_exports__;
1024
  /******/ })()
1025
  ;
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' => '42344365e9676a9e73ae19c273a585f6');
1
+ <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '6e58b95cf064dc79f7d288b2a0468e80');
build/annotations/index.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return B}});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:function(){return b},__experimentalGetAnnotations:function(){return I},__experimentalGetAnnotationsForBlock:function(){return w},__experimentalGetAnnotationsForRichText:function(){return O}});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:function(){return U},__experimentalRemoveAnnotation:function(){return F},__experimentalRemoveAnnotationsBySource:function(){return M},__experimentalUpdateAnnotationRange:function(){return G}});var o=window.wp.richText,a=window.wp.i18n;const i="core/annotations",l="core/annotation",u="annotation-text-",s={name:l,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation(e,t){let{richTextIdentifier:n,blockClientId:r}=t;return{annotations:e(i).__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree(e){let{annotations:t}=e;return(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=u+t.source,i=u+t.id;e=(0,o.applyFormat)(e,{type:l,attributes:{className:a,id:i}},n,r)})),e}(r,t),r.formats}},__experimentalGetPropsForEditableTreeChangeHandler:e=>({removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:e=>t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===l))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(u,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,n){let{removeAnnotation:r,updateAnnotationRange:o}=n;e.forEach((e=>{const n=t[e.id];if(!n)return void r(e.id);const{start:a,end:i}=e;a===n.start&&i===n.end||o(e.id,n.start,n.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:d,...c}=s;(0,o.registerFormatType)(d,c);var p=window.wp.hooks,f=window.wp.data;(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,t)=>{let{clientId:n,className:r}=t;return{className:e(i).__experimentalGetAnnotationsForBlock(n).map((e=>"is-annotated-by-"+e.source)).concat(r).filter(Boolean).join(" ")}}))(e)));var v=window.lodash;function m(e,t){const n=e.filter(t);return e.length===n.length?e:n}function g(e){return(0,v.isNumber)(e.start)&&(0,v.isNumber)(e.end)&&e.start<=e.end}var h,_;function A(e){return[e]}function y(){var e={clear:function(){e.head=null}};return e}function x(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function N(e,t){var n,r;function o(){n=_?new WeakMap:y()}function a(){var n,o,a,i,l,u=arguments.length;for(i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];for(l=t.apply(null,i),(n=r(l)).isUniqueByDependants||(n.lastDependants&&!x(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),o=n.head;o;){if(x(o.args,i,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,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=A),r=_?function(e){var t,r,o,a,i,l=n,u=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){u=!1;break}l.has(r)?l=l.get(r):(o=new WeakMap,l.set(r,o),l=o)}return l.has(h)||((a=y()).isUniqueByDependants=u,l.set(h,a)),l.get(h)}:function(){return n},a.getDependants=t,a.clear=o,o(),a}h={},_="undefined"!=typeof WeakMap;const T=[],w=N(((e,t)=>{var n;return(null!==(n=null==e?void 0:e[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:T]}));function b(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:T}const O=N(((e,t,n)=>{var r;return(null!==(r=null==e?void 0:e[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:T]}));function I(e){return(0,v.flatMap)(e,(e=>e))}var R="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),E=new Uint8Array(16);function k(){if(!R)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R(E)}for(var C=/^(?:[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,D=function(e){return"string"==typeof e&&C.test(e)},S=[],V=0;V<256;++V)S.push((V+256).toString(16).substr(1));var P=function(e,t,n){var r=(e=e||{}).random||(e.rng||k)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(S[e[t+0]]+S[e[t+1]]+S[e[t+2]]+S[e[t+3]]+"-"+S[e[t+4]]+S[e[t+5]]+"-"+S[e[t+6]]+S[e[t+7]]+"-"+S[e[t+8]]+S[e[t+9]]+"-"+S[e[t+10]]+S[e[t+11]]+S[e[t+12]]+S[e[t+13]]+S[e[t+14]]+S[e[t+15]]).toLowerCase();if(!D(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function U(e){let{blockClientId:t,richTextIdentifier:n=null,range:r=null,selector:o="range",source:a="default",id:i=P()}=e;const l={type:"ANNOTATION_ADD",id:i,blockClientId:t,richTextIdentifier:n,source:a,selector:o};return"range"===o&&(l.range=r),l}function F(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function G(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function M(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const B=(0,f.createReduxStore)(i,{reducer:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":const r=n.blockClientId,o={id:n.id,blockClientId:r,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===o.selector&&!g(o.range))return t;const a=null!==(e=null==t?void 0:t[r])&&void 0!==e?e:[];return{...t,[r]:[...a,o]};case"ANNOTATION_REMOVE":return(0,v.mapValues)(t,(e=>m(e,(e=>e.id!==n.annotationId))));case"ANNOTATION_UPDATE_RANGE":return(0,v.mapValues)(t,(e=>{let t=!1;const r=e.map((e=>e.id===n.annotationId?(t=!0,{...e,range:{start:n.start,end:n.end}}):e));return t?r:e}));case"ANNOTATION_REMOVE_SOURCE":return(0,v.mapValues)(t,(e=>m(e,(e=>e.source!==n.source))))}return t},selectors:n,actions:r});(0,f.register)(B),(window.wp=window.wp||{}).annotations=t}();
 
1
+ !function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return B}});var n={};e.r(n),e.d(n,{__experimentalGetAllAnnotationsForBlock:function(){return b},__experimentalGetAnnotations:function(){return I},__experimentalGetAnnotationsForBlock:function(){return w},__experimentalGetAnnotationsForRichText:function(){return O}});var r={};e.r(r),e.d(r,{__experimentalAddAnnotation:function(){return U},__experimentalRemoveAnnotation:function(){return F},__experimentalRemoveAnnotationsBySource:function(){return M},__experimentalUpdateAnnotationRange:function(){return G}});var o=window.wp.richText,a=window.wp.i18n;const i="core/annotations",l="core/annotation",u="annotation-text-",s={name:l,title:(0,a.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:()=>null,__experimentalGetPropsForEditableTreePreparation(e,t){let{richTextIdentifier:n,blockClientId:r}=t;return{annotations:e(i).__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree(e){let{annotations:t}=e;return(e,n)=>{if(0===t.length)return e;let r={formats:e,text:n};return r=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((t=>{let{start:n,end:r}=t;n>e.text.length&&(n=e.text.length),r>e.text.length&&(r=e.text.length);const a=u+t.source,i=u+t.id;e=(0,o.applyFormat)(e,{type:l,attributes:{className:a,id:i}},n,r)})),e}(r,t),r.formats}},__experimentalGetPropsForEditableTreeChangeHandler:e=>({removeAnnotation:e(i).__experimentalRemoveAnnotation,updateAnnotationRange:e(i).__experimentalUpdateAnnotationRange}),__experimentalCreateOnChangeEditableValue:e=>t=>{const n=function(e){const t={};return e.forEach(((e,n)=>{(e=(e=e||[]).filter((e=>e.type===l))).forEach((e=>{let{id:r}=e.attributes;r=r.replace(u,""),t.hasOwnProperty(r)||(t[r]={start:n}),t[r].end=n+1}))})),t}(t),{removeAnnotation:r,updateAnnotationRange:o,annotations:a}=e;!function(e,t,n){let{removeAnnotation:r,updateAnnotationRange:o}=n;e.forEach((e=>{const n=t[e.id];if(!n)return void r(e.id);const{start:a,end:i}=e;a===n.start&&i===n.end||o(e.id,n.start,n.end)}))}(a,n,{removeAnnotation:r,updateAnnotationRange:o})}},{name:d,...c}=s;(0,o.registerFormatType)(d,c);var p=window.wp.hooks,f=window.wp.data;(0,p.addFilter)("editor.BlockListBlock","core/annotations",(e=>(0,f.withSelect)(((e,t)=>{let{clientId:n,className:r}=t;return{className:e(i).__experimentalGetAnnotationsForBlock(n).map((e=>"is-annotated-by-"+e.source)).concat(r).filter(Boolean).join(" ")}}))(e)));var v=window.lodash;function m(e,t){const n=e.filter(t);return e.length===n.length?e:n}function g(e){return(0,v.isNumber)(e.start)&&(0,v.isNumber)(e.end)&&e.start<=e.end}var h,_;function A(e){return[e]}function y(){var e={clear:function(){e.head=null}};return e}function x(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function N(e,t){var n,r;function o(){n=_?new WeakMap:y()}function a(){var n,o,a,i,l,u=arguments.length;for(i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];for(l=t.apply(null,i),(n=r(l)).isUniqueByDependants||(n.lastDependants&&!x(l,n.lastDependants,0)&&n.clear(),n.lastDependants=l),o=n.head;o;){if(x(o.args,i,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,i)},i[0]=null,o.args=i,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=A),r=_?function(e){var t,r,o,a,i,l=n,u=!0;for(t=0;t<e.length;t++){if(!(i=r=e[t])||"object"!=typeof i){u=!1;break}l.has(r)?l=l.get(r):(o=new WeakMap,l.set(r,o),l=o)}return l.has(h)||((a=y()).isUniqueByDependants=u,l.set(h,a)),l.get(h)}:function(){return n},a.getDependants=t,a.clear=o,o(),a}h={},_="undefined"!=typeof WeakMap;const T=[],w=N(((e,t)=>{var n;return(null!==(n=null==e?void 0:e[t])&&void 0!==n?n:[]).filter((e=>"block"===e.selector))}),((e,t)=>{var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:T]}));function b(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:T}const O=N(((e,t,n)=>{var r;return(null!==(r=null==e?void 0:e[t])&&void 0!==r?r:[]).filter((e=>"range"===e.selector&&n===e.richTextIdentifier)).map((e=>{const{range:t,...n}=e;return{...t,...n}}))}),((e,t)=>{var n;return[null!==(n=null==e?void 0:e[t])&&void 0!==n?n:T]}));function I(e){return(0,v.flatMap)(e,(e=>e))}var R="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),E=new Uint8Array(16);function k(){if(!R)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R(E)}for(var C=/^(?:[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,D=function(e){return"string"==typeof e&&C.test(e)},S=[],V=0;V<256;++V)S.push((V+256).toString(16).substr(1));var P=function(e,t,n){var r=(e=e||{}).random||(e.rng||k)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(S[e[t+0]]+S[e[t+1]]+S[e[t+2]]+S[e[t+3]]+"-"+S[e[t+4]]+S[e[t+5]]+"-"+S[e[t+6]]+S[e[t+7]]+"-"+S[e[t+8]]+S[e[t+9]]+"-"+S[e[t+10]]+S[e[t+11]]+S[e[t+12]]+S[e[t+13]]+S[e[t+14]]+S[e[t+15]]).toLowerCase();if(!D(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function U(e){let{blockClientId:t,richTextIdentifier:n=null,range:r=null,selector:o="range",source:a="default",id:i=P()}=e;const l={type:"ANNOTATION_ADD",id:i,blockClientId:t,richTextIdentifier:n,source:a,selector:o};return"range"===o&&(l.range=r),l}function F(e){return{type:"ANNOTATION_REMOVE",annotationId:e}}function G(e,t,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:e,start:t,end:n}}function M(e){return{type:"ANNOTATION_REMOVE_SOURCE",source:e}}const B=(0,f.createReduxStore)(i,{reducer:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"ANNOTATION_ADD":const r=n.blockClientId,o={id:n.id,blockClientId:r,richTextIdentifier:n.richTextIdentifier,source:n.source,selector:n.selector,range:n.range};if("range"===o.selector&&!g(o.range))return t;const a=null!==(e=null==t?void 0:t[r])&&void 0!==e?e:[];return{...t,[r]:[...a,o]};case"ANNOTATION_REMOVE":return(0,v.mapValues)(t,(e=>m(e,(e=>e.id!==n.annotationId))));case"ANNOTATION_UPDATE_RANGE":return(0,v.mapValues)(t,(e=>{let t=!1;const r=e.map((e=>e.id===n.annotationId?(t=!0,{...e,range:{start:n.start,end:n.end}}):e));return t?r:e}));case"ANNOTATION_REMOVE_SOURCE":return(0,v.mapValues)(t,(e=>m(e,(e=>e.source!==n.source))))}return t},selectors:n,actions:r});(0,f.register)(B),(window.wp=window.wp||{}).annotations=t}();
2
+ //# sourceMappingURL=index.min.js.map
build/annotations/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/annotations/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/F,EAAwB,SAAST,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,miBCLvD,IAAI,EAA+BC,OAAW,GAAY,SCAtD,EAA+BA,OAAW,GAAQ,KCK/C,MAAMC,EAAa,mBCCpBC,EAAc,kBAEdC,EAA8B,mBA4HvBC,EAAa,CACzBC,KAAMH,EACNI,OAAOC,EAAAA,EAAAA,IAAI,cACXC,QAAS,OACTC,UAAW,kBACXC,WAAY,CACXD,UAAW,QACXE,GAAI,MAELC,KAAI,IACI,KAERC,iDACCC,EAD+C,GAG9C,IADD,mBAAEC,EAAF,cAAsBC,GACrB,EACD,MAAO,CACNC,YAAaH,EACZb,GACCiB,wCACDF,EACAD,KAIHI,wCAAwC,GAAmB,IAAlB,YAAEF,GAAgB,EAC1D,MAAO,CAAEG,EAASC,KACjB,GAA4B,IAAvBJ,EAAYK,OAChB,OAAOF,EAGR,IAAIG,EAAS,CAAEH,QAAAA,EAASC,KAAAA,GAExB,OADAE,EA/II,SAA2BA,GA6BjC,OA7B4D,uDAAL,IAC3CC,SAAWpB,IACtB,IAAI,MAAEqB,EAAF,IAASC,GAAQtB,EAEhBqB,EAAQF,EAAOF,KAAKC,SACxBG,EAAQF,EAAOF,KAAKC,QAGhBI,EAAMH,EAAOF,KAAKC,SACtBI,EAAMH,EAAOF,KAAKC,QAGnB,MAAMb,EAAYN,EAA8BC,EAAWuB,OACrDhB,EAAKR,EAA8BC,EAAWO,GAEpDY,GAASK,EAAAA,EAAAA,aACRL,EACA,CACCM,KAAM3B,EACNQ,WAAY,CACXD,UAAAA,EACAE,GAAAA,IAGFc,EACAC,MAIKH,EAkHIO,CAAkBP,EAAQN,GAC5BM,EAAOH,UAGhBW,mDAAoDC,IAC5C,CACNC,iBAAkBD,EAAU/B,GAC1BiC,+BACFC,sBAAuBH,EAAU/B,GAC/BmC,sCAGJC,0CAA2CC,GACjClB,IACR,MAAMmB,EA7GT,SAAsCnB,GACrC,MAAMmB,EAAY,GAwBlB,OAtBAnB,EAAQI,SAAS,CAAEgB,EAAkBC,MAEpCD,GADAA,EAAmBA,GAAoB,IACHE,QACjCC,GAAYA,EAAOd,OAAS3B,KAEdsB,SAAWmB,IAC3B,IAAI,GAAEhC,GAAOgC,EAAOjC,WACpBC,EAAKA,EAAGiC,QAASzC,EAA6B,IAEvCoC,EAAU5C,eAAgBgB,KAChC4B,EAAW5B,GAAO,CACjBc,MAAOgB,IAOTF,EAAW5B,GAAKe,IAAMe,EAAI,QAIrBF,EAoFaM,CAA6BzB,IACzC,iBACLa,EADK,sBAELE,EAFK,YAGLlB,GACGqB,GA7EP,SACCrB,EACAsB,EAFD,GAIE,IADD,iBAAEN,EAAF,sBAAoBE,GACnB,EACDlB,EAAYO,SAAWsB,IACtB,MAAMC,EAAWR,EAAWO,EAAkBnC,IAE9C,IAAOoC,EAIN,YADAd,EAAkBa,EAAkBnC,IAIrC,MAAM,MAAEc,EAAF,IAASC,GAAQoB,EAClBrB,IAAUsB,EAAStB,OAASC,IAAQqB,EAASrB,KACjDS,EACCW,EAAkBnC,GAClBoC,EAAStB,MACTsB,EAASrB,QA2DVsB,CAAgC/B,EAAasB,EAAW,CACvDN,iBAAAA,EACAE,sBAAAA,OCjLI9B,KAAF,KAAW4C,GAAa7C,GAE9B8C,EAAAA,EAAAA,oBAAoB7C,EAAM4C,GCZ1B,IAAI,EAA+BjD,OAAW,GAAS,MCAnD,EAA+BA,OAAW,GAAQ,MCkCtDmD,EAAAA,EAAAA,WACC,wBACA,oBApBgCC,IACzBC,EAAAA,EAAAA,aAAY,CAAEvC,EAAF,KAAuC,IAA7B,SAAEwC,EAAF,UAAY7C,GAAiB,EAKzD,MAAO,CACNA,UALmBK,EACnBb,GACCsD,qCAAsCD,GAIrCE,KAAOpD,GACA,mBAAqBA,EAAWuB,SAEvC8B,OAAQhD,GACRiC,OAAQgB,SACRC,KAAM,QAZHN,CAcFD,KC/BN,IAAI,EAA+BpD,OAAe,OCclD,SAAS4D,EAAqBC,EAAYC,GACzC,MAAMC,EAAqBF,EAAWnB,OAAQoB,GAE9C,OAAOD,EAAWvC,SAAWyC,EAAmBzC,OAC7CuC,EACAE,EASJ,SAASC,EAAwB5D,GAChC,OACC6D,EAAAA,EAAAA,UAAU7D,EAAWqB,SACrBwC,EAAAA,EAAAA,UAAU7D,EAAWsB,MACrBtB,EAAWqB,OAASrB,EAAWsB,IA0FjC,ICxHIwC,EAAUC,EAuBd,SAASC,EAASrE,GACjB,MAAO,CAAEA,GAoBV,SAASsE,IACR,IAAIC,EAAQ,CACXC,MAAO,WACND,EAAME,KAAO,OAIf,OAAOF,EAaR,SAASG,EAAgBC,EAAGC,EAAGC,GAC9B,IAAInC,EAEJ,GAAKiC,EAAEpD,SAAWqD,EAAErD,OACnB,OAAO,EAGR,IAAMmB,EAAImC,EAAWnC,EAAIiC,EAAEpD,OAAQmB,IAClC,GAAKiC,EAAGjC,KAAQkC,EAAGlC,GAClB,OAAO,EAIT,OAAO,EAkBO,WAAUoC,EAAUC,GAClC,IAAIC,EAAWC,EA+Ef,SAAST,IACRQ,EAAYZ,EAAa,IAAIc,QAAYZ,IAa1C,SAASa,IACR,IACCZ,EAAOa,EAAM1C,EAAG2C,EAAMC,EADnBC,EAAMC,UAAUjE,OAKpB,IADA8D,EAAO,IAAII,MAAOF,GACZ7C,EAAI,EAAGA,EAAI6C,EAAK7C,IACrB2C,EAAM3C,GAAM8C,UAAW9C,GAkBxB,IAfA4C,EAAaP,EAAcW,MAAO,KAAML,IACxCd,EAAQU,EAAUK,IAKLK,uBACPpB,EAAMqB,iBAAoBlB,EAAgBY,EAAYf,EAAMqB,eAAgB,IAChFrB,EAAMC,QAGPD,EAAMqB,eAAiBN,GAGxBF,EAAOb,EAAME,KACLW,GAAO,CAEd,GAAOV,EAAgBU,EAAKC,KAAMA,EAAM,GAsBxC,OAdKD,IAASb,EAAME,OAEnBW,EAAKS,KAAKC,KAAOV,EAAKU,KACjBV,EAAKU,OACTV,EAAKU,KAAKD,KAAOT,EAAKS,MAGvBT,EAAKU,KAAOvB,EAAME,KAClBW,EAAKS,KAAO,KACZtB,EAAME,KAAKoB,KAAOT,EAClBb,EAAME,KAAOW,GAIPA,EAAKW,IArBXX,EAAOA,EAAKU,KA8Cd,OApBAV,EAAO,CAENW,IAAKjB,EAASY,MAAO,KAAML,IAI5BA,EAAM,GAAM,KACZD,EAAKC,KAAOA,EAMPd,EAAME,OACVF,EAAME,KAAKoB,KAAOT,EAClBA,EAAKU,KAAOvB,EAAME,MAGnBF,EAAME,KAAOW,EAENA,EAAKW,IAOb,OA3KOhB,IACNA,EAAgBV,GAsEjBY,EAAWb,EAtCX,SAA0BkB,GACzB,IAEC5C,EAAGsD,EAAWvC,EAAKc,EApGCvE,EAkGjBiG,EAASjB,EACZW,GAAuB,EAGxB,IAAMjD,EAAI,EAAGA,EAAI4C,EAAW/D,OAAQmB,IAAM,CAIzC,KA1GoB1C,EAuGpBgG,EAAYV,EAAY5C,KAtGP,iBAAoB1C,EAyGF,CAClC2F,GAAuB,EACvB,MAIIM,EAAOC,IAAKF,GAEhBC,EAASA,EAAOzG,IAAKwG,IAGrBvC,EAAM,IAAIyB,QACVe,EAAOE,IAAKH,EAAWvC,GACvBwC,EAASxC,GAYX,OANOwC,EAAOC,IAAK/B,MAClBI,EAAQD,KACFqB,qBAAuBA,EAC7BM,EAAOE,IAAKhC,EAAUI,IAGhB0B,EAAOzG,IAAK2E,IAxDpB,WACC,OAAOa,GA2JRG,EAAaJ,cAAgBA,EAC7BI,EAAaX,MAAQA,EACrBA,IAEOW,EAvQRhB,EAAW,GAOXC,EAAgC,oBAAZc,QCDpB,MAAMkB,EAAc,GAUP5C,EAAuC6C,GACnD,CAAEC,EAAOrF,KAAmB,MAC3B,OAAO,UAAEqF,MAAAA,OAAF,EAAEA,EAASrF,UAAX,QAA8B,IAAK0B,QAAUtC,GACpB,UAAxBA,EAAWyE,cAGpB,CAAEwB,EAAOrF,KAAT,YAA4B,WAAEqF,MAAAA,OAAF,EAAEA,EAASrF,UAAX,QAA8BmF,MAGpD,SAASG,EACfD,EACArF,GACC,MACD,iBAAOqF,MAAAA,OAAP,EAAOA,EAASrF,UAAhB,QAAmCmF,EAe7B,MAAMjF,EAA0CkF,GACtD,CAAEC,EAAOrF,EAAeD,KAAwB,MAC/C,OAAO,UAAEsF,MAAAA,OAAF,EAAEA,EAASrF,UAAX,QAA8B,IACnC0B,QAAUtC,GAEe,UAAxBA,EAAWyE,UACX9D,IAAuBX,EAAWW,qBAGnCyC,KAAOpD,IACP,MAAM,MAAEmG,KAAUC,GAAUpG,EAE5B,MAAO,IACHmG,KACAC,SAIP,CAAEH,EAAOrF,KAAT,YAA4B,WAAEqF,MAAAA,OAAF,EAAEA,EAASrF,UAAX,QAA8BmF,MASpD,SAASM,EAA8BJ,GAC7C,OAAOK,EAAAA,EAAAA,SAASL,GAASpF,GACjBA,IC7ET,IAAI0F,EAAoC,oBAAXC,QAA0BA,OAAOD,iBAAmBC,OAAOD,gBAAgBE,KAAKD,SAA+B,oBAAbE,UAAgE,mBAA7BA,SAASH,iBAAkCG,SAASH,gBAAgBE,KAAKC,UACvOC,EAAQ,IAAIC,WAAW,IACZ,SAASC,IACtB,IAAKN,EACH,MAAM,IAAIO,MAAM,4GAGlB,OAAOP,EAAgBI,GCJzB,ICRA,4HCMA,EAJA,SAAkBI,GAChB,MAAuB,iBAATA,GAAqB,OAAWA,IFG5CC,EAAY,GAEP3E,EAAI,EAAGA,EAAI,MAAOA,EACzB2E,EAAUC,MAAM5E,EAAI,KAAO6E,SAAS,IAAIC,OAAO,IAoBjD,IGNA,EApBA,SAAYC,EAASC,EAAKC,GAExB,IAAIC,GADJH,EAAUA,GAAW,IACFI,SAAWJ,EAAQP,KAAOA,KAK7C,GAHAU,EAAK,GAAe,GAAVA,EAAK,GAAY,GAC3BA,EAAK,GAAe,GAAVA,EAAK,GAAY,IAEvBF,EAAK,CACPC,EAASA,GAAU,EAEnB,IAAK,IAAIjF,EAAI,EAAGA,EAAI,KAAMA,EACxBgF,EAAIC,EAASjF,GAAKkF,EAAKlF,GAGzB,OAAOgF,EAGT,OHRF,SAAmBI,GACjB,IAAIH,EAASnC,UAAUjE,OAAS,QAAsBwG,IAAjBvC,UAAU,GAAmBA,UAAU,GAAK,EAG7E4B,GAAQC,EAAUS,EAAIH,EAAS,IAAMN,EAAUS,EAAIH,EAAS,IAAMN,EAAUS,EAAIH,EAAS,IAAMN,EAAUS,EAAIH,EAAS,IAAM,IAAMN,EAAUS,EAAIH,EAAS,IAAMN,EAAUS,EAAIH,EAAS,IAAM,IAAMN,EAAUS,EAAIH,EAAS,IAAMN,EAAUS,EAAIH,EAAS,IAAM,IAAMN,EAAUS,EAAIH,EAAS,IAAMN,EAAUS,EAAIH,EAAS,IAAM,IAAMN,EAAUS,EAAIH,EAAS,KAAON,EAAUS,EAAIH,EAAS,KAAON,EAAUS,EAAIH,EAAS,KAAON,EAAUS,EAAIH,EAAS,KAAON,EAAUS,EAAIH,EAAS,KAAON,EAAUS,EAAIH,EAAS,MAAMK,cAMzf,IAAK,EAASZ,GACZ,MAAMa,UAAU,+BAGlB,OAAOb,EGNA,CAAUQ,ICYZ,SAASM,EAAT,GAOH,IAPyC,cAC5CjH,EAD4C,mBAE5CD,EAAqB,KAFuB,MAG5CwF,EAAQ,KAHoC,SAI5C1B,EAAW,QAJiC,OAK5ClD,EAAS,UALmC,GAM5ChB,EAAKwG,KACF,EACH,MAAMe,EAAS,CACdrG,KAAM,iBACNlB,GAAAA,EACAK,cAAAA,EACAD,mBAAAA,EACAY,OAAAA,EACAkD,SAAAA,GAOD,MAJkB,UAAbA,IACJqD,EAAO3B,MAAQA,GAGT2B,EAUD,SAAShG,EAAgCiG,GAC/C,MAAO,CACNtG,KAAM,oBACNsG,aAAAA,GAaK,SAAS/F,EACf+F,EACA1G,EACAC,GAEA,MAAO,CACNG,KAAM,0BACNsG,aAAAA,EACA1G,MAAAA,EACAC,IAAAA,GAWK,SAAS0G,EAAyCzG,GACxD,MAAO,CACNE,KAAM,2BACNF,OAAAA,GC9EK,MAAM0G,GAAQC,EAAAA,EAAAA,kBAAkBrI,EAAY,CAClDsI,QTmBM,WAA2C,UAArBlC,EAAqB,uDAAb,GAAI6B,EAAS,uCACjD,OAASA,EAAOrG,MACf,IAAK,iBACJ,MAAMb,EAAgBkH,EAAOlH,cACvBwH,EAAgB,CACrB7H,GAAIuH,EAAOvH,GACXK,cAAAA,EACAD,mBAAoBmH,EAAOnH,mBAC3BY,OAAQuG,EAAOvG,OACfkD,SAAUqD,EAAOrD,SACjB0B,MAAO2B,EAAO3B,OAGf,GAC4B,UAA3BiC,EAAc3D,WACZb,EAAwBwE,EAAcjC,OAExC,OAAOF,EAGR,MAAMoC,EAA2B,UAAGpC,MAAAA,OAAH,EAAGA,EAASrF,UAAZ,QAA+B,GAEhE,MAAO,IACHqF,EACH,CAAErF,GAAiB,IACfyH,EACHD,IAIH,IAAK,oBACJ,OAAOE,EAAAA,EAAAA,WAAWrC,GAASsC,GACnB/E,EACN+E,GACEvI,GACMA,EAAWO,KAAOuH,EAAOC,iBAKpC,IAAK,0BACJ,OAAOO,EAAAA,EAAAA,WAAWrC,GAASsC,IAC1B,IAAIC,GAAkB,EAEtB,MAAMC,EAAiBF,EAAoBnF,KACxCpD,GACIA,EAAWO,KAAOuH,EAAOC,cAC7BS,GAAkB,EACX,IACHxI,EACHmG,MAAO,CACN9E,MAAOyG,EAAOzG,MACdC,IAAKwG,EAAOxG,OAKRtB,IAIT,OAAOwI,EAAkBC,EAAiBF,KAG5C,IAAK,2BACJ,OAAOD,EAAAA,EAAAA,WAAWrC,GAASsC,GACnB/E,EACN+E,GACEvI,GACMA,EAAWuB,SAAWuG,EAAOvG,WAMzC,OAAO0E,GS7FPyC,UAFkD,EAGlDC,QAAOA,KAGRC,EAAAA,EAAAA,UAAUX,I","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"richText\"]","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/constants.js","webpack://wp/./packages/annotations/build-module/format/@wordpress/annotations/src/format/annotation.js","webpack://wp/./packages/annotations/build-module/format/@wordpress/annotations/src/format/index.js","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"data\"]","webpack://wp/./packages/annotations/build-module/block/@wordpress/annotations/src/block/index.js","webpack://wp/external window \"lodash\"","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/reducer.js","webpack://wp/./node_modules/rememo/es/rememo.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/selectors.js","webpack://wp/./node_modules/uuid/dist/esm-browser/rng.js","webpack://wp/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://wp/./node_modules/uuid/dist/esm-browser/regex.js","webpack://wp/./node_modules/uuid/dist/esm-browser/validate.js","webpack://wp/./node_modules/uuid/dist/esm-browser/v4.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/actions.js","webpack://wp/./packages/annotations/build-module/store/@wordpress/annotations/src/store/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"richText\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * The identifier for the data store.\n *\n * @type {string}\n */\nexport const STORE_NAME = 'core/annotations';\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { applyFormat, removeFormat } from '@wordpress/rich-text';\n\nconst FORMAT_NAME = 'core/annotation';\n\nconst ANNOTATION_ATTRIBUTE_PREFIX = 'annotation-text-';\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n\n/**\n * Applies given annotations to the given record.\n *\n * @param {Object} record The record to apply annotations to.\n * @param {Array} annotations The annotation to apply.\n * @return {Object} A record with the annotations applied.\n */\nexport function applyAnnotations( record, annotations = [] ) {\n\tannotations.forEach( ( annotation ) => {\n\t\tlet { start, end } = annotation;\n\n\t\tif ( start > record.text.length ) {\n\t\t\tstart = record.text.length;\n\t\t}\n\n\t\tif ( end > record.text.length ) {\n\t\t\tend = record.text.length;\n\t\t}\n\n\t\tconst className = ANNOTATION_ATTRIBUTE_PREFIX + annotation.source;\n\t\tconst id = ANNOTATION_ATTRIBUTE_PREFIX + annotation.id;\n\n\t\trecord = applyFormat(\n\t\t\trecord,\n\t\t\t{\n\t\t\t\ttype: FORMAT_NAME,\n\t\t\t\tattributes: {\n\t\t\t\t\tclassName,\n\t\t\t\t\tid,\n\t\t\t\t},\n\t\t\t},\n\t\t\tstart,\n\t\t\tend\n\t\t);\n\t} );\n\n\treturn record;\n}\n\n/**\n * Removes annotations from the given record.\n *\n * @param {Object} record Record to remove annotations from.\n * @return {Object} The cleaned record.\n */\nexport function removeAnnotations( record ) {\n\treturn removeFormat( record, 'core/annotation', 0, record.text.length );\n}\n\n/**\n * Retrieves the positions of annotations inside an array of formats.\n *\n * @param {Array} formats Formats with annotations in there.\n * @return {Object} ID keyed positions of annotations.\n */\nfunction retrieveAnnotationPositions( formats ) {\n\tconst positions = {};\n\n\tformats.forEach( ( characterFormats, i ) => {\n\t\tcharacterFormats = characterFormats || [];\n\t\tcharacterFormats = characterFormats.filter(\n\t\t\t( format ) => format.type === FORMAT_NAME\n\t\t);\n\t\tcharacterFormats.forEach( ( format ) => {\n\t\t\tlet { id } = format.attributes;\n\t\t\tid = id.replace( ANNOTATION_ATTRIBUTE_PREFIX, '' );\n\n\t\t\tif ( ! positions.hasOwnProperty( id ) ) {\n\t\t\t\tpositions[ id ] = {\n\t\t\t\t\tstart: i,\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// Annotations refer to positions between characters.\n\t\t\t// Formats refer to the character themselves.\n\t\t\t// So we need to adjust for that here.\n\t\t\tpositions[ id ].end = i + 1;\n\t\t} );\n\t} );\n\n\treturn positions;\n}\n\n/**\n * Updates annotations in the state based on positions retrieved from RichText.\n *\n * @param {Array} annotations The annotations that are currently applied.\n * @param {Array} positions The current positions of the given annotations.\n * @param {Object} actions\n * @param {Function} actions.removeAnnotation Function to remove an annotation from the state.\n * @param {Function} actions.updateAnnotationRange Function to update an annotation range in the state.\n */\nfunction updateAnnotationsWithPositions(\n\tannotations,\n\tpositions,\n\t{ removeAnnotation, updateAnnotationRange }\n) {\n\tannotations.forEach( ( currentAnnotation ) => {\n\t\tconst position = positions[ currentAnnotation.id ];\n\t\t// If we cannot find an annotation, delete it.\n\t\tif ( ! position ) {\n\t\t\t// Apparently the annotation has been removed, so remove it from the state:\n\t\t\t// Remove...\n\t\t\tremoveAnnotation( currentAnnotation.id );\n\t\t\treturn;\n\t\t}\n\n\t\tconst { start, end } = currentAnnotation;\n\t\tif ( start !== position.start || end !== position.end ) {\n\t\t\tupdateAnnotationRange(\n\t\t\t\tcurrentAnnotation.id,\n\t\t\t\tposition.start,\n\t\t\t\tposition.end\n\t\t\t);\n\t\t}\n\t} );\n}\n\nexport const annotation = {\n\tname: FORMAT_NAME,\n\ttitle: __( 'Annotation' ),\n\ttagName: 'mark',\n\tclassName: 'annotation-text',\n\tattributes: {\n\t\tclassName: 'class',\n\t\tid: 'id',\n\t},\n\tedit() {\n\t\treturn null;\n\t},\n\t__experimentalGetPropsForEditableTreePreparation(\n\t\tselect,\n\t\t{ richTextIdentifier, blockClientId }\n\t) {\n\t\treturn {\n\t\t\tannotations: select(\n\t\t\t\tSTORE_NAME\n\t\t\t).__experimentalGetAnnotationsForRichText(\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier\n\t\t\t),\n\t\t};\n\t},\n\t__experimentalCreatePrepareEditableTree( { annotations } ) {\n\t\treturn ( formats, text ) => {\n\t\t\tif ( annotations.length === 0 ) {\n\t\t\t\treturn formats;\n\t\t\t}\n\n\t\t\tlet record = { formats, text };\n\t\t\trecord = applyAnnotations( record, annotations );\n\t\t\treturn record.formats;\n\t\t};\n\t},\n\t__experimentalGetPropsForEditableTreeChangeHandler( dispatch ) {\n\t\treturn {\n\t\t\tremoveAnnotation: dispatch( STORE_NAME )\n\t\t\t\t.__experimentalRemoveAnnotation,\n\t\t\tupdateAnnotationRange: dispatch( STORE_NAME )\n\t\t\t\t.__experimentalUpdateAnnotationRange,\n\t\t};\n\t},\n\t__experimentalCreateOnChangeEditableValue( props ) {\n\t\treturn ( formats ) => {\n\t\t\tconst positions = retrieveAnnotationPositions( formats );\n\t\t\tconst {\n\t\t\t\tremoveAnnotation,\n\t\t\t\tupdateAnnotationRange,\n\t\t\t\tannotations,\n\t\t\t} = props;\n\n\t\t\tupdateAnnotationsWithPositions( annotations, positions, {\n\t\t\t\tremoveAnnotation,\n\t\t\t\tupdateAnnotationRange,\n\t\t\t} );\n\t\t};\n\t},\n};\n","/**\n * WordPress dependencies\n */\nimport { registerFormatType } from '@wordpress/rich-text';\n\n/**\n * Internal dependencies\n */\nimport { annotation } from './annotation';\n\nconst { name, ...settings } = annotation;\n\nregisterFormatType( name, settings );\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","/**\n * WordPress dependencies\n */\nimport { addFilter } from '@wordpress/hooks';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { STORE_NAME } from '../store/constants';\n/**\n * Adds annotation className to the block-list-block component.\n *\n * @param {Object} OriginalComponent The original BlockListBlock component.\n * @return {Object} The enhanced component.\n */\nconst addAnnotationClassName = ( OriginalComponent ) => {\n\treturn withSelect( ( select, { clientId, className } ) => {\n\t\tconst annotations = select(\n\t\t\tSTORE_NAME\n\t\t).__experimentalGetAnnotationsForBlock( clientId );\n\n\t\treturn {\n\t\t\tclassName: annotations\n\t\t\t\t.map( ( annotation ) => {\n\t\t\t\t\treturn 'is-annotated-by-' + annotation.source;\n\t\t\t\t} )\n\t\t\t\t.concat( className )\n\t\t\t\t.filter( Boolean )\n\t\t\t\t.join( ' ' ),\n\t\t};\n\t} )( OriginalComponent );\n};\n\naddFilter(\n\t'editor.BlockListBlock',\n\t'core/annotations',\n\taddAnnotationClassName\n);\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External dependencies\n */\nimport { isNumber, mapValues } from 'lodash';\n\n/**\n * Filters an array based on the predicate, but keeps the reference the same if\n * the array hasn't changed.\n *\n * @param {Array} collection The collection to filter.\n * @param {Function} predicate Function that determines if the item should stay\n * in the array.\n * @return {Array} Filtered array.\n */\nfunction filterWithReference( collection, predicate ) {\n\tconst filteredCollection = collection.filter( predicate );\n\n\treturn collection.length === filteredCollection.length\n\t\t? collection\n\t\t: filteredCollection;\n}\n\n/**\n * Verifies whether the given annotations is a valid annotation.\n *\n * @param {Object} annotation The annotation to verify.\n * @return {boolean} Whether the given annotation is valid.\n */\nfunction isValidAnnotationRange( annotation ) {\n\treturn (\n\t\tisNumber( annotation.start ) &&\n\t\tisNumber( annotation.end ) &&\n\t\tannotation.start <= annotation.end\n\t);\n}\n\n/**\n * Reducer managing annotations.\n *\n * @param {Object} state The annotations currently shown in the editor.\n * @param {Object} action Dispatched action.\n *\n * @return {Array} Updated state.\n */\nexport function annotations( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'ANNOTATION_ADD':\n\t\t\tconst blockClientId = action.blockClientId;\n\t\t\tconst newAnnotation = {\n\t\t\t\tid: action.id,\n\t\t\t\tblockClientId,\n\t\t\t\trichTextIdentifier: action.richTextIdentifier,\n\t\t\t\tsource: action.source,\n\t\t\t\tselector: action.selector,\n\t\t\t\trange: action.range,\n\t\t\t};\n\n\t\t\tif (\n\t\t\t\tnewAnnotation.selector === 'range' &&\n\t\t\t\t! isValidAnnotationRange( newAnnotation.range )\n\t\t\t) {\n\t\t\t\treturn state;\n\t\t\t}\n\n\t\t\tconst previousAnnotationsForBlock = state?.[ blockClientId ] ?? [];\n\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ blockClientId ]: [\n\t\t\t\t\t...previousAnnotationsForBlock,\n\t\t\t\t\tnewAnnotation,\n\t\t\t\t],\n\t\t\t};\n\n\t\tcase 'ANNOTATION_REMOVE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.id !== action.annotationId;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_UPDATE_RANGE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\tlet hasChangedRange = false;\n\n\t\t\t\tconst newAnnotations = annotationsForBlock.map(\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\tif ( annotation.id === action.annotationId ) {\n\t\t\t\t\t\t\thasChangedRange = true;\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t...annotation,\n\t\t\t\t\t\t\t\trange: {\n\t\t\t\t\t\t\t\t\tstart: action.start,\n\t\t\t\t\t\t\t\t\tend: action.end,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn annotation;\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\treturn hasChangedRange ? newAnnotations : annotationsForBlock;\n\t\t\t} );\n\n\t\tcase 'ANNOTATION_REMOVE_SOURCE':\n\t\t\treturn mapValues( state, ( annotationsForBlock ) => {\n\t\t\t\treturn filterWithReference(\n\t\t\t\t\tannotationsForBlock,\n\t\t\t\t\t( annotation ) => {\n\t\t\t\t\t\treturn annotation.source !== action.source;\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t} );\n\t}\n\n\treturn state;\n}\n\nexport default annotations;\n","'use strict';\n\nvar LEAF_KEY, hasWeakMap;\n\n/**\n * Arbitrary value used as key for referencing cache object in WeakMap tree.\n *\n * @type {Object}\n */\nLEAF_KEY = {};\n\n/**\n * Whether environment supports WeakMap.\n *\n * @type {boolean}\n */\nhasWeakMap = typeof WeakMap !== 'undefined';\n\n/**\n * Returns the first argument as the sole entry in an array.\n *\n * @param {*} value Value to return.\n *\n * @return {Array} Value returned as entry in array.\n */\nfunction arrayOf( value ) {\n\treturn [ value ];\n}\n\n/**\n * Returns true if the value passed is object-like, or false otherwise. A value\n * is object-like if it can support property assignment, e.g. object or array.\n *\n * @param {*} value Value to test.\n *\n * @return {boolean} Whether value is object-like.\n */\nfunction isObjectLike( value ) {\n\treturn !! value && 'object' === typeof value;\n}\n\n/**\n * Creates and returns a new cache object.\n *\n * @return {Object} Cache object.\n */\nfunction createCache() {\n\tvar cache = {\n\t\tclear: function() {\n\t\t\tcache.head = null;\n\t\t},\n\t};\n\n\treturn cache;\n}\n\n/**\n * Returns true if entries within the two arrays are strictly equal by\n * reference from a starting index.\n *\n * @param {Array} a First array.\n * @param {Array} b Second array.\n * @param {number} fromIndex Index from which to start comparison.\n *\n * @return {boolean} Whether arrays are shallowly equal.\n */\nfunction isShallowEqual( a, b, fromIndex ) {\n\tvar i;\n\n\tif ( a.length !== b.length ) {\n\t\treturn false;\n\t}\n\n\tfor ( i = fromIndex; i < a.length; i++ ) {\n\t\tif ( a[ i ] !== b[ i ] ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}\n\n/**\n * Returns a memoized selector function. The getDependants function argument is\n * called before the memoized selector and is expected to return an immutable\n * reference or array of references on which the selector depends for computing\n * its own return value. The memoize cache is preserved only as long as those\n * dependant references remain the same. If getDependants returns a different\n * reference(s), the cache is cleared and the selector value regenerated.\n *\n * @param {Function} selector Selector function.\n * @param {Function} getDependants Dependant getter returning an immutable\n * reference or array of reference used in\n * cache bust consideration.\n *\n * @return {Function} Memoized selector.\n */\nexport default function( selector, getDependants ) {\n\tvar rootCache, getCache;\n\n\t// Use object source as dependant if getter not provided\n\tif ( ! getDependants ) {\n\t\tgetDependants = arrayOf;\n\t}\n\n\t/**\n\t * Returns the root cache. If WeakMap is supported, this is assigned to the\n\t * root WeakMap cache set, otherwise it is a shared instance of the default\n\t * cache object.\n\t *\n\t * @return {(WeakMap|Object)} Root cache object.\n\t */\n\tfunction getRootCache() {\n\t\treturn rootCache;\n\t}\n\n\t/**\n\t * Returns the cache for a given dependants array. When possible, a WeakMap\n\t * will be used to create a unique cache for each set of dependants. This\n\t * is feasible due to the nature of WeakMap in allowing garbage collection\n\t * to occur on entries where the key object is no longer referenced. Since\n\t * WeakMap requires the key to be an object, this is only possible when the\n\t * dependant is object-like. The root cache is created as a hierarchy where\n\t * each top-level key is the first entry in a dependants set, the value a\n\t * WeakMap where each key is the next dependant, and so on. This continues\n\t * so long as the dependants are object-like. If no dependants are object-\n\t * like, then the cache is shared across all invocations.\n\t *\n\t * @see isObjectLike\n\t *\n\t * @param {Array} dependants Selector dependants.\n\t *\n\t * @return {Object} Cache object.\n\t */\n\tfunction getWeakMapCache( dependants ) {\n\t\tvar caches = rootCache,\n\t\t\tisUniqueByDependants = true,\n\t\t\ti, dependant, map, cache;\n\n\t\tfor ( i = 0; i < dependants.length; i++ ) {\n\t\t\tdependant = dependants[ i ];\n\n\t\t\t// Can only compose WeakMap from object-like key.\n\t\t\tif ( ! isObjectLike( dependant ) ) {\n\t\t\t\tisUniqueByDependants = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Does current segment of cache already have a WeakMap?\n\t\t\tif ( caches.has( dependant ) ) {\n\t\t\t\t// Traverse into nested WeakMap.\n\t\t\t\tcaches = caches.get( dependant );\n\t\t\t} else {\n\t\t\t\t// Create, set, and traverse into a new one.\n\t\t\t\tmap = new WeakMap();\n\t\t\t\tcaches.set( dependant, map );\n\t\t\t\tcaches = map;\n\t\t\t}\n\t\t}\n\n\t\t// We use an arbitrary (but consistent) object as key for the last item\n\t\t// in the WeakMap to serve as our running cache.\n\t\tif ( ! caches.has( LEAF_KEY ) ) {\n\t\t\tcache = createCache();\n\t\t\tcache.isUniqueByDependants = isUniqueByDependants;\n\t\t\tcaches.set( LEAF_KEY, cache );\n\t\t}\n\n\t\treturn caches.get( LEAF_KEY );\n\t}\n\n\t// Assign cache handler by availability of WeakMap\n\tgetCache = hasWeakMap ? getWeakMapCache : getRootCache;\n\n\t/**\n\t * Resets root memoization cache.\n\t */\n\tfunction clear() {\n\t\trootCache = hasWeakMap ? new WeakMap() : createCache();\n\t}\n\n\t// eslint-disable-next-line jsdoc/check-param-names\n\t/**\n\t * The augmented selector call, considering first whether dependants have\n\t * changed before passing it to underlying memoize function.\n\t *\n\t * @param {Object} source Source object for derivation.\n\t * @param {...*} extraArgs Additional arguments to pass to selector.\n\t *\n\t * @return {*} Selector result.\n\t */\n\tfunction callSelector( /* source, ...extraArgs */ ) {\n\t\tvar len = arguments.length,\n\t\t\tcache, node, i, args, dependants;\n\n\t\t// Create copy of arguments (avoid leaking deoptimization).\n\t\targs = new Array( len );\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tdependants = getDependants.apply( null, args );\n\t\tcache = getCache( dependants );\n\n\t\t// If not guaranteed uniqueness by dependants (primitive type or lack\n\t\t// of WeakMap support), shallow compare against last dependants and, if\n\t\t// references have changed, destroy cache to recalculate result.\n\t\tif ( ! cache.isUniqueByDependants ) {\n\t\t\tif ( cache.lastDependants && ! isShallowEqual( dependants, cache.lastDependants, 0 ) ) {\n\t\t\t\tcache.clear();\n\t\t\t}\n\n\t\t\tcache.lastDependants = dependants;\n\t\t}\n\n\t\tnode = cache.head;\n\t\twhile ( node ) {\n\t\t\t// Check whether node arguments match arguments\n\t\t\tif ( ! isShallowEqual( node.args, args, 1 ) ) {\n\t\t\t\tnode = node.next;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// At this point we can assume we've found a match\n\n\t\t\t// Surface matched node to head if not already\n\t\t\tif ( node !== cache.head ) {\n\t\t\t\t// Adjust siblings to point to each other.\n\t\t\t\tnode.prev.next = node.next;\n\t\t\t\tif ( node.next ) {\n\t\t\t\t\tnode.next.prev = node.prev;\n\t\t\t\t}\n\n\t\t\t\tnode.next = cache.head;\n\t\t\t\tnode.prev = null;\n\t\t\t\tcache.head.prev = node;\n\t\t\t\tcache.head = node;\n\t\t\t}\n\n\t\t\t// Return immediately\n\t\t\treturn node.val;\n\t\t}\n\n\t\t// No cached value found. Continue to insertion phase:\n\n\t\tnode = {\n\t\t\t// Generate the result from original function\n\t\t\tval: selector.apply( null, args ),\n\t\t};\n\n\t\t// Avoid including the source object in the cache.\n\t\targs[ 0 ] = null;\n\t\tnode.args = args;\n\n\t\t// Don't need to check whether node is already head, since it would\n\t\t// have been returned above already if it was\n\n\t\t// Shift existing head down list\n\t\tif ( cache.head ) {\n\t\t\tcache.head.prev = node;\n\t\t\tnode.next = cache.head;\n\t\t}\n\n\t\tcache.head = node;\n\n\t\treturn node.val;\n\t}\n\n\tcallSelector.getDependants = getDependants;\n\tcallSelector.clear = clear;\n\tclear();\n\n\treturn callSelector;\n}\n","/**\n * External dependencies\n */\nimport createSelector from 'rememo';\nimport { flatMap } from 'lodash';\n\n/**\n * Shared reference to an empty array for cases where it is important to avoid\n * returning a new array reference on every invocation, as in a connected or\n * other pure component which performs `shouldComponentUpdate` check on props.\n * This should be used as a last resort, since the normalized data should be\n * maintained by the reducer result in state.\n *\n * @type {Array}\n */\nconst EMPTY_ARRAY = [];\n\n/**\n * Returns the annotations for a specific client ID.\n *\n * @param {Object} state Editor state.\n * @param {string} clientId The ID of the block to get the annotations for.\n *\n * @return {Array} The annotations applicable to this block.\n */\nexport const __experimentalGetAnnotationsForBlock = createSelector(\n\t( state, blockClientId ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] ).filter( ( annotation ) => {\n\t\t\treturn annotation.selector === 'block';\n\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\nexport function __experimentalGetAllAnnotationsForBlock(\n\tstate,\n\tblockClientId\n) {\n\treturn state?.[ blockClientId ] ?? EMPTY_ARRAY;\n}\n\n/**\n * Returns the annotations that apply to the given RichText instance.\n *\n * Both a blockClientId and a richTextIdentifier are required. This is because\n * a block might have multiple `RichText` components. This does mean that every\n * block needs to implement annotations itself.\n *\n * @param {Object} state Editor state.\n * @param {string} blockClientId The client ID for the block.\n * @param {string} richTextIdentifier Unique identifier that identifies the given RichText.\n * @return {Array} All the annotations relevant for the `RichText`.\n */\nexport const __experimentalGetAnnotationsForRichText = createSelector(\n\t( state, blockClientId, richTextIdentifier ) => {\n\t\treturn ( state?.[ blockClientId ] ?? [] )\n\t\t\t.filter( ( annotation ) => {\n\t\t\t\treturn (\n\t\t\t\t\tannotation.selector === 'range' &&\n\t\t\t\t\trichTextIdentifier === annotation.richTextIdentifier\n\t\t\t\t);\n\t\t\t} )\n\t\t\t.map( ( annotation ) => {\n\t\t\t\tconst { range, ...other } = annotation;\n\n\t\t\t\treturn {\n\t\t\t\t\t...range,\n\t\t\t\t\t...other,\n\t\t\t\t};\n\t\t\t} );\n\t},\n\t( state, blockClientId ) => [ state?.[ blockClientId ] ?? EMPTY_ARRAY ]\n);\n\n/**\n * Returns all annotations in the editor state.\n *\n * @param {Object} state Editor state.\n * @return {Array} All annotations currently applied.\n */\nexport function __experimentalGetAnnotations( state ) {\n\treturn flatMap( state, ( annotations ) => {\n\t\treturn annotations;\n\t} );\n}\n","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n// getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n// find the complete implementation of crypto (msCrypto) on IE11.\nvar getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","export default /^(?:[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;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * @typedef WPAnnotationRange\n *\n * @property {number} start The offset where the annotation should start.\n * @property {number} end The offset where the annotation should end.\n */\n\n/**\n * Adds an annotation to a block.\n *\n * The `block` attribute refers to a block ID that needs to be annotated.\n * `isBlockAnnotation` controls whether or not the annotation is a block\n * annotation. The `source` is the source of the annotation, this will be used\n * to identity groups of annotations.\n *\n * The `range` property is only relevant if the selector is 'range'.\n *\n * @param {Object} annotation The annotation to add.\n * @param {string} annotation.blockClientId The blockClientId to add the annotation to.\n * @param {string} annotation.richTextIdentifier Identifier for the RichText instance the annotation applies to.\n * @param {WPAnnotationRange} annotation.range The range at which to apply this annotation.\n * @param {string} [annotation.selector=\"range\"] The way to apply this annotation.\n * @param {string} [annotation.source=\"default\"] The source that added the annotation.\n * @param {string} [annotation.id] The ID the annotation should have. Generates a UUID by default.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalAddAnnotation( {\n\tblockClientId,\n\trichTextIdentifier = null,\n\trange = null,\n\tselector = 'range',\n\tsource = 'default',\n\tid = uuid(),\n} ) {\n\tconst action = {\n\t\ttype: 'ANNOTATION_ADD',\n\t\tid,\n\t\tblockClientId,\n\t\trichTextIdentifier,\n\t\tsource,\n\t\tselector,\n\t};\n\n\tif ( selector === 'range' ) {\n\t\taction.range = range;\n\t}\n\n\treturn action;\n}\n\n/**\n * Removes an annotation with a specific ID.\n *\n * @param {string} annotationId The annotation to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotation( annotationId ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE',\n\t\tannotationId,\n\t};\n}\n\n/**\n * Updates the range of an annotation.\n *\n * @param {string} annotationId ID of the annotation to update.\n * @param {number} start The start of the new range.\n * @param {number} end The end of the new range.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalUpdateAnnotationRange(\n\tannotationId,\n\tstart,\n\tend\n) {\n\treturn {\n\t\ttype: 'ANNOTATION_UPDATE_RANGE',\n\t\tannotationId,\n\t\tstart,\n\t\tend,\n\t};\n}\n\n/**\n * Removes all annotations of a specific source.\n *\n * @param {string} source The source to remove.\n *\n * @return {Object} Action object.\n */\nexport function __experimentalRemoveAnnotationsBySource( source ) {\n\treturn {\n\t\ttype: 'ANNOTATION_REMOVE_SOURCE',\n\t\tsource,\n\t};\n}\n","/**\n * WordPress dependencies\n */\nimport { register, createReduxStore } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\n\n/**\n * Module Constants\n */\nimport { STORE_NAME } from './constants';\n\n/**\n * Store definition for the annotations namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, {\n\treducer,\n\tselectors,\n\tactions,\n} );\n\nregister( store );\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","STORE_NAME","FORMAT_NAME","ANNOTATION_ATTRIBUTE_PREFIX","annotation","name","title","__","tagName","className","attributes","id","edit","__experimentalGetPropsForEditableTreePreparation","select","richTextIdentifier","blockClientId","annotations","__experimentalGetAnnotationsForRichText","__experimentalCreatePrepareEditableTree","formats","text","length","record","forEach","start","end","source","applyFormat","type","applyAnnotations","__experimentalGetPropsForEditableTreeChangeHandler","dispatch","removeAnnotation","__experimentalRemoveAnnotation","updateAnnotationRange","__experimentalUpdateAnnotationRange","__experimentalCreateOnChangeEditableValue","props","positions","characterFormats","i","filter","format","replace","retrieveAnnotationPositions","currentAnnotation","position","updateAnnotationsWithPositions","settings","registerFormatType","addFilter","OriginalComponent","withSelect","clientId","__experimentalGetAnnotationsForBlock","map","concat","Boolean","join","filterWithReference","collection","predicate","filteredCollection","isValidAnnotationRange","isNumber","LEAF_KEY","hasWeakMap","arrayOf","createCache","cache","clear","head","isShallowEqual","a","b","fromIndex","selector","getDependants","rootCache","getCache","WeakMap","callSelector","node","args","dependants","len","arguments","Array","apply","isUniqueByDependants","lastDependants","prev","next","val","dependant","caches","has","set","EMPTY_ARRAY","createSelector","state","__experimentalGetAllAnnotationsForBlock","range","other","__experimentalGetAnnotations","flatMap","getRandomValues","crypto","bind","msCrypto","rnds8","Uint8Array","rng","Error","uuid","byteToHex","push","toString","substr","options","buf","offset","rnds","random","arr","undefined","toLowerCase","TypeError","__experimentalAddAnnotation","action","annotationId","__experimentalRemoveAnnotationsBySource","store","createReduxStore","reducer","newAnnotation","previousAnnotationsForBlock","mapValues","annotationsForBlock","hasChangedRange","newAnnotations","selectors","actions","register"],"sourceRoot":""}
build/api-fetch/index.js CHANGED
@@ -64,7 +64,7 @@ function createNonceMiddleware(nonce) {
64
  }
65
 
66
  /* harmony default export */ var nonce = (createNonceMiddleware);
67
- //# sourceMappingURL=nonce.js.map
68
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/namespace-endpoint.js
69
  /**
70
  * @type {import('../types').APIFetchMiddleware}
@@ -92,7 +92,7 @@ const namespaceAndEndpointMiddleware = (options, next) => {
92
  };
93
 
94
  /* harmony default export */ var namespace_endpoint = (namespaceAndEndpointMiddleware);
95
- //# sourceMappingURL=namespace-endpoint.js.map
96
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/root-url.js
97
  /**
98
  * Internal dependencies
@@ -133,7 +133,7 @@ const createRootURLMiddleware = rootURL => (options, next) => {
133
  };
134
 
135
  /* harmony default export */ var root_url = (createRootURLMiddleware);
136
- //# sourceMappingURL=root-url.js.map
137
  ;// CONCATENATED MODULE: external ["wp","url"]
138
  var external_wp_url_namespaceObject = window["wp"]["url"];
139
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/preloading.js
@@ -209,7 +209,7 @@ function prepareResponse(responseData, parse) {
209
  }
210
 
211
  /* harmony default export */ var preloading = (createPreloadingMiddleware);
212
- //# sourceMappingURL=preloading.js.map
213
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/fetch-all-middleware.js
214
  /**
215
  * WordPress dependencies
@@ -350,7 +350,7 @@ const fetchAllMiddleware = async (options, next) => {
350
  };
351
 
352
  /* harmony default export */ var fetch_all_middleware = (fetchAllMiddleware);
353
- //# sourceMappingURL=fetch-all-middleware.js.map
354
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/http-v1.js
355
  /**
356
  * Set of HTTP methods which are eligible to be overridden.
@@ -396,7 +396,7 @@ const httpV1Middleware = (options, next) => {
396
  };
397
 
398
  /* harmony default export */ var http_v1 = (httpV1Middleware);
399
- //# sourceMappingURL=http-v1.js.map
400
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/user-locale.js
401
  /**
402
  * WordPress dependencies
@@ -423,7 +423,7 @@ const userLocaleMiddleware = (options, next) => {
423
  };
424
 
425
  /* harmony default export */ var user_locale = (userLocaleMiddleware);
426
- //# sourceMappingURL=user-locale.js.map
427
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/utils/response.js
428
  /**
429
  * WordPress dependencies
@@ -511,7 +511,7 @@ function parseAndThrowError(response) {
511
  throw error || unknownError;
512
  });
513
  }
514
- //# sourceMappingURL=response.js.map
515
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/media-upload.js
516
  /**
517
  * WordPress dependencies
@@ -596,7 +596,7 @@ const mediaUploadMiddleware = (options, next) => {
596
  };
597
 
598
  /* harmony default export */ var media_upload = (mediaUploadMiddleware);
599
- //# sourceMappingURL=media-upload.js.map
600
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/index.js
601
  /**
602
  * WordPress dependencies
@@ -777,7 +777,7 @@ apiFetch.createRootURLMiddleware = root_url;
777
  apiFetch.fetchAllMiddleware = fetch_all_middleware;
778
  apiFetch.mediaUploadMiddleware = media_upload;
779
  /* harmony default export */ var build_module = (apiFetch);
780
- //# sourceMappingURL=index.js.map
781
  (window.wp = window.wp || {}).apiFetch = __webpack_exports__["default"];
782
  /******/ })()
783
  ;
64
  }
65
 
66
  /* harmony default export */ var nonce = (createNonceMiddleware);
67
+
68
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/namespace-endpoint.js
69
  /**
70
  * @type {import('../types').APIFetchMiddleware}
92
  };
93
 
94
  /* harmony default export */ var namespace_endpoint = (namespaceAndEndpointMiddleware);
95
+
96
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/root-url.js
97
  /**
98
  * Internal dependencies
133
  };
134
 
135
  /* harmony default export */ var root_url = (createRootURLMiddleware);
136
+
137
  ;// CONCATENATED MODULE: external ["wp","url"]
138
  var external_wp_url_namespaceObject = window["wp"]["url"];
139
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/preloading.js
209
  }
210
 
211
  /* harmony default export */ var preloading = (createPreloadingMiddleware);
212
+
213
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/fetch-all-middleware.js
214
  /**
215
  * WordPress dependencies
350
  };
351
 
352
  /* harmony default export */ var fetch_all_middleware = (fetchAllMiddleware);
353
+
354
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/http-v1.js
355
  /**
356
  * Set of HTTP methods which are eligible to be overridden.
396
  };
397
 
398
  /* harmony default export */ var http_v1 = (httpV1Middleware);
399
+
400
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/user-locale.js
401
  /**
402
  * WordPress dependencies
423
  };
424
 
425
  /* harmony default export */ var user_locale = (userLocaleMiddleware);
426
+
427
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/utils/response.js
428
  /**
429
  * WordPress dependencies
511
  throw error || unknownError;
512
  });
513
  }
514
+
515
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/middlewares/media-upload.js
516
  /**
517
  * WordPress dependencies
596
  };
597
 
598
  /* harmony default export */ var media_upload = (mediaUploadMiddleware);
599
+
600
  ;// CONCATENATED MODULE: ./packages/api-fetch/build-module/index.js
601
  /**
602
  * WordPress dependencies
777
  apiFetch.fetchAllMiddleware = fetch_all_middleware;
778
  apiFetch.mediaUploadMiddleware = media_upload;
779
  /* harmony default export */ var build_module = (apiFetch);
780
+
781
  (window.wp = window.wp || {}).apiFetch = __webpack_exports__["default"];
782
  /******/ })()
783
  ;
build/api-fetch/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '72c0a03c7ad9642b09c5dd55cc0e07d5');
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3c1c5c18cb708462c803f221f96055ab');
build/api-fetch/index.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return O}});var r=window.wp.i18n,n=(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})},o=window.wp.url;function a(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const s=(e,t)=>{let{path:r,url:n,...a}=e;return{...a,url:n&&(0,o.addQueryArgs)(n,t),path:r&&(0,o.addQueryArgs)(r,t)}},i=e=>e.json?e.json():Promise.reject(e),c=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 d=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({...s(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=c(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=c(t)}return a};const u=new Set(["PATCH","PUT","DELETE"]),p="GET",l=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},h=e=>{const t={code:"invalid_json",message:(0,r.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))},f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(l(e,t)).catch((e=>w(e,t)))};function w(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return h(e).then((e=>{const t={code:"unknown_error",message:(0,r.__)("An unknown error occurred.")};throw e||t}))}const g={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||(0,o.hasQueryArg)(e.url,"_locale")||(e.url=(0,o.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||(0,o.hasQueryArg)(e.path,"_locale")||(e.path=(0,o.addQueryArgs)(e.path,{_locale:"user"})),t(e)),n,(e,t)=>{const{method:r=p}=e;return u.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},d],_=e=>{if(e.status>=200&&e.status<300)return e;throw e};let P=e=>{const{url:t,path:n,data:o,parse:a=!0,...s}=e;let{body:i,headers:c}=e;return c={...g,...c},o&&(i=JSON.stringify(o),c["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...m,...s,body:i,headers:c}).then((e=>Promise.resolve(e).then(_).catch((e=>w(e,a))).then((e=>f(e,a)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:(0,r.__)("You are probably offline.")}}))};function v(e){return y.reduceRight(((e,t)=>r=>t(r,e)),P)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(v.nonceEndpoint).then(_).then((e=>e.text())).then((t=>(v.nonceMiddleware.nonce=t,v(e))))))}v.use=function(e){y.unshift(e)},v.setFetchHandler=function(e){P=e},v.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},v.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,r)=>(t[(0,o.normalizePath)(r)]=e[r],t)),{});return(e,r)=>{const{parse:n=!0}=e;let s=e.path;if(!s&&e.url){const t=(0,o.getQueryArg)(e.url,"rest_route");"string"==typeof t&&(s=t)}if("string"!=typeof s)return r(e);const i=e.method||"GET",c=(0,o.normalizePath)(s);if("GET"===i&&t[c]){const e=t[c];return delete t[c],a(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][c]){const e=t[i][c];return delete t[i][c],a(e,!!n)}return r(e)}},v.createRootURLMiddleware=e=>(t,r)=>n(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})})),v.fetchAllMiddleware=d,v.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const o=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?o(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,r.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):w(t,e.parse)})).then((t=>f(t,e.parse)))};var O=v;(window.wp=window.wp||{}).apiFetch=t.default}();
 
1
+ !function(){"use strict";var e={d:function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return O}});var r=window.wp.i18n,n=(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})},o=window.wp.url;function a(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const s=(e,t)=>{let{path:r,url:n,...a}=e;return{...a,url:n&&(0,o.addQueryArgs)(n,t),path:r&&(0,o.addQueryArgs)(r,t)}},i=e=>e.json?e.json():Promise.reject(e),c=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 d=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({...s(e,{per_page:100}),parse:!1}),n=await i(r);if(!Array.isArray(n))return n;let o=c(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=c(t)}return a};const u=new Set(["PATCH","PUT","DELETE"]),p="GET",l=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},h=e=>{const t={code:"invalid_json",message:(0,r.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((()=>{throw t}))},f=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(l(e,t)).catch((e=>w(e,t)))};function w(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return h(e).then((e=>{const t={code:"unknown_error",message:(0,r.__)("An unknown error occurred.")};throw e||t}))}const g={Accept:"application/json, */*;q=0.1"},m={credentials:"include"},y=[(e,t)=>("string"!=typeof e.url||(0,o.hasQueryArg)(e.url,"_locale")||(e.url=(0,o.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||(0,o.hasQueryArg)(e.path,"_locale")||(e.path=(0,o.addQueryArgs)(e.path,{_locale:"user"})),t(e)),n,(e,t)=>{const{method:r=p}=e;return u.has(r.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":r,"Content-Type":"application/json"},method:"POST"}),t(e)},d],_=e=>{if(e.status>=200&&e.status<300)return e;throw e};let P=e=>{const{url:t,path:n,data:o,parse:a=!0,...s}=e;let{body:i,headers:c}=e;return c={...g,...c},o&&(i=JSON.stringify(o),c["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...m,...s,body:i,headers:c}).then((e=>Promise.resolve(e).then(_).catch((e=>w(e,a))).then((e=>f(e,a)))),(e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:(0,r.__)("You are probably offline.")}}))};function v(e){return y.reduceRight(((e,t)=>r=>t(r,e)),P)(e).catch((t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(v.nonceEndpoint).then(_).then((e=>e.text())).then((t=>(v.nonceMiddleware.nonce=t,v(e))))))}v.use=function(e){y.unshift(e)},v.setFetchHandler=function(e){P=e},v.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},v.createPreloadingMiddleware=function(e){const t=Object.keys(e).reduce(((t,r)=>(t[(0,o.normalizePath)(r)]=e[r],t)),{});return(e,r)=>{const{parse:n=!0}=e;let s=e.path;if(!s&&e.url){const t=(0,o.getQueryArg)(e.url,"rest_route");"string"==typeof t&&(s=t)}if("string"!=typeof s)return r(e);const i=e.method||"GET",c=(0,o.normalizePath)(s);if("GET"===i&&t[c]){const e=t[c];return delete t[c],a(e,!!n)}if("OPTIONS"===i&&t[i]&&t[i][c]){const e=t[i][c];return delete t[i][c],a(e,!!n)}return r(e)}},v.createRootURLMiddleware=e=>(t,r)=>n(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})})),v.fetchAllMiddleware=d,v.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const o=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((()=>n<5?o(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject()))));return t({...e,parse:!1}).catch((t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?o(n).catch((()=>!1!==e.parse?Promise.reject({code:"post_process",message:(0,r.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t))):w(t,e.parse)})).then((t=>f(t,e.parse)))};var O=v;(window.wp=window.wp||{}).apiFetch=t.default}();
2
+ //# sourceMappingURL=index.min.js.map
build/api-fetch/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/api-fetch/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,K,2CCA/F,IAAI,EAA+BI,OAAW,GAAQ,KC6BtD,EA1BuC,CAAEC,EAASC,KACjD,IACIC,EAAkBC,EADlBC,EAAOJ,EAAQI,KAmBnB,MAf8B,iBAAtBJ,EAAQK,WACa,iBAArBL,EAAQM,WAEfJ,EAAmBF,EAAQK,UAAUE,QAAS,WAAY,IAC1DJ,EAAkBH,EAAQM,SAASC,QAAS,MAAO,IAElDH,EADID,EACGD,EAAmB,IAAMC,EAEzBD,UAIFF,EAAQK,iBACRL,EAAQM,SAERL,EAAM,IACTD,EACHI,KAAAA,KCzBE,EAA+BL,OAAW,GAAO,IC+DrD,SAASS,EAAiBC,EAAcC,GACvC,OAAOC,QAAQC,QACdF,EACGD,EAAaI,KACb,IAAId,OAAOe,SAAUC,KAAKC,UAAWP,EAAaI,MAAQ,CAC1DI,OAAQ,IACRC,WAAY,KACZC,QAASV,EAAaU,WCrD3B,MAAMC,EAAc,CAAC,EAA4BC,KAA7B,IAAE,KAAEjB,EAAF,IAAQkB,KAAQtB,GAAlB,QAA8C,IAC9DA,EACHsB,IAAKA,IAAOC,EAAAA,EAAAA,cAAcD,EAAKD,GAC/BjB,KAAMA,IAAQmB,EAAAA,EAAAA,cAAcnB,EAAMiB,KAS7BG,EAAkBC,GACvBA,EAASC,KAAOD,EAASC,OAASf,QAAQgB,OAAQF,GAsB7CG,EAAmBH,IACxB,MAAM,KAAExB,GAjBiB4B,CAAAA,IACzB,IAAOA,EACN,MAAO,GAER,MAAMC,EAAQD,EAAWC,MAAO,yBAChC,OAAOA,EACJ,CACA7B,KAAM6B,EAAO,IAEb,IAQcC,CAAiBN,EAASN,QAAQ1B,IAAK,SACxD,OAAOQ,GAyER,MAnD2B+B,MAAQhC,EAASC,KAC3C,IAAuB,IAAlBD,EAAQU,MAEZ,OAAOT,EAAMD,GAEd,IApBuCA,CAAAA,IACvC,MAAMiC,IACFjC,EAAQI,OAAmD,IAA3CJ,EAAQI,KAAK8B,QAAS,eACpCC,IACFnC,EAAQsB,MAAiD,IAA1CtB,EAAQsB,IAAIY,QAAS,eACxC,OAAOD,GAAmBE,GAenBC,CAA+BpC,GAErC,OAAOC,EAAMD,GAId,MAAMyB,QAAiBY,EAAU,IAC7BjB,EAAapB,EAAS,CACxBsC,SAAU,MAGX5B,OAAO,IAGF6B,QAAgBf,EAAeC,GAErC,IAAOe,MAAMC,QAASF,GAErB,OAAOA,EAGR,IAAIG,EAAWd,EAAgBH,GAE/B,IAAOiB,EAEN,OAAOH,EAIR,IAAII,EAAuC,GAAKC,OAAQL,GACxD,KAAQG,GAAW,CAClB,MAAMG,QAAqBR,EAAU,IACjCrC,EAEHI,UAAM0C,EACNxB,IAAKoB,EAELhC,OAAO,IAEFqC,QAAoBvB,EAAeqB,GACzCF,EAAgBA,EAAcC,OAAQG,GACtCL,EAAWd,EAAgBiB,GAE5B,OAAOF,GCvHR,MAAMK,EAAmB,IAAIC,IAAK,CAAE,QAAS,MAAO,WAY9CC,EAAiB,MCJjB1B,EAAgB,SAAEC,GAA0C,IAAhC0B,IAAgC,yDACjE,OAAKA,EACqB,MAApB1B,EAASR,OACN,KAGDQ,EAASC,KAAOD,EAASC,OAASf,QAAQgB,OAAQF,GAGnDA,GAUF2B,EAA+B3B,IACpC,MAAM4B,EAAmB,CACxBC,KAAM,eACNC,SAASC,EAAAA,EAAAA,IAAI,+CAGd,IAAO/B,IAAcA,EAASC,KAC7B,MAAM2B,EAGP,OAAO5B,EAASC,OAAO+B,OAAO,KAC7B,MAAMJ,MAYKK,EAAiC,SAC7CjC,GAEI,IADJ0B,IACI,yDACJ,OAAOxC,QAAQC,QACdY,EAAeC,EAAU0B,IACxBM,OAASE,GAASC,EAAoBD,EAAKR,MAUvC,SAASS,EAAoBnC,GAAuC,IAA7B0B,IAA6B,yDAC1E,IAAOA,EACN,MAAM1B,EAGP,OAAO2B,EAA4B3B,GAAWoC,MAAQC,IACrD,MAAMC,EAAe,CACpBT,KAAM,gBACNC,SAASC,EAAAA,EAAAA,IAAI,+BAGd,MAAMM,GAASC,KCvDjB,MAAMC,EAAkB,CAKvBC,OAAQ,+BASHC,EAAkB,CACvBC,YAAa,WASRC,EAAc,CC3CS,CAAEpE,EAASC,KAEf,iBAAhBD,EAAQsB,MACb+C,EAAAA,EAAAA,aAAarE,EAAQsB,IAAK,aAE5BtB,EAAQsB,KAAMC,EAAAA,EAAAA,cAAcvB,EAAQsB,IAAK,CAAEgD,QAAS,UAI5B,iBAAjBtE,EAAQI,OACbiE,EAAAA,EAAAA,aAAarE,EAAQI,KAAM,aAE7BJ,EAAQI,MAAOmB,EAAAA,EAAAA,cAAcvB,EAAQI,KAAM,CAAEkE,QAAS,UAGhDrE,EAAMD,ID8BbuE,EF5BwB,CAAEvE,EAASC,KACnC,MAAM,OAAEuE,EAAStB,GAAmBlD,EAapC,OAZKgD,EAAiByB,IAAKD,EAAOE,iBACjC1E,EAAU,IACNA,EACHmB,QAAS,IACLnB,EAAQmB,QACX,yBAA0BqD,EAC1B,eAAgB,oBAEjBA,OAAQ,SAIHvE,EAAMD,IEgBb2E,GAmBKC,EAAgBnD,IACrB,GAAKA,EAASR,QAAU,KAAOQ,EAASR,OAAS,IAChD,OAAOQ,EAGR,MAAMA,GAyDP,IAAIoD,EAjD0BC,IAC7B,MAAM,IAAExD,EAAF,KAAOlB,EAAP,KAAa2E,EAAb,MAAmBrE,GAAQ,KAASsE,GAAqBF,EAC/D,IAAI,KAAEjE,EAAF,QAAQM,GAAY2D,EAsBxB,OAnBA3D,EAAU,IAAK6C,KAAoB7C,GAG9B4D,IACJlE,EAAOE,KAAKC,UAAW+D,GACvB5D,EAAS,gBAAmB,oBAGLpB,OAAOkF,MAE9B3D,GAAOlB,GAAQL,OAAOmF,SAASC,KAC/B,IACIjB,KACAc,EACHnE,KAAAA,EACAM,QAAAA,IAIqB0C,MACpBuB,GACDzE,QAAQC,QAASwE,GACfvB,KAAMe,GACNnB,OAAShC,GAAcmC,EAAoBnC,EAAUf,KACrDmD,MAAQpC,GACRiC,EAAgCjC,EAAUf,OAE3C2E,IAED,GAAKA,GAAoB,eAAbA,EAAIC,KACf,MAAMD,EAKP,KAAM,CACL/B,KAAM,cACNC,SAASC,EAAAA,EAAAA,IAAI,kCAwBjB,SAASnB,EAAUrC,GAalB,OAPwBoE,EAAYmB,aAAa,CACpBtF,EAC5BuF,IAESC,GAAoBD,EAAYC,EAAgBxF,IACvD4E,EAEIa,CAAiB1F,GAAUyD,OAASK,GACtB,8BAAfA,EAAMR,KACH3C,QAAQgB,OAAQmC,GAKvB/D,OAEEkF,MAAO5C,EAASsD,eAChB9B,KAAMe,GACNf,MAAQkB,GAAUA,EAAKa,SACvB/B,MAAQ+B,IAERvD,EAASwD,gBAAgBC,MAAQF,EAC1BvD,EAAUrC,QAMtBqC,EAAS0D,IA5HT,SAA6BP,GAC5BpB,EAAY4B,QAASR,IA4HtBnD,EAAS4D,gBA5CT,SAA0BC,GACzBrB,EAAeqB,GA6ChB7D,EAAS8D,sBE1LT,SAAgCL,GAI/B,MAAMN,EAAa,CAAExF,EAASC,KAC7B,MAAM,QAAEkB,EAAU,IAAOnB,EAIzB,IAAM,MAAMoG,KAAcjF,EACzB,GAC8B,eAA7BiF,EAAWC,eACXlF,EAASiF,KAAiBZ,EAAWM,MAErC,OAAO7F,EAAMD,GAIf,OAAOC,EAAM,IACTD,EACHmB,QAAS,IACLA,EACH,aAAcqE,EAAWM,UAO5B,OAFAN,EAAWM,MAAQA,EAEZN,GF8JRnD,EAASiE,2BJtLT,SAAqCC,GACpC,MAAMC,EAAQlH,OAAOmH,KAAMF,GAAgBG,QAAQ,CAAEC,EAAQvG,KAC5DuG,GAAQC,EAAAA,EAAAA,eAAexG,IAAWmG,EAAenG,GAC1CuG,IACgC,IAExC,MAAO,CAAE3G,EAASC,KACjB,MAAM,MAAES,GAAQ,GAASV,EAEzB,IAAI6G,EAAU7G,EAAQI,KACtB,IAAOyG,GAAW7G,EAAQsB,IAAM,CAC/B,MAAMwF,GAAgBC,EAAAA,EAAAA,aAAa/G,EAAQsB,IAAK,cAClB,iBAAlBwF,IACXD,EAAUC,GAGZ,GAAwB,iBAAZD,EACX,OAAO5G,EAAMD,GAGd,MAAMwE,EAASxE,EAAQwE,QAAU,MAC3BpE,GAAOwG,EAAAA,EAAAA,eAAeC,GAE5B,GAAK,QAAUrC,GAAUgC,EAAOpG,GAAS,CACxC,MAAM4G,EAAYR,EAAOpG,GAKzB,cAFOoG,EAAOpG,GAEPI,EAAiBwG,IAActG,GAChC,GACN,YAAc8D,GACdgC,EAAOhC,IACPgC,EAAOhC,GAAUpE,GAChB,CACD,MAAM4G,EAAYR,EAAOhC,GAAUpE,GAKnC,cAFOoG,EAAOhC,GAAUpE,GAEjBI,EAAiBwG,IAActG,GAGvC,OAAOT,EAAMD,KI4IfqC,EAAS4E,wBGvLyBC,GAAa,CAAElH,EAASC,IAClDkH,EAAgCnH,GAAWoH,IACjD,IAEIC,EAFA/F,EAAM8F,EAAgB9F,IACtBlB,EAAOgH,EAAgBhH,KAwB3B,MArBqB,iBAATA,IACXiH,EAAUH,GAEJ,IAAMA,EAAQhF,QAAS,OAC5B9B,EAAOA,EAAKG,QAAS,IAAK,MAG3BH,EAAOA,EAAKG,QAAS,MAAO,IAK3B,iBAAoB8G,IACnB,IAAMA,EAAQnF,QAAS,OAExB9B,EAAOA,EAAKG,QAAS,IAAK,MAG3Be,EAAM+F,EAAUjH,GAGVH,EAAM,IACTmH,EACH9F,IAAAA,OH2JHe,EAASsC,mBAAqBA,EAC9BtC,EAASiF,sBInKqB,CAAEtH,EAASC,KACxC,IAfD,SAA+BD,GAC9B,MAAMuH,IAAoBvH,EAAQwE,QAA6B,SAAnBxE,EAAQwE,OAKpD,SAHMxE,EAAQI,OAAoD,IAA5CJ,EAAQI,KAAK8B,QAAS,mBACtClC,EAAQsB,MAAkD,IAA3CtB,EAAQsB,IAAIY,QAAS,kBAEhBqF,EASnBC,CAAsBxH,GAC5B,OAAOC,EAAMD,GAGd,IAAIyH,EAAU,EACd,MAMMC,EAAgBC,IACrBF,IACOxH,EAAM,CACZG,KAAO,gBAAgBuH,iBACvBnD,OAAQ,OACRO,KAAM,CAAE6C,OAAQ,yBAChBlH,OAAO,IACJ+C,OAAO,IACLgE,EAdY,EAeTC,EAAaC,IAErB1H,EAAM,CACLG,KAAO,gBAAgBuH,eACvBnD,OAAQ,WAGF7D,QAAQgB,aAIjB,OAAO1B,EAAM,IAAKD,EAASU,OAAO,IAChC+C,OAAShC,IACT,MAAMkG,EAAelG,EAASN,QAAQ1B,IACrC,6BAED,OACCgC,EAASR,QAAU,KACnBQ,EAASR,OAAS,KAClB0G,EAEOD,EAAaC,GAAelE,OAAO,KAClB,IAAlBzD,EAAQU,MACLC,QAAQgB,OAAQ,CACtB2B,KAAM,eACNC,SAASC,EAAAA,EAAAA,IACR,mGAKI7C,QAAQgB,OAAQF,KAGlBmC,EAAoBnC,EAAUzB,EAAQU,UAE7CmD,MAAQpC,GACRiC,EAAgCjC,EAAUzB,EAAQU,UJ2GrD,S","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/namespace-endpoint.js","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/preloading.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/fetch-all-middleware.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/http-v1.js","webpack://wp/./packages/api-fetch/build-module/utils/@wordpress/api-fetch/src/utils/response.js","webpack://wp/./packages/api-fetch/build-module/@wordpress/api-fetch/src/index.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/user-locale.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/nonce.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/root-url.js","webpack://wp/./packages/api-fetch/build-module/middlewares/@wordpress/api-fetch/src/middlewares/media-upload.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst namespaceAndEndpointMiddleware = ( options, next ) => {\n\tlet path = options.path;\n\tlet namespaceTrimmed, endpointTrimmed;\n\n\tif (\n\t\ttypeof options.namespace === 'string' &&\n\t\ttypeof options.endpoint === 'string'\n\t) {\n\t\tnamespaceTrimmed = options.namespace.replace( /^\\/|\\/$/g, '' );\n\t\tendpointTrimmed = options.endpoint.replace( /^\\//, '' );\n\t\tif ( endpointTrimmed ) {\n\t\t\tpath = namespaceTrimmed + '/' + endpointTrimmed;\n\t\t} else {\n\t\t\tpath = namespaceTrimmed;\n\t\t}\n\t}\n\n\tdelete options.namespace;\n\tdelete options.endpoint;\n\n\treturn next( {\n\t\t...options,\n\t\tpath,\n\t} );\n};\n\nexport default namespaceAndEndpointMiddleware;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport { getQueryArg, normalizePath } from '@wordpress/url';\n\n/**\n * @param {Record<string, any>} preloadedData\n * @return {import('../types').APIFetchMiddleware} Preloading middleware.\n */\nfunction createPreloadingMiddleware( preloadedData ) {\n\tconst cache = Object.keys( preloadedData ).reduce( ( result, path ) => {\n\t\tresult[ normalizePath( path ) ] = preloadedData[ path ];\n\t\treturn result;\n\t}, /** @type {Record<string, any>} */ ( {} ) );\n\n\treturn ( options, next ) => {\n\t\tconst { parse = true } = options;\n\t\t/** @type {string | void} */\n\t\tlet rawPath = options.path;\n\t\tif ( ! rawPath && options.url ) {\n\t\t\tconst pathFromQuery = getQueryArg( options.url, 'rest_route' );\n\t\t\tif ( typeof pathFromQuery === 'string' ) {\n\t\t\t\trawPath = pathFromQuery;\n\t\t\t}\n\t\t}\n\t\tif ( typeof rawPath !== 'string' ) {\n\t\t\treturn next( options );\n\t\t}\n\n\t\tconst method = options.method || 'GET';\n\t\tconst path = normalizePath( rawPath );\n\n\t\tif ( 'GET' === method && cache[ path ] ) {\n\t\t\tconst cacheData = cache[ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time\n\t\t\tdelete cache[ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t} else if (\n\t\t\t'OPTIONS' === method &&\n\t\t\tcache[ method ] &&\n\t\t\tcache[ method ][ path ]\n\t\t) {\n\t\t\tconst cacheData = cache[ method ][ path ];\n\n\t\t\t// Unsetting the cache key ensures that the data is only used a single time\n\t\t\tdelete cache[ method ][ path ];\n\n\t\t\treturn prepareResponse( cacheData, !! parse );\n\t\t}\n\n\t\treturn next( options );\n\t};\n}\n\n/**\n * This is a helper function that sends a success response.\n *\n * @param {Record<string, any>} responseData\n * @param {boolean} parse\n * @return {Promise<any>} Promise with the response.\n */\nfunction prepareResponse( responseData, parse ) {\n\treturn Promise.resolve(\n\t\tparse\n\t\t\t? responseData.body\n\t\t\t: new window.Response( JSON.stringify( responseData.body ), {\n\t\t\t\t\tstatus: 200,\n\t\t\t\t\tstatusText: 'OK',\n\t\t\t\t\theaders: responseData.headers,\n\t\t\t } )\n\t);\n}\n\nexport default createPreloadingMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport apiFetch from '..';\n\n/**\n * Apply query arguments to both URL and Path, whichever is present.\n *\n * @param {import('../types').APIFetchOptions} props\n * @param {Record<string, string | number>} queryArgs\n * @return {import('../types').APIFetchOptions} The request with the modified query args\n */\nconst modifyQuery = ( { path, url, ...options }, queryArgs ) => ( {\n\t...options,\n\turl: url && addQueryArgs( url, queryArgs ),\n\tpath: path && addQueryArgs( path, queryArgs ),\n} );\n\n/**\n * Duplicates parsing functionality from apiFetch.\n *\n * @param {Response} response\n * @return {Promise<any>} Parsed response json.\n */\nconst parseResponse = ( response ) =>\n\tresponse.json ? response.json() : Promise.reject( response );\n\n/**\n * @param {string | null} linkHeader\n * @return {{ next?: string }} The parsed link header.\n */\nconst parseLinkHeader = ( linkHeader ) => {\n\tif ( ! linkHeader ) {\n\t\treturn {};\n\t}\n\tconst match = linkHeader.match( /<([^>]+)>; rel=\"next\"/ );\n\treturn match\n\t\t? {\n\t\t\t\tnext: match[ 1 ],\n\t\t }\n\t\t: {};\n};\n\n/**\n * @param {Response} response\n * @return {string | undefined} The next page URL.\n */\nconst getNextPageUrl = ( response ) => {\n\tconst { next } = parseLinkHeader( response.headers.get( 'link' ) );\n\treturn next;\n};\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request contains an unbounded query.\n */\nconst requestContainsUnboundedQuery = ( options ) => {\n\tconst pathIsUnbounded =\n\t\t!! options.path && options.path.indexOf( 'per_page=-1' ) !== -1;\n\tconst urlIsUnbounded =\n\t\t!! options.url && options.url.indexOf( 'per_page=-1' ) !== -1;\n\treturn pathIsUnbounded || urlIsUnbounded;\n};\n\n/**\n * The REST API enforces an upper limit on the per_page option. To handle large\n * collections, apiFetch consumers can pass `per_page=-1`; this middleware will\n * then recursively assemble a full response array from all available pages.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst fetchAllMiddleware = async ( options, next ) => {\n\tif ( options.parse === false ) {\n\t\t// If a consumer has opted out of parsing, do not apply middleware.\n\t\treturn next( options );\n\t}\n\tif ( ! requestContainsUnboundedQuery( options ) ) {\n\t\t// If neither url nor path is requesting all items, do not apply middleware.\n\t\treturn next( options );\n\t}\n\n\t// Retrieve requested page of results.\n\tconst response = await apiFetch( {\n\t\t...modifyQuery( options, {\n\t\t\tper_page: 100,\n\t\t} ),\n\t\t// Ensure headers are returned for page 1.\n\t\tparse: false,\n\t} );\n\n\tconst results = await parseResponse( response );\n\n\tif ( ! Array.isArray( results ) ) {\n\t\t// We have no reliable way of merging non-array results.\n\t\treturn results;\n\t}\n\n\tlet nextPage = getNextPageUrl( response );\n\n\tif ( ! nextPage ) {\n\t\t// There are no further pages to request.\n\t\treturn results;\n\t}\n\n\t// Iteratively fetch all remaining pages until no \"next\" header is found.\n\tlet mergedResults = /** @type {any[]} */ ( [] ).concat( results );\n\twhile ( nextPage ) {\n\t\tconst nextResponse = await apiFetch( {\n\t\t\t...options,\n\t\t\t// Ensure the URL for the next page is used instead of any provided path.\n\t\t\tpath: undefined,\n\t\t\turl: nextPage,\n\t\t\t// Ensure we still get headers so we can identify the next page.\n\t\t\tparse: false,\n\t\t} );\n\t\tconst nextResults = await parseResponse( nextResponse );\n\t\tmergedResults = mergedResults.concat( nextResults );\n\t\tnextPage = getNextPageUrl( nextResponse );\n\t}\n\treturn mergedResults;\n};\n\nexport default fetchAllMiddleware;\n","/**\n * Set of HTTP methods which are eligible to be overridden.\n *\n * @type {Set<string>}\n */\nconst OVERRIDE_METHODS = new Set( [ 'PATCH', 'PUT', 'DELETE' ] );\n\n/**\n * Default request method.\n *\n * \"A request has an associated method (a method). Unless stated otherwise it\n * is `GET`.\"\n *\n * @see https://fetch.spec.whatwg.org/#requests\n *\n * @type {string}\n */\nconst DEFAULT_METHOD = 'GET';\n\n/**\n * API Fetch middleware which overrides the request method for HTTP v1\n * compatibility leveraging the REST API X-HTTP-Method-Override header.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst httpV1Middleware = ( options, next ) => {\n\tconst { method = DEFAULT_METHOD } = options;\n\tif ( OVERRIDE_METHODS.has( method.toUpperCase() ) ) {\n\t\toptions = {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...options.headers,\n\t\t\t\t'X-HTTP-Method-Override': method,\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tmethod: 'POST',\n\t\t};\n\t}\n\n\treturn next( options );\n};\n\nexport default httpV1Middleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Parses the apiFetch response.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise<any> | null | Response} Parsed response.\n */\nconst parseResponse = ( response, shouldParseResponse = true ) => {\n\tif ( shouldParseResponse ) {\n\t\tif ( response.status === 204 ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn response.json ? response.json() : Promise.reject( response );\n\t}\n\n\treturn response;\n};\n\n/**\n * Calls the `json` function on the Response, throwing an error if the response\n * doesn't have a json function or if parsing the json itself fails.\n *\n * @param {Response} response\n * @return {Promise<any>} Parsed response.\n */\nconst parseJsonAndNormalizeError = ( response ) => {\n\tconst invalidJsonError = {\n\t\tcode: 'invalid_json',\n\t\tmessage: __( 'The response is not a valid JSON response.' ),\n\t};\n\n\tif ( ! response || ! response.json ) {\n\t\tthrow invalidJsonError;\n\t}\n\n\treturn response.json().catch( () => {\n\t\tthrow invalidJsonError;\n\t} );\n};\n\n/**\n * Parses the apiFetch response properly and normalize response errors.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n *\n * @return {Promise<any>} Parsed response.\n */\nexport const parseResponseAndNormalizeError = (\n\tresponse,\n\tshouldParseResponse = true\n) => {\n\treturn Promise.resolve(\n\t\tparseResponse( response, shouldParseResponse )\n\t).catch( ( res ) => parseAndThrowError( res, shouldParseResponse ) );\n};\n\n/**\n * Parses a response, throwing an error if parsing the response fails.\n *\n * @param {Response} response\n * @param {boolean} shouldParseResponse\n * @return {Promise<any>} Parsed response.\n */\nexport function parseAndThrowError( response, shouldParseResponse = true ) {\n\tif ( ! shouldParseResponse ) {\n\t\tthrow response;\n\t}\n\n\treturn parseJsonAndNormalizeError( response ).then( ( error ) => {\n\t\tconst unknownError = {\n\t\t\tcode: 'unknown_error',\n\t\t\tmessage: __( 'An unknown error occurred.' ),\n\t\t};\n\n\t\tthrow error || unknownError;\n\t} );\n}\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport createNonceMiddleware from './middlewares/nonce';\nimport createRootURLMiddleware from './middlewares/root-url';\nimport createPreloadingMiddleware from './middlewares/preloading';\nimport fetchAllMiddleware from './middlewares/fetch-all-middleware';\nimport namespaceEndpointMiddleware from './middlewares/namespace-endpoint';\nimport httpV1Middleware from './middlewares/http-v1';\nimport userLocaleMiddleware from './middlewares/user-locale';\nimport mediaUploadMiddleware from './middlewares/media-upload';\nimport {\n\tparseResponseAndNormalizeError,\n\tparseAndThrowError,\n} from './utils/response';\n\n/**\n * Default set of header values which should be sent with every request unless\n * explicitly provided through apiFetch options.\n *\n * @type {Record<string, string>}\n */\nconst DEFAULT_HEADERS = {\n\t// The backend uses the Accept header as a condition for considering an\n\t// incoming request as a REST request.\n\t//\n\t// See: https://core.trac.wordpress.org/ticket/44534\n\tAccept: 'application/json, */*;q=0.1',\n};\n\n/**\n * Default set of fetch option values which should be sent with every request\n * unless explicitly provided through apiFetch options.\n *\n * @type {Object}\n */\nconst DEFAULT_OPTIONS = {\n\tcredentials: 'include',\n};\n\n/** @typedef {import('./types').APIFetchMiddleware} APIFetchMiddleware */\n/** @typedef {import('./types').APIFetchOptions} APIFetchOptions */\n\n/**\n * @type {import('./types').APIFetchMiddleware[]}\n */\nconst middlewares = [\n\tuserLocaleMiddleware,\n\tnamespaceEndpointMiddleware,\n\thttpV1Middleware,\n\tfetchAllMiddleware,\n];\n\n/**\n * Register a middleware\n *\n * @param {import('./types').APIFetchMiddleware} middleware\n */\nfunction registerMiddleware( middleware ) {\n\tmiddlewares.unshift( middleware );\n}\n\n/**\n * Checks the status of a response, throwing the Response as an error if\n * it is outside the 200 range.\n *\n * @param {Response} response\n * @return {Response} The response if the status is in the 200 range.\n */\nconst checkStatus = ( response ) => {\n\tif ( response.status >= 200 && response.status < 300 ) {\n\t\treturn response;\n\t}\n\n\tthrow response;\n};\n\n/** @typedef {(options: import('./types').APIFetchOptions) => Promise<any>} FetchHandler*/\n\n/**\n * @type {FetchHandler}\n */\nconst defaultFetchHandler = ( nextOptions ) => {\n\tconst { url, path, data, parse = true, ...remainingOptions } = nextOptions;\n\tlet { body, headers } = nextOptions;\n\n\t// Merge explicitly-provided headers with default values.\n\theaders = { ...DEFAULT_HEADERS, ...headers };\n\n\t// The `data` property is a shorthand for sending a JSON body.\n\tif ( data ) {\n\t\tbody = JSON.stringify( data );\n\t\theaders[ 'Content-Type' ] = 'application/json';\n\t}\n\n\tconst responsePromise = window.fetch(\n\t\t// fall back to explicitly passing `window.location` which is the behavior if `undefined` is passed\n\t\turl || path || window.location.href,\n\t\t{\n\t\t\t...DEFAULT_OPTIONS,\n\t\t\t...remainingOptions,\n\t\t\tbody,\n\t\t\theaders,\n\t\t}\n\t);\n\n\treturn responsePromise.then(\n\t\t( value ) =>\n\t\t\tPromise.resolve( value )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.catch( ( response ) => parseAndThrowError( response, parse ) )\n\t\t\t\t.then( ( response ) =>\n\t\t\t\t\tparseResponseAndNormalizeError( response, parse )\n\t\t\t\t),\n\t\t( err ) => {\n\t\t\t// Re-throw AbortError for the users to handle it themselves.\n\t\t\tif ( err && err.name === 'AbortError' ) {\n\t\t\t\tthrow err;\n\t\t\t}\n\n\t\t\t// Otherwise, there is most likely no network connection.\n\t\t\t// Unfortunately the message might depend on the browser.\n\t\t\tthrow {\n\t\t\t\tcode: 'fetch_error',\n\t\t\t\tmessage: __( 'You are probably offline.' ),\n\t\t\t};\n\t\t}\n\t);\n};\n\n/** @type {FetchHandler} */\nlet fetchHandler = defaultFetchHandler;\n\n/**\n * Defines a custom fetch handler for making the requests that will override\n * the default one using window.fetch\n *\n * @param {FetchHandler} newFetchHandler The new fetch handler\n */\nfunction setFetchHandler( newFetchHandler ) {\n\tfetchHandler = newFetchHandler;\n}\n\n/**\n * @template T\n * @param {import('./types').APIFetchOptions} options\n * @return {Promise<T>} A promise representing the request processed via the registered middlewares.\n */\nfunction apiFetch( options ) {\n\t// creates a nested function chain that calls all middlewares and finally the `fetchHandler`,\n\t// converting `middlewares = [ m1, m2, m3 ]` into:\n\t// ```\n\t// opts1 => m1( opts1, opts2 => m2( opts2, opts3 => m3( opts3, fetchHandler ) ) );\n\t// ```\n\tconst enhancedHandler = middlewares.reduceRight( (\n\t\t/** @type {FetchHandler} */ next,\n\t\tmiddleware\n\t) => {\n\t\treturn ( workingOptions ) => middleware( workingOptions, next );\n\t}, fetchHandler );\n\n\treturn enhancedHandler( options ).catch( ( error ) => {\n\t\tif ( error.code !== 'rest_cookie_invalid_nonce' ) {\n\t\t\treturn Promise.reject( error );\n\t\t}\n\n\t\t// If the nonce is invalid, refresh it and try again.\n\t\treturn (\n\t\t\twindow\n\t\t\t\t// @ts-ignore\n\t\t\t\t.fetch( apiFetch.nonceEndpoint )\n\t\t\t\t.then( checkStatus )\n\t\t\t\t.then( ( data ) => data.text() )\n\t\t\t\t.then( ( text ) => {\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tapiFetch.nonceMiddleware.nonce = text;\n\t\t\t\t\treturn apiFetch( options );\n\t\t\t\t} )\n\t\t);\n\t} );\n}\n\napiFetch.use = registerMiddleware;\napiFetch.setFetchHandler = setFetchHandler;\n\napiFetch.createNonceMiddleware = createNonceMiddleware;\napiFetch.createPreloadingMiddleware = createPreloadingMiddleware;\napiFetch.createRootURLMiddleware = createRootURLMiddleware;\napiFetch.fetchAllMiddleware = fetchAllMiddleware;\napiFetch.mediaUploadMiddleware = mediaUploadMiddleware;\n\nexport default apiFetch;\n","/**\n * WordPress dependencies\n */\nimport { addQueryArgs, hasQueryArg } from '@wordpress/url';\n\n/**\n * @type {import('../types').APIFetchMiddleware}\n */\nconst userLocaleMiddleware = ( options, next ) => {\n\tif (\n\t\ttypeof options.url === 'string' &&\n\t\t! hasQueryArg( options.url, '_locale' )\n\t) {\n\t\toptions.url = addQueryArgs( options.url, { _locale: 'user' } );\n\t}\n\n\tif (\n\t\ttypeof options.path === 'string' &&\n\t\t! hasQueryArg( options.path, '_locale' )\n\t) {\n\t\toptions.path = addQueryArgs( options.path, { _locale: 'user' } );\n\t}\n\n\treturn next( options );\n};\n\nexport default userLocaleMiddleware;\n","/**\n * @param {string} nonce\n * @return {import('../types').APIFetchMiddleware & { nonce: string }} A middleware to enhance a request with a nonce.\n */\nfunction createNonceMiddleware( nonce ) {\n\t/**\n\t * @type {import('../types').APIFetchMiddleware & { nonce: string }}\n\t */\n\tconst middleware = ( options, next ) => {\n\t\tconst { headers = {} } = options;\n\n\t\t// If an 'X-WP-Nonce' header (or any case-insensitive variation\n\t\t// thereof) was specified, no need to add a nonce header.\n\t\tfor ( const headerName in headers ) {\n\t\t\tif (\n\t\t\t\theaderName.toLowerCase() === 'x-wp-nonce' &&\n\t\t\t\theaders[ headerName ] === middleware.nonce\n\t\t\t) {\n\t\t\t\treturn next( options );\n\t\t\t}\n\t\t}\n\n\t\treturn next( {\n\t\t\t...options,\n\t\t\theaders: {\n\t\t\t\t...headers,\n\t\t\t\t'X-WP-Nonce': middleware.nonce,\n\t\t\t},\n\t\t} );\n\t};\n\n\tmiddleware.nonce = nonce;\n\n\treturn middleware;\n}\n\nexport default createNonceMiddleware;\n","/**\n * Internal dependencies\n */\nimport namespaceAndEndpointMiddleware from './namespace-endpoint';\n\n/**\n * @param {string} rootURL\n * @return {import('../types').APIFetchMiddleware} Root URL middleware.\n */\nconst createRootURLMiddleware = ( rootURL ) => ( options, next ) => {\n\treturn namespaceAndEndpointMiddleware( options, ( optionsWithPath ) => {\n\t\tlet url = optionsWithPath.url;\n\t\tlet path = optionsWithPath.path;\n\t\tlet apiRoot;\n\n\t\tif ( typeof path === 'string' ) {\n\t\t\tapiRoot = rootURL;\n\n\t\t\tif ( -1 !== rootURL.indexOf( '?' ) ) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\tpath = path.replace( /^\\//, '' );\n\n\t\t\t// API root may already include query parameter prefix if site is\n\t\t\t// configured to use plain permalinks.\n\t\t\tif (\n\t\t\t\t'string' === typeof apiRoot &&\n\t\t\t\t-1 !== apiRoot.indexOf( '?' )\n\t\t\t) {\n\t\t\t\tpath = path.replace( '?', '&' );\n\t\t\t}\n\n\t\t\turl = apiRoot + path;\n\t\t}\n\n\t\treturn next( {\n\t\t\t...optionsWithPath,\n\t\t\turl,\n\t\t} );\n\t} );\n};\n\nexport default createRootURLMiddleware;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport {\n\tparseAndThrowError,\n\tparseResponseAndNormalizeError,\n} from '../utils/response';\n\n/**\n * @param {import('../types').APIFetchOptions} options\n * @return {boolean} True if the request is for media upload.\n */\nfunction isMediaUploadRequest( options ) {\n\tconst isCreateMethod = !! options.method && options.method === 'POST';\n\tconst isMediaEndpoint =\n\t\t( !! options.path && options.path.indexOf( '/wp/v2/media' ) !== -1 ) ||\n\t\t( !! options.url && options.url.indexOf( '/wp/v2/media' ) !== -1 );\n\n\treturn isMediaEndpoint && isCreateMethod;\n}\n\n/**\n * Middleware handling media upload failures and retries.\n *\n * @type {import('../types').APIFetchMiddleware}\n */\nconst mediaUploadMiddleware = ( options, next ) => {\n\tif ( ! isMediaUploadRequest( options ) ) {\n\t\treturn next( options );\n\t}\n\n\tlet retries = 0;\n\tconst maxRetries = 5;\n\n\t/**\n\t * @param {string} attachmentId\n\t * @return {Promise<any>} Processed post response.\n\t */\n\tconst postProcess = ( attachmentId ) => {\n\t\tretries++;\n\t\treturn next( {\n\t\t\tpath: `/wp/v2/media/${ attachmentId }/post-process`,\n\t\t\tmethod: 'POST',\n\t\t\tdata: { action: 'create-image-subsizes' },\n\t\t\tparse: false,\n\t\t} ).catch( () => {\n\t\t\tif ( retries < maxRetries ) {\n\t\t\t\treturn postProcess( attachmentId );\n\t\t\t}\n\t\t\tnext( {\n\t\t\t\tpath: `/wp/v2/media/${ attachmentId }?force=true`,\n\t\t\t\tmethod: 'DELETE',\n\t\t\t} );\n\n\t\t\treturn Promise.reject();\n\t\t} );\n\t};\n\n\treturn next( { ...options, parse: false } )\n\t\t.catch( ( response ) => {\n\t\t\tconst attachmentId = response.headers.get(\n\t\t\t\t'x-wp-upload-attachment-id'\n\t\t\t);\n\t\t\tif (\n\t\t\t\tresponse.status >= 500 &&\n\t\t\t\tresponse.status < 600 &&\n\t\t\t\tattachmentId\n\t\t\t) {\n\t\t\t\treturn postProcess( attachmentId ).catch( () => {\n\t\t\t\t\tif ( options.parse !== false ) {\n\t\t\t\t\t\treturn Promise.reject( {\n\t\t\t\t\t\t\tcode: 'post_process',\n\t\t\t\t\t\t\tmessage: __(\n\t\t\t\t\t\t\t\t'Media upload failed. If this is a photo or a large image, please scale it down and try again.'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\n\t\t\t\t\treturn Promise.reject( response );\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn parseAndThrowError( response, options.parse );\n\t\t} )\n\t\t.then( ( response ) =>\n\t\t\tparseResponseAndNormalizeError( response, options.parse )\n\t\t);\n};\n\nexport default mediaUploadMiddleware;\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","window","options","next","namespaceTrimmed","endpointTrimmed","path","namespace","endpoint","replace","prepareResponse","responseData","parse","Promise","resolve","body","Response","JSON","stringify","status","statusText","headers","modifyQuery","queryArgs","url","addQueryArgs","parseResponse","response","json","reject","getNextPageUrl","linkHeader","match","parseLinkHeader","async","pathIsUnbounded","indexOf","urlIsUnbounded","requestContainsUnboundedQuery","apiFetch","per_page","results","Array","isArray","nextPage","mergedResults","concat","nextResponse","undefined","nextResults","OVERRIDE_METHODS","Set","DEFAULT_METHOD","shouldParseResponse","parseJsonAndNormalizeError","invalidJsonError","code","message","__","catch","parseResponseAndNormalizeError","res","parseAndThrowError","then","error","unknownError","DEFAULT_HEADERS","Accept","DEFAULT_OPTIONS","credentials","middlewares","hasQueryArg","_locale","namespaceEndpointMiddleware","method","has","toUpperCase","fetchAllMiddleware","checkStatus","fetchHandler","nextOptions","data","remainingOptions","fetch","location","href","value","err","name","reduceRight","middleware","workingOptions","enhancedHandler","nonceEndpoint","text","nonceMiddleware","nonce","use","unshift","setFetchHandler","newFetchHandler","createNonceMiddleware","headerName","toLowerCase","createPreloadingMiddleware","preloadedData","cache","keys","reduce","result","normalizePath","rawPath","pathFromQuery","getQueryArg","cacheData","createRootURLMiddleware","rootURL","namespaceAndEndpointMiddleware","optionsWithPath","apiRoot","mediaUploadMiddleware","isCreateMethod","isMediaUploadRequest","retries","postProcess","attachmentId","action"],"sourceRoot":""}
build/autop/index.js CHANGED
@@ -436,7 +436,7 @@ function removep(html) {
436
 
437
  return html;
438
  }
439
- //# sourceMappingURL=index.js.map
440
  (window.wp = window.wp || {}).autop = __webpack_exports__;
441
  /******/ })()
442
  ;
436
 
437
  return html;
438
  }
439
+
440
  (window.wp = window.wp || {}).autop = __webpack_exports__;
441
  /******/ })()
442
  ;
build/autop/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'bf533050db4c5bb1bc37878821a7fe43');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => 'ddbe88dbaa5e1cabab55b6062cf317c4');
build/autop/index.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(){"use strict";var e={d:function(n,p){for(var r in p)e.o(p,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:p[r]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{autop:function(){return t},removep:function(){return c}});const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function r(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}function t(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const p=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),r=n.pop();e="";for(let r=0;r<n.length;r++){const t=n[r],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+r+"></pre>";p.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=r}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=r(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>"),p.forEach((n=>{const[p,r]=n;e=e.replace(p,r)})),-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",p=n+"|div|p",r=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*</("+p+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+p+")(?: [^>]*)?)>","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*<((?:"+r+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+r+")>\\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):""}(window.wp=window.wp||{}).autop=n}();
 
1
+ !function(){"use strict";var e={d:function(n,p){for(var r in p)e.o(p,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:p[r]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{autop:function(){return t},removep:function(){return c}});const p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function r(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}function t(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const p=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){const n=e.split("</pre>"),r=n.pop();e="";for(let r=0;r<n.length;r++){const t=n[r],c=t.indexOf("<pre");if(-1===c){e+=t;continue}const l="<pre wp-pre-tag-"+r+"></pre>";p.push([l,t.substr(c)+"</pre>"]),e+=t.substr(0,c)+l}e+=r}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=r(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>"),p.forEach((n=>{const[p,r]=n;e=e.replace(p,r)})),-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",p=n+"|div|p",r=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*</("+p+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+p+")(?: [^>]*)?)>","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*<((?:"+r+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+r+")>\\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):""}(window.wp=window.wp||{}).autop=n}();
2
+ //# sourceMappingURL=index.min.js.map
build/autop/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/autop/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/F,EAAwB,SAAST,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,6ECAvD,MAAMC,EAyCE,IAAIC,OATV,4HAoDF,SAASC,EAAmBC,EAAUC,GAErC,MAAMC,EAlCP,SAAoBC,GACnB,MAAMC,EAAQ,GACd,IAEIC,EAFAC,EAAeH,EAGnB,KAAUE,EAAQC,EAAaD,MAAOR,IAAqB,CAK1D,MAAMU,EAAgCF,EAAME,MAE5CH,EAAMI,KAAMF,EAAaG,MAAO,EAAGF,IACnCH,EAAMI,KAAMH,EAAO,IACnBC,EAAeA,EAAaG,MAAOF,EAAQF,EAAO,GAAIK,QAOvD,OAJKJ,EAAaI,QACjBN,EAAMI,KAAMF,GAGNF,EAaSO,CAAWX,GAC3B,IAAIY,GAAU,EAGd,MAAMC,EAAU5B,OAAO6B,KAAMb,GAG7B,IAAM,IAAIc,EAAI,EAAGA,EAAIb,EAAQQ,OAAQK,GAAK,EACzC,IAAM,IAAIC,EAAI,EAAGA,EAAIH,EAAQH,OAAQM,IAAM,CAC1C,MAAMC,EAASJ,EAASG,GACxB,IAAM,IAAMd,EAASa,GAAIG,QAASD,GAAW,CAC5Cf,EAASa,GAAMb,EAASa,GAAII,QAC3B,IAAIrB,OAAQmB,EAAQ,KACpBhB,EAAcgB,IAEfL,GAAU,EAEV,OASH,OAJKA,IACJZ,EAAWE,EAAQkB,KAAM,KAGnBpB,EAsBD,SAASqB,EAAOC,GAAkB,IAAZC,IAAY,yDACxC,MAAMC,EAAU,GAEhB,GAAqB,KAAhBF,EAAKG,OACT,MAAO,GAUR,IAAiC,KANjCH,GAAc,MAMJJ,QAAS,QAAkB,CACpC,MAAMQ,EAAYJ,EAAKK,MAAO,UACxBC,EAAWF,EAAUG,MAC3BP,EAAO,GAEP,IAAM,IAAIP,EAAI,EAAGA,EAAIW,EAAUhB,OAAQK,IAAM,CAC5C,MAAMe,EAAWJ,EAAWX,GACtBgB,EAAQD,EAASZ,QAAS,QAGhC,IAAgB,IAAXa,EAAe,CACnBT,GAAQQ,EACR,SAGD,MAAME,EAAO,mBAAqBjB,EAAI,UACtCS,EAAQhB,KAAM,CAAEwB,EAAMF,EAASG,OAAQF,GAAU,WAEjDT,GAAQQ,EAASG,OAAQ,EAAGF,GAAUC,EAGvCV,GAAQM,EAKT,MAAMM,EACL,qPAqBmC,KAHpCZ,EAAOvB,EAHPuB,GANAA,GANAA,GANAA,EAAOA,EAAKH,QAAS,2BAA4B,SAMrCA,QACX,IAAIrB,OAAQ,KAAOoC,EAAY,WAAY,KAC3C,WAIWf,QACX,IAAIrB,OAAQ,MAAQoC,EAAY,KAAM,KACtC,WAIWf,QAAS,WAAY,MAGD,CAAE,KAAM,2BAG9BD,QAAS,aAElBI,GADAA,EAAOA,EAAKH,QAAS,cAAe,YACxBA,QAAS,iBAAkB,eAOF,IAAjCG,EAAKJ,QAAS,eAGlBI,GADAA,GADAA,EAAOA,EAAKH,QAAS,sBAAuB,OAChCA,QAAS,iBAAkB,cAC3BA,QAAS,qCAAsC,QAOxB,IAA/BG,EAAKJ,QAAS,aAAoD,IAA9BI,EAAKJ,QAAS,YAGtDI,GADAA,GADAA,EAAOA,EAAKH,QAAS,yCAA0C,OACnDA,QAAS,oCAAqC,OAC9CA,QAAS,mCAAoC,QAIlB,IAAnCG,EAAKJ,QAAS,iBAElBI,GADAA,EAAOA,EAAKH,QAAS,yBAA0B,OACnCA,QAAS,oBAAqB,kBAO3C,MAAMgB,GAHNb,EAAOA,EAAKH,QAAS,SAAU,SAGZQ,MAAO,WAAYS,OAAQC,SAuF9C,OApFAf,EAAO,GAGPa,EAAMG,SAAWC,IAChBjB,GAAQ,MAAQiB,EAAUpB,QAAS,aAAc,IAAO,YAgCzDG,GANAA,GAHAA,GADAA,GAHAA,GANAA,GANAA,GAHAA,EAAOA,EAAKH,QAAS,eAAgB,KAGzBA,QACX,oCACA,mBAIWA,QACX,IAAIrB,OAAQ,cAAgBoC,EAAY,kBAAmB,KAC3D,OAIWf,QAAS,oBAAqB,OAG9BA,QAAS,2BAA4B,sBACrCA,QAAS,uBAAwB,sBAGjCA,QACX,IAAIrB,OAAQ,cAAgBoC,EAAY,UAAW,KACnD,OAIWf,QACX,IAAIrB,OAAQ,OAASoC,EAAY,kBAAmB,KACpD,MAIIX,IAeJD,GALAA,GAHAA,GALAA,EAAOA,EAAKH,QAAS,8BAAgCd,GACpDA,EAAO,GAAIc,QAAS,MAAO,4BAIhBA,QAAS,eAAgB,WAGzBA,QAAS,oBAAoB,CAAEqB,EAAGC,IAC7CA,EAAID,EAAI,cAIGrB,QAAS,0BAA2B,OAcjDG,GAJAA,GANAA,EAAOA,EAAKH,QACX,IAAIrB,OAAQ,OAASoC,EAAY,oBAAqB,KACtD,OAIWf,QACX,+DACA,OAEWA,QAAS,YAAa,QAGlCK,EAAQc,SAAWI,IAClB,MAAQV,EAAMW,GAAaD,EAC3BpB,EAAOA,EAAKH,QAASa,EAAMW,OAItB,IAAMrB,EAAKJ,QAAS,yBACzBI,EAAOA,EAAKH,QAAS,uBAAwB,OAGvCG,EAmBD,SAASsB,EAASC,GACxB,MAAMC,EACL,uFACKC,EAAaD,EAAY,SACzBE,EAAaF,EAAY,OAEzBG,EAAW,GACjB,IAAIC,GAAqB,EACrBC,GAAa,EAEjB,OAAON,IAK6B,IAA/BA,EAAK3B,QAAS,aAAoD,IAA9B2B,EAAK3B,QAAS,YACtD2B,EAAOA,EAAK1B,QACX,wCACEd,IACD4C,EAASzC,KAAMH,GACR,qBAMuB,IAA5BwC,EAAK3B,QAAS,UAClBgC,GAAqB,EACrBL,EAAOA,EAAK1B,QAAS,8BAAgCqB,IAEpDA,GADAA,EAAIA,EAAErB,QAAS,uBAAwB,oBACjCA,QAAS,6BAA8B,oBACpCA,QAAS,SAAU,uBAKO,IAAhC0B,EAAK3B,QAAS,cAClBiC,GAAa,EACbN,EAAOA,EAAK1B,QAAS,mCAAqCqB,GAClDA,EACLrB,QAAS,eAAgB,kBACzBA,QAAS,YAAa,QA6DU,KAHpC0B,GANAA,GAJAA,GAHAA,GAJAA,GAHAA,GADAA,GATAA,GAHAA,GAHAA,GADAA,GAHAA,GAHAA,GANAA,GAJAA,EAAOA,EAAK1B,QACX,IAAIrB,OAAQ,UAAYiD,EAAa,SAAU,KAC/C,YAEW5B,QACX,IAAIrB,OAAQ,YAAciD,EAAa,iBAAkB,KACzD,WAIW5B,QAAS,4BAA6B,YAGtCA,QAAS,yBAA0B,gBAGnCA,QAAS,WAAY,KACrBA,QAAS,gBAAiB,SAG1BA,QAAS,mBAAoB,SAG7BA,QAAS,uBAAuB,CAAEiC,EAAGC,IAC3CA,IAAoC,IAA3BA,EAAMnC,QAAS,MACrB,OAGD,QAIIC,QAAS,WAAY,WACrBA,QAAS,cAAe,aAGxBA,QACX,yCACA,iCAEWA,QAAS,2BAA4B,yBAGrCA,QACX,IAAIrB,OAAQ,YAAckD,EAAa,qBAAsB,KAC7D,WAEW7B,QACX,IAAIrB,OAAQ,UAAYkD,EAAa,SAAU,KAC/C,YAIW7B,QAAS,uBAAwB,YAGnCD,QAAS,aAElB2B,GADAA,EAAOA,EAAK1B,QAAS,cAAe,cACxBA,QAAS,iBAAkB,iBAIR,IAA3B0B,EAAK3B,QAAS,SAClB2B,EAAOA,EAAK1B,QAAS,uBAAwB,oBAIV,IAA/B0B,EAAK3B,QAAS,aAClB2B,EAAOA,EAAK1B,QAAS,8BAAgCqB,GAC7CA,EAAErB,QAAS,WAAY,OAYhC0B,GADAA,GAHAA,GAHAA,EAAOA,EAAK1B,QAAS,UAAW,WAGpBA,QAAS,+BAAgC,SAGzCA,QAAS,OAAQ,KACjBA,QAAS,eAAgB,IAEhC+B,IACJL,EAAOA,EAAK1B,QAAS,mBAAoB,OAGrCgC,IACJN,EAAOA,EAAK1B,QAAS,uBAAwB,WAIzC8B,EAASvC,SACbmC,EAAOA,EAAK1B,QAAS,kBAAkB,IACP8B,EAASK,WAInCT,GArIC,I","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/./packages/autop/build-module/@wordpress/autop/src/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * The regular expression for an HTML element.\n *\n * @type {RegExp}\n */\nconst htmlSplitRegex = ( () => {\n\t/* eslint-disable no-multi-spaces */\n\tconst comments =\n\t\t'!' + // Start of comment, after the <.\n\t\t'(?:' + // Unroll the loop: Consume everything until --> is found.\n\t\t'-(?!->)' + // Dash not followed by end of comment.\n\t\t'[^\\\\-]*' + // Consume non-dashes.\n\t\t')*' + // Loop possessively.\n\t\t'(?:-->)?'; // End of comment. If not found, match all input.\n\n\tconst cdata =\n\t\t'!\\\\[CDATA\\\\[' + // Start of comment, after the <.\n\t\t'[^\\\\]]*' + // Consume non-].\n\t\t'(?:' + // Unroll the loop: Consume everything until ]]> is found.\n\t\t'](?!]>)' + // One ] not followed by end of comment.\n\t\t'[^\\\\]]*' + // Consume non-].\n\t\t')*?' + // Loop possessively.\n\t\t'(?:]]>)?'; // End of comment. If not found, match all input.\n\n\tconst escaped =\n\t\t'(?=' + // Is the element escaped?\n\t\t'!--' +\n\t\t'|' +\n\t\t'!\\\\[CDATA\\\\[' +\n\t\t')' +\n\t\t'((?=!-)' + // If yes, which type?\n\t\tcomments +\n\t\t'|' +\n\t\tcdata +\n\t\t')';\n\n\tconst regex =\n\t\t'(' + // Capture the entire match.\n\t\t'<' + // Find start of element.\n\t\t'(' + // Conditional expression follows.\n\t\tescaped + // Find end of escaped element.\n\t\t'|' + // ... else ...\n\t\t'[^>]*>?' + // Find end of normal element.\n\t\t')' +\n\t\t')';\n\n\treturn new RegExp( regex );\n\t/* eslint-enable no-multi-spaces */\n} )();\n\n/**\n * Separate HTML elements and comments from the text.\n *\n * @param {string} input The text which has to be formatted.\n *\n * @return {string[]} The formatted text.\n */\nfunction htmlSplit( input ) {\n\tconst parts = [];\n\tlet workingInput = input;\n\n\tlet match;\n\twhile ( ( match = workingInput.match( htmlSplitRegex ) ) ) {\n\t\t// The `match` result, when invoked on a RegExp with the `g` flag (`/foo/g`) will not include `index`.\n\t\t// If the `g` flag is omitted, `index` is included.\n\t\t// `htmlSplitRegex` does not have the `g` flag so we can assert it will have an index number.\n\t\t// Assert `match.index` is a number.\n\t\tconst index = /** @type {number} */ ( match.index );\n\n\t\tparts.push( workingInput.slice( 0, index ) );\n\t\tparts.push( match[ 0 ] );\n\t\tworkingInput = workingInput.slice( index + match[ 0 ].length );\n\t}\n\n\tif ( workingInput.length ) {\n\t\tparts.push( workingInput );\n\t}\n\n\treturn parts;\n}\n\n/**\n * Replace characters or phrases within HTML elements only.\n *\n * @param {string} haystack The text which has to be formatted.\n * @param {Record<string,string>} replacePairs In the form {from: 'to', …}.\n *\n * @return {string} The formatted text.\n */\nfunction replaceInHtmlTags( haystack, replacePairs ) {\n\t// Find all elements.\n\tconst textArr = htmlSplit( haystack );\n\tlet changed = false;\n\n\t// Extract all needles.\n\tconst needles = Object.keys( replacePairs );\n\n\t// Loop through delimiters (elements) only.\n\tfor ( let i = 1; i < textArr.length; i += 2 ) {\n\t\tfor ( let j = 0; j < needles.length; j++ ) {\n\t\t\tconst needle = needles[ j ];\n\t\t\tif ( -1 !== textArr[ i ].indexOf( needle ) ) {\n\t\t\t\ttextArr[ i ] = textArr[ i ].replace(\n\t\t\t\t\tnew RegExp( needle, 'g' ),\n\t\t\t\t\treplacePairs[ needle ]\n\t\t\t\t);\n\t\t\t\tchanged = true;\n\t\t\t\t// After one strtr() break out of the foreach loop and look at next element.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( changed ) {\n\t\thaystack = textArr.join( '' );\n\t}\n\n\treturn haystack;\n}\n\n/**\n * Replaces double line-breaks with paragraph elements.\n *\n * A group of regex replaces used to identify text formatted with newlines and\n * replace double line-breaks with HTML paragraph tags. The remaining line-\n * breaks after conversion become `<br />` tags, unless br is set to 'false'.\n *\n * @param {string} text The text which has to be formatted.\n * @param {boolean} br Optional. If set, will convert all remaining line-\n * breaks after paragraphing. Default true.\n *\n * @example\n *```js\n * import { autop } from '@wordpress/autop';\n * autop( 'my text' ); // \"<p>my text</p>\"\n * ```\n *\n * @return {string} Text which has been converted into paragraph tags.\n */\nexport function autop( text, br = true ) {\n\tconst preTags = [];\n\n\tif ( text.trim() === '' ) {\n\t\treturn '';\n\t}\n\n\t// Just to make things a little easier, pad the end.\n\ttext = text + '\\n';\n\n\t/*\n\t * Pre tags shouldn't be touched by autop.\n\t * Replace pre tags with placeholders and bring them back after autop.\n\t */\n\tif ( text.indexOf( '<pre' ) !== -1 ) {\n\t\tconst textParts = text.split( '</pre>' );\n\t\tconst lastText = textParts.pop();\n\t\ttext = '';\n\n\t\tfor ( let i = 0; i < textParts.length; i++ ) {\n\t\t\tconst textPart = textParts[ i ];\n\t\t\tconst start = textPart.indexOf( '<pre' );\n\n\t\t\t// Malformed html?\n\t\t\tif ( start === -1 ) {\n\t\t\t\ttext += textPart;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst name = '<pre wp-pre-tag-' + i + '></pre>';\n\t\t\tpreTags.push( [ name, textPart.substr( start ) + '</pre>' ] );\n\n\t\t\ttext += textPart.substr( 0, start ) + name;\n\t\t}\n\n\t\ttext += lastText;\n\t}\n\t// Change multiple <br>s into two line breaks, which will turn into paragraphs.\n\ttext = text.replace( /<br\\s*\\/?>\\s*<br\\s*\\/?>/g, '\\n\\n' );\n\n\tconst allBlocks =\n\t\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)';\n\n\t// Add a double line break above block-level opening tags.\n\ttext = text.replace(\n\t\tnew RegExp( '(<' + allBlocks + '[\\\\s/>])', 'g' ),\n\t\t'\\n\\n$1'\n\t);\n\n\t// Add a double line break below block-level closing tags.\n\ttext = text.replace(\n\t\tnew RegExp( '(</' + allBlocks + '>)', 'g' ),\n\t\t'$1\\n\\n'\n\t);\n\n\t// Standardize newline characters to \"\\n\".\n\ttext = text.replace( /\\r\\n|\\r/g, '\\n' );\n\n\t// Find newlines in all elements and add placeholders.\n\ttext = replaceInHtmlTags( text, { '\\n': ' <!-- wpnl --> ' } );\n\n\t// Collapse line breaks before and after <option> elements so they don't get autop'd.\n\tif ( text.indexOf( '<option' ) !== -1 ) {\n\t\ttext = text.replace( /\\s*<option/g, '<option' );\n\t\ttext = text.replace( /<\\/option>\\s*/g, '</option>' );\n\t}\n\n\t/*\n\t * Collapse line breaks inside <object> elements, before <param> and <embed> elements\n\t * so they don't get autop'd.\n\t */\n\tif ( text.indexOf( '</object>' ) !== -1 ) {\n\t\ttext = text.replace( /(<object[^>]*>)\\s*/g, '$1' );\n\t\ttext = text.replace( /\\s*<\\/object>/g, '</object>' );\n\t\ttext = text.replace( /\\s*(<\\/?(?:param|embed)[^>]*>)\\s*/g, '$1' );\n\t}\n\n\t/*\n\t * Collapse line breaks inside <audio> and <video> elements,\n\t * before and after <source> and <track> elements.\n\t */\n\tif ( text.indexOf( '<source' ) !== -1 || text.indexOf( '<track' ) !== -1 ) {\n\t\ttext = text.replace( /([<\\[](?:audio|video)[^>\\]]*[>\\]])\\s*/g, '$1' );\n\t\ttext = text.replace( /\\s*([<\\[]\\/(?:audio|video)[>\\]])/g, '$1' );\n\t\ttext = text.replace( /\\s*(<(?:source|track)[^>]*>)\\s*/g, '$1' );\n\t}\n\n\t// Collapse line breaks before and after <figcaption> elements.\n\tif ( text.indexOf( '<figcaption' ) !== -1 ) {\n\t\ttext = text.replace( /\\s*(<figcaption[^>]*>)/, '$1' );\n\t\ttext = text.replace( /<\\/figcaption>\\s*/, '</figcaption>' );\n\t}\n\n\t// Remove more than two contiguous line breaks.\n\ttext = text.replace( /\\n\\n+/g, '\\n\\n' );\n\n\t// Split up the contents into an array of strings, separated by double line breaks.\n\tconst texts = text.split( /\\n\\s*\\n/ ).filter( Boolean );\n\n\t// Reset text prior to rebuilding.\n\ttext = '';\n\n\t// Rebuild the content as a string, wrapping every bit with a <p>.\n\ttexts.forEach( ( textPiece ) => {\n\t\ttext += '<p>' + textPiece.replace( /^\\n*|\\n*$/g, '' ) + '</p>\\n';\n\t} );\n\n\t// Under certain strange conditions it could create a P of entirely whitespace.\n\ttext = text.replace( /<p>\\s*<\\/p>/g, '' );\n\n\t// Add a closing <p> inside <div>, <address>, or <form> tag if missing.\n\ttext = text.replace(\n\t\t/<p>([^<]+)<\\/(div|address|form)>/g,\n\t\t'<p>$1</p></$2>'\n\t);\n\n\t// If an opening or closing block element tag is wrapped in a <p>, unwrap it.\n\ttext = text.replace(\n\t\tnew RegExp( '<p>\\\\s*(</?' + allBlocks + '[^>]*>)\\\\s*</p>', 'g' ),\n\t\t'$1'\n\t);\n\n\t// In some cases <li> may get wrapped in <p>, fix them.\n\ttext = text.replace( /<p>(<li.+?)<\\/p>/g, '$1' );\n\n\t// If a <blockquote> is wrapped with a <p>, move it inside the <blockquote>.\n\ttext = text.replace( /<p><blockquote([^>]*)>/gi, '<blockquote$1><p>' );\n\ttext = text.replace( /<\\/blockquote><\\/p>/g, '</p></blockquote>' );\n\n\t// If an opening or closing block element tag is preceded by an opening <p> tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '<p>\\\\s*(</?' + allBlocks + '[^>]*>)', 'g' ),\n\t\t'$1'\n\t);\n\n\t// If an opening or closing block element tag is followed by a closing <p> tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '(</?' + allBlocks + '[^>]*>)\\\\s*</p>', 'g' ),\n\t\t'$1'\n\t);\n\n\t// Optionally insert line breaks.\n\tif ( br ) {\n\t\t// Replace newlines that shouldn't be touched with a placeholder.\n\t\ttext = text.replace( /<(script|style).*?<\\/\\\\1>/g, ( match ) =>\n\t\t\tmatch[ 0 ].replace( /\\n/g, '<WPPreserveNewline />' )\n\t\t);\n\n\t\t// Normalize <br>\n\t\ttext = text.replace( /<br>|<br\\/>/g, '<br />' );\n\n\t\t// Replace any new line characters that aren't preceded by a <br /> with a <br />.\n\t\ttext = text.replace( /(<br \\/>)?\\s*\\n/g, ( a, b ) =>\n\t\t\tb ? a : '<br />\\n'\n\t\t);\n\n\t\t// Replace newline placeholders with newlines.\n\t\ttext = text.replace( /<WPPreserveNewline \\/>/g, '\\n' );\n\t}\n\n\t// If a <br /> tag is after an opening or closing block tag, remove it.\n\ttext = text.replace(\n\t\tnew RegExp( '(</?' + allBlocks + '[^>]*>)\\\\s*<br />', 'g' ),\n\t\t'$1'\n\t);\n\n\t// If a <br /> tag is before a subset of opening or closing block tags, remove it.\n\ttext = text.replace(\n\t\t/<br \\/>(\\s*<\\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,\n\t\t'$1'\n\t);\n\ttext = text.replace( /\\n<\\/p>$/g, '</p>' );\n\n\t// Replace placeholder <pre> tags with their original content.\n\tpreTags.forEach( ( preTag ) => {\n\t\tconst [ name, original ] = preTag;\n\t\ttext = text.replace( name, original );\n\t} );\n\n\t// Restore newlines in all elements.\n\tif ( -1 !== text.indexOf( '<!-- wpnl -->' ) ) {\n\t\ttext = text.replace( /\\s?<!-- wpnl -->\\s?/g, '\\n' );\n\t}\n\n\treturn text;\n}\n\n/**\n * Replaces `<p>` tags with two line breaks. \"Opposite\" of autop().\n *\n * Replaces `<p>` tags with two line breaks except where the `<p>` has attributes.\n * Unifies whitespace. Indents `<li>`, `<dt>` and `<dd>` for better readability.\n *\n * @param {string} html The content from the editor.\n *\n * @example\n * ```js\n * import { removep } from '@wordpress/autop';\n * removep( '<p>my text</p>' ); // \"my text\"\n * ```\n *\n * @return {string} The content with stripped paragraph tags.\n */\nexport function removep( html ) {\n\tconst blocklist =\n\t\t'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure';\n\tconst blocklist1 = blocklist + '|div|p';\n\tconst blocklist2 = blocklist + '|pre';\n\t/** @type {string[]} */\n\tconst preserve = [];\n\tlet preserveLinebreaks = false;\n\tlet preserveBr = false;\n\n\tif ( ! html ) {\n\t\treturn '';\n\t}\n\n\t// Protect script and style tags.\n\tif ( html.indexOf( '<script' ) !== -1 || html.indexOf( '<style' ) !== -1 ) {\n\t\thtml = html.replace(\n\t\t\t/<(script|style)[^>]*>[\\s\\S]*?<\\/\\1>/g,\n\t\t\t( match ) => {\n\t\t\t\tpreserve.push( match );\n\t\t\t\treturn '<wp-preserve>';\n\t\t\t}\n\t\t);\n\t}\n\n\t// Protect pre tags.\n\tif ( html.indexOf( '<pre' ) !== -1 ) {\n\t\tpreserveLinebreaks = true;\n\t\thtml = html.replace( /<pre[^>]*>[\\s\\S]+?<\\/pre>/g, ( a ) => {\n\t\t\ta = a.replace( /<br ?\\/?>(\\r\\n|\\n)?/g, '<wp-line-break>' );\n\t\t\ta = a.replace( /<\\/?p( [^>]*)?>(\\r\\n|\\n)?/g, '<wp-line-break>' );\n\t\t\treturn a.replace( /\\r?\\n/g, '<wp-line-break>' );\n\t\t} );\n\t}\n\n\t// Remove line breaks but keep <br> tags inside image captions.\n\tif ( html.indexOf( '[caption' ) !== -1 ) {\n\t\tpreserveBr = true;\n\t\thtml = html.replace( /\\[caption[\\s\\S]+?\\[\\/caption\\]/g, ( a ) => {\n\t\t\treturn a\n\t\t\t\t.replace( /<br([^>]*)>/g, '<wp-temp-br$1>' )\n\t\t\t\t.replace( /[\\r\\n\\t]+/, '' );\n\t\t} );\n\t}\n\n\t// Normalize white space characters before and after block tags.\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*</(' + blocklist1 + ')>\\\\s*', 'g' ),\n\t\t'</$1>\\n'\n\t);\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*<((?:' + blocklist1 + ')(?: [^>]*)?)>', 'g' ),\n\t\t'\\n<$1>'\n\t);\n\n\t// Mark </p> if it has any attributes.\n\thtml = html.replace( /(<p [^>]+>[\\s\\S]*?)<\\/p>/g, '$1</p#>' );\n\n\t// Preserve the first <p> inside a <div>.\n\thtml = html.replace( /<div( [^>]*)?>\\s*<p>/gi, '<div$1>\\n\\n' );\n\n\t// Remove paragraph tags.\n\thtml = html.replace( /\\s*<p>/gi, '' );\n\thtml = html.replace( /\\s*<\\/p>\\s*/gi, '\\n\\n' );\n\n\t// Normalize white space chars and remove multiple line breaks.\n\thtml = html.replace( /\\n[\\s\\u00a0]+\\n/g, '\\n\\n' );\n\n\t// Replace <br> tags with line breaks.\n\thtml = html.replace( /(\\s*)<br ?\\/?>\\s*/gi, ( _, space ) => {\n\t\tif ( space && space.indexOf( '\\n' ) !== -1 ) {\n\t\t\treturn '\\n\\n';\n\t\t}\n\n\t\treturn '\\n';\n\t} );\n\n\t// Fix line breaks around <div>.\n\thtml = html.replace( /\\s*<div/g, '\\n<div' );\n\thtml = html.replace( /<\\/div>\\s*/g, '</div>\\n' );\n\n\t// Fix line breaks around caption shortcodes.\n\thtml = html.replace(\n\t\t/\\s*\\[caption([^\\[]+)\\[\\/caption\\]\\s*/gi,\n\t\t'\\n\\n[caption$1[/caption]\\n\\n'\n\t);\n\thtml = html.replace( /caption\\]\\n\\n+\\[caption/g, 'caption]\\n\\n[caption' );\n\n\t// Pad block elements tags with a line break.\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*<((?:' + blocklist2 + ')(?: [^>]*)?)\\\\s*>', 'g' ),\n\t\t'\\n<$1>'\n\t);\n\thtml = html.replace(\n\t\tnew RegExp( '\\\\s*</(' + blocklist2 + ')>\\\\s*', 'g' ),\n\t\t'</$1>\\n'\n\t);\n\n\t// Indent <li>, <dt> and <dd> tags.\n\thtml = html.replace( /<((li|dt|dd)[^>]*)>/g, ' \\t<$1>' );\n\n\t// Fix line breaks around <select> and <option>.\n\tif ( html.indexOf( '<option' ) !== -1 ) {\n\t\thtml = html.replace( /\\s*<option/g, '\\n<option' );\n\t\thtml = html.replace( /\\s*<\\/select>/g, '\\n</select>' );\n\t}\n\n\t// Pad <hr> with two line breaks.\n\tif ( html.indexOf( '<hr' ) !== -1 ) {\n\t\thtml = html.replace( /\\s*<hr( [^>]*)?>\\s*/g, '\\n\\n<hr$1>\\n\\n' );\n\t}\n\n\t// Remove line breaks in <object> tags.\n\tif ( html.indexOf( '<object' ) !== -1 ) {\n\t\thtml = html.replace( /<object[\\s\\S]+?<\\/object>/g, ( a ) => {\n\t\t\treturn a.replace( /[\\r\\n]+/g, '' );\n\t\t} );\n\t}\n\n\t// Unmark special paragraph closing tags.\n\thtml = html.replace( /<\\/p#>/g, '</p>\\n' );\n\n\t// Pad remaining <p> tags whit a line break.\n\thtml = html.replace( /\\s*(<p [^>]+>[\\s\\S]*?<\\/p>)/g, '\\n$1' );\n\n\t// Trim.\n\thtml = html.replace( /^\\s+/, '' );\n\thtml = html.replace( /[\\s\\u00a0]+$/, '' );\n\n\tif ( preserveLinebreaks ) {\n\t\thtml = html.replace( /<wp-line-break>/g, '\\n' );\n\t}\n\n\tif ( preserveBr ) {\n\t\thtml = html.replace( /<wp-temp-br([^>]*)>/g, '<br$1>' );\n\t}\n\n\t// Restore preserved tags.\n\tif ( preserve.length ) {\n\t\thtml = html.replace( /<wp-preserve>/g, () => {\n\t\t\treturn /** @type {string} */ ( preserve.shift() );\n\t\t} );\n\t}\n\n\treturn html;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","htmlSplitRegex","RegExp","replaceInHtmlTags","haystack","replacePairs","textArr","input","parts","match","workingInput","index","push","slice","length","htmlSplit","changed","needles","keys","i","j","needle","indexOf","replace","join","autop","text","br","preTags","trim","textParts","split","lastText","pop","textPart","start","name","substr","allBlocks","texts","filter","Boolean","forEach","textPiece","a","b","preTag","original","removep","html","blocklist","blocklist1","blocklist2","preserve","preserveLinebreaks","preserveBr","_","space","shift"],"sourceRoot":""}
build/blob/index.js CHANGED
@@ -123,7 +123,7 @@ function isBlobURL(url) {
123
 
124
  return url.indexOf('blob:') === 0;
125
  }
126
- //# sourceMappingURL=index.js.map
127
  (window.wp = window.wp || {}).blob = __webpack_exports__;
128
  /******/ })()
129
  ;
123
 
124
  return url.indexOf('blob:') === 0;
125
  }
126
+
127
  (window.wp = window.wp || {}).blob = __webpack_exports__;
128
  /******/ })()
129
  ;
build/blob/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '19fc7cf023d3d6d20c4a2f67e976407f');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '1bca2736f37e5f66b473bcfa4c0f1ea5');
build/blob/index.min.js CHANGED
@@ -1 +1,2 @@
1
- !function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{createBlobURL:function(){return u},getBlobByURL:function(){return i},getBlobTypeByURL:function(){return c},revokeBlobURL:function(){return f},isBlobURL:function(){return l}});const{createObjectURL:t,revokeObjectURL:o}=window.URL,r={};function u(e){const n=t(e);return r[n]=e,n}function i(e){return r[e]}function c(e){var n;return null===(n=i(e))||void 0===n?void 0:n.type.split("/")[0]}function f(e){r[e]&&o(e),delete r[e]}function l(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}(window.wp=window.wp||{}).blob=n}();
 
1
+ !function(){"use strict";var e={d:function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{createBlobURL:function(){return u},getBlobByURL:function(){return i},getBlobTypeByURL:function(){return c},revokeBlobURL:function(){return f},isBlobURL:function(){return l}});const{createObjectURL:t,revokeObjectURL:o}=window.URL,r={};function u(e){const n=t(e);return r[n]=e,n}function i(e){return r[e]}function c(e){var n;return null===(n=i(e))||void 0===n?void 0:n.type.split("/")[0]}function f(e){r[e]&&o(e),delete r[e]}function l(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}(window.wp=window.wp||{}).blob=n}();
2
+ //# sourceMappingURL=index.min.js.map
build/blob/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/blob/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/F,EAAwB,SAAST,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,kMCFvD,MAAM,gBAAEC,EAAF,gBAAmBC,GAAoBC,OAAOC,IAK9CC,EAAQ,GASP,SAASC,EAAeC,GAC9B,MAAMC,EAAMP,EAAiBM,GAI7B,OAFAF,EAAOG,GAAQD,EAERC,EAYD,SAASC,EAAcD,GAC7B,OAAOH,EAAOG,GAYR,SAASE,EAAkBF,GAAM,MACvC,iBAAOC,EAAcD,UAArB,aAAO,EAAqBG,KAAKC,MAAO,KAAO,GAQzC,SAASC,EAAeL,GACzBH,EAAOG,IACXN,EAAiBM,UAGXH,EAAOG,GAUR,SAASM,EAAWN,GAC1B,SAAOA,IAASA,EAAIO,UAGc,IAA3BP,EAAIO,QAAS,U","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/./packages/blob/build-module/@wordpress/blob/src/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Browser dependencies\n */\nconst { createObjectURL, revokeObjectURL } = window.URL;\n\n/**\n * @type {Record<string, File|undefined>}\n */\nconst cache = {};\n\n/**\n * Create a blob URL from a file.\n *\n * @param {File} file The file to create a blob URL for.\n *\n * @return {string} The blob URL.\n */\nexport function createBlobURL( file ) {\n\tconst url = createObjectURL( file );\n\n\tcache[ url ] = file;\n\n\treturn url;\n}\n\n/**\n * Retrieve a file based on a blob URL. The file must have been created by\n * `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return\n * `undefined`.\n *\n * @param {string} url The blob URL.\n *\n * @return {File|undefined} The file for the blob URL.\n */\nexport function getBlobByURL( url ) {\n\treturn cache[ url ];\n}\n\n/**\n * Retrieve a blob type based on URL. The file must have been created by\n * `createBlobURL` and not removed by `revokeBlobURL`, otherwise it will return\n * `undefined`.\n *\n * @param {string} url The blob URL.\n *\n * @return {string|undefined} The blob type.\n */\nexport function getBlobTypeByURL( url ) {\n\treturn getBlobByURL( url )?.type.split( '/' )[ 0 ]; // 0: media type , 1: file extension eg ( type: 'image/jpeg' ).\n}\n\n/**\n * Remove the resource and file cache from memory.\n *\n * @param {string} url The blob URL.\n */\nexport function revokeBlobURL( url ) {\n\tif ( cache[ url ] ) {\n\t\trevokeObjectURL( url );\n\t}\n\n\tdelete cache[ url ];\n}\n\n/**\n * Check whether a url is a blob url.\n *\n * @param {string} url The URL.\n *\n * @return {boolean} Is the url a blob url?\n */\nexport function isBlobURL( url ) {\n\tif ( ! url || ! url.indexOf ) {\n\t\treturn false;\n\t}\n\treturn url.indexOf( 'blob:' ) === 0;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","createObjectURL","revokeObjectURL","window","URL","cache","createBlobURL","file","url","getBlobByURL","getBlobTypeByURL","type","split","revokeBlobURL","isBlobURL","indexOf"],"sourceRoot":""}
build/block-directory/index.js CHANGED
@@ -216,7 +216,7 @@ const errorNotices = function () {
216
  blockManagement,
217
  errorNotices
218
  }));
219
- //# sourceMappingURL=reducer.js.map
220
  ;// CONCATENATED MODULE: external ["wp","blockEditor"]
221
  var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
222
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/has-block-type.js
@@ -253,7 +253,7 @@ function hasBlockType(blockType) {
253
 
254
  return false;
255
  }
256
- //# sourceMappingURL=has-block-type.js.map
257
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/selectors.js
258
  /**
259
  * WordPress dependencies
@@ -368,7 +368,7 @@ function getErrorNotices(state) {
368
  function getErrorNoticeForBlock(state, blockId) {
369
  return state.errorNotices[blockId];
370
  }
371
- //# sourceMappingURL=selectors.js.map
372
  ;// CONCATENATED MODULE: external ["wp","i18n"]
373
  var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
374
  ;// CONCATENATED MODULE: external ["wp","apiFetch"]
@@ -376,6 +376,8 @@ var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
376
  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
377
  ;// CONCATENATED MODULE: external ["wp","notices"]
378
  var external_wp_notices_namespaceObject = window["wp"]["notices"];
 
 
379
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/load-assets.js
380
  /**
381
  * WordPress dependencies
@@ -448,7 +450,7 @@ async function loadAssets() {
448
  await loadAsset(newAsset);
449
  }
450
  }
451
- //# sourceMappingURL=load-assets.js.map
452
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/get-plugin-url.js
453
  /**
454
  * Get the plugin's direct API link out of a block-directory response.
@@ -470,8 +472,12 @@ function getPluginUrl(block) {
470
 
471
  return false;
472
  }
473
- //# sourceMappingURL=get-plugin-url.js.map
474
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/actions.js
 
 
 
 
475
  /**
476
  * WordPress dependencies
477
  */
@@ -479,6 +485,8 @@ function getPluginUrl(block) {
479
 
480
 
481
 
 
 
482
  /**
483
  * Internal dependencies
484
  */
@@ -531,7 +539,8 @@ const installBlockType = block => async _ref => {
531
  dispatch
532
  } = _ref;
533
  const {
534
- id
 
535
  } = block;
536
  let success = false;
537
  dispatch.clearErrorNotice(id);
@@ -567,11 +576,27 @@ const installBlockType = block => async _ref => {
567
  links: { ...block.links,
568
  ...links
569
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
570
  });
571
  await loadAssets();
572
  const registeredBlocks = registry.select(external_wp_blocks_namespaceObject.store).getBlockTypes();
573
 
574
- if (!registeredBlocks.some(i => i.name === block.name)) {
575
  throw new Error((0,external_wp_i18n_namespaceObject.__)('Error registering block. Try reloading the page.'));
576
  }
577
 
@@ -716,7 +741,7 @@ function clearErrorNotice(blockId) {
716
  blockId
717
  };
718
  }
719
- //# sourceMappingURL=actions.js.map
720
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/resolvers.js
721
  /**
722
  * External dependencies
@@ -750,7 +775,7 @@ const resolvers_getDownloadableBlocks = filterValue => async _ref => {
750
  dispatch(receiveDownloadableBlocks(blocks, filterValue));
751
  } catch {}
752
  };
753
- //# sourceMappingURL=resolvers.js.map
754
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/index.js
755
  /**
756
  * WordPress dependencies
@@ -781,8 +806,7 @@ const storeConfig = {
781
  reducer: reducer,
782
  selectors: selectors_namespaceObject,
783
  actions: actions_namespaceObject,
784
- resolvers: resolvers_namespaceObject,
785
- __experimentalUseThunks: true
786
  };
787
  /**
788
  * Store definition for the block directory namespace.
@@ -794,7 +818,7 @@ const storeConfig = {
794
 
795
  const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, storeConfig);
796
  (0,external_wp_data_namespaceObject.register)(store);
797
- //# sourceMappingURL=index.js.map
798
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/auto-block-uninstaller/index.js
799
  /**
800
  * WordPress dependencies
@@ -830,7 +854,7 @@ function AutoBlockUninstaller() {
830
  }, [shouldRemoveBlockTypes]);
831
  return null;
832
  }
833
- //# sourceMappingURL=index.js.map
834
  ;// CONCATENATED MODULE: external ["wp","components"]
835
  var external_wp_components_namespaceObject = window["wp"]["components"];
836
  ;// CONCATENATED MODULE: external ["wp","compose"]
@@ -888,7 +912,7 @@ function Icon(_ref) {
888
  }
889
 
890
  /* harmony default export */ var icon = (Icon);
891
- //# sourceMappingURL=index.js.map
892
  ;// CONCATENATED MODULE: external ["wp","primitives"]
893
  var external_wp_primitives_namespaceObject = window["wp"]["primitives"];
894
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-filled.js
@@ -905,7 +929,7 @@ const starFilled = (0,external_wp_element_namespaceObject.createElement)(externa
905
  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"
906
  }));
907
  /* harmony default export */ var star_filled = (starFilled);
908
- //# sourceMappingURL=star-filled.js.map
909
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-half.js
910
 
911
 
@@ -920,7 +944,7 @@ const starHalf = (0,external_wp_element_namespaceObject.createElement)(external_
920
  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"
921
  }));
922
  /* harmony default export */ var star_half = (starHalf);
923
- //# sourceMappingURL=star-half.js.map
924
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-empty.js
925
 
926
 
@@ -937,7 +961,7 @@ const starEmpty = (0,external_wp_element_namespaceObject.createElement)(external
937
  clipRule: "evenodd"
938
  }));
939
  /* harmony default export */ var star_empty = (starEmpty);
940
- //# sourceMappingURL=star-empty.js.map
941
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
942
 
943
 
@@ -983,7 +1007,7 @@ function Stars(_ref) {
983
  }
984
 
985
  /* harmony default export */ var stars = (Stars);
986
- //# sourceMappingURL=stars.js.map
987
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/index.js
988
 
989
 
@@ -1002,7 +1026,7 @@ const BlockRatings = _ref => {
1002
  }));
1003
  };
1004
  /* harmony default export */ var block_ratings = (BlockRatings);
1005
- //# sourceMappingURL=index.js.map
1006
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-icon/index.js
1007
 
1008
 
@@ -1028,7 +1052,7 @@ function DownloadableBlockIcon(_ref) {
1028
  }
1029
 
1030
  /* harmony default export */ var downloadable_block_icon = (DownloadableBlockIcon);
1031
- //# sourceMappingURL=index.js.map
1032
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-notice/index.js
1033
 
1034
 
@@ -1059,7 +1083,7 @@ const DownloadableBlockNotice = _ref => {
1059
  }, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
1060
  };
1061
  /* harmony default export */ var downloadable_block_notice = (DownloadableBlockNotice);
1062
- //# sourceMappingURL=index.js.map
1063
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-list-item/index.js
1064
 
1065
 
@@ -1206,7 +1230,7 @@ function DownloadableBlockListItem(_ref3) {
1206
  }
1207
 
1208
  /* harmony default export */ var downloadable_block_list_item = (DownloadableBlockListItem);
1209
- //# sourceMappingURL=index.js.map
1210
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-list/index.js
1211
 
1212
 
@@ -1276,7 +1300,7 @@ function DownloadableBlocksList(_ref) {
1276
  }
1277
 
1278
  /* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList);
1279
- //# sourceMappingURL=index.js.map
1280
  ;// CONCATENATED MODULE: external ["wp","a11y"]
1281
  var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
1282
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
@@ -1317,7 +1341,7 @@ function DownloadableBlocksInserterPanel(_ref) {
1317
  }
1318
 
1319
  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1320
- //# sourceMappingURL=inserter-panel.js.map
1321
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
1322
 
1323
 
@@ -1332,7 +1356,7 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
1332
  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"
1333
  }));
1334
  /* harmony default export */ var block_default = (blockDefault);
1335
- //# sourceMappingURL=block-default.js.map
1336
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1337
 
1338
 
@@ -1352,7 +1376,7 @@ function DownloadableBlocksNoResults() {
1352
  }
1353
 
1354
  /* harmony default export */ var no_results = (DownloadableBlocksNoResults);
1355
- //# sourceMappingURL=no-results.js.map
1356
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/index.js
1357
 
1358
 
@@ -1439,7 +1463,7 @@ function DownloadableBlocksPanel(_ref) {
1439
  isLoading
1440
  };
1441
  })])(DownloadableBlocksPanel));
1442
- //# sourceMappingURL=index.js.map
1443
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js
1444
 
1445
 
@@ -1491,7 +1515,7 @@ function InserterMenuDownloadableBlocksPanel() {
1491
  }
1492
 
1493
  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
1494
- //# sourceMappingURL=index.js.map
1495
  ;// CONCATENATED MODULE: external ["wp","editPost"]
1496
  var external_wp_editPost_namespaceObject = window["wp"]["editPost"];
1497
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
@@ -1541,7 +1565,7 @@ function CompactList(_ref) {
1541
  (0,external_wp_i18n_namespaceObject.__)('By %s'), author))));
1542
  }));
1543
  }
1544
- //# sourceMappingURL=index.js.map
1545
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js
1546
 
1547
 
@@ -1576,7 +1600,7 @@ function InstalledBlocksPrePublishPanel() {
1576
  items: newBlockTypes
1577
  }));
1578
  }
1579
- //# sourceMappingURL=index.js.map
1580
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/get-install-missing/install-button.js
1581
 
1582
 
@@ -1624,7 +1648,7 @@ function InstallButton(_ref) {
1624
  /* translators: %s: block name */
1625
  (0,external_wp_i18n_namespaceObject.__)('Install %s'), block.title));
1626
  }
1627
- //# sourceMappingURL=install-button.js.map
1628
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/get-install-missing/index.js
1629
 
1630
 
@@ -1728,7 +1752,7 @@ const ModifiedWarning = _ref2 => {
1728
  };
1729
 
1730
  /* harmony default export */ var get_install_missing = (getInstallMissing);
1731
- //# sourceMappingURL=index.js.map
1732
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/index.js
1733
 
1734
 
@@ -1759,14 +1783,14 @@ const ModifiedWarning = _ref2 => {
1759
  settings.edit = get_install_missing(settings.edit);
1760
  return settings;
1761
  });
1762
- //# sourceMappingURL=index.js.map
1763
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/index.js
1764
  /**
1765
  * Internal dependencies
1766
  */
1767
 
1768
 
1769
- //# sourceMappingURL=index.js.map
1770
  (window.wp = window.wp || {}).blockDirectory = __webpack_exports__;
1771
  /******/ })()
1772
  ;
216
  blockManagement,
217
  errorNotices
218
  }));
219
+
220
  ;// CONCATENATED MODULE: external ["wp","blockEditor"]
221
  var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"];
222
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/has-block-type.js
253
 
254
  return false;
255
  }
256
+
257
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/selectors.js
258
  /**
259
  * WordPress dependencies
368
  function getErrorNoticeForBlock(state, blockId) {
369
  return state.errorNotices[blockId];
370
  }
371
+
372
  ;// CONCATENATED MODULE: external ["wp","i18n"]
373
  var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
374
  ;// CONCATENATED MODULE: external ["wp","apiFetch"]
376
  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
377
  ;// CONCATENATED MODULE: external ["wp","notices"]
378
  var external_wp_notices_namespaceObject = window["wp"]["notices"];
379
+ ;// CONCATENATED MODULE: external ["wp","url"]
380
+ var external_wp_url_namespaceObject = window["wp"]["url"];
381
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/load-assets.js
382
  /**
383
  * WordPress dependencies
450
  await loadAsset(newAsset);
451
  }
452
  }
453
+
454
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/utils/get-plugin-url.js
455
  /**
456
  * Get the plugin's direct API link out of a block-directory response.
472
 
473
  return false;
474
  }
475
+
476
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/actions.js
477
+ /**
478
+ * External dependencies
479
+ */
480
+
481
  /**
482
  * WordPress dependencies
483
  */
485
 
486
 
487
 
488
+
489
+
490
  /**
491
  * Internal dependencies
492
  */
539
  dispatch
540
  } = _ref;
541
  const {
542
+ id,
543
+ name
544
  } = block;
545
  let success = false;
546
  dispatch.clearErrorNotice(id);
576
  links: { ...block.links,
577
  ...links
578
  }
579
+ }); // Ensures that the block metadata is propagated to the editor when registered on the server.
580
+
581
+ const metadataFields = ['api_version', 'title', 'category', 'parent', 'icon', 'description', 'keywords', 'attributes', 'provides_context', 'uses_context', 'supports', 'styles', 'example', 'variations'];
582
+ await external_wp_apiFetch_default()({
583
+ path: (0,external_wp_url_namespaceObject.addQueryArgs)(`/wp/v2/block-types/${name}`, {
584
+ _fields: metadataFields
585
+ })
586
+ }) // Ignore when the block is not registered on the server.
587
+ .catch(() => {}).then(response => {
588
+ if (!response) {
589
+ return;
590
+ }
591
+
592
+ (0,external_wp_blocks_namespaceObject.unstable__bootstrapServerSideBlockDefinitions)({
593
+ [name]: (0,external_lodash_namespaceObject.pick)(response, metadataFields)
594
+ });
595
  });
596
  await loadAssets();
597
  const registeredBlocks = registry.select(external_wp_blocks_namespaceObject.store).getBlockTypes();
598
 
599
+ if (!registeredBlocks.some(i => i.name === name)) {
600
  throw new Error((0,external_wp_i18n_namespaceObject.__)('Error registering block. Try reloading the page.'));
601
  }
602
 
741
  blockId
742
  };
743
  }
744
+
745
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/resolvers.js
746
  /**
747
  * External dependencies
775
  dispatch(receiveDownloadableBlocks(blocks, filterValue));
776
  } catch {}
777
  };
778
+
779
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/store/index.js
780
  /**
781
  * WordPress dependencies
806
  reducer: reducer,
807
  selectors: selectors_namespaceObject,
808
  actions: actions_namespaceObject,
809
+ resolvers: resolvers_namespaceObject
 
810
  };
811
  /**
812
  * Store definition for the block directory namespace.
818
 
819
  const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME, storeConfig);
820
  (0,external_wp_data_namespaceObject.register)(store);
821
+
822
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/auto-block-uninstaller/index.js
823
  /**
824
  * WordPress dependencies
854
  }, [shouldRemoveBlockTypes]);
855
  return null;
856
  }
857
+
858
  ;// CONCATENATED MODULE: external ["wp","components"]
859
  var external_wp_components_namespaceObject = window["wp"]["components"];
860
  ;// CONCATENATED MODULE: external ["wp","compose"]
912
  }
913
 
914
  /* harmony default export */ var icon = (Icon);
915
+
916
  ;// CONCATENATED MODULE: external ["wp","primitives"]
917
  var external_wp_primitives_namespaceObject = window["wp"]["primitives"];
918
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-filled.js
929
  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"
930
  }));
931
  /* harmony default export */ var star_filled = (starFilled);
932
+
933
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-half.js
934
 
935
 
944
  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"
945
  }));
946
  /* harmony default export */ var star_half = (starHalf);
947
+
948
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/star-empty.js
949
 
950
 
961
  clipRule: "evenodd"
962
  }));
963
  /* harmony default export */ var star_empty = (starEmpty);
964
+
965
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/stars.js
966
 
967
 
1007
  }
1008
 
1009
  /* harmony default export */ var stars = (Stars);
1010
+
1011
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/block-ratings/index.js
1012
 
1013
 
1026
  }));
1027
  };
1028
  /* harmony default export */ var block_ratings = (BlockRatings);
1029
+
1030
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-icon/index.js
1031
 
1032
 
1052
  }
1053
 
1054
  /* harmony default export */ var downloadable_block_icon = (DownloadableBlockIcon);
1055
+
1056
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-notice/index.js
1057
 
1058
 
1083
  }, errorNotice.message, errorNotice.isFatal ? ' ' + (0,external_wp_i18n_namespaceObject.__)('Try reloading the page.') : null));
1084
  };
1085
  /* harmony default export */ var downloadable_block_notice = (DownloadableBlockNotice);
1086
+
1087
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-block-list-item/index.js
1088
 
1089
 
1230
  }
1231
 
1232
  /* harmony default export */ var downloadable_block_list_item = (DownloadableBlockListItem);
1233
+
1234
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-list/index.js
1235
 
1236
 
1300
  }
1301
 
1302
  /* harmony default export */ var downloadable_blocks_list = (DownloadableBlocksList);
1303
+
1304
  ;// CONCATENATED MODULE: external ["wp","a11y"]
1305
  var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
1306
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/inserter-panel.js
1341
  }
1342
 
1343
  /* harmony default export */ var inserter_panel = (DownloadableBlocksInserterPanel);
1344
+
1345
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
1346
 
1347
 
1356
  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"
1357
  }));
1358
  /* harmony default export */ var block_default = (blockDefault);
1359
+
1360
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/no-results.js
1361
 
1362
 
1376
  }
1377
 
1378
  /* harmony default export */ var no_results = (DownloadableBlocksNoResults);
1379
+
1380
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/downloadable-blocks-panel/index.js
1381
 
1382
 
1463
  isLoading
1464
  };
1465
  })])(DownloadableBlocksPanel));
1466
+
1467
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/index.js
1468
 
1469
 
1515
  }
1516
 
1517
  /* harmony default export */ var inserter_menu_downloadable_blocks_panel = (InserterMenuDownloadableBlocksPanel);
1518
+
1519
  ;// CONCATENATED MODULE: external ["wp","editPost"]
1520
  var external_wp_editPost_namespaceObject = window["wp"]["editPost"];
1521
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/components/compact-list/index.js
1565
  (0,external_wp_i18n_namespaceObject.__)('By %s'), author))));
1566
  }));
1567
  }
1568
+
1569
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/index.js
1570
 
1571
 
1600
  items: newBlockTypes
1601
  }));
1602
  }
1603
+
1604
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/get-install-missing/install-button.js
1605
 
1606
 
1648
  /* translators: %s: block name */
1649
  (0,external_wp_i18n_namespaceObject.__)('Install %s'), block.title));
1650
  }
1651
+
1652
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/get-install-missing/index.js
1653
 
1654
 
1752
  };
1753
 
1754
  /* harmony default export */ var get_install_missing = (getInstallMissing);
1755
+
1756
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/plugins/index.js
1757
 
1758
 
1783
  settings.edit = get_install_missing(settings.edit);
1784
  return settings;
1785
  });
1786
+
1787
  ;// CONCATENATED MODULE: ./packages/block-directory/build-module/index.js
1788
  /**
1789
  * Internal dependencies
1790
  */
1791
 
1792
 
1793
+
1794
  (window.wp = window.wp || {}).blockDirectory = __webpack_exports__;
1795
  /******/ })()
1796
  ;
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-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '3de4eaae6d89507721458eb643d28228');
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-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '656a244baa62b17b9c63ae71641b9b14');
build/block-directory/index.min.js CHANGED
@@ -1,19 +1,20 @@
1
- !function(){"use strict";var e={n:function(t){var l=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(l,{a:l}),l},d:function(t,l){for(var n in l)e.o(l,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:l[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return x}});var l={};e.r(l),e.d(l,{getDownloadableBlocks:function(){return g},getErrorNoticeForBlock:function(){return h},getErrorNotices:function(){return y},getInstalledBlockTypes:function(){return _},getNewBlockTypes:function(){return w},getUnusedBlockTypes:function(){return E},isInstalling:function(){return f},isRequestingDownloadableBlocks:function(){return b}});var n={};e.r(n),e.d(n,{addInstalledBlockType:function(){return P},clearErrorNotice:function(){return F},fetchDownloadableBlocks:function(){return S},installBlockType:function(){return O},receiveDownloadableBlocks:function(){return C},removeInstalledBlockType:function(){return R},setErrorNotice:function(){return M},setIsInstalling:function(){return A},uninstallBlockType:function(){return D}});var o={};e.r(o),e.d(o,{getDownloadableBlocks:function(){return V}});var r=window.wp.element,a=window.wp.plugins,i=window.wp.hooks,s=window.wp.blocks,c=window.wp.data,d=window.wp.editor,u=window.lodash,m=(0,c.combineReducers)({downloadableBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":return(0,u.omit)(e,t.blockId)}return e}}),p=window.wp.blockEditor;function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((t=>{let{name:l}=t;return l===e.name})))return!0;for(let l=0;l<t.length;l++)if(k(e,t[l].innerBlocks))return!0;return!1}function b(e,t){var l,n;return null!==(l=null===(n=e.downloadableBlocks[t])||void 0===n?void 0:n.isRequesting)&&void 0!==l&&l}function g(e,t){var l,n;return null!==(l=null===(n=e.downloadableBlocks[t])||void 0===n?void 0:n.results)&&void 0!==l?l:[]}function _(e){return e.blockManagement.installedBlockTypes}const w=(0,c.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return _(t).filter((e=>k(e,l)))})),E=(0,c.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return _(t).filter((e=>!k(e,l)))}));function f(e,t){return e.blockManagement.isInstalling[t]||!1}function y(e){return e.errorNotices}function h(e,t){return e.errorNotices[t]}var v=window.wp.i18n,B=window.wp.apiFetch,N=e.n(B),I=window.wp.notices;const T=e=>new Promise(((t,l)=>{const n=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(n[t]=e[t])})),e.innerHTML&&n.appendChild(document.createTextNode(e.innerHTML)),n.onload=()=>t(!0),n.onerror=()=>l(new Error("Error loading asset.")),document.body.appendChild(n),("link"===n.nodeName.toLowerCase()||"script"===n.nodeName.toLowerCase()&&!n.src)&&t()}));function L(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function S(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function C(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const O=e=>async t=>{let{registry:l,dispatch:n}=t;const{id:o}=e;let r=!1;n.clearErrorNotice(o);try{n.setIsInstalling(o,!0);const t=L(e);let a={};if(t?await N()({method:"PUT",url:t,data:{status:"active"}}):a=(await N()({method:"POST",path:"wp/v2/plugins",data:{slug:o,status:"active"}}))._links,n.addInstalledBlockType({...e,links:{...e.links,...a}}),await async function(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),l=(new window.DOMParser).parseFromString(t,"text/html"),n=Array.from(l.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&!document.getElementById(e.id)));for(const e of n)await T(e)}(),!l.select(s.store).getBlockTypes().some((t=>t.name===e.name)))throw new Error((0,v.__)("Error registering block. Try reloading the page."));l.dispatch(I.store).createInfoNotice((0,v.sprintf)(// translators: %s is the block title.
2
- (0,v.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),r=!0}catch(e){let t=e.message||(0,v.__)("An error occurred."),r=e instanceof Error;const a={folder_exists:(0,v.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,v.__)("Error installing block. You can reload the page and try again.")};a[e.code]&&(r=!0,t=a[e.code]),n.setErrorNotice(o,t,r),l.dispatch(I.store).createErrorNotice(t,{speak:!0,isDismissible:!0})}return n.setIsInstalling(o,!1),r},D=e=>async t=>{let{registry:l,dispatch:n}=t;try{const t=L(e);await N()({method:"PUT",url:t,data:{status:"inactive"}}),await N()({method:"DELETE",url:t}),n.removeInstalledBlockType(e)}catch(e){l.dispatch(I.store).createErrorNotice(e.message||(0,v.__)("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){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:l}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}const V=e=>async t=>{let{dispatch:l}=t;if(e)try{l(S(e));l(C((await N()({path:`wp/v2/block-directory/search?term=${e}`})).map((e=>(0,u.mapKeys)(e,((e,t)=>(0,u.camelCase)(t))))),e))}catch{}},H={reducer:m,selectors:l,actions:n,resolvers:o,__experimentalUseThunks:!0},x=(0,c.createReduxStore)("core/block-directory",H);function $(){const{uninstallBlockType:e}=(0,c.useDispatch)(x),t=(0,c.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:l}=e(d.store);return l()&&!t()}),[]),l=(0,c.useSelect)((e=>e(x).getUnusedBlockTypes()),[]);return(0,r.useEffect)((()=>{t&&l.length&&l.forEach((t=>{e(t),(0,s.unregisterBlockType)(t.name)}))}),[t]),null}(0,c.register)(x);var K=window.wp.components,z=window.wp.compose,U=window.wp.coreData;function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}var j=window.wp.htmlEntities,q=function(e){let{icon:t,size:l=24,...n}=e;return(0,r.cloneElement)(t,{width:l,height:l,...n})},G=window.wp.primitives,W=(0,r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(G.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"})),J=(0,r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(G.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"})),Q=(0,r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(G.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"})),X=function(e){let{rating:t}=e;const l=.5*Math.round(t/.5),n=Math.floor(t),o=Math.ceil(t-n),a=5-(n+o);return(0,r.createElement)("span",{"aria-label":(0,v.sprintf)(
3
  /* translators: %s: number of stars. */
4
- (0,v.__)("%s out of 5 stars"),l)},(0,u.times)(n,(e=>(0,r.createElement)(q,{key:`full_stars_${e}`,className:"block-directory-block-ratings__star-full",icon:W,size:16}))),(0,u.times)(o,(e=>(0,r.createElement)(q,{key:`half_stars_${e}`,className:"block-directory-block-ratings__star-half-full",icon:J,size:16}))),(0,u.times)(a,(e=>(0,r.createElement)(q,{key:`empty_stars_${e}`,className:"block-directory-block-ratings__star-empty",icon:Q,size:16}))))},Z=e=>{let{rating:t}=e;return(0,r.createElement)("span",{className:"block-directory-block-ratings"},(0,r.createElement)(X,{rating:t}))},ee=function(e){let{icon:t}=e;const l="block-directory-downloadable-block-icon";return null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,r.createElement)("img",{className:l,src:t,alt:""}):(0,r.createElement)(p.BlockIcon,{className:l,icon:t,showColors:!0})},te=e=>{let{block:t}=e;const l=(0,c.useSelect)((e=>e(x).getErrorNoticeForBlock(t.id)),[t]);return l?(0,r.createElement)("div",{className:"block-directory-downloadable-block-notice"},(0,r.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},l.message,l.isFatal?" "+(0,v.__)("Try reloading the page."):null)):null};function le(e,t){let{title:l,rating:n,ratingCount:o}=e,{hasNotice:r,isInstalled:a,isInstalling:i}=t;const s=.5*Math.round(n/.5);return!a&&r?(0,v.sprintf)("Retry installing %s.",(0,j.decodeEntities)(l)):a?(0,v.sprintf)("Add %s.",(0,j.decodeEntities)(l)):i?(0,v.sprintf)("Installing %s.",(0,j.decodeEntities)(l)):o<1?(0,v.sprintf)("Install %s.",(0,j.decodeEntities)(l)):(0,v.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
6
- (0,v._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,j.decodeEntities)(l),s,o)}var ne=function(e){let{composite:t,item:l,onClick:n}=e;const{author:o,description:a,icon:i,rating:d,title:u}=l,m=!!(0,s.getBlockType)(l.name),{hasNotice:p,isInstalling:k,isInstallable:b}=(0,c.useSelect)((e=>{const{getErrorNoticeForBlock:t,isInstalling:n}=e(x),o=t(l.id),r=o&&o.isFatal;return{hasNotice:!!o,isInstalling:n(l.id),isInstallable:!r}}),[l]);let g="";return m?g=(0,v.__)("Installed!"):k&&(g=(0,v.__)("Installing…")),(0,r.createElement)(K.__unstableCompositeItem,Y({role:"option",as:K.Button},t,{className:"block-directory-downloadable-block-list-item",onClick:e=>{e.preventDefault(),n()},isBusy:k,disabled:k||!b,label:le(l,{hasNotice:p,isInstalled:m,isInstalling:k}),showTooltip:!0,tooltipPosition:"top center"}),(0,r.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},(0,r.createElement)(ee,{icon:i,title:u}),k?(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},(0,r.createElement)(K.Spinner,null)):(0,r.createElement)(Z,{rating:d})),(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},(0,r.createInterpolateElement)((0,v.sprintf)(
7
  /* translators: %1$s: block title, %2$s: author name. */
8
- (0,v.__)("%1$s <span>by %2$s</span>"),(0,j.decodeEntities)(u),o),{span:(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?(0,r.createElement)(te,{block:l}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},g||(0,j.decodeEntities)(a)),b&&!(m||k)&&(0,r.createElement)(K.VisuallyHidden,null,(0,v.__)("Install block")))))},oe=function(e){let{items:t,onHover:l=u.noop,onSelect:n}=e;const o=(0,K.__unstableUseCompositeState)(),{installBlockType:a}=(0,c.useDispatch)(x);return t.length?(0,r.createElement)(K.__unstableComposite,Y({},o,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,v.__)("Blocks available for install")}),t.map((e=>(0,r.createElement)(ne,{key:e.id,composite:o,onClick:()=>{(0,s.getBlockType)(e.name)?n(e):a(e).then((t=>{t&&n(e)})),l(null)},onHover:l,item:e})))):null},re=window.wp.a11y,ae=function(e){let{children:t,downloadableItems:l,hasLocalBlocks:n}=e;const o=l.length;return(0,r.useEffect)((()=>{(0,re.speak)((0,v.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
- (0,v._n)("%d additional block is available to install.","%d additional blocks are available to install.",o),o))}),[o]),(0,r.createElement)(r.Fragment,null,!n&&(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,r.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},(0,r.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},(0,v.__)("Available to install")),(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},(0,v.__)("Select a block to install and add it to your post."))),t))},ie=(0,r.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(G.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"})),se=function(){return(0,r.createElement)("div",{className:"block-editor-inserter__no-results"},(0,r.createElement)(q,{className:"block-editor-inserter__no-results-icon",icon:ie}),(0,r.createElement)("p",null,(0,v.__)("No results found.")))},ce=(0,z.compose)([(0,c.withSelect)(((e,t)=>{let{filterValue:l,rootClientId:n=null}=t;const{getDownloadableBlocks:o,isRequestingDownloadableBlocks:r}=e(x),{canInsertBlockType:a}=e(p.store),i=e(U.store).canUser("read","block-directory/search");return{downloadableItems:i?o(l).filter((e=>a(e,n,!0))):[],hasPermission:i,isLoading:r(l)}}))])((function(e){let{downloadableItems:t,onSelect:l,onHover:n,hasLocalBlocks:o,hasPermission:a,isLoading:i,isTyping:s}=e;return void 0===a||i||s?(0,r.createElement)(r.Fragment,null,a&&!o&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,r.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},(0,r.createElement)(K.Spinner,null))):!1===a?o?null:(0,r.createElement)(se,null):t.length?(0,r.createElement)(ae,{downloadableItems:t,hasLocalBlocks:o},(0,r.createElement)(oe,{items:t,onSelect:l,onHover:n})):!o&&(0,r.createElement)(se,null)})),de=function(){const[e,t]=(0,r.useState)(""),l=(0,u.debounce)(t,400);return(0,r.createElement)(p.__unstableInserterMenuExtension,null,(t=>{let{onSelect:n,onHover:o,filterValue:a,hasItems:i,rootClientId:s}=t;return e!==a&&l(a),e?(0,r.createElement)(ce,{onSelect:n,onHover:o,rootClientId:s,filterValue:e,hasLocalBlocks:i,isTyping:a!==e}):null}))},ue=window.wp.editPost;function me(e){let{items:t}=e;return t.length?(0,r.createElement)("ul",{className:"block-directory-compact-list"},t.map((e=>{let{icon:t,id:l,title:n,author:o}=e;return(0,r.createElement)("li",{key:l,className:"block-directory-compact-list__item"},(0,r.createElement)(ee,{icon:t,title:n}),(0,r.createElement)("div",{className:"block-directory-compact-list__item-details"},(0,r.createElement)("div",{className:"block-directory-compact-list__item-title"},n),(0,r.createElement)("div",{className:"block-directory-compact-list__item-author"},(0,v.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
- (0,v.__)("By %s"),o))))}))):null}function pe(){const e=(0,c.useSelect)((e=>e(x).getNewBlockTypes()),[]);return e.length?(0,r.createElement)(ue.PluginPrePublishPanel,{icon:ie,title:(0,v.sprintf)(// translators: %d: number of blocks (number).
13
- (0,v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},(0,r.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},(0,v._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),(0,r.createElement)(me,{items:e})):null}function ke(e){let{attributes:t,block:l,clientId:n}=e;const o=(0,c.useSelect)((e=>e(x).isInstalling(l.id)),[l.id]),{installBlockType:a}=(0,c.useDispatch)(x),{replaceBlock:i}=(0,c.useDispatch)(p.store);return(0,r.createElement)(K.Button,{onClick:()=>a(l).then((e=>{if(e){const e=(0,s.getBlockType)(l.name),[o]=(0,s.parse)(t.originalContent);o&&e&&i(n,(0,s.createBlock)(e.name,o.attributes,o.innerBlocks))}})),disabled:o,isBusy:o,variant:"primary"},(0,v.sprintf)(
14
  /* translators: %s: block name */
15
- (0,v.__)("Install %s"),l.title))}const be=e=>{let{originalBlock:t,...l}=e;const{originalName:n,originalUndelimitedContent:o}=l.attributes,{replaceBlock:a}=(0,c.useDispatch)(p.store),i=!!o,d=(0,s.getBlockType)("core/html");let u=(0,v.sprintf)(
16
  /* translators: %s: block name */
17
- (0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||n);const m=[(0,r.createElement)(ke,{key:"install",block:t,attributes:l.attributes,clientId:l.clientId})];return i&&d&&(u=(0,v.sprintf)(
18
  /* translators: %s: block name */
19
- (0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),t.title||n),m.push((0,r.createElement)(K.Button,{key:"convert",onClick:()=>{a(l.clientId,(0,s.createBlock)("core/html",{content:o}))},variant:"link"},(0,v.__)("Keep as HTML")))),(0,r.createElement)("div",(0,p.useBlockProps)(),(0,r.createElement)(p.Warning,{actions:m},u),(0,r.createElement)(r.RawHTML,null,o))};(0,a.registerPlugin)("block-directory",{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)($,null),(0,r.createElement)(de,null),(0,r.createElement)(pe,null))}),(0,i.addFilter)("blocks.registerBlockType","block-directory/fallback",((e,t)=>{return"core/missing"!==t||(e.edit=(l=e.edit,e=>{const{originalName:t}=e.attributes,{block:n,hasPermission:o}=(0,c.useSelect)((e=>{const{getDownloadableBlocks:l}=e(x),n=l("block:"+t).filter((e=>{let{name:l}=e;return t===l}));return{hasPermission:e(U.store).canUser("read","block-directory/search"),block:n.length&&n[0]}}),[t]);return o&&n?(0,r.createElement)(be,Y({},e,{originalBlock:n})):(0,r.createElement)(l,e)})),e;var l})),(window.wp=window.wp||{}).blockDirectory=t}();
 
1
+ !function(){"use strict";var e={n:function(t){var l=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(l,{a:l}),l},d:function(t,l){for(var n in l)e.o(l,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:l[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{store:function(){return $}});var l={};e.r(l),e.d(l,{getDownloadableBlocks:function(){return g},getErrorNoticeForBlock:function(){return h},getErrorNotices:function(){return y},getInstalledBlockTypes:function(){return _},getNewBlockTypes:function(){return w},getUnusedBlockTypes:function(){return E},isInstalling:function(){return f},isRequestingDownloadableBlocks:function(){return b}});var n={};e.r(n),e.d(n,{addInstalledBlockType:function(){return R},clearErrorNotice:function(){return F},fetchDownloadableBlocks:function(){return C},installBlockType:function(){return D},receiveDownloadableBlocks:function(){return O},removeInstalledBlockType:function(){return A},setErrorNotice:function(){return x},setIsInstalling:function(){return M},uninstallBlockType:function(){return P}});var o={};e.r(o),e.d(o,{getDownloadableBlocks:function(){return V}});var r=window.wp.element,a=window.wp.plugins,i=window.wp.hooks,s=window.wp.blocks,c=window.wp.data,d=window.wp.editor,u=window.lodash,m=(0,c.combineReducers)({downloadableBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{isRequesting:!0}};case"RECEIVE_DOWNLOADABLE_BLOCKS":return{...e,[t.filterValue]:{results:t.downloadableBlocks,isRequesting:!1}}}return e},blockManagement:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return{...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:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return{...e,[t.blockId]:{message:t.message,isFatal:t.isFatal}};case"CLEAR_ERROR_NOTICE":return(0,u.omit)(e,t.blockId)}return e}}),p=window.wp.blockEditor;function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((t=>{let{name:l}=t;return l===e.name})))return!0;for(let l=0;l<t.length;l++)if(k(e,t[l].innerBlocks))return!0;return!1}function b(e,t){var l,n;return null!==(l=null===(n=e.downloadableBlocks[t])||void 0===n?void 0:n.isRequesting)&&void 0!==l&&l}function g(e,t){var l,n;return null!==(l=null===(n=e.downloadableBlocks[t])||void 0===n?void 0:n.results)&&void 0!==l?l:[]}function _(e){return e.blockManagement.installedBlockTypes}const w=(0,c.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return _(t).filter((e=>k(e,l)))})),E=(0,c.createRegistrySelector)((e=>t=>{const l=e(p.store).getBlocks();return _(t).filter((e=>!k(e,l)))}));function f(e,t){return e.blockManagement.isInstalling[t]||!1}function y(e){return e.errorNotices}function h(e,t){return e.errorNotices[t]}var v=window.wp.i18n,B=window.wp.apiFetch,N=e.n(B),I=window.wp.notices,T=window.wp.url;const L=e=>new Promise(((t,l)=>{const n=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(n[t]=e[t])})),e.innerHTML&&n.appendChild(document.createTextNode(e.innerHTML)),n.onload=()=>t(!0),n.onerror=()=>l(new Error("Error loading asset.")),document.body.appendChild(n),("link"===n.nodeName.toLowerCase()||"script"===n.nodeName.toLowerCase()&&!n.src)&&t()}));function S(e){if(!e)return!1;const t=e.links["wp:plugin"]||e.links.self;return!(!t||!t.length)&&t[0].href}function C(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function O(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}const D=e=>async t=>{let{registry:l,dispatch:n}=t;const{id:o,name:r}=e;let a=!1;n.clearErrorNotice(o);try{n.setIsInstalling(o,!0);const t=S(e);let i={};t?await N()({method:"PUT",url:t,data:{status:"active"}}):i=(await N()({method:"POST",path:"wp/v2/plugins",data:{slug:o,status:"active"}}))._links,n.addInstalledBlockType({...e,links:{...e.links,...i}});const c=["api_version","title","category","parent","icon","description","keywords","attributes","provides_context","uses_context","supports","styles","example","variations"];if(await N()({path:(0,T.addQueryArgs)(`/wp/v2/block-types/${r}`,{_fields:c})}).catch((()=>{})).then((e=>{e&&(0,s.unstable__bootstrapServerSideBlockDefinitions)({[r]:(0,u.pick)(e,c)})})),await async function(){const e=await N()({url:document.location.href,parse:!1}),t=await e.text(),l=(new window.DOMParser).parseFromString(t,"text/html"),n=Array.from(l.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&!document.getElementById(e.id)));for(const e of n)await L(e)}(),!l.select(s.store).getBlockTypes().some((e=>e.name===r)))throw new Error((0,v.__)("Error registering block. Try reloading the page."));l.dispatch(I.store).createInfoNotice((0,v.sprintf)(// translators: %s is the block title.
2
+ (0,v.__)("Block %s installed and added."),e.title),{speak:!0,type:"snackbar"}),a=!0}catch(e){let t=e.message||(0,v.__)("An error occurred."),r=e instanceof Error;const a={folder_exists:(0,v.__)("This block is already installed. Try reloading the page."),unable_to_connect_to_filesystem:(0,v.__)("Error installing block. You can reload the page and try again.")};a[e.code]&&(r=!0,t=a[e.code]),n.setErrorNotice(o,t,r),l.dispatch(I.store).createErrorNotice(t,{speak:!0,isDismissible:!0})}return n.setIsInstalling(o,!1),a},P=e=>async t=>{let{registry:l,dispatch:n}=t;try{const t=S(e);await N()({method:"PUT",url:t,data:{status:"inactive"}}),await N()({method:"DELETE",url:t}),n.removeInstalledBlockType(e)}catch(e){l.dispatch(I.store).createErrorNotice(e.message||(0,v.__)("An error occurred."))}};function R(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function A(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function M(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function x(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:l}}function F(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}const V=e=>async t=>{let{dispatch:l}=t;if(e)try{l(C(e));l(O((await N()({path:`wp/v2/block-directory/search?term=${e}`})).map((e=>(0,u.mapKeys)(e,((e,t)=>(0,u.camelCase)(t))))),e))}catch{}},H={reducer:m,selectors:l,actions:n,resolvers:o},$=(0,c.createReduxStore)("core/block-directory",H);function K(){const{uninstallBlockType:e}=(0,c.useDispatch)($),t=(0,c.useSelect)((e=>{const{isAutosavingPost:t,isSavingPost:l}=e(d.store);return l()&&!t()}),[]),l=(0,c.useSelect)((e=>e($).getUnusedBlockTypes()),[]);return(0,r.useEffect)((()=>{t&&l.length&&l.forEach((t=>{e(t),(0,s.unregisterBlockType)(t.name)}))}),[t]),null}(0,c.register)($);var z=window.wp.components,Y=window.wp.compose,j=window.wp.coreData;function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e}).apply(this,arguments)}var U=window.wp.htmlEntities,G=function(e){let{icon:t,size:l=24,...n}=e;return(0,r.cloneElement)(t,{width:l,height:l,...n})},W=window.wp.primitives,Q=(0,r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(W.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"})),J=(0,r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(W.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"})),X=(0,r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(W.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"})),Z=function(e){let{rating:t}=e;const l=.5*Math.round(t/.5),n=Math.floor(t),o=Math.ceil(t-n),a=5-(n+o);return(0,r.createElement)("span",{"aria-label":(0,v.sprintf)(
3
  /* translators: %s: number of stars. */
4
+ (0,v.__)("%s out of 5 stars"),l)},(0,u.times)(n,(e=>(0,r.createElement)(G,{key:`full_stars_${e}`,className:"block-directory-block-ratings__star-full",icon:Q,size:16}))),(0,u.times)(o,(e=>(0,r.createElement)(G,{key:`half_stars_${e}`,className:"block-directory-block-ratings__star-half-full",icon:J,size:16}))),(0,u.times)(a,(e=>(0,r.createElement)(G,{key:`empty_stars_${e}`,className:"block-directory-block-ratings__star-empty",icon:X,size:16}))))},ee=e=>{let{rating:t}=e;return(0,r.createElement)("span",{className:"block-directory-block-ratings"},(0,r.createElement)(Z,{rating:t}))},te=function(e){let{icon:t}=e;const l="block-directory-downloadable-block-icon";return null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?(0,r.createElement)("img",{className:l,src:t,alt:""}):(0,r.createElement)(p.BlockIcon,{className:l,icon:t,showColors:!0})},le=e=>{let{block:t}=e;const l=(0,c.useSelect)((e=>e($).getErrorNoticeForBlock(t.id)),[t]);return l?(0,r.createElement)("div",{className:"block-directory-downloadable-block-notice"},(0,r.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},l.message,l.isFatal?" "+(0,v.__)("Try reloading the page."):null)):null};function ne(e,t){let{title:l,rating:n,ratingCount:o}=e,{hasNotice:r,isInstalled:a,isInstalling:i}=t;const s=.5*Math.round(n/.5);return!a&&r?(0,v.sprintf)("Retry installing %s.",(0,U.decodeEntities)(l)):a?(0,v.sprintf)("Add %s.",(0,U.decodeEntities)(l)):i?(0,v.sprintf)("Installing %s.",(0,U.decodeEntities)(l)):o<1?(0,v.sprintf)("Install %s.",(0,U.decodeEntities)(l)):(0,v.sprintf)(
5
  /* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */
6
+ (0,v._n)("Install %1$s. %2$s stars with %3$s review.","Install %1$s. %2$s stars with %3$s reviews.",o),(0,U.decodeEntities)(l),s,o)}var oe=function(e){let{composite:t,item:l,onClick:n}=e;const{author:o,description:a,icon:i,rating:d,title:u}=l,m=!!(0,s.getBlockType)(l.name),{hasNotice:p,isInstalling:k,isInstallable:b}=(0,c.useSelect)((e=>{const{getErrorNoticeForBlock:t,isInstalling:n}=e($),o=t(l.id),r=o&&o.isFatal;return{hasNotice:!!o,isInstalling:n(l.id),isInstallable:!r}}),[l]);let g="";return m?g=(0,v.__)("Installed!"):k&&(g=(0,v.__)("Installing…")),(0,r.createElement)(z.__unstableCompositeItem,q({role:"option",as:z.Button},t,{className:"block-directory-downloadable-block-list-item",onClick:e=>{e.preventDefault(),n()},isBusy:k,disabled:k||!b,label:ne(l,{hasNotice:p,isInstalled:m,isInstalling:k}),showTooltip:!0,tooltipPosition:"top center"}),(0,r.createElement)("div",{className:"block-directory-downloadable-block-list-item__icon"},(0,r.createElement)(te,{icon:i,title:u}),k?(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__spinner"},(0,r.createElement)(z.Spinner,null)):(0,r.createElement)(ee,{rating:d})),(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__details"},(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__title"},(0,r.createInterpolateElement)((0,v.sprintf)(
7
  /* translators: %1$s: block title, %2$s: author name. */
8
+ (0,v.__)("%1$s <span>by %2$s</span>"),(0,U.decodeEntities)(u),o),{span:(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__author"})})),p?(0,r.createElement)(le,{block:l}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"block-directory-downloadable-block-list-item__desc"},g||(0,U.decodeEntities)(a)),b&&!(m||k)&&(0,r.createElement)(z.VisuallyHidden,null,(0,v.__)("Install block")))))},re=function(e){let{items:t,onHover:l=u.noop,onSelect:n}=e;const o=(0,z.__unstableUseCompositeState)(),{installBlockType:a}=(0,c.useDispatch)($);return t.length?(0,r.createElement)(z.__unstableComposite,q({},o,{role:"listbox",className:"block-directory-downloadable-blocks-list","aria-label":(0,v.__)("Blocks available for install")}),t.map((e=>(0,r.createElement)(oe,{key:e.id,composite:o,onClick:()=>{(0,s.getBlockType)(e.name)?n(e):a(e).then((t=>{t&&n(e)})),l(null)},onHover:l,item:e})))):null},ae=window.wp.a11y,ie=function(e){let{children:t,downloadableItems:l,hasLocalBlocks:n}=e;const o=l.length;return(0,r.useEffect)((()=>{(0,ae.speak)((0,v.sprintf)(
9
  /* translators: %d: number of available blocks. */
10
+ (0,v._n)("%d additional block is available to install.","%d additional blocks are available to install.",o),o))}),[o]),(0,r.createElement)(r.Fragment,null,!n&&(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,r.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel"},(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel__header"},(0,r.createElement)("h2",{className:"block-directory-downloadable-blocks-panel__title"},(0,v.__)("Available to install")),(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},(0,v.__)("Select a block to install and add it to your post."))),t))},se=(0,r.createElement)(W.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(W.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"})),ce=function(){return(0,r.createElement)("div",{className:"block-editor-inserter__no-results"},(0,r.createElement)(G,{className:"block-editor-inserter__no-results-icon",icon:se}),(0,r.createElement)("p",null,(0,v.__)("No results found.")))},de=(0,Y.compose)([(0,c.withSelect)(((e,t)=>{let{filterValue:l,rootClientId:n=null}=t;const{getDownloadableBlocks:o,isRequestingDownloadableBlocks:r}=e($),{canInsertBlockType:a}=e(p.store),i=e(j.store).canUser("read","block-directory/search");return{downloadableItems:i?o(l).filter((e=>a(e,n,!0))):[],hasPermission:i,isLoading:r(l)}}))])((function(e){let{downloadableItems:t,onSelect:l,onHover:n,hasLocalBlocks:o,hasPermission:a,isLoading:i,isTyping:s}=e;return void 0===a||i||s?(0,r.createElement)(r.Fragment,null,a&&!o&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"block-directory-downloadable-blocks-panel__no-local"},(0,v.__)("No results available from your installed blocks.")),(0,r.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"})),(0,r.createElement)("div",{className:"block-directory-downloadable-blocks-panel has-blocks-loading"},(0,r.createElement)(z.Spinner,null))):!1===a?o?null:(0,r.createElement)(ce,null):t.length?(0,r.createElement)(ie,{downloadableItems:t,hasLocalBlocks:o},(0,r.createElement)(re,{items:t,onSelect:l,onHover:n})):!o&&(0,r.createElement)(ce,null)})),ue=function(){const[e,t]=(0,r.useState)(""),l=(0,u.debounce)(t,400);return(0,r.createElement)(p.__unstableInserterMenuExtension,null,(t=>{let{onSelect:n,onHover:o,filterValue:a,hasItems:i,rootClientId:s}=t;return e!==a&&l(a),e?(0,r.createElement)(de,{onSelect:n,onHover:o,rootClientId:s,filterValue:e,hasLocalBlocks:i,isTyping:a!==e}):null}))},me=window.wp.editPost;function pe(e){let{items:t}=e;return t.length?(0,r.createElement)("ul",{className:"block-directory-compact-list"},t.map((e=>{let{icon:t,id:l,title:n,author:o}=e;return(0,r.createElement)("li",{key:l,className:"block-directory-compact-list__item"},(0,r.createElement)(te,{icon:t,title:n}),(0,r.createElement)("div",{className:"block-directory-compact-list__item-details"},(0,r.createElement)("div",{className:"block-directory-compact-list__item-title"},n),(0,r.createElement)("div",{className:"block-directory-compact-list__item-author"},(0,v.sprintf)(
11
  /* translators: %s: Name of the block author. */
12
+ (0,v.__)("By %s"),o))))}))):null}function ke(){const e=(0,c.useSelect)((e=>e($).getNewBlockTypes()),[]);return e.length?(0,r.createElement)(me.PluginPrePublishPanel,{icon:se,title:(0,v.sprintf)(// translators: %d: number of blocks (number).
13
+ (0,v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},(0,r.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},(0,v._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),(0,r.createElement)(pe,{items:e})):null}function be(e){let{attributes:t,block:l,clientId:n}=e;const o=(0,c.useSelect)((e=>e($).isInstalling(l.id)),[l.id]),{installBlockType:a}=(0,c.useDispatch)($),{replaceBlock:i}=(0,c.useDispatch)(p.store);return(0,r.createElement)(z.Button,{onClick:()=>a(l).then((e=>{if(e){const e=(0,s.getBlockType)(l.name),[o]=(0,s.parse)(t.originalContent);o&&e&&i(n,(0,s.createBlock)(e.name,o.attributes,o.innerBlocks))}})),disabled:o,isBusy:o,variant:"primary"},(0,v.sprintf)(
14
  /* translators: %s: block name */
15
+ (0,v.__)("Install %s"),l.title))}const ge=e=>{let{originalBlock:t,...l}=e;const{originalName:n,originalUndelimitedContent:o}=l.attributes,{replaceBlock:a}=(0,c.useDispatch)(p.store),i=!!o,d=(0,s.getBlockType)("core/html");let u=(0,v.sprintf)(
16
  /* translators: %s: block name */
17
+ (0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),t.title||n);const m=[(0,r.createElement)(be,{key:"install",block:t,attributes:l.attributes,clientId:l.clientId})];return i&&d&&(u=(0,v.sprintf)(
18
  /* translators: %s: block name */
19
+ (0,v.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),t.title||n),m.push((0,r.createElement)(z.Button,{key:"convert",onClick:()=>{a(l.clientId,(0,s.createBlock)("core/html",{content:o}))},variant:"link"},(0,v.__)("Keep as HTML")))),(0,r.createElement)("div",(0,p.useBlockProps)(),(0,r.createElement)(p.Warning,{actions:m},u),(0,r.createElement)(r.RawHTML,null,o))};(0,a.registerPlugin)("block-directory",{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(K,null),(0,r.createElement)(ue,null),(0,r.createElement)(ke,null))}),(0,i.addFilter)("blocks.registerBlockType","block-directory/fallback",((e,t)=>{return"core/missing"!==t||(e.edit=(l=e.edit,e=>{const{originalName:t}=e.attributes,{block:n,hasPermission:o}=(0,c.useSelect)((e=>{const{getDownloadableBlocks:l}=e($),n=l("block:"+t).filter((e=>{let{name:l}=e;return t===l}));return{hasPermission:e(j.store).canUser("read","block-directory/search"),block:n.length&&n[0]}}),[t]);return o&&n?(0,r.createElement)(ge,q({},e,{originalBlock:n})):(0,r.createElement)(l,e)})),e;var l})),(window.wp=window.wp||{}).blockDirectory=t}();
20
+ //# sourceMappingURL=index.min.js.map
build/block-directory/index.min.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"file":"./build/block-directory/index.min.js","mappings":"yBACA,IAAIA,EAAsB,CCA1B,EAAwB,SAASC,GAChC,IAAIC,EAASD,GAAUA,EAAOE,WAC7B,WAAa,OAAOF,EAAgB,SACpC,WAAa,OAAOA,GAErB,OADAD,EAAoBI,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLR,EAAwB,SAASI,EAASC,GACzC,IAAI,IAAIC,KAAOD,EACXP,EAAoBS,EAAEF,EAAYC,KAASR,EAAoBS,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3E,EAAwB,SAASM,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,ICC/F,EAAwB,SAAST,GACX,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,q2BCLvD,IAAI,EAA+BC,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAS,MCAnD,EAA+BA,OAAW,GAAU,OCApD,EAA+BA,OAAW,GAAQ,KCAlD,EAA+BA,OAAW,GAAU,OCApD,EAA+BA,OAAe,OC2GlD,GAAeC,EAAAA,EAAAA,iBAAiB,CAC/BC,mBAzFiC,WAA0B,IAAxBC,EAAwB,uDAAhB,GAAIC,EAAY,uCAC3D,OAASA,EAAOC,MACf,IAAK,4BACJ,MAAO,IACHF,EACH,CAAEC,EAAOE,aAAe,CACvBC,cAAc,IAGjB,IAAK,8BACJ,MAAO,IACHJ,EACH,CAAEC,EAAOE,aAAe,CACvBE,QAASJ,EAAOF,mBAChBK,cAAc,IAIlB,OAAOJ,GAwEPM,gBA7D8B,WAM1B,IALJN,EAKI,uDALI,CACPO,oBAAqB,GACrBC,aAAc,IAEfP,EACI,uCACJ,OAASA,EAAOC,MACf,IAAK,2BACJ,MAAO,IACHF,EACHO,oBAAqB,IACjBP,EAAMO,oBACTN,EAAOQ,OAGV,IAAK,8BACJ,MAAO,IACHT,EACHO,oBAAqBP,EAAMO,oBAAoBG,QAC5CC,GAAeA,EAAUC,OAASX,EAAOQ,KAAKG,QAGnD,IAAK,uBACJ,MAAO,IACHZ,EACHQ,aAAc,IACVR,EAAMQ,aACT,CAAEP,EAAOY,SAAWZ,EAAOO,eAI/B,OAAOR,GA8BPc,aAnB2B,WAA0B,IAAxBd,EAAwB,uDAAhB,GAAIC,EAAY,uCACrD,OAASA,EAAOC,MACf,IAAK,mBACJ,MAAO,IACHF,EACH,CAAEC,EAAOY,SAAW,CACnBE,QAASd,EAAOc,QAChBC,QAASf,EAAOe,UAGnB,IAAK,qBACJ,OAAOC,EAAAA,EAAAA,MAAMjB,EAAOC,EAAOY,SAE7B,OAAOb,KCxGJ,EAA+BH,OAAW,GAAe,YCS9C,SAASqB,EAAcP,GAAyB,IAAdQ,EAAc,uDAAL,GACzD,IAAOA,EAAOC,OACb,OAAO,EAER,GAAKD,EAAOE,MAAM,QAAE,KAAET,GAAJ,SAAgBA,IAASD,EAAUC,QACpD,OAAO,EAER,IAAM,IAAIU,EAAI,EAAGA,EAAIH,EAAOC,OAAQE,IACnC,GAAKJ,EAAcP,EAAWQ,EAAQG,GAAIC,aACzC,OAAO,EAIT,OAAO,ECHD,SAASC,EAAgCxB,EAAOG,GAAc,QACpE,2BAAOH,EAAMD,mBAAoBI,UAAjC,aAAO,EAAyCC,oBAAhD,SAWM,SAASqB,EAAuBzB,EAAOG,GAAc,QAC3D,2BAAOH,EAAMD,mBAAoBI,UAAjC,aAAO,EAAyCE,eAAhD,QAA2D,GAWrD,SAASqB,EAAwB1B,GACvC,OAAOA,EAAMM,gBAAgBC,oBAWvB,MAAMoB,GAAmBC,EAAAA,EAAAA,yBAC7BC,GAAc7B,IACf,MAAM8B,EAAgBD,EAAQE,EAAAA,OAAmBC,YAGjD,OAF4BN,EAAwB1B,GAEzBU,QAAUC,GACpCO,EAAcP,EAAWmB,QAafG,GAAsBL,EAAAA,EAAAA,yBAChCC,GAAc7B,IACf,MAAM8B,EAAgBD,EAAQE,EAAAA,OAAmBC,YAGjD,OAF4BN,EAAwB1B,GAEzBU,QACxBC,IAAiBO,EAAcP,EAAWmB,QAaxC,SAAStB,EAAcR,EAAOa,GACpC,OAAOb,EAAMM,gBAAgBE,aAAcK,KAAa,EAUlD,SAASqB,EAAiBlC,GAChC,OAAOA,EAAMc,aAWP,SAASqB,EAAwBnC,EAAOa,GAC9C,OAAOb,EAAMc,aAAcD,GCrH5B,IAAI,EAA+BhB,OAAW,GAAQ,KCAlD,EAA+BA,OAAW,GAAY,S,SCAtD,EAA+BA,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAO,ICe9C,MAAMuC,EAAcC,GACnB,IAAIC,SAAS,CAAEC,EAASC,KAK9B,MAAMC,EAAUC,SAASC,cAAeN,EAAGO,UAE3C,CAAE,KAAM,MAAO,MAAO,OAAQ,QAASC,SAAWC,IAC5CT,EAAIS,KACRL,EAASK,GAAST,EAAIS,OAKnBT,EAAGU,WACPN,EAAQO,YAAaN,SAASO,eAAgBZ,EAAGU,YAGlDN,EAAQS,OAAS,IAAMX,GAAS,GAChCE,EAAQU,QAAU,IAAMX,EAAQ,IAAIY,MAAO,yBAE3CV,SAASW,KAAKL,YAAaP,IAI1B,SAAWA,EAAQG,SAASU,eAC1B,WAAab,EAAQG,SAASU,gBAAmBb,EAAQc,MAE3DhB,OCrCY,SAASiB,EAAcC,GACrC,IAAOA,EACN,OAAO,EAER,MAAMC,EAAOD,EAAME,MAAO,cAAiBF,EAAME,MAAMC,KACvD,SAAKF,IAAQA,EAAKtC,SACVsC,EAAM,GAAIG,KCkBZ,SAASC,EAAyB3D,GACxC,MAAO,CAAED,KAAM,4BAA6BC,YAAAA,GAYtC,SAAS4D,EAA2BhE,EAAoBI,GAC9D,MAAO,CACND,KAAM,8BACNH,mBAAAA,EACAI,YAAAA,GAWK,MAAM6D,EAAqBP,GAAWQ,MAAAA,IAGtC,IAH8C,SACpDC,EADoD,SAEpDC,GACM,EACN,MAAM,GAAEC,EAAF,KAAMxD,GAAS6C,EACrB,IAAIY,GAAU,EACdF,EAASG,iBAAkBF,GAC3B,IACCD,EAASI,gBAAiBH,GAAI,GAG9B,MAAMI,EAAMhB,EAAcC,GAC1B,IAAIE,EAAQ,GACPa,QACEC,GAAAA,CAAU,CACfC,OAAQ,MACRF,IAAAA,EACAG,KAAM,CAAEC,OAAQ,YASjBjB,SANuBc,GAAAA,CAAU,CAChCC,OAAQ,OACRG,KAAM,gBACNF,KAAM,CAAEG,KAAMV,EAAIQ,OAAQ,aAGVG,OAGlBZ,EAASa,sBAAuB,IAC5BvB,EACHE,MAAO,IAAKF,EAAME,SAAUA,KAI7B,MAAMsB,EAAiB,CACtB,cACA,QACA,WACA,SACA,OACA,cACA,WACA,aACA,mBACA,eACA,WACA,SACA,UACA,cAoBD,SAlBMR,GAAAA,CAAU,CACfI,MAAMK,EAAAA,EAAAA,cAAe,sBAAsBtE,IAAS,CACnDuE,QAASF,MAITG,OAAO,SACPC,MAAQC,IACDA,IAGPC,EAAAA,EAAAA,+CAA+C,CAC9C,CAAE3E,IAAQ4E,EAAAA,EAAAA,MAAMF,EAAUL,cFtExBhB,iBAQN,MAAMqB,QAAiBb,GAAAA,CAAU,CAChCD,IAAK9B,SAAS+C,SAAS5B,KACvB6B,OAAO,IAGFf,QAAaW,EAASK,OAEtBC,GAAM,IAAI/F,OAAOgG,WAAYC,gBAAiBnB,EAAM,aAEpDoB,EAAYC,MAAMC,KACvBL,EAAIM,iBAAkB,kCACrBxF,QAAUyF,GAAWA,EAAM/B,KAAQ1B,SAAS0D,eAAgBD,EAAM/B,MAMpE,IAAM,MAAMiC,KAAYN,QACjB3D,EAAWiE,GEgDXC,IACmBpC,EAASrC,OAAQ0E,EAAAA,OAAcC,gBAChCnF,MAAQC,GAAOA,EAAEV,OAASA,IACjD,MAAM,IAAIwC,OACTqD,EAAAA,EAAAA,IAAI,qDAINvC,EAASC,SAAUuC,EAAAA,OAAeC,kBACjCC,EAAAA,EAAAA;CAECH,EAAAA,EAAAA,IAAI,iCACJhD,EAAMoD,OAEP,CACCC,OAAO,EACP5G,KAAM,aAGRmE,GAAU,EACT,MAAQ0C,GACT,IAAIhG,EAAUgG,EAAMhG,UAAW0F,EAAAA,EAAAA,IAAI,sBAG/BzF,EAAU+F,aAAiB3D,MAG/B,MAAM4D,EAAiB,CACtBC,eAAeR,EAAAA,EAAAA,IACd,4DAEDS,iCAAiCT,EAAAA,EAAAA,IAChC,mEAIGO,EAAgBD,EAAMI,QAC1BnG,GAAU,EACVD,EAAUiG,EAAgBD,EAAMI,OAGjChD,EAASiD,eAAgBhD,EAAIrD,EAASC,GACtCkD,EAASC,SAAUuC,EAAAA,OAAeW,kBAAmBtG,EAAS,CAC7D+F,OAAO,EACPQ,eAAe,IAIjB,OADAnD,EAASI,gBAAiBH,GAAI,GACvBC,GAQKkD,EAAuB9D,GAAWQ,MAAAA,IAGxC,IAHgD,SACtDC,EADsD,SAEtDC,GACM,EACN,IACC,MAAMK,EAAMhB,EAAcC,SACpBgB,GAAAA,CAAU,CACfC,OAAQ,MACRF,IAAAA,EACAG,KAAM,CAAEC,OAAQ,oBAEXH,GAAAA,CAAU,CACfC,OAAQ,SACRF,IAAAA,IAEDL,EAASqD,yBAA0B/D,GAClC,MAAQsD,GACT7C,EACEC,SAAUuC,EAAAA,OACVW,kBAAmBN,EAAMhG,UAAW0F,EAAAA,EAAAA,IAAI,yBAYrC,SAASzB,EAAuBvE,GACtC,MAAO,CACNP,KAAM,2BACNO,KAAAA,GAYK,SAAS+G,EAA0B/G,GACzC,MAAO,CACNP,KAAM,8BACNO,KAAAA,GAYK,SAAS8D,EAAiB1D,EAASL,GACzC,MAAO,CACNN,KAAM,uBACNW,QAAAA,EACAL,aAAAA,GAaK,SAAS4G,EAAgBvG,EAASE,GAA2B,IAAlBC,EAAkB,wDACnE,MAAO,CACNd,KAAM,mBACNW,QAAAA,EACAE,QAAAA,EACAC,QAAAA,GAWK,SAASsD,EAAkBzD,GACjC,MAAO,CACNX,KAAM,qBACNW,QAAAA,GCxQK,MAAMY,EAA0BtB,GAAiB8D,MAAAA,IAEjD,IAFyD,SAC/DE,GACM,EACN,GAAOhE,EAIP,IACCgE,EAAUL,EAAyB3D,IAQnCgE,EAAUJ,SAPYU,GAAAA,CAAU,CAC/BI,KAAO,qCAAqC1E,OAEtBsH,KAAOC,IAC7BC,EAAAA,EAAAA,SAASD,GAAQ,CAAE9H,EAAOb,KAAS6I,EAAAA,EAAAA,WAAW7I,OAGFoB,IAC5C,SCPU0H,EAAc,CAC1BC,QAD0B,EAE1BC,UAF0B,EAG1BC,QAH0B,EAI1BC,UAASA,GAUGC,GAAQC,EAAAA,EAAAA,kBAvBF,uBAuBgCN,GC1BpC,SAASO,IACvB,MAAM,mBAAEb,IAAuBc,EAAAA,EAAAA,aAAaC,GAEtCC,GAAyBC,EAAAA,EAAAA,YAAa3G,IAC3C,MAAM,iBAAE4G,EAAF,aAAoBC,GAAiB7G,EAAQ8G,EAAAA,OACnD,OAAOD,MAAoBD,MACzB,IAEGG,GAAmBJ,EAAAA,EAAAA,YACtB3G,GAAYA,EAAQyG,GAAsBrG,uBAC5C,IAYD,OATA4G,EAAAA,EAAAA,YAAW,KACLN,GAA0BK,EAAiBxH,QAC/CwH,EAAiB/F,SAAWlC,IAC3B4G,EAAoB5G,IACpBmI,EAAAA,EAAAA,qBAAqBnI,EAAUC,WAG/B,CAAE2H,IAEE,MDMRQ,EAAAA,EAAAA,UAAUb,GEzCV,IAAI,EAA+BrI,OAAW,GAAc,WCAxD,EAA+BA,OAAW,GAAW,QCArD,EAA+BA,OAAW,GAAY,SCA3C,SAASmJ,IAetB,OAdAA,EAAW/J,OAAOgK,QAAU,SAAUC,GACpC,IAAK,IAAI5H,EAAI,EAAGA,EAAI6H,UAAU/H,OAAQE,IAAK,CACzC,IAAI8H,EAASD,UAAU7H,GAEvB,IAAK,IAAIvC,KAAOqK,EACVnK,OAAOM,UAAUC,eAAeC,KAAK2J,EAAQrK,KAC/CmK,EAAOnK,GAAOqK,EAAOrK,IAK3B,OAAOmK,IAGOG,MAAMC,KAAMH,WCf9B,IAAI,EAA+BtJ,OAAW,GAAgB,aCwB9D,EARA,YAA+C,IAAhC,KAAE0J,EAAF,KAAQC,EAAO,MAAOC,GAAU,EAC9C,OAAOC,EAAAA,EAAAA,cAAcH,EAAM,CAC1BI,MAAOH,EACPI,OAAQJ,KACLC,KCpBD,EAA+B5J,OAAW,GAAc,WCW5D,GALC,mBAAC,EAAAgK,IAAD,CAAKC,MAAM,6BAA6BC,QAAQ,cAC/C,mBAAC,EAAAC,KAAD,CAAMrL,EAAE,qVCIV,GALC,mBAAC,EAAAkL,IAAD,CAAKC,MAAM,6BAA6BC,QAAQ,cAC/C,mBAAC,EAAAC,KAAD,CAAMrL,EAAE,4dCQV,GATC,mBAAC,EAAAkL,IAAD,CAAKC,MAAM,6BAA6BC,QAAQ,cAC/C,mBAAC,EAAAC,KAAD,CACCC,SAAS,UACTtL,EAAE,+jBACFuL,SAAS,aC4CZ,EA3CA,YAA6B,IAAb,OAAEC,GAAW,EAC5B,MAAMC,EAAqC,GAA7BC,KAAKC,MAAOH,EAAS,IAE7BI,EAAgBF,KAAKG,MAAOL,GAC5BM,EAAgBJ,KAAKK,KAAMP,EAASI,GACpCI,EAAiB,GAAMJ,EAAgBE,GAE7C,OACC,2BACC,cAAa7D,EAAAA,EAAAA;;CAEZH,EAAAA,EAAAA,IAAI,qBACJ2D,KAGCQ,EAAAA,EAAAA,OAAOL,GAAiBjJ,IACzB,mBAAC,EAAD,CACCvC,IAAO,cAAcuC,IACrBuJ,UAAU,2CACVtB,KAAOuB,EACPtB,KAAO,QAGPoB,EAAAA,EAAAA,OAAOH,GAAiBnJ,IACzB,mBAAC,EAAD,CACCvC,IAAO,cAAcuC,IACrBuJ,UAAU,gDACVtB,KAAOwB,EACPvB,KAAO,QAGPoB,EAAAA,EAAAA,OAAOD,GAAkBrJ,IAC1B,mBAAC,EAAD,CACCvC,IAAO,eAAeuC,IACtBuJ,UAAU,4CACVtB,KAAOyB,EACPxB,KAAO,SCpCZ,GAN4B,QAAE,OAAEW,GAAJ,SAC3B,2BAAMU,UAAU,kCACf,mBAAC,EAAD,CAAOV,OAASA,MCOlB,GATA,YAA2C,IAAX,KAAEZ,GAAS,EAC1C,MAAMsB,EAAY,0CAClB,OAA8D,OAAvDtB,EAAK0B,MAAO,uCAClB,0BAAKJ,UAAYA,EAAYtH,IAAMgG,EAAO2B,IAAI,MAE9C,mBAAC,EAAAC,UAAD,CAAWN,UAAYA,EAAYtB,KAAOA,EAAO6B,YAAU,KCwB7D,GAvBuC,IAAiB,IAAf,MAAE3H,GAAa,EACvD,MAAM4H,GAAc7C,EAAAA,EAAAA,YACjB3G,GACDA,EAAQyG,GAAsBnG,uBAAwBsB,EAAMW,KAC7D,CAAEX,IAGH,OAAO4H,GAKN,0BAAKR,UAAU,8CACd,0BAAKA,UAAU,sDACZQ,EAAYtK,QACZsK,EAAYrK,QACX,KAAMyF,EAAAA,EAAAA,IAAI,2BACV,OATE,MCKT,SAAS6E,GAAT,KAGE,IAFD,MAAEzE,EAAF,OAASsD,EAAT,YAAiBoB,GAEhB,GADD,UAAEC,EAAF,YAAaC,EAAb,aAA0BjL,GACzB,EACD,MAAM4J,EAAqC,GAA7BC,KAAKC,MAAOH,EAAS,IAEnC,OAAOsB,GAAeD,GAEd5E,EAAAA,EAAAA,SAAS,wBAAwB8E,EAAAA,EAAAA,gBAAgB7E,IAGpD4E,GAEG7E,EAAAA,EAAAA,SAAS,WAAW8E,EAAAA,EAAAA,gBAAgB7E,IAGvCrG,GAEGoG,EAAAA,EAAAA,SAAS,kBAAkB8E,EAAAA,EAAAA,gBAAgB7E,IAI9C0E,EAAc,GAEX3E,EAAAA,EAAAA,SAAS,eAAe8E,EAAAA,EAAAA,gBAAgB7E,KAGzCD,EAAAA,EAAAA;;CAEN+E,EAAAA,EAAAA,IACC,6CACA,8CACAJ,IAEDG,EAAAA,EAAAA,gBAAgB7E,GAChBuD,EACAmB,GAqGF,OAjGA,YAAmE,IAA/B,UAAEK,EAAF,KAAanL,EAAb,QAAmBoL,GAAY,EAClE,MAAM,OAAEC,EAAF,YAAUC,EAAV,KAAuBxC,EAAvB,OAA6BY,EAA7B,MAAqCtD,GAAUpG,EAE/CgL,KAAiBO,EAAAA,EAAAA,cAAcvL,EAAKG,OAEpC,UAAE4K,EAAF,aAAahL,EAAb,cAA2ByL,IAAkBzD,EAAAA,EAAAA,YAChD3G,IACD,MAAM,uBACLM,EACA3B,aAAc0L,GACXrK,EAAQyG,GACN6D,EAAShK,EAAwB1B,EAAK2D,IACtCgI,EAAWD,GAAUA,EAAOnL,QAClC,MAAO,CACNwK,YAAcW,EACd3L,aAAc0L,EAAmBzL,EAAK2D,IACtC6H,eAAiBG,KAGnB,CAAE3L,IAGH,IAAI4L,EAAa,GAOjB,OANKZ,EACJY,GAAa5F,EAAAA,EAAAA,IAAI,cACNjG,IACX6L,GAAa5F,EAAAA,EAAAA,IAAI,iBAIjB,mBAAC,0BAAD,GACC6F,KAAK,SACLC,GAAKC,EAAAA,QACAZ,EAHN,CAICf,UAAU,+CACVgB,QAAYY,IACXA,EAAMC,iBACNb,KAEDc,OAASnM,EACToM,SAAWpM,IAAkByL,EAC7BY,MAAQvB,GAA2B7K,EAAM,CACxC+K,UAAAA,EACAC,YAAAA,EACAjL,aAAAA,IAEDsM,aAAc,EACdC,gBAAgB,gBAEhB,0BAAKlC,UAAU,uDACd,mBAAC,GAAD,CAAuBtB,KAAOA,EAAO1C,MAAQA,IAC3CrG,GACD,2BAAMqK,UAAU,0DACf,mBAAC,EAAAmC,QAAD,QAGD,mBAAC,GAAD,CAAc7C,OAASA,MAGzB,2BAAMU,UAAU,0DACf,2BAAMA,UAAU,wDACboC,EAAAA,EAAAA,2BACDrG,EAAAA,EAAAA;;CAECH,EAAAA,EAAAA,IAAI,8BACJiF,EAAAA,EAAAA,gBAAgB7E,GAChBiF,GAED,CACCoB,MACC,2BAAMrC,UAAU,4DAKlBW,GACD,mBAAC,GAAD,CAAyB/H,MAAQhD,KAEjC,oCACC,2BAAMoK,UAAU,sDACVwB,IAEFX,EAAAA,EAAAA,gBAAgBK,IAElBE,KACGR,GAAejL,KAClB,mBAAC,EAAA2M,eAAD,MACG1G,EAAAA,EAAAA,IAAI,sBCrFf,GA5CA,YAAuE,IAAtC,MAAE2G,EAAF,QAASC,EAAUC,EAAAA,KAAnB,SAAyBC,GAAa,EACtE,MAAM3B,GAAY4B,EAAAA,EAAAA,gCACZ,iBAAExJ,IAAqBqE,EAAAA,EAAAA,aAAaC,GAE1C,OAAO8E,EAAMhM,QAKZ,mBAAC,sBAAD,KACMwK,EADN,CAECU,KAAK,UACLzB,UAAU,2CACV,cAAapE,EAAAA,EAAAA,IAAI,kCAEf2G,EAAM3F,KAAOhH,IAEb,mBAAC,GAAD,CACC1B,IAAM0B,EAAK2D,GACXwH,UAAYA,EACZC,QAAU,MAIJG,EAAAA,EAAAA,cAAcvL,EAAKG,MACvB2M,EAAU9M,GAEVuD,EAAkBvD,GAAO4E,MAAQhB,IAC3BA,GACJkJ,EAAU9M,MAIb4M,EAAS,OAEVA,QAAUA,EACV5M,KAAOA,OA/BJ,MC3BL,GAA+BZ,OAAW,GAAQ,KCsDtD,GA/CA,YAII,IAJsC,SACzC4N,EADyC,kBAEzCC,EAFyC,eAGzCC,GACG,EACH,MAAMC,EAAQF,EAAkBtM,OAehC,OAdAyH,EAAAA,EAAAA,YAAW,MACV/B,EAAAA,GAAAA,QACCF,EAAAA,EAAAA;;CAEC+E,EAAAA,EAAAA,IACC,+CACA,iDACAiC,GAEDA,MAGA,CAAEA,KAGJ,oCACKD,IACH,wBAAG9C,UAAU,wDACVpE,EAAAA,EAAAA,IAAI,sDAIR,0BAAKoE,UAAU,qDAEf,0BAAKA,UAAU,8CACd,0BAAKA,UAAU,sDACd,yBAAIA,UAAU,qDACXpE,EAAAA,EAAAA,IAAI,0BAEP,wBAAGoE,UAAU,2DACVpE,EAAAA,EAAAA,IACD,wDAIDgH,KCrCN,IALC,mBAAC,EAAA5D,IAAD,CAAKC,MAAM,6BAA6BC,QAAQ,cAC/C,mBAAC,EAAAC,KAAD,CAAMrL,EAAE,oLCWV,GAZA,WACC,OACC,0BAAKkM,UAAU,sCACd,mBAAC,EAAD,CACCA,UAAU,yCACVtB,KAAOsE,MAER,6BAAKpH,EAAAA,EAAAA,IAAI,wBC0DZ,IAAeqH,EAAAA,EAAAA,SAAS,EACvBC,EAAAA,EAAAA,aAAY,CAAElM,EAAF,KAAoD,IAA1C,YAAE1B,EAAF,aAAe6N,EAAe,MAAY,EAC/D,MAAM,sBACLvM,EADK,+BAELD,GACGK,EAAQyG,IACN,mBAAE2F,GAAuBpM,EAAQE,EAAAA,OAEjCmM,EAAgBrM,EAAQsM,EAAAA,OAAYC,QACzC,OACA,0BAcD,MAAO,CACNV,kBANyBQ,EALlBzM,EAMiBtB,GANaO,QAAU+C,GAC9CwK,EAAoBxK,EAAOuK,GAAc,KAMxC,GAKFE,cAAAA,EACAG,UALiB7M,EAAgCrB,QAtBpD,EArDA,YAQI,IAR8B,kBACjCuN,EADiC,SAEjCH,EAFiC,QAGjCF,EAHiC,eAIjCM,EAJiC,cAKjCO,EALiC,UAMjCG,EANiC,SAOjCC,GACG,EACH,YAA8B,IAAlBJ,GAAiCG,GAAaC,GAExD,mCACGJ,IAAmBP,IACpB,oCACC,wBAAG9C,UAAU,wDACVpE,EAAAA,EAAAA,IACD,sDAGF,0BAAKoE,UAAU,sDAGjB,0BAAKA,UAAU,iEACd,mBAAC,EAAAmC,QAAD,SAMC,IAAUkB,EACPP,EAIA,MAHC,mBAAC,GAAD,MAMCD,EAAkBtM,QAC3B,mBAAC,GAAD,CACCsM,kBAAoBA,EACpBC,eAAiBA,IAEjB,mBAAC,GAAD,CACCP,MAAQM,EACRH,SAAWA,EACXF,QAAUA,MAIVM,IAAkB,mBAAC,GAAD,SCftB,GApCA,WACC,MAAQY,EAAsBC,IAAmBC,EAAAA,EAAAA,UAAU,IACrDC,GAA0BC,EAAAA,EAAAA,UAAUH,EAAgB,KAE1D,OACC,mBAAC,EAAAI,gCAAD,MACG,IAMK,IANH,SACHrB,EADG,QAEHF,EAFG,YAGHlN,EAHG,SAIH0O,EAJG,aAKHb,GACM,EAKN,OAJKO,IAAyBpO,GAC7BuO,EAAyBvO,GAGnBoO,GAKN,mBAAC,GAAD,CACChB,SAAWA,EACXF,QAAUA,EACVW,aAAeA,EACf7N,YAAcoO,EACdZ,eAAiBkB,EACjBP,SAAWnO,IAAgBoO,IAVrB,SClCR,GAA+B1O,OAAW,GAAY,SCU3C,SAASiP,GAAT,GAAkC,IAAZ,MAAE1B,GAAU,EAChD,OAAOA,EAAMhM,QAKZ,yBAAIyJ,UAAU,gCACXuC,EAAM3F,KAAK,QAAE,KAAE8B,EAAF,GAAQnF,EAAR,MAAYyC,EAAZ,OAAmBiF,GAArB,SACZ,yBAAI/M,IAAMqF,EAAKyG,UAAU,uCACxB,mBAAC,GAAD,CAAuBtB,KAAOA,EAAO1C,MAAQA,KAE7C,0BAAKgE,UAAU,+CACd,0BAAKA,UAAU,4CACZhE,IAEH,0BAAKgE,UAAU,8CACZjE,EAAAA,EAAAA;;CAEDH,EAAAA,EAAAA,IAAI,SACJqF,UAjBC,KCEM,SAASiD,KACvB,MAAMC,GAAgBxG,EAAAA,EAAAA,YACnB3G,GAAYA,EAAQyG,GAAsB3G,oBAC5C,IAGD,OAAOqN,EAAc5N,QAKpB,mBAAC,GAAA6N,sBAAD,CACC1F,KAAOsE,GACPhH,OAAQD,EAAAA,EAAAA;CAEP+E,EAAAA,EAAAA,IACC,kBACA,mBACAqD,EAAc5N,QAEf4N,EAAc5N,QAEf8N,aAAc,IAEd,wBAAGrE,UAAU,6CACVc,EAAAA,EAAAA,IACD,mDACA,qDACAqD,EAAc5N,UAGhB,mBAAC0N,GAAD,CAAa1B,MAAQ4B,KAxBf,KCPM,SAASG,GAAT,GAA0D,IAAlC,WAAEC,EAAF,MAAc3L,EAAd,SAAqB4L,GAAa,EACxE,MAAMC,GAAoB9G,EAAAA,EAAAA,YACvB3G,GAAYA,EAAQyG,GAAsB9H,aAAciD,EAAMW,KAChE,CAAEX,EAAMW,MAEH,iBAAEJ,IAAqBqE,EAAAA,EAAAA,aAAaC,IACpC,aAAEiH,IAAiBlH,EAAAA,EAAAA,aAAatG,EAAAA,OAEtC,OACC,mBAAC,EAAAyK,OAAD,CACCX,QAAU,IACT7H,EAAkBP,GAAQ4B,MAAQhB,IACjC,GAAKA,EAAU,CACd,MAAM1D,GAAYqL,EAAAA,EAAAA,cAAcvI,EAAM7C,OAC9B4O,IAAkB9J,EAAAA,EAAAA,OACzB0J,EAAWK,iBAEPD,GAAiB7O,GACrB4O,EACCF,GACAK,EAAAA,EAAAA,aACC/O,EAAUC,KACV4O,EAAcJ,WACdI,EAAcjO,kBAOpBqL,SAAW0C,EACX3C,OAAS2C,EACTK,QAAQ,YAEN/I,EAAAA,EAAAA;;CAEDH,EAAAA,EAAAA,IAAI,cACJhD,EAAMoD,QC9BV,MA6BM+I,GAAkB,IAAmC,IAAjC,cAAEJ,KAAkB/F,GAAa,EAC1D,MAAM,aAAEoG,EAAF,2BAAgBC,GAA+BrG,EAAM2F,YACrD,aAAEG,IAAiBlH,EAAAA,EAAAA,aAAatG,EAAAA,OAUhCgO,IAAgBD,EAChBE,GAAehE,EAAAA,EAAAA,cAAc,aAEnC,IAAIiE,GAAcrJ,EAAAA,EAAAA;;CAEjBH,EAAAA,EAAAA,IACC,+GAED+I,EAAc3I,OAASgJ,GAExB,MAAM7H,EAAU,EACf,mBAACmH,GAAD,CACCpQ,IAAI,UACJ0E,MAAQ+L,EACRJ,WAAa3F,EAAM2F,WACnBC,SAAW5F,EAAM4F,YAmBnB,OAfKU,GAAcC,IAClBC,GAAcrJ,EAAAA,EAAAA;;CAEbH,EAAAA,EAAAA,IACC,mJAED+I,EAAc3I,OAASgJ,GAExB7H,EAAQkI,MACP,mBAAC,EAAA1D,OAAD,CAAQzN,IAAI,UAAU8M,QArCF,KACrB0D,EACC9F,EAAM4F,UACNK,EAAAA,EAAAA,aAAa,YAAa,CACzBS,QAASL,MAiCsCH,QAAQ,SACrDlJ,EAAAA,EAAAA,IAAI,oBAMR,0BAAU2J,EAAAA,EAAAA,kBACT,mBAAC,EAAAC,QAAD,CAASrI,QAAUA,GAAYiI,IAC/B,mBAAC,EAAAK,QAAD,KAAWR,MCrFdS,EAAAA,EAAAA,gBAAgB,kBAAmB,CAClCC,OAAM,KAEJ,oCACC,mBAACpI,EAAD,OACA,mBAAC,GAAD,OACA,mBAAC2G,GAAD,UAMJ0B,EAAAA,EAAAA,WACC,2BACA,4BACA,CAAEC,EAAU9P,KACX,MAAc,iBAATA,IAGL8P,EAASC,MDZiBC,ECYSF,EAASC,KDZOlH,IACpD,MAAM,aAAEoG,GAAiBpG,EAAM2F,YAGzB,MAAE3L,EAAF,cAASyK,IAAkB1F,EAAAA,EAAAA,YAC9B3G,IACD,MAAM,sBAAEJ,GAA0BI,EAAQyG,GACpCnH,EAASM,EACd,SAAWoO,GACVnP,QAAQ,QAAE,KAAEE,GAAJ,SAAgBiP,IAAiBjP,KAC3C,MAAO,CACNsN,cAAerM,EAAQsM,EAAAA,OAAYC,QAClC,OACA,0BAED3K,MAAOtC,EAAOC,QAAUD,EAAQ,MAGlC,CAAE0O,IAIH,OAAO3B,GAAmBzK,GAInB,mBAACmM,GAAD,KAAsBnG,EAAtB,CAA8B+F,cAAgB/L,MAH7C,mBAACmN,EAAuBnH,MCbvBiH,EDVkBE,IAAAA,M","sources":["webpack://wp/webpack/bootstrap","webpack://wp/webpack/runtime/compat get default export","webpack://wp/webpack/runtime/define property getters","webpack://wp/webpack/runtime/hasOwnProperty shorthand","webpack://wp/webpack/runtime/make namespace object","webpack://wp/external window [\"wp\",\"element\"]","webpack://wp/external window [\"wp\",\"plugins\"]","webpack://wp/external window [\"wp\",\"hooks\"]","webpack://wp/external window [\"wp\",\"blocks\"]","webpack://wp/external window [\"wp\",\"data\"]","webpack://wp/external window [\"wp\",\"editor\"]","webpack://wp/external window \"lodash\"","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/reducer.js","webpack://wp/external window [\"wp\",\"blockEditor\"]","webpack://wp/./packages/block-directory/build-module/store/utils/@wordpress/block-directory/src/store/utils/has-block-type.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/selectors.js","webpack://wp/external window [\"wp\",\"i18n\"]","webpack://wp/external window [\"wp\",\"apiFetch\"]","webpack://wp/external window [\"wp\",\"notices\"]","webpack://wp/external window [\"wp\",\"url\"]","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/load-assets.js","webpack://wp/./packages/block-directory/build-module/store/utils/@wordpress/block-directory/src/store/utils/get-plugin-url.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/actions.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/resolvers.js","webpack://wp/./packages/block-directory/build-module/store/@wordpress/block-directory/src/store/index.js","webpack://wp/./packages/block-directory/build-module/components/auto-block-uninstaller/@wordpress/block-directory/src/components/auto-block-uninstaller/index.js","webpack://wp/external window [\"wp\",\"components\"]","webpack://wp/external window [\"wp\",\"compose\"]","webpack://wp/external window [\"wp\",\"coreData\"]","webpack://wp/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://wp/external window [\"wp\",\"htmlEntities\"]","webpack://wp/./packages/icons/build-module/icon/@wordpress/icons/src/icon/index.js","webpack://wp/external window [\"wp\",\"primitives\"]","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-filled.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-half.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/star-empty.js","webpack://wp/./packages/block-directory/build-module/components/block-ratings/@wordpress/block-directory/src/components/block-ratings/stars.js","webpack://wp/./packages/block-directory/build-module/components/block-ratings/@wordpress/block-directory/src/components/block-ratings/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-icon/@wordpress/block-directory/src/components/downloadable-block-icon/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-notice/@wordpress/block-directory/src/components/downloadable-block-notice/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-block-list-item/@wordpress/block-directory/src/components/downloadable-block-list-item/index.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-list/@wordpress/block-directory/src/components/downloadable-blocks-list/index.js","webpack://wp/external window [\"wp\",\"a11y\"]","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/inserter-panel.js","webpack://wp/./packages/icons/build-module/library/@wordpress/icons/src/library/block-default.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/no-results.js","webpack://wp/./packages/block-directory/build-module/components/downloadable-blocks-panel/@wordpress/block-directory/src/components/downloadable-blocks-panel/index.js","webpack://wp/./packages/block-directory/build-module/plugins/inserter-menu-downloadable-blocks-panel/@wordpress/block-directory/src/plugins/inserter-menu-downloadable-blocks-panel/index.js","webpack://wp/external window [\"wp\",\"editPost\"]","webpack://wp/./packages/block-directory/build-module/components/compact-list/@wordpress/block-directory/src/components/compact-list/index.js","webpack://wp/./packages/block-directory/build-module/plugins/installed-blocks-pre-publish-panel/@wordpress/block-directory/src/plugins/installed-blocks-pre-publish-panel/index.js","webpack://wp/./packages/block-directory/build-module/plugins/get-install-missing/@wordpress/block-directory/src/plugins/get-install-missing/install-button.js","webpack://wp/./packages/block-directory/build-module/plugins/get-install-missing/@wordpress/block-directory/src/plugins/get-install-missing/index.js","webpack://wp/./packages/block-directory/build-module/plugins/@wordpress/block-directory/src/plugins/index.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"element\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"plugins\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"hooks\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blocks\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"data\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editor\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"lodash\"];","/**\n * External dependencies\n */\n\nimport { omit } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning an array of downloadable blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const downloadableBlocks = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'FETCH_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tisRequesting: true,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'RECEIVE_DOWNLOADABLE_BLOCKS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.filterValue ]: {\n\t\t\t\t\tresults: action.downloadableBlocks,\n\t\t\t\t\tisRequesting: false,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer managing the installation and deletion of blocks.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const blockManagement = (\n\tstate = {\n\t\tinstalledBlockTypes: [],\n\t\tisInstalling: {},\n\t},\n\taction\n) => {\n\tswitch ( action.type ) {\n\t\tcase 'ADD_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: [\n\t\t\t\t\t...state.installedBlockTypes,\n\t\t\t\t\taction.item,\n\t\t\t\t],\n\t\t\t};\n\t\tcase 'REMOVE_INSTALLED_BLOCK_TYPE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tinstalledBlockTypes: state.installedBlockTypes.filter(\n\t\t\t\t\t( blockType ) => blockType.name !== action.item.name\n\t\t\t\t),\n\t\t\t};\n\t\tcase 'SET_INSTALLING_BLOCK':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tisInstalling: {\n\t\t\t\t\t...state.isInstalling,\n\t\t\t\t\t[ action.blockId ]: action.isInstalling,\n\t\t\t\t},\n\t\t\t};\n\t}\n\treturn state;\n};\n\n/**\n * Reducer returning an object of error notices.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport const errorNotices = ( state = {}, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'SET_ERROR_NOTICE':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ action.blockId ]: {\n\t\t\t\t\tmessage: action.message,\n\t\t\t\t\tisFatal: action.isFatal,\n\t\t\t\t},\n\t\t\t};\n\t\tcase 'CLEAR_ERROR_NOTICE':\n\t\t\treturn omit( state, action.blockId );\n\t}\n\treturn state;\n};\n\nexport default combineReducers( {\n\tdownloadableBlocks,\n\tblockManagement,\n\terrorNotices,\n} );\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"blockEditor\"];","/**\n * Check if a block list contains a specific block type. Recursively searches\n * through `innerBlocks` if they exist.\n *\n * @param {Object} blockType A block object to search for.\n * @param {Object[]} blocks The list of blocks to look through.\n *\n * @return {boolean} Whether the blockType is found.\n */\nexport default function hasBlockType( blockType, blocks = [] ) {\n\tif ( ! blocks.length ) {\n\t\treturn false;\n\t}\n\tif ( blocks.some( ( { name } ) => name === blockType.name ) ) {\n\t\treturn true;\n\t}\n\tfor ( let i = 0; i < blocks.length; i++ ) {\n\t\tif ( hasBlockType( blockType, blocks[ i ].innerBlocks ) ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n","/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport hasBlockType from './utils/has-block-type';\n\n/**\n * Returns true if application is requesting for downloadable blocks.\n *\n * @param {Object} state Global application state.\n * @param {string} filterValue Search string.\n *\n * @return {boolean} Whether a request is in progress for the blocks list.\n */\nexport function isRequestingDownloadableBlocks( state, filterValue ) {\n\treturn state.downloadableBlocks[ filterValue ]?.isRequesting ?? false;\n}\n\n/**\n * Returns the available uninstalled blocks.\n *\n * @param {Object} state Global application state.\n * @param {string} filterValue Search string.\n *\n * @return {Array} Downloadable blocks.\n */\nexport function getDownloadableBlocks( state, filterValue ) {\n\treturn state.downloadableBlocks[ filterValue ]?.results ?? [];\n}\n\n/**\n * Returns the block types that have been installed on the server in this\n * session.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items\n */\nexport function getInstalledBlockTypes( state ) {\n\treturn state.blockManagement.installedBlockTypes;\n}\n\n/**\n * Returns block types that have been installed on the server and used in the\n * current post.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items.\n */\nexport const getNewBlockTypes = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst usedBlockTree = select( blockEditorStore ).getBlocks();\n\t\tconst installedBlockTypes = getInstalledBlockTypes( state );\n\n\t\treturn installedBlockTypes.filter( ( blockType ) =>\n\t\t\thasBlockType( blockType, usedBlockTree )\n\t\t);\n\t}\n);\n\n/**\n * Returns the block types that have been installed on the server but are not\n * used in the current post.\n *\n * @param {Object} state Global application state.\n *\n * @return {Array} Block type items.\n */\nexport const getUnusedBlockTypes = createRegistrySelector(\n\t( select ) => ( state ) => {\n\t\tconst usedBlockTree = select( blockEditorStore ).getBlocks();\n\t\tconst installedBlockTypes = getInstalledBlockTypes( state );\n\n\t\treturn installedBlockTypes.filter(\n\t\t\t( blockType ) => ! hasBlockType( blockType, usedBlockTree )\n\t\t);\n\t}\n);\n\n/**\n * Returns true if a block plugin install is in progress.\n *\n * @param {Object} state Global application state.\n * @param {string} blockId Id of the block.\n *\n * @return {boolean} Whether this block is currently being installed.\n */\nexport function isInstalling( state, blockId ) {\n\treturn state.blockManagement.isInstalling[ blockId ] || false;\n}\n\n/**\n * Returns all block error notices.\n *\n * @param {Object} state Global application state.\n *\n * @return {Object} Object with error notices.\n */\nexport function getErrorNotices( state ) {\n\treturn state.errorNotices;\n}\n\n/**\n * Returns the error notice for a given block.\n *\n * @param {Object} state Global application state.\n * @param {string} blockId The ID of the block plugin. eg: my-block\n *\n * @return {string|boolean} The error text, or false if no error.\n */\nexport function getErrorNoticeForBlock( state, blockId ) {\n\treturn state.errorNotices[ blockId ];\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"i18n\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"apiFetch\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"notices\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"url\"];","/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Load an asset for a block.\n *\n * This function returns a Promise that will resolve once the asset is loaded,\n * or in the case of Stylesheets and Inline JavaScript, will resolve immediately.\n *\n * @param {HTMLElement} el A HTML Element asset to inject.\n *\n * @return {Promise} Promise which will resolve when the asset is loaded.\n */\nexport const loadAsset = ( el ) => {\n\treturn new Promise( ( resolve, reject ) => {\n\t\t/*\n\t\t * Reconstruct the passed element, this is required as inserting the Node directly\n\t\t * won't always fire the required onload events, even if the asset wasn't already loaded.\n\t\t */\n\t\tconst newNode = document.createElement( el.nodeName );\n\n\t\t[ 'id', 'rel', 'src', 'href', 'type' ].forEach( ( attr ) => {\n\t\t\tif ( el[ attr ] ) {\n\t\t\t\tnewNode[ attr ] = el[ attr ];\n\t\t\t}\n\t\t} );\n\n\t\t// Append inline <script> contents.\n\t\tif ( el.innerHTML ) {\n\t\t\tnewNode.appendChild( document.createTextNode( el.innerHTML ) );\n\t\t}\n\n\t\tnewNode.onload = () => resolve( true );\n\t\tnewNode.onerror = () => reject( new Error( 'Error loading asset.' ) );\n\n\t\tdocument.body.appendChild( newNode );\n\n\t\t// Resolve Stylesheets and Inline JavaScript immediately.\n\t\tif (\n\t\t\t'link' === newNode.nodeName.toLowerCase() ||\n\t\t\t( 'script' === newNode.nodeName.toLowerCase() && ! newNode.src )\n\t\t) {\n\t\t\tresolve();\n\t\t}\n\t} );\n};\n\n/**\n * Load the asset files for a block\n */\nexport async function loadAssets() {\n\t/*\n\t * Fetch the current URL (post-new.php, or post.php?post=1&action=edit) and compare the\n\t * JavaScript and CSS assets loaded between the pages. This imports the required assets\n\t * for the block into the current page while not requiring that we know them up-front.\n\t * In the future this can be improved by reliance upon block.json and/or a script-loader\n\t * dependency API.\n\t */\n\tconst response = await apiFetch( {\n\t\turl: document.location.href,\n\t\tparse: false,\n\t} );\n\n\tconst data = await response.text();\n\n\tconst doc = new window.DOMParser().parseFromString( data, 'text/html' );\n\n\tconst newAssets = Array.from(\n\t\tdoc.querySelectorAll( 'link[rel=\"stylesheet\"],script' )\n\t).filter( ( asset ) => asset.id && ! document.getElementById( asset.id ) );\n\n\t/*\n\t * Load each asset in order, as they may depend upon an earlier loaded script.\n\t * Stylesheets and Inline Scripts will resolve immediately upon insertion.\n\t */\n\tfor ( const newAsset of newAssets ) {\n\t\tawait loadAsset( newAsset );\n\t}\n}\n","/**\n * Get the plugin's direct API link out of a block-directory response.\n *\n * @param {Object} block The block object\n *\n * @return {string} The plugin URL, if exists.\n */\nexport default function getPluginUrl( block ) {\n\tif ( ! block ) {\n\t\treturn false;\n\t}\n\tconst link = block.links[ 'wp:plugin' ] || block.links.self;\n\tif ( link && link.length ) {\n\t\treturn link[ 0 ].href;\n\t}\n\treturn false;\n}\n","/**\n * External dependencies\n */\nimport { pick } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tstore as blocksStore,\n\tunstable__bootstrapServerSideBlockDefinitions, // eslint-disable-line camelcase\n} from '@wordpress/blocks';\nimport { __, sprintf } from '@wordpress/i18n';\nimport apiFetch from '@wordpress/api-fetch';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport { loadAssets } from './load-assets';\nimport getPluginUrl from './utils/get-plugin-url';\n\n/**\n * Returns an action object used in signalling that the downloadable blocks\n * have been requested and are loading.\n *\n * @param {string} filterValue Search string.\n *\n * @return {Object} Action object.\n */\nexport function fetchDownloadableBlocks( filterValue ) {\n\treturn { type: 'FETCH_DOWNLOADABLE_BLOCKS', filterValue };\n}\n\n/**\n * Returns an action object used in signalling that the downloadable blocks\n * have been updated.\n *\n * @param {Array} downloadableBlocks Downloadable blocks.\n * @param {string} filterValue Search string.\n *\n * @return {Object} Action object.\n */\nexport function receiveDownloadableBlocks( downloadableBlocks, filterValue ) {\n\treturn {\n\t\ttype: 'RECEIVE_DOWNLOADABLE_BLOCKS',\n\t\tdownloadableBlocks,\n\t\tfilterValue,\n\t};\n}\n\n/**\n * Action triggered to install a block plugin.\n *\n * @param {Object} block The block item returned by search.\n *\n * @return {boolean} Whether the block was successfully installed & loaded.\n */\nexport const installBlockType = ( block ) => async ( {\n\tregistry,\n\tdispatch,\n} ) => {\n\tconst { id, name } = block;\n\tlet success = false;\n\tdispatch.clearErrorNotice( id );\n\ttry {\n\t\tdispatch.setIsInstalling( id, true );\n\n\t\t// If we have a wp:plugin link, the plugin is installed but inactive.\n\t\tconst url = getPluginUrl( block );\n\t\tlet links = {};\n\t\tif ( url ) {\n\t\t\tawait apiFetch( {\n\t\t\t\tmethod: 'PUT',\n\t\t\t\turl,\n\t\t\t\tdata: { status: 'active' },\n\t\t\t} );\n\t\t} else {\n\t\t\tconst response = await apiFetch( {\n\t\t\t\tmethod: 'POST',\n\t\t\t\tpath: 'wp/v2/plugins',\n\t\t\t\tdata: { slug: id, status: 'active' },\n\t\t\t} );\n\t\t\t// Add the `self` link for newly-installed blocks.\n\t\t\tlinks = response._links;\n\t\t}\n\n\t\tdispatch.addInstalledBlockType( {\n\t\t\t...block,\n\t\t\tlinks: { ...block.links, ...links },\n\t\t} );\n\n\t\t// Ensures that the block metadata is propagated to the editor when registered on the server.\n\t\tconst metadataFields = [\n\t\t\t'api_version',\n\t\t\t'title',\n\t\t\t'category',\n\t\t\t'parent',\n\t\t\t'icon',\n\t\t\t'description',\n\t\t\t'keywords',\n\t\t\t'attributes',\n\t\t\t'provides_context',\n\t\t\t'uses_context',\n\t\t\t'supports',\n\t\t\t'styles',\n\t\t\t'example',\n\t\t\t'variations',\n\t\t];\n\t\tawait apiFetch( {\n\t\t\tpath: addQueryArgs( `/wp/v2/block-types/${ name }`, {\n\t\t\t\t_fields: metadataFields,\n\t\t\t} ),\n\t\t} )\n\t\t\t// Ignore when the block is not registered on the server.\n\t\t\t.catch( () => {} )\n\t\t\t.then( ( response ) => {\n\t\t\t\tif ( ! response ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tunstable__bootstrapServerSideBlockDefinitions( {\n\t\t\t\t\t[ name ]: pick( response, metadataFields ),\n\t\t\t\t} );\n\t\t\t} );\n\n\t\tawait loadAssets();\n\t\tconst registeredBlocks = registry.select( blocksStore ).getBlockTypes();\n\t\tif ( ! registeredBlocks.some( ( i ) => i.name === name ) ) {\n\t\t\tthrow new Error(\n\t\t\t\t__( 'Error registering block. Try reloading the page.' )\n\t\t\t);\n\t\t}\n\n\t\tregistry.dispatch( noticesStore ).createInfoNotice(\n\t\t\tsprintf(\n\t\t\t\t// translators: %s is the block title.\n\t\t\t\t__( 'Block %s installed and added.' ),\n\t\t\t\tblock.title\n\t\t\t),\n\t\t\t{\n\t\t\t\tspeak: true,\n\t\t\t\ttype: 'snackbar',\n\t\t\t}\n\t\t);\n\t\tsuccess = true;\n\t} catch ( error ) {\n\t\tlet message = error.message || __( 'An error occurred.' );\n\n\t\t// Errors we throw are fatal\n\t\tlet isFatal = error instanceof Error;\n\n\t\t// Specific API errors that are fatal\n\t\tconst fatalAPIErrors = {\n\t\t\tfolder_exists: __(\n\t\t\t\t'This block is already installed. Try reloading the page.'\n\t\t\t),\n\t\t\tunable_to_connect_to_filesystem: __(\n\t\t\t\t'Error installing block. You can reload the page and try again.'\n\t\t\t),\n\t\t};\n\n\t\tif ( fatalAPIErrors[ error.code ] ) {\n\t\t\tisFatal = true;\n\t\t\tmessage = fatalAPIErrors[ error.code ];\n\t\t}\n\n\t\tdispatch.setErrorNotice( id, message, isFatal );\n\t\tregistry.dispatch( noticesStore ).createErrorNotice( message, {\n\t\t\tspeak: true,\n\t\t\tisDismissible: true,\n\t\t} );\n\t}\n\tdispatch.setIsInstalling( id, false );\n\treturn success;\n};\n\n/**\n * Action triggered to uninstall a block plugin.\n *\n * @param {Object} block The blockType object.\n */\nexport const uninstallBlockType = ( block ) => async ( {\n\tregistry,\n\tdispatch,\n} ) => {\n\ttry {\n\t\tconst url = getPluginUrl( block );\n\t\tawait apiFetch( {\n\t\t\tmethod: 'PUT',\n\t\t\turl,\n\t\t\tdata: { status: 'inactive' },\n\t\t} );\n\t\tawait apiFetch( {\n\t\t\tmethod: 'DELETE',\n\t\t\turl,\n\t\t} );\n\t\tdispatch.removeInstalledBlockType( block );\n\t} catch ( error ) {\n\t\tregistry\n\t\t\t.dispatch( noticesStore )\n\t\t\t.createErrorNotice( error.message || __( 'An error occurred.' ) );\n\t}\n};\n\n/**\n * Returns an action object used to add a block type to the \"newly installed\"\n * tracking list.\n *\n * @param {Object} item The block item with the block id and name.\n *\n * @return {Object} Action object.\n */\nexport function addInstalledBlockType( item ) {\n\treturn {\n\t\ttype: 'ADD_INSTALLED_BLOCK_TYPE',\n\t\titem,\n\t};\n}\n\n/**\n * Returns an action object used to remove a block type from the \"newly installed\"\n * tracking list.\n *\n * @param {string} item The block item with the block id and name.\n *\n * @return {Object} Action object.\n */\nexport function removeInstalledBlockType( item ) {\n\treturn {\n\t\ttype: 'REMOVE_INSTALLED_BLOCK_TYPE',\n\t\titem,\n\t};\n}\n\n/**\n * Returns an action object used to indicate install in progress.\n *\n * @param {string} blockId\n * @param {boolean} isInstalling\n *\n * @return {Object} Action object.\n */\nexport function setIsInstalling( blockId, isInstalling ) {\n\treturn {\n\t\ttype: 'SET_INSTALLING_BLOCK',\n\t\tblockId,\n\t\tisInstalling,\n\t};\n}\n\n/**\n * Sets an error notice to be displayed to the user for a given block.\n *\n * @param {string} blockId The ID of the block plugin. eg: my-block\n * @param {string} message The message shown in the notice.\n * @param {boolean} isFatal Whether the user can recover from the error.\n *\n * @return {Object} Action object.\n */\nexport function setErrorNotice( blockId, message, isFatal = false ) {\n\treturn {\n\t\ttype: 'SET_ERROR_NOTICE',\n\t\tblockId,\n\t\tmessage,\n\t\tisFatal,\n\t};\n}\n\n/**\n * Sets the error notice to empty for specific block.\n *\n * @param {string} blockId The ID of the block plugin. eg: my-block\n *\n * @return {Object} Action object.\n */\nexport function clearErrorNotice( blockId ) {\n\treturn {\n\t\ttype: 'CLEAR_ERROR_NOTICE',\n\t\tblockId,\n\t};\n}\n","/**\n * External dependencies\n */\nimport { camelCase, mapKeys } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport apiFetch from '@wordpress/api-fetch';\n\n/**\n * Internal dependencies\n */\nimport { fetchDownloadableBlocks, receiveDownloadableBlocks } from './actions';\n\nexport const getDownloadableBlocks = ( filterValue ) => async ( {\n\tdispatch,\n} ) => {\n\tif ( ! filterValue ) {\n\t\treturn;\n\t}\n\n\ttry {\n\t\tdispatch( fetchDownloadableBlocks( filterValue ) );\n\t\tconst results = await apiFetch( {\n\t\t\tpath: `wp/v2/block-directory/search?term=${ filterValue }`,\n\t\t} );\n\t\tconst blocks = results.map( ( result ) =>\n\t\t\tmapKeys( result, ( value, key ) => camelCase( key ) )\n\t\t);\n\n\t\tdispatch( receiveDownloadableBlocks( blocks, filterValue ) );\n\t} catch {}\n};\n","/**\n * WordPress dependencies\n */\nimport { createReduxStore, register } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as selectors from './selectors';\nimport * as actions from './actions';\nimport * as resolvers from './resolvers';\n\n/**\n * Module Constants\n */\nconst STORE_NAME = 'core/block-directory';\n\n/**\n * Block editor data store configuration.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore\n *\n * @type {Object}\n */\nexport const storeConfig = {\n\treducer,\n\tselectors,\n\tactions,\n\tresolvers,\n};\n\n/**\n * Store definition for the block directory namespace.\n *\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore\n *\n * @type {Object}\n */\nexport const store = createReduxStore( STORE_NAME, storeConfig );\n\nregister( store );\n","/**\n * WordPress dependencies\n */\nimport { unregisterBlockType } from '@wordpress/blocks';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\nimport { store as editorStore } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function AutoBlockUninstaller() {\n\tconst { uninstallBlockType } = useDispatch( blockDirectoryStore );\n\n\tconst shouldRemoveBlockTypes = useSelect( ( select ) => {\n\t\tconst { isAutosavingPost, isSavingPost } = select( editorStore );\n\t\treturn isSavingPost() && ! isAutosavingPost();\n\t}, [] );\n\n\tconst unusedBlockTypes = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).getUnusedBlockTypes(),\n\t\t[]\n\t);\n\n\tuseEffect( () => {\n\t\tif ( shouldRemoveBlockTypes && unusedBlockTypes.length ) {\n\t\t\tunusedBlockTypes.forEach( ( blockType ) => {\n\t\t\t\tuninstallBlockType( blockType );\n\t\t\t\tunregisterBlockType( blockType.name );\n\t\t\t} );\n\t\t}\n\t}, [ shouldRemoveBlockTypes ] );\n\n\treturn null;\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"components\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"compose\"];","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"coreData\"];","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"htmlEntities\"];","/**\n * WordPress dependencies\n */\nimport { cloneElement } from '@wordpress/element';\n\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n *\n * @return {JSX.Element} Icon component\n */\nfunction Icon( { icon, size = 24, ...props } ) {\n\treturn cloneElement( icon, {\n\t\twidth: size,\n\t\theight: size,\n\t\t...props,\n\t} );\n}\n\nexport default Icon;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"primitives\"];","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starFilled = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<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\" />\n\t</SVG>\n);\n\nexport default starFilled;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starHalf = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<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\" />\n\t</SVG>\n);\n\nexport default starHalf;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst starEmpty = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\td=\"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\"\n\t\t\tclipRule=\"evenodd\"\n\t\t/>\n\t</SVG>\n);\n\nexport default starEmpty;\n","/**\n * External dependencies\n */\nimport { times } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Icon, starEmpty, starFilled, starHalf } from '@wordpress/icons';\n\nfunction Stars( { rating } ) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tconst fullStarCount = Math.floor( rating );\n\tconst halfStarCount = Math.ceil( rating - fullStarCount );\n\tconst emptyStarCount = 5 - ( fullStarCount + halfStarCount );\n\n\treturn (\n\t\t<span\n\t\t\taria-label={ sprintf(\n\t\t\t\t/* translators: %s: number of stars. */\n\t\t\t\t__( '%s out of 5 stars' ),\n\t\t\t\tstars\n\t\t\t) }\n\t\t>\n\t\t\t{ times( fullStarCount, ( i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `full_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-full\"\n\t\t\t\t\ticon={ starFilled }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t{ times( halfStarCount, ( i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `half_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-half-full\"\n\t\t\t\t\ticon={ starHalf }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t\t{ times( emptyStarCount, ( i ) => (\n\t\t\t\t<Icon\n\t\t\t\t\tkey={ `empty_stars_${ i }` }\n\t\t\t\t\tclassName=\"block-directory-block-ratings__star-empty\"\n\t\t\t\t\ticon={ starEmpty }\n\t\t\t\t\tsize={ 16 }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</span>\n\t);\n}\n\nexport default Stars;\n","/**\n * Internal dependencies\n */\nimport Stars from './stars';\n\nexport const BlockRatings = ( { rating } ) => (\n\t<span className=\"block-directory-block-ratings\">\n\t\t<Stars rating={ rating } />\n\t</span>\n);\n\nexport default BlockRatings;\n","/**\n * WordPress dependencies\n */\nimport { BlockIcon } from '@wordpress/block-editor';\n\nfunction DownloadableBlockIcon( { icon } ) {\n\tconst className = 'block-directory-downloadable-block-icon';\n\treturn icon.match( /\\.(jpeg|jpg|gif|png|svg)(?:\\?.*)?$/ ) !== null ? (\n\t\t<img className={ className } src={ icon } alt=\"\" />\n\t) : (\n\t\t<BlockIcon className={ className } icon={ icon } showColors />\n\t);\n}\n\nexport default DownloadableBlockIcon;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport const DownloadableBlockNotice = ( { block } ) => {\n\tconst errorNotice = useSelect(\n\t\t( select ) =>\n\t\t\tselect( blockDirectoryStore ).getErrorNoticeForBlock( block.id ),\n\t\t[ block ]\n\t);\n\n\tif ( ! errorNotice ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<div className=\"block-directory-downloadable-block-notice\">\n\t\t\t<div className=\"block-directory-downloadable-block-notice__content\">\n\t\t\t\t{ errorNotice.message }\n\t\t\t\t{ errorNotice.isFatal\n\t\t\t\t\t? ' ' + __( 'Try reloading the page.' )\n\t\t\t\t\t: null }\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nexport default DownloadableBlockNotice;\n","/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport {\n\tButton,\n\tSpinner,\n\tVisuallyHidden,\n\t__unstableCompositeItem as CompositeItem,\n} from '@wordpress/components';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { decodeEntities } from '@wordpress/html-entities';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport BlockRatings from '../block-ratings';\nimport DownloadableBlockIcon from '../downloadable-block-icon';\nimport DownloadableBlockNotice from '../downloadable-block-notice';\nimport { store as blockDirectoryStore } from '../../store';\n\n// Return the appropriate block item label, given the block data and status.\nfunction getDownloadableBlockLabel(\n\t{ title, rating, ratingCount },\n\t{ hasNotice, isInstalled, isInstalling }\n) {\n\tconst stars = Math.round( rating / 0.5 ) * 0.5;\n\n\tif ( ! isInstalled && hasNotice ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Retry installing %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalled ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Add %s.', decodeEntities( title ) );\n\t}\n\n\tif ( isInstalling ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Installing %s.', decodeEntities( title ) );\n\t}\n\n\t// No ratings yet, just use the title.\n\tif ( ratingCount < 1 ) {\n\t\t/* translators: %1$s: block title */\n\t\treturn sprintf( 'Install %s.', decodeEntities( title ) );\n\t}\n\n\treturn sprintf(\n\t\t/* translators: %1$s: block title, %2$s: average rating, %3$s: total ratings count. */\n\t\t_n(\n\t\t\t'Install %1$s. %2$s stars with %3$s review.',\n\t\t\t'Install %1$s. %2$s stars with %3$s reviews.',\n\t\t\tratingCount\n\t\t),\n\t\tdecodeEntities( title ),\n\t\tstars,\n\t\tratingCount\n\t);\n}\n\nfunction DownloadableBlockListItem( { composite, item, onClick } ) {\n\tconst { author, description, icon, rating, title } = item;\n\t// getBlockType returns a block object if this block exists, or null if not.\n\tconst isInstalled = !! getBlockType( item.name );\n\n\tconst { hasNotice, isInstalling, isInstallable } = useSelect(\n\t\t( select ) => {\n\t\t\tconst {\n\t\t\t\tgetErrorNoticeForBlock,\n\t\t\t\tisInstalling: isBlockInstalling,\n\t\t\t} = select( blockDirectoryStore );\n\t\t\tconst notice = getErrorNoticeForBlock( item.id );\n\t\t\tconst hasFatal = notice && notice.isFatal;\n\t\t\treturn {\n\t\t\t\thasNotice: !! notice,\n\t\t\t\tisInstalling: isBlockInstalling( item.id ),\n\t\t\t\tisInstallable: ! hasFatal,\n\t\t\t};\n\t\t},\n\t\t[ item ]\n\t);\n\n\tlet statusText = '';\n\tif ( isInstalled ) {\n\t\tstatusText = __( 'Installed!' );\n\t} else if ( isInstalling ) {\n\t\tstatusText = __( 'Installing…' );\n\t}\n\n\treturn (\n\t\t<CompositeItem\n\t\t\trole=\"option\"\n\t\t\tas={ Button }\n\t\t\t{ ...composite }\n\t\t\tclassName=\"block-directory-downloadable-block-list-item\"\n\t\t\tonClick={ ( event ) => {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tonClick();\n\t\t\t} }\n\t\t\tisBusy={ isInstalling }\n\t\t\tdisabled={ isInstalling || ! isInstallable }\n\t\t\tlabel={ getDownloadableBlockLabel( item, {\n\t\t\t\thasNotice,\n\t\t\t\tisInstalled,\n\t\t\t\tisInstalling,\n\t\t\t} ) }\n\t\t\tshowTooltip={ true }\n\t\t\ttooltipPosition=\"top center\"\n\t\t>\n\t\t\t<div className=\"block-directory-downloadable-block-list-item__icon\">\n\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\t\t\t\t{ isInstalling ? (\n\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__spinner\">\n\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\t<BlockRatings rating={ rating } />\n\t\t\t\t) }\n\t\t\t</div>\n\t\t\t<span className=\"block-directory-downloadable-block-list-item__details\">\n\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__title\">\n\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t/* translators: %1$s: block title, %2$s: author name. */\n\t\t\t\t\t\t\t__( '%1$s <span>by %2$s</span>' ),\n\t\t\t\t\t\t\tdecodeEntities( title ),\n\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tspan: (\n\t\t\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__author\" />\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t}\n\t\t\t\t\t) }\n\t\t\t\t</span>\n\t\t\t\t{ hasNotice ? (\n\t\t\t\t\t<DownloadableBlockNotice block={ item } />\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<span className=\"block-directory-downloadable-block-list-item__desc\">\n\t\t\t\t\t\t\t{ !! statusText\n\t\t\t\t\t\t\t\t? statusText\n\t\t\t\t\t\t\t\t: decodeEntities( description ) }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t{ isInstallable &&\n\t\t\t\t\t\t\t! ( isInstalled || isInstalling ) && (\n\t\t\t\t\t\t\t\t<VisuallyHidden>\n\t\t\t\t\t\t\t\t\t{ __( 'Install block' ) }\n\t\t\t\t\t\t\t\t</VisuallyHidden>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</span>\n\t\t</CompositeItem>\n\t);\n}\n\nexport default DownloadableBlockListItem;\n","/**\n * External dependencies\n */\nimport { noop } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\t__unstableComposite as Composite,\n\t__unstableUseCompositeState as useCompositeState,\n} from '@wordpress/components';\nimport { getBlockType } from '@wordpress/blocks';\nimport { useDispatch } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockListItem from '../downloadable-block-list-item';\nimport { store as blockDirectoryStore } from '../../store';\n\nfunction DownloadableBlocksList( { items, onHover = noop, onSelect } ) {\n\tconst composite = useCompositeState();\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Composite\n\t\t\t{ ...composite }\n\t\t\trole=\"listbox\"\n\t\t\tclassName=\"block-directory-downloadable-blocks-list\"\n\t\t\taria-label={ __( 'Blocks available for install' ) }\n\t\t>\n\t\t\t{ items.map( ( item ) => {\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlockListItem\n\t\t\t\t\t\tkey={ item.id }\n\t\t\t\t\t\tcomposite={ composite }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t// Check if the block is registered (`getBlockType`\n\t\t\t\t\t\t\t// will return an object). If so, insert the block.\n\t\t\t\t\t\t\t// This prevents installing existing plugins.\n\t\t\t\t\t\t\tif ( getBlockType( item.name ) ) {\n\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tinstallBlockType( item ).then( ( success ) => {\n\t\t\t\t\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\t\t\t\t\tonSelect( item );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonHover( null );\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\titem={ item }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} ) }\n\t\t</Composite>\n\t);\n}\n\nexport default DownloadableBlocksList;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"a11y\"];","/**\n * WordPress dependencies\n */\nimport { __, _n, sprintf } from '@wordpress/i18n';\nimport { useEffect } from '@wordpress/element';\nimport { speak } from '@wordpress/a11y';\n\nfunction DownloadableBlocksInserterPanel( {\n\tchildren,\n\tdownloadableItems,\n\thasLocalBlocks,\n} ) {\n\tconst count = downloadableItems.length;\n\tuseEffect( () => {\n\t\tspeak(\n\t\t\tsprintf(\n\t\t\t\t/* translators: %d: number of available blocks. */\n\t\t\t\t_n(\n\t\t\t\t\t'%d additional block is available to install.',\n\t\t\t\t\t'%d additional blocks are available to install.',\n\t\t\t\t\tcount\n\t\t\t\t),\n\t\t\t\tcount\n\t\t\t)\n\t\t);\n\t}, [ count ] );\n\n\treturn (\n\t\t<>\n\t\t\t{ ! hasLocalBlocks && (\n\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__no-local\">\n\t\t\t\t\t{ __( 'No results available from your installed blocks.' ) }\n\t\t\t\t</p>\n\t\t\t) }\n\n\t\t\t<div className=\"block-editor-inserter__quick-inserter-separator\" />\n\n\t\t\t<div className=\"block-directory-downloadable-blocks-panel\">\n\t\t\t\t<div className=\"block-directory-downloadable-blocks-panel__header\">\n\t\t\t\t\t<h2 className=\"block-directory-downloadable-blocks-panel__title\">\n\t\t\t\t\t\t{ __( 'Available to install' ) }\n\t\t\t\t\t</h2>\n\t\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__description\">\n\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t'Select a block to install and add it to your post.'\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t{ children }\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default DownloadableBlocksInserterPanel;\n","/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\n\nconst blockDefault = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<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\" />\n\t</SVG>\n);\n\nexport default blockDefault;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Icon, blockDefault } from '@wordpress/icons';\n\nfunction DownloadableBlocksNoResults() {\n\treturn (\n\t\t<div className=\"block-editor-inserter__no-results\">\n\t\t\t<Icon\n\t\t\t\tclassName=\"block-editor-inserter__no-results-icon\"\n\t\t\t\ticon={ blockDefault }\n\t\t\t/>\n\t\t\t<p>{ __( 'No results found.' ) }</p>\n\t\t</div>\n\t);\n}\n\nexport default DownloadableBlocksNoResults;\n","/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Spinner } from '@wordpress/components';\nimport { compose } from '@wordpress/compose';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { withSelect } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlocksList from '../downloadable-blocks-list';\nimport DownloadableBlocksInserterPanel from './inserter-panel';\nimport DownloadableBlocksNoResults from './no-results';\nimport { store as blockDirectoryStore } from '../../store';\n\nfunction DownloadableBlocksPanel( {\n\tdownloadableItems,\n\tonSelect,\n\tonHover,\n\thasLocalBlocks,\n\thasPermission,\n\tisLoading,\n\tisTyping,\n} ) {\n\tif ( typeof hasPermission === 'undefined' || isLoading || isTyping ) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{ hasPermission && ! hasLocalBlocks && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<p className=\"block-directory-downloadable-blocks-panel__no-local\">\n\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t'No results available from your installed blocks.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<div className=\"block-editor-inserter__quick-inserter-separator\" />\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t\t<div className=\"block-directory-downloadable-blocks-panel has-blocks-loading\">\n\t\t\t\t\t<Spinner />\n\t\t\t\t</div>\n\t\t\t</>\n\t\t);\n\t}\n\n\tif ( false === hasPermission ) {\n\t\tif ( ! hasLocalBlocks ) {\n\t\t\treturn <DownloadableBlocksNoResults />;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\treturn !! downloadableItems.length ? (\n\t\t<DownloadableBlocksInserterPanel\n\t\t\tdownloadableItems={ downloadableItems }\n\t\t\thasLocalBlocks={ hasLocalBlocks }\n\t\t>\n\t\t\t<DownloadableBlocksList\n\t\t\t\titems={ downloadableItems }\n\t\t\t\tonSelect={ onSelect }\n\t\t\t\tonHover={ onHover }\n\t\t\t/>\n\t\t</DownloadableBlocksInserterPanel>\n\t) : (\n\t\t! hasLocalBlocks && <DownloadableBlocksNoResults />\n\t);\n}\n\nexport default compose( [\n\twithSelect( ( select, { filterValue, rootClientId = null } ) => {\n\t\tconst {\n\t\t\tgetDownloadableBlocks,\n\t\t\tisRequestingDownloadableBlocks,\n\t\t} = select( blockDirectoryStore );\n\t\tconst { canInsertBlockType } = select( blockEditorStore );\n\n\t\tconst hasPermission = select( coreStore ).canUser(\n\t\t\t'read',\n\t\t\t'block-directory/search'\n\t\t);\n\n\t\tfunction getInstallableBlocks( term ) {\n\t\t\treturn getDownloadableBlocks( term ).filter( ( block ) =>\n\t\t\t\tcanInsertBlockType( block, rootClientId, true )\n\t\t\t);\n\t\t}\n\n\t\tconst downloadableItems = hasPermission\n\t\t\t? getInstallableBlocks( filterValue )\n\t\t\t: [];\n\t\tconst isLoading = isRequestingDownloadableBlocks( filterValue );\n\n\t\treturn {\n\t\t\tdownloadableItems,\n\t\t\thasPermission,\n\t\t\tisLoading,\n\t\t};\n\t} ),\n] )( DownloadableBlocksPanel );\n","/**\n * External dependencies\n */\nimport { debounce } from 'lodash';\n\n/**\n * WordPress dependencies\n */\nimport { __unstableInserterMenuExtension } from '@wordpress/block-editor';\nimport { useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlocksPanel from '../../components/downloadable-blocks-panel';\n\nfunction InserterMenuDownloadableBlocksPanel() {\n\tconst [ debouncedFilterValue, setFilterValue ] = useState( '' );\n\tconst debouncedSetFilterValue = debounce( setFilterValue, 400 );\n\n\treturn (\n\t\t<__unstableInserterMenuExtension>\n\t\t\t{ ( {\n\t\t\t\tonSelect,\n\t\t\t\tonHover,\n\t\t\t\tfilterValue,\n\t\t\t\thasItems,\n\t\t\t\trootClientId,\n\t\t\t} ) => {\n\t\t\t\tif ( debouncedFilterValue !== filterValue ) {\n\t\t\t\t\tdebouncedSetFilterValue( filterValue );\n\t\t\t\t}\n\n\t\t\t\tif ( ! debouncedFilterValue ) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<DownloadableBlocksPanel\n\t\t\t\t\t\tonSelect={ onSelect }\n\t\t\t\t\t\tonHover={ onHover }\n\t\t\t\t\t\trootClientId={ rootClientId }\n\t\t\t\t\t\tfilterValue={ debouncedFilterValue }\n\t\t\t\t\t\thasLocalBlocks={ hasItems }\n\t\t\t\t\t\tisTyping={ filterValue !== debouncedFilterValue }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t} }\n\t\t</__unstableInserterMenuExtension>\n\t);\n}\n\nexport default InserterMenuDownloadableBlocksPanel;\n","var __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"editPost\"];","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport DownloadableBlockIcon from '../downloadable-block-icon';\n\nexport default function CompactList( { items } ) {\n\tif ( ! items.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<ul className=\"block-directory-compact-list\">\n\t\t\t{ items.map( ( { icon, id, title, author } ) => (\n\t\t\t\t<li key={ id } className=\"block-directory-compact-list__item\">\n\t\t\t\t\t<DownloadableBlockIcon icon={ icon } title={ title } />\n\n\t\t\t\t\t<div className=\"block-directory-compact-list__item-details\">\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-title\">\n\t\t\t\t\t\t\t{ title }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div className=\"block-directory-compact-list__item-author\">\n\t\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t\t/* translators: %s: Name of the block author. */\n\t\t\t\t\t\t\t\t__( 'By %s' ),\n\t\t\t\t\t\t\t\tauthor\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t) ) }\n\t\t</ul>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { _n, sprintf } from '@wordpress/i18n';\nimport { PluginPrePublishPanel } from '@wordpress/edit-post';\nimport { useSelect } from '@wordpress/data';\nimport { blockDefault } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport CompactList from '../../components/compact-list';\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function InstalledBlocksPrePublishPanel() {\n\tconst newBlockTypes = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).getNewBlockTypes(),\n\t\t[]\n\t);\n\n\tif ( ! newBlockTypes.length ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<PluginPrePublishPanel\n\t\t\ticon={ blockDefault }\n\t\t\ttitle={ sprintf(\n\t\t\t\t// translators: %d: number of blocks (number).\n\t\t\t\t_n(\n\t\t\t\t\t'Added: %d block',\n\t\t\t\t\t'Added: %d blocks',\n\t\t\t\t\tnewBlockTypes.length\n\t\t\t\t),\n\t\t\t\tnewBlockTypes.length\n\t\t\t) }\n\t\t\tinitialOpen={ true }\n\t\t>\n\t\t\t<p className=\"installed-blocks-pre-publish-panel__copy\">\n\t\t\t\t{ _n(\n\t\t\t\t\t'The following block has been added to your site.',\n\t\t\t\t\t'The following blocks have been added to your site.',\n\t\t\t\t\tnewBlockTypes.length\n\t\t\t\t) }\n\t\t\t</p>\n\t\t\t<CompactList items={ newBlockTypes } />\n\t\t</PluginPrePublishPanel>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock, getBlockType, parse } from '@wordpress/blocks';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { store as blockDirectoryStore } from '../../store';\n\nexport default function InstallButton( { attributes, block, clientId } ) {\n\tconst isInstallingBlock = useSelect(\n\t\t( select ) => select( blockDirectoryStore ).isInstalling( block.id ),\n\t\t[ block.id ]\n\t);\n\tconst { installBlockType } = useDispatch( blockDirectoryStore );\n\tconst { replaceBlock } = useDispatch( blockEditorStore );\n\n\treturn (\n\t\t<Button\n\t\t\tonClick={ () =>\n\t\t\t\tinstallBlockType( block ).then( ( success ) => {\n\t\t\t\t\tif ( success ) {\n\t\t\t\t\t\tconst blockType = getBlockType( block.name );\n\t\t\t\t\t\tconst [ originalBlock ] = parse(\n\t\t\t\t\t\t\tattributes.originalContent\n\t\t\t\t\t\t);\n\t\t\t\t\t\tif ( originalBlock && blockType ) {\n\t\t\t\t\t\t\treplaceBlock(\n\t\t\t\t\t\t\t\tclientId,\n\t\t\t\t\t\t\t\tcreateBlock(\n\t\t\t\t\t\t\t\t\tblockType.name,\n\t\t\t\t\t\t\t\t\toriginalBlock.attributes,\n\t\t\t\t\t\t\t\t\toriginalBlock.innerBlocks\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} )\n\t\t\t}\n\t\t\tdisabled={ isInstallingBlock }\n\t\t\tisBusy={ isInstallingBlock }\n\t\t\tvariant=\"primary\"\n\t\t>\n\t\t\t{ sprintf(\n\t\t\t\t/* translators: %s: block name */\n\t\t\t\t__( 'Install %s' ),\n\t\t\t\tblock.title\n\t\t\t) }\n\t\t</Button>\n\t);\n}\n","/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\nimport { createBlock, getBlockType } from '@wordpress/blocks';\nimport { RawHTML } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tWarning,\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport InstallButton from './install-button';\nimport { store as blockDirectoryStore } from '../../store';\n\nconst getInstallMissing = ( OriginalComponent ) => ( props ) => {\n\tconst { originalName } = props.attributes;\n\t// Disable reason: This is a valid component, but it's mistaken for a callback.\n\t// eslint-disable-next-line react-hooks/rules-of-hooks\n\tconst { block, hasPermission } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getDownloadableBlocks } = select( blockDirectoryStore );\n\t\t\tconst blocks = getDownloadableBlocks(\n\t\t\t\t'block:' + originalName\n\t\t\t).filter( ( { name } ) => originalName === name );\n\t\t\treturn {\n\t\t\t\thasPermission: select( coreStore ).canUser(\n\t\t\t\t\t'read',\n\t\t\t\t\t'block-directory/search'\n\t\t\t\t),\n\t\t\t\tblock: blocks.length && blocks[ 0 ],\n\t\t\t};\n\t\t},\n\t\t[ originalName ]\n\t);\n\n\t// The user can't install blocks, or the block isn't available for download.\n\tif ( ! hasPermission || ! block ) {\n\t\treturn <OriginalComponent { ...props } />;\n\t}\n\n\treturn <ModifiedWarning { ...props } originalBlock={ block } />;\n};\n\nconst ModifiedWarning = ( { originalBlock, ...props } ) => {\n\tconst { originalName, originalUndelimitedContent } = props.attributes;\n\tconst { replaceBlock } = useDispatch( blockEditorStore );\n\tconst convertToHTML = () => {\n\t\treplaceBlock(\n\t\t\tprops.clientId,\n\t\t\tcreateBlock( 'core/html', {\n\t\t\t\tcontent: originalUndelimitedContent,\n\t\t\t} )\n\t\t);\n\t};\n\n\tconst hasContent = !! originalUndelimitedContent;\n\tconst hasHTMLBlock = getBlockType( 'core/html' );\n\n\tlet messageHTML = sprintf(\n\t\t/* translators: %s: block name */\n\t\t__(\n\t\t\t'Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely.'\n\t\t),\n\t\toriginalBlock.title || originalName\n\t);\n\tconst actions = [\n\t\t<InstallButton\n\t\t\tkey=\"install\"\n\t\t\tblock={ originalBlock }\n\t\t\tattributes={ props.attributes }\n\t\t\tclientId={ props.clientId }\n\t\t/>,\n\t];\n\n\tif ( hasContent && hasHTMLBlock ) {\n\t\tmessageHTML = sprintf(\n\t\t\t/* translators: %s: block name */\n\t\t\t__(\n\t\t\t\t'Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely.'\n\t\t\t),\n\t\t\toriginalBlock.title || originalName\n\t\t);\n\t\tactions.push(\n\t\t\t<Button key=\"convert\" onClick={ convertToHTML } variant=\"link\">\n\t\t\t\t{ __( 'Keep as HTML' ) }\n\t\t\t</Button>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div { ...useBlockProps() }>\n\t\t\t<Warning actions={ actions }>{ messageHTML }</Warning>\n\t\t\t<RawHTML>{ originalUndelimitedContent }</RawHTML>\n\t\t</div>\n\t);\n};\n\nexport default getInstallMissing;\n","/**\n * WordPress dependencies\n */\nimport { registerPlugin } from '@wordpress/plugins';\nimport { addFilter } from '@wordpress/hooks';\n\n/**\n * Internal dependencies\n */\nimport AutoBlockUninstaller from '../components/auto-block-uninstaller';\nimport InserterMenuDownloadableBlocksPanel from './inserter-menu-downloadable-blocks-panel';\nimport InstalledBlocksPrePublishPanel from './installed-blocks-pre-publish-panel';\nimport getInstallMissing from './get-install-missing';\n\nregisterPlugin( 'block-directory', {\n\trender() {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<AutoBlockUninstaller />\n\t\t\t\t<InserterMenuDownloadableBlocksPanel />\n\t\t\t\t<InstalledBlocksPrePublishPanel />\n\t\t\t</>\n\t\t);\n\t},\n} );\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'block-directory/fallback',\n\t( settings, name ) => {\n\t\tif ( name !== 'core/missing' ) {\n\t\t\treturn settings;\n\t\t}\n\t\tsettings.edit = getInstallMissing( settings.edit );\n\n\t\treturn settings;\n\t}\n);\n"],"names":["__webpack_require__","module","getter","__esModule","d","a","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","window","combineReducers","downloadableBlocks","state","action","type","filterValue","isRequesting","results","blockManagement","installedBlockTypes","isInstalling","item","filter","blockType","name","blockId","errorNotices","message","isFatal","omit","hasBlockType","blocks","length","some","i","innerBlocks","isRequestingDownloadableBlocks","getDownloadableBlocks","getInstalledBlockTypes","getNewBlockTypes","createRegistrySelector","select","usedBlockTree","blockEditorStore","getBlocks","getUnusedBlockTypes","getErrorNotices","getErrorNoticeForBlock","loadAsset","el","Promise","resolve","reject","newNode","document","createElement","nodeName","forEach","attr","innerHTML","appendChild","createTextNode","onload","onerror","Error","body","toLowerCase","src","getPluginUrl","block","link","links","self","href","fetchDownloadableBlocks","receiveDownloadableBlocks","installBlockType","async","registry","dispatch","id","success","clearErrorNotice","setIsInstalling","url","apiFetch","method","data","status","path","slug","_links","addInstalledBlockType","metadataFields","addQueryArgs","_fields","catch","then","response","unstable__bootstrapServerSideBlockDefinitions","pick","location","parse","text","doc","DOMParser","parseFromString","newAssets","Array","from","querySelectorAll","asset","getElementById","newAsset","loadAssets","blocksStore","getBlockTypes","__","noticesStore","createInfoNotice","sprintf","title","speak","error","fatalAPIErrors","folder_exists","unable_to_connect_to_filesystem","code","setErrorNotice","createErrorNotice","isDismissible","uninstallBlockType","removeInstalledBlockType","map","result","mapKeys","camelCase","storeConfig","reducer","selectors","actions","resolvers","store","createReduxStore","AutoBlockUninstaller","useDispatch","blockDirectoryStore","shouldRemoveBlockTypes","useSelect","isAutosavingPost","isSavingPost","editorStore","unusedBlockTypes","useEffect","unregisterBlockType","register","_extends","assign","target","arguments","source","apply","this","icon","size","props","cloneElement","width","height","SVG","xmlns","viewBox","Path","fillRule","clipRule","rating","stars","Math","round","fullStarCount","floor","halfStarCount","ceil","emptyStarCount","times","className","starFilled","starHalf","starEmpty","match","alt","BlockIcon","showColors","errorNotice","getDownloadableBlockLabel","ratingCount","hasNotice","isInstalled","decodeEntities","_n","composite","onClick","author","description","getBlockType","isInstallable","isBlockInstalling","notice","hasFatal","statusText","role","as","Button","event","preventDefault","isBusy","disabled","label","showTooltip","tooltipPosition","Spinner","createInterpolateElement","span","VisuallyHidden","items","onHover","noop","onSelect","useCompositeState","children","downloadableItems","hasLocalBlocks","count","blockDefault","compose","withSelect","rootClientId","canInsertBlockType","hasPermission","coreStore","canUser","isLoading","isTyping","debouncedFilterValue","setFilterValue","useState","debouncedSetFilterValue","debounce","__unstableInserterMenuExtension","hasItems","CompactList","InstalledBlocksPrePublishPanel","newBlockTypes","PluginPrePublishPanel","initialOpen","InstallButton","attributes","clientId","isInstallingBlock","replaceBlock","originalBlock","originalContent","createBlock","variant","ModifiedWarning","originalName","originalUndelimitedContent","hasContent","hasHTMLBlock","messageHTML","push","content","useBlockProps","Warning","RawHTML","registerPlugin","render","addFilter","settings","edit","OriginalComponent"],"sourceRoot":""}
build/block-editor/index.js CHANGED
@@ -1,7 +1,7 @@
1
  /******/ (function() { // webpackBootstrap
2
  /******/ var __webpack_modules__ = ({
3
 
4
- /***/ 9367:
5
  /***/ (function(module, exports) {
6
 
7
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -290,7 +290,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
290
 
291
  /***/ }),
292
 
293
- /***/ 4184:
294
  /***/ (function(module, exports) {
295
 
296
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -354,7 +354,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
354
 
355
  /***/ }),
356
 
357
- /***/ 1934:
358
  /***/ (function(module) {
359
 
360
  // This code has been refactored for 140 bytes
@@ -388,7 +388,7 @@ module.exports = computedStyle;
388
 
389
  /***/ }),
390
 
391
- /***/ 5913:
392
  /***/ (function(__unused_webpack_module, exports) {
393
 
394
  "use strict";
@@ -695,12 +695,11 @@ function clonePath(path) {
695
  components: path.components.slice(0)
696
  };
697
  }
698
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOlsiRGlmZiIsInByb3RvdHlwZSIsImRpZmYiLCJvbGRTdHJpbmciLCJuZXdTdHJpbmciLCJvcHRpb25zIiwiY2FsbGJhY2siLCJzZWxmIiwiZG9uZSIsInZhbHVlIiwic2V0VGltZW91dCIsInVuZGVmaW5lZCIsImNhc3RJbnB1dCIsInJlbW92ZUVtcHR5IiwidG9rZW5pemUiLCJuZXdMZW4iLCJsZW5ndGgiLCJvbGRMZW4iLCJlZGl0TGVuZ3RoIiwibWF4RWRpdExlbmd0aCIsImJlc3RQYXRoIiwibmV3UG9zIiwiY29tcG9uZW50cyIsIm9sZFBvcyIsImV4dHJhY3RDb21tb24iLCJqb2luIiwiY291bnQiLCJleGVjRWRpdExlbmd0aCIsImRpYWdvbmFsUGF0aCIsImJhc2VQYXRoIiwiYWRkUGF0aCIsInJlbW92ZVBhdGgiLCJjYW5BZGQiLCJjYW5SZW1vdmUiLCJjbG9uZVBhdGgiLCJwdXNoQ29tcG9uZW50IiwiYnVpbGRWYWx1ZXMiLCJ1c2VMb25nZXN0VG9rZW4iLCJleGVjIiwicmV0IiwiYWRkZWQiLCJyZW1vdmVkIiwibGFzdCIsInB1c2giLCJjb21tb25Db3VudCIsImVxdWFscyIsImxlZnQiLCJyaWdodCIsImNvbXBhcmF0b3IiLCJpZ25vcmVDYXNlIiwidG9Mb3dlckNhc2UiLCJhcnJheSIsImkiLCJzcGxpdCIsImNoYXJzIiwiY29tcG9uZW50UG9zIiwiY29tcG9uZW50TGVuIiwiY29tcG9uZW50Iiwic2xpY2UiLCJtYXAiLCJvbGRWYWx1ZSIsInRtcCIsImxhc3RDb21wb25lbnQiLCJwb3AiLCJwYXRoIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBZSxTQUFTQSxJQUFULEdBQWdCLENBQUU7O0FBRWpDQSxJQUFJLENBQUNDLFNBQUwsR0FBaUI7QUFBQTs7QUFBQTtBQUNmQyxFQUFBQSxJQURlLGdCQUNWQyxTQURVLEVBQ0NDLFNBREQsRUFDMEI7QUFBQTtBQUFBO0FBQUE7QUFBZEMsSUFBQUEsT0FBYyx1RUFBSixFQUFJO0FBQ3ZDLFFBQUlDLFFBQVEsR0FBR0QsT0FBTyxDQUFDQyxRQUF2Qjs7QUFDQSxRQUFJLE9BQU9ELE9BQVAsS0FBbUIsVUFBdkIsRUFBbUM7QUFDakNDLE1BQUFBLFFBQVEsR0FBR0QsT0FBWDtBQUNBQSxNQUFBQSxPQUFPLEdBQUcsRUFBVjtBQUNEOztBQUNELFNBQUtBLE9BQUwsR0FBZUEsT0FBZjtBQUVBLFFBQUlFLElBQUksR0FBRyxJQUFYOztBQUVBLGFBQVNDLElBQVQsQ0FBY0MsS0FBZCxFQUFxQjtBQUNuQixVQUFJSCxRQUFKLEVBQWM7QUFDWkksUUFBQUEsVUFBVSxDQUFDLFlBQVc7QUFBRUosVUFBQUEsUUFBUSxDQUFDSyxTQUFELEVBQVlGLEtBQVosQ0FBUjtBQUE2QixTQUEzQyxFQUE2QyxDQUE3QyxDQUFWO0FBQ0EsZUFBTyxJQUFQO0FBQ0QsT0FIRCxNQUdPO0FBQ0wsZUFBT0EsS0FBUDtBQUNEO0FBQ0YsS0FqQnNDLENBbUJ2Qzs7O0FBQ0FOLElBQUFBLFNBQVMsR0FBRyxLQUFLUyxTQUFMLENBQWVULFNBQWYsQ0FBWjtBQUNBQyxJQUFBQSxTQUFTLEdBQUcsS0FBS1EsU0FBTCxDQUFlUixTQUFmLENBQVo7QUFFQUQsSUFBQUEsU0FBUyxHQUFHLEtBQUtVLFdBQUwsQ0FBaUIsS0FBS0MsUUFBTCxDQUFjWCxTQUFkLENBQWpCLENBQVo7QUFDQUMsSUFBQUEsU0FBUyxHQUFHLEtBQUtTLFdBQUwsQ0FBaUIsS0FBS0MsUUFBTCxDQUFjVixTQUFkLENBQWpCLENBQVo7QUFFQSxRQUFJVyxNQUFNLEdBQUdYLFNBQVMsQ0FBQ1ksTUFBdkI7QUFBQSxRQUErQkMsTUFBTSxHQUFHZCxTQUFTLENBQUNhLE1BQWxEO0FBQ0EsUUFBSUUsVUFBVSxHQUFHLENBQWpCO0FBQ0EsUUFBSUMsYUFBYSxHQUFHSixNQUFNLEdBQUdFLE1BQTdCO0FBQ0EsUUFBSUcsUUFBUSxHQUFHLENBQUM7QUFBRUMsTUFBQUEsTUFBTSxFQUFFLENBQUMsQ0FBWDtBQUFjQyxNQUFBQSxVQUFVLEVBQUU7QUFBMUIsS0FBRCxDQUFmLENBN0J1QyxDQStCdkM7O0FBQ0EsUUFBSUMsTUFBTSxHQUFHLEtBQUtDLGFBQUwsQ0FBbUJKLFFBQVEsQ0FBQyxDQUFELENBQTNCLEVBQWdDaEIsU0FBaEMsRUFBMkNELFNBQTNDLEVBQXNELENBQXRELENBQWI7O0FBQ0EsUUFBSWlCLFFBQVEsQ0FBQyxDQUFELENBQVIsQ0FBWUMsTUFBWixHQUFxQixDQUFyQixJQUEwQk4sTUFBMUIsSUFBb0NRLE1BQU0sR0FBRyxDQUFULElBQWNOLE1BQXRELEVBQThEO0FBQzVEO0FBQ0EsYUFBT1QsSUFBSSxDQUFDLENBQUM7QUFBQ0MsUUFBQUEsS0FBSyxFQUFFLEtBQUtnQixJQUFMLENBQVVyQixTQUFWLENBQVI7QUFBOEJzQixRQUFBQSxLQUFLLEVBQUV0QixTQUFTLENBQUNZO0FBQS9DLE9BQUQsQ0FBRCxDQUFYO0FBQ0QsS0FwQ3NDLENBc0N2Qzs7O0FBQ0EsYUFBU1csY0FBVCxHQUEwQjtBQUN4QixXQUFLLElBQUlDLFlBQVksR0FBRyxDQUFDLENBQUQsR0FBS1YsVUFBN0IsRUFBeUNVLFlBQVksSUFBSVYsVUFBekQsRUFBcUVVLFlBQVksSUFBSSxDQUFyRixFQUF3RjtBQUN0RixZQUFJQyxRQUFRO0FBQUE7QUFBQTtBQUFaO0FBQUE7O0FBQ0EsWUFBSUMsT0FBTyxHQUFHVixRQUFRLENBQUNRLFlBQVksR0FBRyxDQUFoQixDQUF0QjtBQUFBLFlBQ0lHLFVBQVUsR0FBR1gsUUFBUSxDQUFDUSxZQUFZLEdBQUcsQ0FBaEIsQ0FEekI7QUFBQSxZQUVJTCxPQUFNLEdBQUcsQ0FBQ1EsVUFBVSxHQUFHQSxVQUFVLENBQUNWLE1BQWQsR0FBdUIsQ0FBbEMsSUFBdUNPLFlBRnBEOztBQUdBLFlBQUlFLE9BQUosRUFBYTtBQUNYO0FBQ0FWLFVBQUFBLFFBQVEsQ0FBQ1EsWUFBWSxHQUFHLENBQWhCLENBQVIsR0FBNkJqQixTQUE3QjtBQUNEOztBQUVELFlBQUlxQixNQUFNLEdBQUdGLE9BQU8sSUFBSUEsT0FBTyxDQUFDVCxNQUFSLEdBQWlCLENBQWpCLEdBQXFCTixNQUE3QztBQUFBLFlBQ0lrQixTQUFTLEdBQUdGLFVBQVUsSUFBSSxLQUFLUixPQUFuQixJQUE2QkEsT0FBTSxHQUFHTixNQUR0RDs7QUFFQSxZQUFJLENBQUNlLE1BQUQsSUFBVyxDQUFDQyxTQUFoQixFQUEyQjtBQUN6QjtBQUNBYixVQUFBQSxRQUFRLENBQUNRLFlBQUQsQ0FBUixHQUF5QmpCLFNBQXpCO0FBQ0E7QUFDRCxTQWhCcUYsQ0FrQnRGO0FBQ0E7QUFDQTs7O0FBQ0EsWUFBSSxDQUFDcUIsTUFBRCxJQUFZQyxTQUFTLElBQUlILE9BQU8sQ0FBQ1QsTUFBUixHQUFpQlUsVUFBVSxDQUFDVixNQUF6RCxFQUFrRTtBQUNoRVEsVUFBQUEsUUFBUSxHQUFHSyxTQUFTLENBQUNILFVBQUQsQ0FBcEI7QUFDQXhCLFVBQUFBLElBQUksQ0FBQzRCLGFBQUwsQ0FBbUJOLFFBQVEsQ0FBQ1AsVUFBNUIsRUFBd0NYLFNBQXhDLEVBQW1ELElBQW5EO0FBQ0QsU0FIRCxNQUdPO0FBQ0xrQixVQUFBQSxRQUFRLEdBQUdDLE9BQVgsQ0FESyxDQUNlOztBQUNwQkQsVUFBQUEsUUFBUSxDQUFDUixNQUFUO0FBQ0FkLFVBQUFBLElBQUksQ0FBQzRCLGFBQUwsQ0FBbUJOLFFBQVEsQ0FBQ1AsVUFBNUIsRUFBd0MsSUFBeEMsRUFBOENYLFNBQTlDO0FBQ0Q7O0FBRURZLFFBQUFBLE9BQU0sR0FBR2hCLElBQUksQ0FBQ2lCLGFBQUwsQ0FBbUJLLFFBQW5CLEVBQTZCekIsU0FBN0IsRUFBd0NELFNBQXhDLEVBQW1EeUIsWUFBbkQsQ0FBVCxDQTlCc0YsQ0FnQ3RGOztBQUNBLFlBQUlDLFFBQVEsQ0FBQ1IsTUFBVCxHQUFrQixDQUFsQixJQUF1Qk4sTUFBdkIsSUFBaUNRLE9BQU0sR0FBRyxDQUFULElBQWNOLE1BQW5ELEVBQTJEO0FBQ3pELGlCQUFPVCxJQUFJLENBQUM0QixXQUFXLENBQUM3QixJQUFELEVBQU9zQixRQUFRLENBQUNQLFVBQWhCLEVBQTRCbEIsU0FBNUIsRUFBdUNELFNBQXZDLEVBQWtESSxJQUFJLENBQUM4QixlQUF2RCxDQUFaLENBQVg7QUFDRCxTQUZELE1BRU87QUFDTDtBQUNBakIsVUFBQUEsUUFBUSxDQUFDUSxZQUFELENBQVIsR0FBeUJDLFFBQXpCO0FBQ0Q7QUFDRjs7QUFFRFgsTUFBQUEsVUFBVTtBQUNYLEtBbEZzQyxDQW9GdkM7QUFDQTtBQUNBOzs7QUFDQSxRQUFJWixRQUFKLEVBQWM7QUFDWCxnQkFBU2dDLElBQVQsR0FBZ0I7QUFDZjVCLFFBQUFBLFVBQVUsQ0FBQyxZQUFXO0FBQ3BCOztBQUNBO0FBQ0EsY0FBSVEsVUFBVSxHQUFHQyxhQUFqQixFQUFnQztBQUM5QixtQkFBT2IsUUFBUSxFQUFmO0FBQ0Q7O0FBRUQsY0FBSSxDQUFDcUIsY0FBYyxFQUFuQixFQUF1QjtBQUNyQlcsWUFBQUEsSUFBSTtBQUNMO0FBQ0YsU0FWUyxFQVVQLENBVk8sQ0FBVjtBQVdELE9BWkEsR0FBRDtBQWFELEtBZEQsTUFjTztBQUNMLGFBQU9wQixVQUFVLElBQUlDLGFBQXJCLEVBQW9DO0FBQ2xDLFlBQUlvQixHQUFHLEdBQUdaLGNBQWMsRUFBeEI7O0FBQ0EsWUFBSVksR0FBSixFQUFTO0FBQ1AsaUJBQU9BLEdBQVA7QUFDRDtBQUNGO0FBQ0Y7QUFDRixHQTlHYzs7QUFBQTs7QUFBQTtBQWdIZkosRUFBQUEsYUFoSGUseUJBZ0hEYixVQWhIQyxFQWdIV2tCLEtBaEhYLEVBZ0hrQkMsT0FoSGxCLEVBZ0gyQjtBQUN4QyxRQUFJQyxJQUFJLEdBQUdwQixVQUFVLENBQUNBLFVBQVUsQ0FBQ04sTUFBWCxHQUFvQixDQUFyQixDQUFyQjs7QUFDQSxRQUFJMEIsSUFBSSxJQUFJQSxJQUFJLENBQUNGLEtBQUwsS0FBZUEsS0FBdkIsSUFBZ0NFLElBQUksQ0FBQ0QsT0FBTCxLQUFpQkEsT0FBckQsRUFBOEQ7QUFDNUQ7QUFDQTtBQUNBbkIsTUFBQUEsVUFBVSxDQUFDQSxVQUFVLENBQUNOLE1BQVgsR0FBb0IsQ0FBckIsQ0FBVixHQUFvQztBQUFDVSxRQUFBQSxLQUFLLEVBQUVnQixJQUFJLENBQUNoQixLQUFMLEdBQWEsQ0FBckI7QUFBd0JjLFFBQUFBLEtBQUssRUFBRUEsS0FBL0I7QUFBc0NDLFFBQUFBLE9BQU8sRUFBRUE7QUFBL0MsT0FBcEM7QUFDRCxLQUpELE1BSU87QUFDTG5CLE1BQUFBLFVBQVUsQ0FBQ3FCLElBQVgsQ0FBZ0I7QUFBQ2pCLFFBQUFBLEtBQUssRUFBRSxDQUFSO0FBQVdjLFFBQUFBLEtBQUssRUFBRUEsS0FBbEI7QUFBeUJDLFFBQUFBLE9BQU8sRUFBRUE7QUFBbEMsT0FBaEI7QUFDRDtBQUNGLEdBekhjOztBQUFBOztBQUFBO0FBMEhmakIsRUFBQUEsYUExSGUseUJBMEhESyxRQTFIQyxFQTBIU3pCLFNBMUhULEVBMEhvQkQsU0ExSHBCLEVBMEgrQnlCLFlBMUgvQixFQTBINkM7QUFDMUQsUUFBSWIsTUFBTSxHQUFHWCxTQUFTLENBQUNZLE1BQXZCO0FBQUEsUUFDSUMsTUFBTSxHQUFHZCxTQUFTLENBQUNhLE1BRHZCO0FBQUEsUUFFSUssTUFBTSxHQUFHUSxRQUFRLENBQUNSLE1BRnRCO0FBQUEsUUFHSUUsTUFBTSxHQUFHRixNQUFNLEdBQUdPLFlBSHRCO0FBQUEsUUFLSWdCLFdBQVcsR0FBRyxDQUxsQjs7QUFNQSxXQUFPdkIsTUFBTSxHQUFHLENBQVQsR0FBYU4sTUFBYixJQUF1QlEsTUFBTSxHQUFHLENBQVQsR0FBYU4sTUFBcEMsSUFBOEMsS0FBSzRCLE1BQUwsQ0FBWXpDLFNBQVMsQ0FBQ2lCLE1BQU0sR0FBRyxDQUFWLENBQXJCLEVBQW1DbEIsU0FBUyxDQUFDb0IsTUFBTSxHQUFHLENBQVYsQ0FBNUMsQ0FBckQsRUFBZ0g7QUFDOUdGLE1BQUFBLE1BQU07QUFDTkUsTUFBQUEsTUFBTTtBQUNOcUIsTUFBQUEsV0FBVztBQUNaOztBQUVELFFBQUlBLFdBQUosRUFBaUI7QUFDZmYsTUFBQUEsUUFBUSxDQUFDUCxVQUFULENBQW9CcUIsSUFBcEIsQ0FBeUI7QUFBQ2pCLFFBQUFBLEtBQUssRUFBRWtCO0FBQVIsT0FBekI7QUFDRDs7QUFFRGYsSUFBQUEsUUFBUSxDQUFDUixNQUFULEdBQWtCQSxNQUFsQjtBQUNBLFdBQU9FLE1BQVA7QUFDRCxHQTdJYzs7QUFBQTs7QUFBQTtBQStJZnNCLEVBQUFBLE1BL0llLGtCQStJUkMsSUEvSVEsRUErSUZDLEtBL0lFLEVBK0lLO0FBQ2xCLFFBQUksS0FBSzFDLE9BQUwsQ0FBYTJDLFVBQWpCLEVBQTZCO0FBQzNCLGFBQU8sS0FBSzNDLE9BQUwsQ0FBYTJDLFVBQWIsQ0FBd0JGLElBQXhCLEVBQThCQyxLQUE5QixDQUFQO0FBQ0QsS0FGRCxNQUVPO0FBQ0wsYUFBT0QsSUFBSSxLQUFLQyxLQUFULElBQ0QsS0FBSzFDLE9BQUwsQ0FBYTRDLFVBQWIsSUFBMkJILElBQUksQ0FBQ0ksV0FBTCxPQUF1QkgsS0FBSyxDQUFDRyxXQUFOLEVBRHhEO0FBRUQ7QUFDRixHQXRKYzs7QUFBQTs7QUFBQTtBQXVKZnJDLEVBQUFBLFdBdkplLHVCQXVKSHNDLEtBdkpHLEVBdUpJO0FBQ2pCLFFBQUlaLEdBQUcsR0FBRyxFQUFWOztBQUNBLFNBQUssSUFBSWEsQ0FBQyxHQUFHLENBQWIsRUFBZ0JBLENBQUMsR0FBR0QsS0FBSyxDQUFDbkMsTUFBMUIsRUFBa0NvQyxDQUFDLEVBQW5DLEVBQXVDO0FBQ3JDLFVBQUlELEtBQUssQ0FBQ0MsQ0FBRCxDQUFULEVBQWM7QUFDWmIsUUFBQUEsR0FBRyxDQUFDSSxJQUFKLENBQVNRLEtBQUssQ0FBQ0MsQ0FBRCxDQUFkO0FBQ0Q7QUFDRjs7QUFDRCxXQUFPYixHQUFQO0FBQ0QsR0EvSmM7O0FBQUE7O0FBQUE7QUFnS2YzQixFQUFBQSxTQWhLZSxxQkFnS0xILEtBaEtLLEVBZ0tFO0FBQ2YsV0FBT0EsS0FBUDtBQUNELEdBbEtjOztBQUFBOztBQUFBO0FBbUtmSyxFQUFBQSxRQW5LZSxvQkFtS05MLEtBbktNLEVBbUtDO0FBQ2QsV0FBT0EsS0FBSyxDQUFDNEMsS0FBTixDQUFZLEVBQVosQ0FBUDtBQUNELEdBcktjOztBQUFBOztBQUFBO0FBc0tmNUIsRUFBQUEsSUF0S2UsZ0JBc0tWNkIsS0F0S1UsRUFzS0g7QUFDVixXQUFPQSxLQUFLLENBQUM3QixJQUFOLENBQVcsRUFBWCxDQUFQO0FBQ0Q7QUF4S2MsQ0FBakI7O0FBMktBLFNBQVNXLFdBQVQsQ0FBcUJsQyxJQUFyQixFQUEyQm9CLFVBQTNCLEVBQXVDbEIsU0FBdkMsRUFBa0RELFNBQWxELEVBQTZEa0MsZUFBN0QsRUFBOEU7QUFDNUUsTUFBSWtCLFlBQVksR0FBRyxDQUFuQjtBQUFBLE1BQ0lDLFlBQVksR0FBR2xDLFVBQVUsQ0FBQ04sTUFEOUI7QUFBQSxNQUVJSyxNQUFNLEdBQUcsQ0FGYjtBQUFBLE1BR0lFLE1BQU0sR0FBRyxDQUhiOztBQUtBLFNBQU9nQyxZQUFZLEdBQUdDLFlBQXRCLEVBQW9DRCxZQUFZLEVBQWhELEVBQW9EO0FBQ2xELFFBQUlFLFNBQVMsR0FBR25DLFVBQVUsQ0FBQ2lDLFlBQUQsQ0FBMUI7O0FBQ0EsUUFBSSxDQUFDRSxTQUFTLENBQUNoQixPQUFmLEVBQXdCO0FBQ3RCLFVBQUksQ0FBQ2dCLFNBQVMsQ0FBQ2pCLEtBQVgsSUFBb0JILGVBQXhCLEVBQXlDO0FBQ3ZDLFlBQUk1QixLQUFLLEdBQUdMLFNBQVMsQ0FBQ3NELEtBQVYsQ0FBZ0JyQyxNQUFoQixFQUF3QkEsTUFBTSxHQUFHb0MsU0FBUyxDQUFDL0IsS0FBM0MsQ0FBWjtBQUNBakIsUUFBQUEsS0FBSyxHQUFHQSxLQUFLLENBQUNrRCxHQUFOLENBQVUsVUFBU2xELEtBQVQsRUFBZ0IyQyxDQUFoQixFQUFtQjtBQUNuQyxjQUFJUSxRQUFRLEdBQUd6RCxTQUFTLENBQUNvQixNQUFNLEdBQUc2QixDQUFWLENBQXhCO0FBQ0EsaUJBQU9RLFFBQVEsQ0FBQzVDLE1BQVQsR0FBa0JQLEtBQUssQ0FBQ08sTUFBeEIsR0FBaUM0QyxRQUFqQyxHQUE0Q25ELEtBQW5EO0FBQ0QsU0FITyxDQUFSO0FBS0FnRCxRQUFBQSxTQUFTLENBQUNoRCxLQUFWLEdBQWtCUCxJQUFJLENBQUN1QixJQUFMLENBQVVoQixLQUFWLENBQWxCO0FBQ0QsT0FSRCxNQVFPO0FBQ0xnRCxRQUFBQSxTQUFTLENBQUNoRCxLQUFWLEdBQWtCUCxJQUFJLENBQUN1QixJQUFMLENBQVVyQixTQUFTLENBQUNzRCxLQUFWLENBQWdCckMsTUFBaEIsRUFBd0JBLE1BQU0sR0FBR29DLFNBQVMsQ0FBQy9CLEtBQTNDLENBQVYsQ0FBbEI7QUFDRDs7QUFDREwsTUFBQUEsTUFBTSxJQUFJb0MsU0FBUyxDQUFDL0IsS0FBcEIsQ0Fac0IsQ0FjdEI7O0FBQ0EsVUFBSSxDQUFDK0IsU0FBUyxDQUFDakIsS0FBZixFQUFzQjtBQUNwQmpCLFFBQUFBLE1BQU0sSUFBSWtDLFNBQVMsQ0FBQy9CLEtBQXBCO0FBQ0Q7QUFDRixLQWxCRCxNQWtCTztBQUNMK0IsTUFBQUEsU0FBUyxDQUFDaEQsS0FBVixHQUFrQlAsSUFBSSxDQUFDdUIsSUFBTCxDQUFVdEIsU0FBUyxDQUFDdUQsS0FBVixDQUFnQm5DLE1BQWhCLEVBQXdCQSxNQUFNLEdBQUdrQyxTQUFTLENBQUMvQixLQUEzQyxDQUFWLENBQWxCO0FBQ0FILE1BQUFBLE1BQU0sSUFBSWtDLFNBQVMsQ0FBQy9CLEtBQXBCLENBRkssQ0FJTDtBQUNBO0FBQ0E7O0FBQ0EsVUFBSTZCLFlBQVksSUFBSWpDLFVBQVUsQ0FBQ2lDLFlBQVksR0FBRyxDQUFoQixDQUFWLENBQTZCZixLQUFqRCxFQUF3RDtBQUN0RCxZQUFJcUIsR0FBRyxHQUFHdkMsVUFBVSxDQUFDaUMsWUFBWSxHQUFHLENBQWhCLENBQXBCO0FBQ0FqQyxRQUFBQSxVQUFVLENBQUNpQyxZQUFZLEdBQUcsQ0FBaEIsQ0FBVixHQUErQmpDLFVBQVUsQ0FBQ2lDLFlBQUQsQ0FBekM7QUFDQWpDLFFBQUFBLFVBQVUsQ0FBQ2lDLFlBQUQsQ0FBVixHQUEyQk0sR0FBM0I7QUFDRDtBQUNGO0FBQ0YsR0F2QzJFLENBeUM1RTtBQUNBO0FBQ0E7OztBQUNBLE1BQUlDLGFBQWEsR0FBR3hDLFVBQVUsQ0FBQ2tDLFlBQVksR0FBRyxDQUFoQixDQUE5Qjs7QUFDQSxNQUFJQSxZQUFZLEdBQUcsQ0FBZixJQUNHLE9BQU9NLGFBQWEsQ0FBQ3JELEtBQXJCLEtBQStCLFFBRGxDLEtBRUlxRCxhQUFhLENBQUN0QixLQUFkLElBQXVCc0IsYUFBYSxDQUFDckIsT0FGekMsS0FHR3ZDLElBQUksQ0FBQzJDLE1BQUwsQ0FBWSxFQUFaLEVBQWdCaUIsYUFBYSxDQUFDckQsS0FBOUIsQ0FIUCxFQUc2QztBQUMzQ2EsSUFBQUEsVUFBVSxDQUFDa0MsWUFBWSxHQUFHLENBQWhCLENBQVYsQ0FBNkIvQyxLQUE3QixJQUFzQ3FELGFBQWEsQ0FBQ3JELEtBQXBEO0FBQ0FhLElBQUFBLFVBQVUsQ0FBQ3lDLEdBQVg7QUFDRDs7QUFFRCxTQUFPekMsVUFBUDtBQUNEOztBQUVELFNBQVNZLFNBQVQsQ0FBbUI4QixJQUFuQixFQUF5QjtBQUN2QixTQUFPO0FBQUUzQyxJQUFBQSxNQUFNLEVBQUUyQyxJQUFJLENBQUMzQyxNQUFmO0FBQXVCQyxJQUFBQSxVQUFVLEVBQUUwQyxJQUFJLENBQUMxQyxVQUFMLENBQWdCb0MsS0FBaEIsQ0FBc0IsQ0FBdEI7QUFBbkMsR0FBUDtBQUNEIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRGlmZigpIHt9XG5cbkRpZmYucHJvdG90eXBlID0ge1xuICBkaWZmKG9sZFN0cmluZywgbmV3U3RyaW5nLCBvcHRpb25zID0ge30pIHtcbiAgICBsZXQgY2FsbGJhY2sgPSBvcHRpb25zLmNhbGxiYWNrO1xuICAgIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgY2FsbGJhY2sgPSBvcHRpb25zO1xuICAgICAgb3B0aW9ucyA9IHt9O1xuICAgIH1cbiAgICB0aGlzLm9wdGlvbnMgPSBvcHRpb25zO1xuXG4gICAgbGV0IHNlbGYgPSB0aGlzO1xuXG4gICAgZnVuY3Rpb24gZG9uZSh2YWx1ZSkge1xuICAgICAgaWYgKGNhbGxiYWNrKSB7XG4gICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7IGNhbGxiYWNrKHVuZGVmaW5lZCwgdmFsdWUpOyB9LCAwKTtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgICB9XG4gICAgfVxuXG4gICAgLy8gQWxsb3cgc3ViY2xhc3NlcyB0byBtYXNzYWdlIHRoZSBpbnB1dCBwcmlvciB0byBydW5uaW5nXG4gICAgb2xkU3RyaW5nID0gdGhpcy5jYXN0SW5wdXQob2xkU3RyaW5nKTtcbiAgICBuZXdTdHJpbmcgPSB0aGlzLmNhc3RJbnB1dChuZXdTdHJpbmcpO1xuXG4gICAgb2xkU3RyaW5nID0gdGhpcy5yZW1vdmVFbXB0eSh0aGlzLnRva2VuaXplKG9sZFN0cmluZykpO1xuICAgIG5ld1N0cmluZyA9IHRoaXMucmVtb3ZlRW1wdHkodGhpcy50b2tlbml6ZShuZXdTdHJpbmcpKTtcblxuICAgIGxldCBuZXdMZW4gPSBuZXdTdHJpbmcubGVuZ3RoLCBvbGRMZW4gPSBvbGRTdHJpbmcubGVuZ3RoO1xuICAgIGxldCBlZGl0TGVuZ3RoID0gMTtcbiAgICBsZXQgbWF4RWRpdExlbmd0aCA9IG5ld0xlbiArIG9sZExlbjtcbiAgICBsZXQgYmVzdFBhdGggPSBbeyBuZXdQb3M6IC0xLCBjb21wb25lbnRzOiBbXSB9XTtcblxuICAgIC8vIFNlZWQgZWRpdExlbmd0aCA9IDAsIGkuZS4gdGhlIGNvbnRlbnQgc3RhcnRzIHdpdGggdGhlIHNhbWUgdmFsdWVzXG4gICAgbGV0IG9sZFBvcyA9IHRoaXMuZXh0cmFjdENvbW1vbihiZXN0UGF0aFswXSwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIDApO1xuICAgIGlmIChiZXN0UGF0aFswXS5uZXdQb3MgKyAxID49IG5ld0xlbiAmJiBvbGRQb3MgKyAxID49IG9sZExlbikge1xuICAgICAgLy8gSWRlbnRpdHkgcGVyIHRoZSBlcXVhbGl0eSBhbmQgdG9rZW5pemVyXG4gICAgICByZXR1cm4gZG9uZShbe3ZhbHVlOiB0aGlzLmpvaW4obmV3U3RyaW5nKSwgY291bnQ6IG5ld1N0cmluZy5sZW5ndGh9XSk7XG4gICAgfVxuXG4gICAgLy8gTWFpbiB3b3JrZXIgbWV0aG9kLiBjaGVja3MgYWxsIHBlcm11dGF0aW9ucyBvZiBhIGdpdmVuIGVkaXQgbGVuZ3RoIGZvciBhY2NlcHRhbmNlLlxuICAgIGZ1bmN0aW9uIGV4ZWNFZGl0TGVuZ3RoKCkge1xuICAgICAgZm9yIChsZXQgZGlhZ29uYWxQYXRoID0gLTEgKiBlZGl0TGVuZ3RoOyBkaWFnb25hbFBhdGggPD0gZWRpdExlbmd0aDsgZGlhZ29uYWxQYXRoICs9IDIpIHtcbiAgICAgICAgbGV0IGJhc2VQYXRoO1xuICAgICAgICBsZXQgYWRkUGF0aCA9IGJlc3RQYXRoW2RpYWdvbmFsUGF0aCAtIDFdLFxuICAgICAgICAgICAgcmVtb3ZlUGF0aCA9IGJlc3RQYXRoW2RpYWdvbmFsUGF0aCArIDFdLFxuICAgICAgICAgICAgb2xkUG9zID0gKHJlbW92ZVBhdGggPyByZW1vdmVQYXRoLm5ld1BvcyA6IDApIC0gZGlhZ29uYWxQYXRoO1xuICAgICAgICBpZiAoYWRkUGF0aCkge1xuICAgICAgICAgIC8vIE5vIG9uZSBlbHNlIGlzIGdvaW5nIHRvIGF0dGVtcHQgdG8gdXNlIHRoaXMgdmFsdWUsIGNsZWFyIGl0XG4gICAgICAgICAgYmVzdFBhdGhbZGlhZ29uYWxQYXRoIC0gMV0gPSB1bmRlZmluZWQ7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgY2FuQWRkID0gYWRkUGF0aCAmJiBhZGRQYXRoLm5ld1BvcyArIDEgPCBuZXdMZW4sXG4gICAgICAgICAgICBjYW5SZW1vdmUgPSByZW1vdmVQYXRoICYmIDAgPD0gb2xkUG9zICYmIG9sZFBvcyA8IG9sZExlbjtcbiAgICAgICAgaWYgKCFjYW5BZGQgJiYgIWNhblJlbW92ZSkge1xuICAgICAgICAgIC8vIElmIHRoaXMgcGF0aCBpcyBhIHRlcm1pbmFsIHRoZW4gcHJ1bmVcbiAgICAgICAgICBiZXN0UGF0aFtkaWFnb25hbFBhdGhdID0gdW5kZWZpbmVkO1xuICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU2VsZWN0IHRoZSBkaWFnb25hbCB0aGF0IHdlIHdhbnQgdG8gYnJhbmNoIGZyb20uIFdlIHNlbGVjdCB0aGUgcHJpb3JcbiAgICAgICAgLy8gcGF0aCB3aG9zZSBwb3NpdGlvbiBpbiB0aGUgbmV3IHN0cmluZyBpcyB0aGUgZmFydGhlc3QgZnJvbSB0aGUgb3JpZ2luXG4gICAgICAgIC8vIGFuZCBkb2VzIG5vdCBwYXNzIHRoZSBib3VuZHMgb2YgdGhlIGRpZmYgZ3JhcGhcbiAgICAgICAgaWYgKCFjYW5BZGQgfHwgKGNhblJlbW92ZSAmJiBhZGRQYXRoLm5ld1BvcyA8IHJlbW92ZVBhdGgubmV3UG9zKSkge1xuICAgICAgICAgIGJhc2VQYXRoID0gY2xvbmVQYXRoKHJlbW92ZVBhdGgpO1xuICAgICAgICAgIHNlbGYucHVzaENvbXBvbmVudChiYXNlUGF0aC5jb21wb25lbnRzLCB1bmRlZmluZWQsIHRydWUpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGJhc2VQYXRoID0gYWRkUGF0aDsgLy8gTm8gbmVlZCB0byBjbG9uZSwgd2UndmUgcHVsbGVkIGl0IGZyb20gdGhlIGxpc3RcbiAgICAgICAgICBiYXNlUGF0aC5uZXdQb3MrKztcbiAgICAgICAgICBzZWxmLnB1c2hDb21wb25lbnQoYmFzZVBhdGguY29tcG9uZW50cywgdHJ1ZSwgdW5kZWZpbmVkKTtcbiAgICAgICAgfVxuXG4gICAgICAgIG9sZFBvcyA9IHNlbGYuZXh0cmFjdENvbW1vbihiYXNlUGF0aCwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIGRpYWdvbmFsUGF0aCk7XG5cbiAgICAgICAgLy8gSWYgd2UgaGF2ZSBoaXQgdGhlIGVuZCBvZiBib3RoIHN0cmluZ3MsIHRoZW4gd2UgYXJlIGRvbmVcbiAgICAgICAgaWYgKGJhc2VQYXRoLm5ld1BvcyArIDEgPj0gbmV3TGVuICYmIG9sZFBvcyArIDEgPj0gb2xkTGVuKSB7XG4gICAgICAgICAgcmV0dXJuIGRvbmUoYnVpbGRWYWx1ZXMoc2VsZiwgYmFzZVBhdGguY29tcG9uZW50cywgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIHNlbGYudXNlTG9uZ2VzdFRva2VuKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgLy8gT3RoZXJ3aXNlIHRyYWNrIHRoaXMgcGF0aCBhcyBhIHBvdGVudGlhbCBjYW5kaWRhdGUgYW5kIGNvbnRpbnVlLlxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aF0gPSBiYXNlUGF0aDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBlZGl0TGVuZ3RoKys7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybXMgdGhlIGxlbmd0aCBvZiBlZGl0IGl0ZXJhdGlvbi4gSXMgYSBiaXQgZnVnbHkgYXMgdGhpcyBoYXMgdG8gc3VwcG9ydCB0aGVcbiAgICAvLyBzeW5jIGFuZCBhc3luYyBtb2RlIHdoaWNoIGlzIG5ldmVyIGZ1bi4gTG9vcHMgb3ZlciBleGVjRWRpdExlbmd0aCB1bnRpbCBhIHZhbHVlXG4gICAgLy8gaXMgcHJvZHVjZWQuXG4gICAgaWYgKGNhbGxiYWNrKSB7XG4gICAgICAoZnVuY3Rpb24gZXhlYygpIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHtcbiAgICAgICAgICAvLyBUaGlzIHNob3VsZCBub3QgaGFwcGVuLCBidXQgd2Ugd2FudCB0byBiZSBzYWZlLlxuICAgICAgICAgIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gICAgICAgICAgaWYgKGVkaXRMZW5ndGggPiBtYXhFZGl0TGVuZ3RoKSB7XG4gICAgICAgICAgICByZXR1cm4gY2FsbGJhY2soKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoIWV4ZWNFZGl0TGVuZ3RoKCkpIHtcbiAgICAgICAgICAgIGV4ZWMoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sIDApO1xuICAgICAgfSgpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgd2hpbGUgKGVkaXRMZW5ndGggPD0gbWF4RWRpdExlbmd0aCkge1xuICAgICAgICBsZXQgcmV0ID0gZXhlY0VkaXRMZW5ndGgoKTtcbiAgICAgICAgaWYgKHJldCkge1xuICAgICAgICAgIHJldHVybiByZXQ7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH0sXG5cbiAgcHVzaENvbXBvbmVudChjb21wb25lbnRzLCBhZGRlZCwgcmVtb3ZlZCkge1xuICAgIGxldCBsYXN0ID0gY29tcG9uZW50c1tjb21wb25lbnRzLmxlbmd0aCAtIDFdO1xuICAgIGlmIChsYXN0ICYmIGxhc3QuYWRkZWQgPT09IGFkZGVkICYmIGxhc3QucmVtb3ZlZCA9PT0gcmVtb3ZlZCkge1xuICAgICAgLy8gV2UgbmVlZCB0byBjbG9uZSBoZXJlIGFzIHRoZSBjb21wb25lbnQgY2xvbmUgb3BlcmF0aW9uIGlzIGp1c3RcbiAgICAgIC8vIGFzIHNoYWxsb3cgYXJyYXkgY2xvbmVcbiAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50cy5sZW5ndGggLSAxXSA9IHtjb3VudDogbGFzdC5jb3VudCArIDEsIGFkZGVkOiBhZGRlZCwgcmVtb3ZlZDogcmVtb3ZlZCB9O1xuICAgIH0gZWxzZSB7XG4gICAgICBjb21wb25lbnRzLnB1c2goe2NvdW50OiAxLCBhZGRlZDogYWRkZWQsIHJlbW92ZWQ6IHJlbW92ZWQgfSk7XG4gICAgfVxuICB9LFxuICBleHRyYWN0Q29tbW9uKGJhc2VQYXRoLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgZGlhZ29uYWxQYXRoKSB7XG4gICAgbGV0IG5ld0xlbiA9IG5ld1N0cmluZy5sZW5ndGgsXG4gICAgICAgIG9sZExlbiA9IG9sZFN0cmluZy5sZW5ndGgsXG4gICAgICAgIG5ld1BvcyA9IGJhc2VQYXRoLm5ld1BvcyxcbiAgICAgICAgb2xkUG9zID0gbmV3UG9zIC0gZGlhZ29uYWxQYXRoLFxuXG4gICAgICAgIGNvbW1vbkNvdW50ID0gMDtcbiAgICB3aGlsZSAobmV3UG9zICsgMSA8IG5ld0xlbiAmJiBvbGRQb3MgKyAxIDwgb2xkTGVuICYmIHRoaXMuZXF1YWxzKG5ld1N0cmluZ1tuZXdQb3MgKyAxXSwgb2xkU3RyaW5nW29sZFBvcyArIDFdKSkge1xuICAgICAgbmV3UG9zKys7XG4gICAgICBvbGRQb3MrKztcbiAgICAgIGNvbW1vbkNvdW50Kys7XG4gICAgfVxuXG4gICAgaWYgKGNvbW1vbkNvdW50KSB7XG4gICAgICBiYXNlUGF0aC5jb21wb25lbnRzLnB1c2goe2NvdW50OiBjb21tb25Db3VudH0pO1xuICAgIH1cblxuICAgIGJhc2VQYXRoLm5ld1BvcyA9IG5ld1BvcztcbiAgICByZXR1cm4gb2xkUG9zO1xuICB9LFxuXG4gIGVxdWFscyhsZWZ0LCByaWdodCkge1xuICAgIGlmICh0aGlzLm9wdGlvbnMuY29tcGFyYXRvcikge1xuICAgICAgcmV0dXJuIHRoaXMub3B0aW9ucy5jb21wYXJhdG9yKGxlZnQsIHJpZ2h0KTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIGxlZnQgPT09IHJpZ2h0XG4gICAgICAgIHx8ICh0aGlzLm9wdGlvbnMuaWdub3JlQ2FzZSAmJiBsZWZ0LnRvTG93ZXJDYXNlKCkgPT09IHJpZ2h0LnRvTG93ZXJDYXNlKCkpO1xuICAgIH1cbiAgfSxcbiAgcmVtb3ZlRW1wdHkoYXJyYXkpIHtcbiAgICBsZXQgcmV0ID0gW107XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcnJheS5sZW5ndGg7IGkrKykge1xuICAgICAgaWYgKGFycmF5W2ldKSB7XG4gICAgICAgIHJldC5wdXNoKGFycmF5W2ldKTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfSxcbiAgY2FzdElucHV0KHZhbHVlKSB7XG4gICAgcmV0dXJuIHZhbHVlO1xuICB9LFxuICB0b2tlbml6ZSh2YWx1ZSkge1xuICAgIHJldHVybiB2YWx1ZS5zcGxpdCgnJyk7XG4gIH0sXG4gIGpvaW4oY2hhcnMpIHtcbiAgICByZXR1cm4gY2hhcnMuam9pbignJyk7XG4gIH1cbn07XG5cbmZ1bmN0aW9uIGJ1aWxkVmFsdWVzKGRpZmYsIGNvbXBvbmVudHMsIG5ld1N0cmluZywgb2xkU3RyaW5nLCB1c2VMb25nZXN0VG9rZW4pIHtcbiAgbGV0IGNvbXBvbmVudFBvcyA9IDAsXG4gICAgICBjb21wb25lbnRMZW4gPSBjb21wb25lbnRzLmxlbmd0aCxcbiAgICAgIG5ld1BvcyA9IDAsXG4gICAgICBvbGRQb3MgPSAwO1xuXG4gIGZvciAoOyBjb21wb25lbnRQb3MgPCBjb21wb25lbnRMZW47IGNvbXBvbmVudFBvcysrKSB7XG4gICAgbGV0IGNvbXBvbmVudCA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zXTtcbiAgICBpZiAoIWNvbXBvbmVudC5yZW1vdmVkKSB7XG4gICAgICBpZiAoIWNvbXBvbmVudC5hZGRlZCAmJiB1c2VMb25nZXN0VG9rZW4pIHtcbiAgICAgICAgbGV0IHZhbHVlID0gbmV3U3RyaW5nLnNsaWNlKG5ld1BvcywgbmV3UG9zICsgY29tcG9uZW50LmNvdW50KTtcbiAgICAgICAgdmFsdWUgPSB2YWx1ZS5tYXAoZnVuY3Rpb24odmFsdWUsIGkpIHtcbiAgICAgICAgICBsZXQgb2xkVmFsdWUgPSBvbGRTdHJpbmdbb2xkUG9zICsgaV07XG4gICAgICAgICAgcmV0dXJuIG9sZFZhbHVlLmxlbmd0aCA+IHZhbHVlLmxlbmd0aCA/IG9sZFZhbHVlIDogdmFsdWU7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbXBvbmVudC52YWx1ZSA9IGRpZmYuam9pbih2YWx1ZSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4obmV3U3RyaW5nLnNsaWNlKG5ld1BvcywgbmV3UG9zICsgY29tcG9uZW50LmNvdW50KSk7XG4gICAgICB9XG4gICAgICBuZXdQb3MgKz0gY29tcG9uZW50LmNvdW50O1xuXG4gICAgICAvLyBDb21tb24gY2FzZVxuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQpIHtcbiAgICAgICAgb2xkUG9zICs9IGNvbXBvbmVudC5jb3VudDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG9sZFN0cmluZy5zbGljZShvbGRQb3MsIG9sZFBvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgb2xkUG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gUmV2ZXJzZSBhZGQgYW5kIHJlbW92ZSBzbyByZW1vdmVzIGFyZSBvdXRwdXQgZmlyc3QgdG8gbWF0Y2ggY29tbW9uIGNvbnZlbnRpb25cbiAgICAgIC8vIFRoZSBkaWZmaW5nIGFsZ29yaXRobSBpcyB0aWVkIHRvIGFkZCB0aGVuIHJlbW92ZSBvdXRwdXQgYW5kIHRoaXMgaXMgdGhlIHNpbXBsZXN0XG4gICAgICAvLyByb3V0ZSB0byBnZXQgdGhlIGRlc2lyZWQgb3V0cHV0IHdpdGggbWluaW1hbCBvdmVyaGVhZC5cbiAgICAgIGlmIChjb21wb25lbnRQb3MgJiYgY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXS5hZGRlZCkge1xuICAgICAgICBsZXQgdG1wID0gY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXTtcbiAgICAgICAgY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXSA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zXTtcbiAgICAgICAgY29tcG9uZW50c1tjb21wb25lbnRQb3NdID0gdG1wO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vIFNwZWNpYWwgY2FzZSBoYW5kbGUgZm9yIHdoZW4gb25lIHRlcm1pbmFsIGlzIGlnbm9yZWQgKGkuZS4gd2hpdGVzcGFjZSkuXG4gIC8vIEZvciB0aGlzIGNhc2Ugd2UgbWVyZ2UgdGhlIHRlcm1pbmFsIGludG8gdGhlIHByaW9yIHN0cmluZyBhbmQgZHJvcCB0aGUgY2hhbmdlLlxuICAvLyBUaGlzIGlzIG9ubHkgYXZhaWxhYmxlIGZvciBzdHJpbmcgbW9kZS5cbiAgbGV0IGxhc3RDb21wb25lbnQgPSBjb21wb25lbnRzW2NvbXBvbmVudExlbiAtIDFdO1xuICBpZiAoY29tcG9uZW50TGVuID4gMVxuICAgICAgJiYgdHlwZW9mIGxhc3RDb21wb25lbnQudmFsdWUgPT09ICdzdHJpbmcnXG4gICAgICAmJiAobGFzdENvbXBvbmVudC5hZGRlZCB8fCBsYXN0Q29tcG9uZW50LnJlbW92ZWQpXG4gICAgICAmJiBkaWZmLmVxdWFscygnJywgbGFzdENvbXBvbmVudC52YWx1ZSkpIHtcbiAgICBjb21wb25lbnRzW2NvbXBvbmVudExlbiAtIDJdLnZhbHVlICs9IGxhc3RDb21wb25lbnQudmFsdWU7XG4gICAgY29tcG9uZW50cy5wb3AoKTtcbiAgfVxuXG4gIHJldHVybiBjb21wb25lbnRzO1xufVxuXG5mdW5jdGlvbiBjbG9uZVBhdGgocGF0aCkge1xuICByZXR1cm4geyBuZXdQb3M6IHBhdGgubmV3UG9zLCBjb21wb25lbnRzOiBwYXRoLmNvbXBvbmVudHMuc2xpY2UoMCkgfTtcbn1cbiJdfQ==
699
 
700
 
701
  /***/ }),
702
 
703
- /***/ 7630:
704
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
705
 
706
  "use strict";
@@ -717,7 +716,7 @@ __webpack_unused_export__ = void 0;
717
  /*istanbul ignore end*/
718
  var
719
  /*istanbul ignore start*/
720
- _base = _interopRequireDefault(__webpack_require__(5913))
721
  /*istanbul ignore end*/
722
  ;
723
 
@@ -741,18 +740,17 @@ __webpack_unused_export__ = characterDiff;
741
  function diffChars(oldStr, newStr, options) {
742
  return characterDiff.diff(oldStr, newStr, options);
743
  }
744
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2NoYXJhY3Rlci5qcyJdLCJuYW1lcyI6WyJjaGFyYWN0ZXJEaWZmIiwiRGlmZiIsImRpZmZDaGFycyIsIm9sZFN0ciIsIm5ld1N0ciIsIm9wdGlvbnMiLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7Ozs7QUFFTyxJQUFNQSxhQUFhLEdBQUc7QUFBSUM7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBSjtBQUFBLEVBQXRCOzs7Ozs7QUFDQSxTQUFTQyxTQUFULENBQW1CQyxNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNDLE9BQW5DLEVBQTRDO0FBQUUsU0FBT0wsYUFBYSxDQUFDTSxJQUFkLENBQW1CSCxNQUFuQixFQUEyQkMsTUFBM0IsRUFBbUNDLE9BQW5DLENBQVA7QUFBcUQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgRGlmZiBmcm9tICcuL2Jhc2UnO1xuXG5leHBvcnQgY29uc3QgY2hhcmFjdGVyRGlmZiA9IG5ldyBEaWZmKCk7XG5leHBvcnQgZnVuY3Rpb24gZGlmZkNoYXJzKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKSB7IHJldHVybiBjaGFyYWN0ZXJEaWZmLmRpZmYob2xkU3RyLCBuZXdTdHIsIG9wdGlvbnMpOyB9XG4iXX0=
745
 
746
 
747
  /***/ }),
748
 
749
- /***/ 9010:
750
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
751
 
752
  "use strict";
753
 
754
 
755
- var util = __webpack_require__(4657);
756
 
757
  function scrollIntoView(elem, container, config) {
758
  config = config || {};
@@ -887,17 +885,17 @@ module.exports = scrollIntoView;
887
 
888
  /***/ }),
889
 
890
- /***/ 4979:
891
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
892
 
893
  "use strict";
894
 
895
 
896
- module.exports = __webpack_require__(9010);
897
 
898
  /***/ }),
899
 
900
- /***/ 4657:
901
  /***/ (function(module) {
902
 
903
  "use strict";
@@ -1343,7 +1341,7 @@ module.exports = _extends({
1343
 
1344
  /***/ }),
1345
 
1346
- /***/ 5717:
1347
  /***/ (function(module) {
1348
 
1349
  if (typeof Object.create === 'function') {
@@ -1373,11 +1371,11 @@ if (typeof Object.create === 'function') {
1373
 
1374
  /***/ }),
1375
 
1376
- /***/ 8303:
1377
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1378
 
1379
  // Load in dependencies
1380
- var computedStyle = __webpack_require__(1934);
1381
 
1382
  /**
1383
  * Calculate the `line-height` of a given node
@@ -1477,7 +1475,7 @@ module.exports = lineHeight;
1477
 
1478
  /***/ }),
1479
 
1480
- /***/ 2703:
1481
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1482
 
1483
  "use strict";
@@ -1490,7 +1488,7 @@ module.exports = lineHeight;
1490
 
1491
 
1492
 
1493
- var ReactPropTypesSecret = __webpack_require__(414);
1494
 
1495
  function emptyFunction() {}
1496
  function emptyFunctionWithReset() {}
@@ -1549,7 +1547,7 @@ module.exports = function() {
1549
 
1550
  /***/ }),
1551
 
1552
- /***/ 5697:
1553
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1554
 
1555
  /**
@@ -1562,13 +1560,13 @@ module.exports = function() {
1562
  if (false) { var throwOnDirectAccess, ReactIs; } else {
1563
  // By explicitly using `prop-types` you are opting into new production behavior.
1564
  // http://fb.me/prop-types-in-prod
1565
- module.exports = __webpack_require__(2703)();
1566
  }
1567
 
1568
 
1569
  /***/ }),
1570
 
1571
- /***/ 414:
1572
  /***/ (function(module) {
1573
 
1574
  "use strict";
@@ -1588,7 +1586,7 @@ module.exports = ReactPropTypesSecret;
1588
 
1589
  /***/ }),
1590
 
1591
- /***/ 4857:
1592
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1593
 
1594
  "use strict";
@@ -1622,9 +1620,9 @@ var __rest = (this && this.__rest) || function (s, e) {
1622
  };
1623
  exports.__esModule = true;
1624
  var React = __webpack_require__(9196);
1625
- var PropTypes = __webpack_require__(5697);
1626
- var autosize = __webpack_require__(9367);
1627
- var _getLineHeight = __webpack_require__(8303);
1628
  var getLineHeight = _getLineHeight;
1629
  var RESIZED = "autosize:resized";
1630
  /**
@@ -1722,20 +1720,20 @@ exports.TextareaAutosize = React.forwardRef(function (props, ref) {
1722
 
1723
  /***/ }),
1724
 
1725
- /***/ 4042:
1726
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1727
 
1728
  "use strict";
1729
  var __webpack_unused_export__;
1730
 
1731
  __webpack_unused_export__ = true;
1732
- var TextareaAutosize_1 = __webpack_require__(4857);
1733
  exports.Z = TextareaAutosize_1.TextareaAutosize;
1734
 
1735
 
1736
  /***/ }),
1737
 
1738
- /***/ 3692:
1739
  /***/ (function(module) {
1740
 
1741
  var traverse = module.exports = function (obj) {
@@ -2209,6 +2207,7 @@ __webpack_require__.d(__webpack_exports__, {
2209
  "__experimentalBlockContentOverlay": function() { return /* reexport */ BlockContentOverlay; },
2210
  "__experimentalBlockFullHeightAligmentControl": function() { return /* reexport */ block_full_height_alignment_control; },
2211
  "__experimentalBlockPatternSetup": function() { return /* reexport */ block_pattern_setup; },
 
2212
  "__experimentalBlockVariationPicker": function() { return /* reexport */ block_variation_picker; },
2213
  "__experimentalBlockVariationTransforms": function() { return /* reexport */ block_variation_transforms; },
2214
  "__experimentalBorderRadiusControl": function() { return /* reexport */ BorderRadiusControl; },
@@ -2279,8 +2278,6 @@ __webpack_require__.d(__webpack_exports__, {
2279
  "useCachedTruthy": function() { return /* reexport */ useCachedTruthy; },
2280
  "useInnerBlocksProps": function() { return /* reexport */ useInnerBlocksProps; },
2281
  "useSetting": function() { return /* reexport */ useSetting; },
2282
- "validateThemeColors": function() { return /* reexport */ validateThemeColors; },
2283
- "validateThemeGradients": function() { return /* reexport */ validateThemeGradients; },
2284
  "withColorContext": function() { return /* reexport */ with_color_context; },
2285
  "withColors": function() { return /* reexport */ withColors; },
2286
  "withFontSizes": function() { return /* reexport */ with_font_sizes; }
@@ -2464,7 +2461,7 @@ function migrateLightBlockWrapper(settings) {
2464
  }
2465
 
2466
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/compat/migrateLightBlockWrapper', migrateLightBlockWrapper);
2467
- //# sourceMappingURL=compat.js.map
2468
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2469
  function _extends() {
2470
  _extends = Object.assign || function (target) {
@@ -2486,7 +2483,7 @@ function _extends() {
2486
  ;// CONCATENATED MODULE: external ["wp","element"]
2487
  var external_wp_element_namespaceObject = window["wp"]["element"];
2488
  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2489
- var classnames = __webpack_require__(4184);
2490
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2491
  ;// CONCATENATED MODULE: external "lodash"
2492
  var external_lodash_namespaceObject = window["lodash"];
@@ -2514,7 +2511,7 @@ const groups = {
2514
  parent: BlockControlsParent
2515
  };
2516
  /* harmony default export */ var block_controls_groups = (groups);
2517
- //# sourceMappingURL=groups.js.map
2518
  ;// CONCATENATED MODULE: external ["wp","i18n"]
2519
  var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
2520
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/defaults.js
@@ -2658,6 +2655,7 @@ const SETTINGS_DEFAULTS = {
2658
  __experimentalBlockPatterns: [],
2659
  __experimentalBlockPatternCategories: [],
2660
  __experimentalSpotlightEntityBlocks: [],
 
2661
  __unstableGalleryWithImageBlocks: false,
2662
  // gradients setting is not used anymore now defaults are passed from theme.json on the server and core has its own defaults.
2663
  // The setting is only kept for backward compatibility purposes.
@@ -2715,7 +2713,7 @@ const SETTINGS_DEFAULTS = {
2715
  scripts: []
2716
  }
2717
  };
2718
- //# sourceMappingURL=defaults.js.map
2719
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/array.js
2720
  /**
2721
  * External dependencies
@@ -2751,7 +2749,7 @@ function moveTo(array, from, to) {
2751
  withoutMovedElements.splice(from, count);
2752
  return insertAt(withoutMovedElements, array.slice(from, from + count), to);
2753
  }
2754
- //# sourceMappingURL=array.js.map
2755
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/reducer.js
2756
  /**
2757
  * External dependencies
@@ -4011,7 +4009,7 @@ function isSelectionEnabled() {
4011
  return state;
4012
  }
4013
  /**
4014
- * Reducer returning the intial block selection.
4015
  *
4016
  * Currently this in only used to restore the selection after block deletion and
4017
  * pasting new content.This reducer should eventually be removed in favour of setting
@@ -4029,7 +4027,7 @@ function initialPosition() {
4029
 
4030
  if (action.type === 'REPLACE_BLOCKS' && action.initialPosition !== undefined) {
4031
  return action.initialPosition;
4032
- } else if (['SELECT_BLOCK', 'RESET_SELECTION', 'INSERT_BLOCKS', 'REPLACE_INNER_BLOCKS'].includes(action.type)) {
4033
  return action.initialPosition;
4034
  }
4035
 
@@ -4434,7 +4432,7 @@ function lastBlockInserted() {
4434
  highlightedBlock,
4435
  lastBlockInserted
4436
  }));
4437
- //# sourceMappingURL=reducer.js.map
4438
  ;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
4439
 
4440
 
@@ -4727,7 +4725,7 @@ const symbol = (0,external_wp_element_namespaceObject.createElement)(external_wp
4727
  d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
4728
  }));
4729
  /* harmony default export */ var library_symbol = (symbol);
4730
- //# sourceMappingURL=symbol.js.map
4731
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/selectors.js
4732
  /**
4733
  * External dependencies
@@ -6895,7 +6893,7 @@ function wasBlockJustInserted(state, clientId, source) {
6895
  } = state;
6896
  return lastBlockInserted.clientId === clientId && lastBlockInserted.source === source;
6897
  }
6898
- //# sourceMappingURL=selectors.js.map
6899
  ;// CONCATENATED MODULE: external ["wp","a11y"]
6900
  var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
6901
  ;// CONCATENATED MODULE: external ["wp","richText"]
@@ -7171,31 +7169,37 @@ function stopMultiSelect() {
7171
  /**
7172
  * Action that changes block multi-selection.
7173
  *
7174
- * @param {string} start First block of the multi selection.
7175
- * @param {string} end Last block of the multiselection.
 
7176
  */
7177
 
7178
- const multiSelect = (start, end) => _ref6 => {
7179
- let {
7180
- select,
7181
- dispatch
7182
- } = _ref6;
7183
- const startBlockRootClientId = select.getBlockRootClientId(start);
7184
- const endBlockRootClientId = select.getBlockRootClientId(end); // Only allow block multi-selections at the same level.
7185
 
7186
- if (startBlockRootClientId !== endBlockRootClientId) {
7187
- return;
7188
- }
 
 
 
 
7189
 
7190
- dispatch({
7191
- type: 'MULTI_SELECT',
7192
- start,
7193
- end
7194
- });
7195
- const blockCount = select.getSelectedBlockCount();
7196
- (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
7197
- /* translators: %s: number of selected blocks */
7198
- (0,external_wp_i18n_namespaceObject._n)('%s block selected.', '%s blocks selected.', blockCount), blockCount), 'assertive');
 
 
 
 
 
 
7199
  };
7200
  /**
7201
  * Action that clears the block selection.
@@ -7871,12 +7875,13 @@ function selectionChange(clientId, attributeKey, startOffset, endOffset) {
7871
  * @param {?Object} attributes Optional attributes of the block to assign.
7872
  * @param {?string} rootClientId Optional root client ID of block list on which
7873
  * to append.
7874
- * @param {?number} index Optional index where to insert the default block
7875
- *
7876
- * @return {Object} Action object
7877
  */
7878
 
7879
- function insertDefaultBlock(attributes, rootClientId, index) {
 
 
 
7880
  // Abort if there is no default block type (if it has been unregistered).
7881
  const defaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)();
7882
 
@@ -7885,8 +7890,8 @@ function insertDefaultBlock(attributes, rootClientId, index) {
7885
  }
7886
 
7887
  const block = (0,external_wp_blocks_namespaceObject.createBlock)(defaultBlockName, attributes);
7888
- return insertBlock(block, index, rootClientId);
7889
- }
7890
  /**
7891
  * Action that changes the nested settings of a given block.
7892
  *
@@ -7965,10 +7970,10 @@ function __unstableMarkNextChangeAsNotPersistent() {
7965
  * selection changes have been recorded.
7966
  */
7967
 
7968
- const __unstableMarkAutomaticChange = () => _ref14 => {
7969
  let {
7970
  dispatch
7971
- } = _ref14;
7972
  dispatch({
7973
  type: 'MARK_AUTOMATIC_CHANGE'
7974
  });
@@ -7989,10 +7994,10 @@ const __unstableMarkAutomaticChange = () => _ref14 => {
7989
 
7990
  const setNavigationMode = function () {
7991
  let isNavigationMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
7992
- return _ref15 => {
7993
  let {
7994
  dispatch
7995
- } = _ref15;
7996
  dispatch({
7997
  type: 'SET_NAVIGATION_MODE',
7998
  isNavigationMode
@@ -8013,10 +8018,10 @@ const setNavigationMode = function () {
8013
 
8014
  const setBlockMovingClientId = function () {
8015
  let hasBlockMovingClientId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
8016
- return _ref16 => {
8017
  let {
8018
  dispatch
8019
- } = _ref16;
8020
  dispatch({
8021
  type: 'SET_BLOCK_MOVING_MODE',
8022
  hasBlockMovingClientId
@@ -8036,11 +8041,11 @@ const setBlockMovingClientId = function () {
8036
 
8037
  const duplicateBlocks = function (clientIds) {
8038
  let updateSelection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
8039
- return _ref17 => {
8040
  let {
8041
  select,
8042
  dispatch
8043
- } = _ref17;
8044
 
8045
  if (!clientIds || !clientIds.length) {
8046
  return;
@@ -8078,11 +8083,11 @@ const duplicateBlocks = function (clientIds) {
8078
  * @param {string} clientId
8079
  */
8080
 
8081
- const insertBeforeBlock = clientId => _ref18 => {
8082
  let {
8083
  select,
8084
  dispatch
8085
- } = _ref18;
8086
 
8087
  if (!clientId) {
8088
  return;
@@ -8104,11 +8109,11 @@ const insertBeforeBlock = clientId => _ref18 => {
8104
  * @param {string} clientId
8105
  */
8106
 
8107
- const insertAfterBlock = clientId => _ref19 => {
8108
  let {
8109
  select,
8110
  dispatch
8111
- } = _ref19;
8112
 
8113
  if (!clientId) {
8114
  return;
@@ -8144,10 +8149,10 @@ function toggleBlockHighlight(clientId, isHighlighted) {
8144
  * @param {string} clientId Target block client ID.
8145
  */
8146
 
8147
- const flashBlock = clientId => async _ref20 => {
8148
  let {
8149
  dispatch
8150
- } = _ref20;
8151
  dispatch(toggleBlockHighlight(clientId, true));
8152
  await new Promise(resolve => setTimeout(resolve, 150));
8153
  dispatch(toggleBlockHighlight(clientId, false));
@@ -8166,10 +8171,10 @@ function setHasControlledInnerBlocks(clientId, hasControlledInnerBlocks) {
8166
  clientId
8167
  };
8168
  }
8169
- //# sourceMappingURL=actions.js.map
8170
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/constants.js
8171
  const STORE_NAME = 'core/block-editor';
8172
- //# sourceMappingURL=constants.js.map
8173
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/index.js
8174
  /**
8175
  * WordPress dependencies
@@ -8194,8 +8199,7 @@ const STORE_NAME = 'core/block-editor';
8194
  const storeConfig = {
8195
  reducer: reducer,
8196
  selectors: selectors_namespaceObject,
8197
- actions: actions_namespaceObject,
8198
- __experimentalUseThunks: true
8199
  };
8200
  /**
8201
  * Store definition for the block editor namespace.
@@ -8212,7 +8216,7 @@ const store = (0,external_wp_data_namespaceObject.createReduxStore)(STORE_NAME,
8212
  (0,external_wp_data_namespaceObject.registerStore)(STORE_NAME, { ...storeConfig,
8213
  persist: ['preferences']
8214
  });
8215
- //# sourceMappingURL=index.js.map
8216
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/context.js
8217
  /**
8218
  * WordPress dependencies
@@ -8236,7 +8240,7 @@ const {
8236
  function useBlockEditContext() {
8237
  return (0,external_wp_element_namespaceObject.useContext)(Context);
8238
  }
8239
- //# sourceMappingURL=context.js.map
8240
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-display-block-controls/index.js
8241
  /**
8242
  * WordPress dependencies
@@ -8272,7 +8276,7 @@ function useDisplayBlockControls() {
8272
  return false;
8273
  }, [clientId, isSelected, name]);
8274
  }
8275
- //# sourceMappingURL=index.js.map
8276
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/hook.js
8277
  /**
8278
  * WordPress dependencies
@@ -8315,7 +8319,7 @@ function useBlockControlsFill(group, shareWithChildBlocks) {
8315
 
8316
  return null;
8317
  }
8318
- //# sourceMappingURL=hook.js.map
8319
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/fill.js
8320
 
8321
 
@@ -8360,7 +8364,7 @@ function BlockControlsFill(_ref) {
8360
  }), children);
8361
  }));
8362
  }
8363
- //# sourceMappingURL=fill.js.map
8364
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/slot.js
8365
 
8366
 
@@ -8401,7 +8405,7 @@ function BlockControlsSlot(_ref) {
8401
  fillProps: accessibleToolbarState
8402
  })));
8403
  }
8404
- //# sourceMappingURL=slot.js.map
8405
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/index.js
8406
 
8407
 
@@ -8427,7 +8431,7 @@ BlockFormatControls.Slot = props => {
8427
  };
8428
 
8429
  /* harmony default export */ var block_controls = (BlockControls);
8430
- //# sourceMappingURL=index.js.map
8431
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-none.js
8432
 
8433
 
@@ -8442,7 +8446,7 @@ const alignNone = (0,external_wp_element_namespaceObject.createElement)(external
8442
  d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
8443
  }));
8444
  /* harmony default export */ var align_none = (alignNone);
8445
- //# sourceMappingURL=align-none.js.map
8446
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-left.js
8447
 
8448
 
@@ -8457,7 +8461,7 @@ const positionLeft = (0,external_wp_element_namespaceObject.createElement)(exter
8457
  d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"
8458
  }));
8459
  /* harmony default export */ var position_left = (positionLeft);
8460
- //# sourceMappingURL=position-left.js.map
8461
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
8462
 
8463
 
@@ -8472,7 +8476,7 @@ const positionCenter = (0,external_wp_element_namespaceObject.createElement)(ext
8472
  d: "M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"
8473
  }));
8474
  /* harmony default export */ var position_center = (positionCenter);
8475
- //# sourceMappingURL=position-center.js.map
8476
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
8477
 
8478
 
@@ -8487,7 +8491,7 @@ const positionRight = (0,external_wp_element_namespaceObject.createElement)(exte
8487
  d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"
8488
  }));
8489
  /* harmony default export */ var position_right = (positionRight);
8490
- //# sourceMappingURL=position-right.js.map
8491
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
8492
 
8493
 
@@ -8502,7 +8506,7 @@ const stretchWide = (0,external_wp_element_namespaceObject.createElement)(extern
8502
  d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
8503
  }));
8504
  /* harmony default export */ var stretch_wide = (stretchWide);
8505
- //# sourceMappingURL=stretch-wide.js.map
8506
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
8507
 
8508
 
@@ -8517,7 +8521,7 @@ const stretchFullWidth = (0,external_wp_element_namespaceObject.createElement)(e
8517
  d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"
8518
  }));
8519
  /* harmony default export */ var stretch_full_width = (stretchFullWidth);
8520
- //# sourceMappingURL=stretch-full-width.js.map
8521
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-left.js
8522
 
8523
 
@@ -8532,7 +8536,7 @@ const justifyLeft = (0,external_wp_element_namespaceObject.createElement)(extern
8532
  d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
8533
  }));
8534
  /* harmony default export */ var justify_left = (justifyLeft);
8535
- //# sourceMappingURL=justify-left.js.map
8536
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-center.js
8537
 
8538
 
@@ -8547,7 +8551,7 @@ const justifyCenter = (0,external_wp_element_namespaceObject.createElement)(exte
8547
  d: "M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"
8548
  }));
8549
  /* harmony default export */ var justify_center = (justifyCenter);
8550
- //# sourceMappingURL=justify-center.js.map
8551
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-right.js
8552
 
8553
 
@@ -8562,7 +8566,7 @@ const justifyRight = (0,external_wp_element_namespaceObject.createElement)(exter
8562
  d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
8563
  }));
8564
  /* harmony default export */ var justify_right = (justifyRight);
8565
- //# sourceMappingURL=justify-right.js.map
8566
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-space-between.js
8567
 
8568
 
@@ -8577,7 +8581,7 @@ const justifySpaceBetween = (0,external_wp_element_namespaceObject.createElement
8577
  d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
8578
  }));
8579
  /* harmony default export */ var justify_space_between = (justifySpaceBetween);
8580
- //# sourceMappingURL=justify-space-between.js.map
8581
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-right.js
8582
 
8583
 
@@ -8592,7 +8596,7 @@ const arrowRight = (0,external_wp_element_namespaceObject.createElement)(externa
8592
  d: "M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"
8593
  }));
8594
  /* harmony default export */ var arrow_right = (arrowRight);
8595
- //# sourceMappingURL=arrow-right.js.map
8596
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-down.js
8597
 
8598
 
@@ -8607,7 +8611,7 @@ const arrowDown = (0,external_wp_element_namespaceObject.createElement)(external
8607
  d: "M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"
8608
  }));
8609
  /* harmony default export */ var arrow_down = (arrowDown);
8610
- //# sourceMappingURL=arrow-down.js.map
8611
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
8612
  /**
8613
  * Utility to generate the proper CSS selector for layout styles.
@@ -8626,7 +8630,7 @@ function appendSelectors(selectors) {
8626
  // When the post editor is fully iframed, this extra classname could be removed.
8627
  return selectors.split(',').map(subselector => `.editor-styles-wrapper ${subselector} ${append}`).join(',');
8628
  }
8629
- //# sourceMappingURL=utils.js.map
8630
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
8631
  /**
8632
  * External dependencies
@@ -8764,7 +8768,7 @@ function useSetting(path) {
8764
  }, [blockName, path]);
8765
  return setting;
8766
  }
8767
- //# sourceMappingURL=index.js.map
8768
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/ui.js
8769
 
8770
 
@@ -8842,7 +8846,7 @@ function JustifyContentUI(_ref) {
8842
  }
8843
 
8844
  /* harmony default export */ var ui = (JustifyContentUI);
8845
- //# sourceMappingURL=ui.js.map
8846
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/index.js
8847
 
8848
 
@@ -8861,7 +8865,7 @@ function JustifyToolbar(props) {
8861
  isToolbar: true
8862
  }));
8863
  }
8864
- //# sourceMappingURL=index.js.map
8865
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flex.js
8866
 
8867
 
@@ -9107,7 +9111,7 @@ function OrientationControl(_ref7) {
9107
  })
9108
  }));
9109
  }
9110
- //# sourceMappingURL=flex.js.map
9111
  ;// CONCATENATED MODULE: ./packages/icons/build-module/icon/index.js
9112
  /**
9113
  * WordPress dependencies
@@ -9139,7 +9143,7 @@ function Icon(_ref) {
9139
  }
9140
 
9141
  /* harmony default export */ var build_module_icon = (Icon);
9142
- //# sourceMappingURL=index.js.map
9143
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flow.js
9144
 
9145
 
@@ -9238,29 +9242,31 @@ function Icon(_ref) {
9238
  const hasBlockGapStylesSupport = blockGapSupport !== null;
9239
  const blockGapValue = (_style$spacing$blockG = style === null || style === void 0 ? void 0 : (_style$spacing = style.spacing) === null || _style$spacing === void 0 ? void 0 : _style$spacing.blockGap) !== null && _style$spacing$blockG !== void 0 ? _style$spacing$blockG : 'var( --wp--style--block-gap )';
9240
  let output = !!contentSize || !!wideSize ? `
9241
- ${appendSelectors(selector, '> *')} {
9242
  max-width: ${contentSize !== null && contentSize !== void 0 ? contentSize : wideSize};
9243
  margin-left: auto !important;
9244
  margin-right: auto !important;
9245
  }
9246
 
9247
- ${appendSelectors(selector, '> [data-align="wide"]')} {
9248
  max-width: ${wideSize !== null && wideSize !== void 0 ? wideSize : contentSize};
9249
  }
9250
 
9251
- ${appendSelectors(selector, '> [data-align="full"]')} {
9252
  max-width: none;
9253
  }
9254
  ` : '';
9255
  output += `
9256
- ${appendSelectors(selector, '> [data-align="left"]')} {
9257
  float: left;
9258
  margin-right: 2em;
 
9259
  }
9260
 
9261
- ${appendSelectors(selector, '> [data-align="right"]')} {
9262
  float: right;
9263
  margin-left: 2em;
 
9264
  }
9265
 
9266
  `;
@@ -9366,7 +9372,7 @@ function getAlignmentsInfo(layout) {
9366
 
9367
  return alignmentInfo;
9368
  }
9369
- //# sourceMappingURL=flow.js.map
9370
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/index.js
9371
  /**
9372
  * Internal dependencies
@@ -9394,7 +9400,7 @@ function getLayoutType() {
9394
  function getLayoutTypes() {
9395
  return layoutTypes;
9396
  }
9397
- //# sourceMappingURL=index.js.map
9398
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/layout.js
9399
 
9400
 
@@ -9439,7 +9445,7 @@ function LayoutStyle(_ref) {
9439
 
9440
  return null;
9441
  }
9442
- //# sourceMappingURL=layout.js.map
9443
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/use-available-alignments.js
9444
  /**
9445
  * WordPress dependencies
@@ -9515,7 +9521,7 @@ function useAvailableAlignments() {
9515
 
9516
  return enabledControls;
9517
  }
9518
- //# sourceMappingURL=use-available-alignments.js.map
9519
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/ui.js
9520
 
9521
 
@@ -9650,7 +9656,7 @@ function BlockAlignmentUI(_ref) {
9650
  }
9651
 
9652
  /* harmony default export */ var block_alignment_control_ui = (BlockAlignmentUI);
9653
- //# sourceMappingURL=ui.js.map
9654
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/index.js
9655
 
9656
 
@@ -9669,7 +9675,7 @@ function BlockAlignmentToolbar(props) {
9669
  isToolbar: true
9670
  }));
9671
  }
9672
- //# sourceMappingURL=index.js.map
9673
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/align.js
9674
 
9675
 
@@ -9890,7 +9896,7 @@ function addAssignedAlign(props, blockType, attributes) {
9890
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/align/with-data-align', withDataAlign);
9891
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls);
9892
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign);
9893
- //# sourceMappingURL=align.js.map
9894
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/lock.js
9895
  /**
9896
  * External dependencies
@@ -9924,7 +9930,7 @@ function lock_addAttribute(settings) {
9924
  return settings;
9925
  }
9926
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/lock/addAttribute', lock_addAttribute);
9927
- //# sourceMappingURL=lock.js.map
9928
  ;// CONCATENATED MODULE: external ["wp","warning"]
9929
  var external_wp_warning_namespaceObject = window["wp"]["warning"];
9930
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/groups.js
@@ -9947,7 +9953,7 @@ const groups_groups = {
9947
  typography: InspectorControlsTypography
9948
  };
9949
  /* harmony default export */ var inspector_controls_groups = (groups_groups);
9950
- //# sourceMappingURL=groups.js.map
9951
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/fill.js
9952
 
9953
 
@@ -9999,7 +10005,7 @@ function InspectorControlsFill(_ref) {
9999
  }, children);
10000
  }));
10001
  }
10002
- //# sourceMappingURL=fill.js.map
10003
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/utils.js
10004
  /**
10005
  * External dependencies
@@ -10071,7 +10077,7 @@ function transformStyles(activeSupports, migrationPaths, result, source, index,
10071
  });
10072
  return returnBlock;
10073
  }
10074
- //# sourceMappingURL=utils.js.map
10075
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/block-support-tools-panel.js
10076
 
10077
 
@@ -10140,7 +10146,7 @@ function BlockSupportToolsPanel(_ref) {
10140
  __experimentalLastVisibleItemClass: "last"
10141
  }, children);
10142
  }
10143
- //# sourceMappingURL=block-support-tools-panel.js.map
10144
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/block-support-slot-container.js
10145
 
10146
 
@@ -10161,7 +10167,7 @@ function BlockSupportSlotContainer(_ref) {
10161
  bubblesVirtually: true
10162
  }));
10163
  }
10164
- //# sourceMappingURL=block-support-slot-container.js.map
10165
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/slot.js
10166
 
10167
 
@@ -10213,7 +10219,7 @@ function InspectorControlsSlot(_ref) {
10213
  bubblesVirtually: true
10214
  }));
10215
  }
10216
- //# sourceMappingURL=slot.js.map
10217
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/index.js
10218
 
10219
 
@@ -10244,7 +10250,7 @@ InspectorAdvancedControls.slotName = 'InspectorAdvancedControls';
10244
  */
10245
 
10246
  /* harmony default export */ var inspector_controls = (InspectorControls);
10247
- //# sourceMappingURL=index.js.map
10248
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/anchor.js
10249
 
10250
 
@@ -10367,7 +10373,7 @@ function addSaveProps(extraProps, blockType, attributes) {
10367
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute);
10368
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/anchor/with-inspector-control', withInspectorControl);
10369
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps);
10370
- //# sourceMappingURL=anchor.js.map
10371
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/custom-class-name.js
10372
 
10373
 
@@ -10461,10 +10467,48 @@ function custom_class_name_addSaveProps(extraProps, blockType, attributes) {
10461
 
10462
  return extraProps;
10463
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10464
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/custom-class-name/attribute', custom_class_name_addAttribute);
10465
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/custom-class-name/with-inspector-control', custom_class_name_withInspectorControl);
10466
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/custom-class-name/save-props', custom_class_name_addSaveProps);
10467
- //# sourceMappingURL=custom-class-name.js.map
 
10468
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/generated-class-name.js
10469
  /**
10470
  * External dependencies
@@ -10504,7 +10548,116 @@ function addGeneratedClassName(extraProps, blockType) {
10504
  return extraProps;
10505
  }
10506
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
10507
- //# sourceMappingURL=generated-class-name.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10508
  ;// CONCATENATED MODULE: external ["wp","dom"]
10509
  var external_wp_dom_namespaceObject = window["wp"]["dom"];
10510
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
@@ -10550,7 +10703,7 @@ function BlockContextProvider(_ref) {
10550
  });
10551
  }
10552
  /* harmony default export */ var block_context = (block_context_Context);
10553
- //# sourceMappingURL=index.js.map
10554
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
10555
 
10556
 
@@ -10618,7 +10771,7 @@ const Edit = props => {
10618
  }));
10619
  };
10620
  /* harmony default export */ var edit = ((0,external_wp_components_namespaceObject.withFilters)('editor.BlockEdit')(Edit));
10621
- //# sourceMappingURL=edit.js.map
10622
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/index.js
10623
 
10624
 
@@ -10660,7 +10813,7 @@ function BlockEdit(props) {
10660
  value: (0,external_wp_element_namespaceObject.useMemo)(() => context, Object.values(context))
10661
  }, (0,external_wp_element_namespaceObject.createElement)(edit, props));
10662
  }
10663
- //# sourceMappingURL=index.js.map
10664
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-horizontal.js
10665
 
10666
 
@@ -10675,7 +10828,7 @@ const moreHorizontal = (0,external_wp_element_namespaceObject.createElement)(ext
10675
  d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"
10676
  }));
10677
  /* harmony default export */ var more_horizontal = (moreHorizontal);
10678
- //# sourceMappingURL=more-horizontal.js.map
10679
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/warning/index.js
10680
 
10681
 
@@ -10730,9 +10883,9 @@ function Warning(_ref) {
10730
 
10731
 
10732
  /* harmony default export */ var warning = (Warning);
10733
- //# sourceMappingURL=index.js.map
10734
  // EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
10735
- var character = __webpack_require__(7630);
10736
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/block-view.js
10737
 
10738
 
@@ -10769,7 +10922,7 @@ function BlockView(_ref) {
10769
  onClick: action
10770
  }, actionText)));
10771
  }
10772
- //# sourceMappingURL=block-view.js.map
10773
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/index.js
10774
 
10775
 
@@ -10846,7 +10999,7 @@ function BlockCompare(_ref) {
10846
  }
10847
 
10848
  /* harmony default export */ var block_compare = (BlockCompare);
10849
- //# sourceMappingURL=index.js.map
10850
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-invalid-warning.js
10851
 
10852
 
@@ -10965,7 +11118,7 @@ const recoverBlock = _ref2 => {
10965
 
10966
  };
10967
  })])(BlockInvalidWarning));
10968
- //# sourceMappingURL=block-invalid-warning.js.map
10969
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-warning.js
10970
 
10971
 
@@ -10982,7 +11135,7 @@ const block_crash_warning_warning = (0,external_wp_element_namespaceObject.creat
10982
  className: "block-editor-block-list__block-crash-warning"
10983
  }, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
10984
  /* harmony default export */ var block_crash_warning = (() => block_crash_warning_warning);
10985
- //# sourceMappingURL=block-crash-warning.js.map
10986
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-boundary.js
10987
  /**
10988
  * WordPress dependencies
@@ -11014,9 +11167,9 @@ class BlockCrashBoundary extends external_wp_element_namespaceObject.Component {
11014
  }
11015
 
11016
  /* harmony default export */ var block_crash_boundary = (BlockCrashBoundary);
11017
- //# sourceMappingURL=block-crash-boundary.js.map
11018
  // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
11019
- var lib = __webpack_require__(4042);
11020
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-html.js
11021
 
11022
 
@@ -11083,7 +11236,7 @@ function BlockHTML(_ref) {
11083
  }
11084
 
11085
  /* harmony default export */ var block_html = (BlockHTML);
11086
- //# sourceMappingURL=block-html.js.map
11087
  ;// CONCATENATED MODULE: ./node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
11088
  let updateQueue = makeQueue();
11089
  const raf = fn => schedule(fn, updateQueue);
@@ -15261,7 +15414,7 @@ function useMovingAnimation(_ref) {
15261
  }
15262
 
15263
  /* harmony default export */ var use_moving_animation = (useMovingAnimation);
15264
- //# sourceMappingURL=index.js.map
15265
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/dom.js
15266
  const BLOCK_SELECTOR = '.block-editor-block-list__block';
15267
  const APPENDER_SELECTOR = '.block-list-appender';
@@ -15321,7 +15474,200 @@ function getBlockClientId(node) {
15321
 
15322
  return blockNode.id.slice('block-'.length);
15323
  }
15324
- //# sourceMappingURL=dom.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15325
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-focus-first-element.js
15326
  /**
15327
  * External dependencies
@@ -15340,6 +15686,7 @@ function getBlockClientId(node) {
15340
 
15341
 
15342
 
 
15343
  /** @typedef {import('@wordpress/element').RefObject} RefObject */
15344
 
15345
  /**
@@ -15414,11 +15761,12 @@ function useFocusFirstElement(clientId) {
15414
  return;
15415
  }
15416
 
 
15417
  (0,external_wp_dom_namespaceObject.placeCaretAtHorizontalEdge)(target, isReverse);
15418
  }, [initialPosition]);
15419
  return ref;
15420
  }
15421
- //# sourceMappingURL=use-focus-first-element.js.map
15422
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-is-hovered.js
15423
  /**
15424
  * WordPress dependencies
@@ -15467,7 +15815,7 @@ function useIsHovered() {
15467
  }
15468
  }, [isEnabled]);
15469
  }
15470
- //# sourceMappingURL=use-is-hovered.js.map
15471
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-class-names.js
15472
  /**
15473
  * External dependencies
@@ -15530,7 +15878,7 @@ function useBlockClassNames(clientId) {
15530
  });
15531
  }, [clientId]);
15532
  }
15533
- //# sourceMappingURL=use-block-class-names.js.map
15534
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-default-class-name.js
15535
  /**
15536
  * WordPress dependencies
@@ -15564,7 +15912,7 @@ function useBlockDefaultClassName(clientId) {
15564
  return (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(name);
15565
  }, [clientId]);
15566
  }
15567
- //# sourceMappingURL=use-block-default-class-name.js.map
15568
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-custom-class-name.js
15569
  /**
15570
  * WordPress dependencies
@@ -15609,7 +15957,7 @@ function useBlockCustomClassName(clientId) {
15609
  return attributes.className;
15610
  }, [clientId]);
15611
  }
15612
- //# sourceMappingURL=use-block-custom-class-name.js.map
15613
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-moving-mode-class-names.js
15614
  /**
15615
  * External dependencies
@@ -15659,7 +16007,7 @@ function useBlockMovingModeClassNames(clientId) {
15659
  });
15660
  }, [clientId]);
15661
  }
15662
- //# sourceMappingURL=use-block-moving-mode-class-names.js.map
15663
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-focus-handler.js
15664
  /**
15665
  * WordPress dependencies
@@ -15722,7 +16070,7 @@ function useFocusHandler(clientId) {
15722
  };
15723
  }, [isBlockSelected, selectBlock]);
15724
  }
15725
- //# sourceMappingURL=use-focus-handler.js.map
15726
  ;// CONCATENATED MODULE: external ["wp","keycodes"]
15727
  var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
15728
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js
@@ -15814,7 +16162,7 @@ function useEventHandlers(clientId) {
15814
  };
15815
  }, [clientId, isSelected, getBlockRootClientId, getBlockIndex, insertDefaultBlock, removeBlock]);
15816
  }
15817
- //# sourceMappingURL=use-selected-block-event-handlers.js.map
15818
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-nav-mode-exit.js
15819
  /**
15820
  * WordPress dependencies
@@ -15863,9 +16211,9 @@ function useNavModeExit(clientId) {
15863
  };
15864
  }, [clientId, isNavigationMode, isBlockSelected, setNavigationMode]);
15865
  }
15866
- //# sourceMappingURL=use-nav-mode-exit.js.map
15867
  // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
15868
- var dom_scroll_into_view_lib = __webpack_require__(4979);
15869
  var lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib);
15870
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-scroll-into-view.js
15871
  /**
@@ -15930,7 +16278,7 @@ function useScrollIntoView(clientId) {
15930
  }, [isSelectionEnd]);
15931
  return ref;
15932
  }
15933
- //# sourceMappingURL=use-scroll-into-view.js.map
15934
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/block-refs-provider.js
15935
 
15936
 
@@ -15954,7 +16302,7 @@ function BlockRefsProvider(_ref) {
15954
  value: value
15955
  }, children);
15956
  }
15957
- //# sourceMappingURL=block-refs-provider.js.map
15958
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
15959
  /**
15960
  * WordPress dependencies
@@ -16065,205 +16413,7 @@ function useBlockElement(clientId) {
16065
 
16066
 
16067
 
16068
- //# sourceMappingURL=use-block-refs.js.map
16069
- ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-multi-selection.js
16070
- /**
16071
- * WordPress dependencies
16072
- */
16073
-
16074
-
16075
- /**
16076
- * Internal dependencies
16077
- */
16078
 
16079
-
16080
-
16081
-
16082
- function toggleRichText(container, toggle) {
16083
- Array.from(container.closest('.is-root-container').querySelectorAll('.rich-text')).forEach(node => {
16084
- if (toggle) {
16085
- node.setAttribute('contenteditable', true);
16086
- } else {
16087
- node.removeAttribute('contenteditable');
16088
- }
16089
- });
16090
- }
16091
- /**
16092
- * Sets a multi-selection based on the native selection across blocks.
16093
- *
16094
- * @param {string} clientId Block client ID.
16095
- */
16096
-
16097
-
16098
- function useMultiSelection(clientId) {
16099
- const {
16100
- startMultiSelect,
16101
- stopMultiSelect,
16102
- multiSelect,
16103
- selectBlock
16104
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
16105
- const {
16106
- isSelectionEnabled,
16107
- isBlockSelected,
16108
- getBlockParents,
16109
- getBlockSelectionStart,
16110
- hasMultiSelection
16111
- } = (0,external_wp_data_namespaceObject.useSelect)(store);
16112
- return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
16113
- const {
16114
- ownerDocument
16115
- } = node;
16116
- const {
16117
- defaultView
16118
- } = ownerDocument;
16119
- let anchorElement;
16120
- let rafId;
16121
-
16122
- function onSelectionChange(_ref) {
16123
- let {
16124
- isSelectionEnd
16125
- } = _ref;
16126
- const selection = defaultView.getSelection(); // If no selection is found, end multi selection and enable all rich
16127
- // text areas.
16128
-
16129
- if (!selection.rangeCount || selection.isCollapsed) {
16130
- toggleRichText(node, true);
16131
- return;
16132
- }
16133
-
16134
- const endClientId = getBlockClientId(selection.focusNode);
16135
- const isSingularSelection = clientId === endClientId;
16136
-
16137
- if (isSingularSelection) {
16138
- selectBlock(clientId); // If the selection is complete (on mouse up), and no
16139
- // multiple blocks have been selected, set focus back to the
16140
- // anchor element. if the anchor element contains the
16141
- // selection. Additionally, rich text elements that were
16142
- // previously disabled can now be enabled again.
16143
-
16144
- if (isSelectionEnd) {
16145
- toggleRichText(node, true);
16146
-
16147
- if (selection.rangeCount) {
16148
- const {
16149
- commonAncestorContainer
16150
- } = selection.getRangeAt(0);
16151
-
16152
- if (anchorElement.contains(commonAncestorContainer)) {
16153
- anchorElement.focus();
16154
- }
16155
- }
16156
- }
16157
- } else {
16158
- const startPath = [...getBlockParents(clientId), clientId];
16159
- const endPath = [...getBlockParents(endClientId), endClientId];
16160
- const depth = Math.min(startPath.length, endPath.length) - 1;
16161
- multiSelect(startPath[depth], endPath[depth]);
16162
- }
16163
- }
16164
-
16165
- function onSelectionEnd() {
16166
- ownerDocument.removeEventListener('selectionchange', onSelectionChange); // Equivalent to attaching the listener once.
16167
-
16168
- defaultView.removeEventListener('mouseup', onSelectionEnd); // The browser selection won't have updated yet at this point,
16169
- // so wait until the next animation frame to get the browser
16170
- // selection.
16171
-
16172
- rafId = defaultView.requestAnimationFrame(() => {
16173
- onSelectionChange({
16174
- isSelectionEnd: true
16175
- });
16176
- stopMultiSelect();
16177
- });
16178
- }
16179
-
16180
- function onMouseLeave(_ref2) {
16181
- let {
16182
- buttons
16183
- } = _ref2;
16184
-
16185
- // The primary button must be pressed to initiate selection.
16186
- // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
16187
- if (buttons !== 1) {
16188
- return;
16189
- }
16190
-
16191
- if (!isSelectionEnabled() || !isBlockSelected(clientId)) {
16192
- return;
16193
- }
16194
-
16195
- anchorElement = ownerDocument.activeElement;
16196
- startMultiSelect(); // `onSelectionStart` is called after `mousedown` and
16197
- // `mouseleave` (from a block). The selection ends when
16198
- // `mouseup` happens anywhere in the window.
16199
-
16200
- ownerDocument.addEventListener('selectionchange', onSelectionChange);
16201
- defaultView.addEventListener('mouseup', onSelectionEnd); // Removing the contenteditable attributes within the block
16202
- // editor is essential for selection to work across editable
16203
- // areas. The edible hosts are removed, allowing selection to be
16204
- // extended outside the DOM element. `startMultiSelect` sets a
16205
- // flag in the store so the rich text components are updated,
16206
- // but the rerender may happen very slowly, especially in Safari
16207
- // for the blocks that are asynchonously rendered. To ensure the
16208
- // browser instantly removes the selection boundaries, we remove
16209
- // the contenteditable attributes manually.
16210
-
16211
- toggleRichText(node, false);
16212
- }
16213
-
16214
- function onMouseDown(event) {
16215
- // The main button.
16216
- // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
16217
- if (!isSelectionEnabled() || event.button !== 0) {
16218
- return;
16219
- }
16220
-
16221
- if (event.shiftKey) {
16222
- const blockSelectionStart = getBlockSelectionStart(); // By checking `blockSelectionStart` to be set, we handle the
16223
- // case where we select a single block. We also have to check
16224
- // the selectionEnd (clientId) not to be included in the
16225
- // `blockSelectionStart`'s parents because the click event is
16226
- // propagated.
16227
-
16228
- const startParents = getBlockParents(blockSelectionStart);
16229
-
16230
- if (blockSelectionStart && blockSelectionStart !== clientId && !(startParents !== null && startParents !== void 0 && startParents.includes(clientId))) {
16231
- const startPath = [...startParents, blockSelectionStart];
16232
- const endPath = [...getBlockParents(clientId), clientId];
16233
- const depth = Math.min(startPath.length, endPath.length) - 1;
16234
- const start = startPath[depth];
16235
- const end = endPath[depth]; // Handle the case of having selected a parent block and
16236
- // then sfift+click on a child.
16237
-
16238
- if (start !== end) {
16239
- toggleRichText(node, false);
16240
- multiSelect(start, end);
16241
- event.preventDefault();
16242
- }
16243
- }
16244
- } else if (hasMultiSelection()) {
16245
- // Allow user to escape out of a multi-selection to a
16246
- // singular selection of a block via click. This is handled
16247
- // here since focus handling excludes blocks when there is
16248
- // multiselection, as focus can be incurred by starting a
16249
- // multiselection (focus moved to first block's multi-
16250
- // controls).
16251
- selectBlock(clientId);
16252
- }
16253
- }
16254
-
16255
- node.addEventListener('mousedown', onMouseDown);
16256
- node.addEventListener('mouseleave', onMouseLeave);
16257
- return () => {
16258
- node.removeEventListener('mousedown', onMouseDown);
16259
- node.removeEventListener('mouseleave', onMouseLeave);
16260
- ownerDocument.removeEventListener('selectionchange', onSelectionChange);
16261
- defaultView.removeEventListener('mouseup', onSelectionEnd);
16262
- defaultView.cancelAnimationFrame(rafId);
16263
- };
16264
- }, [clientId, startMultiSelect, stopMultiSelect, multiSelect, selectBlock, isSelectionEnabled, isBlockSelected, getBlockParents]);
16265
- }
16266
- //# sourceMappingURL=use-multi-selection.js.map
16267
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-intersection-observer.js
16268
  /**
16269
  * WordPress dependencies
@@ -16286,7 +16436,7 @@ function useIntersectionObserver() {
16286
  }
16287
  }, [observer]);
16288
  }
16289
- //# sourceMappingURL=use-intersection-observer.js.map
16290
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/index.js
16291
  /**
16292
  * External dependencies
@@ -16435,7 +16585,7 @@ function useBlockProps() {
16435
  */
16436
 
16437
  useBlockProps.save = external_wp_blocks_namespaceObject.__unstableGetBlockProps;
16438
- //# sourceMappingURL=index.js.map
16439
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block.js
16440
 
16441
 
@@ -16505,6 +16655,8 @@ function Block(_ref) {
16505
  }
16506
 
16507
  function BlockListBlock(_ref2) {
 
 
16508
  let {
16509
  mode,
16510
  isLocked,
@@ -16523,6 +16675,12 @@ function BlockListBlock(_ref2) {
16523
  onMerge,
16524
  toggleSelection
16525
  } = _ref2;
 
 
 
 
 
 
16526
  const {
16527
  removeBlock
16528
  } = (0,external_wp_data_namespaceObject.useDispatch)(store);
@@ -16550,8 +16708,14 @@ function BlockListBlock(_ref2) {
16550
  wrapperProps = mergeWrapperProps(wrapperProps, blockType.getEditWrapperProps(attributes));
16551
  }
16552
 
16553
- const isAligned = wrapperProps && !!wrapperProps['data-align']; // For aligned blocks, provide a wrapper element so the block can be
16554
  // positioned relative to the block column.
 
 
 
 
 
 
16555
 
16556
  if (isAligned) {
16557
  blockEdit = (0,external_wp_element_namespaceObject.createElement)("div", {
@@ -16589,7 +16753,7 @@ function BlockListBlock(_ref2) {
16589
 
16590
  const value = {
16591
  clientId,
16592
- className,
16593
  wrapperProps: (0,external_lodash_namespaceObject.omit)(wrapperProps, ['data-align']),
16594
  isAligned
16595
  };
@@ -16745,7 +16909,7 @@ const applyWithDispatch = (0,external_wp_data_namespaceObject.withDispatch)((dis
16745
  } = _ref5;
16746
  return !!block;
16747
  }), (0,external_wp_components_namespaceObject.withFilters)('editor.BlockListBlock'))(BlockListBlock));
16748
- //# sourceMappingURL=block.js.map
16749
  ;// CONCATENATED MODULE: external ["wp","htmlEntities"]
16750
  var external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
16751
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/plus.js
@@ -16762,7 +16926,7 @@ const plus = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
16762
  d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
16763
  }));
16764
  /* harmony default export */ var library_plus = (plus);
16765
- //# sourceMappingURL=plus.js.map
16766
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
16767
 
16768
 
@@ -16788,7 +16952,7 @@ function Tips() {
16788
  }
16789
 
16790
  /* harmony default export */ var tips = (Tips);
16791
- //# sourceMappingURL=tips.js.map
16792
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
16793
 
16794
 
@@ -16803,7 +16967,7 @@ const blockDefault = (0,external_wp_element_namespaceObject.createElement)(exter
16803
  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"
16804
  }));
16805
  /* harmony default export */ var block_default = (blockDefault);
16806
- //# sourceMappingURL=block-default.js.map
16807
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
16808
 
16809
 
@@ -16850,7 +17014,7 @@ function BlockIcon(_ref) {
16850
  }
16851
 
16852
  /* harmony default export */ var block_icon = ((0,external_wp_element_namespaceObject.memo)(BlockIcon));
16853
- //# sourceMappingURL=index.js.map
16854
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-card/index.js
16855
 
16856
 
@@ -16899,7 +17063,7 @@ function BlockCard(_ref) {
16899
  }
16900
 
16901
  /* harmony default export */ var block_card = (BlockCard);
16902
- //# sourceMappingURL=index.js.map
16903
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
16904
 
16905
 
@@ -16949,7 +17113,7 @@ const withRegistryProvider = (0,external_wp_compose_namespaceObject.createHigher
16949
  });
16950
  }, 'withRegistryProvider');
16951
  /* harmony default export */ var with_registry_provider = (withRegistryProvider);
16952
- //# sourceMappingURL=with-registry-provider.js.map
16953
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
16954
  /**
16955
  * External dependencies
@@ -17199,7 +17363,7 @@ function useBlockSync(_ref) {
17199
  return () => unsubscribe();
17200
  }, [registry, clientId]);
17201
  }
17202
- //# sourceMappingURL=use-block-sync.js.map
17203
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/index.js
17204
 
17205
 
@@ -17235,7 +17399,7 @@ function BlockEditorProvider(props) {
17235
  }
17236
 
17237
  /* harmony default export */ var provider = (with_registry_provider(BlockEditorProvider));
17238
- //# sourceMappingURL=index.js.map
17239
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
17240
 
17241
 
@@ -17259,7 +17423,7 @@ function LiveBlockPreview(_ref) {
17259
  onKeyPress: onClick
17260
  }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_wp_element_namespaceObject.createElement)(BlockList, null)));
17261
  }
17262
- //# sourceMappingURL=live.js.map
17263
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
17264
 
17265
 
@@ -17315,7 +17479,7 @@ function BlockSelectionClearer(props) {
17315
  ref: useBlockSelectionClearer()
17316
  }, props));
17317
  }
17318
- //# sourceMappingURL=index.js.map
17319
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-multi-selection.js
17320
  /**
17321
  * External dependencies
@@ -17333,16 +17497,6 @@ function BlockSelectionClearer(props) {
17333
 
17334
 
17335
 
17336
- function use_multi_selection_toggleRichText(container, toggle) {
17337
- Array.from(container.querySelectorAll( // Exclude the Post Title from multi-select disable.
17338
- '.rich-text:not( .editor-post-title__input )')).forEach(node => {
17339
- if (toggle) {
17340
- node.setAttribute('contenteditable', true);
17341
- } else {
17342
- node.removeAttribute('contenteditable');
17343
- }
17344
- });
17345
- }
17346
  /**
17347
  * Returns for the deepest node at the start or end of a container node. Ignores
17348
  * any text nodes that only contain HTML formatting whitespace.
@@ -17371,18 +17525,21 @@ function selector(select) {
17371
  isMultiSelecting,
17372
  getMultiSelectedBlockClientIds,
17373
  hasMultiSelection,
17374
- getSelectedBlockClientId
 
17375
  } = select(store);
17376
  return {
17377
  isMultiSelecting: isMultiSelecting(),
17378
  multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(),
17379
  hasMultiSelection: hasMultiSelection(),
17380
- selectedBlockClientId: getSelectedBlockClientId()
 
17381
  };
17382
  }
17383
 
17384
  function use_multi_selection_useMultiSelection() {
17385
  const {
 
17386
  isMultiSelecting,
17387
  multiSelectedBlockClientIds,
17388
  hasMultiSelection,
@@ -17403,7 +17560,13 @@ function use_multi_selection_useMultiSelection() {
17403
  } = node;
17404
  const {
17405
  defaultView
17406
- } = ownerDocument;
 
 
 
 
 
 
17407
 
17408
  if (!hasMultiSelection || isMultiSelecting) {
17409
  if (!selectedBlockClientId || isMultiSelecting) {
@@ -17439,10 +17602,15 @@ function use_multi_selection_useMultiSelection() {
17439
 
17440
  if (!startRef.current || !endRef.current) {
17441
  return;
17442
- } // For some browsers, like Safari, it is important that focus happens
17443
- // BEFORE selection.
 
 
17444
 
17445
 
 
 
 
17446
  node.focus();
17447
  const selection = defaultView.getSelection();
17448
  const range = ownerDocument.createRange(); // These must be in the right DOM order.
@@ -17450,18 +17618,14 @@ function use_multi_selection_useMultiSelection() {
17450
  // and end at the deepest points.
17451
 
17452
  const startNode = getDeepestNode(startRef.current, 'start');
17453
- const endNode = getDeepestNode(endRef.current, 'end'); // While rich text will be disabled with a delay when there is a multi
17454
- // selection, we must do it immediately because it's not possible to set
17455
- // selection across editable hosts.
17456
-
17457
- use_multi_selection_toggleRichText(node, false);
17458
  range.setStartBefore(startNode);
17459
  range.setEndAfter(endNode);
17460
  selection.removeAllRanges();
17461
  selection.addRange(range);
17462
- }, [hasMultiSelection, isMultiSelecting, multiSelectedBlockClientIds, selectedBlockClientId]);
17463
  }
17464
- //# sourceMappingURL=use-multi-selection.js.map
17465
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-tab-nav.js
17466
 
17467
 
@@ -17656,7 +17820,7 @@ function useTabNav() {
17656
  const mergedRefs = (0,external_wp_compose_namespaceObject.useMergeRefs)([container, ref]);
17657
  return [before, mergedRefs, after];
17658
  }
17659
- //# sourceMappingURL=use-tab-nav.js.map
17660
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-arrow-nav.js
17661
  /**
17662
  * External dependencies
@@ -17932,7 +18096,7 @@ function useArrowNav() {
17932
  };
17933
  }, []);
17934
  }
17935
- //# sourceMappingURL=use-arrow-nav.js.map
17936
  ;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
17937
  var external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
17938
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-select-all.js
@@ -17969,11 +18133,12 @@ function useSelectAll() {
17969
  return;
17970
  }
17971
 
17972
- if (!(0,external_wp_dom_namespaceObject.isEntirelySelected)(event.target)) {
 
 
17973
  return;
17974
  }
17975
 
17976
- const selectedClientIds = getSelectedBlockClientIds();
17977
  const [firstSelectedClientId] = selectedClientIds;
17978
  const rootClientId = getBlockRootClientId(firstSelectedClientId);
17979
  let blockClientIds = getBlockOrder(rootClientId); // If we have selected all sibling nested blocks, try selecting up a
@@ -18000,7 +18165,7 @@ function useSelectAll() {
18000
  };
18001
  }, []);
18002
  }
18003
- //# sourceMappingURL=use-select-all.js.map
18004
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/index.js
18005
 
18006
 
@@ -18031,6 +18196,7 @@ function useWritingFlow() {
18031
  const hasMultiSelection = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).hasMultiSelection(), []);
18032
  return [before, (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, use_multi_selection_useMultiSelection(), useSelectAll(), useArrowNav(), (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
18033
  node.tabIndex = -1;
 
18034
 
18035
  if (!hasMultiSelection) {
18036
  return;
@@ -18064,7 +18230,7 @@ function WritingFlow(_ref, forwardedRef) {
18064
 
18065
 
18066
  /* harmony default export */ var writing_flow = ((0,external_wp_element_namespaceObject.forwardRef)(WritingFlow));
18067
- //# sourceMappingURL=index.js.map
18068
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/iframe/index.js
18069
 
18070
 
@@ -18343,7 +18509,7 @@ function Iframe(_ref3, ref) {
18343
  }
18344
 
18345
  /* harmony default export */ var iframe = ((0,external_wp_element_namespaceObject.forwardRef)(Iframe));
18346
- //# sourceMappingURL=index.js.map
18347
  ;// CONCATENATED MODULE: ./packages/block-editor/node_modules/colord/index.mjs
18348
  var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
18349
 
@@ -18354,7 +18520,7 @@ var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeo
18354
  var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
18355
 
18356
  // EXTERNAL MODULE: ./node_modules/traverse/index.js
18357
- var traverse = __webpack_require__(3692);
18358
  var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse);
18359
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/parse.js
18360
  /* eslint-disable @wordpress/no-unused-vars-before-return */
@@ -19049,9 +19215,9 @@ function addParent(obj, parent) {
19049
  return obj;
19050
  }
19051
  /* eslint-enable @wordpress/no-unused-vars-before-return */
19052
- //# sourceMappingURL=parse.js.map
19053
  // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js
19054
- var inherits_browser = __webpack_require__(5717);
19055
  var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser);
19056
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js
19057
  // Adapted from https://github.com/reworkcss/css
@@ -19103,7 +19269,7 @@ Compiler.prototype.mapVisit = function (nodes, delim) {
19103
 
19104
  return buf;
19105
  };
19106
- //# sourceMappingURL=compiler.js.map
19107
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compress.js
19108
  // Adapted from https://github.com/reworkcss/css
19109
  // because we needed to remove source map support.
@@ -19271,7 +19437,7 @@ compress_Compiler.prototype.rule = function (node) {
19271
  compress_Compiler.prototype.declaration = function (node) {
19272
  return this.emit(node.property + ':' + node.value, node.position) + this.emit(';');
19273
  };
19274
- //# sourceMappingURL=compress.js.map
19275
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/identity.js
19276
  /* eslint-disable @wordpress/no-unused-vars-before-return */
19277
  // Adapted from https://github.com/reworkcss/css
@@ -19469,7 +19635,7 @@ identity_Compiler.prototype.indent = function (level) {
19469
  return Array(this.level).join(this.indentation || ' ');
19470
  };
19471
  /* eslint-enable @wordpress/no-unused-vars-before-return */
19472
- //# sourceMappingURL=identity.js.map
19473
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/index.js
19474
  // Adapted from https://github.com/reworkcss/css
19475
  // because we needed to remove source map support.
@@ -19498,7 +19664,7 @@ identity_Compiler.prototype.indent = function (level) {
19498
  const code = compiler.compile(node);
19499
  return code;
19500
  }
19501
- //# sourceMappingURL=index.js.map
19502
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/traverse.js
19503
  /**
19504
  * External dependencies
@@ -19530,7 +19696,7 @@ function traverseCSS(css, callback) {
19530
  }
19531
 
19532
  /* harmony default export */ var transform_styles_traverse = (traverseCSS);
19533
- //# sourceMappingURL=traverse.js.map
19534
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
19535
  /**
19536
  * Return `true` if the given path is http/https.
@@ -19666,7 +19832,7 @@ const rewrite = rootURL => node => {
19666
  };
19667
 
19668
  /* harmony default export */ var url_rewrite = (rewrite);
19669
- //# sourceMappingURL=url-rewrite.js.map
19670
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/wrap.js
19671
  /**
19672
  * @constant string IS_ROOT_TAG Regex to check if the selector is a root tag selector.
@@ -19718,7 +19884,7 @@ const wrap = function (namespace) {
19718
  };
19719
 
19720
  /* harmony default export */ var transforms_wrap = (wrap);
19721
- //# sourceMappingURL=wrap.js.map
19722
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/index.js
19723
  /**
19724
  * External dependencies
@@ -19770,7 +19936,7 @@ const transform_styles_transformStyles = function (styles) {
19770
  };
19771
 
19772
  /* harmony default export */ var transform_styles = (transform_styles_transformStyles);
19773
- //# sourceMappingURL=index.js.map
19774
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editor-styles/index.js
19775
 
19776
 
@@ -19843,7 +20009,7 @@ function EditorStyles(_ref) {
19843
  key: index
19844
  }, css)));
19845
  }
19846
- //# sourceMappingURL=index.js.map
19847
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/auto.js
19848
 
19849
 
@@ -19945,7 +20111,7 @@ function AutoBlockPreview(_ref) {
19945
  }
19946
 
19947
  /* harmony default export */ var auto = (AutoBlockPreview);
19948
- //# sourceMappingURL=auto.js.map
19949
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/index.js
19950
 
19951
 
@@ -20057,7 +20223,7 @@ function useBlockPreview(_ref2) {
20057
  children: blocks !== null && blocks !== void 0 && blocks.length ? children : null
20058
  };
20059
  }
20060
- //# sourceMappingURL=index.js.map
20061
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/preview-panel.js
20062
 
20063
 
@@ -20113,7 +20279,7 @@ function InserterPreviewPanel(_ref) {
20113
  }
20114
 
20115
  /* harmony default export */ var preview_panel = (InserterPreviewPanel);
20116
- //# sourceMappingURL=preview-panel.js.map
20117
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/context.js
20118
  /**
20119
  * WordPress dependencies
@@ -20121,7 +20287,7 @@ function InserterPreviewPanel(_ref) {
20121
 
20122
  const InserterListboxContext = (0,external_wp_element_namespaceObject.createContext)();
20123
  /* harmony default export */ var context = (InserterListboxContext);
20124
- //# sourceMappingURL=context.js.map
20125
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
20126
 
20127
 
@@ -20171,7 +20337,7 @@ function InserterListboxItem(_ref, ref) {
20171
  }
20172
 
20173
  /* harmony default export */ var inserter_listbox_item = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxItem));
20174
- //# sourceMappingURL=item.js.map
20175
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/drag-handle.js
20176
 
20177
 
@@ -20188,7 +20354,7 @@ const dragHandle = (0,external_wp_element_namespaceObject.createElement)(externa
20188
  d: "M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"
20189
  }));
20190
  /* harmony default export */ var drag_handle = (dragHandle);
20191
- //# sourceMappingURL=drag-handle.js.map
20192
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
20193
 
20194
 
@@ -20223,7 +20389,7 @@ function BlockDraggableChip(_ref) {
20223
  icon: drag_handle
20224
  })))));
20225
  }
20226
- //# sourceMappingURL=draggable-chip.js.map
20227
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-draggable-blocks/index.js
20228
 
20229
 
@@ -20269,7 +20435,7 @@ const InserterDraggableBlocks = _ref => {
20269
  };
20270
 
20271
  /* harmony default export */ var inserter_draggable_blocks = (InserterDraggableBlocks);
20272
- //# sourceMappingURL=index.js.map
20273
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
20274
 
20275
 
@@ -20404,7 +20570,7 @@ function InserterListItem(_ref) {
20404
  }
20405
 
20406
  /* harmony default export */ var inserter_list_item = ((0,external_wp_element_namespaceObject.memo)(InserterListItem));
20407
- //# sourceMappingURL=index.js.map
20408
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
20409
 
20410
 
@@ -20441,7 +20607,7 @@ function InserterListboxGroup(props, ref) {
20441
  }
20442
 
20443
  /* harmony default export */ var group = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxGroup));
20444
- //# sourceMappingURL=group.js.map
20445
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
20446
 
20447
 
@@ -20467,7 +20633,7 @@ function InserterListboxRow(props, ref) {
20467
  }
20468
 
20469
  /* harmony default export */ var inserter_listbox_row = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxRow));
20470
- //# sourceMappingURL=row.js.map
20471
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
20472
 
20473
 
@@ -20518,7 +20684,7 @@ function BlockTypesList(_ref) {
20518
  }
20519
 
20520
  /* harmony default export */ var block_types_list = (BlockTypesList);
20521
- //# sourceMappingURL=index.js.map
20522
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
20523
 
20524
 
@@ -20545,7 +20711,7 @@ function InserterPanel(_ref) {
20545
  }
20546
 
20547
  /* harmony default export */ var panel = (InserterPanel);
20548
- //# sourceMappingURL=panel.js.map
20549
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
20550
  /**
20551
  * WordPress dependencies
@@ -20598,7 +20764,7 @@ const useBlockTypesState = (rootClientId, onInsert) => {
20598
  };
20599
 
20600
  /* harmony default export */ var use_block_types_state = (useBlockTypesState);
20601
- //# sourceMappingURL=use-block-types-state.js.map
20602
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
20603
 
20604
 
@@ -20629,7 +20795,7 @@ function InserterListbox(_ref) {
20629
  }
20630
 
20631
  /* harmony default export */ var inserter_listbox = (InserterListbox);
20632
- //# sourceMappingURL=index.js.map
20633
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
20634
 
20635
 
@@ -20763,7 +20929,7 @@ function BlockTypesTab(_ref) {
20763
  })));
20764
  }
20765
  /* harmony default export */ var block_types_tab = (BlockTypesTab);
20766
- //# sourceMappingURL=block-types-tab.js.map
20767
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/pattern-panel.js
20768
 
20769
 
@@ -20838,7 +21004,7 @@ function PatternInserterPanel(_ref) {
20838
  }
20839
 
20840
  /* harmony default export */ var pattern_panel = (PatternInserterPanel);
20841
- //# sourceMappingURL=pattern-panel.js.map
20842
  ;// CONCATENATED MODULE: external ["wp","notices"]
20843
  var external_wp_notices_namespaceObject = window["wp"]["notices"];
20844
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
@@ -20898,7 +21064,7 @@ const usePatternsState = (onInsert, rootClientId) => {
20898
  };
20899
 
20900
  /* harmony default export */ var use_patterns_state = (usePatternsState);
20901
- //# sourceMappingURL=use-patterns-state.js.map
20902
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
20903
 
20904
 
@@ -20999,7 +21165,7 @@ function BlockPatternList(_ref3) {
20999
  }
21000
 
21001
  /* harmony default export */ var block_patterns_list = (BlockPatternList);
21002
- //# sourceMappingURL=index.js.map
21003
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/sidebar.js
21004
 
21005
 
@@ -21073,7 +21239,7 @@ function PatternExplorerSidebar(_ref4) {
21073
  }
21074
 
21075
  /* harmony default export */ var sidebar = (PatternExplorerSidebar);
21076
- //# sourceMappingURL=sidebar.js.map
21077
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
21078
 
21079
 
@@ -21093,7 +21259,7 @@ function InserterNoResults() {
21093
  }
21094
 
21095
  /* harmony default export */ var no_results = (InserterNoResults);
21096
- //# sourceMappingURL=no-results.js.map
21097
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
21098
  /**
21099
  * External dependencies
@@ -21215,7 +21381,7 @@ function useInsertionPoint(_ref) {
21215
  }
21216
 
21217
  /* harmony default export */ var use_insertion_point = (useInsertionPoint);
21218
- //# sourceMappingURL=use-insertion-point.js.map
21219
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-items.js
21220
  /**
21221
  * External dependencies
@@ -21390,7 +21556,7 @@ function getItemSearchRank(item, searchTerm) {
21390
 
21391
  return rank;
21392
  }
21393
- //# sourceMappingURL=search-items.js.map
21394
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/patterns-list.js
21395
 
21396
 
@@ -21486,7 +21652,7 @@ function PatternList(_ref2) {
21486
  }
21487
 
21488
  /* harmony default export */ var patterns_list = (PatternList);
21489
- //# sourceMappingURL=patterns-list.js.map
21490
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/explorer.js
21491
 
21492
 
@@ -21539,7 +21705,7 @@ function PatternsExplorerModal(_ref2) {
21539
  }
21540
 
21541
  /* harmony default export */ var explorer = (PatternsExplorerModal);
21542
- //# sourceMappingURL=explorer.js.map
21543
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
21544
 
21545
 
@@ -21658,17 +21824,17 @@ function BlockPatternsTabs(_ref3) {
21658
  return categories;
21659
  }, [allPatterns, allCategories]);
21660
  const patternCategory = selectedCategory ? selectedCategory : populatedCategories[0];
21661
- return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, !showPatternsExplorer && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(pattern_panel, {
21662
  selectedCategory: patternCategory,
21663
  patternCategories: populatedCategories,
21664
  onClickCategory: onClickCategory,
21665
  openPatternExplorer: () => setShowPatternsExplorer(true)
21666
- }), (0,external_wp_element_namespaceObject.createElement)(BlockPatternsCategory, {
21667
  rootClientId: rootClientId,
21668
  onInsert: onInsert,
21669
  selectedCategory: patternCategory,
21670
  populatedCategories: populatedCategories
21671
- })), showPatternsExplorer && (0,external_wp_element_namespaceObject.createElement)(explorer, {
21672
  initialCategory: patternCategory,
21673
  patternCategories: populatedCategories,
21674
  onModalClose: () => setShowPatternsExplorer(false)
@@ -21676,7 +21842,7 @@ function BlockPatternsTabs(_ref3) {
21676
  }
21677
 
21678
  /* harmony default export */ var block_patterns_tab = (BlockPatternsTabs);
21679
- //# sourceMappingURL=block-patterns-tab.js.map
21680
  ;// CONCATENATED MODULE: external ["wp","url"]
21681
  var external_wp_url_namespaceObject = window["wp"]["url"];
21682
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
@@ -21759,7 +21925,7 @@ function ReusableBlocksTab(_ref3) {
21759
  }, (0,external_wp_i18n_namespaceObject.__)('Manage Reusable blocks'))));
21760
  }
21761
  /* harmony default export */ var reusable_blocks_tab = (ReusableBlocksTab);
21762
- //# sourceMappingURL=reusable-blocks-tab.js.map
21763
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
21764
  /**
21765
  * WordPress dependencies
@@ -21771,7 +21937,7 @@ const {
21771
  } = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableInserterMenuExtension');
21772
  __unstableInserterMenuExtension.Slot = Slot;
21773
  /* harmony default export */ var inserter_menu_extension = (__unstableInserterMenuExtension);
21774
- //# sourceMappingURL=index.js.map
21775
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
21776
 
21777
 
@@ -21825,7 +21991,8 @@ function InserterSearchResults(_ref) {
21825
  maxBlockTypes,
21826
  showBlockDirectory = false,
21827
  isDraggable = true,
21828
- shouldFocusBlock = true
 
21829
  } = _ref;
21830
  const debouncedSpeak = (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500);
21831
  const [destinationRootClientId, onInsertBlocks] = use_insertion_point({
@@ -21838,14 +22005,28 @@ function InserterSearchResults(_ref) {
21838
  });
21839
  const [blockTypes, blockTypeCategories, blockTypeCollections, onSelectBlockType] = use_block_types_state(destinationRootClientId, onInsertBlocks);
21840
  const [patterns,, onSelectBlockPattern] = use_patterns_state(onInsertBlocks, destinationRootClientId);
21841
- const filteredBlockTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
21842
- const results = searchBlockItems((0,external_lodash_namespaceObject.orderBy)(blockTypes, ['frecency'], ['desc']), blockTypeCategories, blockTypeCollections, filterValue);
21843
- return maxBlockTypes !== undefined ? results.slice(0, maxBlockTypes) : results;
21844
- }, [filterValue, blockTypes, blockTypeCategories, blockTypeCollections, maxBlockTypes]);
21845
  const filteredBlockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => {
 
 
 
 
21846
  const results = searchItems(patterns, filterValue);
21847
  return maxBlockPatterns !== undefined ? results.slice(0, maxBlockPatterns) : results;
21848
- }, [filterValue, patterns, maxBlockPatterns]); // Announce search results on change
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21849
 
21850
  (0,external_wp_element_namespaceObject.useEffect)(() => {
21851
  if (!filterValue) {
@@ -21863,7 +22044,7 @@ function InserterSearchResults(_ref) {
21863
  });
21864
  const currentShownPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(currentShownBlockTypes.length === filteredBlockTypes.length ? filteredBlockPatterns : search_results_EMPTY_ARRAY);
21865
  const hasItems = !(0,external_lodash_namespaceObject.isEmpty)(filteredBlockTypes) || !(0,external_lodash_namespaceObject.isEmpty)(filteredBlockPatterns);
21866
- return (0,external_wp_element_namespaceObject.createElement)(inserter_listbox, null, !showBlockDirectory && !hasItems && (0,external_wp_element_namespaceObject.createElement)(no_results, null), !!filteredBlockTypes.length && (0,external_wp_element_namespaceObject.createElement)(panel, {
21867
  title: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Blocks'))
21868
  }, (0,external_wp_element_namespaceObject.createElement)(block_types_list, {
21869
  items: currentShownBlockTypes,
@@ -21871,9 +22052,8 @@ function InserterSearchResults(_ref) {
21871
  onHover: onHover,
21872
  label: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
21873
  isDraggable: isDraggable
21874
- })), !!filteredBlockTypes.length && !!filteredBlockPatterns.length && (0,external_wp_element_namespaceObject.createElement)("div", {
21875
- className: "block-editor-inserter__quick-inserter-separator"
21876
- }), !!filteredBlockPatterns.length && (0,external_wp_element_namespaceObject.createElement)(panel, {
21877
  title: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Block Patterns'))
21878
  }, (0,external_wp_element_namespaceObject.createElement)("div", {
21879
  className: "block-editor-inserter__quick-inserter-patterns"
@@ -21882,7 +22062,10 @@ function InserterSearchResults(_ref) {
21882
  blockPatterns: filteredBlockPatterns,
21883
  onClickPattern: onSelectBlockPattern,
21884
  isDraggable: isDraggable
21885
- }))), showBlockDirectory && (0,external_wp_element_namespaceObject.createElement)(inserter_menu_extension.Slot, {
 
 
 
21886
  fillProps: {
21887
  onSelect: onSelectBlockType,
21888
  onHover,
@@ -21904,7 +22087,7 @@ function InserterSearchResults(_ref) {
21904
  }
21905
 
21906
  /* harmony default export */ var search_results = (InserterSearchResults);
21907
- //# sourceMappingURL=search-results.js.map
21908
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
21909
 
21910
 
@@ -21961,7 +22144,7 @@ function InserterTabs(_ref) {
21961
  }
21962
 
21963
  /* harmony default export */ var tabs = (InserterTabs);
21964
- //# sourceMappingURL=tabs.js.map
21965
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/menu.js
21966
 
21967
 
@@ -22113,7 +22296,7 @@ function InserterMenu(_ref, ref) {
22113
  }
22114
 
22115
  /* harmony default export */ var menu = ((0,external_wp_element_namespaceObject.forwardRef)(InserterMenu));
22116
- //# sourceMappingURL=menu.js.map
22117
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/quick-inserter.js
22118
 
22119
 
@@ -22141,6 +22324,7 @@ function InserterMenu(_ref, ref) {
22141
  const SEARCH_THRESHOLD = 6;
22142
  const SHOWN_BLOCK_TYPES = 6;
22143
  const SHOWN_BLOCK_PATTERNS = 2;
 
22144
  function QuickInserter(_ref) {
22145
  let {
22146
  onSelect,
@@ -22157,23 +22341,27 @@ function QuickInserter(_ref) {
22157
  });
22158
  const [blockTypes] = use_block_types_state(destinationRootClientId, onInsertBlocks);
22159
  const [patterns] = use_patterns_state(onInsertBlocks, destinationRootClientId);
22160
- const showPatterns = patterns.length && !!filterValue;
22161
- const showSearch = showPatterns && patterns.length > SEARCH_THRESHOLD || blockTypes.length > SEARCH_THRESHOLD;
22162
  const {
22163
  setInserterIsOpened,
22164
- insertionIndex
 
22165
  } = (0,external_wp_data_namespaceObject.useSelect)(select => {
22166
  const {
22167
  getSettings,
22168
  getBlockIndex,
22169
  getBlockCount
22170
  } = select(store);
 
22171
  const index = getBlockIndex(clientId);
 
22172
  return {
22173
- setInserterIsOpened: getSettings().__experimentalSetIsInserterOpened,
22174
- insertionIndex: index === -1 ? getBlockCount() : index
 
22175
  };
22176
  }, [clientId, rootClientId]);
 
 
22177
  (0,external_wp_element_namespaceObject.useEffect)(() => {
22178
  if (setInserterIsOpened) {
22179
  setInserterIsOpened(false);
@@ -22189,6 +22377,12 @@ function QuickInserter(_ref) {
22189
  });
22190
  };
22191
 
 
 
 
 
 
 
22192
  return (0,external_wp_element_namespaceObject.createElement)("div", {
22193
  className: classnames_default()('block-editor-inserter__quick-inserter', {
22194
  'has-search': showSearch,
@@ -22210,16 +22404,17 @@ function QuickInserter(_ref) {
22210
  rootClientId: rootClientId,
22211
  clientId: clientId,
22212
  isAppender: isAppender,
22213
- maxBlockPatterns: showPatterns ? SHOWN_BLOCK_PATTERNS : 0,
22214
  maxBlockTypes: SHOWN_BLOCK_TYPES,
22215
- isDraggable: false
 
22216
  })), setInserterIsOpened && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
22217
  className: "block-editor-inserter__quick-inserter-expand",
22218
  onClick: onBrowseAll,
22219
  "aria-label": (0,external_wp_i18n_namespaceObject.__)('Browse all. This will open the main inserter panel in the editor toolbar.')
22220
  }, (0,external_wp_i18n_namespaceObject.__)('Browse all')));
22221
  }
22222
- //# sourceMappingURL=quick-inserter.js.map
22223
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/index.js
22224
 
22225
 
@@ -22590,7 +22785,7 @@ class Inserter extends external_wp_element_namespaceObject.Component {
22590
  } = _ref6;
22591
  return hasItems || !isAppender && !rootClientId && !clientId;
22592
  })])(Inserter));
22593
- //# sourceMappingURL=index.js.map
22594
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/default-block-appender/index.js
22595
 
22596
 
@@ -22696,7 +22891,7 @@ function DefaultBlockAppender(_ref) {
22696
 
22697
  };
22698
  }))(DefaultBlockAppender));
22699
- //# sourceMappingURL=index.js.map
22700
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/button-block-appender/index.js
22701
 
22702
 
@@ -22794,7 +22989,7 @@ const ButtonBlockerAppender = (0,external_wp_element_namespaceObject.forwardRef)
22794
  */
22795
 
22796
  /* harmony default export */ var button_block_appender = ((0,external_wp_element_namespaceObject.forwardRef)(ButtonBlockAppender));
22797
- //# sourceMappingURL=index.js.map
22798
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list-appender/index.js
22799
 
22800
 
@@ -22896,7 +23091,7 @@ function BlockListAppender(_ref) {
22896
  selectedBlockClientId: getSelectedBlockClientId()
22897
  };
22898
  })(BlockListAppender));
22899
- //# sourceMappingURL=index.js.map
22900
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/use-popover-scroll.js
22901
  /**
22902
  * WordPress dependencies
@@ -22935,7 +23130,7 @@ function usePopoverScroll(scrollableRef) {
22935
  };
22936
  }, [scrollableRef]);
22937
  }
22938
- //# sourceMappingURL=use-popover-scroll.js.map
22939
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
22940
 
22941
 
@@ -23271,7 +23466,7 @@ function InsertionPoint(_ref2) {
23271
  __unstableContentRef: __unstableContentRef
23272
  }), children);
23273
  }
23274
- //# sourceMappingURL=insertion-point.js.map
23275
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-in-between-inserter.js
23276
  /**
23277
  * WordPress dependencies
@@ -23412,7 +23607,7 @@ function useInBetweenInserter() {
23412
  };
23413
  }, [openRef, getBlockListSettings, getBlockRootClientId, getBlockIndex, isBlockInsertionPointVisible, isMultiSelecting, showInsertionPoint, hideInsertionPoint, getSelectedBlockClientIds]);
23414
  }
23415
- //# sourceMappingURL=use-in-between-inserter.js.map
23416
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pre-parse-patterns.js
23417
  /**
23418
  * WordPress dependencies
@@ -23470,7 +23665,7 @@ function usePreParsePatterns() {
23470
  }, [patterns]);
23471
  return null;
23472
  }
23473
- //# sourceMappingURL=pre-parse-patterns.js.map
23474
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
23475
  /**
23476
  * WordPress dependencies
@@ -23539,7 +23734,7 @@ function useBlockDisplayInformation(clientId) {
23539
  };
23540
  }, [clientId]);
23541
  }
23542
- //# sourceMappingURL=index.js.map
23543
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-title/index.js
23544
  /**
23545
  * External dependencies
@@ -23620,7 +23815,7 @@ function BlockTitle(_ref) {
23620
 
23621
  return blockInformation.title;
23622
  }
23623
- //# sourceMappingURL=index.js.map
23624
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
23625
  /**
23626
  * WordPress dependencies
@@ -23704,7 +23899,7 @@ function useScrollWhenDragging() {
23704
 
23705
  return [startScrolling, scrollOnDragOver, stopScrolling];
23706
  }
23707
- //# sourceMappingURL=use-scroll-when-dragging.js.map
23708
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/index.js
23709
 
23710
 
@@ -23819,7 +24014,7 @@ const BlockDraggable = _ref => {
23819
  };
23820
 
23821
  /* harmony default export */ var block_draggable = (BlockDraggable);
23822
- //# sourceMappingURL=index.js.map
23823
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
23824
 
23825
 
@@ -24068,7 +24263,7 @@ function BlockSelectionButton(_ref) {
24068
  }
24069
 
24070
  /* harmony default export */ var block_selection_button = (BlockSelectionButton);
24071
- //# sourceMappingURL=block-selection-button.js.map
24072
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
24073
 
24074
 
@@ -24220,7 +24415,7 @@ function NavigableToolbar(_ref) {
24220
  }
24221
 
24222
  /* harmony default export */ var navigable_toolbar = (NavigableToolbar);
24223
- //# sourceMappingURL=index.js.map
24224
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right.js
24225
 
24226
 
@@ -24235,7 +24430,7 @@ const chevronRight = (0,external_wp_element_namespaceObject.createElement)(exter
24235
  d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
24236
  }));
24237
  /* harmony default export */ var chevron_right = (chevronRight);
24238
- //# sourceMappingURL=chevron-right.js.map
24239
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-left.js
24240
 
24241
 
@@ -24250,7 +24445,7 @@ const chevronLeft = (0,external_wp_element_namespaceObject.createElement)(extern
24250
  d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
24251
  }));
24252
  /* harmony default export */ var chevron_left = (chevronLeft);
24253
- //# sourceMappingURL=chevron-left.js.map
24254
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-up.js
24255
 
24256
 
@@ -24265,7 +24460,7 @@ const chevronUp = (0,external_wp_element_namespaceObject.createElement)(external
24265
  d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
24266
  }));
24267
  /* harmony default export */ var chevron_up = (chevronUp);
24268
- //# sourceMappingURL=chevron-up.js.map
24269
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-down.js
24270
 
24271
 
@@ -24280,7 +24475,7 @@ const chevronDown = (0,external_wp_element_namespaceObject.createElement)(extern
24280
  d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
24281
  }));
24282
  /* harmony default export */ var chevron_down = (chevronDown);
24283
- //# sourceMappingURL=chevron-down.js.map
24284
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
24285
  /**
24286
  * WordPress dependencies
@@ -24447,7 +24642,7 @@ function getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLas
24447
  (0,external_wp_i18n_namespaceObject._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', selectedCount), selectedCount, position);
24448
  }
24449
  }
24450
- //# sourceMappingURL=mover-description.js.map
24451
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/button.js
24452
 
24453
 
@@ -24599,7 +24794,7 @@ const BlockMoverDownButton = (0,external_wp_element_namespaceObject.forwardRef)(
24599
  ref: ref
24600
  }, props));
24601
  });
24602
- //# sourceMappingURL=button.js.map
24603
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/index.js
24604
 
24605
 
@@ -24718,7 +24913,7 @@ function BlockMover(_ref) {
24718
  orientation: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation
24719
  };
24720
  })(BlockMover));
24721
- //# sourceMappingURL=index.js.map
24722
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/utils.js
24723
  /**
24724
  * External dependencies
@@ -24887,7 +25082,7 @@ function useShowMoversGestures(_ref2) {
24887
  }
24888
  };
24889
  }
24890
- //# sourceMappingURL=utils.js.map
24891
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-parent-selector/index.js
24892
 
24893
 
@@ -24987,7 +25182,7 @@ function BlockParentSelector() {
24987
  })
24988
  }));
24989
  }
24990
- //# sourceMappingURL=index.js.map
24991
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/stack.js
24992
 
24993
 
@@ -25002,7 +25197,7 @@ const stack = (0,external_wp_element_namespaceObject.createElement)(external_wp_
25002
  d: "M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"
25003
  }));
25004
  /* harmony default export */ var library_stack = (stack);
25005
- //# sourceMappingURL=stack.js.map
25006
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
25007
 
25008
 
@@ -25037,7 +25232,7 @@ function PreviewBlockPopover(_ref) {
25037
  blocks: blocks
25038
  })))));
25039
  }
25040
- //# sourceMappingURL=preview-block-popover.js.map
25041
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/block-transformations-menu.js
25042
 
25043
 
@@ -25093,7 +25288,7 @@ const BlockTransformationsMenu = _ref => {
25093
  };
25094
 
25095
  /* harmony default export */ var block_transformations_menu = (BlockTransformationsMenu);
25096
- //# sourceMappingURL=block-transformations-menu.js.map
25097
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/check.js
25098
 
25099
 
@@ -25108,7 +25303,7 @@ const check = (0,external_wp_element_namespaceObject.createElement)(external_wp_
25108
  d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
25109
  }));
25110
  /* harmony default export */ var library_check = (check);
25111
- //# sourceMappingURL=check.js.map
25112
  ;// CONCATENATED MODULE: external ["wp","tokenList"]
25113
  var external_wp_tokenList_namespaceObject = window["wp"]["tokenList"];
25114
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_namespaceObject);
@@ -25203,7 +25398,7 @@ function getRenderedStyles(styles) {
25203
  function getDefaultStyle(styles) {
25204
  return (0,external_lodash_namespaceObject.find)(styles, 'isDefault');
25205
  }
25206
- //# sourceMappingURL=utils.js.map
25207
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/use-styles-for-block.js
25208
  /**
25209
  * WordPress dependencies
@@ -25311,7 +25506,7 @@ function useStylesForBlocks(_ref) {
25311
  className
25312
  };
25313
  }
25314
- //# sourceMappingURL=use-styles-for-block.js.map
25315
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/menu-items.js
25316
 
25317
 
@@ -25362,7 +25557,7 @@ function BlockStylesMenuItems(_ref) {
25362
  }, menuItemText));
25363
  }));
25364
  }
25365
- //# sourceMappingURL=menu-items.js.map
25366
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/block-styles-menu.js
25367
 
25368
 
@@ -25392,7 +25587,7 @@ function BlockStylesMenu(_ref) {
25392
  onSwitch: onSwitch
25393
  }));
25394
  }
25395
- //# sourceMappingURL=block-styles-menu.js.map
25396
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/utils.js
25397
  /**
25398
  * WordPress dependencies
@@ -25446,7 +25641,7 @@ const getRetainedBlockAttributes = (name, attributes) => {
25446
  return _accumulator;
25447
  }, {});
25448
  };
25449
- //# sourceMappingURL=utils.js.map
25450
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/use-transformed-patterns.js
25451
  /**
25452
  * WordPress dependencies
@@ -25551,7 +25746,7 @@ const useTransformedPatterns = (patterns, selectedBlocks) => {
25551
  };
25552
 
25553
  /* harmony default export */ var use_transformed_patterns = (useTransformedPatterns);
25554
- //# sourceMappingURL=use-transformed-patterns.js.map
25555
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
25556
 
25557
 
@@ -25664,7 +25859,7 @@ function pattern_transformations_menu_BlockPattern(_ref4) {
25664
  }
25665
 
25666
  /* harmony default export */ var pattern_transformations_menu = (PatternTransformationsMenu);
25667
- //# sourceMappingURL=pattern-transformations-menu.js.map
25668
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/index.js
25669
 
25670
 
@@ -25856,7 +26051,7 @@ const BlockSwitcher = _ref4 => {
25856
  });
25857
  };
25858
  /* harmony default export */ var block_switcher = (BlockSwitcher);
25859
- //# sourceMappingURL=index.js.map
25860
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-vertical.js
25861
 
25862
 
@@ -25871,7 +26066,7 @@ const moreVertical = (0,external_wp_element_namespaceObject.createElement)(exter
25871
  d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
25872
  }));
25873
  /* harmony default export */ var more_vertical = (moreVertical);
25874
- //# sourceMappingURL=more-vertical.js.map
25875
  ;// CONCATENATED MODULE: external ["wp","blob"]
25876
  var external_wp_blob_namespaceObject = window["wp"]["blob"];
25877
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pasting.js
@@ -25954,7 +26149,7 @@ function shouldDismissPastedFiles(files, html
25954
 
25955
  return false;
25956
  }
25957
- //# sourceMappingURL=pasting.js.map
25958
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/copy-handler/index.js
25959
 
25960
 
@@ -26109,7 +26304,7 @@ function CopyHandler(_ref) {
26109
  }
26110
 
26111
  /* harmony default export */ var copy_handler = (CopyHandler);
26112
- //# sourceMappingURL=index.js.map
26113
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-actions/index.js
26114
  /**
26115
  * External dependencies
@@ -26241,7 +26436,7 @@ function BlockActions(_ref) {
26241
 
26242
  });
26243
  }
26244
- //# sourceMappingURL=index.js.map
26245
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js
26246
 
26247
 
@@ -26310,7 +26505,7 @@ function BlockModeToggle(_ref) {
26310
 
26311
  };
26312
  })])(BlockModeToggle));
26313
- //# sourceMappingURL=block-mode-toggle.js.map
26314
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-convert-button.js
26315
 
26316
 
@@ -26336,7 +26531,7 @@ function BlockConvertButton(_ref) {
26336
  onClick: onClick
26337
  }, !small && label);
26338
  }
26339
- //# sourceMappingURL=block-convert-button.js.map
26340
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-html-convert-button.js
26341
  /**
26342
  * WordPress dependencies
@@ -26369,7 +26564,7 @@ function BlockConvertButton(_ref) {
26369
  }))
26370
  };
26371
  }))(BlockConvertButton));
26372
- //# sourceMappingURL=block-html-convert-button.js.map
26373
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js
26374
  /**
26375
  * WordPress dependencies
@@ -26381,7 +26576,7 @@ const {
26381
  } = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockSettingsMenuFirstItem');
26382
  __unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
26383
  /* harmony default export */ var block_settings_menu_first_item = (__unstableBlockSettingsMenuFirstItem);
26384
- //# sourceMappingURL=block-settings-menu-first-item.js.map
26385
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/index.js
26386
 
26387
 
@@ -26449,7 +26644,7 @@ function ConvertToGroupButton(_ref) {
26449
  }
26450
 
26451
 
26452
- //# sourceMappingURL=index.js.map
26453
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js
26454
  /**
26455
  * WordPress dependencies
@@ -26536,7 +26731,7 @@ function useConvertToGroupButtonProps() {
26536
  groupingBlockName
26537
  };
26538
  }
26539
- //# sourceMappingURL=use-convert-to-group-button-props.js.map
26540
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu-controls/index.js
26541
 
26542
 
@@ -26620,7 +26815,7 @@ function BlockSettingsMenuControls(_ref2) {
26620
 
26621
  BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
26622
  /* harmony default export */ var block_settings_menu_controls = (BlockSettingsMenuControls);
26623
- //# sourceMappingURL=index.js.map
26624
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
26625
 
26626
 
@@ -26785,7 +26980,7 @@ function BlockSettingsDropdown(_ref2) {
26785
  });
26786
  }
26787
  /* harmony default export */ var block_settings_dropdown = (BlockSettingsDropdown);
26788
- //# sourceMappingURL=block-settings-dropdown.js.map
26789
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
26790
 
26791
 
@@ -26810,7 +27005,7 @@ function BlockSettingsMenu(_ref) {
26810
  }, props))));
26811
  }
26812
  /* harmony default export */ var block_settings_menu = (BlockSettingsMenu);
26813
- //# sourceMappingURL=index.js.map
26814
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
26815
 
26816
 
@@ -26946,7 +27141,7 @@ function BlockToolbar(_ref) {
26946
  clientIds: blockClientIds
26947
  }));
26948
  }
26949
- //# sourceMappingURL=index.js.map
26950
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
26951
 
26952
 
@@ -27025,7 +27220,7 @@ function BlockContextualToolbar(_ref) {
27025
  }
27026
 
27027
  /* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar);
27028
- //# sourceMappingURL=block-contextual-toolbar.js.map
27029
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js
27030
 
27031
 
@@ -27332,7 +27527,7 @@ function WrappedBlockPopover(_ref2) {
27332
  __unstableContentRef: __unstableContentRef
27333
  });
27334
  }
27335
- //# sourceMappingURL=block-popover.js.map
27336
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/back-compat.js
27337
 
27338
 
@@ -27369,7 +27564,7 @@ function BlockToolsBackCompat(_ref) {
27369
  __unstablePopoverSlot: "block-toolbar"
27370
  }), children);
27371
  }
27372
- //# sourceMappingURL=back-compat.js.map
27373
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/with-client-id.js
27374
 
27375
 
@@ -27392,7 +27587,7 @@ const withClientId = (0,external_wp_compose_namespaceObject.createHigherOrderCom
27392
  }));
27393
  }, 'withClientId');
27394
  /* harmony default export */ var with_client_id = (withClientId);
27395
- //# sourceMappingURL=with-client-id.js.map
27396
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/button-block-appender.js
27397
 
27398
 
@@ -27425,7 +27620,7 @@ const button_block_appender_ButtonBlockAppender = _ref => {
27425
  });
27426
  };
27427
  /* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(button_block_appender_ButtonBlockAppender));
27428
- //# sourceMappingURL=button-block-appender.js.map
27429
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
27430
 
27431
 
@@ -27466,7 +27661,7 @@ const default_block_appender_DefaultBlockAppender = _ref => {
27466
  lastBlockClientId: (0,external_lodash_namespaceObject.last)(blockClientIds)
27467
  };
27468
  })])(default_block_appender_DefaultBlockAppender));
27469
- //# sourceMappingURL=default-block-appender.js.map
27470
  ;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
27471
  var external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
27472
  var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
@@ -27559,7 +27754,7 @@ function useNestedSettingsUpdate(clientId, allowedBlocks, __experimentalDefaultB
27559
  }
27560
  }, [clientId, blockListSettings, _allowedBlocks, __experimentalDefaultBlock, __experimentalDirectInsert, templateLock, parentLock, captureToolbars, orientation, updateBlockListSettings, layout]);
27561
  }
27562
- //# sourceMappingURL=use-nested-settings-update.js.map
27563
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js
27564
  /**
27565
  * External dependencies
@@ -27628,7 +27823,7 @@ function useInnerBlockTemplateSync(clientId, template, templateLock, templateIns
27628
  }
27629
  }, [innerBlocks, template, templateLock, clientId]);
27630
  }
27631
- //# sourceMappingURL=use-inner-block-template-sync.js.map
27632
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/get-block-context.js
27633
  /**
27634
  * External dependencies
@@ -27666,7 +27861,7 @@ function getBlockContext(attributes, blockType) {
27666
 
27667
  return blockTypeCache.get(attributes);
27668
  }
27669
- //# sourceMappingURL=get-block-context.js.map
27670
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-on-block-drop/index.js
27671
  /**
27672
  * WordPress dependencies
@@ -27858,7 +28053,7 @@ function useOnBlockDrop(targetRootClientId, targetBlockIndex) {
27858
  }
27859
  };
27860
  }
27861
- //# sourceMappingURL=index.js.map
27862
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/math.js
27863
  /**
27864
  * A string representing the name of an edge.
@@ -27943,7 +28138,7 @@ function getDistanceToNearestEdge(point, rect) {
27943
  });
27944
  return [candidateDistance, candidateEdge];
27945
  }
27946
- //# sourceMappingURL=math.js.map
27947
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-block-drop-zone/index.js
27948
  /**
27949
  * WordPress dependencies
@@ -28075,7 +28270,7 @@ function useBlockDropZone() {
28075
 
28076
  });
28077
  }
28078
- //# sourceMappingURL=index.js.map
28079
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/index.js
28080
 
28081
 
@@ -28256,7 +28451,7 @@ ForwardedInnerBlocks.Content = () => useInnerBlocksProps.save().children;
28256
 
28257
 
28258
  /* harmony default export */ var inner_blocks = (ForwardedInnerBlocks);
28259
- //# sourceMappingURL=index.js.map
28260
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
28261
 
28262
 
@@ -28406,7 +28601,7 @@ function BlockListItems(props) {
28406
  value: false
28407
  }, (0,external_wp_element_namespaceObject.createElement)(Items, props));
28408
  }
28409
- //# sourceMappingURL=index.js.map
28410
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/control.js
28411
 
28412
 
@@ -28518,7 +28713,7 @@ function ColorGradientControl(props) {
28518
  }
28519
 
28520
  /* harmony default export */ var control = (ColorGradientControl);
28521
- //# sourceMappingURL=control.js.map
28522
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/dropdown.js
28523
 
28524
 
@@ -28594,7 +28789,7 @@ function ColorGradientSettingsDropdown(_ref) {
28594
  }, setting))
28595
  })));
28596
  }
28597
- //# sourceMappingURL=dropdown.js.map
28598
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/use-common-single-multiple-selects.js
28599
  /**
28600
  * Internal dependencies
@@ -28606,7 +28801,7 @@ function useCommonSingleMultipleSelects() {
28606
  disableCustomGradients: !useSetting('color.customGradient')
28607
  };
28608
  }
28609
- //# sourceMappingURL=use-common-single-multiple-selects.js.map
28610
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.js
28611
  /**
28612
  * WordPress dependencies
@@ -28692,7 +28887,7 @@ function useMultipleOriginColorsAndGradients() {
28692
  }, [customGradients, themeGradients, defaultGradients]);
28693
  return colorGradientSettings;
28694
  }
28695
- //# sourceMappingURL=use-multiple-origin-colors-and-gradients.js.map
28696
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/utils.js
28697
  /**
28698
  * External dependencies
@@ -28780,7 +28975,7 @@ function getMostReadableColor(colors, colorValue) {
28780
  return colordColor.contrast(color);
28781
  }).color;
28782
  }
28783
- //# sourceMappingURL=utils.js.map
28784
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-color.js
28785
 
28786
 
@@ -29057,7 +29252,7 @@ const withBorderColorPaletteStyles = (0,external_wp_compose_namespaceObject.crea
29057
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/border/addSaveProps', border_color_addSaveProps);
29058
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/border/addEditProps', addEditProps);
29059
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/border/with-border-color-palette-styles', withBorderColorPaletteStyles);
29060
- //# sourceMappingURL=border-color.js.map
29061
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/utils.js
29062
  /**
29063
  * WordPress dependencies
@@ -29167,7 +29362,7 @@ function hasDefinedValues(values) {
29167
  });
29168
  return !!filteredValues.length;
29169
  }
29170
- //# sourceMappingURL=utils.js.map
29171
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/all-input-control.js
29172
 
29173
 
@@ -29201,7 +29396,7 @@ function AllInputControl(_ref) {
29201
  placeholder: allPlaceholder
29202
  }));
29203
  }
29204
- //# sourceMappingURL=all-input-control.js.map
29205
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/input-controls.js
29206
 
29207
 
@@ -29254,7 +29449,7 @@ function BoxInputControls(_ref) {
29254
  }));
29255
  }));
29256
  }
29257
- //# sourceMappingURL=input-controls.js.map
29258
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/link.js
29259
 
29260
 
@@ -29269,7 +29464,7 @@ const link_link = (0,external_wp_element_namespaceObject.createElement)(external
29269
  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"
29270
  }));
29271
  /* harmony default export */ var library_link = (link_link);
29272
- //# sourceMappingURL=link.js.map
29273
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/link-off.js
29274
 
29275
 
@@ -29284,7 +29479,7 @@ const linkOff = (0,external_wp_element_namespaceObject.createElement)(external_w
29284
  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"
29285
  }));
29286
  /* harmony default export */ var link_off = (linkOff);
29287
- //# sourceMappingURL=link-off.js.map
29288
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/linked-button.js
29289
 
29290
 
@@ -29313,7 +29508,7 @@ function LinkedButton(_ref) {
29313
  "aria-label": label
29314
  })));
29315
  }
29316
- //# sourceMappingURL=linked-button.js.map
29317
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/index.js
29318
 
29319
 
@@ -29404,7 +29599,7 @@ function BorderRadiusControl(_ref) {
29404
  isLinked: isLinked
29405
  })));
29406
  }
29407
- //# sourceMappingURL=index.js.map
29408
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-radius.js
29409
 
29410
 
@@ -29494,7 +29689,7 @@ function resetBorderRadius(_ref) {
29494
  style: removeBorderAttribute(style, 'radius')
29495
  });
29496
  }
29497
- //# sourceMappingURL=border-radius.js.map
29498
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/line-solid.js
29499
 
29500
 
@@ -29511,7 +29706,7 @@ const lineSolid = (0,external_wp_element_namespaceObject.createElement)(external
29511
  d: "M5 11.25h14v1.5H5z"
29512
  }));
29513
  /* harmony default export */ var line_solid = (lineSolid);
29514
- //# sourceMappingURL=line-solid.js.map
29515
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/line-dashed.js
29516
 
29517
 
@@ -29530,7 +29725,7 @@ const lineDashed = (0,external_wp_element_namespaceObject.createElement)(externa
29530
  clipRule: "evenodd"
29531
  }));
29532
  /* harmony default export */ var line_dashed = (lineDashed);
29533
- //# sourceMappingURL=line-dashed.js.map
29534
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/line-dotted.js
29535
 
29536
 
@@ -29549,7 +29744,7 @@ const lineDotted = (0,external_wp_element_namespaceObject.createElement)(externa
29549
  clipRule: "evenodd"
29550
  }));
29551
  /* harmony default export */ var line_dotted = (lineDotted);
29552
- //# sourceMappingURL=line-dotted.js.map
29553
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-style-control/index.js
29554
 
29555
 
@@ -29600,7 +29795,7 @@ function BorderStyleControl(_ref) {
29600
  "aria-label": borderStyle.label
29601
  }))));
29602
  }
29603
- //# sourceMappingURL=index.js.map
29604
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-style.js
29605
 
29606
 
@@ -29679,7 +29874,7 @@ function resetBorderStyle(_ref) {
29679
  style: removeBorderAttribute(style, 'style')
29680
  });
29681
  }
29682
- //# sourceMappingURL=border-style.js.map
29683
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-width.js
29684
 
29685
 
@@ -29823,7 +30018,7 @@ function resetBorderWidth(_ref) {
29823
  style: removeBorderAttribute(style, 'width')
29824
  });
29825
  }
29826
- //# sourceMappingURL=border-width.js.map
29827
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border.js
29828
 
29829
 
@@ -29983,7 +30178,7 @@ function removeBorderAttribute(style, attribute) {
29983
  }
29984
  });
29985
  }
29986
- //# sourceMappingURL=border.js.map
29987
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/gradients/use-gradient.js
29988
  /**
29989
  * External dependencies
@@ -30100,7 +30295,7 @@ function __experimentalUseGradient() {
30100
  setGradient
30101
  };
30102
  }
30103
- //# sourceMappingURL=use-gradient.js.map
30104
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/contrast-checker/index.js
30105
 
30106
 
@@ -30214,7 +30409,7 @@ function ContrastChecker(_ref) {
30214
  }
30215
 
30216
  /* harmony default export */ var contrast_checker = (ContrastChecker);
30217
- //# sourceMappingURL=index.js.map
30218
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/tools-panel-color-dropdown.js
30219
 
30220
 
@@ -30290,7 +30485,7 @@ function ToolsPanelColorDropdown(_ref) {
30290
  }, controlSettings))
30291
  }));
30292
  }
30293
- //# sourceMappingURL=tools-panel-color-dropdown.js.map
30294
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
30295
 
30296
 
@@ -30364,7 +30559,7 @@ function ColorPanel(_ref) {
30364
  linkColor: detectedLinkColor
30365
  }));
30366
  }
30367
- //# sourceMappingURL=color-panel.js.map
30368
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color.js
30369
 
30370
 
@@ -30918,7 +31113,7 @@ const MIGRATION_PATHS = {
30918
  backgroundColor: [['backgroundColor'], ['style', 'color', 'background']],
30919
  gradient: [['gradient'], ['style', 'color', 'gradient']]
30920
  };
30921
- function addTransforms(result, source, index, results) {
30922
  const destinationBlockType = result.name;
30923
  const activeSupports = {
30924
  linkColor: hasLinkColorSupport(destinationBlockType),
@@ -30932,8 +31127,8 @@ function addTransforms(result, source, index, results) {
30932
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/color/addSaveProps', color_addSaveProps);
30933
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/color/addEditProps', color_addEditProps);
30934
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/color/with-color-palette-styles', withColorPaletteStyles);
30935
- (0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/color/addTransforms', addTransforms);
30936
- //# sourceMappingURL=color.js.map
30937
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-appearance-control/index.js
30938
 
30939
 
@@ -31140,7 +31335,7 @@ function FontAppearanceControl(props) {
31140
  }
31141
  });
31142
  }
31143
- //# sourceMappingURL=index.js.map
31144
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/line-height-control/utils.js
31145
  const BASE_DEFAULT_VALUE = 1.5;
31146
  const STEP = 0.1;
@@ -31167,7 +31362,7 @@ const RESET_VALUE = '';
31167
  function isLineHeightDefined(lineHeight) {
31168
  return lineHeight !== undefined && lineHeight !== RESET_VALUE;
31169
  }
31170
- //# sourceMappingURL=utils.js.map
31171
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/line-height-control/index.js
31172
 
31173
 
@@ -31185,73 +31380,89 @@ function isLineHeightDefined(lineHeight) {
31185
  function LineHeightControl(_ref) {
31186
  let {
31187
  value: lineHeight,
31188
- onChange
 
 
 
 
31189
  } = _ref;
31190
  const isDefined = isLineHeightDefined(lineHeight);
31191
 
31192
- const handleOnKeyDown = event => {
31193
- const {
31194
- keyCode
31195
- } = event;
31196
-
31197
- if (keyCode === external_wp_keycodes_namespaceObject.ZERO && !isDefined) {
31198
- /**
31199
- * Prevents the onChange callback from firing, which prevents
31200
- * the logic from assuming the change was triggered from
31201
- * an input arrow CLICK.
31202
- */
31203
- event.preventDefault();
31204
- onChange('0');
31205
- }
31206
- };
31207
-
31208
- const handleOnChange = nextValue => {
31209
  // Set the next value without modification if lineHeight has been defined
31210
- if (isDefined) {
31211
- onChange(nextValue);
31212
- return;
31213
- } // Otherwise...
31214
-
31215
  /**
31216
- * The following logic handles the initial up/down arrow CLICK of the
31217
- * input element. This is so that the next values (from an undefined value state)
31218
- * are more better suited for line-height rendering.
 
 
 
 
31219
  */
31220
 
31221
-
31222
- let adjustedNextValue = nextValue;
31223
-
31224
  switch (nextValue) {
31225
  case `${STEP}`:
31226
  // Increment by step value
31227
- adjustedNextValue = BASE_DEFAULT_VALUE + STEP;
31228
- break;
31229
 
31230
  case '0':
31231
- // Decrement by step value
31232
- adjustedNextValue = BASE_DEFAULT_VALUE - STEP;
31233
- break;
 
 
 
 
 
 
 
 
 
 
31234
  }
 
31235
 
31236
- onChange(adjustedNextValue);
 
 
 
 
 
 
 
 
 
31237
  };
31238
 
31239
  const value = isDefined ? lineHeight : RESET_VALUE;
 
 
 
 
 
 
 
 
 
 
 
 
31240
  return (0,external_wp_element_namespaceObject.createElement)("div", {
31241
- className: "block-editor-line-height-control"
31242
- }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, {
31243
- autoComplete: "off",
31244
- onKeyDown: handleOnKeyDown,
31245
- onChange: handleOnChange,
 
31246
  label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
31247
  placeholder: BASE_DEFAULT_VALUE,
31248
  step: STEP,
31249
- type: "number",
31250
  value: value,
31251
  min: 0
31252
  }));
31253
  }
31254
- //# sourceMappingURL=index.js.map
31255
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/line-height.js
31256
 
31257
 
@@ -31297,6 +31508,8 @@ function LineHeightEdit(props) {
31297
  };
31298
 
31299
  return (0,external_wp_element_namespaceObject.createElement)(LineHeightControl, {
 
 
31300
  value: style === null || style === void 0 ? void 0 : (_style$typography = style.typography) === null || _style$typography === void 0 ? void 0 : _style$typography.lineHeight,
31301
  onChange: onChange
31302
  });
@@ -31353,7 +31566,7 @@ function resetLineHeight(_ref) {
31353
  })
31354
  });
31355
  }
31356
- //# sourceMappingURL=line-height.js.map
31357
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-appearance.js
31358
 
31359
 
@@ -31514,7 +31727,7 @@ function resetFontAppearance(_ref) {
31514
  })
31515
  });
31516
  }
31517
- //# sourceMappingURL=font-appearance.js.map
31518
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-family/index.js
31519
 
31520
 
@@ -31572,7 +31785,7 @@ function FontFamilyControl(_ref) {
31572
  labelPosition: "top"
31573
  }, props));
31574
  }
31575
- //# sourceMappingURL=index.js.map
31576
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-family.js
31577
 
31578
 
@@ -31758,7 +31971,7 @@ function resetFontFamily(_ref5) {
31758
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/fontFamily/addAttribute', font_family_addAttributes);
31759
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/fontFamily/addSaveProps', font_family_addSaveProps);
31760
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/fontFamily/addEditProps', font_family_addEditProps);
31761
- //# sourceMappingURL=font-family.js.map
31762
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/utils.js
31763
  /**
31764
  * External dependencies
@@ -31829,7 +32042,7 @@ function getFontSizeClass(fontSizeSlug) {
31829
 
31830
  return `has-${(0,external_lodash_namespaceObject.kebabCase)(fontSizeSlug)}-font-size`;
31831
  }
31832
- //# sourceMappingURL=utils.js.map
31833
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/font-size-picker.js
31834
 
31835
 
@@ -31854,7 +32067,7 @@ function FontSizePicker(props) {
31854
  }
31855
 
31856
  /* harmony default export */ var font_size_picker = (FontSizePicker);
31857
- //# sourceMappingURL=font-size-picker.js.map
31858
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-size.js
31859
 
31860
 
@@ -32109,7 +32322,7 @@ function font_size_addTransforms(result, source, index, results) {
32109
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/font/addEditProps', font_size_addEditProps);
32110
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/font-size/with-font-size-inline-styles', withFontSizeInlineStyles);
32111
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/font-size/addTransforms', font_size_addTransforms);
32112
- //# sourceMappingURL=font-size.js.map
32113
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-underline.js
32114
 
32115
 
@@ -32124,7 +32337,7 @@ const formatUnderline = (0,external_wp_element_namespaceObject.createElement)(ex
32124
  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"
32125
  }));
32126
  /* harmony default export */ var format_underline = (formatUnderline);
32127
- //# sourceMappingURL=format-underline.js.map
32128
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-strikethrough.js
32129
 
32130
 
@@ -32139,7 +32352,7 @@ const formatStrikethrough = (0,external_wp_element_namespaceObject.createElement
32139
  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"
32140
  }));
32141
  /* harmony default export */ var format_strikethrough = (formatStrikethrough);
32142
- //# sourceMappingURL=format-strikethrough.js.map
32143
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
32144
 
32145
 
@@ -32188,7 +32401,7 @@ function TextDecorationControl(_ref) {
32188
  });
32189
  })));
32190
  }
32191
- //# sourceMappingURL=index.js.map
32192
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/text-decoration.js
32193
 
32194
 
@@ -32296,7 +32509,7 @@ function resetTextDecoration(_ref) {
32296
  })
32297
  });
32298
  }
32299
- //# sourceMappingURL=text-decoration.js.map
32300
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-uppercase.js
32301
 
32302
 
@@ -32311,7 +32524,7 @@ const formatUppercase = (0,external_wp_element_namespaceObject.createElement)(ex
32311
  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"
32312
  }));
32313
  /* harmony default export */ var format_uppercase = (formatUppercase);
32314
- //# sourceMappingURL=format-uppercase.js.map
32315
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-lowercase.js
32316
 
32317
 
@@ -32326,7 +32539,7 @@ const formatLowercase = (0,external_wp_element_namespaceObject.createElement)(ex
32326
  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"
32327
  }));
32328
  /* harmony default export */ var format_lowercase = (formatLowercase);
32329
- //# sourceMappingURL=format-lowercase.js.map
32330
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-capitalize.js
32331
 
32332
 
@@ -32341,7 +32554,7 @@ const formatCapitalize = (0,external_wp_element_namespaceObject.createElement)(e
32341
  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"
32342
  }));
32343
  /* harmony default export */ var format_capitalize = (formatCapitalize);
32344
- //# sourceMappingURL=format-capitalize.js.map
32345
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-transform-control/index.js
32346
 
32347
 
@@ -32394,7 +32607,7 @@ function TextTransformControl(_ref) {
32394
  });
32395
  })));
32396
  }
32397
- //# sourceMappingURL=index.js.map
32398
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/text-transform.js
32399
 
32400
 
@@ -32502,7 +32715,7 @@ function resetTextTransform(_ref) {
32502
  })
32503
  });
32504
  }
32505
- //# sourceMappingURL=text-transform.js.map
32506
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/letter-spacing-control/index.js
32507
 
32508
 
@@ -32549,7 +32762,7 @@ function LetterSpacingControl(_ref) {
32549
  onChange: onChange
32550
  });
32551
  }
32552
- //# sourceMappingURL=index.js.map
32553
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/letter-spacing.js
32554
 
32555
 
@@ -32656,7 +32869,7 @@ function resetLetterSpacing(_ref) {
32656
  })
32657
  });
32658
  }
32659
- //# sourceMappingURL=letter-spacing.js.map
32660
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/typography.js
32661
 
32662
 
@@ -32802,7 +33015,7 @@ function useIsTypographyDisabled() {
32802
  const configs = [useIsFontAppearanceDisabled(props), useIsFontSizeDisabled(props), useIsLineHeightDisabled(props), useIsFontFamilyDisabled(props), useIsTextDecorationDisabled(props), useIsTextTransformDisabled(props), useIsLetterSpacingDisabled(props)];
32803
  return configs.filter(Boolean).length === configs.length;
32804
  }
32805
- //# sourceMappingURL=typography.js.map
32806
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/gap.js
32807
 
32808
 
@@ -32945,7 +33158,7 @@ function GapEdit(props) {
32945
  native: null
32946
  });
32947
  }
32948
- //# sourceMappingURL=gap.js.map
32949
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/margin.js
32950
 
32951
 
@@ -33092,7 +33305,7 @@ function MarginEdit(props) {
33092
  native: null
33093
  });
33094
  }
33095
- //# sourceMappingURL=margin.js.map
33096
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/padding.js
33097
 
33098
 
@@ -33239,7 +33452,7 @@ function PaddingEdit(props) {
33239
  native: null
33240
  });
33241
  }
33242
- //# sourceMappingURL=padding.js.map
33243
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/dimensions.js
33244
 
33245
 
@@ -33394,7 +33607,7 @@ function useIsDimensionsSupportValid(blockName, feature) {
33394
 
33395
  return true;
33396
  }
33397
- //# sourceMappingURL=dimensions.js.map
33398
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/style.js
33399
 
33400
 
@@ -33412,6 +33625,7 @@ function useIsDimensionsSupportValid(blockName, feature) {
33412
 
33413
 
33414
 
 
33415
  /**
33416
  * Internal dependencies
33417
  */
@@ -33460,19 +33674,33 @@ function getInlineStyles() {
33460
  // option and backwards compatibility for border radius support.
33461
  const styleValue = (0,external_lodash_namespaceObject.get)(styles, path);
33462
 
33463
- if (!!subPaths && !(0,external_lodash_namespaceObject.isString)(styleValue)) {
33464
- Object.entries(subPaths).forEach(entry => {
33465
- const [name, subPath] = entry;
33466
- const value = (0,external_lodash_namespaceObject.get)(styleValue, [subPath]);
 
33467
 
33468
- if (value) {
33469
- output[name] = compileStyleValue(value);
33470
- }
33471
- });
33472
- } else if (!ignoredStyles.includes(path.join('.'))) {
33473
- output[propKey] = compileStyleValue((0,external_lodash_namespaceObject.get)(styles, path));
 
33474
  }
33475
  }
 
 
 
 
 
 
 
 
 
 
 
 
33476
  });
33477
  return output;
33478
  }
@@ -33644,7 +33872,7 @@ const withElementsStyles = (0,external_wp_compose_namespaceObject.createHigherOr
33644
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/style/addEditProps', style_addEditProps);
33645
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/style/with-block-controls', withBlockControls);
33646
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/with-elements-styles', withElementsStyles);
33647
- //# sourceMappingURL=style.js.map
33648
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/duotone-control/index.js
33649
 
33650
 
@@ -33711,7 +33939,7 @@ function DuotoneControl(_ref) {
33711
  }
33712
 
33713
  /* harmony default export */ var duotone_control = (DuotoneControl);
33714
- //# sourceMappingURL=index.js.map
33715
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
33716
 
33717
 
@@ -33989,7 +34217,7 @@ const withDuotoneStyles = (0,external_wp_compose_namespaceObject.createHigherOrd
33989
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/duotone/add-attributes', addDuotoneAttributes);
33990
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/duotone/with-editor-controls', withDuotoneControls);
33991
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/duotone/with-styles', withDuotoneStyles);
33992
- //# sourceMappingURL=duotone.js.map
33993
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/layout.js
33994
 
33995
 
@@ -34199,7 +34427,7 @@ const withLayoutStyles = (0,external_wp_compose_namespaceObject.createHigherOrde
34199
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/layout/addAttribute', layout_addAttribute);
34200
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/layout/with-layout-styles', withLayoutStyles);
34201
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/layout/with-inspector-controls', withInspectorControls);
34202
- //# sourceMappingURL=layout.js.map
34203
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-border-props.js
34204
  /**
34205
  * External dependencies
@@ -34271,7 +34499,7 @@ function useBorderProps(attributes) {
34271
 
34272
  return borderProps;
34273
  }
34274
- //# sourceMappingURL=use-border-props.js.map
34275
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-color-props.js
34276
  /**
34277
  * External dependencies
@@ -34386,7 +34614,7 @@ function useColorProps(attributes) {
34386
 
34387
  return colorProps;
34388
  }
34389
- //# sourceMappingURL=use-color-props.js.map
34390
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-spacing-props.js
34391
  /**
34392
  * Internal dependencies
@@ -34417,7 +34645,7 @@ function getSpacingClassesAndStyles(attributes) {
34417
  style: styleProp
34418
  };
34419
  }
34420
- //# sourceMappingURL=use-spacing-props.js.map
34421
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-cached-truthy.js
34422
  /**
34423
  * WordPress dependencies
@@ -34439,7 +34667,7 @@ function useCachedTruthy(value) {
34439
  }, [value]);
34440
  return cachedValue;
34441
  }
34442
- //# sourceMappingURL=use-cached-truthy.js.map
34443
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/index.js
34444
  /**
34445
  * Internal dependencies
@@ -34461,7 +34689,7 @@ function useCachedTruthy(value) {
34461
 
34462
 
34463
 
34464
- //# sourceMappingURL=index.js.map
34465
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/with-colors.js
34466
 
34467
 
@@ -34677,14 +34905,14 @@ function withColors() {
34677
 
34678
  return (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(createColorHOC(colorTypes, withColorPalette), 'withColors');
34679
  }
34680
- //# sourceMappingURL=with-colors.js.map
34681
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/index.js
34682
 
34683
 
34684
- //# sourceMappingURL=index.js.map
34685
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/gradients/index.js
34686
 
34687
- //# sourceMappingURL=index.js.map
34688
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/with-font-sizes.js
34689
 
34690
 
@@ -34811,12 +35039,12 @@ const DEFAULT_FONT_SIZES = [];
34811
  };
34812
  }]), 'withFontSizes');
34813
  });
34814
- //# sourceMappingURL=with-font-sizes.js.map
34815
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/index.js
34816
 
34817
 
34818
 
34819
- //# sourceMappingURL=index.js.map
34820
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-left.js
34821
 
34822
 
@@ -34831,7 +35059,7 @@ const alignLeft = (0,external_wp_element_namespaceObject.createElement)(external
34831
  d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
34832
  }));
34833
  /* harmony default export */ var align_left = (alignLeft);
34834
- //# sourceMappingURL=align-left.js.map
34835
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-center.js
34836
 
34837
 
@@ -34846,7 +35074,7 @@ const alignCenter = (0,external_wp_element_namespaceObject.createElement)(extern
34846
  d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
34847
  }));
34848
  /* harmony default export */ var align_center = (alignCenter);
34849
- //# sourceMappingURL=align-center.js.map
34850
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-right.js
34851
 
34852
 
@@ -34861,7 +35089,7 @@ const alignRight = (0,external_wp_element_namespaceObject.createElement)(externa
34861
  d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
34862
  }));
34863
  /* harmony default export */ var align_right = (alignRight);
34864
- //# sourceMappingURL=align-right.js.map
34865
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
34866
 
34867
 
@@ -34943,7 +35171,7 @@ function AlignmentUI(_ref) {
34943
  }
34944
 
34945
  /* harmony default export */ var alignment_control_ui = (AlignmentUI);
34946
- //# sourceMappingURL=ui.js.map
34947
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/index.js
34948
 
34949
 
@@ -34962,7 +35190,7 @@ function AlignmentToolbar(props) {
34962
  isToolbar: true
34963
  }));
34964
  }
34965
- //# sourceMappingURL=index.js.map
34966
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/block.js
34967
 
34968
 
@@ -35067,7 +35295,7 @@ function createBlockCompleter() {
35067
 
35068
 
35069
  /* harmony default export */ var autocompleters_block = (createBlockCompleter());
35070
- //# sourceMappingURL=block.js.map
35071
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/autocomplete/index.js
35072
 
35073
 
@@ -35149,7 +35377,7 @@ function BlockEditorAutocomplete(props) {
35149
 
35150
 
35151
  /* harmony default export */ var autocomplete = (BlockEditorAutocomplete);
35152
- //# sourceMappingURL=index.js.map
35153
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/fullscreen.js
35154
 
35155
 
@@ -35164,7 +35392,7 @@ const fullscreen = (0,external_wp_element_namespaceObject.createElement)(externa
35164
  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"
35165
  }));
35166
  /* harmony default export */ var library_fullscreen = (fullscreen);
35167
- //# sourceMappingURL=fullscreen.js.map
35168
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-full-height-alignment-control/index.js
35169
 
35170
 
@@ -35192,7 +35420,7 @@ function BlockFullHeightAlignmentControl(_ref) {
35192
  }
35193
 
35194
  /* harmony default export */ var block_full_height_alignment_control = (BlockFullHeightAlignmentControl);
35195
- //# sourceMappingURL=index.js.map
35196
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-matrix-control/index.js
35197
 
35198
 
@@ -35261,7 +35489,7 @@ function BlockAlignmentMatrixControl(props) {
35261
  }
35262
 
35263
  /* harmony default export */ var block_alignment_matrix_control = (BlockAlignmentMatrixControl);
35264
- //# sourceMappingURL=index.js.map
35265
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
35266
 
35267
 
@@ -35276,7 +35504,7 @@ const chevronRightSmall = (0,external_wp_element_namespaceObject.createElement)(
35276
  d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
35277
  }));
35278
  /* harmony default export */ var chevron_right_small = (chevronRightSmall);
35279
- //# sourceMappingURL=chevron-right-small.js.map
35280
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
35281
 
35282
 
@@ -35372,7 +35600,7 @@ function BlockBreadcrumb(_ref) {
35372
  }
35373
 
35374
  /* harmony default export */ var block_breadcrumb = (BlockBreadcrumb);
35375
- //# sourceMappingURL=index.js.map
35376
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-content-overlay/index.js
35377
 
35378
 
@@ -35459,7 +35687,7 @@ function BlockContentOverlay(_ref) {
35459
  }), wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.children);
35460
  }
35461
  /* eslint-enable jsx-a11y/no-static-element-interactions */
35462
- //# sourceMappingURL=index.js.map
35463
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-style-selector/index.js
35464
 
35465
 
@@ -35553,7 +35781,7 @@ const BlockColorsStyleSelector = _ref4 => {
35553
  };
35554
 
35555
  /* harmony default export */ var color_style_selector = (BlockColorsStyleSelector);
35556
- //# sourceMappingURL=index.js.map
35557
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/list-view.js
35558
 
35559
 
@@ -35568,7 +35796,7 @@ const listView = (0,external_wp_element_namespaceObject.createElement)(external_
35568
  d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
35569
  }));
35570
  /* harmony default export */ var list_view = (listView);
35571
- //# sourceMappingURL=list-view.js.map
35572
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
35573
 
35574
 
@@ -35614,7 +35842,7 @@ function ListViewLeaf(_ref) {
35614
  setSize: rowCount
35615
  }, props), children);
35616
  }
35617
- //# sourceMappingURL=leaf.js.map
35618
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/utils.js
35619
  /**
35620
  * External dependencies
@@ -35639,7 +35867,32 @@ const getBlockPositionDescription = (position, siblingCount, level) => (0,extern
35639
  */
35640
 
35641
  const isClientIdSelected = (clientId, selectedBlockClientIds) => (0,external_lodash_namespaceObject.isArray)(selectedBlockClientIds) && selectedBlockClientIds.length ? selectedBlockClientIds.indexOf(clientId) !== -1 : selectedBlockClientIds === clientId;
35642
- //# sourceMappingURL=utils.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35643
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/expander.js
35644
 
35645
 
@@ -35671,7 +35924,7 @@ function ListViewExpander(_ref) {
35671
  }))
35672
  );
35673
  }
35674
- //# sourceMappingURL=expander.js.map
35675
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-select-button.js
35676
 
35677
 
@@ -35732,7 +35985,6 @@ function ListViewBlockSelectButton(_ref, ref) {
35732
 
35733
  function onKeyDownHandler(event) {
35734
  if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER || event.keyCode === external_wp_keycodes_namespaceObject.SPACE) {
35735
- event.preventDefault();
35736
  onClick(event);
35737
  }
35738
  }
@@ -35766,7 +36018,7 @@ function ListViewBlockSelectButton(_ref, ref) {
35766
  }
35767
 
35768
  /* harmony default export */ var block_select_button = ((0,external_wp_element_namespaceObject.forwardRef)(ListViewBlockSelectButton));
35769
- //# sourceMappingURL=block-select-button.js.map
35770
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
35771
 
35772
 
@@ -35798,6 +36050,7 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
35798
  siblingBlockCount,
35799
  level,
35800
  isExpanded,
 
35801
  ...props
35802
  } = _ref;
35803
  const {
@@ -35808,12 +36061,10 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
35808
  selectedBlockInBlockEditor
35809
  } = (0,external_wp_data_namespaceObject.useSelect)(select => {
35810
  const {
35811
- getBlockRootClientId,
35812
  hasBlockMovingClientId,
35813
  getSelectedBlockClientId
35814
  } = select(store);
35815
  return {
35816
- rootClientId: getBlockRootClientId(clientId) || '',
35817
  blockMovingClientId: hasBlockMovingClientId(),
35818
  selectedBlockInBlockEditor: getSelectedBlockClientId()
35819
  };
@@ -35821,9 +36072,14 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
35821
  const isBlockMoveTarget = blockMovingClientId && selectedBlockInBlockEditor === clientId;
35822
  const className = classnames_default()('block-editor-list-view-block-contents', {
35823
  'is-dropping-before': isBlockMoveTarget
35824
- });
 
 
 
 
 
35825
  return (0,external_wp_element_namespaceObject.createElement)(block_draggable, {
35826
- clientIds: [block.clientId]
35827
  }, _ref2 => {
35828
  let {
35829
  draggable,
@@ -35848,7 +36104,7 @@ const ListViewBlockContents = (0,external_wp_element_namespaceObject.forwardRef)
35848
  });
35849
  });
35850
  /* harmony default export */ var block_contents = (ListViewBlockContents);
35851
- //# sourceMappingURL=block-contents.js.map
35852
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
35853
  /**
35854
  * WordPress dependencies
@@ -35859,7 +36115,7 @@ const ListViewContext = (0,external_wp_element_namespaceObject.createContext)({
35859
  __experimentalPersistentListViewFeatures: false
35860
  });
35861
  const useListViewContext = () => (0,external_wp_element_namespaceObject.useContext)(ListViewContext);
35862
- //# sourceMappingURL=context.js.map
35863
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block.js
35864
 
35865
 
@@ -35901,7 +36157,8 @@ function ListViewBlock(_ref) {
35901
  siblingBlockCount,
35902
  showBlockMovers,
35903
  path,
35904
- isExpanded
 
35905
  } = _ref;
35906
  const cellRef = (0,external_wp_element_namespaceObject.useRef)(null);
35907
  const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
@@ -35945,10 +36202,14 @@ function ListViewBlock(_ref) {
35945
  highlightBlock(clientId, false);
35946
  }, [clientId, setIsHovered, highlightBlock]);
35947
  const selectEditorBlock = (0,external_wp_element_namespaceObject.useCallback)(event => {
35948
- event.stopPropagation();
35949
- selectBlock(clientId);
35950
  }, [clientId, selectBlock]);
 
 
 
35951
  const toggleExpanded = (0,external_wp_element_namespaceObject.useCallback)(event => {
 
 
35952
  event.stopPropagation();
35953
 
35954
  if (isExpanded === true) {
@@ -35975,8 +36236,13 @@ function ListViewBlock(_ref) {
35975
  'has-single-cell': hideBlockActions
35976
  });
35977
  const blockInformation = useBlockDisplayInformation(clientId);
35978
- const settingsAriaLabel = (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: The title of the block.
35979
- (0,external_wp_i18n_namespaceObject.__)('Options for %s block'), blockInformation.title);
 
 
 
 
 
35980
  return (0,external_wp_element_namespaceObject.createElement)(ListViewLeaf, {
35981
  className: classes,
35982
  onMouseEnter: onMouseEnter,
@@ -36013,7 +36279,8 @@ function ListViewBlock(_ref) {
36013
  ref: ref,
36014
  tabIndex: tabIndex,
36015
  onFocus: onFocus,
36016
- isExpanded: isExpanded
 
36017
  }));
36018
  }), hasRenderedMovers && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
36019
  className: moverCellClassName,
@@ -36053,7 +36320,7 @@ function ListViewBlock(_ref) {
36053
  onFocus
36054
  } = _ref5;
36055
  return (0,external_wp_element_namespaceObject.createElement)(block_settings_dropdown, {
36056
- clientIds: [clientId],
36057
  icon: more_vertical,
36058
  label: settingsAriaLabel,
36059
  toggleProps: {
@@ -36063,13 +36330,13 @@ function ListViewBlock(_ref) {
36063
  onFocus
36064
  },
36065
  disableOpenOnArrowDown: true,
36066
- __experimentalSelectBlock: selectEditorBlock
36067
  });
36068
  }));
36069
  }
36070
 
36071
  /* harmony default export */ var list_view_block = ((0,external_wp_element_namespaceObject.memo)(ListViewBlock));
36072
- //# sourceMappingURL=block.js.map
36073
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/branch.js
36074
 
36075
 
@@ -36203,7 +36470,8 @@ function ListViewBranch(props) {
36203
  showBlockMovers: showBlockMovers,
36204
  path: updatedPath,
36205
  isExpanded: isExpanded,
36206
- listPosition: nextPosition
 
36207
  }), !showBlock && (0,external_wp_element_namespaceObject.createElement)("tr", null, (0,external_wp_element_namespaceObject.createElement)("td", {
36208
  className: "block-editor-list-view-placeholder"
36209
  })), hasNestedBlocks && isExpanded && !isDragged && (0,external_wp_element_namespaceObject.createElement)(ListViewBranch, {
@@ -36225,7 +36493,7 @@ ListViewBranch.defaultProps = {
36225
  selectBlock: () => {}
36226
  };
36227
  /* harmony default export */ var branch = ((0,external_wp_element_namespaceObject.memo)(ListViewBranch));
36228
- //# sourceMappingURL=branch.js.map
36229
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/drop-indicator.js
36230
 
36231
 
@@ -36335,7 +36603,131 @@ function ListViewDropIndicator(_ref) {
36335
  className: "block-editor-list-view-drop-indicator__line"
36336
  }));
36337
  }
36338
- //# sourceMappingURL=drop-indicator.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36339
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-client-ids.js
36340
  /**
36341
  * WordPress dependencies
@@ -36360,7 +36752,7 @@ function useListViewClientIds(blocks) {
36360
  };
36361
  }, [blocks]);
36362
  }
36363
- //# sourceMappingURL=use-list-view-client-ids.js.map
36364
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-drop-zone.js
36365
  /**
36366
  * WordPress dependencies
@@ -36594,7 +36986,58 @@ function useListViewDropZone() {
36594
  target
36595
  };
36596
  }
36597
- //# sourceMappingURL=use-list-view-drop-zone.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36598
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/index.js
36599
 
36600
 
@@ -36618,49 +37061,39 @@ function useListViewDropZone() {
36618
 
36619
 
36620
 
36621
- const list_view_noop = () => {};
36622
-
36623
- const expanded = (state, action) => {
36624
- switch (action.type) {
36625
- case 'expand':
36626
- return { ...state,
36627
- ...{
36628
- [action.clientId]: true
36629
- }
36630
- };
36631
 
36632
- case 'collapse':
36633
- return { ...state,
36634
- ...{
36635
- [action.clientId]: false
36636
- }
36637
- };
36638
 
36639
- default:
36640
- return state;
 
 
 
 
 
36641
  }
 
 
36642
  };
 
 
36643
  /**
36644
  * Wrap `ListViewRows` with `TreeGrid`. ListViewRows is a
36645
  * recursive component (it renders itself), so this ensures TreeGrid is only
36646
  * present at the very top of the navigation grid.
36647
  *
36648
- * @param {Object} props Components props.
36649
- * @param {Array} props.blocks Custom subset of block client IDs to be used instead of the default hierarchy.
36650
- * @param {Function} props.onSelect Block selection callback.
36651
- * @param {boolean} props.showNestedBlocks Flag to enable displaying nested blocks.
36652
- * @param {boolean} props.showBlockMovers Flag to enable block movers
36653
- * @param {boolean} props.__experimentalFeatures Flag to enable experimental features.
36654
- * @param {boolean} props.__experimentalPersistentListViewFeatures Flag to enable features for the Persistent List View experiment.
36655
- * @param {boolean} props.__experimentalHideContainerBlockActions Flag to hide actions of top level blocks (like core/widget-area)
36656
- * @param {Object} ref Forwarded ref
36657
  */
36658
 
36659
-
36660
  function ListView(_ref, ref) {
36661
  let {
36662
  blocks,
36663
- onSelect = list_view_noop,
36664
  __experimentalFeatures,
36665
  __experimentalPersistentListViewFeatures,
36666
  __experimentalHideContainerBlockActions,
@@ -36673,9 +37106,6 @@ function ListView(_ref, ref) {
36673
  draggedClientIds,
36674
  selectedClientIds
36675
  } = useListViewClientIds(blocks);
36676
- const {
36677
- selectBlock
36678
- } = (0,external_wp_data_namespaceObject.useDispatch)(store);
36679
  const {
36680
  visibleBlockCount
36681
  } = (0,external_wp_data_namespaceObject.useSelect)(select => {
@@ -36688,10 +37118,9 @@ function ListView(_ref, ref) {
36688
  visibleBlockCount: getGlobalBlockCount() - draggedBlockCount
36689
  };
36690
  }, [draggedClientIds]);
36691
- const selectEditorBlock = (0,external_wp_element_namespaceObject.useCallback)(clientId => {
36692
- selectBlock(clientId);
36693
- onSelect(clientId);
36694
- }, [selectBlock, onSelect]);
36695
  const [expandedState, setExpandedState] = (0,external_wp_element_namespaceObject.useReducer)(expanded, {});
36696
  const {
36697
  ref: dropZoneRef,
@@ -36700,13 +37129,23 @@ function ListView(_ref, ref) {
36700
  const elementRef = (0,external_wp_element_namespaceObject.useRef)();
36701
  const treeGridRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([elementRef, dropZoneRef, ref]);
36702
  const isMounted = (0,external_wp_element_namespaceObject.useRef)(false);
 
 
 
 
 
 
 
 
 
 
36703
  (0,external_wp_element_namespaceObject.useEffect)(() => {
36704
  isMounted.current = true;
36705
  }, []); // List View renders a fixed number of items and relies on each having a fixed item height of 36px.
36706
  // If this value changes, we should also change the itemHeight value set in useFixedWindowList.
36707
  // See: https://github.com/WordPress/gutenberg/pull/35230 for additional context.
36708
 
36709
- const [fixedListWindow] = (0,external_wp_compose_namespaceObject.__experimentalUseFixedWindowList)(elementRef, 36, visibleBlockCount, {
36710
  useWindowing: __experimentalPersistentListViewFeatures,
36711
  windowOverscan: 40
36712
  });
@@ -36717,7 +37156,7 @@ function ListView(_ref, ref) {
36717
 
36718
  setExpandedState({
36719
  type: 'expand',
36720
- clientId
36721
  });
36722
  }, [setExpandedState]);
36723
  const collapse = (0,external_wp_element_namespaceObject.useCallback)(clientId => {
@@ -36727,7 +37166,7 @@ function ListView(_ref, ref) {
36727
 
36728
  setExpandedState({
36729
  type: 'collapse',
36730
- clientId
36731
  });
36732
  }, [setExpandedState]);
36733
  const expandRow = (0,external_wp_element_namespaceObject.useCallback)(row => {
@@ -36740,6 +37179,13 @@ function ListView(_ref, ref) {
36740
 
36741
  collapse(row === null || row === void 0 ? void 0 : (_row$dataset2 = row.dataset) === null || _row$dataset2 === void 0 ? void 0 : _row$dataset2.block);
36742
  }, [collapse]);
 
 
 
 
 
 
 
36743
  const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
36744
  __experimentalFeatures,
36745
  __experimentalPersistentListViewFeatures,
@@ -36760,7 +37206,8 @@ function ListView(_ref, ref) {
36760
  "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
36761
  ref: treeGridRef,
36762
  onCollapseRow: collapseRow,
36763
- onExpandRow: expandRow
 
36764
  }, (0,external_wp_element_namespaceObject.createElement)(ListViewContext.Provider, {
36765
  value: contextValue
36766
  }, (0,external_wp_element_namespaceObject.createElement)(branch, _extends({
@@ -36774,7 +37221,7 @@ function ListView(_ref, ref) {
36774
  }
36775
 
36776
  /* harmony default export */ var components_list_view = ((0,external_wp_element_namespaceObject.forwardRef)(ListView));
36777
- //# sourceMappingURL=index.js.map
36778
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-navigation/dropdown.js
36779
 
36780
 
@@ -36851,7 +37298,7 @@ function BlockNavigationDropdown(_ref2, ref) {
36851
  }
36852
 
36853
  /* harmony default export */ var dropdown = ((0,external_wp_element_namespaceObject.forwardRef)(BlockNavigationDropdown));
36854
- //# sourceMappingURL=dropdown.js.map
36855
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/preview-panel.js
36856
 
36857
 
@@ -36887,7 +37334,7 @@ function BlockStylesPreviewPanel(_ref) {
36887
  isStylePreview: true
36888
  });
36889
  }
36890
- //# sourceMappingURL=preview-panel.js.map
36891
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/index.js
36892
 
36893
 
@@ -37037,7 +37484,7 @@ function BlockStyles(_ref3) {
37037
 
37038
  BlockStyles.Slot = BlockStylesPreviewPanelSlot;
37039
  /* harmony default export */ var block_styles = (BlockStyles);
37040
- //# sourceMappingURL=index.js.map
37041
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/layout.js
37042
 
37043
 
@@ -37052,7 +37499,7 @@ const layout = (0,external_wp_element_namespaceObject.createElement)(external_wp
37052
  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"
37053
  }));
37054
  /* harmony default export */ var library_layout = (layout);
37055
- //# sourceMappingURL=layout.js.map
37056
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
37057
 
37058
 
@@ -37110,7 +37557,7 @@ function BlockVariationPicker(_ref) {
37110
  }
37111
 
37112
  /* harmony default export */ var block_variation_picker = (BlockVariationPicker);
37113
- //# sourceMappingURL=index.js.map
37114
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/grid.js
37115
 
37116
 
@@ -37127,13 +37574,13 @@ const grid = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
37127
  clipRule: "evenodd"
37128
  }));
37129
  /* harmony default export */ var library_grid = (grid);
37130
- //# sourceMappingURL=grid.js.map
37131
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
37132
  const VIEWMODES = {
37133
  carousel: 'carousel',
37134
  grid: 'grid'
37135
  };
37136
- //# sourceMappingURL=constants.js.map
37137
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/setup-toolbar.js
37138
 
37139
 
@@ -37225,7 +37672,7 @@ const SetupToolbar = _ref3 => {
37225
  };
37226
 
37227
  /* harmony default export */ var setup_toolbar = (SetupToolbar);
37228
- //# sourceMappingURL=setup-toolbar.js.map
37229
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.js
37230
  /**
37231
  * WordPress dependencies
@@ -37255,7 +37702,7 @@ function usePatternsSetup(clientId, blockName, filterPatternsFn) {
37255
  }
37256
 
37257
  /* harmony default export */ var use_patterns_setup = (usePatternsSetup);
37258
- //# sourceMappingURL=use-patterns-setup.js.map
37259
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/index.js
37260
 
37261
 
@@ -37425,7 +37872,7 @@ const BlockPatternSetup = _ref4 => {
37425
  };
37426
 
37427
  /* harmony default export */ var block_pattern_setup = (BlockPatternSetup);
37428
- //# sourceMappingURL=index.js.map
37429
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/block-variation-transforms.js
37430
  /**
37431
  * External dependencies
@@ -37458,7 +37905,7 @@ const __experimentalGetMatchingVariation = (blockAttributes, variations) => {
37458
  if (matches.length !== 1) return;
37459
  return matches[0];
37460
  };
37461
- //# sourceMappingURL=block-variation-transforms.js.map
37462
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-transforms/index.js
37463
 
37464
 
@@ -37555,7 +38002,7 @@ function __experimentalBlockVariationTransforms(_ref) {
37555
  }
37556
 
37557
  /* harmony default export */ var block_variation_transforms = (__experimentalBlockVariationTransforms);
37558
- //# sourceMappingURL=index.js.map
37559
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/icons.js
37560
 
37561
 
@@ -37581,7 +38028,7 @@ const alignTop = (0,external_wp_element_namespaceObject.createElement)(external_
37581
  }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
37582
  d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z"
37583
  }));
37584
- //# sourceMappingURL=icons.js.map
37585
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/ui.js
37586
 
37587
 
@@ -37654,7 +38101,7 @@ function BlockVerticalAlignmentUI(_ref) {
37654
 
37655
 
37656
  /* harmony default export */ var block_vertical_alignment_control_ui = (BlockVerticalAlignmentUI);
37657
- //# sourceMappingURL=ui.js.map
37658
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/index.js
37659
 
37660
 
@@ -37673,7 +38120,7 @@ function BlockVerticalAlignmentToolbar(props) {
37673
  isToolbar: true
37674
  }));
37675
  }
37676
- //# sourceMappingURL=index.js.map
37677
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
37678
 
37679
 
@@ -37706,7 +38153,7 @@ function BlockVerticalAlignmentToolbar(props) {
37706
  }));
37707
  };
37708
  }, 'withColorContext'));
37709
- //# sourceMappingURL=with-color-context.js.map
37710
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/index.js
37711
  /**
37712
  * WordPress dependencies
@@ -37718,7 +38165,7 @@ function BlockVerticalAlignmentToolbar(props) {
37718
 
37719
 
37720
  /* harmony default export */ var color_palette = (with_color_context(external_wp_components_namespaceObject.ColorPalette));
37721
- //# sourceMappingURL=index.js.map
37722
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/control.js
37723
 
37724
 
@@ -37740,7 +38187,7 @@ function ColorPaletteControl(_ref) {
37740
  disableCustomGradients: true
37741
  }));
37742
  }
37743
- //# sourceMappingURL=control.js.map
37744
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.js
37745
 
37746
 
@@ -37882,7 +38329,7 @@ const PanelColorGradientSettings = props => {
37882
  };
37883
 
37884
  /* harmony default export */ var panel_color_gradient_settings = (PanelColorGradientSettings);
37885
- //# sourceMappingURL=panel-color-gradient-settings.js.map
37886
  ;// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
37887
  /*! *****************************************************************************
37888
  Copyright (c) Microsoft Corporation.
@@ -38838,7 +39285,6 @@ function (_super) {
38838
  }((external_React_default()).Component);
38839
 
38840
  /* harmony default export */ var index_module = (Cropper);
38841
- //# sourceMappingURL=index.module.js.map
38842
 
38843
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/constants.js
38844
  const constants_MIN_ZOOM = 100;
@@ -38847,7 +39293,7 @@ const constants_POPOVER_PROPS = {
38847
  position: 'bottom right',
38848
  isAlternate: true
38849
  };
38850
- //# sourceMappingURL=constants.js.map
38851
  ;// CONCATENATED MODULE: external ["wp","apiFetch"]
38852
  var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
38853
  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
@@ -38922,7 +39368,7 @@ function useSaveImage(_ref) {
38922
  cancel
38923
  }), [isInProgress, apply, cancel]);
38924
  }
38925
- //# sourceMappingURL=use-save-image.js.map
38926
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/use-transform-image.js
38927
  /**
38928
  * WordPress dependencies
@@ -39051,7 +39497,7 @@ function useTransformImage(imageProperties, isEditing) {
39051
  }, [isEditing, initializeTransformValues]);
39052
  return transformState;
39053
  }
39054
- //# sourceMappingURL=use-transform-image.js.map
39055
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/context.js
39056
 
39057
 
@@ -39097,7 +39543,7 @@ function ImageEditingProvider(_ref) {
39097
  value: providerValue
39098
  }, children);
39099
  }
39100
- //# sourceMappingURL=context.js.map
39101
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/cropper.js
39102
 
39103
 
@@ -39168,7 +39614,7 @@ function ImageCropper(_ref) {
39168
  }
39169
  }), isInProgress && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
39170
  }
39171
- //# sourceMappingURL=cropper.js.map
39172
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/search.js
39173
 
39174
 
@@ -39183,7 +39629,7 @@ const search = (0,external_wp_element_namespaceObject.createElement)(external_wp
39183
  d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
39184
  }));
39185
  /* harmony default export */ var library_search = (search);
39186
- //# sourceMappingURL=search.js.map
39187
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/zoom-dropdown.js
39188
 
39189
 
@@ -39230,7 +39676,7 @@ function ZoomDropdown() {
39230
  })
39231
  });
39232
  }
39233
- //# sourceMappingURL=zoom-dropdown.js.map
39234
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/aspect-ratio.js
39235
 
39236
 
@@ -39245,7 +39691,7 @@ const aspectRatio = (0,external_wp_element_namespaceObject.createElement)(extern
39245
  d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"
39246
  }));
39247
  /* harmony default export */ var aspect_ratio = (aspectRatio);
39248
- //# sourceMappingURL=aspect-ratio.js.map
39249
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
39250
 
39251
 
@@ -39369,7 +39815,7 @@ function AspectRatioDropdown(_ref3) {
39369
  }));
39370
  });
39371
  }
39372
- //# sourceMappingURL=aspect-ratio-dropdown.js.map
39373
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/rotate-right.js
39374
 
39375
 
@@ -39384,7 +39830,7 @@ const rotateRight = (0,external_wp_element_namespaceObject.createElement)(extern
39384
  d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"
39385
  }));
39386
  /* harmony default export */ var rotate_right = (rotateRight);
39387
- //# sourceMappingURL=rotate-right.js.map
39388
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/rotation-button.js
39389
 
39390
 
@@ -39411,7 +39857,7 @@ function RotationButton() {
39411
  disabled: isInProgress
39412
  });
39413
  }
39414
- //# sourceMappingURL=rotation-button.js.map
39415
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/form-controls.js
39416
 
39417
 
@@ -39438,7 +39884,7 @@ function FormControls() {
39438
  onClick: cancel
39439
  }, (0,external_wp_i18n_namespaceObject.__)('Cancel')));
39440
  }
39441
- //# sourceMappingURL=form-controls.js.map
39442
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/index.js
39443
 
39444
 
@@ -39477,7 +39923,7 @@ function ImageEditor(_ref) {
39477
  })), (0,external_wp_element_namespaceObject.createElement)(RotationButton, null)), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_wp_element_namespaceObject.createElement)(FormControls, null))));
39478
  }
39479
 
39480
- //# sourceMappingURL=index.js.map
39481
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/use-dimension-handler.js
39482
  /**
39483
  * WordPress dependencies
@@ -39540,7 +39986,7 @@ function useDimensionHandler(customHeight, customWidth, defaultHeight, defaultWi
39540
  updateDimensions
39541
  };
39542
  }
39543
- //# sourceMappingURL=use-dimension-handler.js.map
39544
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/index.js
39545
 
39546
 
@@ -39623,7 +40069,7 @@ function ImageSizeControl(_ref) {
39623
  onClick: () => updateDimensions()
39624
  }, (0,external_wp_i18n_namespaceObject.__)('Reset')))));
39625
  }
39626
- //# sourceMappingURL=index.js.map
39627
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/keyboard-return.js
39628
 
39629
 
@@ -39638,7 +40084,7 @@ const keyboardReturn = (0,external_wp_element_namespaceObject.createElement)(ext
39638
  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"
39639
  }));
39640
  /* harmony default export */ var keyboard_return = (keyboardReturn);
39641
- //# sourceMappingURL=keyboard-return.js.map
39642
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
39643
 
39644
 
@@ -39685,7 +40131,7 @@ const LinkControlSettingsDrawer = _ref => {
39685
  };
39686
 
39687
  /* harmony default export */ var settings_drawer = (LinkControlSettingsDrawer);
39688
- //# sourceMappingURL=settings-drawer.js.map
39689
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/index.js
39690
 
39691
 
@@ -40184,7 +40630,7 @@ class URLInput extends external_wp_element_namespaceObject.Component {
40184
  __experimentalFetchLinkSuggestions: getSettings().__experimentalFetchLinkSuggestions
40185
  };
40186
  }))(URLInput));
40187
- //# sourceMappingURL=index.js.map
40188
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-create-button.js
40189
 
40190
 
@@ -40242,7 +40688,7 @@ const LinkControlSearchCreate = _ref => {
40242
  }, text)));
40243
  };
40244
  /* harmony default export */ var search_create_button = (LinkControlSearchCreate);
40245
- //# sourceMappingURL=search-create-button.js.map
40246
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/globe.js
40247
 
40248
 
@@ -40257,7 +40703,7 @@ const globe = (0,external_wp_element_namespaceObject.createElement)(external_wp_
40257
  d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
40258
  }));
40259
  /* harmony default export */ var library_globe = (globe);
40260
- //# sourceMappingURL=globe.js.map
40261
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-item.js
40262
 
40263
 
@@ -40319,7 +40765,7 @@ function getVisualTypeName(suggestion) {
40319
  }
40320
 
40321
  /* harmony default export */ var search_item = (LinkControlSearchItem);
40322
- //# sourceMappingURL=search-item.js.map
40323
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/constants.js
40324
  /**
40325
  * WordPress dependencies
@@ -40333,7 +40779,7 @@ const DEFAULT_LINK_SETTINGS = [{
40333
  id: 'opensInNewTab',
40334
  title: (0,external_wp_i18n_namespaceObject.__)('Open in new tab')
40335
  }];
40336
- //# sourceMappingURL=constants.js.map
40337
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-results.js
40338
 
40339
 
@@ -40435,7 +40881,7 @@ function LinkControlSearchResults(_ref) {
40435
  });
40436
  })));
40437
  }
40438
- //# sourceMappingURL=search-results.js.map
40439
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/is-url-like.js
40440
  /**
40441
  * External dependencies
@@ -40462,7 +40908,7 @@ function isURLLike(val) {
40462
  const isInternal = (0,external_lodash_namespaceObject.startsWith)(val, '#');
40463
  return (0,external_wp_url_namespaceObject.isURL)(val) || val && val.includes('www.') || isInternal;
40464
  }
40465
- //# sourceMappingURL=is-url-like.js.map
40466
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-search-handler.js
40467
  /**
40468
  * WordPress dependencies
@@ -40589,7 +41035,7 @@ function useSearchHandler(suggestionsQuery, allowDirectEntry, withCreateSuggesti
40589
  }, fetchSearchSuggestions, directEntryHandler, withCreateSuggestion, withURLSuggestion, pageOnFront);
40590
  }, [directEntryHandler, fetchSearchSuggestions, withCreateSuggestion]);
40591
  }
40592
- //# sourceMappingURL=use-search-handler.js.map
40593
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-input.js
40594
 
40595
 
@@ -40730,7 +41176,7 @@ const LinkControlSearchInput = (0,external_wp_element_namespaceObject.forwardRef
40730
  }), children);
40731
  });
40732
  /* harmony default export */ var search_input = (LinkControlSearchInput);
40733
- //# sourceMappingURL=search-input.js.map
40734
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/info.js
40735
 
40736
 
@@ -40745,7 +41191,7 @@ const info = (0,external_wp_element_namespaceObject.createElement)(external_wp_p
40745
  d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
40746
  }));
40747
  /* harmony default export */ var library_info = (info);
40748
- //# sourceMappingURL=info.js.map
40749
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/pencil.js
40750
 
40751
 
@@ -40760,14 +41206,14 @@ const pencil = (0,external_wp_element_namespaceObject.createElement)(external_wp
40760
  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"
40761
  }));
40762
  /* harmony default export */ var library_pencil = (pencil);
40763
- //# sourceMappingURL=pencil.js.map
40764
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/edit.js
40765
  /**
40766
  * Internal dependencies
40767
  */
40768
 
40769
  /* harmony default export */ var library_edit = (library_pencil);
40770
- //# sourceMappingURL=edit.js.map
40771
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/viewer-slot.js
40772
  /**
40773
  * WordPress dependencies
@@ -40779,7 +41225,7 @@ const {
40779
  } = (0,external_wp_components_namespaceObject.createSlotFill)('BlockEditorLinkControlViewer');
40780
 
40781
  /* harmony default export */ var viewer_slot = ((/* unused pure expression or super */ null && (ViewerSlot)));
40782
- //# sourceMappingURL=viewer-slot.js.map
40783
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-rich-url-data.js
40784
  /**
40785
  * Internal dependencies
@@ -40866,7 +41312,7 @@ function useRemoteUrlData(url) {
40866
  }
40867
 
40868
  /* harmony default export */ var use_rich_url_data = (useRemoteUrlData);
40869
- //# sourceMappingURL=use-rich-url-data.js.map
40870
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/link-preview.js
40871
 
40872
 
@@ -40990,7 +41436,7 @@ function LinkPreview(_ref) {
40990
  numberOfLines: "2"
40991
  }, richData.description))));
40992
  }
40993
- //# sourceMappingURL=link-preview.js.map
40994
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-create-page.js
40995
  /**
40996
  * WordPress dependencies
@@ -41069,7 +41515,7 @@ const makeCancelable = promise => {
41069
 
41070
  };
41071
  };
41072
- //# sourceMappingURL=use-create-page.js.map
41073
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/index.js
41074
 
41075
 
@@ -41385,7 +41831,7 @@ function LinkControl(_ref) {
41385
 
41386
  LinkControl.ViewerFill = ViewerFill;
41387
  /* harmony default export */ var link_control = (LinkControl);
41388
- //# sourceMappingURL=index.js.map
41389
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/media.js
41390
 
41391
 
@@ -41400,7 +41846,7 @@ const media = (0,external_wp_element_namespaceObject.createElement)(external_wp_
41400
  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"
41401
  }));
41402
  /* harmony default export */ var library_media = (media);
41403
- //# sourceMappingURL=media.js.map
41404
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/upload.js
41405
 
41406
 
@@ -41415,7 +41861,7 @@ const upload = (0,external_wp_element_namespaceObject.createElement)(external_wp
41415
  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"
41416
  }));
41417
  /* harmony default export */ var library_upload = (upload);
41418
- //# sourceMappingURL=upload.js.map
41419
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
41420
  /**
41421
  * WordPress dependencies
@@ -41436,7 +41882,7 @@ const MediaUpload = () => null;
41436
 
41437
 
41438
  /* harmony default export */ var media_upload = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaUpload')(MediaUpload));
41439
- //# sourceMappingURL=index.js.map
41440
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/check.js
41441
  /**
41442
  * WordPress dependencies
@@ -41465,7 +41911,7 @@ function MediaUploadCheck(_ref) {
41465
  */
41466
 
41467
  /* harmony default export */ var media_upload_check = (MediaUploadCheck);
41468
- //# sourceMappingURL=check.js.map
41469
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-replace-flow/index.js
41470
 
41471
 
@@ -41689,7 +42135,7 @@ const MediaReplaceFlow = _ref => {
41689
  removeNotice
41690
  };
41691
  }), (0,external_wp_components_namespaceObject.withFilters)('editor.MediaReplaceFlow')])(MediaReplaceFlow));
41692
- //# sourceMappingURL=index.js.map
41693
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer-url.js
41694
 
41695
 
@@ -41722,7 +42168,7 @@ function LinkViewerURL(_ref) {
41722
  href: url
41723
  }, urlLabel || (0,external_wp_url_namespaceObject.filterURLForDisplay)((0,external_wp_url_namespaceObject.safeDecodeURI)(url)));
41724
  }
41725
- //# sourceMappingURL=link-viewer-url.js.map
41726
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer.js
41727
 
41728
 
@@ -41764,7 +42210,7 @@ function LinkViewer(_ref) {
41764
  onClick: onEditLinkClick
41765
  }));
41766
  }
41767
- //# sourceMappingURL=link-viewer.js.map
41768
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-editor.js
41769
 
41770
 
@@ -41805,7 +42251,7 @@ function LinkEditor(_ref) {
41805
  type: "submit"
41806
  }));
41807
  }
41808
- //# sourceMappingURL=link-editor.js.map
41809
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/index.js
41810
 
41811
 
@@ -41868,7 +42314,7 @@ URLPopover.LinkViewer = LinkViewer;
41868
  */
41869
 
41870
  /* harmony default export */ var url_popover = (URLPopover);
41871
- //# sourceMappingURL=index.js.map
41872
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-placeholder/index.js
41873
 
41874
 
@@ -42242,7 +42688,7 @@ function MediaPlaceholder(_ref2) {
42242
  */
42243
 
42244
  /* harmony default export */ var media_placeholder = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaPlaceholder')(MediaPlaceholder));
42245
- //# sourceMappingURL=index.js.map
42246
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/panel-color-settings/index.js
42247
 
42248
 
@@ -42280,7 +42726,7 @@ const PanelColorSettings = _ref => {
42280
  };
42281
 
42282
  /* harmony default export */ var panel_color_settings = (PanelColorSettings);
42283
- //# sourceMappingURL=index.js.map
42284
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar/index.js
42285
 
42286
 
@@ -42347,7 +42793,7 @@ const FormatToolbar = () => {
42347
  };
42348
 
42349
  /* harmony default export */ var format_toolbar = (FormatToolbar);
42350
- //# sourceMappingURL=index.js.map
42351
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar-container.js
42352
 
42353
 
@@ -42389,7 +42835,7 @@ const FormatToolbarContainer = _ref => {
42389
  };
42390
 
42391
  /* harmony default export */ var format_toolbar_container = (FormatToolbarContainer);
42392
- //# sourceMappingURL=format-toolbar-container.js.map
42393
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
42394
  /**
42395
  * WordPress dependencies
@@ -42436,7 +42882,7 @@ function useUndoAutomaticChange() {
42436
  };
42437
  }, []);
42438
  }
42439
- //# sourceMappingURL=use-undo-automatic-change.js.map
42440
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-caret-in-format.js
42441
  /**
42442
  * WordPress dependencies
@@ -42470,7 +42916,7 @@ function useCaretInFormat(_ref) {
42470
  }
42471
  }, [hasActiveFormats]);
42472
  }
42473
- //# sourceMappingURL=use-caret-in-format.js.map
42474
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-mark-persistent.js
42475
  /**
42476
  * WordPress dependencies
@@ -42515,7 +42961,7 @@ function useMarkPersistent(_ref) {
42515
  __unstableMarkLastChangeAsPersistent();
42516
  }, [html, hasActiveFormats]);
42517
  }
42518
- //# sourceMappingURL=use-mark-persistent.js.map
42519
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/file-paste-handler.js
42520
  /**
42521
  * WordPress dependencies
@@ -42529,7 +42975,7 @@ function filePasteHandler(files) {
42529
  return /^image\/(?:jpe?g|png|gif|webp)$/.test(type);
42530
  }).map(file => `<img src="${(0,external_wp_blob_namespaceObject.createBlobURL)(file)}">`).join('');
42531
  }
42532
- //# sourceMappingURL=file-paste-handler.js.map
42533
  ;// CONCATENATED MODULE: external ["wp","shortcode"]
42534
  var external_wp_shortcode_namespaceObject = window["wp"]["shortcode"];
42535
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
@@ -42610,7 +43056,7 @@ function createLinkInParagraph(url, onReplace) {
42610
  content: renderToString(link)
42611
  }));
42612
  }
42613
- //# sourceMappingURL=utils.js.map
42614
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/split-value.js
42615
  /**
42616
  * WordPress dependencies
@@ -42681,7 +43127,7 @@ function splitValue(_ref) {
42681
  const initialPosition = hasPastedBlocks ? -1 : 0;
42682
  onReplace(blocks, indexToSelect, initialPosition);
42683
  }
42684
- //# sourceMappingURL=split-value.js.map
42685
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-paste-handler.js
42686
  /**
42687
  * WordPress dependencies
@@ -42742,7 +43188,6 @@ function usePasteHandler(props) {
42742
  } = propsRef.current;
42743
 
42744
  if (!isSelected) {
42745
- event.preventDefault();
42746
  return;
42747
  }
42748
 
@@ -42946,7 +43391,7 @@ function removeCharsetMetaTag(html) {
42946
 
42947
  return html;
42948
  }
42949
- //# sourceMappingURL=use-paste-handler.js.map
42950
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/prevent-event-discovery.js
42951
  /**
42952
  * WordPress dependencies
@@ -42972,7 +43417,7 @@ function preventEventDiscovery(value) {
42972
 
42973
  return (0,external_wp_richText_namespaceObject.insert)(value, addText);
42974
  }
42975
- //# sourceMappingURL=prevent-event-discovery.js.map
42976
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-input-rules.js
42977
  /**
42978
  * WordPress dependencies
@@ -43094,7 +43539,7 @@ function useInputRules(props) {
43094
  };
43095
  }, []);
43096
  }
43097
- //# sourceMappingURL=use-input-rules.js.map
43098
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-enter.js
43099
  /**
43100
  * WordPress dependencies
@@ -43217,7 +43662,7 @@ function useEnter(props) {
43217
  };
43218
  }, []);
43219
  }
43220
- //# sourceMappingURL=use-enter.js.map
43221
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-format-types.js
43222
  /**
43223
  * WordPress dependencies
@@ -43339,7 +43784,7 @@ function useFormatTypes(_ref) {
43339
  dependencies
43340
  };
43341
  }
43342
- //# sourceMappingURL=use-format-types.js.map
43343
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-remove-browser-shortcuts.js
43344
  /**
43345
  * WordPress dependencies
@@ -43367,7 +43812,7 @@ function useRemoveBrowserShortcuts() {
43367
  };
43368
  }, []);
43369
  }
43370
- //# sourceMappingURL=use-remove-browser-shortcuts.js.map
43371
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-shortcuts.js
43372
  /**
43373
  * WordPress dependencies
@@ -43387,7 +43832,7 @@ function useShortcuts(keyboardShortcuts) {
43387
  };
43388
  }, []);
43389
  }
43390
- //# sourceMappingURL=use-shortcuts.js.map
43391
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-input-events.js
43392
  /**
43393
  * WordPress dependencies
@@ -43407,7 +43852,7 @@ function useInputEvents(inputEvents) {
43407
  };
43408
  }, []);
43409
  }
43410
- //# sourceMappingURL=use-input-events.js.map
43411
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-edit.js
43412
 
43413
 
@@ -43475,7 +43920,7 @@ function FormatEdit(_ref) {
43475
  });
43476
  });
43477
  }
43478
- //# sourceMappingURL=format-edit.js.map
43479
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/index.js
43480
 
43481
 
@@ -43574,9 +44019,7 @@ function RichTextWrapper(_ref, forwardedRef) {
43574
  const selector = select => {
43575
  const {
43576
  getSelectionStart,
43577
- getSelectionEnd,
43578
- isMultiSelecting,
43579
- hasMultiSelection
43580
  } = select(store);
43581
  const selectionStart = getSelectionStart();
43582
  const selectionEnd = getSelectionEnd();
@@ -43591,8 +44034,7 @@ function RichTextWrapper(_ref, forwardedRef) {
43591
  return {
43592
  selectionStart: isSelected ? selectionStart.offset : undefined,
43593
  selectionEnd: isSelected ? selectionEnd.offset : undefined,
43594
- isSelected,
43595
- disabled: isMultiSelecting() || hasMultiSelection()
43596
  };
43597
  }; // This selector must run on every render so the right selection state is
43598
  // retreived from the store on merge.
@@ -43602,8 +44044,7 @@ function RichTextWrapper(_ref, forwardedRef) {
43602
  const {
43603
  selectionStart,
43604
  selectionEnd,
43605
- isSelected,
43606
- disabled
43607
  } = (0,external_wp_data_namespaceObject.useSelect)(selector);
43608
  const {
43609
  selectionChange
@@ -43770,7 +44211,7 @@ function RichTextWrapper(_ref, forwardedRef) {
43770
  }), (0,external_wp_element_namespaceObject.createElement)(TagName // Overridable props.
43771
  , _extends({
43772
  role: "textbox",
43773
- "aria-multiline": true,
43774
  "aria-label": placeholder
43775
  }, props, autocompleteProps, {
43776
  ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([autocompleteProps.ref, props.ref, richTextRef, useInputRules({
@@ -43803,10 +44244,9 @@ function RichTextWrapper(_ref, forwardedRef) {
43803
  onChange,
43804
  disableLineBreaks,
43805
  onSplitAtEnd
43806
- }), anchorRef, forwardedRef]) // Do not set the attribute if disabled.
43807
- ,
43808
- contentEditable: disabled ? undefined : true,
43809
- suppressContentEditableWarning: !disabled,
43810
  className: classnames_default()('block-editor-rich-text__editable', props.className, 'rich-text'),
43811
  onFocus: unstableOnFocus,
43812
  onKeyDown: onKeyDown
@@ -43869,7 +44309,7 @@ ForwardedRichTextContainer.isEmpty = value => {
43869
 
43870
 
43871
 
43872
- //# sourceMappingURL=index.js.map
43873
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editable-text/index.js
43874
 
43875
 
@@ -43906,7 +44346,7 @@ EditableText.Content = _ref => {
43906
 
43907
 
43908
  /* harmony default export */ var editable_text = (EditableText);
43909
- //# sourceMappingURL=index.js.map
43910
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/plain-text/index.js
43911
 
43912
 
@@ -43954,7 +44394,7 @@ const PlainText = (0,external_wp_element_namespaceObject.forwardRef)((_ref, ref)
43954
  }, remainingProps));
43955
  });
43956
  /* harmony default export */ var plain_text = (PlainText);
43957
- //# sourceMappingURL=index.js.map
43958
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/label.js
43959
 
43960
 
@@ -43982,7 +44422,7 @@ function ResponsiveBlockControlLabel(_ref) {
43982
  id: `rbc-desc-${instanceId}`
43983
  }, accessibleLabel));
43984
  }
43985
- //# sourceMappingURL=label.js.map
43986
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/index.js
43987
 
43988
 
@@ -44075,7 +44515,7 @@ function ResponsiveBlockControl(props) {
44075
  }
44076
 
44077
  /* harmony default export */ var responsive_block_control = (ResponsiveBlockControl);
44078
- //# sourceMappingURL=index.js.map
44079
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/shortcut.js
44080
  /**
44081
  * WordPress dependencies
@@ -44111,7 +44551,7 @@ function RichTextShortcut(_ref) {
44111
  }, [character, type]);
44112
  return null;
44113
  }
44114
- //# sourceMappingURL=shortcut.js.map
44115
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/toolbar-button.js
44116
 
44117
 
@@ -44145,7 +44585,7 @@ function RichTextToolbarButton(_ref) {
44145
  shortcut: shortcut
44146
  })));
44147
  }
44148
- //# sourceMappingURL=toolbar-button.js.map
44149
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/input-event.js
44150
  /**
44151
  * WordPress dependencies
@@ -44179,7 +44619,7 @@ function __unstableRichTextInputEvent(_ref) {
44179
  }, [inputType]);
44180
  return null;
44181
  }
44182
- //# sourceMappingURL=input-event.js.map
44183
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/tool-selector/index.js
44184
 
44185
 
@@ -44256,7 +44696,7 @@ function ToolSelector(props, ref) {
44256
  }
44257
 
44258
  /* harmony default export */ var tool_selector = ((0,external_wp_element_namespaceObject.forwardRef)(ToolSelector));
44259
- //# sourceMappingURL=index.js.map
44260
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/unit-control/index.js
44261
 
44262
 
@@ -44283,7 +44723,7 @@ function UnitControl(_ref) {
44283
  units: units
44284
  }, props));
44285
  }
44286
- //# sourceMappingURL=index.js.map
44287
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-left.js
44288
 
44289
 
@@ -44298,7 +44738,7 @@ const arrowLeft = (0,external_wp_element_namespaceObject.createElement)(external
44298
  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"
44299
  }));
44300
  /* harmony default export */ var arrow_left = (arrowLeft);
44301
- //# sourceMappingURL=arrow-left.js.map
44302
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
44303
 
44304
 
@@ -44380,7 +44820,7 @@ class URLInputButton extends external_wp_element_namespaceObject.Component {
44380
 
44381
 
44382
  /* harmony default export */ var url_input_button = (URLInputButton);
44383
- //# sourceMappingURL=button.js.map
44384
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/close.js
44385
 
44386
 
@@ -44395,7 +44835,7 @@ const close_close = (0,external_wp_element_namespaceObject.createElement)(extern
44395
  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"
44396
  }));
44397
  /* harmony default export */ var library_close = (close_close);
44398
- //# sourceMappingURL=close.js.map
44399
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
44400
 
44401
 
@@ -44668,7 +45108,7 @@ const ImageURLInputUI = _ref => {
44668
  };
44669
 
44670
 
44671
- //# sourceMappingURL=image-url-input-ui.js.map
44672
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/preview-options/index.js
44673
 
44674
 
@@ -44725,7 +45165,7 @@ function PreviewOptions(_ref) {
44725
  icon: deviceType === 'Mobile' && library_check
44726
  }, (0,external_wp_i18n_namespaceObject.__)('Mobile'))), children));
44727
  }
44728
- //# sourceMappingURL=index.js.map
44729
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-resize-canvas/index.js
44730
  /**
44731
  * WordPress dependencies
@@ -44797,7 +45237,7 @@ function useResizeCanvas(deviceType) {
44797
 
44798
  return contentInlineStyles(deviceType);
44799
  }
44800
- //# sourceMappingURL=index.js.map
44801
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/skip-to-selected-block/index.js
44802
 
44803
 
@@ -44836,7 +45276,7 @@ const SkipToSelectedBlock = _ref => {
44836
  selectedBlockClientId: select(store).getBlockSelectionStart()
44837
  };
44838
  })(SkipToSelectedBlock));
44839
- //# sourceMappingURL=index.js.map
44840
  ;// CONCATENATED MODULE: external ["wp","wordcount"]
44841
  var external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
44842
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
@@ -44888,7 +45328,7 @@ function MultiSelectionInspector(_ref) {
44888
  blocks: getMultiSelectedBlocks()
44889
  };
44890
  })(MultiSelectionInspector));
44891
- //# sourceMappingURL=index.js.map
44892
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/default-style-picker/index.js
44893
 
44894
 
@@ -44961,7 +45401,7 @@ function DefaultStylePicker(_ref) {
44961
  onChange: selectOnChange
44962
  }));
44963
  }
44964
- //# sourceMappingURL=index.js.map
44965
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-inspector/index.js
44966
 
44967
 
@@ -45118,7 +45558,7 @@ const AdvancedControls = () => {
45118
  };
45119
 
45120
  /* harmony default export */ var block_inspector = (BlockInspector);
45121
- //# sourceMappingURL=index.js.map
45122
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
45123
 
45124
 
@@ -45267,7 +45707,7 @@ function BlockTools(_ref) {
45267
  })))
45268
  );
45269
  }
45270
- //# sourceMappingURL=index.js.map
45271
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/library.js
45272
 
45273
 
@@ -45321,7 +45761,7 @@ function InserterLibrary(_ref, ref) {
45321
  }
45322
 
45323
  /* harmony default export */ var library = ((0,external_wp_element_namespaceObject.forwardRef)(InserterLibrary));
45324
- //# sourceMappingURL=library.js.map
45325
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
45326
  /**
45327
  * WordPress dependencies
@@ -45438,7 +45878,7 @@ function KeyboardShortcutsRegister() {
45438
 
45439
  KeyboardShortcuts.Register = KeyboardShortcutsRegister;
45440
  /* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
45441
- //# sourceMappingURL=index.js.map
45442
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/selection-scroll-into-view/index.js
45443
  /**
45444
  * WordPress dependencies
@@ -45458,7 +45898,7 @@ function MultiSelectScrollIntoView() {
45458
  });
45459
  return null;
45460
  }
45461
- //# sourceMappingURL=index.js.map
45462
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/observe-typing/index.js
45463
 
45464
 
@@ -45690,7 +46130,7 @@ function ObserveTyping(_ref) {
45690
 
45691
 
45692
  /* harmony default export */ var observe_typing = (ObserveTyping);
45693
- //# sourceMappingURL=index.js.map
45694
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/typewriter/index.js
45695
 
45696
 
@@ -45928,7 +46368,7 @@ const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
45928
  */
45929
 
45930
  /* harmony default export */ var typewriter = (TypewriterOrIEBypass);
45931
- //# sourceMappingURL=index.js.map
45932
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-no-recursive-renders/index.js
45933
 
45934
 
@@ -45996,7 +46436,7 @@ function useNoRecursiveRenders(uniqueId) {
45996
  }, [newRenderedBlocks]);
45997
  return [hasAlreadyRendered, Provider];
45998
  }
45999
- //# sourceMappingURL=index.js.map
46000
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
46001
  /*
46002
  * Block Creation Components
@@ -46086,6 +46526,7 @@ function useNoRecursiveRenders(uniqueId) {
46086
 
46087
 
46088
 
 
46089
 
46090
 
46091
 
@@ -46106,61 +46547,7 @@ function useNoRecursiveRenders(uniqueId) {
46106
 
46107
 
46108
 
46109
- //# sourceMappingURL=index.js.map
46110
- ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/theme.js
46111
- /**
46112
- * Internal dependencies
46113
- */
46114
-
46115
- /**
46116
- * Given an array of theme colors checks colors for validity
46117
- *
46118
- * @param {Array} colors The array of theme colors
46119
- *
46120
- * @return {Array} The array of valid theme colors or the default colors
46121
- */
46122
-
46123
- function validateThemeColors(colors) {
46124
- if (colors === undefined) {
46125
- colors = SETTINGS_DEFAULTS.colors;
46126
- } else {
46127
- const validColors = colors.filter(c => c.color);
46128
-
46129
- if (validColors.length === 0) {
46130
- colors = SETTINGS_DEFAULTS.colors;
46131
- } else if (validColors.length < colors.length) {
46132
- // Filter out invalid colors
46133
- colors = validColors;
46134
- }
46135
- }
46136
-
46137
- return colors;
46138
- }
46139
- /**
46140
- * Given an array of theme gradients checks gradients for validity
46141
- *
46142
- * @param {Array} gradients The array of theme gradients
46143
- *
46144
- * @return {Array} The array of valid theme gradients or the default gradients
46145
- */
46146
 
46147
- function validateThemeGradients(gradients) {
46148
- if (gradients === undefined) {
46149
- gradients = SETTINGS_DEFAULTS.gradients;
46150
- } else {
46151
- const validGradients = gradients.filter(c => c.gradient);
46152
-
46153
- if (validGradients.length === 0) {
46154
- gradients = SETTINGS_DEFAULTS.gradients;
46155
- } else if (validGradients.length < gradients.length) {
46156
- // Filter out invalid gradients
46157
- gradients = validGradients;
46158
- }
46159
- }
46160
-
46161
- return gradients;
46162
- }
46163
- //# sourceMappingURL=theme.js.map
46164
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/parse-css-unit-to-px.js
46165
  /**
46166
  * Converts string to object { value, unit }.
@@ -46449,13 +46836,12 @@ function hashOptions(options) {
46449
  }
46450
 
46451
  /* harmony default export */ var parse_css_unit_to_px = (memoizedGetPxFromCssUnit);
46452
- //# sourceMappingURL=parse-css-unit-to-px.js.map
46453
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/index.js
46454
 
46455
 
46456
 
46457
 
46458
- //# sourceMappingURL=index.js.map
46459
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/index.js
46460
  /**
46461
  * Internal dependencies
@@ -46466,7 +46852,7 @@ function hashOptions(options) {
46466
 
46467
 
46468
 
46469
- //# sourceMappingURL=index.js.map
46470
  }();
46471
  (window.wp = window.wp || {}).blockEditor = __webpack_exports__;
46472
  /******/ })()
1
  /******/ (function() { // webpackBootstrap
2
  /******/ var __webpack_modules__ = ({
3
 
4
+ /***/ 6411:
5
  /***/ (function(module, exports) {
6
 
7
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
290
 
291
  /***/ }),
292
 
293
+ /***/ 4403:
294
  /***/ (function(module, exports) {
295
 
296
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
354
 
355
  /***/ }),
356
 
357
+ /***/ 4827:
358
  /***/ (function(module) {
359
 
360
  // This code has been refactored for 140 bytes
388
 
389
  /***/ }),
390
 
391
+ /***/ 1198:
392
  /***/ (function(__unused_webpack_module, exports) {
393
 
394
  "use strict";
695
  components: path.components.slice(0)
696
  };
697
  }
 
698
 
699
 
700
  /***/ }),
701
 
702
+ /***/ 1973:
703
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
704
 
705
  "use strict";
716
  /*istanbul ignore end*/
717
  var
718
  /*istanbul ignore start*/
719
+ _base = _interopRequireDefault(__webpack_require__(1198))
720
  /*istanbul ignore end*/
721
  ;
722
 
740
  function diffChars(oldStr, newStr, options) {
741
  return characterDiff.diff(oldStr, newStr, options);
742
  }
 
743
 
744
 
745
  /***/ }),
746
 
747
+ /***/ 1345:
748
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
749
 
750
  "use strict";
751
 
752
 
753
+ var util = __webpack_require__(5022);
754
 
755
  function scrollIntoView(elem, container, config) {
756
  config = config || {};
885
 
886
  /***/ }),
887
 
888
+ /***/ 5425:
889
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
890
 
891
  "use strict";
892
 
893
 
894
+ module.exports = __webpack_require__(1345);
895
 
896
  /***/ }),
897
 
898
+ /***/ 5022:
899
  /***/ (function(module) {
900
 
901
  "use strict";
1341
 
1342
  /***/ }),
1343
 
1344
+ /***/ 8575:
1345
  /***/ (function(module) {
1346
 
1347
  if (typeof Object.create === 'function') {
1371
 
1372
  /***/ }),
1373
 
1374
+ /***/ 9894:
1375
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1376
 
1377
  // Load in dependencies
1378
+ var computedStyle = __webpack_require__(4827);
1379
 
1380
  /**
1381
  * Calculate the `line-height` of a given node
1475
 
1476
  /***/ }),
1477
 
1478
+ /***/ 5372:
1479
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1480
 
1481
  "use strict";
1488
 
1489
 
1490
 
1491
+ var ReactPropTypesSecret = __webpack_require__(9567);
1492
 
1493
  function emptyFunction() {}
1494
  function emptyFunctionWithReset() {}
1547
 
1548
  /***/ }),
1549
 
1550
+ /***/ 2652:
1551
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1552
 
1553
  /**
1560
  if (false) { var throwOnDirectAccess, ReactIs; } else {
1561
  // By explicitly using `prop-types` you are opting into new production behavior.
1562
  // http://fb.me/prop-types-in-prod
1563
+ module.exports = __webpack_require__(5372)();
1564
  }
1565
 
1566
 
1567
  /***/ }),
1568
 
1569
+ /***/ 9567:
1570
  /***/ (function(module) {
1571
 
1572
  "use strict";
1586
 
1587
  /***/ }),
1588
 
1589
+ /***/ 5438:
1590
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1591
 
1592
  "use strict";
1620
  };
1621
  exports.__esModule = true;
1622
  var React = __webpack_require__(9196);
1623
+ var PropTypes = __webpack_require__(2652);
1624
+ var autosize = __webpack_require__(6411);
1625
+ var _getLineHeight = __webpack_require__(9894);
1626
  var getLineHeight = _getLineHeight;
1627
  var RESIZED = "autosize:resized";
1628
  /**
1720
 
1721
  /***/ }),
1722
 
1723
+ /***/ 773:
1724
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1725
 
1726
  "use strict";
1727
  var __webpack_unused_export__;
1728
 
1729
  __webpack_unused_export__ = true;
1730
+ var TextareaAutosize_1 = __webpack_require__(5438);
1731
  exports.Z = TextareaAutosize_1.TextareaAutosize;
1732
 
1733
 
1734
  /***/ }),
1735
 
1736
+ /***/ 3124:
1737
  /***/ (function(module) {
1738
 
1739
  var traverse = module.exports = function (obj) {
2207
  "__experimentalBlockContentOverlay": function() { return /* reexport */ BlockContentOverlay; },
2208
  "__experimentalBlockFullHeightAligmentControl": function() { return /* reexport */ block_full_height_alignment_control; },
2209
  "__experimentalBlockPatternSetup": function() { return /* reexport */ block_pattern_setup; },
2210
+ "__experimentalBlockPatternsList": function() { return /* reexport */ block_patterns_list; },
2211
  "__experimentalBlockVariationPicker": function() { return /* reexport */ block_variation_picker; },
2212
  "__experimentalBlockVariationTransforms": function() { return /* reexport */ block_variation_transforms; },
2213
  "__experimentalBorderRadiusControl": function() { return /* reexport */ BorderRadiusControl; },
2278
  "useCachedTruthy": function() { return /* reexport */ useCachedTruthy; },
2279
  "useInnerBlocksProps": function() { return /* reexport */ useInnerBlocksProps; },
2280
  "useSetting": function() { return /* reexport */ useSetting; },
 
 
2281
  "withColorContext": function() { return /* reexport */ with_color_context; },
2282
  "withColors": function() { return /* reexport */ withColors; },
2283
  "withFontSizes": function() { return /* reexport */ with_font_sizes; }
2461
  }
2462
 
2463
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/compat/migrateLightBlockWrapper', migrateLightBlockWrapper);
2464
+
2465
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
2466
  function _extends() {
2467
  _extends = Object.assign || function (target) {
2483
  ;// CONCATENATED MODULE: external ["wp","element"]
2484
  var external_wp_element_namespaceObject = window["wp"]["element"];
2485
  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2486
+ var classnames = __webpack_require__(4403);
2487
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2488
  ;// CONCATENATED MODULE: external "lodash"
2489
  var external_lodash_namespaceObject = window["lodash"];
2511
  parent: BlockControlsParent
2512
  };
2513
  /* harmony default export */ var block_controls_groups = (groups);
2514
+
2515
  ;// CONCATENATED MODULE: external ["wp","i18n"]
2516
  var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
2517
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/defaults.js
2655
  __experimentalBlockPatterns: [],
2656
  __experimentalBlockPatternCategories: [],
2657
  __experimentalSpotlightEntityBlocks: [],
2658
+ __experimentalGenerateAnchors: false,
2659
  __unstableGalleryWithImageBlocks: false,
2660
  // gradients setting is not used anymore now defaults are passed from theme.json on the server and core has its own defaults.
2661
  // The setting is only kept for backward compatibility purposes.
2713
  scripts: []
2714
  }
2715
  };
2716
+
2717
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/array.js
2718
  /**
2719
  * External dependencies
2749
  withoutMovedElements.splice(from, count);
2750
  return insertAt(withoutMovedElements, array.slice(from, from + count), to);
2751
  }
2752
+
2753
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/reducer.js
2754
  /**
2755
  * External dependencies
4009
  return state;
4010
  }
4011
  /**
4012
+ * Reducer returning the initial block selection.
4013
  *
4014
  * Currently this in only used to restore the selection after block deletion and
4015
  * pasting new content.This reducer should eventually be removed in favour of setting
4027
 
4028
  if (action.type === 'REPLACE_BLOCKS' && action.initialPosition !== undefined) {
4029
  return action.initialPosition;
4030
+ } else if (['MULTI_SELECT', 'SELECT_BLOCK', 'RESET_SELECTION', 'INSERT_BLOCKS', 'REPLACE_INNER_BLOCKS'].includes(action.type)) {
4031
  return action.initialPosition;
4032
  }
4033
 
4432
  highlightedBlock,
4433
  lastBlockInserted
4434
  }));
4435
+
4436
  ;// CONCATENATED MODULE: ./node_modules/rememo/es/rememo.js
4437
 
4438
 
4725
  d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"
4726
  }));
4727
  /* harmony default export */ var library_symbol = (symbol);
4728
+
4729
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/selectors.js
4730
  /**
4731
  * External dependencies
6893
  } = state;
6894
  return lastBlockInserted.clientId === clientId && lastBlockInserted.source === source;
6895
  }
6896
+
6897
  ;// CONCATENATED MODULE: external ["wp","a11y"]
6898
  var external_wp_a11y_namespaceObject = window["wp"]["a11y"];
6899
  ;// CONCATENATED MODULE: external ["wp","richText"]
7169
  /**
7170
  * Action that changes block multi-selection.
7171
  *
7172
+ * @param {string} start First block of the multi selection.
7173
+ * @param {string} end Last block of the multiselection.
7174
+ * @param {number|null} __experimentalInitialPosition Optional initial position. Pass as null to skip focus within editor canvas.
7175
  */
7176
 
7177
+ const multiSelect = function (start, end) {
7178
+ let __experimentalInitialPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
 
 
 
 
 
7179
 
7180
+ return _ref6 => {
7181
+ let {
7182
+ select,
7183
+ dispatch
7184
+ } = _ref6;
7185
+ const startBlockRootClientId = select.getBlockRootClientId(start);
7186
+ const endBlockRootClientId = select.getBlockRootClientId(end); // Only allow block multi-selections at the same level.
7187
 
7188
+ if (startBlockRootClientId !== endBlockRootClientId) {
7189
+ return;
7190
+ }
7191
+
7192
+ dispatch({
7193
+ type: 'MULTI_SELECT',
7194
+ start,
7195
+ end,
7196
+ initialPosition: __experimentalInitialPosition
7197
+ });
7198
+ const blockCount = select.getSelectedBlockCount();
7199
+ (0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.sprintf)(
7200
+ /* translators: %s: number of selected blocks */
7201
+ (0,external_wp_i18n_namespaceObject._n)('%s block selected.', '%s blocks selected.', blockCount), blockCount), 'assertive');
7202
+ };
7203
  };
7204
  /**
7205
  * Action that clears the block selection.
7875
  * @param {?Object} attributes Optional attributes of the block to assign.
7876
  * @param {?string} rootClientId Optional root client ID of block list on which
7877
  * to append.
7878
+ * @param {?number} index Optional index where to insert the default block.
 
 
7879
  */
7880
 
7881
+ const insertDefaultBlock = (attributes, rootClientId, index) => _ref14 => {
7882
+ let {
7883
+ dispatch
7884
+ } = _ref14;
7885
  // Abort if there is no default block type (if it has been unregistered).
7886
  const defaultBlockName = (0,external_wp_blocks_namespaceObject.getDefaultBlockName)();
7887
 
7890
  }
7891
 
7892
  const block = (0,external_wp_blocks_namespaceObject.createBlock)(defaultBlockName, attributes);
7893
+ return dispatch.insertBlock(block, index, rootClientId);
7894
+ };
7895
  /**
7896
  * Action that changes the nested settings of a given block.
7897
  *
7970
  * selection changes have been recorded.
7971
  */
7972
 
7973
+ const __unstableMarkAutomaticChange = () => _ref15 => {
7974
  let {
7975
  dispatch
7976
+ } = _ref15;
7977
  dispatch({
7978
  type: 'MARK_AUTOMATIC_CHANGE'
7979
  });
7994
 
7995
  const setNavigationMode = function () {
7996
  let isNavigationMode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
7997
+ return _ref16 => {
7998
  let {
7999
  dispatch
8000
+ } = _ref16;
8001
  dispatch({
8002
  type: 'SET_NAVIGATION_MODE',
8003
  isNavigationMode
8018
 
8019
  const setBlockMovingClientId = function () {
8020
  let hasBlockMovingClientId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
8021
+ return _ref17 => {
8022
  let {
8023
  dispatch
8024
+ } = _ref17;
8025
  dispatch({
8026
  type: 'SET_BLOCK_MOVING_MODE',
8027
  hasBlockMovingClientId
8041
 
8042
  const duplicateBlocks = function (clientIds) {
8043
  let updateSelection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
8044
+ return _ref18 => {
8045
  let {
8046
  select,
8047
  dispatch
8048
+ } = _ref18;
8049
 
8050
  if (!clientIds || !clientIds.length) {
8051
  return;
8083
  * @param {string} clientId
8084
  */
8085
 
8086
+ const insertBeforeBlock = clientId => _ref19 => {
8087
  let {
8088
  select,
8089
  dispatch
8090
+ } = _ref19;
8091
 
8092
  if (!clientId) {
8093
  return;
8109
  * @param {string} clientId
8110
  */
8111
 
8112
+ const insertAfterBlock = clientId => _ref20 => {
8113
  let {
8114
  select,
8115
  dispatch
8116
+ } = _ref20;
8117
 
8118
  if (!clientId) {
8119
  return;
8149
  * @param {string} clientId Target block client ID.
8150
  */
8151
 
8152
+ const flashBlock = clientId => async _ref21 => {
8153
  let {
8154
  dispatch
8155
+ } = _ref21;
8156
  dispatch(toggleBlockHighlight(clientId, true));
8157
  await new Promise(resolve => setTimeout(resolve, 150));
8158
  dispatch(toggleBlockHighlight(clientId, false));
8171
  clientId
8172
  };
8173
  }
8174
+
8175
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/constants.js
8176
  const STORE_NAME = 'core/block-editor';
8177
+
8178
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/store/index.js
8179
  /**
8180
  * WordPress dependencies
8199
  const storeConfig = {
8200
  reducer: reducer,
8201
  selectors: selectors_namespaceObject,
8202
+ actions: actions_namespaceObject
 
8203
  };
8204
  /**
8205
  * Store definition for the block editor namespace.
8216
  (0,external_wp_data_namespaceObject.registerStore)(STORE_NAME, { ...storeConfig,
8217
  persist: ['preferences']
8218
  });
8219
+
8220
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/context.js
8221
  /**
8222
  * WordPress dependencies
8240
  function useBlockEditContext() {
8241
  return (0,external_wp_element_namespaceObject.useContext)(Context);
8242
  }
8243
+
8244
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-display-block-controls/index.js
8245
  /**
8246
  * WordPress dependencies
8276
  return false;
8277
  }, [clientId, isSelected, name]);
8278
  }
8279
+
8280
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/hook.js
8281
  /**
8282
  * WordPress dependencies
8319
 
8320
  return null;
8321
  }
8322
+
8323
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/fill.js
8324
 
8325
 
8364
  }), children);
8365
  }));
8366
  }
8367
+
8368
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/slot.js
8369
 
8370
 
8405
  fillProps: accessibleToolbarState
8406
  })));
8407
  }
8408
+
8409
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-controls/index.js
8410
 
8411
 
8431
  };
8432
 
8433
  /* harmony default export */ var block_controls = (BlockControls);
8434
+
8435
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-none.js
8436
 
8437
 
8446
  d: "M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"
8447
  }));
8448
  /* harmony default export */ var align_none = (alignNone);
8449
+
8450
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-left.js
8451
 
8452
 
8461
  d: "M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"
8462
  }));
8463
  /* harmony default export */ var position_left = (positionLeft);
8464
+
8465
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-center.js
8466
 
8467
 
8476
  d: "M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"
8477
  }));
8478
  /* harmony default export */ var position_center = (positionCenter);
8479
+
8480
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/position-right.js
8481
 
8482
 
8491
  d: "M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"
8492
  }));
8493
  /* harmony default export */ var position_right = (positionRight);
8494
+
8495
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-wide.js
8496
 
8497
 
8506
  d: "M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"
8507
  }));
8508
  /* harmony default export */ var stretch_wide = (stretchWide);
8509
+
8510
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/stretch-full-width.js
8511
 
8512
 
8521
  d: "M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"
8522
  }));
8523
  /* harmony default export */ var stretch_full_width = (stretchFullWidth);
8524
+
8525
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-left.js
8526
 
8527
 
8536
  d: "M9 9v6h11V9H9zM4 20h1.5V4H4v16z"
8537
  }));
8538
  /* harmony default export */ var justify_left = (justifyLeft);
8539
+
8540
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-center.js
8541
 
8542
 
8551
  d: "M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"
8552
  }));
8553
  /* harmony default export */ var justify_center = (justifyCenter);
8554
+
8555
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-right.js
8556
 
8557
 
8566
  d: "M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"
8567
  }));
8568
  /* harmony default export */ var justify_right = (justifyRight);
8569
+
8570
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/justify-space-between.js
8571
 
8572
 
8581
  d: "M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"
8582
  }));
8583
  /* harmony default export */ var justify_space_between = (justifySpaceBetween);
8584
+
8585
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-right.js
8586
 
8587
 
8596
  d: "M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"
8597
  }));
8598
  /* harmony default export */ var arrow_right = (arrowRight);
8599
+
8600
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-down.js
8601
 
8602
 
8611
  d: "M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"
8612
  }));
8613
  /* harmony default export */ var arrow_down = (arrowDown);
8614
+
8615
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/utils.js
8616
  /**
8617
  * Utility to generate the proper CSS selector for layout styles.
8630
  // When the post editor is fully iframed, this extra classname could be removed.
8631
  return selectors.split(',').map(subselector => `.editor-styles-wrapper ${subselector} ${append}`).join(',');
8632
  }
8633
+
8634
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-setting/index.js
8635
  /**
8636
  * External dependencies
8768
  }, [blockName, path]);
8769
  return setting;
8770
  }
8771
+
8772
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/ui.js
8773
 
8774
 
8846
  }
8847
 
8848
  /* harmony default export */ var ui = (JustifyContentUI);
8849
+
8850
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/justify-content-control/index.js
8851
 
8852
 
8865
  isToolbar: true
8866
  }));
8867
  }
8868
+
8869
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flex.js
8870
 
8871
 
9111
  })
9112
  }));
9113
  }
9114
+
9115
  ;// CONCATENATED MODULE: ./packages/icons/build-module/icon/index.js
9116
  /**
9117
  * WordPress dependencies
9143
  }
9144
 
9145
  /* harmony default export */ var build_module_icon = (Icon);
9146
+
9147
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/flow.js
9148
 
9149
 
9242
  const hasBlockGapStylesSupport = blockGapSupport !== null;
9243
  const blockGapValue = (_style$spacing$blockG = style === null || style === void 0 ? void 0 : (_style$spacing = style.spacing) === null || _style$spacing === void 0 ? void 0 : _style$spacing.blockGap) !== null && _style$spacing$blockG !== void 0 ? _style$spacing$blockG : 'var( --wp--style--block-gap )';
9244
  let output = !!contentSize || !!wideSize ? `
9245
+ ${appendSelectors(selector, '> :where(:not(.alignleft):not(.alignright))')} {
9246
  max-width: ${contentSize !== null && contentSize !== void 0 ? contentSize : wideSize};
9247
  margin-left: auto !important;
9248
  margin-right: auto !important;
9249
  }
9250
 
9251
+ ${appendSelectors(selector, '> .alignwide')} {
9252
  max-width: ${wideSize !== null && wideSize !== void 0 ? wideSize : contentSize};
9253
  }
9254
 
9255
+ ${appendSelectors(selector, '> .alignfull')} {
9256
  max-width: none;
9257
  }
9258
  ` : '';
9259
  output += `
9260
+ ${appendSelectors(selector, '> .alignleft')} {
9261
  float: left;
9262
  margin-right: 2em;
9263
+ margin-left: 0;
9264
  }
9265
 
9266
+ ${appendSelectors(selector, '> .alignright')} {
9267
  float: right;
9268
  margin-left: 2em;
9269
+ margin-right: 0;
9270
  }
9271
 
9272
  `;
9372
 
9373
  return alignmentInfo;
9374
  }
9375
+
9376
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/layouts/index.js
9377
  /**
9378
  * Internal dependencies
9400
  function getLayoutTypes() {
9401
  return layoutTypes;
9402
  }
9403
+
9404
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/layout.js
9405
 
9406
 
9445
 
9446
  return null;
9447
  }
9448
+
9449
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/use-available-alignments.js
9450
  /**
9451
  * WordPress dependencies
9521
 
9522
  return enabledControls;
9523
  }
9524
+
9525
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/ui.js
9526
 
9527
 
9656
  }
9657
 
9658
  /* harmony default export */ var block_alignment_control_ui = (BlockAlignmentUI);
9659
+
9660
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-control/index.js
9661
 
9662
 
9675
  isToolbar: true
9676
  }));
9677
  }
9678
+
9679
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/align.js
9680
 
9681
 
9896
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/align/with-data-align', withDataAlign);
9897
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/align/with-toolbar-controls', withToolbarControls);
9898
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/align/addAssignedAlign', addAssignedAlign);
9899
+
9900
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/lock.js
9901
  /**
9902
  * External dependencies
9930
  return settings;
9931
  }
9932
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/lock/addAttribute', lock_addAttribute);
9933
+
9934
  ;// CONCATENATED MODULE: external ["wp","warning"]
9935
  var external_wp_warning_namespaceObject = window["wp"]["warning"];
9936
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/groups.js
9953
  typography: InspectorControlsTypography
9954
  };
9955
  /* harmony default export */ var inspector_controls_groups = (groups_groups);
9956
+
9957
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/fill.js
9958
 
9959
 
10005
  }, children);
10006
  }));
10007
  }
10008
+
10009
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/utils.js
10010
  /**
10011
  * External dependencies
10077
  });
10078
  return returnBlock;
10079
  }
10080
+
10081
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/block-support-tools-panel.js
10082
 
10083
 
10146
  __experimentalLastVisibleItemClass: "last"
10147
  }, children);
10148
  }
10149
+
10150
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/block-support-slot-container.js
10151
 
10152
 
10167
  bubblesVirtually: true
10168
  }));
10169
  }
10170
+
10171
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/slot.js
10172
 
10173
 
10219
  bubblesVirtually: true
10220
  }));
10221
  }
10222
+
10223
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inspector-controls/index.js
10224
 
10225
 
10250
  */
10251
 
10252
  /* harmony default export */ var inspector_controls = (InspectorControls);
10253
+
10254
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/anchor.js
10255
 
10256
 
10373
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/anchor/attribute', anchor_addAttribute);
10374
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/anchor/with-inspector-control', withInspectorControl);
10375
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/anchor/save-props', addSaveProps);
10376
+
10377
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/custom-class-name.js
10378
 
10379
 
10467
 
10468
  return extraProps;
10469
  }
10470
+ function addTransforms(result, source, index, results) {
10471
+ if (!(0,external_wp_blocks_namespaceObject.hasBlockSupport)(result.name, 'customClassName', true)) {
10472
+ return result;
10473
+ } // If the condition verifies we are probably in the presence of a wrapping transform
10474
+ // e.g: nesting paragraphs in a group or columns and in that case the class should not be kept.
10475
+
10476
+
10477
+ if (results.length === 1 && result.innerBlocks.length === source.length) {
10478
+ return result;
10479
+ } // If we are transforming one block to multiple blocks or multiple blocks to one block,
10480
+ // we ignore the class during the transform.
10481
+
10482
+
10483
+ if (results.length === 1 && source.length > 1 || results.length > 1 && source.length === 1) {
10484
+ return result;
10485
+ } // If we are in presence of transform between one or more block in the source
10486
+ // that have one or more blocks in the result
10487
+ // we apply the class on source N to the result N,
10488
+ // if source N does not exists we do nothing.
10489
+
10490
+
10491
+ if (source[index]) {
10492
+ var _source$index;
10493
+
10494
+ const originClassName = (_source$index = source[index]) === null || _source$index === void 0 ? void 0 : _source$index.attributes.className;
10495
+
10496
+ if (originClassName) {
10497
+ return { ...result,
10498
+ attributes: { ...result.attributes,
10499
+ className: originClassName
10500
+ }
10501
+ };
10502
+ }
10503
+ }
10504
+
10505
+ return result;
10506
+ }
10507
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/custom-class-name/attribute', custom_class_name_addAttribute);
10508
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/custom-class-name/with-inspector-control', custom_class_name_withInspectorControl);
10509
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/custom-class-name/save-props', custom_class_name_addSaveProps);
10510
+ (0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/color/addTransforms', addTransforms);
10511
+
10512
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/generated-class-name.js
10513
  /**
10514
  * External dependencies
10548
  return extraProps;
10549
  }
10550
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/generated-class-name/save-props', addGeneratedClassName);
10551
+
10552
+ ;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/utils.js
10553
+ /**
10554
+ * External dependencies
10555
+ */
10556
+
10557
+ /**
10558
+ * Internal dependencies
10559
+ */
10560
+
10561
+ function generateBoxRules(style, options, path, ruleKey) {
10562
+ const boxStyle = (0,external_lodash_namespaceObject.get)(style, path);
10563
+
10564
+ if (!boxStyle) {
10565
+ return [];
10566
+ }
10567
+
10568
+ const rules = [];
10569
+
10570
+ if (typeof boxStyle === 'string') {
10571
+ rules.push({
10572
+ selector: options.selector,
10573
+ key: ruleKey,
10574
+ value: boxStyle
10575
+ });
10576
+ } else {
10577
+ const sideRules = ['top', 'right', 'bottom', 'left'].reduce((acc, side) => {
10578
+ const value = (0,external_lodash_namespaceObject.get)(boxStyle, [side]);
10579
+
10580
+ if (value) {
10581
+ acc.push({
10582
+ selector: options.selector,
10583
+ key: `${ruleKey}${(0,external_lodash_namespaceObject.upperFirst)(side)}`,
10584
+ value
10585
+ });
10586
+ }
10587
+
10588
+ return acc;
10589
+ }, []);
10590
+ rules.push(...sideRules);
10591
+ }
10592
+
10593
+ return rules;
10594
+ }
10595
+
10596
+ ;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/padding.js
10597
+ /**
10598
+ * Internal dependencies
10599
+ */
10600
+
10601
+ const padding = {
10602
+ name: 'padding',
10603
+ generate: (style, options) => {
10604
+ return generateBoxRules(style, options, ['spacing', 'padding'], 'padding');
10605
+ }
10606
+ };
10607
+ /* harmony default export */ var styles_padding = (padding);
10608
+
10609
+ ;// CONCATENATED MODULE: ./packages/style-engine/build-module/styles/index.js
10610
+ /**
10611
+ * Internal dependencies
10612
+ */
10613
+
10614
+ const styleDefinitions = [styles_padding];
10615
+
10616
+ ;// CONCATENATED MODULE: ./packages/style-engine/build-module/index.js
10617
+ /**
10618
+ * External dependencies
10619
+ */
10620
+
10621
+ /**
10622
+ * Internal dependencies
10623
+ */
10624
+
10625
+
10626
+ /**
10627
+ * Generates a stylesheet for a given style object and selector.
10628
+ *
10629
+ * @param style Style object.
10630
+ * @param options Options object with settings to adjust how the styles are generated.
10631
+ *
10632
+ * @return generated stylesheet.
10633
+ */
10634
+
10635
+ function generate(style, options) {
10636
+ const rules = getCSSRules(style, options);
10637
+ const groupedRules = groupBy(rules, 'selector');
10638
+ const selectorRules = Object.keys(groupedRules).reduce((acc, subSelector) => {
10639
+ acc.push(`${subSelector} { ${groupedRules[subSelector].map(rule => `${kebabCase(rule.key)}: ${rule.value};`).join(' ')} }`);
10640
+ return acc;
10641
+ }, []);
10642
+ return selectorRules.join('\n');
10643
+ }
10644
+ /**
10645
+ * Returns a JSON representation of the generated CSS rules.
10646
+ *
10647
+ * @param style Style object.
10648
+ * @param options Options object with settings to adjust how the styles are generated.
10649
+ *
10650
+ * @return generated styles.
10651
+ */
10652
+
10653
+ function getCSSRules(style, options) {
10654
+ const rules = [];
10655
+ styleDefinitions.forEach(definition => {
10656
+ rules.push(...definition.generate(style, options));
10657
+ });
10658
+ return rules;
10659
+ }
10660
+
10661
  ;// CONCATENATED MODULE: external ["wp","dom"]
10662
  var external_wp_dom_namespaceObject = window["wp"]["dom"];
10663
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-context/index.js
10703
  });
10704
  }
10705
  /* harmony default export */ var block_context = (block_context_Context);
10706
+
10707
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/edit.js
10708
 
10709
 
10771
  }));
10772
  };
10773
  /* harmony default export */ var edit = ((0,external_wp_components_namespaceObject.withFilters)('editor.BlockEdit')(Edit));
10774
+
10775
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-edit/index.js
10776
 
10777
 
10813
  value: (0,external_wp_element_namespaceObject.useMemo)(() => context, Object.values(context))
10814
  }, (0,external_wp_element_namespaceObject.createElement)(edit, props));
10815
  }
10816
+
10817
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-horizontal.js
10818
 
10819
 
10828
  d: "M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"
10829
  }));
10830
  /* harmony default export */ var more_horizontal = (moreHorizontal);
10831
+
10832
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/warning/index.js
10833
 
10834
 
10883
 
10884
 
10885
  /* harmony default export */ var warning = (Warning);
10886
+
10887
  // EXTERNAL MODULE: ./node_modules/diff/lib/diff/character.js
10888
+ var character = __webpack_require__(1973);
10889
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/block-view.js
10890
 
10891
 
10922
  onClick: action
10923
  }, actionText)));
10924
  }
10925
+
10926
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-compare/index.js
10927
 
10928
 
10999
  }
11000
 
11001
  /* harmony default export */ var block_compare = (BlockCompare);
11002
+
11003
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-invalid-warning.js
11004
 
11005
 
11118
 
11119
  };
11120
  })])(BlockInvalidWarning));
11121
+
11122
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-warning.js
11123
 
11124
 
11135
  className: "block-editor-block-list__block-crash-warning"
11136
  }, (0,external_wp_i18n_namespaceObject.__)('This block has encountered an error and cannot be previewed.'));
11137
  /* harmony default export */ var block_crash_warning = (() => block_crash_warning_warning);
11138
+
11139
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-crash-boundary.js
11140
  /**
11141
  * WordPress dependencies
11167
  }
11168
 
11169
  /* harmony default export */ var block_crash_boundary = (BlockCrashBoundary);
11170
+
11171
  // EXTERNAL MODULE: ./node_modules/react-autosize-textarea/lib/index.js
11172
+ var lib = __webpack_require__(773);
11173
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block-html.js
11174
 
11175
 
11236
  }
11237
 
11238
  /* harmony default export */ var block_html = (BlockHTML);
11239
+
11240
  ;// CONCATENATED MODULE: ./node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.js
11241
  let updateQueue = makeQueue();
11242
  const raf = fn => schedule(fn, updateQueue);
15414
  }
15415
 
15416
  /* harmony default export */ var use_moving_animation = (useMovingAnimation);
15417
+
15418
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/dom.js
15419
  const BLOCK_SELECTOR = '.block-editor-block-list__block';
15420
  const APPENDER_SELECTOR = '.block-list-appender';
15474
 
15475
  return blockNode.id.slice('block-'.length);
15476
  }
15477
+
15478
+ ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-multi-selection.js
15479
+ /**
15480
+ * WordPress dependencies
15481
+ */
15482
+
15483
+
15484
+ /**
15485
+ * Internal dependencies
15486
+ */
15487
+
15488
+
15489
+
15490
+ /**
15491
+ * Sets the `contenteditable` wrapper element to `value`.
15492
+ *
15493
+ * @param {HTMLElement} node Block element.
15494
+ * @param {boolean} value `contentEditable` value (true or false)
15495
+ */
15496
+
15497
+ function setContentEditableWrapper(node, value) {
15498
+ // Since `closest` considers `node` as a candidate, use `parentElement`.
15499
+ node.parentElement.closest('[contenteditable]').contentEditable = value;
15500
+ }
15501
+ /**
15502
+ * Sets a multi-selection based on the native selection across blocks.
15503
+ *
15504
+ * @param {string} clientId Block client ID.
15505
+ */
15506
+
15507
+ function useMultiSelection(clientId) {
15508
+ const {
15509
+ startMultiSelect,
15510
+ stopMultiSelect,
15511
+ multiSelect,
15512
+ selectBlock
15513
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
15514
+ const {
15515
+ isSelectionEnabled,
15516
+ isBlockSelected,
15517
+ getBlockParents,
15518
+ getBlockSelectionStart,
15519
+ hasMultiSelection
15520
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
15521
+ return (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
15522
+ const {
15523
+ ownerDocument
15524
+ } = node;
15525
+ const {
15526
+ defaultView
15527
+ } = ownerDocument;
15528
+ let anchorElement;
15529
+ let rafId;
15530
+
15531
+ function onSelectionChange(_ref) {
15532
+ let {
15533
+ isSelectionEnd
15534
+ } = _ref;
15535
+ const selection = defaultView.getSelection(); // If no selection is found, end multi selection and disable the
15536
+ // contentEditable wrapper.
15537
+
15538
+ if (!selection.rangeCount || selection.isCollapsed) {
15539
+ setContentEditableWrapper(node, false);
15540
+ return;
15541
+ }
15542
+
15543
+ const endClientId = getBlockClientId(selection.focusNode);
15544
+ const isSingularSelection = clientId === endClientId;
15545
+
15546
+ if (isSingularSelection) {
15547
+ selectBlock(clientId); // If the selection is complete (on mouse up), and no
15548
+ // multiple blocks have been selected, set focus back to the
15549
+ // anchor element. if the anchor element contains the
15550
+ // selection. Additionally, the contentEditable wrapper can
15551
+ // now be disabled again.
15552
+
15553
+ if (isSelectionEnd) {
15554
+ setContentEditableWrapper(node, false);
15555
+
15556
+ if (selection.rangeCount) {
15557
+ const {
15558
+ commonAncestorContainer
15559
+ } = selection.getRangeAt(0);
15560
+
15561
+ if (anchorElement.contains(commonAncestorContainer)) {
15562
+ anchorElement.focus();
15563
+ }
15564
+ }
15565
+ }
15566
+ } else {
15567
+ const startPath = [...getBlockParents(clientId), clientId];
15568
+ const endPath = [...getBlockParents(endClientId), endClientId];
15569
+ const depth = Math.min(startPath.length, endPath.length) - 1;
15570
+ multiSelect(startPath[depth], endPath[depth]);
15571
+ }
15572
+ }
15573
+
15574
+ function onSelectionEnd() {
15575
+ ownerDocument.removeEventListener('selectionchange', onSelectionChange); // Equivalent to attaching the listener once.
15576
+
15577
+ defaultView.removeEventListener('mouseup', onSelectionEnd); // The browser selection won't have updated yet at this point,
15578
+ // so wait until the next animation frame to get the browser
15579
+ // selection.
15580
+
15581
+ rafId = defaultView.requestAnimationFrame(() => {
15582
+ onSelectionChange({
15583
+ isSelectionEnd: true
15584
+ });
15585
+ stopMultiSelect();
15586
+ });
15587
+ }
15588
+
15589
+ function onMouseLeave(_ref2) {
15590
+ let {
15591
+ buttons
15592
+ } = _ref2;
15593
+
15594
+ // The primary button must be pressed to initiate selection.
15595
+ // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons
15596
+ if (buttons !== 1) {
15597
+ return;
15598
+ }
15599
+
15600
+ if (!isSelectionEnabled() || !isBlockSelected(clientId)) {
15601
+ return;
15602
+ }
15603
+
15604
+ anchorElement = ownerDocument.activeElement;
15605
+ startMultiSelect(); // `onSelectionStart` is called after `mousedown` and
15606
+ // `mouseleave` (from a block). The selection ends when
15607
+ // `mouseup` happens anywhere in the window.
15608
+
15609
+ ownerDocument.addEventListener('selectionchange', onSelectionChange);
15610
+ defaultView.addEventListener('mouseup', onSelectionEnd); // Allow cross contentEditable selection by temporarily making
15611
+ // all content editable. We can't rely on using the store and
15612
+ // React because re-rending happens too slowly. We need to be
15613
+ // able to select across instances immediately.
15614
+
15615
+ setContentEditableWrapper(node, true);
15616
+ }
15617
+
15618
+ function onMouseDown(event) {
15619
+ // The main button.
15620
+ // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
15621
+ if (!isSelectionEnabled() || event.button !== 0) {
15622
+ return;
15623
+ }
15624
+
15625
+ if (event.shiftKey) {
15626
+ const blockSelectionStart = getBlockSelectionStart(); // By checking `blockSelectionStart` to be set, we handle the
15627
+ // case where we select a single block. We also have to check
15628
+ // the selectionEnd (clientId) not to be included in the
15629
+ // `blockSelectionStart`'s parents because the click event is
15630
+ // propagated.
15631
+
15632
+ const startParents = getBlockParents(blockSelectionStart);
15633
+
15634
+ if (blockSelectionStart && blockSelectionStart !== clientId && !(startParents !== null && startParents !== void 0 && startParents.includes(clientId))) {
15635
+ const startPath = [...startParents, blockSelectionStart];
15636
+ const endPath = [...getBlockParents(clientId), clientId];
15637
+ const depth = Math.min(startPath.length, endPath.length) - 1;
15638
+ const start = startPath[depth];
15639
+ const end = endPath[depth]; // Handle the case of having selected a parent block and
15640
+ // then shift+click on a child.
15641
+
15642
+ if (start !== end) {
15643
+ setContentEditableWrapper(node, true);
15644
+ multiSelect(start, end);
15645
+ event.preventDefault();
15646
+ }
15647
+ }
15648
+ } else if (hasMultiSelection()) {
15649
+ // Allow user to escape out of a multi-selection to a
15650
+ // singular selection of a block via click. This is handled
15651
+ // here since focus handling excludes blocks when there is
15652
+ // multiselection, as focus can be incurred by starting a
15653
+ // multiselection (focus moved to first block's multi-
15654
+ // controls).
15655
+ selectBlock(clientId);
15656
+ }
15657
+ }
15658
+
15659
+ node.addEventListener('mousedown', onMouseDown);
15660
+ node.addEventListener('mouseleave', onMouseLeave);
15661
+ return () => {
15662
+ node.removeEventListener('mousedown', onMouseDown);
15663
+ node.removeEventListener('mouseleave', onMouseLeave);
15664
+ ownerDocument.removeEventListener('selectionchange', onSelectionChange);
15665
+ defaultView.removeEventListener('mouseup', onSelectionEnd);
15666
+ defaultView.cancelAnimationFrame(rafId);
15667
+ };
15668
+ }, [clientId, startMultiSelect, stopMultiSelect, multiSelect, selectBlock, isSelectionEnabled, isBlockSelected, getBlockParents]);
15669
+ }
15670
+
15671
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-focus-first-element.js
15672
  /**
15673
  * External dependencies
15686
 
15687
 
15688
 
15689
+
15690
  /** @typedef {import('@wordpress/element').RefObject} RefObject */
15691
 
15692
  /**
15761
  return;
15762
  }
15763
 
15764
+ setContentEditableWrapper(ref.current, false);
15765
  (0,external_wp_dom_namespaceObject.placeCaretAtHorizontalEdge)(target, isReverse);
15766
  }, [initialPosition]);
15767
  return ref;
15768
  }
15769
+
15770
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-is-hovered.js
15771
  /**
15772
  * WordPress dependencies
15815
  }
15816
  }, [isEnabled]);
15817
  }
15818
+
15819
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-class-names.js
15820
  /**
15821
  * External dependencies
15878
  });
15879
  }, [clientId]);
15880
  }
15881
+
15882
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-default-class-name.js
15883
  /**
15884
  * WordPress dependencies
15912
  return (0,external_wp_blocks_namespaceObject.getBlockDefaultClassName)(name);
15913
  }, [clientId]);
15914
  }
15915
+
15916
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-custom-class-name.js
15917
  /**
15918
  * WordPress dependencies
15957
  return attributes.className;
15958
  }, [clientId]);
15959
  }
15960
+
15961
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-moving-mode-class-names.js
15962
  /**
15963
  * External dependencies
16007
  });
16008
  }, [clientId]);
16009
  }
16010
+
16011
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-focus-handler.js
16012
  /**
16013
  * WordPress dependencies
16070
  };
16071
  }, [isBlockSelected, selectBlock]);
16072
  }
16073
+
16074
  ;// CONCATENATED MODULE: external ["wp","keycodes"]
16075
  var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"];
16076
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-selected-block-event-handlers.js
16162
  };
16163
  }, [clientId, isSelected, getBlockRootClientId, getBlockIndex, insertDefaultBlock, removeBlock]);
16164
  }
16165
+
16166
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-nav-mode-exit.js
16167
  /**
16168
  * WordPress dependencies
16211
  };
16212
  }, [clientId, isNavigationMode, isBlockSelected, setNavigationMode]);
16213
  }
16214
+
16215
  // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js
16216
+ var dom_scroll_into_view_lib = __webpack_require__(5425);
16217
  var lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib);
16218
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-scroll-into-view.js
16219
  /**
16278
  }, [isSelectionEnd]);
16279
  return ref;
16280
  }
16281
+
16282
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/block-refs-provider.js
16283
 
16284
 
16302
  value: value
16303
  }, children);
16304
  }
16305
+
16306
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-block-refs.js
16307
  /**
16308
  * WordPress dependencies
16413
 
16414
 
16415
 
 
 
 
 
 
 
 
 
 
 
16416
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16417
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/use-intersection-observer.js
16418
  /**
16419
  * WordPress dependencies
16436
  }
16437
  }, [observer]);
16438
  }
16439
+
16440
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-block-props/index.js
16441
  /**
16442
  * External dependencies
16585
  */
16586
 
16587
  useBlockProps.save = external_wp_blocks_namespaceObject.__unstableGetBlockProps;
16588
+
16589
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/block.js
16590
 
16591
 
16655
  }
16656
 
16657
  function BlockListBlock(_ref2) {
16658
+ var _wrapperProps;
16659
+
16660
  let {
16661
  mode,
16662
  isLocked,
16675
  onMerge,
16676
  toggleSelection
16677
  } = _ref2;
16678
+ const themeSupportsLayout = (0,external_wp_data_namespaceObject.useSelect)(select => {
16679
+ const {
16680
+ getSettings
16681
+ } = select(store);
16682
+ return getSettings().supportsLayout;
16683
+ }, []);
16684
  const {
16685
  removeBlock
16686
  } = (0,external_wp_data_namespaceObject.useDispatch)(store);
16708
  wrapperProps = mergeWrapperProps(wrapperProps, blockType.getEditWrapperProps(attributes));
16709
  }
16710
 
16711
+ const isAligned = wrapperProps && !!wrapperProps['data-align'] && !themeSupportsLayout; // For aligned blocks, provide a wrapper element so the block can be
16712
  // positioned relative to the block column.
16713
+ // This is only kept for classic themes that don't support layout
16714
+ // Historically we used to rely on extra divs and data-align to
16715
+ // provide the alignments styles in the editor.
16716
+ // Due to the differences between frontend and backend, we migrated
16717
+ // to the layout feature, and we're now aligning the markup of frontend
16718
+ // and backend.
16719
 
16720
  if (isAligned) {
16721
  blockEdit = (0,external_wp_element_namespaceObject.createElement)("div", {
16753
 
16754
  const value = {
16755
  clientId,
16756
+ className: (_wrapperProps = wrapperProps) !== null && _wrapperProps !== void 0 && _wrapperProps['data-align'] && themeSupportsLayout ? classnames_default()(className, `align${wrapperProps['data-align']}`) : className,
16757
  wrapperProps: (0,external_lodash_namespaceObject.omit)(wrapperProps, ['data-align']),
16758
  isAligned
16759
  };
16909
  } = _ref5;
16910
  return !!block;
16911
  }), (0,external_wp_components_namespaceObject.withFilters)('editor.BlockListBlock'))(BlockListBlock));
16912
+
16913
  ;// CONCATENATED MODULE: external ["wp","htmlEntities"]
16914
  var external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"];
16915
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/plus.js
16926
  d: "M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"
16927
  }));
16928
  /* harmony default export */ var library_plus = (plus);
16929
+
16930
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tips.js
16931
 
16932
 
16952
  }
16953
 
16954
  /* harmony default export */ var tips = (Tips);
16955
+
16956
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/block-default.js
16957
 
16958
 
16967
  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"
16968
  }));
16969
  /* harmony default export */ var block_default = (blockDefault);
16970
+
16971
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-icon/index.js
16972
 
16973
 
17014
  }
17015
 
17016
  /* harmony default export */ var block_icon = ((0,external_wp_element_namespaceObject.memo)(BlockIcon));
17017
+
17018
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-card/index.js
17019
 
17020
 
17063
  }
17064
 
17065
  /* harmony default export */ var block_card = (BlockCard);
17066
+
17067
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/with-registry-provider.js
17068
 
17069
 
17113
  });
17114
  }, 'withRegistryProvider');
17115
  /* harmony default export */ var with_registry_provider = (withRegistryProvider);
17116
+
17117
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/use-block-sync.js
17118
  /**
17119
  * External dependencies
17363
  return () => unsubscribe();
17364
  }, [registry, clientId]);
17365
  }
17366
+
17367
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/provider/index.js
17368
 
17369
 
17399
  }
17400
 
17401
  /* harmony default export */ var provider = (with_registry_provider(BlockEditorProvider));
17402
+
17403
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/live.js
17404
 
17405
 
17423
  onKeyPress: onClick
17424
  }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_wp_element_namespaceObject.createElement)(BlockList, null)));
17425
  }
17426
+
17427
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-selection-clearer/index.js
17428
 
17429
 
17479
  ref: useBlockSelectionClearer()
17480
  }, props));
17481
  }
17482
+
17483
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-multi-selection.js
17484
  /**
17485
  * External dependencies
17497
 
17498
 
17499
 
 
 
 
 
 
 
 
 
 
 
17500
  /**
17501
  * Returns for the deepest node at the start or end of a container node. Ignores
17502
  * any text nodes that only contain HTML formatting whitespace.
17525
  isMultiSelecting,
17526
  getMultiSelectedBlockClientIds,
17527
  hasMultiSelection,
17528
+ getSelectedBlockClientId,
17529
+ getSelectedBlocksInitialCaretPosition
17530
  } = select(store);
17531
  return {
17532
  isMultiSelecting: isMultiSelecting(),
17533
  multiSelectedBlockClientIds: getMultiSelectedBlockClientIds(),
17534
  hasMultiSelection: hasMultiSelection(),
17535
+ selectedBlockClientId: getSelectedBlockClientId(),
17536
+ initialPosition: getSelectedBlocksInitialCaretPosition()
17537
  };
17538
  }
17539
 
17540
  function use_multi_selection_useMultiSelection() {
17541
  const {
17542
+ initialPosition,
17543
  isMultiSelecting,
17544
  multiSelectedBlockClientIds,
17545
  hasMultiSelection,
17560
  } = node;
17561
  const {
17562
  defaultView
17563
+ } = ownerDocument; // Allow initialPosition to bypass focus behavior. This is useful
17564
+ // for the list view or other areas where we don't want to transfer
17565
+ // focus to the editor canvas.
17566
+
17567
+ if (initialPosition === undefined || initialPosition === null) {
17568
+ return;
17569
+ }
17570
 
17571
  if (!hasMultiSelection || isMultiSelecting) {
17572
  if (!selectedBlockClientId || isMultiSelecting) {
17602
 
17603
  if (!startRef.current || !endRef.current) {
17604
  return;
17605
+ } // Allow cross contentEditable selection by temporarily making
17606
+ // all content editable. We can't rely on using the store and
17607
+ // React because re-rending happens too slowly. We need to be
17608
+ // able to select across instances immediately.
17609
 
17610
 
17611
+ node.contentEditable = true; // For some browsers, like Safari, it is important that focus happens
17612
+ // BEFORE selection.
17613
+
17614
  node.focus();
17615
  const selection = defaultView.getSelection();
17616
  const range = ownerDocument.createRange(); // These must be in the right DOM order.
17618
  // and end at the deepest points.
17619
 
17620
  const startNode = getDeepestNode(startRef.current, 'start');
17621
+ const endNode = getDeepestNode(endRef.current, 'end');
 
 
 
 
17622
  range.setStartBefore(startNode);
17623
  range.setEndAfter(endNode);
17624
  selection.removeAllRanges();
17625
  selection.addRange(range);
17626
+ }, [hasMultiSelection, isMultiSelecting, multiSelectedBlockClientIds, selectedBlockClientId, initialPosition]);
17627
  }
17628
+
17629
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-tab-nav.js
17630
 
17631
 
17820
  const mergedRefs = (0,external_wp_compose_namespaceObject.useMergeRefs)([container, ref]);
17821
  return [before, mergedRefs, after];
17822
  }
17823
+
17824
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-arrow-nav.js
17825
  /**
17826
  * External dependencies
18096
  };
18097
  }, []);
18098
  }
18099
+
18100
  ;// CONCATENATED MODULE: external ["wp","keyboardShortcuts"]
18101
  var external_wp_keyboardShortcuts_namespaceObject = window["wp"]["keyboardShortcuts"];
18102
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/use-select-all.js
18133
  return;
18134
  }
18135
 
18136
+ const selectedClientIds = getSelectedBlockClientIds();
18137
+
18138
+ if (selectedClientIds.length < 2 && !(0,external_wp_dom_namespaceObject.isEntirelySelected)(event.target)) {
18139
  return;
18140
  }
18141
 
 
18142
  const [firstSelectedClientId] = selectedClientIds;
18143
  const rootClientId = getBlockRootClientId(firstSelectedClientId);
18144
  let blockClientIds = getBlockOrder(rootClientId); // If we have selected all sibling nested blocks, try selecting up a
18165
  };
18166
  }, []);
18167
  }
18168
+
18169
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/writing-flow/index.js
18170
 
18171
 
18196
  const hasMultiSelection = (0,external_wp_data_namespaceObject.useSelect)(select => select(store).hasMultiSelection(), []);
18197
  return [before, (0,external_wp_compose_namespaceObject.useMergeRefs)([ref, use_multi_selection_useMultiSelection(), useSelectAll(), useArrowNav(), (0,external_wp_compose_namespaceObject.useRefEffect)(node => {
18198
  node.tabIndex = -1;
18199
+ node.contentEditable = hasMultiSelection;
18200
 
18201
  if (!hasMultiSelection) {
18202
  return;
18230
 
18231
 
18232
  /* harmony default export */ var writing_flow = ((0,external_wp_element_namespaceObject.forwardRef)(WritingFlow));
18233
+
18234
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/iframe/index.js
18235
 
18236
 
18509
  }
18510
 
18511
  /* harmony default export */ var iframe = ((0,external_wp_element_namespaceObject.forwardRef)(Iframe));
18512
+
18513
  ;// CONCATENATED MODULE: ./packages/block-editor/node_modules/colord/index.mjs
18514
  var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},o=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},i=/^#([0-9a-f]{3,8})$/i,s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},g=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},d=function(r){return{h:n(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},f=function(r){return b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y={string:[[function(r){var t=i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=l.exec(t)||p.exec(t);if(!n)return null;var e,u,a=g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!t(n)||!t(e)||!t(u))return null;var i=g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(a)||!t(o))return null;var h=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),y.string):"object"==typeof r&&null!==r?N(r,y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=c(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=c(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?s(n(255*a)):"","#"+s(t)+s(e)+s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){return r=o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){return r=d(c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:n(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),w(M(this.rgba,-r))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=c(this.rgba);return"number"==typeof r?w({h:r,s:t.s,l:t.l,a:t.a}):n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===w(r).toHex()},r}(),w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
18515
 
18520
  var a11y_o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},a11y_t=function(t){return.2126*a11y_o(t.r)+.7152*a11y_o(t.g)+.0722*a11y_o(t.b)};/* harmony default export */ function a11y(o){o.prototype.luminance=function(){return o=a11y_t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r="#FFF");var n,a,i,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=a11y_t(e),d=a11y_t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(a=2)&&(a=0),void 0===i&&(i=Math.pow(10,a)),Math.floor(i*n)/i+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o="#FFF"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(i=(r=t).size)?"normal":i,"AAA"===(a=void 0===(n=r.level)?"AA":n)&&"normal"===e?7:"AA"===a&&"large"===e?3:4.5);var r,n,a,i,e}}
18521
 
18522
  // EXTERNAL MODULE: ./node_modules/traverse/index.js
18523
+ var traverse = __webpack_require__(3124);
18524
  var traverse_default = /*#__PURE__*/__webpack_require__.n(traverse);
18525
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/parse.js
18526
  /* eslint-disable @wordpress/no-unused-vars-before-return */
19215
  return obj;
19216
  }
19217
  /* eslint-enable @wordpress/no-unused-vars-before-return */
19218
+
19219
  // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js
19220
+ var inherits_browser = __webpack_require__(8575);
19221
  var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser);
19222
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js
19223
  // Adapted from https://github.com/reworkcss/css
19269
 
19270
  return buf;
19271
  };
19272
+
19273
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/compress.js
19274
  // Adapted from https://github.com/reworkcss/css
19275
  // because we needed to remove source map support.
19437
  compress_Compiler.prototype.declaration = function (node) {
19438
  return this.emit(node.property + ':' + node.value, node.position) + this.emit(';');
19439
  };
19440
+
19441
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/identity.js
19442
  /* eslint-disable @wordpress/no-unused-vars-before-return */
19443
  // Adapted from https://github.com/reworkcss/css
19635
  return Array(this.level).join(this.indentation || ' ');
19636
  };
19637
  /* eslint-enable @wordpress/no-unused-vars-before-return */
19638
+
19639
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/ast/stringify/index.js
19640
  // Adapted from https://github.com/reworkcss/css
19641
  // because we needed to remove source map support.
19664
  const code = compiler.compile(node);
19665
  return code;
19666
  }
19667
+
19668
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/traverse.js
19669
  /**
19670
  * External dependencies
19696
  }
19697
 
19698
  /* harmony default export */ var transform_styles_traverse = (traverseCSS);
19699
+
19700
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
19701
  /**
19702
  * Return `true` if the given path is http/https.
19832
  };
19833
 
19834
  /* harmony default export */ var url_rewrite = (rewrite);
19835
+
19836
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/transforms/wrap.js
19837
  /**
19838
  * @constant string IS_ROOT_TAG Regex to check if the selector is a root tag selector.
19884
  };
19885
 
19886
  /* harmony default export */ var transforms_wrap = (wrap);
19887
+
19888
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/transform-styles/index.js
19889
  /**
19890
  * External dependencies
19936
  };
19937
 
19938
  /* harmony default export */ var transform_styles = (transform_styles_transformStyles);
19939
+
19940
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editor-styles/index.js
19941
 
19942
 
20009
  key: index
20010
  }, css)));
20011
  }
20012
+
20013
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/auto.js
20014
 
20015
 
20111
  }
20112
 
20113
  /* harmony default export */ var auto = (AutoBlockPreview);
20114
+
20115
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-preview/index.js
20116
 
20117
 
20223
  children: blocks !== null && blocks !== void 0 && blocks.length ? children : null
20224
  };
20225
  }
20226
+
20227
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/preview-panel.js
20228
 
20229
 
20279
  }
20280
 
20281
  /* harmony default export */ var preview_panel = (InserterPreviewPanel);
20282
+
20283
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/context.js
20284
  /**
20285
  * WordPress dependencies
20287
 
20288
  const InserterListboxContext = (0,external_wp_element_namespaceObject.createContext)();
20289
  /* harmony default export */ var context = (InserterListboxContext);
20290
+
20291
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/item.js
20292
 
20293
 
20337
  }
20338
 
20339
  /* harmony default export */ var inserter_listbox_item = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxItem));
20340
+
20341
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/drag-handle.js
20342
 
20343
 
20354
  d: "M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"
20355
  }));
20356
  /* harmony default export */ var drag_handle = (dragHandle);
20357
+
20358
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/draggable-chip.js
20359
 
20360
 
20389
  icon: drag_handle
20390
  })))));
20391
  }
20392
+
20393
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-draggable-blocks/index.js
20394
 
20395
 
20435
  };
20436
 
20437
  /* harmony default export */ var inserter_draggable_blocks = (InserterDraggableBlocks);
20438
+
20439
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-list-item/index.js
20440
 
20441
 
20570
  }
20571
 
20572
  /* harmony default export */ var inserter_list_item = ((0,external_wp_element_namespaceObject.memo)(InserterListItem));
20573
+
20574
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/group.js
20575
 
20576
 
20607
  }
20608
 
20609
  /* harmony default export */ var group = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxGroup));
20610
+
20611
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/row.js
20612
 
20613
 
20633
  }
20634
 
20635
  /* harmony default export */ var inserter_listbox_row = ((0,external_wp_element_namespaceObject.forwardRef)(InserterListboxRow));
20636
+
20637
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-types-list/index.js
20638
 
20639
 
20684
  }
20685
 
20686
  /* harmony default export */ var block_types_list = (BlockTypesList);
20687
+
20688
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/panel.js
20689
 
20690
 
20711
  }
20712
 
20713
  /* harmony default export */ var panel = (InserterPanel);
20714
+
20715
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-block-types-state.js
20716
  /**
20717
  * WordPress dependencies
20764
  };
20765
 
20766
  /* harmony default export */ var use_block_types_state = (useBlockTypesState);
20767
+
20768
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-listbox/index.js
20769
 
20770
 
20795
  }
20796
 
20797
  /* harmony default export */ var inserter_listbox = (InserterListbox);
20798
+
20799
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-types-tab.js
20800
 
20801
 
20929
  })));
20930
  }
20931
  /* harmony default export */ var block_types_tab = (BlockTypesTab);
20932
+
20933
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/pattern-panel.js
20934
 
20935
 
21004
  }
21005
 
21006
  /* harmony default export */ var pattern_panel = (PatternInserterPanel);
21007
+
21008
  ;// CONCATENATED MODULE: external ["wp","notices"]
21009
  var external_wp_notices_namespaceObject = window["wp"]["notices"];
21010
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-patterns-state.js
21064
  };
21065
 
21066
  /* harmony default export */ var use_patterns_state = (usePatternsState);
21067
+
21068
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-patterns-list/index.js
21069
 
21070
 
21165
  }
21166
 
21167
  /* harmony default export */ var block_patterns_list = (BlockPatternList);
21168
+
21169
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/sidebar.js
21170
 
21171
 
21239
  }
21240
 
21241
  /* harmony default export */ var sidebar = (PatternExplorerSidebar);
21242
+
21243
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/no-results.js
21244
 
21245
 
21259
  }
21260
 
21261
  /* harmony default export */ var no_results = (InserterNoResults);
21262
+
21263
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/hooks/use-insertion-point.js
21264
  /**
21265
  * External dependencies
21381
  }
21382
 
21383
  /* harmony default export */ var use_insertion_point = (useInsertionPoint);
21384
+
21385
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-items.js
21386
  /**
21387
  * External dependencies
21556
 
21557
  return rank;
21558
  }
21559
+
21560
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/patterns-list.js
21561
 
21562
 
21652
  }
21653
 
21654
  /* harmony default export */ var patterns_list = (PatternList);
21655
+
21656
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-explorer/explorer.js
21657
 
21658
 
21705
  }
21706
 
21707
  /* harmony default export */ var explorer = (PatternsExplorerModal);
21708
+
21709
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/block-patterns-tab.js
21710
 
21711
 
21824
  return categories;
21825
  }, [allPatterns, allCategories]);
21826
  const patternCategory = selectedCategory ? selectedCategory : populatedCategories[0];
21827
+ return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(pattern_panel, {
21828
  selectedCategory: patternCategory,
21829
  patternCategories: populatedCategories,
21830
  onClickCategory: onClickCategory,
21831
  openPatternExplorer: () => setShowPatternsExplorer(true)
21832
+ }), !showPatternsExplorer && (0,external_wp_element_namespaceObject.createElement)(BlockPatternsCategory, {
21833
  rootClientId: rootClientId,
21834
  onInsert: onInsert,
21835
  selectedCategory: patternCategory,
21836
  populatedCategories: populatedCategories
21837
+ }), showPatternsExplorer && (0,external_wp_element_namespaceObject.createElement)(explorer, {
21838
  initialCategory: patternCategory,
21839
  patternCategories: populatedCategories,
21840
  onModalClose: () => setShowPatternsExplorer(false)
21842
  }
21843
 
21844
  /* harmony default export */ var block_patterns_tab = (BlockPatternsTabs);
21845
+
21846
  ;// CONCATENATED MODULE: external ["wp","url"]
21847
  var external_wp_url_namespaceObject = window["wp"]["url"];
21848
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/reusable-blocks-tab.js
21925
  }, (0,external_wp_i18n_namespaceObject.__)('Manage Reusable blocks'))));
21926
  }
21927
  /* harmony default export */ var reusable_blocks_tab = (ReusableBlocksTab);
21928
+
21929
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter-menu-extension/index.js
21930
  /**
21931
  * WordPress dependencies
21937
  } = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableInserterMenuExtension');
21938
  __unstableInserterMenuExtension.Slot = Slot;
21939
  /* harmony default export */ var inserter_menu_extension = (__unstableInserterMenuExtension);
21940
+
21941
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/search-results.js
21942
 
21943
 
21991
  maxBlockTypes,
21992
  showBlockDirectory = false,
21993
  isDraggable = true,
21994
+ shouldFocusBlock = true,
21995
+ prioritizePatterns
21996
  } = _ref;
21997
  const debouncedSpeak = (0,external_wp_compose_namespaceObject.useDebounce)(external_wp_a11y_namespaceObject.speak, 500);
21998
  const [destinationRootClientId, onInsertBlocks] = use_insertion_point({
22005
  });
22006
  const [blockTypes, blockTypeCategories, blockTypeCollections, onSelectBlockType] = use_block_types_state(destinationRootClientId, onInsertBlocks);
22007
  const [patterns,, onSelectBlockPattern] = use_patterns_state(onInsertBlocks, destinationRootClientId);
 
 
 
 
22008
  const filteredBlockPatterns = (0,external_wp_element_namespaceObject.useMemo)(() => {
22009
+ if (maxBlockPatterns === 0) {
22010
+ return [];
22011
+ }
22012
+
22013
  const results = searchItems(patterns, filterValue);
22014
  return maxBlockPatterns !== undefined ? results.slice(0, maxBlockPatterns) : results;
22015
+ }, [filterValue, patterns, maxBlockPatterns]);
22016
+ let maxBlockTypesToShow = maxBlockTypes;
22017
+
22018
+ if (prioritizePatterns && filteredBlockPatterns.length > 2) {
22019
+ maxBlockTypesToShow = 0;
22020
+ }
22021
+
22022
+ const filteredBlockTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
22023
+ if (maxBlockTypesToShow === 0) {
22024
+ return [];
22025
+ }
22026
+
22027
+ const results = searchBlockItems((0,external_lodash_namespaceObject.orderBy)(blockTypes, ['frecency'], ['desc']), blockTypeCategories, blockTypeCollections, filterValue);
22028
+ return maxBlockTypesToShow !== undefined ? results.slice(0, maxBlockTypesToShow) : results;
22029
+ }, [filterValue, blockTypes, blockTypeCategories, blockTypeCollections, maxBlockTypes]); // Announce search results on change
22030
 
22031
  (0,external_wp_element_namespaceObject.useEffect)(() => {
22032
  if (!filterValue) {
22044
  });
22045
  const currentShownPatterns = (0,external_wp_compose_namespaceObject.useAsyncList)(currentShownBlockTypes.length === filteredBlockTypes.length ? filteredBlockPatterns : search_results_EMPTY_ARRAY);
22046
  const hasItems = !(0,external_lodash_namespaceObject.isEmpty)(filteredBlockTypes) || !(0,external_lodash_namespaceObject.isEmpty)(filteredBlockPatterns);
22047
+ const blocksUI = !!filteredBlockTypes.length && (0,external_wp_element_namespaceObject.createElement)(panel, {
22048
  title: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Blocks'))
22049
  }, (0,external_wp_element_namespaceObject.createElement)(block_types_list, {
22050
  items: currentShownBlockTypes,
22052
  onHover: onHover,
22053
  label: (0,external_wp_i18n_namespaceObject.__)('Blocks'),
22054
  isDraggable: isDraggable
22055
+ }));
22056
+ const patternsUI = !!filteredBlockPatterns.length && (0,external_wp_element_namespaceObject.createElement)(panel, {
 
22057
  title: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, null, (0,external_wp_i18n_namespaceObject.__)('Block Patterns'))
22058
  }, (0,external_wp_element_namespaceObject.createElement)("div", {
22059
  className: "block-editor-inserter__quick-inserter-patterns"
22062
  blockPatterns: filteredBlockPatterns,
22063
  onClickPattern: onSelectBlockPattern,
22064
  isDraggable: isDraggable
22065
+ })));
22066
+ return (0,external_wp_element_namespaceObject.createElement)(inserter_listbox, null, !showBlockDirectory && !hasItems && (0,external_wp_element_namespaceObject.createElement)(no_results, null), prioritizePatterns ? patternsUI : blocksUI, !!filteredBlockTypes.length && !!filteredBlockPatterns.length && (0,external_wp_element_namespaceObject.createElement)("div", {
22067
+ className: "block-editor-inserter__quick-inserter-separator"
22068
+ }), prioritizePatterns ? blocksUI : patternsUI, showBlockDirectory && (0,external_wp_element_namespaceObject.createElement)(inserter_menu_extension.Slot, {
22069
  fillProps: {
22070
  onSelect: onSelectBlockType,
22071
  onHover,
22087
  }
22088
 
22089
  /* harmony default export */ var search_results = (InserterSearchResults);
22090
+
22091
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/tabs.js
22092
 
22093
 
22144
  }
22145
 
22146
  /* harmony default export */ var tabs = (InserterTabs);
22147
+
22148
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/menu.js
22149
 
22150
 
22296
  }
22297
 
22298
  /* harmony default export */ var menu = ((0,external_wp_element_namespaceObject.forwardRef)(InserterMenu));
22299
+
22300
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/quick-inserter.js
22301
 
22302
 
22324
  const SEARCH_THRESHOLD = 6;
22325
  const SHOWN_BLOCK_TYPES = 6;
22326
  const SHOWN_BLOCK_PATTERNS = 2;
22327
+ const SHOWN_BLOCK_PATTERNS_WITH_PRIORITIZATION = 4;
22328
  function QuickInserter(_ref) {
22329
  let {
22330
  onSelect,
22341
  });
22342
  const [blockTypes] = use_block_types_state(destinationRootClientId, onInsertBlocks);
22343
  const [patterns] = use_patterns_state(onInsertBlocks, destinationRootClientId);
 
 
22344
  const {
22345
  setInserterIsOpened,
22346
+ insertionIndex,
22347
+ prioritizePatterns
22348
  } = (0,external_wp_data_namespaceObject.useSelect)(select => {
22349
  const {
22350
  getSettings,
22351
  getBlockIndex,
22352
  getBlockCount
22353
  } = select(store);
22354
+ const settings = getSettings();
22355
  const index = getBlockIndex(clientId);
22356
+ const blockCount = getBlockCount();
22357
  return {
22358
+ setInserterIsOpened: settings.__experimentalSetIsInserterOpened,
22359
+ prioritizePatterns: settings.__experimentalPreferPatternsOnRoot && !rootClientId && index > 0 && (index < blockCount || blockCount === 0),
22360
+ insertionIndex: index === -1 ? blockCount : index
22361
  };
22362
  }, [clientId, rootClientId]);
22363
+ const showPatterns = patterns.length && (!!filterValue || prioritizePatterns);
22364
+ const showSearch = showPatterns && patterns.length > SEARCH_THRESHOLD || blockTypes.length > SEARCH_THRESHOLD;
22365
  (0,external_wp_element_namespaceObject.useEffect)(() => {
22366
  if (setInserterIsOpened) {
22367
  setInserterIsOpened(false);
22377
  });
22378
  };
22379
 
22380
+ let maxBlockPatterns = 0;
22381
+
22382
+ if (showPatterns) {
22383
+ maxBlockPatterns = prioritizePatterns ? SHOWN_BLOCK_PATTERNS_WITH_PRIORITIZATION : SHOWN_BLOCK_PATTERNS;
22384
+ }
22385
+
22386
  return (0,external_wp_element_namespaceObject.createElement)("div", {
22387
  className: classnames_default()('block-editor-inserter__quick-inserter', {
22388
  'has-search': showSearch,
22404
  rootClientId: rootClientId,
22405
  clientId: clientId,
22406
  isAppender: isAppender,
22407
+ maxBlockPatterns: maxBlockPatterns,
22408
  maxBlockTypes: SHOWN_BLOCK_TYPES,
22409
+ isDraggable: false,
22410
+ prioritizePatterns: prioritizePatterns
22411
  })), setInserterIsOpened && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, {
22412
  className: "block-editor-inserter__quick-inserter-expand",
22413
  onClick: onBrowseAll,
22414
  "aria-label": (0,external_wp_i18n_namespaceObject.__)('Browse all. This will open the main inserter panel in the editor toolbar.')
22415
  }, (0,external_wp_i18n_namespaceObject.__)('Browse all')));
22416
  }
22417
+
22418
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/index.js
22419
 
22420
 
22785
  } = _ref6;
22786
  return hasItems || !isAppender && !rootClientId && !clientId;
22787
  })])(Inserter));
22788
+
22789
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/default-block-appender/index.js
22790
 
22791
 
22891
 
22892
  };
22893
  }))(DefaultBlockAppender));
22894
+
22895
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/button-block-appender/index.js
22896
 
22897
 
22989
  */
22990
 
22991
  /* harmony default export */ var button_block_appender = ((0,external_wp_element_namespaceObject.forwardRef)(ButtonBlockAppender));
22992
+
22993
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list-appender/index.js
22994
 
22995
 
23091
  selectedBlockClientId: getSelectedBlockClientId()
23092
  };
23093
  })(BlockListAppender));
23094
+
23095
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/use-popover-scroll.js
23096
  /**
23097
  * WordPress dependencies
23130
  };
23131
  }, [scrollableRef]);
23132
  }
23133
+
23134
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/insertion-point.js
23135
 
23136
 
23466
  __unstableContentRef: __unstableContentRef
23467
  }), children);
23468
  }
23469
+
23470
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/use-in-between-inserter.js
23471
  /**
23472
  * WordPress dependencies
23607
  };
23608
  }, [openRef, getBlockListSettings, getBlockRootClientId, getBlockIndex, isBlockInsertionPointVisible, isMultiSelecting, showInsertionPoint, hideInsertionPoint, getSelectedBlockClientIds]);
23609
  }
23610
+
23611
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pre-parse-patterns.js
23612
  /**
23613
  * WordPress dependencies
23665
  }, [patterns]);
23666
  return null;
23667
  }
23668
+
23669
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-block-display-information/index.js
23670
  /**
23671
  * WordPress dependencies
23734
  };
23735
  }, [clientId]);
23736
  }
23737
+
23738
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-title/index.js
23739
  /**
23740
  * External dependencies
23815
 
23816
  return blockInformation.title;
23817
  }
23818
+
23819
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/use-scroll-when-dragging.js
23820
  /**
23821
  * WordPress dependencies
23899
 
23900
  return [startScrolling, scrollOnDragOver, stopScrolling];
23901
  }
23902
+
23903
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-draggable/index.js
23904
 
23905
 
24014
  };
24015
 
24016
  /* harmony default export */ var block_draggable = (BlockDraggable);
24017
+
24018
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-selection-button.js
24019
 
24020
 
24263
  }
24264
 
24265
  /* harmony default export */ var block_selection_button = (BlockSelectionButton);
24266
+
24267
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/navigable-toolbar/index.js
24268
 
24269
 
24415
  }
24416
 
24417
  /* harmony default export */ var navigable_toolbar = (NavigableToolbar);
24418
+
24419
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right.js
24420
 
24421
 
24430
  d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
24431
  }));
24432
  /* harmony default export */ var chevron_right = (chevronRight);
24433
+
24434
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-left.js
24435
 
24436
 
24445
  d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"
24446
  }));
24447
  /* harmony default export */ var chevron_left = (chevronLeft);
24448
+
24449
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-up.js
24450
 
24451
 
24460
  d: "M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"
24461
  }));
24462
  /* harmony default export */ var chevron_up = (chevronUp);
24463
+
24464
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-down.js
24465
 
24466
 
24475
  d: "M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"
24476
  }));
24477
  /* harmony default export */ var chevron_down = (chevronDown);
24478
+
24479
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/mover-description.js
24480
  /**
24481
  * WordPress dependencies
24642
  (0,external_wp_i18n_namespaceObject._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', selectedCount), selectedCount, position);
24643
  }
24644
  }
24645
+
24646
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/button.js
24647
 
24648
 
24794
  ref: ref
24795
  }, props));
24796
  });
24797
+
24798
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-mover/index.js
24799
 
24800
 
24913
  orientation: (_getBlockListSettings = getBlockListSettings(rootClientId)) === null || _getBlockListSettings === void 0 ? void 0 : _getBlockListSettings.orientation
24914
  };
24915
  })(BlockMover));
24916
+
24917
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/utils.js
24918
  /**
24919
  * External dependencies
25082
  }
25083
  };
25084
  }
25085
+
25086
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-parent-selector/index.js
25087
 
25088
 
25182
  })
25183
  }));
25184
  }
25185
+
25186
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/stack.js
25187
 
25188
 
25197
  d: "M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"
25198
  }));
25199
  /* harmony default export */ var library_stack = (stack);
25200
+
25201
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/preview-block-popover.js
25202
 
25203
 
25232
  blocks: blocks
25233
  })))));
25234
  }
25235
+
25236
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/block-transformations-menu.js
25237
 
25238
 
25288
  };
25289
 
25290
  /* harmony default export */ var block_transformations_menu = (BlockTransformationsMenu);
25291
+
25292
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/check.js
25293
 
25294
 
25303
  d: "M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"
25304
  }));
25305
  /* harmony default export */ var library_check = (check);
25306
+
25307
  ;// CONCATENATED MODULE: external ["wp","tokenList"]
25308
  var external_wp_tokenList_namespaceObject = window["wp"]["tokenList"];
25309
  var external_wp_tokenList_default = /*#__PURE__*/__webpack_require__.n(external_wp_tokenList_namespaceObject);
25398
  function getDefaultStyle(styles) {
25399
  return (0,external_lodash_namespaceObject.find)(styles, 'isDefault');
25400
  }
25401
+
25402
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/use-styles-for-block.js
25403
  /**
25404
  * WordPress dependencies
25506
  className
25507
  };
25508
  }
25509
+
25510
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/menu-items.js
25511
 
25512
 
25557
  }, menuItemText));
25558
  }));
25559
  }
25560
+
25561
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/block-styles-menu.js
25562
 
25563
 
25587
  onSwitch: onSwitch
25588
  }));
25589
  }
25590
+
25591
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/utils.js
25592
  /**
25593
  * WordPress dependencies
25641
  return _accumulator;
25642
  }, {});
25643
  };
25644
+
25645
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/use-transformed-patterns.js
25646
  /**
25647
  * WordPress dependencies
25746
  };
25747
 
25748
  /* harmony default export */ var use_transformed_patterns = (useTransformedPatterns);
25749
+
25750
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/pattern-transformations-menu.js
25751
 
25752
 
25859
  }
25860
 
25861
  /* harmony default export */ var pattern_transformations_menu = (PatternTransformationsMenu);
25862
+
25863
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-switcher/index.js
25864
 
25865
 
26051
  });
26052
  };
26053
  /* harmony default export */ var block_switcher = (BlockSwitcher);
26054
+
26055
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/more-vertical.js
26056
 
26057
 
26066
  d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"
26067
  }));
26068
  /* harmony default export */ var more_vertical = (moreVertical);
26069
+
26070
  ;// CONCATENATED MODULE: external ["wp","blob"]
26071
  var external_wp_blob_namespaceObject = window["wp"]["blob"];
26072
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/pasting.js
26149
 
26150
  return false;
26151
  }
26152
+
26153
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/copy-handler/index.js
26154
 
26155
 
26304
  }
26305
 
26306
  /* harmony default export */ var copy_handler = (CopyHandler);
26307
+
26308
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-actions/index.js
26309
  /**
26310
  * External dependencies
26436
 
26437
  });
26438
  }
26439
+
26440
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-mode-toggle.js
26441
 
26442
 
26505
 
26506
  };
26507
  })])(BlockModeToggle));
26508
+
26509
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-convert-button.js
26510
 
26511
 
26531
  onClick: onClick
26532
  }, !small && label);
26533
  }
26534
+
26535
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-html-convert-button.js
26536
  /**
26537
  * WordPress dependencies
26564
  }))
26565
  };
26566
  }))(BlockConvertButton));
26567
+
26568
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-menu-first-item.js
26569
  /**
26570
  * WordPress dependencies
26576
  } = (0,external_wp_components_namespaceObject.createSlotFill)('__unstableBlockSettingsMenuFirstItem');
26577
  __unstableBlockSettingsMenuFirstItem.Slot = block_settings_menu_first_item_Slot;
26578
  /* harmony default export */ var block_settings_menu_first_item = (__unstableBlockSettingsMenuFirstItem);
26579
+
26580
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/index.js
26581
 
26582
 
26644
  }
26645
 
26646
 
26647
+
26648
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/convert-to-group-buttons/use-convert-to-group-button-props.js
26649
  /**
26650
  * WordPress dependencies
26731
  groupingBlockName
26732
  };
26733
  }
26734
+
26735
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu-controls/index.js
26736
 
26737
 
26815
 
26816
  BlockSettingsMenuControls.Slot = BlockSettingsMenuControlsSlot;
26817
  /* harmony default export */ var block_settings_menu_controls = (BlockSettingsMenuControls);
26818
+
26819
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/block-settings-dropdown.js
26820
 
26821
 
26980
  });
26981
  }
26982
  /* harmony default export */ var block_settings_dropdown = (BlockSettingsDropdown);
26983
+
26984
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-settings-menu/index.js
26985
 
26986
 
27005
  }, props))));
27006
  }
27007
  /* harmony default export */ var block_settings_menu = (BlockSettingsMenu);
27008
+
27009
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-toolbar/index.js
27010
 
27011
 
27141
  clientIds: blockClientIds
27142
  }));
27143
  }
27144
+
27145
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
27146
 
27147
 
27220
  }
27221
 
27222
  /* harmony default export */ var block_contextual_toolbar = (BlockContextualToolbar);
27223
+
27224
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/block-popover.js
27225
 
27226
 
27527
  __unstableContentRef: __unstableContentRef
27528
  });
27529
  }
27530
+
27531
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/back-compat.js
27532
 
27533
 
27564
  __unstablePopoverSlot: "block-toolbar"
27565
  }), children);
27566
  }
27567
+
27568
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/with-client-id.js
27569
 
27570
 
27587
  }));
27588
  }, 'withClientId');
27589
  /* harmony default export */ var with_client_id = (withClientId);
27590
+
27591
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/button-block-appender.js
27592
 
27593
 
27620
  });
27621
  };
27622
  /* harmony default export */ var inner_blocks_button_block_appender = (with_client_id(button_block_appender_ButtonBlockAppender));
27623
+
27624
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/default-block-appender.js
27625
 
27626
 
27661
  lastBlockClientId: (0,external_lodash_namespaceObject.last)(blockClientIds)
27662
  };
27663
  })])(default_block_appender_DefaultBlockAppender));
27664
+
27665
  ;// CONCATENATED MODULE: external ["wp","isShallowEqual"]
27666
  var external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"];
27667
  var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject);
27754
  }
27755
  }, [clientId, blockListSettings, _allowedBlocks, __experimentalDefaultBlock, __experimentalDirectInsert, templateLock, parentLock, captureToolbars, orientation, updateBlockListSettings, layout]);
27756
  }
27757
+
27758
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/use-inner-block-template-sync.js
27759
  /**
27760
  * External dependencies
27823
  }
27824
  }, [innerBlocks, template, templateLock, clientId]);
27825
  }
27826
+
27827
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/get-block-context.js
27828
  /**
27829
  * External dependencies
27861
 
27862
  return blockTypeCache.get(attributes);
27863
  }
27864
+
27865
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-on-block-drop/index.js
27866
  /**
27867
  * WordPress dependencies
28053
  }
28054
  };
28055
  }
28056
+
28057
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/math.js
28058
  /**
28059
  * A string representing the name of an edge.
28138
  });
28139
  return [candidateDistance, candidateEdge];
28140
  }
28141
+
28142
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-block-drop-zone/index.js
28143
  /**
28144
  * WordPress dependencies
28270
 
28271
  });
28272
  }
28273
+
28274
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inner-blocks/index.js
28275
 
28276
 
28451
 
28452
 
28453
  /* harmony default export */ var inner_blocks = (ForwardedInnerBlocks);
28454
+
28455
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-list/index.js
28456
 
28457
 
28601
  value: false
28602
  }, (0,external_wp_element_namespaceObject.createElement)(Items, props));
28603
  }
28604
+
28605
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/control.js
28606
 
28607
 
28713
  }
28714
 
28715
  /* harmony default export */ var control = (ColorGradientControl);
28716
+
28717
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/dropdown.js
28718
 
28719
 
28789
  }, setting))
28790
  })));
28791
  }
28792
+
28793
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/use-common-single-multiple-selects.js
28794
  /**
28795
  * Internal dependencies
28801
  disableCustomGradients: !useSetting('color.customGradient')
28802
  };
28803
  }
28804
+
28805
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/use-multiple-origin-colors-and-gradients.js
28806
  /**
28807
  * WordPress dependencies
28887
  }, [customGradients, themeGradients, defaultGradients]);
28888
  return colorGradientSettings;
28889
  }
28890
+
28891
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/utils.js
28892
  /**
28893
  * External dependencies
28975
  return colordColor.contrast(color);
28976
  }).color;
28977
  }
28978
+
28979
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-color.js
28980
 
28981
 
29252
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/border/addSaveProps', border_color_addSaveProps);
29253
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/border/addEditProps', addEditProps);
29254
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/border/with-border-color-palette-styles', withBorderColorPaletteStyles);
29255
+
29256
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/utils.js
29257
  /**
29258
  * WordPress dependencies
29362
  });
29363
  return !!filteredValues.length;
29364
  }
29365
+
29366
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/all-input-control.js
29367
 
29368
 
29396
  placeholder: allPlaceholder
29397
  }));
29398
  }
29399
+
29400
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/input-controls.js
29401
 
29402
 
29449
  }));
29450
  }));
29451
  }
29452
+
29453
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/link.js
29454
 
29455
 
29464
  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"
29465
  }));
29466
  /* harmony default export */ var library_link = (link_link);
29467
+
29468
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/link-off.js
29469
 
29470
 
29479
  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"
29480
  }));
29481
  /* harmony default export */ var link_off = (linkOff);
29482
+
29483
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/linked-button.js
29484
 
29485
 
29508
  "aria-label": label
29509
  })));
29510
  }
29511
+
29512
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-radius-control/index.js
29513
 
29514
 
29599
  isLinked: isLinked
29600
  })));
29601
  }
29602
+
29603
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-radius.js
29604
 
29605
 
29689
  style: removeBorderAttribute(style, 'radius')
29690
  });
29691
  }
29692
+
29693
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/line-solid.js
29694
 
29695
 
29706
  d: "M5 11.25h14v1.5H5z"
29707
  }));
29708
  /* harmony default export */ var line_solid = (lineSolid);
29709
+
29710
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/line-dashed.js
29711
 
29712
 
29725
  clipRule: "evenodd"
29726
  }));
29727
  /* harmony default export */ var line_dashed = (lineDashed);
29728
+
29729
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/line-dotted.js
29730
 
29731
 
29744
  clipRule: "evenodd"
29745
  }));
29746
  /* harmony default export */ var line_dotted = (lineDotted);
29747
+
29748
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/border-style-control/index.js
29749
 
29750
 
29795
  "aria-label": borderStyle.label
29796
  }))));
29797
  }
29798
+
29799
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-style.js
29800
 
29801
 
29874
  style: removeBorderAttribute(style, 'style')
29875
  });
29876
  }
29877
+
29878
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border-width.js
29879
 
29880
 
30018
  style: removeBorderAttribute(style, 'width')
30019
  });
30020
  }
30021
+
30022
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/border.js
30023
 
30024
 
30178
  }
30179
  });
30180
  }
30181
+
30182
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/gradients/use-gradient.js
30183
  /**
30184
  * External dependencies
30295
  setGradient
30296
  };
30297
  }
30298
+
30299
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/contrast-checker/index.js
30300
 
30301
 
30409
  }
30410
 
30411
  /* harmony default export */ var contrast_checker = (ContrastChecker);
30412
+
30413
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/tools-panel-color-dropdown.js
30414
 
30415
 
30485
  }, controlSettings))
30486
  }));
30487
  }
30488
+
30489
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color-panel.js
30490
 
30491
 
30559
  linkColor: detectedLinkColor
30560
  }));
30561
  }
30562
+
30563
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/color.js
30564
 
30565
 
31113
  backgroundColor: [['backgroundColor'], ['style', 'color', 'background']],
31114
  gradient: [['gradient'], ['style', 'color', 'gradient']]
31115
  };
31116
+ function color_addTransforms(result, source, index, results) {
31117
  const destinationBlockType = result.name;
31118
  const activeSupports = {
31119
  linkColor: hasLinkColorSupport(destinationBlockType),
31127
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/color/addSaveProps', color_addSaveProps);
31128
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/color/addEditProps', color_addEditProps);
31129
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/color/with-color-palette-styles', withColorPaletteStyles);
31130
+ (0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/color/addTransforms', color_addTransforms);
31131
+
31132
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-appearance-control/index.js
31133
 
31134
 
31335
  }
31336
  });
31337
  }
31338
+
31339
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/line-height-control/utils.js
31340
  const BASE_DEFAULT_VALUE = 1.5;
31341
  const STEP = 0.1;
31362
  function isLineHeightDefined(lineHeight) {
31363
  return lineHeight !== undefined && lineHeight !== RESET_VALUE;
31364
  }
31365
+
31366
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/line-height-control/index.js
31367
 
31368
 
31380
  function LineHeightControl(_ref) {
31381
  let {
31382
  value: lineHeight,
31383
+ onChange,
31384
+
31385
+ /** Start opting into the new margin-free styles that will become the default in a future version. */
31386
+ __nextHasNoMarginBottom = false,
31387
+ __unstableInputWidth = '60px'
31388
  } = _ref;
31389
  const isDefined = isLineHeightDefined(lineHeight);
31390
 
31391
+ const adjustNextValue = (nextValue, wasTypedOrPasted) => {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31392
  // Set the next value without modification if lineHeight has been defined
31393
+ if (isDefined) return nextValue;
 
 
 
 
31394
  /**
31395
+ * The following logic handles the initial step up/down action
31396
+ * (from an undefined value state) so that the next values are better suited for
31397
+ * line-height rendering. For example, the first step up should immediately
31398
+ * go to 1.6, rather than the normally expected 0.1.
31399
+ *
31400
+ * Step up/down actions can be triggered by keydowns of the up/down arrow keys,
31401
+ * or by clicking the spin buttons.
31402
  */
31403
 
 
 
 
31404
  switch (nextValue) {
31405
  case `${STEP}`:
31406
  // Increment by step value
31407
+ return BASE_DEFAULT_VALUE + STEP;
 
31408
 
31409
  case '0':
31410
+ {
31411
+ // This means the user explicitly input '0', rather than stepped down
31412
+ // from an undefined value state
31413
+ if (wasTypedOrPasted) return nextValue; // Decrement by step value
31414
+
31415
+ return BASE_DEFAULT_VALUE - STEP;
31416
+ }
31417
+
31418
+ case '':
31419
+ return BASE_DEFAULT_VALUE;
31420
+
31421
+ default:
31422
+ return nextValue;
31423
  }
31424
+ };
31425
 
31426
+ const stateReducer = (state, action) => {
31427
+ var _action$payload$event;
31428
+
31429
+ // Be careful when changing this — cross-browser behavior of the
31430
+ // `inputType` field in `input` events are inconsistent.
31431
+ // For example, Firefox emits an input event with inputType="insertReplacementText"
31432
+ // on spin button clicks, while other browsers do not even emit an input event.
31433
+ const wasTypedOrPasted = ['insertText', 'insertFromPaste'].includes((_action$payload$event = action.payload.event.nativeEvent) === null || _action$payload$event === void 0 ? void 0 : _action$payload$event.inputType);
31434
+ state.value = adjustNextValue(state.value, wasTypedOrPasted);
31435
+ return state;
31436
  };
31437
 
31438
  const value = isDefined ? lineHeight : RESET_VALUE;
31439
+
31440
+ if (!__nextHasNoMarginBottom) {
31441
+ external_wp_deprecated_default()('Bottom margin styles for wp.blockEditor.LineHeightControl', {
31442
+ since: '6.0',
31443
+ version: '6.4',
31444
+ hint: 'Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version'
31445
+ });
31446
+ }
31447
+
31448
+ const deprecatedStyles = __nextHasNoMarginBottom ? undefined : {
31449
+ marginBottom: 24
31450
+ };
31451
  return (0,external_wp_element_namespaceObject.createElement)("div", {
31452
+ className: "block-editor-line-height-control",
31453
+ style: deprecatedStyles
31454
+ }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalNumberControl, {
31455
+ __unstableInputWidth: __unstableInputWidth,
31456
+ __unstableStateReducer: stateReducer,
31457
+ onChange: onChange,
31458
  label: (0,external_wp_i18n_namespaceObject.__)('Line height'),
31459
  placeholder: BASE_DEFAULT_VALUE,
31460
  step: STEP,
 
31461
  value: value,
31462
  min: 0
31463
  }));
31464
  }
31465
+
31466
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/line-height.js
31467
 
31468
 
31508
  };
31509
 
31510
  return (0,external_wp_element_namespaceObject.createElement)(LineHeightControl, {
31511
+ __unstableInputWidth: "100%",
31512
+ __nextHasNoMarginBottom: true,
31513
  value: style === null || style === void 0 ? void 0 : (_style$typography = style.typography) === null || _style$typography === void 0 ? void 0 : _style$typography.lineHeight,
31514
  onChange: onChange
31515
  });
31566
  })
31567
  });
31568
  }
31569
+
31570
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-appearance.js
31571
 
31572
 
31727
  })
31728
  });
31729
  }
31730
+
31731
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-family/index.js
31732
 
31733
 
31785
  labelPosition: "top"
31786
  }, props));
31787
  }
31788
+
31789
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-family.js
31790
 
31791
 
31971
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/fontFamily/addAttribute', font_family_addAttributes);
31972
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.getSaveContent.extraProps', 'core/fontFamily/addSaveProps', font_family_addSaveProps);
31973
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/fontFamily/addEditProps', font_family_addEditProps);
31974
+
31975
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/utils.js
31976
  /**
31977
  * External dependencies
32042
 
32043
  return `has-${(0,external_lodash_namespaceObject.kebabCase)(fontSizeSlug)}-font-size`;
32044
  }
32045
+
32046
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/font-size-picker.js
32047
 
32048
 
32067
  }
32068
 
32069
  /* harmony default export */ var font_size_picker = (FontSizePicker);
32070
+
32071
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/font-size.js
32072
 
32073
 
32322
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/font/addEditProps', font_size_addEditProps);
32323
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/font-size/with-font-size-inline-styles', withFontSizeInlineStyles);
32324
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.switchToBlockType.transformedBlock', 'core/font-size/addTransforms', font_size_addTransforms);
32325
+
32326
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-underline.js
32327
 
32328
 
32337
  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"
32338
  }));
32339
  /* harmony default export */ var format_underline = (formatUnderline);
32340
+
32341
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-strikethrough.js
32342
 
32343
 
32352
  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"
32353
  }));
32354
  /* harmony default export */ var format_strikethrough = (formatStrikethrough);
32355
+
32356
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-decoration-control/index.js
32357
 
32358
 
32401
  });
32402
  })));
32403
  }
32404
+
32405
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/text-decoration.js
32406
 
32407
 
32509
  })
32510
  });
32511
  }
32512
+
32513
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-uppercase.js
32514
 
32515
 
32524
  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"
32525
  }));
32526
  /* harmony default export */ var format_uppercase = (formatUppercase);
32527
+
32528
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-lowercase.js
32529
 
32530
 
32539
  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"
32540
  }));
32541
  /* harmony default export */ var format_lowercase = (formatLowercase);
32542
+
32543
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/format-capitalize.js
32544
 
32545
 
32554
  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"
32555
  }));
32556
  /* harmony default export */ var format_capitalize = (formatCapitalize);
32557
+
32558
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/text-transform-control/index.js
32559
 
32560
 
32607
  });
32608
  })));
32609
  }
32610
+
32611
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/text-transform.js
32612
 
32613
 
32715
  })
32716
  });
32717
  }
32718
+
32719
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/letter-spacing-control/index.js
32720
 
32721
 
32762
  onChange: onChange
32763
  });
32764
  }
32765
+
32766
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/letter-spacing.js
32767
 
32768
 
32869
  })
32870
  });
32871
  }
32872
+
32873
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/typography.js
32874
 
32875
 
33015
  const configs = [useIsFontAppearanceDisabled(props), useIsFontSizeDisabled(props), useIsLineHeightDisabled(props), useIsFontFamilyDisabled(props), useIsTextDecorationDisabled(props), useIsTextTransformDisabled(props), useIsLetterSpacingDisabled(props)];
33016
  return configs.filter(Boolean).length === configs.length;
33017
  }
33018
+
33019
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/gap.js
33020
 
33021
 
33158
  native: null
33159
  });
33160
  }
33161
+
33162
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/margin.js
33163
 
33164
 
33305
  native: null
33306
  });
33307
  }
33308
+
33309
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/padding.js
33310
 
33311
 
33452
  native: null
33453
  });
33454
  }
33455
+
33456
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/dimensions.js
33457
 
33458
 
33607
 
33608
  return true;
33609
  }
33610
+
33611
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/style.js
33612
 
33613
 
33625
 
33626
 
33627
 
33628
+
33629
  /**
33630
  * Internal dependencies
33631
  */
33674
  // option and backwards compatibility for border radius support.
33675
  const styleValue = (0,external_lodash_namespaceObject.get)(styles, path);
33676
 
33677
+ if (!external_wp_blocks_namespaceObject.__EXPERIMENTAL_STYLE_PROPERTY[propKey].useEngine) {
33678
+ if (!!subPaths && !(0,external_lodash_namespaceObject.isString)(styleValue)) {
33679
+ Object.entries(subPaths).forEach(entry => {
33680
+ const [name, subPath] = entry;
33681
+ const value = (0,external_lodash_namespaceObject.get)(styleValue, [subPath]);
33682
 
33683
+ if (value) {
33684
+ output[name] = compileStyleValue(value);
33685
+ }
33686
+ });
33687
+ } else if (!ignoredStyles.includes(path.join('.'))) {
33688
+ output[propKey] = compileStyleValue((0,external_lodash_namespaceObject.get)(styles, path));
33689
+ }
33690
  }
33691
  }
33692
+ }); // The goal is to move everything to server side generated engine styles
33693
+ // This is temporary as we absorb more and more styles into the engine.
33694
+
33695
+ const extraRules = getCSSRules(styles, {
33696
+ selector: 'self'
33697
+ });
33698
+ extraRules.forEach(rule => {
33699
+ if (rule.selector !== 'self') {
33700
+ throw "This style can't be added as inline style";
33701
+ }
33702
+
33703
+ output[rule.key] = rule.value;
33704
  });
33705
  return output;
33706
  }
33872
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/style/addEditProps', style_addEditProps);
33873
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/style/with-block-controls', withBlockControls);
33874
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/with-elements-styles', withElementsStyles);
33875
+
33876
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/duotone-control/index.js
33877
 
33878
 
33939
  }
33940
 
33941
  /* harmony default export */ var duotone_control = (DuotoneControl);
33942
+
33943
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/duotone.js
33944
 
33945
 
34217
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/editor/duotone/add-attributes', addDuotoneAttributes);
34218
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/duotone/with-editor-controls', withDuotoneControls);
34219
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/duotone/with-styles', withDuotoneStyles);
34220
+
34221
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/layout.js
34222
 
34223
 
34427
  (0,external_wp_hooks_namespaceObject.addFilter)('blocks.registerBlockType', 'core/layout/addAttribute', layout_addAttribute);
34428
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/editor/layout/with-layout-styles', withLayoutStyles);
34429
  (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockEdit', 'core/editor/layout/with-inspector-controls', withInspectorControls);
34430
+
34431
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-border-props.js
34432
  /**
34433
  * External dependencies
34499
 
34500
  return borderProps;
34501
  }
34502
+
34503
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-color-props.js
34504
  /**
34505
  * External dependencies
34614
 
34615
  return colorProps;
34616
  }
34617
+
34618
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-spacing-props.js
34619
  /**
34620
  * Internal dependencies
34645
  style: styleProp
34646
  };
34647
  }
34648
+
34649
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/use-cached-truthy.js
34650
  /**
34651
  * WordPress dependencies
34667
  }, [value]);
34668
  return cachedValue;
34669
  }
34670
+
34671
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/hooks/index.js
34672
  /**
34673
  * Internal dependencies
34689
 
34690
 
34691
 
34692
+
34693
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/with-colors.js
34694
 
34695
 
34905
 
34906
  return (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(createColorHOC(colorTypes, withColorPalette), 'withColors');
34907
  }
34908
+
34909
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors/index.js
34910
 
34911
 
34912
+
34913
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/gradients/index.js
34914
 
34915
+
34916
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/with-font-sizes.js
34917
 
34918
 
35039
  };
35040
  }]), 'withFontSizes');
35041
  });
35042
+
35043
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/font-sizes/index.js
35044
 
35045
 
35046
 
35047
+
35048
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-left.js
35049
 
35050
 
35059
  d: "M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"
35060
  }));
35061
  /* harmony default export */ var align_left = (alignLeft);
35062
+
35063
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-center.js
35064
 
35065
 
35074
  d: "M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"
35075
  }));
35076
  /* harmony default export */ var align_center = (alignCenter);
35077
+
35078
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/align-right.js
35079
 
35080
 
35089
  d: "M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"
35090
  }));
35091
  /* harmony default export */ var align_right = (alignRight);
35092
+
35093
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/ui.js
35094
 
35095
 
35171
  }
35172
 
35173
  /* harmony default export */ var alignment_control_ui = (AlignmentUI);
35174
+
35175
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/alignment-control/index.js
35176
 
35177
 
35190
  isToolbar: true
35191
  }));
35192
  }
35193
+
35194
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/autocompleters/block.js
35195
 
35196
 
35295
 
35296
 
35297
  /* harmony default export */ var autocompleters_block = (createBlockCompleter());
35298
+
35299
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/autocomplete/index.js
35300
 
35301
 
35377
 
35378
 
35379
  /* harmony default export */ var autocomplete = (BlockEditorAutocomplete);
35380
+
35381
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/fullscreen.js
35382
 
35383
 
35392
  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"
35393
  }));
35394
  /* harmony default export */ var library_fullscreen = (fullscreen);
35395
+
35396
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-full-height-alignment-control/index.js
35397
 
35398
 
35420
  }
35421
 
35422
  /* harmony default export */ var block_full_height_alignment_control = (BlockFullHeightAlignmentControl);
35423
+
35424
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-alignment-matrix-control/index.js
35425
 
35426
 
35489
  }
35490
 
35491
  /* harmony default export */ var block_alignment_matrix_control = (BlockAlignmentMatrixControl);
35492
+
35493
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/chevron-right-small.js
35494
 
35495
 
35504
  d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"
35505
  }));
35506
  /* harmony default export */ var chevron_right_small = (chevronRightSmall);
35507
+
35508
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-breadcrumb/index.js
35509
 
35510
 
35600
  }
35601
 
35602
  /* harmony default export */ var block_breadcrumb = (BlockBreadcrumb);
35603
+
35604
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-content-overlay/index.js
35605
 
35606
 
35687
  }), wrapperProps === null || wrapperProps === void 0 ? void 0 : wrapperProps.children);
35688
  }
35689
  /* eslint-enable jsx-a11y/no-static-element-interactions */
35690
+
35691
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-style-selector/index.js
35692
 
35693
 
35781
  };
35782
 
35783
  /* harmony default export */ var color_style_selector = (BlockColorsStyleSelector);
35784
+
35785
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/list-view.js
35786
 
35787
 
35796
  d: "M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"
35797
  }));
35798
  /* harmony default export */ var list_view = (listView);
35799
+
35800
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/leaf.js
35801
 
35802
 
35842
  setSize: rowCount
35843
  }, props), children);
35844
  }
35845
+
35846
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/utils.js
35847
  /**
35848
  * External dependencies
35867
  */
35868
 
35869
  const isClientIdSelected = (clientId, selectedBlockClientIds) => (0,external_lodash_namespaceObject.isArray)(selectedBlockClientIds) && selectedBlockClientIds.length ? selectedBlockClientIds.indexOf(clientId) !== -1 : selectedBlockClientIds === clientId;
35870
+ /**
35871
+ * From a start and end clientId of potentially different nesting levels,
35872
+ * return the nearest-depth ids that have a common level of depth in the
35873
+ * nesting hierarchy. For multiple block selection, this ensure that the
35874
+ * selection is always at the same nesting level, and not split across
35875
+ * separate levels.
35876
+ *
35877
+ * @param {string} startId The first id of a selection.
35878
+ * @param {string} endId The end id of a selection, usually one that has been clicked on.
35879
+ * @param {string[]} startParents An array of ancestor ids for the start id, in descending order.
35880
+ * @param {string[]} endParents An array of ancestor ids for the end id, in descending order.
35881
+ * @return {Object} An object containing the start and end ids.
35882
+ */
35883
+
35884
+ function getCommonDepthClientIds(startId, endId, startParents, endParents) {
35885
+ const startPath = [...startParents, startId];
35886
+ const endPath = [...endParents, endId];
35887
+ const depth = Math.min(startPath.length, endPath.length) - 1;
35888
+ const start = startPath[depth];
35889
+ const end = endPath[depth];
35890
+ return {
35891
+ start,
35892
+ end
35893
+ };
35894
+ }
35895
+
35896
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/expander.js
35897
 
35898
 
35924
  }))
35925
  );
35926
  }
35927
+
35928
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-select-button.js
35929
 
35930
 
35985
 
35986
  function onKeyDownHandler(event) {
35987
  if (event.keyCode === external_wp_keycodes_namespaceObject.ENTER || event.keyCode === external_wp_keycodes_namespaceObject.SPACE) {
 
35988
  onClick(event);
35989
  }
35990
  }
36018
  }
36019
 
36020
  /* harmony default export */ var block_select_button = ((0,external_wp_element_namespaceObject.forwardRef)(ListViewBlockSelectButton));
36021
+
36022
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block-contents.js
36023
 
36024
 
36050
  siblingBlockCount,
36051
  level,
36052
  isExpanded,
36053
+ selectedClientIds,
36054
  ...props
36055
  } = _ref;
36056
  const {
36061
  selectedBlockInBlockEditor
36062
  } = (0,external_wp_data_namespaceObject.useSelect)(select => {
36063
  const {
 
36064
  hasBlockMovingClientId,
36065
  getSelectedBlockClientId
36066
  } = select(store);
36067
  return {
 
36068
  blockMovingClientId: hasBlockMovingClientId(),
36069
  selectedBlockInBlockEditor: getSelectedBlockClientId()
36070
  };
36072
  const isBlockMoveTarget = blockMovingClientId && selectedBlockInBlockEditor === clientId;
36073
  const className = classnames_default()('block-editor-list-view-block-contents', {
36074
  'is-dropping-before': isBlockMoveTarget
36075
+ }); // Only include all selected blocks if the currently clicked on block
36076
+ // is one of the selected blocks. This ensures that if a user attempts
36077
+ // to drag a block that isn't part of the selection, they're still able
36078
+ // to drag it and rearrange its position.
36079
+
36080
+ const draggableClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
36081
  return (0,external_wp_element_namespaceObject.createElement)(block_draggable, {
36082
+ clientIds: draggableClientIds
36083
  }, _ref2 => {
36084
  let {
36085
  draggable,
36104
  });
36105
  });
36106
  /* harmony default export */ var block_contents = (ListViewBlockContents);
36107
+
36108
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/context.js
36109
  /**
36110
  * WordPress dependencies
36115
  __experimentalPersistentListViewFeatures: false
36116
  });
36117
  const useListViewContext = () => (0,external_wp_element_namespaceObject.useContext)(ListViewContext);
36118
+
36119
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/block.js
36120
 
36121
 
36157
  siblingBlockCount,
36158
  showBlockMovers,
36159
  path,
36160
+ isExpanded,
36161
+ selectedClientIds
36162
  } = _ref;
36163
  const cellRef = (0,external_wp_element_namespaceObject.useRef)(null);
36164
  const [isHovered, setIsHovered] = (0,external_wp_element_namespaceObject.useState)(false);
36202
  highlightBlock(clientId, false);
36203
  }, [clientId, setIsHovered, highlightBlock]);
36204
  const selectEditorBlock = (0,external_wp_element_namespaceObject.useCallback)(event => {
36205
+ selectBlock(event, clientId);
 
36206
  }, [clientId, selectBlock]);
36207
+ const selectDuplicatedBlock = (0,external_wp_element_namespaceObject.useCallback)(newClientId => {
36208
+ selectBlock(undefined, newClientId);
36209
+ }, [selectBlock]);
36210
  const toggleExpanded = (0,external_wp_element_namespaceObject.useCallback)(event => {
36211
+ // Prevent shift+click from opening link in a new window when toggling.
36212
+ event.preventDefault();
36213
  event.stopPropagation();
36214
 
36215
  if (isExpanded === true) {
36236
  'has-single-cell': hideBlockActions
36237
  });
36238
  const blockInformation = useBlockDisplayInformation(clientId);
36239
+ const settingsAriaLabel = blockInformation ? (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: The title of the block.
36240
+ (0,external_wp_i18n_namespaceObject.__)('Options for %s block'), blockInformation.title) : (0,external_wp_i18n_namespaceObject.__)('Options'); // Only include all selected blocks if the currently clicked on block
36241
+ // is one of the selected blocks. This ensures that if a user attempts
36242
+ // to alter a block that isn't part of the selection, they're still able
36243
+ // to do so.
36244
+
36245
+ const dropdownClientIds = selectedClientIds.includes(clientId) ? selectedClientIds : [clientId];
36246
  return (0,external_wp_element_namespaceObject.createElement)(ListViewLeaf, {
36247
  className: classes,
36248
  onMouseEnter: onMouseEnter,
36279
  ref: ref,
36280
  tabIndex: tabIndex,
36281
  onFocus: onFocus,
36282
+ isExpanded: isExpanded,
36283
+ selectedClientIds: selectedClientIds
36284
  }));
36285
  }), hasRenderedMovers && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTreeGridCell, {
36286
  className: moverCellClassName,
36320
  onFocus
36321
  } = _ref5;
36322
  return (0,external_wp_element_namespaceObject.createElement)(block_settings_dropdown, {
36323
+ clientIds: dropdownClientIds,
36324
  icon: more_vertical,
36325
  label: settingsAriaLabel,
36326
  toggleProps: {
36330
  onFocus
36331
  },
36332
  disableOpenOnArrowDown: true,
36333
+ __experimentalSelectBlock: selectDuplicatedBlock
36334
  });
36335
  }));
36336
  }
36337
 
36338
  /* harmony default export */ var list_view_block = ((0,external_wp_element_namespaceObject.memo)(ListViewBlock));
36339
+
36340
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/branch.js
36341
 
36342
 
36470
  showBlockMovers: showBlockMovers,
36471
  path: updatedPath,
36472
  isExpanded: isExpanded,
36473
+ listPosition: nextPosition,
36474
+ selectedClientIds: selectedClientIds
36475
  }), !showBlock && (0,external_wp_element_namespaceObject.createElement)("tr", null, (0,external_wp_element_namespaceObject.createElement)("td", {
36476
  className: "block-editor-list-view-placeholder"
36477
  })), hasNestedBlocks && isExpanded && !isDragged && (0,external_wp_element_namespaceObject.createElement)(ListViewBranch, {
36493
  selectBlock: () => {}
36494
  };
36495
  /* harmony default export */ var branch = ((0,external_wp_element_namespaceObject.memo)(ListViewBranch));
36496
+
36497
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/drop-indicator.js
36498
 
36499
 
36603
  className: "block-editor-list-view-drop-indicator__line"
36604
  }));
36605
  }
36606
+
36607
+ ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-block-selection.js
36608
+ /**
36609
+ * External dependencies
36610
+ */
36611
+
36612
+ /**
36613
+ * WordPress dependencies
36614
+ */
36615
+
36616
+
36617
+
36618
+
36619
+
36620
+
36621
+
36622
+ /**
36623
+ * Internal dependencies
36624
+ */
36625
+
36626
+
36627
+
36628
+ function useBlockSelection() {
36629
+ const {
36630
+ clearSelectedBlock,
36631
+ multiSelect,
36632
+ selectBlock
36633
+ } = (0,external_wp_data_namespaceObject.useDispatch)(store);
36634
+ const {
36635
+ getBlockName,
36636
+ getBlockParents,
36637
+ getBlockSelectionStart,
36638
+ getBlockSelectionEnd,
36639
+ getSelectedBlockClientIds,
36640
+ hasMultiSelection,
36641
+ hasSelectedBlock
36642
+ } = (0,external_wp_data_namespaceObject.useSelect)(store);
36643
+ const {
36644
+ getBlockType
36645
+ } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
36646
+ const updateBlockSelection = (0,external_wp_element_namespaceObject.useCallback)(async (event, clientId, destinationClientId) => {
36647
+ if (!(event !== null && event !== void 0 && event.shiftKey)) {
36648
+ await clearSelectedBlock();
36649
+ selectBlock(clientId);
36650
+ return;
36651
+ } // To handle multiple block selection via the `SHIFT` key, prevent
36652
+ // the browser default behavior of opening the link in a new window.
36653
+
36654
+
36655
+ event.preventDefault();
36656
+ const isKeyPress = event.type === 'keydown' && (event.keyCode === external_wp_keycodes_namespaceObject.UP || event.keyCode === external_wp_keycodes_namespaceObject.DOWN); // Handle clicking on a block when no blocks are selected, and return early.
36657
+
36658
+ if (!isKeyPress && !hasSelectedBlock() && !hasMultiSelection()) {
36659
+ selectBlock(clientId, null);
36660
+ return;
36661
+ }
36662
+
36663
+ const selectedBlocks = getSelectedBlockClientIds();
36664
+ const clientIdWithParents = [...getBlockParents(clientId), clientId];
36665
+
36666
+ if (isKeyPress && !selectedBlocks.some(blockId => clientIdWithParents.includes(blockId))) {
36667
+ // Ensure that shift-selecting blocks via the keyboard only
36668
+ // expands the current selection if focusing over already
36669
+ // selected blocks. Otherwise, clear the selection so that
36670
+ // a user can create a new selection entirely by keyboard.
36671
+ await clearSelectedBlock();
36672
+ }
36673
+
36674
+ let startTarget = getBlockSelectionStart();
36675
+ let endTarget = clientId; // Handle keyboard behavior for selecting multiple blocks.
36676
+
36677
+ if (isKeyPress) {
36678
+ if (!hasSelectedBlock() && !hasMultiSelection()) {
36679
+ // Set the starting point of the selection to the currently
36680
+ // focused block, if there are no blocks currently selected.
36681
+ // This ensures that as the selection is expanded or contracted,
36682
+ // the starting point of the selection is anchored to that block.
36683
+ startTarget = clientId;
36684
+ }
36685
+
36686
+ if (destinationClientId) {
36687
+ // If the user presses UP or DOWN, we want to ensure that the block they're
36688
+ // moving to is the target for selection, and not the currently focused one.
36689
+ endTarget = destinationClientId;
36690
+ }
36691
+ }
36692
+
36693
+ const startParents = getBlockParents(startTarget);
36694
+ const endParents = getBlockParents(endTarget);
36695
+ const {
36696
+ start,
36697
+ end
36698
+ } = getCommonDepthClientIds(startTarget, endTarget, startParents, endParents);
36699
+ await multiSelect(start, end, null); // Announce deselected block, or number of deselected blocks if
36700
+ // the total number of blocks deselected is greater than one.
36701
+
36702
+ const updatedSelectedBlocks = getSelectedBlockClientIds();
36703
+ const selectionDiff = (0,external_lodash_namespaceObject.difference)(selectedBlocks, updatedSelectedBlocks);
36704
+ let label;
36705
+
36706
+ if (selectionDiff.length === 1) {
36707
+ var _getBlockType;
36708
+
36709
+ const title = (_getBlockType = getBlockType(getBlockName(selectionDiff[0]))) === null || _getBlockType === void 0 ? void 0 : _getBlockType.title;
36710
+
36711
+ if (title) {
36712
+ label = (0,external_wp_i18n_namespaceObject.sprintf)(
36713
+ /* translators: %s: block name */
36714
+ (0,external_wp_i18n_namespaceObject.__)('%s deselected.'), title);
36715
+ }
36716
+ } else if (selectionDiff.length > 1) {
36717
+ label = (0,external_wp_i18n_namespaceObject.sprintf)(
36718
+ /* translators: %s: number of deselected blocks */
36719
+ (0,external_wp_i18n_namespaceObject.__)('%s blocks deselected.'), selectionDiff.length);
36720
+ }
36721
+
36722
+ if (label) {
36723
+ (0,external_wp_a11y_namespaceObject.speak)(label);
36724
+ }
36725
+ }, [clearSelectedBlock, getBlockName, getBlockType, getBlockParents, getBlockSelectionStart, getBlockSelectionEnd, getSelectedBlockClientIds, hasMultiSelection, hasSelectedBlock, multiSelect, selectBlock]);
36726
+ return {
36727
+ updateBlockSelection
36728
+ };
36729
+ }
36730
+
36731
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-client-ids.js
36732
  /**
36733
  * WordPress dependencies
36752
  };
36753
  }, [blocks]);
36754
  }
36755
+
36756
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-drop-zone.js
36757
  /**
36758
  * WordPress dependencies
36986
  target
36987
  };
36988
  }
36989
+
36990
+ ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/use-list-view-expand-selected-item.js
36991
+ /**
36992
+ * WordPress dependencies
36993
+ */
36994
+
36995
+
36996
+ /**
36997
+ * Internal dependencies
36998
+ */
36999
+
37000
+
37001
+ function useListViewExpandSelectedItem(_ref) {
37002
+ let {
37003
+ firstSelectedBlockClientId,
37004
+ setExpandedState
37005
+ } = _ref;
37006
+ const [selectedTreeId, setSelectedTreeId] = (0,external_wp_element_namespaceObject.useState)(null);
37007
+ const {
37008
+ selectedBlockParentClientIds
37009
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
37010
+ const {
37011
+ getBlockParents
37012
+ } = select(store);
37013
+ return {
37014
+ selectedBlockParentClientIds: getBlockParents(firstSelectedBlockClientId, false)
37015
+ };
37016
+ }, [firstSelectedBlockClientId]);
37017
+ const parentClientIds = Array.isArray(selectedBlockParentClientIds) && selectedBlockParentClientIds.length ? selectedBlockParentClientIds : null; // Expand tree when a block is selected.
37018
+
37019
+ (0,external_wp_element_namespaceObject.useEffect)(() => {
37020
+ // If the selectedTreeId is the same as the selected block,
37021
+ // it means that the block was selected using the block list tree.
37022
+ if (selectedTreeId === firstSelectedBlockClientId) {
37023
+ return;
37024
+ } // If the selected block has parents, get the top-level parent.
37025
+
37026
+
37027
+ if (parentClientIds) {
37028
+ // If the selected block has parents,
37029
+ // expand the tree branch.
37030
+ setExpandedState({
37031
+ type: 'expand',
37032
+ clientIds: selectedBlockParentClientIds
37033
+ });
37034
+ }
37035
+ }, [firstSelectedBlockClientId]);
37036
+ return {
37037
+ setSelectedTreeId
37038
+ };
37039
+ }
37040
+
37041
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/list-view/index.js
37042
 
37043
 
37061
 
37062
 
37063
 
 
 
 
 
 
 
 
 
 
 
37064
 
 
 
 
 
 
 
37065
 
37066
+ const expanded = (state, action) => {
37067
+ if (Array.isArray(action.clientIds)) {
37068
+ return { ...state,
37069
+ ...action.clientIds.reduce((newState, id) => ({ ...newState,
37070
+ [id]: action.type === 'expand'
37071
+ }), {})
37072
+ };
37073
  }
37074
+
37075
+ return state;
37076
  };
37077
+
37078
+ const BLOCK_LIST_ITEM_HEIGHT = 36;
37079
  /**
37080
  * Wrap `ListViewRows` with `TreeGrid`. ListViewRows is a
37081
  * recursive component (it renders itself), so this ensures TreeGrid is only
37082
  * present at the very top of the navigation grid.
37083
  *
37084
+ * @param {Object} props Components props.
37085
+ * @param {Array} props.blocks Custom subset of block client IDs to be used instead of the default hierarchy.
37086
+ * @param {boolean} props.showNestedBlocks Flag to enable displaying nested blocks.
37087
+ * @param {boolean} props.showBlockMovers Flag to enable block movers
37088
+ * @param {boolean} props.__experimentalFeatures Flag to enable experimental features.
37089
+ * @param {boolean} props.__experimentalPersistentListViewFeatures Flag to enable features for the Persistent List View experiment.
37090
+ * @param {boolean} props.__experimentalHideContainerBlockActions Flag to hide actions of top level blocks (like core/widget-area)
37091
+ * @param {Object} ref Forwarded ref
 
37092
  */
37093
 
 
37094
  function ListView(_ref, ref) {
37095
  let {
37096
  blocks,
 
37097
  __experimentalFeatures,
37098
  __experimentalPersistentListViewFeatures,
37099
  __experimentalHideContainerBlockActions,
37106
  draggedClientIds,
37107
  selectedClientIds
37108
  } = useListViewClientIds(blocks);
 
 
 
37109
  const {
37110
  visibleBlockCount
37111
  } = (0,external_wp_data_namespaceObject.useSelect)(select => {
37118
  visibleBlockCount: getGlobalBlockCount() - draggedBlockCount
37119
  };
37120
  }, [draggedClientIds]);
37121
+ const {
37122
+ updateBlockSelection
37123
+ } = useBlockSelection();
 
37124
  const [expandedState, setExpandedState] = (0,external_wp_element_namespaceObject.useReducer)(expanded, {});
37125
  const {
37126
  ref: dropZoneRef,
37129
  const elementRef = (0,external_wp_element_namespaceObject.useRef)();
37130
  const treeGridRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([elementRef, dropZoneRef, ref]);
37131
  const isMounted = (0,external_wp_element_namespaceObject.useRef)(false);
37132
+ const {
37133
+ setSelectedTreeId
37134
+ } = useListViewExpandSelectedItem({
37135
+ firstSelectedBlockClientId: selectedClientIds[0],
37136
+ setExpandedState
37137
+ });
37138
+ const selectEditorBlock = (0,external_wp_element_namespaceObject.useCallback)((event, clientId) => {
37139
+ updateBlockSelection(event, clientId);
37140
+ setSelectedTreeId(clientId);
37141
+ }, [setSelectedTreeId, updateBlockSelection]);
37142
  (0,external_wp_element_namespaceObject.useEffect)(() => {
37143
  isMounted.current = true;
37144
  }, []); // List View renders a fixed number of items and relies on each having a fixed item height of 36px.
37145
  // If this value changes, we should also change the itemHeight value set in useFixedWindowList.
37146
  // See: https://github.com/WordPress/gutenberg/pull/35230 for additional context.
37147
 
37148
+ const [fixedListWindow] = (0,external_wp_compose_namespaceObject.__experimentalUseFixedWindowList)(elementRef, BLOCK_LIST_ITEM_HEIGHT, visibleBlockCount, {
37149
  useWindowing: __experimentalPersistentListViewFeatures,
37150
  windowOverscan: 40
37151
  });
37156
 
37157
  setExpandedState({
37158
  type: 'expand',
37159
+ clientIds: [clientId]
37160
  });
37161
  }, [setExpandedState]);
37162
  const collapse = (0,external_wp_element_namespaceObject.useCallback)(clientId => {
37166
 
37167
  setExpandedState({
37168
  type: 'collapse',
37169
+ clientIds: [clientId]
37170
  });
37171
  }, [setExpandedState]);
37172
  const expandRow = (0,external_wp_element_namespaceObject.useCallback)(row => {
37179
 
37180
  collapse(row === null || row === void 0 ? void 0 : (_row$dataset2 = row.dataset) === null || _row$dataset2 === void 0 ? void 0 : _row$dataset2.block);
37181
  }, [collapse]);
37182
+ const focusRow = (0,external_wp_element_namespaceObject.useCallback)((event, startRow, endRow) => {
37183
+ if (event.shiftKey) {
37184
+ var _startRow$dataset, _endRow$dataset;
37185
+
37186
+ updateBlockSelection(event, startRow === null || startRow === void 0 ? void 0 : (_startRow$dataset = startRow.dataset) === null || _startRow$dataset === void 0 ? void 0 : _startRow$dataset.block, endRow === null || endRow === void 0 ? void 0 : (_endRow$dataset = endRow.dataset) === null || _endRow$dataset === void 0 ? void 0 : _endRow$dataset.block);
37187
+ }
37188
+ }, [updateBlockSelection]);
37189
  const contextValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({
37190
  __experimentalFeatures,
37191
  __experimentalPersistentListViewFeatures,
37206
  "aria-label": (0,external_wp_i18n_namespaceObject.__)('Block navigation structure'),
37207
  ref: treeGridRef,
37208
  onCollapseRow: collapseRow,
37209
+ onExpandRow: expandRow,
37210
+ onFocusRow: focusRow
37211
  }, (0,external_wp_element_namespaceObject.createElement)(ListViewContext.Provider, {
37212
  value: contextValue
37213
  }, (0,external_wp_element_namespaceObject.createElement)(branch, _extends({
37221
  }
37222
 
37223
  /* harmony default export */ var components_list_view = ((0,external_wp_element_namespaceObject.forwardRef)(ListView));
37224
+
37225
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-navigation/dropdown.js
37226
 
37227
 
37298
  }
37299
 
37300
  /* harmony default export */ var dropdown = ((0,external_wp_element_namespaceObject.forwardRef)(BlockNavigationDropdown));
37301
+
37302
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/preview-panel.js
37303
 
37304
 
37334
  isStylePreview: true
37335
  });
37336
  }
37337
+
37338
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-styles/index.js
37339
 
37340
 
37484
 
37485
  BlockStyles.Slot = BlockStylesPreviewPanelSlot;
37486
  /* harmony default export */ var block_styles = (BlockStyles);
37487
+
37488
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/layout.js
37489
 
37490
 
37499
  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"
37500
  }));
37501
  /* harmony default export */ var library_layout = (layout);
37502
+
37503
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-picker/index.js
37504
 
37505
 
37557
  }
37558
 
37559
  /* harmony default export */ var block_variation_picker = (BlockVariationPicker);
37560
+
37561
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/grid.js
37562
 
37563
 
37574
  clipRule: "evenodd"
37575
  }));
37576
  /* harmony default export */ var library_grid = (grid);
37577
+
37578
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/constants.js
37579
  const VIEWMODES = {
37580
  carousel: 'carousel',
37581
  grid: 'grid'
37582
  };
37583
+
37584
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/setup-toolbar.js
37585
 
37586
 
37672
  };
37673
 
37674
  /* harmony default export */ var setup_toolbar = (SetupToolbar);
37675
+
37676
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/use-patterns-setup.js
37677
  /**
37678
  * WordPress dependencies
37702
  }
37703
 
37704
  /* harmony default export */ var use_patterns_setup = (usePatternsSetup);
37705
+
37706
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-pattern-setup/index.js
37707
 
37708
 
37872
  };
37873
 
37874
  /* harmony default export */ var block_pattern_setup = (BlockPatternSetup);
37875
+
37876
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/block-variation-transforms.js
37877
  /**
37878
  * External dependencies
37905
  if (matches.length !== 1) return;
37906
  return matches[0];
37907
  };
37908
+
37909
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-variation-transforms/index.js
37910
 
37911
 
38002
  }
38003
 
38004
  /* harmony default export */ var block_variation_transforms = (__experimentalBlockVariationTransforms);
38005
+
38006
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/icons.js
38007
 
38008
 
38028
  }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, {
38029
  d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z"
38030
  }));
38031
+
38032
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/ui.js
38033
 
38034
 
38101
 
38102
 
38103
  /* harmony default export */ var block_vertical_alignment_control_ui = (BlockVerticalAlignmentUI);
38104
+
38105
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-vertical-alignment-control/index.js
38106
 
38107
 
38120
  isToolbar: true
38121
  }));
38122
  }
38123
+
38124
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/with-color-context.js
38125
 
38126
 
38153
  }));
38154
  };
38155
  }, 'withColorContext'));
38156
+
38157
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/index.js
38158
  /**
38159
  * WordPress dependencies
38165
 
38166
 
38167
  /* harmony default export */ var color_palette = (with_color_context(external_wp_components_namespaceObject.ColorPalette));
38168
+
38169
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/color-palette/control.js
38170
 
38171
 
38187
  disableCustomGradients: true
38188
  }));
38189
  }
38190
+
38191
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/colors-gradients/panel-color-gradient-settings.js
38192
 
38193
 
38329
  };
38330
 
38331
  /* harmony default export */ var panel_color_gradient_settings = (PanelColorGradientSettings);
38332
+
38333
  ;// CONCATENATED MODULE: ./node_modules/react-easy-crop/node_modules/tslib/tslib.es6.js
38334
  /*! *****************************************************************************
38335
  Copyright (c) Microsoft Corporation.
39285
  }((external_React_default()).Component);
39286
 
39287
  /* harmony default export */ var index_module = (Cropper);
 
39288
 
39289
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/constants.js
39290
  const constants_MIN_ZOOM = 100;
39293
  position: 'bottom right',
39294
  isAlternate: true
39295
  };
39296
+
39297
  ;// CONCATENATED MODULE: external ["wp","apiFetch"]
39298
  var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
39299
  var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
39368
  cancel
39369
  }), [isInProgress, apply, cancel]);
39370
  }
39371
+
39372
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/use-transform-image.js
39373
  /**
39374
  * WordPress dependencies
39497
  }, [isEditing, initializeTransformValues]);
39498
  return transformState;
39499
  }
39500
+
39501
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/context.js
39502
 
39503
 
39543
  value: providerValue
39544
  }, children);
39545
  }
39546
+
39547
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/cropper.js
39548
 
39549
 
39614
  }
39615
  }), isInProgress && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null));
39616
  }
39617
+
39618
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/search.js
39619
 
39620
 
39629
  d: "M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"
39630
  }));
39631
  /* harmony default export */ var library_search = (search);
39632
+
39633
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/zoom-dropdown.js
39634
 
39635
 
39676
  })
39677
  });
39678
  }
39679
+
39680
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/aspect-ratio.js
39681
 
39682
 
39691
  d: "M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"
39692
  }));
39693
  /* harmony default export */ var aspect_ratio = (aspectRatio);
39694
+
39695
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/aspect-ratio-dropdown.js
39696
 
39697
 
39815
  }));
39816
  });
39817
  }
39818
+
39819
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/rotate-right.js
39820
 
39821
 
39830
  d: "M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"
39831
  }));
39832
  /* harmony default export */ var rotate_right = (rotateRight);
39833
+
39834
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/rotation-button.js
39835
 
39836
 
39857
  disabled: isInProgress
39858
  });
39859
  }
39860
+
39861
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/form-controls.js
39862
 
39863
 
39884
  onClick: cancel
39885
  }, (0,external_wp_i18n_namespaceObject.__)('Cancel')));
39886
  }
39887
+
39888
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-editor/index.js
39889
 
39890
 
39923
  })), (0,external_wp_element_namespaceObject.createElement)(RotationButton, null)), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_wp_element_namespaceObject.createElement)(FormControls, null))));
39924
  }
39925
 
39926
+
39927
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/use-dimension-handler.js
39928
  /**
39929
  * WordPress dependencies
39986
  updateDimensions
39987
  };
39988
  }
39989
+
39990
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/image-size-control/index.js
39991
 
39992
 
40069
  onClick: () => updateDimensions()
40070
  }, (0,external_wp_i18n_namespaceObject.__)('Reset')))));
40071
  }
40072
+
40073
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/keyboard-return.js
40074
 
40075
 
40084
  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"
40085
  }));
40086
  /* harmony default export */ var keyboard_return = (keyboardReturn);
40087
+
40088
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/settings-drawer.js
40089
 
40090
 
40131
  };
40132
 
40133
  /* harmony default export */ var settings_drawer = (LinkControlSettingsDrawer);
40134
+
40135
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/index.js
40136
 
40137
 
40630
  __experimentalFetchLinkSuggestions: getSettings().__experimentalFetchLinkSuggestions
40631
  };
40632
  }))(URLInput));
40633
+
40634
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-create-button.js
40635
 
40636
 
40688
  }, text)));
40689
  };
40690
  /* harmony default export */ var search_create_button = (LinkControlSearchCreate);
40691
+
40692
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/globe.js
40693
 
40694
 
40703
  d: "M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"
40704
  }));
40705
  /* harmony default export */ var library_globe = (globe);
40706
+
40707
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-item.js
40708
 
40709
 
40765
  }
40766
 
40767
  /* harmony default export */ var search_item = (LinkControlSearchItem);
40768
+
40769
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/constants.js
40770
  /**
40771
  * WordPress dependencies
40779
  id: 'opensInNewTab',
40780
  title: (0,external_wp_i18n_namespaceObject.__)('Open in new tab')
40781
  }];
40782
+
40783
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-results.js
40784
 
40785
 
40881
  });
40882
  })));
40883
  }
40884
+
40885
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/is-url-like.js
40886
  /**
40887
  * External dependencies
40908
  const isInternal = (0,external_lodash_namespaceObject.startsWith)(val, '#');
40909
  return (0,external_wp_url_namespaceObject.isURL)(val) || val && val.includes('www.') || isInternal;
40910
  }
40911
+
40912
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-search-handler.js
40913
  /**
40914
  * WordPress dependencies
41035
  }, fetchSearchSuggestions, directEntryHandler, withCreateSuggestion, withURLSuggestion, pageOnFront);
41036
  }, [directEntryHandler, fetchSearchSuggestions, withCreateSuggestion]);
41037
  }
41038
+
41039
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/search-input.js
41040
 
41041
 
41176
  }), children);
41177
  });
41178
  /* harmony default export */ var search_input = (LinkControlSearchInput);
41179
+
41180
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/info.js
41181
 
41182
 
41191
  d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"
41192
  }));
41193
  /* harmony default export */ var library_info = (info);
41194
+
41195
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/pencil.js
41196
 
41197
 
41206
  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"
41207
  }));
41208
  /* harmony default export */ var library_pencil = (pencil);
41209
+
41210
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/edit.js
41211
  /**
41212
  * Internal dependencies
41213
  */
41214
 
41215
  /* harmony default export */ var library_edit = (library_pencil);
41216
+
41217
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/viewer-slot.js
41218
  /**
41219
  * WordPress dependencies
41225
  } = (0,external_wp_components_namespaceObject.createSlotFill)('BlockEditorLinkControlViewer');
41226
 
41227
  /* harmony default export */ var viewer_slot = ((/* unused pure expression or super */ null && (ViewerSlot)));
41228
+
41229
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-rich-url-data.js
41230
  /**
41231
  * Internal dependencies
41312
  }
41313
 
41314
  /* harmony default export */ var use_rich_url_data = (useRemoteUrlData);
41315
+
41316
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/link-preview.js
41317
 
41318
 
41436
  numberOfLines: "2"
41437
  }, richData.description))));
41438
  }
41439
+
41440
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/use-create-page.js
41441
  /**
41442
  * WordPress dependencies
41515
 
41516
  };
41517
  };
41518
+
41519
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/link-control/index.js
41520
 
41521
 
41831
 
41832
  LinkControl.ViewerFill = ViewerFill;
41833
  /* harmony default export */ var link_control = (LinkControl);
41834
+
41835
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/media.js
41836
 
41837
 
41846
  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"
41847
  }));
41848
  /* harmony default export */ var library_media = (media);
41849
+
41850
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/upload.js
41851
 
41852
 
41861
  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"
41862
  }));
41863
  /* harmony default export */ var library_upload = (upload);
41864
+
41865
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/index.js
41866
  /**
41867
  * WordPress dependencies
41882
 
41883
 
41884
  /* harmony default export */ var media_upload = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaUpload')(MediaUpload));
41885
+
41886
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-upload/check.js
41887
  /**
41888
  * WordPress dependencies
41911
  */
41912
 
41913
  /* harmony default export */ var media_upload_check = (MediaUploadCheck);
41914
+
41915
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-replace-flow/index.js
41916
 
41917
 
42135
  removeNotice
42136
  };
42137
  }), (0,external_wp_components_namespaceObject.withFilters)('editor.MediaReplaceFlow')])(MediaReplaceFlow));
42138
+
42139
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer-url.js
42140
 
42141
 
42168
  href: url
42169
  }, urlLabel || (0,external_wp_url_namespaceObject.filterURLForDisplay)((0,external_wp_url_namespaceObject.safeDecodeURI)(url)));
42170
  }
42171
+
42172
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-viewer.js
42173
 
42174
 
42210
  onClick: onEditLinkClick
42211
  }));
42212
  }
42213
+
42214
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/link-editor.js
42215
 
42216
 
42251
  type: "submit"
42252
  }));
42253
  }
42254
+
42255
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/index.js
42256
 
42257
 
42314
  */
42315
 
42316
  /* harmony default export */ var url_popover = (URLPopover);
42317
+
42318
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/media-placeholder/index.js
42319
 
42320
 
42688
  */
42689
 
42690
  /* harmony default export */ var media_placeholder = ((0,external_wp_components_namespaceObject.withFilters)('editor.MediaPlaceholder')(MediaPlaceholder));
42691
+
42692
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/panel-color-settings/index.js
42693
 
42694
 
42726
  };
42727
 
42728
  /* harmony default export */ var panel_color_settings = (PanelColorSettings);
42729
+
42730
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar/index.js
42731
 
42732
 
42793
  };
42794
 
42795
  /* harmony default export */ var format_toolbar = (FormatToolbar);
42796
+
42797
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-toolbar-container.js
42798
 
42799
 
42835
  };
42836
 
42837
  /* harmony default export */ var format_toolbar_container = (FormatToolbarContainer);
42838
+
42839
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-undo-automatic-change.js
42840
  /**
42841
  * WordPress dependencies
42882
  };
42883
  }, []);
42884
  }
42885
+
42886
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-caret-in-format.js
42887
  /**
42888
  * WordPress dependencies
42916
  }
42917
  }, [hasActiveFormats]);
42918
  }
42919
+
42920
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-mark-persistent.js
42921
  /**
42922
  * WordPress dependencies
42961
  __unstableMarkLastChangeAsPersistent();
42962
  }, [html, hasActiveFormats]);
42963
  }
42964
+
42965
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/file-paste-handler.js
42966
  /**
42967
  * WordPress dependencies
42975
  return /^image\/(?:jpe?g|png|gif|webp)$/.test(type);
42976
  }).map(file => `<img src="${(0,external_wp_blob_namespaceObject.createBlobURL)(file)}">`).join('');
42977
  }
42978
+
42979
  ;// CONCATENATED MODULE: external ["wp","shortcode"]
42980
  var external_wp_shortcode_namespaceObject = window["wp"]["shortcode"];
42981
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/utils.js
43056
  content: renderToString(link)
43057
  }));
43058
  }
43059
+
43060
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/split-value.js
43061
  /**
43062
  * WordPress dependencies
43127
  const initialPosition = hasPastedBlocks ? -1 : 0;
43128
  onReplace(blocks, indexToSelect, initialPosition);
43129
  }
43130
+
43131
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-paste-handler.js
43132
  /**
43133
  * WordPress dependencies
43188
  } = propsRef.current;
43189
 
43190
  if (!isSelected) {
 
43191
  return;
43192
  }
43193
 
43391
 
43392
  return html;
43393
  }
43394
+
43395
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/prevent-event-discovery.js
43396
  /**
43397
  * WordPress dependencies
43417
 
43418
  return (0,external_wp_richText_namespaceObject.insert)(value, addText);
43419
  }
43420
+
43421
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-input-rules.js
43422
  /**
43423
  * WordPress dependencies
43539
  };
43540
  }, []);
43541
  }
43542
+
43543
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-enter.js
43544
  /**
43545
  * WordPress dependencies
43662
  };
43663
  }, []);
43664
  }
43665
+
43666
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-format-types.js
43667
  /**
43668
  * WordPress dependencies
43784
  dependencies
43785
  };
43786
  }
43787
+
43788
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-remove-browser-shortcuts.js
43789
  /**
43790
  * WordPress dependencies
43812
  };
43813
  }, []);
43814
  }
43815
+
43816
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-shortcuts.js
43817
  /**
43818
  * WordPress dependencies
43832
  };
43833
  }, []);
43834
  }
43835
+
43836
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/use-input-events.js
43837
  /**
43838
  * WordPress dependencies
43852
  };
43853
  }, []);
43854
  }
43855
+
43856
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/format-edit.js
43857
 
43858
 
43920
  });
43921
  });
43922
  }
43923
+
43924
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/index.js
43925
 
43926
 
44019
  const selector = select => {
44020
  const {
44021
  getSelectionStart,
44022
+ getSelectionEnd
 
 
44023
  } = select(store);
44024
  const selectionStart = getSelectionStart();
44025
  const selectionEnd = getSelectionEnd();
44034
  return {
44035
  selectionStart: isSelected ? selectionStart.offset : undefined,
44036
  selectionEnd: isSelected ? selectionEnd.offset : undefined,
44037
+ isSelected
 
44038
  };
44039
  }; // This selector must run on every render so the right selection state is
44040
  // retreived from the store on merge.
44044
  const {
44045
  selectionStart,
44046
  selectionEnd,
44047
+ isSelected
 
44048
  } = (0,external_wp_data_namespaceObject.useSelect)(selector);
44049
  const {
44050
  selectionChange
44211
  }), (0,external_wp_element_namespaceObject.createElement)(TagName // Overridable props.
44212
  , _extends({
44213
  role: "textbox",
44214
+ "aria-multiline": !disableLineBreaks,
44215
  "aria-label": placeholder
44216
  }, props, autocompleteProps, {
44217
  ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([autocompleteProps.ref, props.ref, richTextRef, useInputRules({
44244
  onChange,
44245
  disableLineBreaks,
44246
  onSplitAtEnd
44247
+ }), anchorRef, forwardedRef]),
44248
+ contentEditable: true,
44249
+ suppressContentEditableWarning: true,
 
44250
  className: classnames_default()('block-editor-rich-text__editable', props.className, 'rich-text'),
44251
  onFocus: unstableOnFocus,
44252
  onKeyDown: onKeyDown
44309
 
44310
 
44311
 
44312
+
44313
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/editable-text/index.js
44314
 
44315
 
44346
 
44347
 
44348
  /* harmony default export */ var editable_text = (EditableText);
44349
+
44350
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/plain-text/index.js
44351
 
44352
 
44394
  }, remainingProps));
44395
  });
44396
  /* harmony default export */ var plain_text = (PlainText);
44397
+
44398
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/label.js
44399
 
44400
 
44422
  id: `rbc-desc-${instanceId}`
44423
  }, accessibleLabel));
44424
  }
44425
+
44426
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/responsive-block-control/index.js
44427
 
44428
 
44515
  }
44516
 
44517
  /* harmony default export */ var responsive_block_control = (ResponsiveBlockControl);
44518
+
44519
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/shortcut.js
44520
  /**
44521
  * WordPress dependencies
44551
  }, [character, type]);
44552
  return null;
44553
  }
44554
+
44555
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/toolbar-button.js
44556
 
44557
 
44585
  shortcut: shortcut
44586
  })));
44587
  }
44588
+
44589
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/rich-text/input-event.js
44590
  /**
44591
  * WordPress dependencies
44619
  }, [inputType]);
44620
  return null;
44621
  }
44622
+
44623
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/tool-selector/index.js
44624
 
44625
 
44696
  }
44697
 
44698
  /* harmony default export */ var tool_selector = ((0,external_wp_element_namespaceObject.forwardRef)(ToolSelector));
44699
+
44700
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/unit-control/index.js
44701
 
44702
 
44723
  units: units
44724
  }, props));
44725
  }
44726
+
44727
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/arrow-left.js
44728
 
44729
 
44738
  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"
44739
  }));
44740
  /* harmony default export */ var arrow_left = (arrowLeft);
44741
+
44742
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-input/button.js
44743
 
44744
 
44820
 
44821
 
44822
  /* harmony default export */ var url_input_button = (URLInputButton);
44823
+
44824
  ;// CONCATENATED MODULE: ./packages/icons/build-module/library/close.js
44825
 
44826
 
44835
  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"
44836
  }));
44837
  /* harmony default export */ var library_close = (close_close);
44838
+
44839
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/url-popover/image-url-input-ui.js
44840
 
44841
 
45108
  };
45109
 
45110
 
45111
+
45112
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/preview-options/index.js
45113
 
45114
 
45165
  icon: deviceType === 'Mobile' && library_check
45166
  }, (0,external_wp_i18n_namespaceObject.__)('Mobile'))), children));
45167
  }
45168
+
45169
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-resize-canvas/index.js
45170
  /**
45171
  * WordPress dependencies
45237
 
45238
  return contentInlineStyles(deviceType);
45239
  }
45240
+
45241
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/skip-to-selected-block/index.js
45242
 
45243
 
45276
  selectedBlockClientId: select(store).getBlockSelectionStart()
45277
  };
45278
  })(SkipToSelectedBlock));
45279
+
45280
  ;// CONCATENATED MODULE: external ["wp","wordcount"]
45281
  var external_wp_wordcount_namespaceObject = window["wp"]["wordcount"];
45282
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/multi-selection-inspector/index.js
45328
  blocks: getMultiSelectedBlocks()
45329
  };
45330
  })(MultiSelectionInspector));
45331
+
45332
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/default-style-picker/index.js
45333
 
45334
 
45401
  onChange: selectOnChange
45402
  }));
45403
  }
45404
+
45405
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-inspector/index.js
45406
 
45407
 
45558
  };
45559
 
45560
  /* harmony default export */ var block_inspector = (BlockInspector);
45561
+
45562
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/block-tools/index.js
45563
 
45564
 
45707
  })))
45708
  );
45709
  }
45710
+
45711
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/inserter/library.js
45712
 
45713
 
45761
  }
45762
 
45763
  /* harmony default export */ var library = ((0,external_wp_element_namespaceObject.forwardRef)(InserterLibrary));
45764
+
45765
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/keyboard-shortcuts/index.js
45766
  /**
45767
  * WordPress dependencies
45878
 
45879
  KeyboardShortcuts.Register = KeyboardShortcutsRegister;
45880
  /* harmony default export */ var keyboard_shortcuts = (KeyboardShortcuts);
45881
+
45882
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/selection-scroll-into-view/index.js
45883
  /**
45884
  * WordPress dependencies
45898
  });
45899
  return null;
45900
  }
45901
+
45902
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/observe-typing/index.js
45903
 
45904
 
46130
 
46131
 
46132
  /* harmony default export */ var observe_typing = (ObserveTyping);
46133
+
46134
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/typewriter/index.js
46135
 
46136
 
46368
  */
46369
 
46370
  /* harmony default export */ var typewriter = (TypewriterOrIEBypass);
46371
+
46372
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/use-no-recursive-renders/index.js
46373
 
46374
 
46436
  }, [newRenderedBlocks]);
46437
  return [hasAlreadyRendered, Provider];
46438
  }
46439
+
46440
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/components/index.js
46441
  /*
46442
  * Block Creation Components
46526
 
46527
 
46528
 
46529
+
46530
 
46531
 
46532
 
46547
 
46548
 
46549
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46550
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46551
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/parse-css-unit-to-px.js
46552
  /**
46553
  * Converts string to object { value, unit }.
46836
  }
46837
 
46838
  /* harmony default export */ var parse_css_unit_to_px = (memoizedGetPxFromCssUnit);
46839
+
46840
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/utils/index.js
46841
 
46842
 
46843
 
46844
 
 
46845
  ;// CONCATENATED MODULE: ./packages/block-editor/build-module/index.js
46846
  /**
46847
  * Internal dependencies
46852
 
46853
 
46854
 
46855
+
46856
  }();
46857
  (window.wp = window.wp || {}).blockEditor = __webpack_exports__;
46858
  /******/ })()
build/block-editor/index.min.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '1bf8590c37256dd0fa86383bf2d6320a');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '36758c0cdb5c9c359f4b1e435d7b1b28');
build/block-editor/index.min.js CHANGED
@@ -1,33 +1,33 @@
1
- !function(){var e={9367:function(e,t){var n,o;void 0===(o="function"==typeof(n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&d()},s=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),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",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",i,!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:s,update:d}),"vertical"===(a=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===a.resize&&(e.style.resize="horizontal"),t="content-box"===a.boxSizing?-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)):parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),isNaN(t)&&(t=0),d()}var a;function c(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 o=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+t+"px",n=e.clientWidth,o.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),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=l("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function s(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default})?n.apply(t,[e,t]):n)||(e.exports=o)},4184:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===l)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},1934:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},5913:function(e,t){"use strict";function n(){}function o(e,t,n,o,r){for(var l=0,i=t.length,s=0,a=0;l<i;l++){var c=t[l];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,l&&t[l-1].added){var u=t[l-1];t[l-1]=t[l],t[l]=u}}else{if(!c.added&&r){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=n.callback;"function"==typeof n&&(l=n,n={}),this.options=n;var i=this;function s(e){return l?(setTimeout((function(){l(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,c=e.length,u=1,d=a+c,p=[{newPos:-1,components:[]}],m=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=a&&m+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var l=void 0,d=p[n-1],m=p[n+1],f=(m?m.newPos:0)-n;d&&(p[n-1]=void 0);var g=d&&d.newPos+1<a,h=m&&0<=f&&f<c;if(g||h){if(!g||h&&d.newPos<m.newPos?(l=r(m),i.pushComponent(l.components,void 0,!0)):((l=d).newPos++,i.pushComponent(l.components,!0,void 0)),f=i.extractCommon(l,t,e,n),l.newPos+1>=a&&f+1>=c)return s(o(i,l.components,t,e,i.useLongestToken));p[n]=l}else p[n]=void 0}u++}if(l)!function e(){setTimeout((function(){if(u>d)return l();f()||e()}),0)}();else for(;u<=d;){var g=f();if(g)return g}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,l=n.length,i=e.newPos,s=i-o,a=0;i+1<r&&s+1<l&&this.equals(t[i+1],n[s+1]);)i++,s++,a++;return a&&e.components.push({count:a}),e.newPos=i,s},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("")}}},7630:function(e,t,n){"use strict";var o;t.Kx=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(5913))&&o.__esModule?o:{default:o}).default)},9010:function(e,t,n){"use strict";var o=n(4657);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,a=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var p=o.isWindow(t),m=!(!p||!t.frameElement),f=o.offset(e),g=o.outerHeight(e),h=o.outerWidth(e),v=void 0,b=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0,w=void 0,B=void 0;m&&(t=t.document.scrollingElement||t.document.body),p||m?(C=t,B=o.height(C),w=o.width(C),S={left:o.scrollLeft(C),top:o.scrollTop(C)},y={left:f.left-S.left-c,top:f.top-S.top-a},E={left:f.left+h-(S.left+w)+d,top:f.top+g-(S.top+B)+u},_=S):(v=o.offset(t),b=t.clientHeight,k=t.clientWidth,_={left:t.scrollLeft,top:t.scrollTop},y={left:f.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:f.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},E={left:f.left+h-(v.left+k+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:f.top+g-(v.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),y.top<0||E.top>0?!0===i?o.scrollTop(t,_.top+y.top):!1===i?o.scrollTop(t,_.top+E.top):y.top<0?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top):l||((i=void 0===i||!!i)?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top)),r&&(y.left<0||E.left>0?!0===s?o.scrollLeft(t,_.left+y.left):!1===s?o.scrollLeft(t,_.left+E.left):y.left<0?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.left+E.left):l||((s=void 0===s||!!s)?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.left+E.left)))}},4979:function(e,t,n){"use strict";e.exports=n(9010)},4657:function(e){"use strict";var t=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},n="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 o(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 r(e){return o(e)}function l(e){return o(e,!0)}function i(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,l=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||l.clientLeft||0,top:o-=i.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=r(o),t.top+=l(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),a=/^(top|right|bottom|left)$/,c=void 0;function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function d(e){return"border-box"===c(e,"boxSizing")}"undefined"!=typeof window&&(c=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,l=n||r.defaultView.getComputedStyle(e,null);return l&&(o=l.getPropertyValue(t)||l[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!a.test(t)){var o=e.style,r=o.left,l=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=r,e.runtimeStyle.left=l}return""===n?"auto":n});var p=["margin","border","padding"];function m(e,t,n){var o={},r=e.style,l=void 0;for(l in t)t.hasOwnProperty(l)&&(o[l]=r[l],r[l]=t[l]);for(l in n.call(e),t)t.hasOwnProperty(l)&&(r[l]=o[l])}function f(e,t,n){var o=0,r=void 0,l=void 0,i=void 0;for(l=0;l<t.length;l++)if(r=t[l])for(i=0;i<n.length;i++){var s;s="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(c(e,s))||0}return o}function g(e){return null!=e&&e==e.window}var h={};function v(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,l=(c(e),d(e)),i=0;(null==r||r<=0)&&(r=void 0,(null==(i=c(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=l?1:-1);var s=void 0!==r||l,a=r||i;if(-1===n)return s?a-f(e,["border","padding"],o):i;if(s){var u=2===n?-f(e,["border"],o):f(e,["margin"],o);return a+(1===n?0:u)}return i+f(e,p.slice(n),o)}u(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var b={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=v.apply(void 0,n):m(e,b,(function(){t=v.apply(void 0,n)})),t}function _(e,t,o){var r=o;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):c(e,t);for(var l in t)t.hasOwnProperty(l)&&_(e,l,t[l])}u(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,o){return void 0===o?t&&k(t,e,-1):t?(c(t),d(t)&&(o+=f(t,["padding","border"],n)),_(t,e,o)):void 0}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return i(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=i(e),o={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(_(e,l))||0,o[l]=r+t[l]-n[l]);_(e,o)}(e,t)},isWindow:g,each:u,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return r(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return l(e);window.scrollTo(r(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},5717:function(e){"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}},8303:function(e,t,n){var o=n(1934);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 l=e.nodeName,i=document.createElement(l);i.innerHTML="&nbsp;","TEXTAREA"===l.toUpperCase()&&i.setAttribute("rows","1");var s=o(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},2703:function(e,t,n){"use strict";var o=n(414);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var s=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 s.name="Invariant Violation",s}}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:l,resetWarningCache:r};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4857: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 __)}),l=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 s=n(9196),a=n(5697),c=n(9367),u=n(8303),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",l({},a,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(p,l({},e,{innerRef:t}))}))},4042:function(e,t,n){"use strict";var o=n(4857);t.Z=o.TextareaAutosize},3692:function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function o(e,t,n){var o=[],i=[],u=!0;return function e(d){var p=n?r(d):d,m={},f=!0,g={node:p,node_:d,path:[].concat(o),parent:i[i.length-1],parents:i,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){g.isRoot||(g.parent.node[g.key]=e),g.node=e,t&&(f=!1)},delete:function(e){delete g.parent.node[g.key],e&&(f=!1)},remove:function(e){s(g.parent.node)?g.parent.node.splice(g.key,1):delete g.parent.node[g.key],e&&(f=!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(){u=!1},block:function(){f=!1}};if(!u)return g;function h(){if("object"==typeof g.node&&null!==g.node){g.keys&&g.node_===g.node||(g.keys=l(g.node)),g.isLeaf=0==g.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===d){g.circular=i[e];break}}else g.isLeaf=!0,g.keys=null;g.notLeaf=!g.isLeaf,g.notRoot=!g.isRoot}h();var v=t.call(g,g.node);return void 0!==v&&g.update&&g.update(v),m.before&&m.before.call(g,g.node),f?("object"!=typeof g.node||null===g.node||g.circular||(i.push(g),h(),a(g.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(g,g.node[t],t);var l=e(g.node[t]);n&&c.call(g.node,t)&&(g.node[t]=l.node),l.isLast=r==g.keys.length-1,l.isFirst=0==r,m.post&&m.post.call(g,l),o.pop()})),i.pop()),m.after&&m.after.call(g,g.node),g):g}(e).node}function r(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===i(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===i(e))t=new RegExp(e);else if(function(e){return"[object Error]"===i(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===i(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===i(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===i(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 a(l(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o)){t=void 0;break}t=t[o]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o))return!1;t=t[o]}return!0},n.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];c.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},n.prototype.map=function(e){return o(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},n.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},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(o){for(var i=0;i<e.length;i++)if(e[i]===o)return t[i];if("object"==typeof o&&null!==o){var s=r(o);return e.push(o),t.push(s),a(l(o),(function(e){s[e]=n(o[e])})),e.pop(),t.pop(),s}return o}(this.value)};var l=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function i(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};a(l(n.prototype),(function(e){t[e]=function(t){var o=[].slice.call(arguments,1),r=new n(t);return r[e].apply(r,o)}}));var c=Object.hasOwnProperty||function(e,t){return t in e}},9196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{AlignmentControl:function(){return Oh},AlignmentToolbar:function(){return Fh},Autocomplete:function(){return Gh},BlockAlignmentControl:function(){return zo},BlockAlignmentToolbar:function(){return Vo},BlockBreadcrumb:function(){return Kh},BlockColorsStyleSelector:function(){return Qh},BlockContextProvider:function(){return ar},BlockControls:function(){return Yn},BlockEdit:function(){return pr},BlockEditorKeyboardShortcuts:function(){return E_},BlockEditorProvider:function(){return Ka},BlockFormatControls:function(){return qn},BlockIcon:function(){return Wa},BlockInspector:function(){return v_},BlockList:function(){return vm},BlockMover:function(){return Qd},BlockNavigationDropdown:function(){return kv},BlockPreview:function(){return gu},BlockSelectionClearer:function(){return Xa},BlockSettingsMenu:function(){return Wp},BlockSettingsMenuControls:function(){return Vp},BlockStyles:function(){return Cv},BlockTitle:function(){return Fd},BlockToolbar:function(){return $p},BlockTools:function(){return b_},BlockVerticalAlignmentControl:function(){return Wv},BlockVerticalAlignmentToolbar:function(){return $v},ButtonBlockAppender:function(){return Id},ButtonBlockerAppender:function(){return xd},ColorPalette:function(){return Kv},ColorPaletteControl:function(){return qv},ContrastChecker:function(){return mf},CopyHandler:function(){return Tp},DefaultBlockAppender:function(){return wd},FontSizePicker:function(){return ng},InnerBlocks:function(){return mm},Inserter:function(){return Sd},InspectorAdvancedControls:function(){return tr},InspectorControls:function(){return nr},JustifyContentControl:function(){return ho},JustifyToolbar:function(){return vo},LineHeightControl:function(){return Ff},MediaPlaceholder:function(){return hk},MediaReplaceFlow:function(){return dk},MediaUpload:function(){return ck},MediaUploadCheck:function(){return uk},MultiSelectScrollIntoView:function(){return C_},NavigableToolbar:function(){return Gd},ObserveTyping:function(){return x_},PanelColorSettings:function(){return vk},PlainText:function(){return Uk},RichText:function(){return Vk},RichTextShortcut:function(){return jk},RichTextToolbarButton:function(){return Kk},SETTINGS_DEFAULTS:function(){return v},SkipToSelectedBlock:function(){return d_},ToolSelector:function(){return Xk},Typewriter:function(){return P_},URLInput:function(){return Vb},URLInputButton:function(){return e_},URLPopover:function(){return fk},Warning:function(){return fr},WritingFlow:function(){return ic},__experimentalBlockAlignmentMatrixControl:function(){return $h},__experimentalBlockContentOverlay:function(){return qh},__experimentalBlockFullHeightAligmentControl:function(){return Wh},__experimentalBlockPatternSetup:function(){return Av},__experimentalBlockVariationPicker:function(){return wv},__experimentalBlockVariationTransforms:function(){return Ov},__experimentalBorderRadiusControl:function(){return jm},__experimentalBorderStyleControl:function(){return Qm},__experimentalColorGradientControl:function(){return Cm},__experimentalColorGradientSettingsDropdown:function(){return Sm},__experimentalDuotoneControl:function(){return rh},__experimentalFontAppearanceControl:function(){return Of},__experimentalFontFamilyControl:function(){return qf},__experimentalGetBorderClassesAndStyles:function(){return vh},__experimentalGetColorClassesAndStyles:function(){return kh},__experimentalGetGradientClass:function(){return af},__experimentalGetGradientObjectByGradientValue:function(){return uf},__experimentalGetMatchingVariation:function(){return Dv},__experimentalGetSpacingClassesAndStyles:function(){return Eh},__experimentalImageEditingProvider:function(){return Sb},__experimentalImageEditor:function(){return Lb},__experimentalImageSizeControl:function(){return Db},__experimentalImageURLInputUI:function(){return a_},__experimentalLayoutStyle:function(){return Mo},__experimentalLetterSpacingControl:function(){return Sg},__experimentalLibrary:function(){return k_},__experimentalLinkControl:function(){return ik},__experimentalLinkControlSearchInput:function(){return Qb},__experimentalLinkControlSearchItem:function(){return Ub},__experimentalLinkControlSearchResults:function(){return jb},__experimentalListView:function(){return vv},__experimentalPanelColorGradientSettings:function(){return nb},__experimentalPreviewOptions:function(){return c_},__experimentalResponsiveBlockControl:function(){return $k},__experimentalTextDecorationControl:function(){return pg},__experimentalTextTransformControl:function(){return _g},__experimentalToolsPanelColorDropdown:function(){return ff},__experimentalUnitControl:function(){return Zk},__experimentalUseBlockPreview:function(){return hu},__experimentalUseBorderProps:function(){return bh},__experimentalUseColorProps:function(){return yh},__experimentalUseCustomSides:function(){return jg},__experimentalUseGradient:function(){return pf},__experimentalUseNoRecursiveRenders:function(){return L_},__experimentalUseResizeCanvas:function(){return u_},__unstableBlockSettingsMenuFirstItem:function(){return Ap},__unstableEditorStyles:function(){return du},__unstableIframe:function(){return cc},__unstableInserterMenuExtension:function(){return md},__unstableRichTextInputEvent:function(){return qk},__unstableUseBlockSelectionClearer:function(){return Ya},__unstableUseClipboardHandler:function(){return Ip},__unstableUseMouseMoveTypingReset:function(){return w_},__unstableUseTypewriter:function(){return N_},__unstableUseTypingObserver:function(){return B_},createCustomColorsHOC:function(){return xh},getColorClassName:function(){return Tm},getColorObjectByAttributeValues:function(){return xm},getColorObjectByColorValue:function(){return Im},getFontSize:function(){return Jf},getFontSizeClass:function(){return tg},getFontSizeObjectByValue:function(){return eg},getGradientSlugByValue:function(){return df},getGradientValueBySlug:function(){return cf},getPxFromCssUnit:function(){return j_},store:function(){return zn},storeConfig:function(){return Fn},transformStyles:function(){return au},useBlockDisplayInformation:function(){return Od},useBlockEditContext:function(){return Un},useBlockProps:function(){return Ra},useCachedTruthy:function(){return Ch},useInnerBlocksProps:function(){return pm},useSetting:function(){return mo},validateThemeColors:function(){return A_},validateThemeGradients:function(){return D_},withColorContext:function(){return jv},withColors:function(){return Ih},withFontSizes:function(){return Nh}});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:function(){return It},__experimentalGetAllowedBlocks:function(){return at},__experimentalGetAllowedPatterns:function(){return pt},__experimentalGetBlockListSettingsForBlocks:function(){return bt},__experimentalGetDirectInsertBlock:function(){return ct},__experimentalGetLastBlockAttributeChanges:function(){return yt},__experimentalGetParsedPattern:function(){return ut},__experimentalGetPatternTransformItems:function(){return ft},__experimentalGetPatternsByBlockTypes:function(){return mt},__experimentalGetReusableBlockTitle:function(){return kt},__unstableGetBlockWithoutInnerBlocks:function(){return W},__unstableGetClientIdWithClientIdsTree:function(){return j},__unstableGetClientIdsTree:function(){return K},__unstableIsLastBlockChangeIgnored:function(){return _t},areInnerBlocksControlled:function(){return xt},canInsertBlockType:function(){return qe},canInsertBlocks:function(){return Ye},canMoveBlock:function(){return Qe},canMoveBlocks:function(){return Je},canRemoveBlock:function(){return Xe},canRemoveBlocks:function(){return Ze},didAutomaticChange:function(){return wt},getAdjacentBlockClientId:function(){return pe},getBlock:function(){return U},getBlockAttributes:function(){return G},getBlockCount:function(){return Q},getBlockHierarchyRootClientId:function(){return ue},getBlockIndex:function(){return xe},getBlockInsertionPoint:function(){return He},getBlockListSettings:function(){return gt},getBlockMode:function(){return Le},getBlockName:function(){return V},getBlockOrder:function(){return Be},getBlockParents:function(){return ae},getBlockParentsByBlockName:function(){return ce},getBlockRootClientId:function(){return se},getBlockSelectionEnd:function(){return ne},getBlockSelectionStart:function(){return te},getBlockTransformItems:function(){return it},getBlocks:function(){return $},getBlocksByClientId:function(){return Z},getClientIdsOfDescendants:function(){return q},getClientIdsWithDescendants:function(){return Y},getDraggedBlockClientIds:function(){return Oe},getFirstMultiSelectedBlockClientId:function(){return ke},getGlobalBlockCount:function(){return X},getInserterItems:function(){return lt},getLastMultiSelectedBlockClientId:function(){return _e},getLowestCommonAncestorWithSelectedBlock:function(){return de},getMultiSelectedBlockClientIds:function(){return ve},getMultiSelectedBlocks:function(){return be},getMultiSelectedBlocksEndClientId:function(){return we},getMultiSelectedBlocksStartClientId:function(){return Se},getNextBlockClientId:function(){return fe},getPreviousBlockClientId:function(){return me},getSelectedBlock:function(){return ie},getSelectedBlockClientId:function(){return le},getSelectedBlockClientIds:function(){return he},getSelectedBlockCount:function(){return oe},getSelectedBlocksInitialCaretPosition:function(){return ge},getSelectionEnd:function(){return ee},getSelectionStart:function(){return J},getSettings:function(){return ht},getTemplate:function(){return We},getTemplateLock:function(){return $e},hasBlockMovingClientId:function(){return St},hasInserterItems:function(){return st},hasMultiSelection:function(){return Pe},hasSelectedBlock:function(){return re},hasSelectedInnerBlock:function(){return Te},isAncestorBeingDragged:function(){return ze},isAncestorMultiSelected:function(){return Ce},isBlockBeingDragged:function(){return Fe},isBlockHighlighted:function(){return Bt},isBlockInsertionPointVisible:function(){return Ge},isBlockMultiSelected:function(){return Ee},isBlockSelected:function(){return Ie},isBlockValid:function(){return H},isBlockWithinSelection:function(){return Ne},isCaretWithinFormattedText:function(){return Ve},isDraggingBlocks:function(){return De},isFirstMultiSelectedBlock:function(){return ye},isLastBlockChangePersistent:function(){return vt},isMultiSelecting:function(){return Me},isNavigationMode:function(){return Ct},isSelectionEnabled:function(){return Re},isTyping:function(){return Ae},isValidTemplate:function(){return Ue},wasBlockJustInserted:function(){return Tt}});var t={};n.r(t),n.d(t,{__unstableMarkAutomaticChange:function(){return In},__unstableMarkLastChangeAsPersistent:function(){return Bn},__unstableMarkNextChangeAsNotPersistent:function(){return xn},__unstableSaveReusableBlock:function(){return wn},clearSelectedBlock:function(){return jt},duplicateBlocks:function(){return Pn},enterFormattedText:function(){return bn},exitFormattedText:function(){return kn},flashBlock:function(){return An},hideInsertionPoint:function(){return ln},insertAfterBlock:function(){return Rn},insertBeforeBlock:function(){return Mn},insertBlock:function(){return nn},insertBlocks:function(){return on},insertDefaultBlock:function(){return En},mergeBlocks:function(){return cn},moveBlockToPosition:function(){return tn},moveBlocksDown:function(){return Qt},moveBlocksToPosition:function(){return en},moveBlocksUp:function(){return Jt},multiSelect:function(){return $t},receiveBlocks:function(){return Ot},removeBlock:function(){return dn},removeBlocks:function(){return un},replaceBlock:function(){return Xt},replaceBlocks:function(){return Yt},replaceInnerBlocks:function(){return pn},resetBlocks:function(){return Lt},resetSelection:function(){return Dt},selectBlock:function(){return Vt},selectNextBlock:function(){return Gt},selectPreviousBlock:function(){return Ht},selectionChange:function(){return yn},setBlockMovingClientId:function(){return Nn},setHasControlledInnerBlocks:function(){return Dn},setNavigationMode:function(){return Tn},setTemplateValidity:function(){return sn},showInsertionPoint:function(){return rn},startDraggingBlocks:function(){return hn},startMultiSelect:function(){return Ut},startTyping:function(){return fn},stopDraggingBlocks:function(){return vn},stopMultiSelect:function(){return Wt},stopTyping:function(){return gn},synchronizeTemplate:function(){return an},toggleBlockHighlight:function(){return Ln},toggleBlockMode:function(){return mn},toggleSelection:function(){return Kt},updateBlock:function(){return zt},updateBlockAttributes:function(){return Ft},updateBlockListSettings:function(){return Cn},updateSettings:function(){return Sn},validateBlocksToTemplate:function(){return At}});var r=window.wp.blocks,l=window.wp.hooks;function i(){return(i=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)}(0,l.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,r.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var s=window.wp.element,a=n(4184),c=n.n(a),u=window.lodash,d=window.wp.compose,p=window.wp.components,m=window.wp.data,f={default:(0,p.createSlotFill)("BlockControls"),block:(0,p.createSlotFill)("BlockControlsBlock"),inline:(0,p.createSlotFill)("BlockFormatControls"),other:(0,p.createSlotFill)("BlockControlsOther"),parent:(0,p.createSlotFill)("BlockControlsParent")},g=window.wp.i18n;const h={insertUsage:{}},v={alignWide:!1,supportsLayout:!0,colors:[{name:(0,g.__)("Black"),slug:"black",color:"#000000"},{name:(0,g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,g.__)("White"),slug:"white",color:"#ffffff"},{name:(0,g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,g._x)("Small","font size name"),size:13,slug:"small"},{name:(0,g._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,g._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,g._x)("Large","font size name"),size:36,slug:"large"},{name:(0,g._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,g.__)("Thumbnail")},{slug:"medium",name:(0,g.__)("Medium")},{slug:"large",name:(0,g.__)("Large")},{slug:"full",name:(0,g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__unstableGalleryWithImageBlocks:!1,gradients:[{name:(0,g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function b(e,t,n){return[...e.slice(0,n),...(0,u.castArray)(t),...e.slice(n)]}function k(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=[...e];return r.splice(t,o),b(r,e.slice(t,t+o),n)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach((e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,_(r,o))})),n}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},y(n.innerBlocks,n.clientId))),{})}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.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 C(e){return E(e,(e=>(0,u.omit)(e,"attributes")))}function S(e){return E(e,(e=>e.attributes))}function w(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,u.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,u.isEqual)((0,u.keys)(e),(0,u.keys)(t))}(e.attributes,t.attributes)}function B(e,t){const n={},o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n[e.clientId]={};for(const t of r)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function x(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=new Set([]),l=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){l.add(n);break}r.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of r)t[e]={...t[e]};for(const n of r)t[n].innerBlocks=(e.order[n]||[]).map((e=>t[e]));for(const n of l)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map((e=>t[e]))};return t}const I=(0,u.flow)(m.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=(0,u.mapValues)(t.attributes,((n,r)=>{const{name:l}=t.byClientId[r];return"core/block"===l&&n.ref===e?{...n,ref:o}:n}))}return e(t,n)}),(e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=B(o,n.blocks);o.tree=x(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=x(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce(((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes[t]},e)),{});o.tree=x(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=B(o,n.blocks);o.tree=x(o,{...(0,u.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e)))),...e},n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||r.push(t.parents[e]);o.tree=x(o,o.tree,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents[r]||""!==t.parents[r]&&!o.byClientId[t.parents[r]]||e.push(t.parents[r]);o.tree=x(o,(0,u.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e)))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=x(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=x(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=(0,u.keys)((0,u.omitBy)(o.attributes,((e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId)));o.tree=x(o,{...o.tree,...e.reduce(((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes[t],innerBlocks:o.tree[t].innerBlocks},e)),{})},e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let l=r;return n.blocks.length&&(l=e(l,{...n,type:"INSERT_BLOCKS",index:0}),l.order={...l.order,...(0,u.reduce)(o,((e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e)),{})}),l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:C(n.blocks),attributes:S(n.blocks),order:_(n.blocks),parents:y(n.blocks),controlledInnerBlocks:{}},o=B(e,n.blocks);return e.tree={...o,"":{innerBlocks:n.blocks.map((e=>o[e.clientId]))}},e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!i){var s;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(s=null==o?void 0:o.isPersistentChange)||void 0===s||s;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!w(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...C(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,u.omit)(t.updates,"attributes");return(0,u.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,u.omit)(e,t.replacedClientIds),...C(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...S(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]:(0,u.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,((t,n,r)=>{var l,i;return n!==t[r]&&((t=(l=e[o])===(i=t)?{...l}: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?{...(0,u.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=_(t.blocks);return{...e,...(0,u.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=_(t.blocks,n),{index:l=o.length}=t;return{...e,...r,[n]:b(o,r[n],l)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:l=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:k(e[o],t,l,r.length)}}return{...e,[n]:(0,u.without)(e[n],...r),[o]:b(e[o],r,l)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=e[o];if(!l.length||r===(0,u.first)(l))return e;const i=l.indexOf(r);return{...e,[o]:k(l,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=(0,u.last)(n),i=e[o];if(!i.length||l===(0,u.last)(i))return e;const s=i.indexOf(r);return{...e,[o]:k(i,s,s+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=_(t.blocks);return(0,u.flow)([e=>(0,u.omit)(e,t.replacedClientIds),e=>({...e,...(0,u.omit)(o,"")}),e=>(0,u.mapValues)(e,(e=>(0,u.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(0,u.flow)([e=>(0,u.omit)(e,t.removedClientIds),e=>(0,u.mapValues)(e,(e=>(0,u.without)(e,...t.removedClientIds)))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...y(t.blocks)};case"INSERT_BLOCKS":return{...e,...y(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{...(0,u.omit)(e,t.replacedClientIds),...y(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var N,P,M=(0,m.combineReducers)({blocks:I,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.startOffset},selectionEnd:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:l}=o;return{selectionStart:r,selectionEnd:l};case"MULTI_SELECT":const{start:i,end:s}=o;return{selectionStart:{clientId:i},selectionEnd:{clientId:s}};case"RESET_BLOCKS":const a=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,c=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!a&&!c)return n;if(!o.blocks.some((e=>e.clientId===a)))return{selectionStart:{},selectionEnd:{}};if(!o.blocks.some((e=>e.clientId===c)))return{...n,selectionEnd:n.selectionStart}}return{selectionStart:T(n.selectionStart,o),selectionEnd:T(n.selectionEnd,o)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return(0,u.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,u.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,u.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:l}=n,i=(0,m.select)(r.store).getActiveBlockVariation(l,o);let s=null!=i&&i.name?`${l}/${i.name}`:l;const a={name:s};return"core/block"===l&&(a.ref=o.ref,s+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[s]:{time:t.time,count:e.insertUsage[s]?e.insertUsage[s].count+1:1,insert:a}}}}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":return n.blocks.length?{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source}:t;case"RESET_BLOCKS":return{}}return t}});function R(e){return[e]}function L(){var e={clear:function(){e.head=null}};return e}function A(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}function D(e,t){var n,o;function r(){n=P?new WeakMap:L()}function l(){var n,r,l,i,s,a=arguments.length;for(i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];for(s=t.apply(null,i),(n=o(s)).isUniqueByDependants||(n.lastDependants&&!A(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),r=n.head;r;){if(A(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=R),o=P?function(e){var t,o,r,l,i,s=n,a=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){a=!1;break}s.has(o)?s=s.get(o):(r=new WeakMap,s.set(o,r),s=r)}return s.has(N)||((l=L()).isUniqueByDependants=a,s.set(N,l)),s.get(N)}:function(){return n},l.getDependants=t,l.clear=r,r(),l}N={},P="undefined"!=typeof WeakMap;var O=window.wp.primitives,F=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));const z=[];function V(e,t){const n=e.blocks.byClientId[t],o="core/social-link";if("web"!==s.Platform.OS&&(null==n?void 0:n.name)===o){const n=e.blocks.attributes[t],{service:r}=n;return r?`core/social-link-${r}`:o}return n?n.name:null}function H(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function G(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function U(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const W=D(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:G(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]));function $(e,t){var n;const o=t&&xt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||z}const j=D(((e,t)=>({clientId:t,innerBlocks:K(e,t)})),(e=>[e.blocks.order])),K=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(Be(e,t),(t=>j(e,t)))}),(e=>[e.blocks.order])),q=(e,t)=>(0,u.flatMap)(t,(t=>{const n=Be(e,t);return[...n,...q(e,n)]})),Y=D((e=>{const t=Be(e);return[...t,...q(e,t)]}),(e=>[e.blocks.order])),X=D(((e,t)=>{const n=Y(e);return t?(0,u.reduce)(n,((n,o)=>e.blocks.byClientId[o].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),Z=D(((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>U(e,t)))),((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>e.blocks.tree[t]))));function Q(e,t){return Be(e,t).length}function J(e){return e.selection.selectionStart}function ee(e){return e.selection.selectionEnd}function te(e){return e.selection.selectionStart.clientId}function ne(e){return e.selection.selectionEnd.clientId}function oe(e){return ve(e).length||(e.selection.selectionStart.clientId?1:0)}function re(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function le(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ie(e){const t=le(e);return t?U(e,t):null}function se(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const ae=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()}),(e=>[e.blocks.parents])),ce=D((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=ae(e,t,o);return(0,u.map)((0,u.filter)((0,u.map)(r,(t=>({id:t,name:V(e,t)}))),(e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n})),(e=>{let{id:t}=e;return t}))}),(e=>[e.blocks.parents]));function ue(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function de(e,t){const n=le(e),o=[...ae(e,t),t],r=[...ae(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)l=o[e];return l}function pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=le(e)),void 0===t&&(t=n<0?ke(e):_e(e)),!t)return null;const o=se(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r[o],i=l.indexOf(t),s=i+1*n;return s<0||s===l.length?null:l[s]}function me(e,t){return pe(e,t,-1)}function fe(e,t){return pe(e,t,1)}function ge(e){return e.initialPosition}const he=D((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return z;if(t.clientId===n.clientId)return[t.clientId];const o=se(e,t.clientId);if(null===o)return z;const r=Be(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function ve(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?z:he(e)}const be=D((e=>{const t=ve(e);return t.length?t.map((t=>U(e,t))):z}),(e=>[...he.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function ke(e){return(0,u.first)(ve(e))||null}function _e(e){return(0,u.last)(ve(e))||null}function ye(e,t){return ke(e)===t}function Ee(e,t){return-1!==ve(e).indexOf(t)}const Ce=D(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=se(e,n),o=Ee(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Se(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function we(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Be(e,t){return e.blocks.order[t||""]||z}function xe(e,t){return Be(e,se(e,t)).indexOf(t)}function Ie(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,u.some)(Be(e,t),(t=>Ie(e,t)||Ee(e,t)||n&&Te(e,t,n)))}function Ne(e,t){if(!t)return!1;const n=ve(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Pe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Me(e){return e.isMultiSelecting}function Re(e){return e.isSelectionEnabled}function Le(e,t){return e.blocksMode[t]||"visual"}function Ae(e){return e.isTyping}function De(e){return!!e.draggedBlocks.length}function Oe(e){return e.draggedBlocks}function Fe(e,t){return e.draggedBlocks.includes(t)}function ze(e,t){if(!De(e))return!1;const n=ae(e,t);return(0,u.some)(n,(t=>Fe(e,t)))}function Ve(e){return e.isCaretWithinFormattedText}function He(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=se(e,l)||void 0,n=xe(e,r.clientId)+1):n=Be(e).length,{rootClientId:t,index:n}}function Ge(e){return null!==e.insertionPoint}function Ue(e){return e.template.isValid}function We(e){return e.settings.template}function $e(e,t){if(!t)return e.settings.templateLock;const n=gt(e,t);return n?n.templateLock:null}const je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,u.isBoolean)(e)?e:(0,u.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},Ke=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=(0,r.getBlockType)(t),!n)return!1;const{allowedBlockTypes:i}=ht(e),s=je(i,t,!0);if(!s)return!1;const a=!!$e(e,o);if(a)return!1;const c=gt(e,o);if(o&&void 0===c)return!1;const u=null==c?void 0:c.allowedBlocks,d=je(u,t),p=n.parent,m=V(e,o),f=je(p,m),g=null===d&&null===f||!0===d||!0===f;return g?(0,l.applyFilters)("blockEditor.__unstableCanInsertBlockType",g,n,o,{getBlock:U.bind(null,e),getBlockParentsByBlockName:ce.bind(null,e)}):g},qe=D(Ke,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function Ye(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>qe(e,V(e,t),n)))}function Xe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=G(e,t);if(null===o)return!0;const{lock:r}=o,l=!!$e(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!l:!(null!=r&&r.remove)}function Ze(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>Xe(e,t,n)))}function Qe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=G(e,t);if(null===o)return;const{lock:r}=o,l="all"===$e(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!l:!(null!=r&&r.move)}function Je(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>Qe(e,t,n)))}function et(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 tt=(e,t,n)=>!!(0,r.hasBlockSupport)(t,"inserter",!0)&&Ke(e,t.name,n),nt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=et(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:ot(r,l)}},ot=(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}},rt=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let l=!1;(0,r.hasBlockSupport)(t.name,"multiple",!0)||(l=(0,u.some)(Z(e,Y(e)),{name:t.name}));const{time:i,count:s=0}=et(e,o)||{},a={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:l,frecency:ot(i,s)};if("transform"===n)return a;const c=(0,r.getBlockVariations)(t.name,"inserter");return{...a,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},lt=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=rt(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,l=t=>{let n=F;if("web"===s.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,l=(0,r.getBlockType)(t+o);l&&(n=l.icon)}}const l=`core/block/${t.id}`,{time:i,count:a=0}=et(e,l)||{},c=ot(i,a);return{id:l,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:c}},i=(0,r.getBlockTypes)().filter((n=>tt(e,n,t))).map(n),a=Ke(e,"core/block",t)?Et(e).map(l):[],c=i.reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((e=>{let{isDefault:t}=e;return t}))||t.push(n),o.length){const r=nt(e,n);t.push(...o.map(r))}return t}),[]),u=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},{core:d,noncore:p}=c.reduce(u,{core:[],noncore:[]}),m=[...d,...p];return[...m,...a]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Et(e),(0,r.getBlockTypes)()])),it=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=rt(e,{buildScope:"transform"}),l=(0,r.getBlockTypes)().filter((t=>tt(e,t,n))).map(o),i=(0,u.mapKeys)(l,(e=>{let{name:t}=e;return t})),s=(0,r.getPossibleBlockTransformations)(t).reduce(((e,t)=>(i[null==t?void 0:t.name]&&e.push(i[t.name]),e)),[]),a=(0,u.orderBy)(s,(e=>i[e.name].frecency),"desc");return a}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),st=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,u.some)((0,r.getBlockTypes)(),(n=>tt(e,n,t)));if(n)return!0;const o=Ke(e,"core/block",t)&&Et(e).length>0;return o}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Et(e),(0,r.getBlockTypes)()])),at=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,u.filter)((0,r.getBlockTypes)(),(n=>tt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),ct=D((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const r=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,l=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return r&&l?"function"==typeof l?l(U(e,o))?r:null:r:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),ut=D(((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find((e=>{let{name:n}=e;return n===t}));return n?{...n,blocks:(0,r.parse)(n.content)}:null}),(e=>[e.settings.__experimentalBlockPatterns])),dt=D((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=ht(e);return t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return ut(e,n)})).filter((e=>{let{blocks:t}=e;return((e,t)=>{if((0,u.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!je(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach((e=>{n.push(e)}))}return!0})(t,n)}))}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),pt=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=dt(e),o=(0,u.filter)(n,(n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return qe(e,o,t)}))}));return o}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),mt=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return z;const o=pt(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)=>[...pt.getDependants(e,t)])),ft=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return z;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||xt(e,n)})))return z;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return mt(e,o,n)}),((e,t)=>[...mt.getDependants(e,t)]));function gt(e,t){return e.blockListSettings[t]}function ht(e){return e.settings}function vt(e){return e.blocks.isPersistentChange}const bt=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})}),(e=>[e.blockListSettings])),kt=D(((e,t)=>{var n;const o=(0,u.find)(Et(e),(e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Et(e)]));function _t(e){return e.blocks.isIgnoredChange}function yt(e){return e.lastBlockAttributesChange}function Et(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:z}function Ct(e){return e.isNavigationMode}function St(e){return e.hasBlockMovingClientId}function wt(e){return!!e.automaticChangeStatus}function Bt(e,t){return e.highlightedBlock===t}function xt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const It=D(((e,t)=>{if(!t.length)return null;const n=le(e);if(t.includes(V(e,n)))return n;const o=ve(e),r=ce(e,n||o[0],t);return r?(0,u.last)(r):null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Tt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var Nt=window.wp.a11y,Pt=window.wp.richText,Mt=window.wp.deprecated,Rt=n.n(Mt);const Lt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(At(e))},At=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getTemplate(),i=n.getTemplateLock(),s=!l||"all"!==i||(0,r.doBlocksMatchTemplate)(e,l);if(s!==n.isValidTemplate())return o.setTemplateValidity(s),s};function Dt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Ot(e){return Rt()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ft(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:(0,u.castArray)(e),attributes:t,uniqueByBlock:n}}function zt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Ht=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},Gt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function Ut(){return{type:"START_MULTI_SELECT"}}function Wt(){return{type:"STOP_MULTI_SELECT"}}const $t=(e,t)=>n=>{let{select:o,dispatch:r}=n;if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t});const l=o.getSelectedBlockCount();(0,Nt.speak)((0,g.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
- (0,g._n)("%s block selected.","%s blocks selected.",l),l),"assertive")};function jt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Kt(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function qt(e,t){var n,o;const l=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(!(0,r.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!l[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:i={}}=e,s=l[n];return{...e,attributes:{...i,className:`${o||""} is-style-${s}`.trim()}}}))}const Yt=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0;return l=>{let{select:i,dispatch:s}=l;e=(0,u.castArray)(e),t=qt((0,u.castArray)(t),i.getSettings());const a=i.getBlockRootClientId((0,u.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,a))return}s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),s((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function Xt(e,t){return Yt(e,t)}const Zt=e=>(t,n)=>o=>{let{select:r,dispatch:l}=o;r.canMoveBlocks(t,n)&&l({type:e,clientIds:(0,u.castArray)(t),rootClientId:n})},Qt=Zt("MOVE_BLOCKS_DOWN"),Jt=Zt("MOVE_BLOCKS_UP"),en=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return r=>{let{select:l,dispatch:i}=r;if(l.canMoveBlocks(e,t)){if(t!==n){if(!l.canRemoveBlocks(e,t))return;if(!l.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function tn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return en([e],t,n,o)}function nn(e,t,n,o,r){return on([e],t,n,o,0,r)}const on=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;return i=>{let{select:s,dispatch:a}=i;(0,u.isObject)(r)&&(l=r,r=0,Rt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=qt((0,u.castArray)(e),s.getSettings());const c=[];for(const t of e)s.canInsertBlockType(t.name,n)&&c.push(t);c.length&&a({type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})}};function rn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function ln(){return{type:"HIDE_INSERTION_POINT"}}function sn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const an=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),l=t.getTemplate(),i=(0,r.synchronizeBlocksWithTemplate)(o,l);n.resetBlocks(i)},cn=(e,t)=>n=>{let{select:o,dispatch:l}=n;const i=[e,t];l({type:"MERGE_BLOCKS",blocks:i});const[s,a]=i,c=o.getBlock(s),d=(0,r.getBlockType)(c.name);if(d&&!d.merge)return void l.selectBlock(c.clientId);const p=o.getBlock(a),m=(0,r.getBlockType)(p.name),{clientId:f,attributeKey:g,offset:h}=o.getSelectionStart(),v=(f===s?d:m).attributes[g],b=(f===s||f===a)&&void 0!==g&&void 0!==h&&!!v;v||("number"==typeof g?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 g):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const k=(0,r.cloneBlock)(c),_=(0,r.cloneBlock)(p);if(b){const e=f===s?k:_,t=e.attributes[g],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=v,l=(0,Pt.insert)((0,Pt.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),"†",h,h);e.attributes[g]=(0,Pt.toHTMLString)({value:l,multilineTag:n,preserveWhiteSpace:r})}const y=c.name===p.name?[_]:(0,r.switchToBlockType)(_,c.name);if(!y||!y.length)return;const E=d.merge(k.attributes,y[0].attributes);if(b){const e=(0,u.findKey)(E,(e=>"string"==typeof e&&-1!==e.indexOf("†"))),t=E[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=d.attributes[e],i=(0,Pt.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),s=i.text.indexOf("†"),a=(0,Pt.remove)(i,s,s+1),p=(0,Pt.toHTMLString)({value:a,multilineTag:n,preserveWhiteSpace:r});E[e]=p,l.selectionChange(c.clientId,e,s,s)}l.replaceBlocks([c.clientId,p.clientId],[{...c,attributes:{...c.attributes,...E}},...y.slice(1)],0)},un=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;e=(0,u.castArray)(e);const l=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,l)&&(t&&r.selectPreviousBlock(e[0]),r({type:"REMOVE_BLOCKS",clientIds:e}),r((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})))}};function dn(e,t){return un([e],t)}function pn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function mn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function fn(){return{type:"START_TYPING"}}function gn(){return{type:"STOP_TYPING"}}function hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function vn(){return{type:"STOP_DRAGGING_BLOCKS"}}function bn(){return{type:"ENTER_FORMATTED_TEXT"}}function kn(){return{type:"EXIT_FORMATTED_TEXT"}}function yn(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function En(e,t,n){const o=(0,r.getDefaultBlockName)();if(o)return nn((0,r.createBlock)(o,e),n,t)}function Cn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Sn(e){return{type:"UPDATE_SETTINGS",settings:e}}function wn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Bn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function xn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const In=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n((()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Tn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?(0,Nt.speak)((0,g.__)("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.")):(0,Nt.speak)((0,g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},Nn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Nt.speak)((0,g.__)("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."))}},Pn=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:l}=n;if(!e||!e.length)return;const i=o.getBlocksByClientId(e);if((0,u.some)(i,(e=>!e)))return;if(i.map((e=>e.name)).some((e=>!(0,r.hasBlockSupport)(e,"multiple",!0))))return;const s=o.getBlockRootClientId(e[0]),a=o.getBlockIndex((0,u.last)((0,u.castArray)(e))),c=i.map((e=>(0,r.__experimentalCloneSanitizedBlock)(e)));return l.insertBlocks(c,a+1,s,t),c.length>1&&t&&l.multiSelect((0,u.first)(c).clientId,(0,u.last)(c).clientId),c.map((e=>e.clientId))}},Mn=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l)},Rn=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l+1)};function Ln(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const An=e=>async t=>{let{dispatch:n}=t;n(Ln(e,!0)),await new Promise((e=>setTimeout(e,150))),n(Ln(e,!1))};function Dn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const On="core/block-editor",Fn={reducer:M,selectors:e,actions:t,__experimentalUseThunks:!0},zn=(0,m.createReduxStore)(On,{...Fn,persist:["preferences"]});(0,m.registerStore)(On,{...Fn,persist:["preferences"]});const Vn={name:"",isSelected:!1},Hn=(0,s.createContext)(Vn),{Provider:Gn}=Hn;function Un(){return(0,s.useContext)(Hn)}function Wn(){const{isSelected:e,clientId:t,name:n}=Un();return(0,m.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(zn);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function $n(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:l=!1}=e;const i=function(e,t){const n=Wn(),{clientId:o}=Un(),l=(0,m.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:l}=e(zn),{hasBlockSupport:i}=e(r.store);return t&&i(n(o),"__experimentalExposeControlsToChildren",!1)&&l(o)}),[t,o]);var i;return n?null===(i=f[e])||void 0===i?void 0:i.Fill:l?f.parent.Fill:null}(t,l);return i?(0,s.createElement)(p.__experimentalStyleProvider,{document:document},(0,s.createElement)(i,null,(e=>{const r=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolbarContext.Provider,{value:r},"default"===t&&(0,s.createElement)(p.ToolbarGroup,{controls:n}),o)}))):null}function jn(e){let{group:t="default",...n}=e;const o=(0,s.useContext)(p.__experimentalToolbarContext),r=f[t].Slot,l=(0,p.__experimentalUseSlot)(r.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===t?(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o})):(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o}))):null}const Kn=$n;Kn.Slot=jn;const qn=e=>(0,s.createElement)($n,i({group:"inline"},e));qn.Slot=e=>(0,s.createElement)(jn,i({group:"inline"},e));var Yn=Kn,Xn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),Zn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Qn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"})),Jn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),eo=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),to=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),no=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),oo=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),ro=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),lo=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),io=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),so=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"}));function ao(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e} ${t}`)).join(",")}const co=["color","border","typography","spacing"],uo={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},po={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function mo(e){const{name:t}=Un();return(0,m.useSelect)((n=>{var o;if(co.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");const l=n(zn).getSettings(),i=(e=>po[e]||e)(e),s=`__experimentalFeatures.${i}`,a=`__experimentalFeatures.blocks.${t}.${i}`,c=null!==(o=(0,u.get)(l,a))&&void 0!==o?o:(0,u.get)(l,s);var d,p;if(void 0!==c)return r.__EXPERIMENTAL_PATHS_WITH_MERGE[i]?null!==(d=null!==(p=c.custom)&&void 0!==p?p:c.theme)&&void 0!==d?d:c.default:c;const m=uo[i]?uo[i](l):void 0;return void 0!==m?m:"typography.dropCap"===i||void 0}),[t,e])}const fo={left:no,center:oo,right:ro,"space-between":lo};var go=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:o,value:r,popoverProps:l,isToolbar:a}=e;const c=e=>{o(e===r?void 0:e)},u=r?fo[r]:fo.left,d=[{name:"left",icon:no,title:(0,g.__)("Justify items left"),isActive:"left"===r,onClick:()=>c("left")},{name:"center",icon:oo,title:(0,g.__)("Justify items center"),isActive:"center"===r,onClick:()=>c("center")},{name:"right",icon:ro,title:(0,g.__)("Justify items right"),isActive:"right"===r,onClick:()=>c("right")},{name:"space-between",icon:lo,title:(0,g.__)("Space between items"),isActive:"space-between"===r,onClick:()=>c("space-between")}],m=a?p.ToolbarGroup:p.ToolbarDropdownMenu,f=a?{isCollapsed:n}:{};return(0,s.createElement)(m,i({icon:u,popoverProps:l,label:(0,g.__)("Change items justification"),controls:d.filter((e=>t.includes(e.name)))},f))};function ho(e){return(0,s.createElement)(go,i({},e,{isToolbar:!1}))}function vo(e){return(0,s.createElement)(go,i({},e,{isToolbar:!0}))}const bo={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},ko={left:"flex-start",right:"flex-end",center:"center"},_o=["wrap","nowrap"];var yo={name:"flex",label:(0,g.__)("Flex"),inspectorControls:function(e){let{layout:t={},onChange:n}=e;const{allowOrientation:o=!0}=t;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Flex,null,(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Eo,{layout:t,onChange:n})),(0,s.createElement)(p.FlexItem,null,o&&(0,s.createElement)(So,{layout:t,onChange:n}))),(0,s.createElement)(Co,{layout:t,onChange:n}))},toolBarControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:o}=e;return null!=o&&o.allowSwitching?null:(0,s.createElement)(Yn,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Eo,{layout:t,onChange:n,isToolbar:!0}))},save:function(e){var t,n;let{selector:o,layout:r,style:l}=e;const{orientation:i="horizontal"}=r,a=null!==mo("spacing.blockGap"),c=null!==(t=null==l||null===(n=l.spacing)||void 0===n?void 0:n.blockGap)&&void 0!==t?t:"var( --wp--style--block-gap, 0.5em )",u=bo[r.justifyContent]||bo.left,d=_o.includes(r.flexWrap)?r.flexWrap:"wrap",p=`\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tjustify-content: ${u};\n\t\t`,m=`\n\t\tflex-direction: column;\n\t\talign-items: ${ko[r.justifyContent]||ko.left};\n\t\t`;return(0,s.createElement)("style",null,`\n\t\t\t\t${ao(o)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tgap: ${a?c:"0.5em"};\n\t\t\t\t\tflex-wrap: ${d};\n\t\t\t\t\t${"horizontal"===i?p:m}\n\t\t\t\t}\n\n\t\t\t\t${ao(o,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Eo(e){let{layout:t,onChange:n,isToolbar:o=!1}=e;const{justifyContent:r="left",orientation:l="horizontal"}=t,i=e=>{n({...t,justifyContent:e})},a=["left","center","right"];if("horizontal"===l&&a.push("space-between"),o)return(0,s.createElement)(ho,{allowedControls:a,value:r,onChange:i,popoverProps:{position:"bottom right",isAlternate:!0}});const c=[{value:"left",icon:no,label:(0,g.__)("Justify items left")},{value:"center",icon:oo,label:(0,g.__)("Justify items center")},{value:"right",icon:ro,label:(0,g.__)("Justify items right")}];return"horizontal"===l&&c.push({value:"space-between",icon:lo,label:(0,g.__)("Space between items")}),(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},(0,s.createElement)("legend",null,(0,g.__)("Justification")),(0,s.createElement)("div",null,c.map((e=>{let{value:t,icon:n,label:o}=e;return(0,s.createElement)(p.Button,{key:t,label:o,icon:n,isPressed:r===t,onClick:()=>i(t)})}))))}function Co(e){let{layout:t,onChange:n}=e;const{flexWrap:o="wrap"}=t;return(0,s.createElement)(p.ToggleControl,{label:(0,g.__)("Allow to wrap to multiple lines"),onChange:e=>{n({...t,flexWrap:e?"wrap":"nowrap"})},checked:"wrap"===o})}function So(e){let{layout:t,onChange:n}=e;const{orientation:o="horizontal"}=t;return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},(0,s.createElement)("legend",null,(0,g.__)("Orientation")),(0,s.createElement)(p.Button,{label:"horizontal",icon:io,isPressed:"horizontal"===o,onClick:()=>n({...t,orientation:"horizontal"})}),(0,s.createElement)(p.Button,{label:"vertical",icon:so,isPressed:"vertical"===o,onClick:()=>n({...t,orientation:"vertical"})}))}var wo=function(e){let{icon:t,size:n=24,...o}=e;return(0,s.cloneElement)(t,{width:n,height:n,...o})};const Bo=[{name:"default",label:(0,g.__)("Flow"),inspectorControls:function(e){let{layout:t,onChange:n}=e;const{wideSize:o,contentSize:r}=t,l=(0,p.__experimentalUseCustomUnits)({availableUnits:mo("spacing.units")||["%","px","em","rem","vw"]});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,contentSize:e})},units:l}),(0,s.createElement)(wo,{icon:Qn})),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,wideSize:e})},units:l}),(0,s.createElement)(wo,{icon:eo}))),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},(0,s.createElement)(p.Button,{variant:"secondary",isSmall:!0,disabled:!r&&!o,onClick:()=>n({contentSize:void 0,wideSize:void 0,inherit:!1})},(0,g.__)("Reset"))),(0,s.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,g.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function(){return null},save:function(e){var t,n;let{selector:o,layout:r={},style:l}=e;const{contentSize:i,wideSize:a}=r,c=null!==mo("spacing.blockGap"),u=null!==(t=null==l||null===(n=l.spacing)||void 0===n?void 0:n.blockGap)&&void 0!==t?t:"var( --wp--style--block-gap )";let d=i||a?`\n\t\t\t\t\t${ao(o,"> *")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\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\n\t\t\t\t\t${ao(o,'> [data-align="wide"]')} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\n\t\t\t\t\t${ao(o,'> [data-align="full"]')} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return d+=`\n\t\t\t${ao(o,'> [data-align="left"]')} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-right: 2em;\n\t\t\t}\n\n\t\t\t${ao(o,'> [data-align="right"]')} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-left: 2em;\n\t\t\t}\n\n\t\t`,c&&(d+=`\n\t\t\t\t${ao(o,"> *")} {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t\t${ao(o,"> * + *")} {\n\t\t\t\t\tmargin-top: ${u};\n\t\t\t\t}\n\t\t\t`),(0,s.createElement)("style",null,d)},getOrientation:()=>"vertical",getAlignments(e){const t=function(e){const{contentSize:t,wideSize:n}=e,o={},r=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return r.test(t)&&(
4
  // translators: %s: container size (i.e. 600px etc)
5
  o.none=(0,g.sprintf)((0,g.__)("Max %s wide"),t)),r.test(n)&&(
6
  // translators: %s: container size (i.e. 600px etc)
7
- o.wide=(0,g.sprintf)((0,g.__)("Max %s wide"),n)),o}(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},yo];function xo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Bo.find((t=>t.name===e))}const Io={type:"default"},To=(0,s.createContext)(Io),No=To.Provider;function Po(){return(0,s.useContext)(To)}function Mo(e){let{layout:t={},...n}=e;const o=xo(t.type);return o?(0,s.createElement)(o.save,i({layout:t},n)):null}const Ro=["none","left","center","right","wide","full"],Lo=["wide","full"];function Ao(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro;e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=(0,m.useSelect)((e=>{const{getSettings:t}=e(zn),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}}),[]),o=Po(),r=xo(null==o?void 0:o.type),l=r.getAlignments(o);if(n){const t=l.filter((t=>{let{name:n}=t;return e.includes(n)}));return 1===t.length&&"none"===t[0].name?[]:t}if("default"!==r.name)return[];const{alignments:i=Ro}=o,s=e.filter((e=>(o.alignments||t||!Lo.includes(e))&&i.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?[]:s}const Do={none:{icon:Xn,title:(0,g.__)("None")},left:{icon:Zn,title:(0,g.__)("Align left")},center:{icon:Qn,title:(0,g.__)("Align center")},right:{icon:Jn,title:(0,g.__)("Align right")},wide:{icon:eo,title:(0,g.__)("Wide width")},full:{icon:to,title:(0,g.__)("Full width")}},Oo={isAlternate:!0};var Fo=function(e){let{value:t,onChange:n,controls:o,isToolbar:r,isCollapsed:l=!0}=e;const a=Ao(o);if(!a.length)return null;function u(e){n([t,"none"].includes(e)?void 0:e)}const d=Do[t],m=Do.none,f=r?p.ToolbarGroup:p.ToolbarDropdownMenu,h={popoverProps:Oo,icon:d?d.icon:m.icon,label:(0,g.__)("Align"),toggleProps:{describedBy:(0,g.__)("Change alignment")}},v=r||s.Platform.isNative?{isCollapsed:r?l:void 0,controls:a.map((e=>{let{name:n}=e;return{...Do[n],isActive:t===n||!t&&"none"===n,role:l?"menuitemradio":void 0,onClick:()=>u(n)}}))}:{children:e=>{let{onClose:n}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},a.map((e=>{let{name:o,info:r}=e;const{icon:l,title:i}=Do[o],a=o===t||!t&&"none"===o;return(0,s.createElement)(p.MenuItem,{key:o,icon:l,iconPosition:"left",className:c()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{u(o),n()},role:"menuitemradio",info:r},i)}))))}};return(0,s.createElement)(f,i({},h,v))};function zo(e){return(0,s.createElement)(Fo,i({},e,{isToolbar:!1}))}function Vo(e){return(0,s.createElement)(Fo,i({},e,{isToolbar:!0}))}const Ho=["left","center","right","wide","full"],Go=["wide","full"];function Uo(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Ho.filter((t=>e.includes(t))):!0===e?[...Ho]:[],!o||!0===e&&!n?(0,u.without)(t,...Go):t}const Wo=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n}=t,o=Ao(Uo((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0))).map((e=>{let{name:t}=e;return t}));return(0,s.createElement)(s.Fragment,null,!!o.length&&(0,s.createElement)(Yn,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(zo,{value:t.attributes.align,onChange:e=>{if(!e){var n,o;const l=(0,r.getBlockType)(t.name);(null==l||null===(n=l.attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="")}t.setAttributes({align:e})},controls:o})),(0,s.createElement)(e,t))}),"withToolbarControls"),$o=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:l}=o,a=Ao(Uo((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0)));if(void 0===l)return(0,s.createElement)(e,t);let c=t.wrapperProps;return a.some((e=>e.name===l))&&(c={...c,"data-align":l}),(0,s.createElement)(e,i({},t,{wrapperProps:c}))}));(0,l.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return(0,u.has)(e.attributes,["align","type"])||(0,r.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Ho,""]}}),e})),(0,l.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",$o),(0,l.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Wo),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Uo((0,r.getBlockSupport)(t,"align"),(0,r.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=c()(`align${o}`,e.className)),e})),(0,l.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return(0,u.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e})),window.wp.warning;var jo={default:(0,p.createSlotFill)("InspectorControls"),advanced:(0,p.createSlotFill)("InspectorAdvancedControls"),border:(0,p.createSlotFill)("InspectorControlsBorder"),color:(0,p.createSlotFill)("InspectorControlsColor"),dimensions:(0,p.createSlotFill)("InspectorControlsDimensions"),typography:(0,p.createSlotFill)("InspectorControlsTypography")};function Ko(e){var t;let{__experimentalGroup:n="default",children:o}=e;const r=Wn(),l=null===(t=jo[n])||void 0===t?void 0:t.Fill;return l?r?(0,s.createElement)(p.__experimentalStyleProvider,{document:document},(0,s.createElement)(l,null,(e=>{const t=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolsPanelContext.Provider,{value:t},o)}))):null:("undefined"!=typeof process&&process.env,null)}const qo=e=>{if(!(0,u.isObject)(e)||Array.isArray(e))return e;const t=(0,u.pickBy)((0,u.mapValues)(e,qo),u.identity);return(0,u.isEmpty)(t)?void 0:t};function Yo(e,t,n){return(0,u.setWith)(e?(0,u.clone)(e):{},t,n,u.clone)}function Xo(e,t,n,o,r,l){var i;if((0,u.every)(e,(e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let s=null===(i=o[0])||void 0===i?void 0:i.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;var a;s=null===(a=o[r])||void 0===a?void 0:a.attributes}let c=n;return(0,u.forEach)(e,((e,n)=>{e&&t[n].forEach((e=>{const t=(0,u.get)(s,e);t&&(c={...c,attributes:Yo(c.attributes,e,t)})}))})),c}function Zo(e){let{children:t,group:n,label:o}=e;const{updateBlockAttributes:r}=(0,m.useDispatch)(zn),{getBlockAttributes:l,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:c}=(0,m.useSelect)(zn),u=a(),d=(0,s.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},n=c()?i():[u];n.forEach((n=>{const{style:o}=l(n);let r={style:o};e.forEach((e=>{r={...r,...e(r)}})),r={...r,style:qo(r.style)},t[n]=r})),r(n,t,!0)}),[qo,l,i,c,u,r]);return(0,s.createElement)(p.__experimentalToolsPanel,{className:`${n}-block-support-panel`,label:o,resetAll:d,key:u,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},t)}function Qo(e){let{Slot:t,...n}=e;const o=(0,s.useContext)(p.__experimentalToolsPanelContext);return(0,s.createElement)(t,i({},n,{fillProps:o,bubblesVirtually:!0}))}function Jo(e){var t;let{__experimentalGroup:n="default",label:o,...r}=e;const l=null===(t=jo[n])||void 0===t?void 0:t.Slot,a=(0,p.__experimentalUseSlot)(null==l?void 0:l.__unstableName);return l&&a?Boolean(a.fills&&a.fills.length)?o?(0,s.createElement)(Zo,{group:n,label:o},(0,s.createElement)(Qo,i({},r,{Slot:l}))):(0,s.createElement)(l,i({},r,{bubblesVirtually:!0})):null:("undefined"!=typeof process&&process.env,null)}const er=Ko;er.Slot=Jo;const tr=e=>(0,s.createElement)(Ko,i({},e,{__experimentalGroup:"advanced"}));tr.Slot=e=>(0,s.createElement)(Jo,i({},e,{__experimentalGroup:"advanced"})),tr.slotName="InspectorAdvancedControls";var nr=er;const or=/[\s#]/g,rr=(0,d.createHigherOrderComponent)((e=>t=>{if((0,r.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===s.Platform.OS,o=(0,s.createElement)(p.TextControl,{className:"html-anchor-control",label:(0,g.__)("HTML anchor"),help:(0,s.createElement)(s.Fragment,null,(0,g.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,s.createElement)(p.ExternalLink,{href:(0,g.__)("https://wordpress.org/support/article/page-jumps/")},(0,g.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,g.__)("Add an anchor"),onChange:e=>{e=e.replace(or,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),n&&(0,s.createElement)(nr,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&(0,s.createElement)(nr,null,(0,s.createElement)(p.PanelBody,{title:(0,g.__)("Heading settings")},o)))}return(0,s.createElement)(e,t)}),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return(0,u.has)(e.attributes,["anchor","type"])||(0,r.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",rr),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const lr=(0,d.createHigherOrderComponent)((e=>t=>(0,r.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(nr,{__experimentalGroup:"advanced"},(0,s.createElement)(p.TextControl,{autoComplete:"off",label:(0,g.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,g.__)("Separate multiple classes with spaces.")}))):(0,s.createElement)(e,t)),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,r.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",lr),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=c()(e.className,n.className)),e})),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,r.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=(0,u.uniq)([(0,r.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=(0,r.getBlockDefaultClassName)(t.name)),e}));var ir=window.wp.dom;const sr=(0,s.createContext)({});function ar(e){let{value:t,children:n}=e;const o=(0,s.useContext)(sr),r=(0,s.useMemo)((()=>({...o,...t})),[o,t]);return(0,s.createElement)(sr.Provider,{value:r,children:n})}var cr=sr;const ur={};var dr=(0,p.withFilters)("editor.BlockEdit")((e=>{const{attributes:t={},name:n}=e,o=(0,r.getBlockType)(n),l=(0,s.useContext)(cr),a=(0,s.useMemo)((()=>o&&o.usesContext?(0,u.pick)(l,o.usesContext):ur),[o,l]);if(!o)return null;const d=o.edit||o.save;if(o.apiVersion>1)return(0,s.createElement)(d,i({},e,{context:a}));const p=(0,r.hasBlockSupport)(o,"className",!0)?(0,r.getBlockDefaultClassName)(n):null,m=c()(p,t.className);return(0,s.createElement)(d,i({},e,{context:a,className:m}))}));function pr(e){const{name:t,isSelected:n,clientId:o}=e,r={name:t,isSelected:n,clientId:o};return(0,s.createElement)(Gn,{value:(0,s.useMemo)((()=>r),Object.values(r))},(0,s.createElement)(dr,e))}var mr=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),fr=function(e){let{className:t,actions:n,children:o,secondaryActions:r}=e;return(0,s.createElement)("div",{className:c()(t,"block-editor-warning")},(0,s.createElement)("div",{className:"block-editor-warning__contents"},(0,s.createElement)("p",{className:"block-editor-warning__message"},o),(s.Children.count(n)>0||r)&&(0,s.createElement)("div",{className:"block-editor-warning__actions"},s.Children.count(n)>0&&s.Children.map(n,((e,t)=>(0,s.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,s.createElement)(p.DropdownMenu,{className:"block-editor-warning__secondary",icon:mr,label:(0,g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,s.createElement)(p.MenuGroup,null,r.map(((e,t)=>(0,s.createElement)(p.MenuItem,{onClick:e.onClick,key:t},e.title)))))))))},gr=n(7630);function hr(e){let{title:t,rawContent:n,renderedContent:o,action:r,actionText:l,className:i}=e;return(0,s.createElement)("div",{className:i},(0,s.createElement)("div",{className:"block-editor-block-compare__content"},(0,s.createElement)("h2",{className:"block-editor-block-compare__heading"},t),(0,s.createElement)("div",{className:"block-editor-block-compare__html"},n),(0,s.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,s.createElement)(s.RawHTML,null,(0,ir.safeHTML)(o)))),(0,s.createElement)("div",{className:"block-editor-block-compare__action"},(0,s.createElement)(p.Button,{variant:"secondary",tabIndex:"0",onClick:r},l)))}var vr=function(e){let{block:t,onKeep:n,onConvert:o,convertor:l,convertButtonText:i}=e;const a=(d=l(t),(0,u.castArray)(d).map((e=>(0,r.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var d;const p=(m=t.originalContent,f=a,(0,gr.Kx)(m,f).map(((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,s.createElement)("span",{key:t,className:n},e.value)})));var m,f;return(0,s.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,s.createElement)(hr,{title:(0,g.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:(0,g.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),(0,s.createElement)(hr,{title:(0,g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:i,rawContent:p,renderedContent:a}))};const br=e=>(0,r.rawHandler)({HTML:e.originalContent});var kr=(0,d.compose)([(0,m.withSelect)(((e,t)=>{let{clientId:n}=t;return{block:e(zn).getBlock(n)}})),(0,m.withDispatch)(((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(zn);return{convertToClassic(){o(n.clientId,(e=>(0,r.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>(0,r.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,br(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return(0,r.createBlock)(t,n,o)})(n))}}}))])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:o,attemptBlockRecovery:l,block:i}=e;const a=!!(0,r.getBlockType)("core/html"),[c,u]=(0,s.useState)(!1),d=(0,s.useCallback)((()=>u(!0)),[]),m=(0,s.useCallback)((()=>u(!1)),[]),f=(0,s.useMemo)((()=>[{
8
  // translators: Button to fix block content
9
- title:(0,g._x)("Resolve","imperative verb"),onClick:d},a&&{title:(0,g.__)("Convert to HTML"),onClick:t},{title:(0,g.__)("Convert to Classic Block"),onClick:o}].filter(Boolean)),[d,t,o]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(fr,{actions:[(0,s.createElement)(p.Button,{key:"recover",onClick:l,variant:"primary"},(0,g.__)("Attempt Block Recovery"))],secondaryActions:f},(0,g.__)("This block contains unexpected or invalid content.")),c&&(0,s.createElement)(p.Modal,{title:// translators: Dialog title to fix block content
10
- (0,g.__)("Resolve Block"),onRequestClose:m,className:"block-editor-block-compare"},(0,s.createElement)(vr,{block:i,onKeep:t,onConvert:n,convertor:br,convertButtonText:(0,g.__)("Convert to Blocks")})))}));const _r=(0,s.createElement)(fr,{className:"block-editor-block-list__block-crash-warning"},(0,g.__)("This block has encountered an error and cannot be previewed."));var yr=()=>_r;class Er extends s.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 Cr=Er,Sr=n(4042),wr=function(e){let{clientId:t}=e;const[n,o]=(0,s.useState)(""),l=(0,m.useSelect)((e=>e(zn).getBlock(t)),[t]),{updateBlock:i}=(0,m.useDispatch)(zn);return(0,s.useEffect)((()=>{o((0,r.getBlockContent)(l))}),[l]),(0,s.createElement)(Sr.Z,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=(0,r.getBlockType)(l.name);if(!e)return;const s=(0,r.getBlockAttributes)(e,n,l.attributes),a=n||(0,r.getSaveContent)(e,s),c=!n||(0,r.isValidBlockContent)(e,s,a);i(t,{attributes:s,originalContent:a,isValid:c}),n||o({content:a})},onChange:e=>o(e.target.value)})};let Br=Hr();const xr=e=>Or(e,Br);let Ir=Hr();xr.write=e=>Or(e,Ir);let Tr=Hr();xr.onStart=e=>Or(e,Tr);let Nr=Hr();xr.onFrame=e=>Or(e,Nr);let Pr=Hr();xr.onFinish=e=>Or(e,Pr);let Mr=[];xr.setTimeout=(e,t)=>{let n=xr.now()+t,o=()=>{let e=Mr.findIndex((e=>e.cancel==o));~e&&Mr.splice(e,1),Ur.count-=~e?1:0},r={time:n,handler:e,cancel:o};return Mr.splice(Rr(n),0,r),Ur.count+=1,Fr(),r};let Rr=e=>~(~Mr.findIndex((t=>t.time>e))||~Mr.length);xr.cancel=e=>{Br.delete(e),Ir.delete(e)},xr.sync=e=>{Dr=!0,xr.batchedUpdates(e),Dr=!1},xr.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,xr.onStart(n)}return o.handler=e,o.cancel=()=>{Tr.delete(n),t=null},o};let Lr="undefined"!=typeof window?window.requestAnimationFrame:()=>{};xr.use=e=>Lr=e,xr.now="undefined"!=typeof performance?()=>performance.now():Date.now,xr.batchedUpdates=e=>e(),xr.catch=console.error,xr.frameLoop="always",xr.advance=()=>{"demand"!==xr.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Vr()};let Ar=-1,Dr=!1;function Or(e,t){Dr?(t.delete(e),e(0)):(t.add(e),Fr())}function Fr(){Ar<0&&(Ar=0,"demand"!==xr.frameLoop&&Lr(zr))}function zr(){~Ar&&(Lr(zr),xr.batchedUpdates(Vr))}function Vr(){let e=Ar;Ar=xr.now();let t=Rr(Ar);t&&(Gr(Mr.splice(0,t),(e=>e.handler())),Ur.count-=t),Tr.flush(),Br.flush(e?Math.min(64,Ar-e):16.667),Nr.flush(),Ir.flush(),Pr.flush()}function Hr(){let e=new Set,t=e;return{add(n){Ur.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Ur.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Ur.count-=t.size,Gr(t,(t=>t(n)&&e.add(t))),Ur.count+=e.size,t=e)}}}function Gr(e,t){e.forEach((e=>{try{t(e)}catch(e){xr.catch(e)}}))}const Ur={count:0,clear(){Ar=-1,Mr=[],Tr=Hr(),Br=Hr(),Nr=Hr(),Ir=Hr(),Pr=Hr(),Ur.count=0}};var Wr=n(9196),$r=n.n(Wr);function jr(){}const Kr={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function qr(e,t){if(Kr.arr(e)){if(!Kr.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Yr=(e,t)=>e.forEach(t);function Xr(e,t,n){for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Zr=e=>Kr.und(e)?[]:Kr.arr(e)?e:[e];function Qr(e,t){if(e.size){const n=Array.from(e);e.clear(),Yr(n,t)}}const Jr=(e,...t)=>Qr(e,(e=>e(...t)));let el,tl,nl=null,ol=!1,rl=jr;var ll=Object.freeze({__proto__:null,get createStringInterpolator(){return el},get to(){return tl},get colors(){return nl},get skipAnimation(){return ol},get willAdvance(){return rl},assign:e=>{e.to&&(tl=e.to),e.now&&(xr.now=e.now),void 0!==e.colors&&(nl=e.colors),null!=e.skipAnimation&&(ol=e.skipAnimation),e.createStringInterpolator&&(el=e.createStringInterpolator),e.requestAnimationFrame&&xr.use(e.requestAnimationFrame),e.batchedUpdates&&(xr.batchedUpdates=e.batchedUpdates),e.willAdvance&&(rl=e.willAdvance),e.frameLoop&&(xr.frameLoop=e.frameLoop)}});const il=new Set;let sl=[],al=[],cl=0;const ul={get idle(){return!il.size&&!sl.length},start(e){cl>e.priority?(il.add(e),xr.onStart(dl)):(pl(e),xr(fl))},advance:fl,sort(e){if(cl)xr.onFrame((()=>ul.sort(e)));else{const t=sl.indexOf(e);~t&&(sl.splice(t,1),ml(e))}},clear(){sl=[],il.clear()}};function dl(){il.forEach(pl),il.clear(),xr(fl)}function pl(e){sl.includes(e)||ml(e)}function ml(e){sl.splice(function(t,n){const o=t.findIndex((t=>t.priority>e.priority));return o<0?t.length:o}(sl),0,e)}function fl(e){const t=al;for(let n=0;n<sl.length;n++){const o=sl[n];cl=o.priority,o.idle||(rl(o),o.advance(e),o.idle||t.push(o))}return cl=0,al=sl,al.length=0,sl=t,sl.length>0}const gl="[-+]?\\d*\\.?\\d+",hl=gl+"%";function vl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const bl=new RegExp("rgb"+vl(gl,gl,gl)),kl=new RegExp("rgba"+vl(gl,gl,gl,gl)),_l=new RegExp("hsl"+vl(gl,hl,hl)),yl=new RegExp("hsla"+vl(gl,hl,hl,gl)),El=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Sl=/^#([0-9a-fA-F]{6})$/,wl=/^#([0-9a-fA-F]{8})$/;function Bl(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 xl(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=Bl(r,o,e+1/3),i=Bl(r,o,e),s=Bl(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function Il(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Tl(e){return(parseFloat(e)%360+360)%360/360}function Nl(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Pl(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ml(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Sl.exec(e))?parseInt(t[1]+"ff",16)>>>0:nl&&void 0!==nl[e]?nl[e]:(t=bl.exec(e))?(Il(t[1])<<24|Il(t[2])<<16|Il(t[3])<<8|255)>>>0:(t=kl.exec(e))?(Il(t[1])<<24|Il(t[2])<<16|Il(t[3])<<8|Nl(t[4]))>>>0:(t=El.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=wl.exec(e))?parseInt(t[1],16)>>>0:(t=Cl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_l.exec(e))?(255|xl(Tl(t[1]),Pl(t[2]),Pl(t[3])))>>>0:(t=yl.exec(e))?(xl(Tl(t[1]),Pl(t[2]),Pl(t[3]))|Nl(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Rl=(e,t,n)=>{if(Kr.fun(e))return e;if(Kr.arr(e))return Rl({range:e,output:t,extrapolate:n});if(Kr.str(e.output[0]))return el(e);const o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",s=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,s,a){let c=a?a(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,l[t],l[t+1],r[t],r[t+1],a,i,s,o.map)}};function Ll(){return(Ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const Al=Symbol.for("FluidValue.get"),Dl=Symbol.for("FluidValue.observers"),Ol=e=>Boolean(e&&e[Al]),Fl=e=>e&&e[Al]?e[Al]():e,zl=e=>e[Dl]||null;function Vl(e,t){let n=e[Dl];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Hl{constructor(e){if(this[Al]=void 0,this[Dl]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Gl(this,e)}}const Gl=(e,t)=>$l(e,Al,t);function Ul(e,t){if(e[Al]){let n=e[Dl];n||$l(e,Dl,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Wl(e,t){let n=e[Dl];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[Dl]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const $l=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Kl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;let ql;const Yl=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Xl=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Zl=e=>{ql||(ql=nl?new RegExp(`(${Object.keys(nl).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Fl(e).replace(Kl,Ml).replace(ql,Ml))),n=t.map((e=>e.match(jl).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Rl(Ll({},e,{output:t}))));return e=>{let n=0;return t[0].replace(jl,(()=>String(o[n++](e)))).replace(Yl,Xl)}},Ql="react-spring: ",Jl=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Ql}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},ei=Jl(console.warn),ti=Jl(console.warn);function ni(e){return Kr.str(e)&&("#"==e[0]||/\d/.test(e)||e in(nl||{}))}const oi=e=>(0,Wr.useEffect)(e,ri),ri=[];function li(){const e=(0,Wr.useState)()[1],t=(0,Wr.useState)(ii)[0];return oi(t.unmount),()=>{t.current&&e({})}}function ii(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function si(e){const t=(0,Wr.useRef)();return(0,Wr.useEffect)((()=>{t.current=e})),t.current}const ai="undefined"!=typeof window&&window.document&&window.document.createElement?Wr.useLayoutEffect:Wr.useEffect,ci=Symbol.for("Animated:node"),ui=e=>e&&e[ci],di=(e,t)=>{return n=e,o=ci,r=t,Object.defineProperty(n,o,{value:r,writable:!0,configurable:!0});var n,o,r},pi=e=>e&&e[ci]&&e[ci].getPayload();class mi{constructor(){this.payload=void 0,di(this,this)}getPayload(){return this.payload||[]}}class fi extends mi{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Kr.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new fi(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Kr.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Kr.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class gi extends fi{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Rl({output:[e,e]})}static create(e){return new gi(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Kr.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Rl({output:[this.getValue(),e]})),this._value=0,super.reset()}}const hi={dependencies:null};class vi extends mi{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Xr(this.source,((n,o)=>{var r;(r=n)&&r[ci]===r?t[o]=n.getValue(e):Ol(n)?t[o]=Fl(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Yr(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Xr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hi.dependencies&&Ol(e)&&hi.dependencies.add(e);const t=pi(e);t&&Yr(t,(e=>this.add(e)))}}class bi extends vi{constructor(e){super(e)}static create(e){return new bi(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(ki)),!0)}}function ki(e){return(ni(e)?gi:fi).create(e)}function _i(e){const t=ui(e);return t?t.constructor:Kr.arr(e)?bi:ni(e)?gi:fi}function yi(){return(yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const Ei=(e,t)=>{const n=!Kr.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,Wr.forwardRef)(((o,r)=>{const l=(0,Wr.useRef)(null),i=n&&(0,Wr.useCallback)((e=>{l.current=function(e,t){return e&&(Kr.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[s,a]=function(e,t){const n=new Set;return hi.dependencies=n,e.style&&(e=yi({},e,{style:t.createAnimatedStyle(e.style)})),e=new vi(e),hi.dependencies=null,[e,n]}(o,t),c=li(),u=()=>{const e=l.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new Ci(u,a),p=(0,Wr.useRef)();ai((()=>{const e=p.current;p.current=d,Yr(a,(e=>Ul(e,d))),e&&(Yr(e.deps,(t=>Wl(t,e))),xr.cancel(e.update))})),(0,Wr.useEffect)(u,[]),oi((()=>()=>{const e=p.current;Yr(e.deps,(t=>Wl(t,e)))}));const m=t.getComponentProps(s.getValue());return Wr.createElement(e,yi({},m,{ref:i}))}))};class Ci{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&xr.write(this.update)}}const Si=Symbol.for("AnimatedComponent"),wi=e=>Kr.str(e)?e:e&&Kr.str(e.displayName)?e.displayName:Kr.fun(e)&&e.name||null;function Bi(){return(Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function xi(e,...t){return Kr.fun(e)?e(...t):e}const Ii=(e,t)=>!0===e||!!(t&&e&&(Kr.fun(e)?e(t):Zr(e).includes(t))),Ti=(e,t)=>Kr.obj(e)?t&&e[t]:e,Ni=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Pi=e=>e,Mi=(e,t=Pi)=>{let n=Ri;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const n=t(e[r],r);Kr.und(n)||(o[r]=n)}return o},Ri=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Li={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ai(e){const t=function(e){const t={};let n=0;if(Xr(e,((e,o)=>{Li[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Xr(e,((e,o)=>o in t||(n[o]=e))),n}return Bi({},e)}function Di(e){return e=Fl(e),Kr.arr(e)?e.map(Di):ni(e)?ll.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Oi(e){for(const t in e)return!0;return!1}function Fi(e){return Kr.fun(e)||Kr.arr(e)&&Kr.obj(e[0])}function zi(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Vi(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const Hi=Bi({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class Gi{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Hi)}}function Ui(e,t){if(Kr.und(t.decay)){const n=!Kr.und(t.tension)||!Kr.und(t.friction);!n&&Kr.und(t.frequency)&&Kr.und(t.damping)&&Kr.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Wi=[];class $i{constructor(){this.changed=!1,this.values=Wi,this.toValues=null,this.fromValues=Wi,this.to=void 0,this.from=void 0,this.config=new Gi,this.immediate=!1}}function ji(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,s)=>{var a;let c,u,d=Ii(null!=(a=n.cancel)?a:null==o?void 0:o.cancel,t);if(d)f();else{Kr.und(n.pause)||(r.paused=Ii(n.pause,t));let e=null==o?void 0:o.pause;!0!==e&&(e=r.paused||Ii(e,t)),c=xi(n.delay||0,t),e?(r.resumeQueue.add(m),l.pause()):(l.resume(),m())}function p(){r.resumeQueue.add(m),r.timeouts.delete(u),u.cancel(),c=u.time-xr.now()}function m(){c>0?(u=xr.setTimeout(f,c),r.pauseQueue.add(p),r.timeouts.add(u)):f()}function f(){r.pauseQueue.delete(p),r.timeouts.delete(u),e<=(r.cancelId||0)&&(d=!0);try{l.start(Bi({},n,{callId:e,cancel:d}),i)}catch(e){s(e)}}}))}const Ki=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Xi(e.get()):t.every((e=>e.noop))?qi(e.get()):Yi(e.get(),t.every((e=>e.finished))),qi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Yi=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Xi=e=>({value:e,cancelled:!0,finished:!1});function Zi(e,t,n,o){const{callId:r,parentId:l,onRest:i}=t,{asyncTo:s,promise:a}=n;return l||e!==s||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=Mi(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=r<=(n.cancelId||0)&&Xi(o)||r!==n.asyncId&&Yi(o,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const l=new Ji,i=new es;return(async()=>{if(ll.skipAnimation)throw Qi(n),i.result=Yi(o,!1),d(i),i;m(l);const s=Kr.obj(e)?Bi({},e):Bi({},t,{to:e});s.parentId=r,Xr(c,((e,t)=>{Kr.und(s[t])&&(s[t]=e)}));const a=await o.start(s);return m(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};let g;if(ll.skipAnimation)return Qi(n),Yi(o,!1);try{let t;t=Kr.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,o.stop.bind(o))),await Promise.all([t.then(u),p]),g=Yi(o.get(),!0,!1)}catch(e){if(e instanceof Ji)g=e.result;else{if(!(e instanceof es))throw e;g=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?s:void 0,n.promise=l?a:void 0)}return Kr.fun(i)&&xr.batchedUpdates((()=>{i(g,o,o.item)})),g})():a}function Qi(e,t){Qr(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Ji extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class es extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ts=e=>e instanceof os;let ns=1;class os extends Hl{constructor(...e){super(...e),this.id=ns++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ui(this);return e&&e.getValue()}to(...e){return ll.to(this,e)}interpolate(...e){return ei(`${Ql}The "interpolate" function is deprecated in v9 (use "to" instead)`),ll.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Vl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ul.sort(this),Vl(this,{type:"priority",parent:this,priority:e})}}const rs=Symbol.for("SpringPhase"),ls=e=>(1&e[rs])>0,is=e=>(2&e[rs])>0,ss=e=>(4&e[rs])>0,as=(e,t)=>t?e[rs]|=3:e[rs]&=-3,cs=(e,t)=>t?e[rs]|=4:e[rs]&=-5;class us extends os{constructor(e,t){if(super(),this.key=void 0,this.animation=new $i,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Kr.und(e)||!Kr.und(t)){const n=Kr.obj(e)?Bi({},e):Bi({},t,{from:e});Kr.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(is(this)||this._state.asyncTo)||ss(this)}get goal(){return Fl(this.animation.to)}get velocity(){const e=ui(this);return e instanceof fi?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ls(this)}get isAnimating(){return is(this)}get isPaused(){return ss(this)}advance(e){let t=!0,n=!1;const o=this.animation;let{config:r,toValues:l}=o;const i=pi(o.to);!i&&Ol(o.to)&&(l=Zr(Fl(o.to))),o.values.forEach(((s,a)=>{if(s.done)return;const c=s.constructor==gi?1:i?i[a].lastPosition:l[a];let u=o.immediate,d=c;if(!u){if(d=s.lastPosition,r.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=o.fromValues[a],l=null!=s.v0?s.v0:s.v0=Kr.arr(r.velocity)?r.velocity[a]:r.velocity;let i;if(Kr.und(r.duration))if(r.decay){const e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*t);d=n+l/(1-e)*(1-o),u=Math.abs(s.lastPosition-d)<.1,i=l*o}else{i=null==s.lastVelocity?l:s.lastVelocity;const t=r.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n))),o=r.restVelocity||t/10,a=r.clamp?0:r.bounce,p=!Kr.und(a),m=n==c?s.v0>0:n<c;let f,g=!1;const h=1,v=Math.ceil(e/h);for(let e=0;e<v&&(f=Math.abs(i)>o,f||(u=Math.abs(c-d)<=t,!u));++e)p&&(g=d==c||d>c==m,g&&(i=-i*a,d=c)),i+=(1e-6*-r.tension*(d-c)+.001*-r.friction*i)/r.mass*h,d+=i*h}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,s.durationProgress>0&&(s.elapsedTime=r.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(r.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),d=n+r.easing(o)*(c-n),i=(d-s.lastPosition)/e,u=1==o}s.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[a].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,r.round)&&(n=!0)}));const s=ui(this),a=s.getValue();if(t){const e=Fl(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return xr.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(is(this)){const{to:e,config:t}=this.animation;xr.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Kr.und(e)?(n=this.queue||[],this.queue=[]):n=[Kr.obj(e)?e:Bi({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Ki(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Qi(this._state,e&&this._lastCallId),xr.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=Kr.obj(n)?n[t]:n,(null==n||Fi(n))&&(n=void 0),o=Kr.obj(o)?o[t]:o,null==o&&(o=void 0);const r={to:n,from:o};return ls(this)||(e.reverse&&([n,o]=[o,n]),o=Fl(o),Kr.und(o)?ui(this)||this._set(n):this._set(o)),r}_update(e,t){let n=Bi({},e);const{key:o,defaultProps:r}=this;n.default&&Object.assign(r,Mi(n,((e,t)=>/^on/.test(t)?Ti(e,o):e))),vs(this,n,"onProps"),bs(this,"onProps",n,this);const l=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return ji(++this._lastCallId,{key:o,props:n,defaultProps:r,state:i,actions:{pause:()=>{ss(this)||(cs(this,!0),Jr(i.pauseQueue),bs(this,"onPause",Yi(this,ds(this,this.animation.to)),this))},resume:()=>{ss(this)&&(cs(this,!1),is(this)&&this._resume(),Jr(i.resumeQueue),bs(this,"onResume",Yi(this,ds(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=ps(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Xi(this));const o=!Kr.und(e.to),r=!Kr.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(Xi(this));this._lastToId=t.callId}const{key:l,defaultProps:i,animation:s}=this,{to:a,from:c}=s;let{to:u=a,from:d=c}=e;!r||o||t.default&&!Kr.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!qr(d,c);p&&(s.from=d),d=Fl(d);const m=!qr(u,a);m&&this._focus(u);const f=Fi(t.to),{config:g}=s,{decay:h,velocity:v}=g;(o||r)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Ui(n=Bi({},n),t),t=Bi({},n,t)),Ui(e,t),Object.assign(e,t);for(const t in Hi)null==e[t]&&(e[t]=Hi[t]);let{mass:o,frequency:r,damping:l}=e;Kr.und(r)||(r<.01&&(r=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*l*o/r)}(g,xi(t.config,l),t.config!==i.config?xi(i.config,l):void 0);let b=ui(this);if(!b||Kr.und(u))return n(Yi(this,!0));const k=Kr.und(t.reset)?r&&!t.default:!Kr.und(d)&&Ii(t.reset,l),_=k?d:this.get(),y=Di(u),E=Kr.num(y)||Kr.arr(y)||ni(y),C=!f&&(!E||Ii(i.immediate||t.immediate,l));if(m){const e=_i(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(y)}}const S=b.constructor;let w=Ol(u),B=!1;if(!w){const e=k||!ls(this)&&p;(m||e)&&(B=qr(Di(_),y),w=!B),(qr(s.immediate,C)||C)&&qr(g.decay,h)&&qr(g.velocity,v)||(w=!0)}if(B&&is(this)&&(s.changed&&!k?w=!0:w||this._stop(a)),!f&&((w||Ol(a))&&(s.values=b.getPayload(),s.toValues=Ol(u)?null:S==gi?[1]:Zr(y)),s.immediate!=C&&(s.immediate=C,C||k||this._set(a)),w)){const{onRest:e}=s;Yr(hs,(e=>vs(this,t,e)));const o=Yi(this,ds(this,a));Jr(this._pendingCalls,o),this._pendingCalls.add(n),s.changed&&xr.batchedUpdates((()=>{s.changed=!k,null==e||e(o,this),k?xi(i.onRest,o):null==s.onStart||s.onStart(o,this)}))}k&&this._set(_),f?n(Zi(t.to,t,this._state,this)):w?this._start():is(this)&&!m?this._pendingCalls.add(n):n(qi(_))}_focus(e){const t=this.animation;e!==t.to&&(zl(this)&&this._detach(),t.to=e,zl(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ol(t)&&(Ul(t,this),ts(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ol(e)&&Wl(e,this)}_set(e,t=!0){const n=Fl(e);if(!Kr.und(n)){const e=ui(this);if(!e||!qr(n,e.getValue())){const o=_i(n);e&&e.constructor==o?e.setValue(n):di(this,o.create(n)),e&&xr.batchedUpdates((()=>{this._onChange(n,t)}))}}return ui(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,bs(this,"onStart",Yi(this,ds(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),xi(this.animation.onChange,e,this)),xi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ui(this).reset(Fl(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),is(this)||(as(this,!0),ss(this)||this._resume())}_resume(){ll.skipAnimation?this.finish():ul.start(this)}_stop(e,t){if(is(this)){as(this,!1);const n=this.animation;Yr(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Vl(this,{type:"idle",parent:this});const o=t?Xi(this.get()):Yi(this.get(),ds(this,null!=e?e:n.to));Jr(this._pendingCalls,o),n.changed&&(n.changed=!1,bs(this,"onRest",o,this))}}}function ds(e,t){const n=Di(t);return qr(Di(e.get()),n)}function ps(e,t=e.loop,n=e.to){let o=xi(t);if(o){const r=!0!==o&&Ai(o),l=(r||e).reverse,i=!r||r.reset;return ms(Bi({},e,{loop:t,default:!1,pause:void 0,to:!l||Fi(n)?n:void 0,from:i?e.from:void 0,reset:i},r))}}function ms(e){const{to:t,from:n}=e=Ai(e),o=new Set;return Kr.obj(t)&&gs(t,o),Kr.obj(n)&&gs(n,o),e.keys=o.size?Array.from(o):null,e}function fs(e){const t=ms(e);return Kr.und(t.default)&&(t.default=Mi(t)),t}function gs(e,t){Xr(e,((e,n)=>null!=e&&t.add(n)))}const hs=["onStart","onRest","onChange","onPause","onResume"];function vs(e,t,n){e.animation[n]=t[n]!==Ni(t,n)?Ti(t[n],e.key):void 0}function bs(e,t,...n){var o,r,l,i;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(l=(i=e.defaultProps)[t])||l.call(i,...n)}const ks=["onStart","onChange","onRest"];let _s=1;class ys{constructor(e,t){this.id=_s++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(Bi({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Kr.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ms(e)),this}start(e){let{queue:t}=this;return e?t=Zr(e).map(ms):this.queue=[],this._flush?this._flush(this,t):(Is(this,t),Es(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Yr(Zr(t),(t=>n[t].stop(!!e)))}else Qi(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Kr.und(e))this.start({pause:!0});else{const t=this.springs;Yr(Zr(e),(e=>t[e].pause()))}return this}resume(e){if(Kr.und(e))this.start({pause:!1});else{const t=this.springs;Yr(Zr(e),(e=>t[e].resume()))}return this}each(e){Xr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,Qr(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&Qr(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,Qr(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}xr.onFrame(this._onFrame)}}function Es(e,t){return Promise.all(t.map((t=>Cs(e,t)))).then((t=>Ki(e,t)))}async function Cs(e,t,n){const{keys:o,to:r,from:l,loop:i,onRest:s,onResolve:a}=t,c=Kr.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);const u=Kr.arr(r)||Kr.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Yr(ks,(n=>{const o=t[n];if(Kr.fun(o)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Jr(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===Ni(t,"cancel");(u||m&&d.asyncId)&&p.push(ji(++e._lastAsyncId,{props:t,state:d,actions:{pause:jr,resume:jr,start(t,n){m?(Qi(d,e._lastAsyncId),n(Xi(e))):(t.onRest=s,n(Zi(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ki(e,await Promise.all(p));if(i&&f.finished&&(!n||!f.noop)){const n=ps(t,i,r);if(n)return Is(e,[n]),Cs(e,n,!0)}return a&&xr.batchedUpdates((()=>a(f,e,e.item))),f}function Ss(e,t){const n=Bi({},e.springs);return t&&Yr(Zr(t),(e=>{Kr.und(e.keys)&&(e=ms(e)),Kr.obj(e.to)||(e=Bi({},e,{to:void 0})),xs(n,e,(e=>Bs(e)))})),ws(e,n),n}function ws(e,t){Xr(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ul(t,e))}))}function Bs(e,t){const n=new us;return n.key=e,t&&Ul(n,t),n}function xs(e,t,n){t.keys&&Yr(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Is(e,t){Yr(t,(t=>{xs(e.springs,t,(t=>Bs(t,e)))}))}const Ts=["children"],Ns=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,Ts);const o=(0,Wr.useContext)(Ps),r=n.pause||!!o.pause,l=n.immediate||!!o.immediate;n=function(e,t){const[n]=(0,Wr.useState)((()=>({inputs:t,result:e()}))),o=(0,Wr.useRef)(),r=o.current;let l=r;return l?Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs))||(l={inputs:t,result:e()}):l=n,(0,Wr.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:r,immediate:l})),[r,l]);const{Provider:i}=Ps;return Wr.createElement(i,{value:n},t)},Ps=(Ms=Ns,Rs={},Object.assign(Ms,Wr.createContext(Rs)),Ms.Provider._context=Ms,Ms.Consumer._context=Ms,Ms);var Ms,Rs;Ns.Provider=Ps.Provider,Ns.Consumer=Ps.Consumer;const Ls=()=>{const e=[],t=function(t){ti(`${Ql}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const o=[];return Yr(e,((e,r)=>{if(Kr.und(t))o.push(e.start());else{const l=n(t,e,r);l&&o.push(e.start(l))}})),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Yr(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Yr(e,(e=>e.resume(...arguments))),this},t.set=function(t){Yr(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Yr(e,((e,o)=>{if(Kr.und(t))n.push(e.start());else{const r=this._getProps(t,e,o);r&&n.push(e.start(r))}})),n},t.stop=function(){return Yr(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Yr(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Kr.fun(e)?e(n,t):e};return t._getProps=n,t};function As(e,t,n){const o=Kr.fun(t)&&t;o&&!n&&(n=[]);const r=(0,Wr.useMemo)((()=>o||3==arguments.length?Ls():void 0),[]),l=(0,Wr.useRef)(0),i=li(),s=(0,Wr.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Ss(e,t);return l.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?Es(e,t):new Promise((o=>{ws(e,n),s.queue.push((()=>{o(Es(e,t))})),i()}))}})),[]),a=(0,Wr.useRef)([...s.ctrls]),c=[],u=si(e)||0;function d(e,n){for(let r=e;r<n;r++){const e=a.current[r]||(a.current[r]=new ys(null,s.flush)),n=o?o(r,e):t[r];n&&(c[r]=fs(n))}}(0,Wr.useMemo)((()=>{Yr(a.current.slice(e,u),(e=>{zi(e,r),e.stop(!0)})),a.current.length=e,d(u,e)}),[e]),(0,Wr.useMemo)((()=>{d(0,Math.min(u,e))}),n);const p=a.current.map(((e,t)=>Ss(e,c[t]))),m=(0,Wr.useContext)(Ns),f=si(m),g=m!==f&&Oi(m);ai((()=>{l.current++,s.ctrls=a.current;const{queue:e}=s;e.length&&(s.queue=[],Yr(e,(e=>e()))),Yr(a.current,((e,t)=>{null==r||r.add(e),g&&e.start({default:m});const n=c[t];n&&(Vi(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),oi((()=>()=>{Yr(s.ctrls,(e=>e.stop(!0)))}));const h=p.map((e=>Bi({},e)));return r?[h,r]:h}let Ds;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ds||(Ds={}));class Os extends os{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Rl(...t);const n=this._get(),o=_i(n);di(this,o.create(n))}advance(e){const t=this._get();qr(t,this.get())||(ui(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zs(this._active)&&Vs(this)}_get(){const e=Kr.arr(this.source)?this.source.map(Fl):Zr(Fl(this.source));return this.calc(...e)}_start(){this.idle&&!zs(this._active)&&(this.idle=!1,Yr(pi(this),(e=>{e.done=!1})),ll.skipAnimation?(xr.batchedUpdates((()=>this.advance())),Vs(this)):ul.start(this))}_attach(){let e=1;Yr(Zr(this.source),(t=>{Ol(t)&&Ul(t,this),ts(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Yr(Zr(this.source),(e=>{Ol(e)&&Wl(e,this)})),this._active.clear(),Vs(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Zr(this.source).reduce(((e,t)=>Math.max(e,(ts(t)?t.priority:0)+1)),0))}}function Fs(e){return!1!==e.idle}function zs(e){return!e.size||Array.from(e).every(Fs)}function Vs(e){e.idle||(e.idle=!0,Yr(pi(e),(e=>{e.done=!0})),Vl(e,{type:"idle",parent:e}))}ll.assign({createStringInterpolator:Zl,to:(e,t)=>new Os(e,t)}),ul.advance;var Hs=window.ReactDOM;function Gs(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const Us=["style","children","scrollTop","scrollLeft"],Ws=/^--/;function $s(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ws.test(e)||Ks.hasOwnProperty(e)&&Ks[e]?(""+t).trim():t+"px"}const js={};let Ks={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const qs=["Webkit","Ms","Moz","O"];Ks=Object.keys(Ks).reduce(((e,t)=>(qs.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Ks);const Ys=["x","y","z"],Xs=/^(matrix|translate|scale|rotate|skew)/,Zs=/^(translate)/,Qs=/^(rotate|skew)/,Js=(e,t)=>Kr.num(e)&&0!==e?e+t:e,ea=(e,t)=>Kr.arr(e)?e.every((e=>ea(e,t))):Kr.num(e)?e===t:parseFloat(e)===t;class ta extends vi{constructor(e){let{x:t,y:n,z:o}=e,r=Gs(e,Ys);const l=[],i=[];(t||n||o)&&(l.push([t||0,n||0,o||0]),i.push((e=>[`translate3d(${e.map((e=>Js(e,"px"))).join(",")})`,ea(e,0)]))),Xr(r,((e,t)=>{if("transform"===t)l.push([e||""]),i.push((e=>[e,""===e]));else if(Xs.test(t)){if(delete r[t],Kr.und(e))return;const n=Zs.test(t)?"px":Qs.test(t)?"deg":"";l.push(Zr(e)),i.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Js(r,n)})`,ea(r,0)]:e=>[`${t}(${e.map((e=>Js(e,n))).join(",")})`,ea(e,t.startsWith("scale")?1:0)])}})),l.length&&(r.transform=new na(l,i)),super(r)}}class na extends Hl{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Yr(this.inputs,((n,o)=>{const r=Fl(n[0]),[l,i]=this.transforms[o](Kr.arr(r)?r:n.map(Fl));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Yr(this.inputs,(e=>Yr(e,(e=>Ol(e)&&Ul(e,this)))))}observerRemoved(e){0==e&&Yr(this.inputs,(e=>Yr(e,(e=>Ol(e)&&Wl(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Vl(this,e)}}const oa=["scrollTop","scrollLeft"];ll.assign({batchedUpdates:Hs.unstable_batchedUpdates,createStringInterpolator:Zl,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ra=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new vi(e)),getComponentProps:o=(e=>e)}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{const t=wi(e)||"Anonymous";return(e=Kr.str(e)?l[e]||(l[e]=Ei(e,r)):e[Si]||(e[Si]=Ei(e,r))).displayName=`Animated(${t})`,e};return Xr(e,((t,n)=>{Kr.arr(e)&&(n=wi(t)),l[n]=l(t)})),{animated:l}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:l,scrollTop:i,scrollLeft:s}=o,a=Gs(o,Us),c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:js[t]||(js[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==l&&(e.textContent=l);for(let t in r)if(r.hasOwnProperty(t)){const n=$s(t,r[t]);Ws.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new ta(e),getComponentProps:e=>Gs(e,oa)}).animated,la=e=>e+1,ia=e=>({top:e.offsetTop,left:e.offsetLeft});var sa=function(e){let{isSelected:t,adjustScrolling:n,enableAnimation:o,triggerAnimationOnChange:r}=e;const l=(0,s.useRef)(),i=(0,d.useReducedMotion)()||!o,[a,c]=(0,s.useReducer)(la,0),[u,p]=(0,s.useReducer)(la,0),[m,f]=(0,s.useState)({x:0,y:0}),g=(0,s.useMemo)((()=>l.current?ia(l.current):null),[r]),h=(0,s.useMemo)((()=>{if(!n||!l.current)return()=>{};const e=(0,ir.getScrollContainer)(l.current);if(!e)return()=>{};const t=l.current.getBoundingClientRect();return()=>{const n=l.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[r,n]);function v(e){let{value:n}=e,{x:o,y:r}=n;o=Math.round(o),r=Math.round(r),o===v.x&&r===v.y||(function(e){let{x:n,y:o}=e;if(!l.current)return;const r=0===n&&0===o;l.current.style.transformOrigin=r?"":"center",l.current.style.transform=r?"":`translate3d(${n}px,${o}px,0)`,l.current.style.zIndex=!t||r?"":"1",h()}({x:o,y:r}),v.x=o,v.y=r)}return(0,s.useLayoutEffect)((()=>{a&&p()}),[a]),(0,s.useLayoutEffect)((()=>{if(!g)return;if(i)return void h();l.current.style.transform="";const e=ia(l.current);c(),f({x:Math.round(g.left-e.left),y:Math.round(g.top-e.top)})}),[r]),v.x=0,v.y=0,function(e,t){const n=Kr.fun(e),[[o],r]=As(1,n?e:[e],n?t||[]:t)}({from:{x:m.x,y:m.y},to:{x:0,y:0},reset:a!==u,config:{mass:5,tension:2e3,friction:200},immediate:i,onChange:v}),l};const aa=".block-editor-block-list__block",ca=".block-list-appender";function ua(e,t){return t.closest([aa,ca].join(","))===e}function da(e){const t=(0,s.useRef)(),n=function(e){return(0,m.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:l}=t(zn);if(l(e)&&!o()&&!r())return n()}),[e])}(e);return(0,s.useEffect)((()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const o=ir.focus.tabbable.find(t.current).filter((e=>(0,ir.isTextField)(e))),r=-1===n,l=(r?u.last:u.first)(o)||t.current;ua(t.current,l)?(0,ir.placeCaretAtHorizontalEdge)(l,r):t.current.focus()}),[n]),t}function pa(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function ma(){const e=(0,m.useSelect)((e=>{const{isNavigationMode:t,getSettings:n}=e(zn);return t()||n().outlineMode}),[]);return(0,d.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",pa),t.addEventListener("mouseover",pa),()=>{t.removeEventListener("mouseout",pa),t.removeEventListener("mouseover",pa),t.classList.remove("is-hovered")}}),[e])}function fa(e){return(0,m.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:l,isBlockMultiSelected:i,getBlockName:s,getSettings:a,hasSelectedInnerBlock:u,isTyping:d,__experimentalGetActiveBlockIdByBlockNames:p}=t(zn),{__experimentalSpotlightEntityBlocks:m,outlineMode:f}=a(),g=n(e),h=l(e),v=s(e),b=u(e,!0),k=p(m);return c()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":i(e),"is-reusable":(0,r.isReusableBlock)((0,r.getBlockType)(v)),"is-dragging":g,"has-child-selected":b,"has-active-entity":k,"is-active-entity":k===e,"remove-outline":h&&f&&d()})}),[e])}function ga(e){return(0,m.useSelect)((t=>{const n=t(zn).getBlockName(e),o=(0,r.getBlockType)(n);if((null==o?void 0:o.apiVersion)>1)return(0,r.getBlockDefaultClassName)(n)}),[e])}function ha(e){return(0,m.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(zn),l=o(e);if(null==l||!l.className)return;const i=(0,r.getBlockType)(n(e));return(null==i?void 0:i.apiVersion)>1?l.className:void 0}),[e])}function va(e){return(0,m.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:l,isBlockSelected:i}=t(zn);if(!i(e))return;const s=n();return s?c()("is-block-moving-mode",{"can-insert-moving-block":o(r(s),l(e))}):void 0}),[e])}function ba(e){const{isBlockSelected:t}=(0,m.useSelect)(zn),{selectBlock:n,selectionChange:o}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((r=>{function l(l){t(e)?l.target.isContentEditable||o(e):ua(r,l.target)&&n(e)}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}var ka=window.wp.keycodes;function _a(e){const t=(0,m.useSelect)((t=>t(zn).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:o}=(0,m.useSelect)(zn),{insertDefaultBlock:r,removeBlock:l}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((i=>{if(t)return i.addEventListener("keydown",s),i.addEventListener("dragstart",a),()=>{i.removeEventListener("keydown",s),i.removeEventListener("dragstart",a)};function s(t){const{keyCode:s,target:a}=t;s!==ka.ENTER&&s!==ka.BACKSPACE&&s!==ka.DELETE||a!==i||(0,ir.isTextField)(a)||(t.preventDefault(),s===ka.ENTER?r({},n(e),o(e)+1):l(e))}function a(e){e.preventDefault()}}),[e,t,n,o,r,l])}function ya(e){const{isNavigationMode:t,isBlockSelected:n}=(0,m.useSelect)(zn),{setNavigationMode:o,selectBlock:r}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.addEventListener("mousedown",i)}}),[e,t,n,o])}var Ea=n(4979),Ca=n.n(Ea);function Sa(e){const t=(0,s.useRef)(),n=(0,m.useSelect)((t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(zn);return n(e)||o()===e}),[e]);return(0,s.useEffect)((()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=(0,ir.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&Ca()(e,o,{onlyScrollIfNeeded:!0})}),[n]),t}const wa=(0,s.createContext)({refs:new Map,callbacks:new Map});function Ba(e){let{children:t}=e;const n=(0,s.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,s.createElement)(wa.Provider,{value:n},t)}function xa(e){const{refs:t,callbacks:n}=(0,s.useContext)(wa),o=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,d.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function Ia(e){const{refs:t}=(0,s.useContext)(wa),n=(0,s.useRef)();return n.current=e,(0,s.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function Ta(e){const{callbacks:t}=(0,s.useContext)(wa),n=Ia(e),[o,r]=(0,s.useState)(null);return(0,s.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}function Na(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach((e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}function Pa(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:o,selectBlock:r}=(0,m.useDispatch)(zn),{isSelectionEnabled:l,isBlockSelected:i,getBlockParents:s,getBlockSelectionStart:a,hasMultiSelection:c}=(0,m.useSelect)(zn);return(0,d.useRefEffect)((u=>{const{ownerDocument:d}=u,{defaultView:p}=d;let m,f;function g(t){let{isSelectionEnd:n}=t;const l=p.getSelection();if(!l.rangeCount||l.isCollapsed)return void Na(u,!0);const i=function(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(aa);return t?t.id.slice("block-".length):void 0}(l.focusNode);if(e===i){if(r(e),n&&(Na(u,!0),l.rangeCount)){const{commonAncestorContainer:e}=l.getRangeAt(0);m.contains(e)&&m.focus()}}else{const t=[...s(e),e],n=[...s(i),i],r=Math.min(t.length,n.length)-1;o(t[r],n[r])}}function h(){d.removeEventListener("selectionchange",g),p.removeEventListener("mouseup",h),f=p.requestAnimationFrame((()=>{g({isSelectionEnd:!0}),n()}))}function v(n){let{buttons:o}=n;1===o&&l()&&i(e)&&(m=d.activeElement,t(),d.addEventListener("selectionchange",g),p.addEventListener("mouseup",h),Na(u,!1))}function b(t){if(l()&&0===t.button)if(t.shiftKey){const n=a(),r=s(n);if(n&&n!==e&&(null==r||!r.includes(e))){const l=[...r,n],i=[...s(e),e],a=Math.min(l.length,i.length)-1,c=l[a],d=i[a];c!==d&&(Na(u,!1),o(c,d),t.preventDefault())}}else c()&&r(e)}return u.addEventListener("mousedown",b),u.addEventListener("mouseleave",v),()=>{u.removeEventListener("mousedown",b),u.removeEventListener("mouseleave",v),d.removeEventListener("selectionchange",g),p.removeEventListener("mouseup",h),p.cancelAnimationFrame(f)}}),[e,t,n,o,r,l,i,s])}function Ma(){const e=(0,s.useContext)(gm);return(0,d.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Ra(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:n,className:o,wrapperProps:l={},isAligned:i}=(0,s.useContext)(La),{index:a,mode:u,name:p,blockApiVersion:f,blockTitle:h,isPartOfSelection:v,adjustScrolling:b,enableAnimation:k}=(0,m.useSelect)((e=>{const{getBlockIndex:t,getBlockMode:o,getBlockName:l,isTyping:i,getGlobalBlockCount:s,isBlockSelected:a,isBlockMultiSelected:c,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d}=e(zn),p=a(n),m=c(n)||u(n),f=l(n),g=(0,r.getBlockType)(f);return{index:t(n),mode:o(n),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||d(n),enableAnimation:!i()&&s()<=200}}),[n]),_=(0,g.sprintf)((0,g.__)("Block: %s"),h),y="html"!==u||t?"":"-visual",E=(0,d.useMergeRefs)([e.ref,da(n),Sa(n),xa(n),ba(n),Pa(n),_a(n),ya(n),ma(),Ma(),sa({isSelected:v,adjustScrolling:b,enableAnimation:k,triggerAnimationOnChange:a})]),C=Un();return f<2&&n===C.clientId&&"undefined"!=typeof process&&process.env,{...l,...e,ref:E,id:`block-${n}${y}`,tabIndex:0,role:"document","aria-label":_,"data-block":n,"data-type":p,"data-title":h,className:c()(c()("block-editor-block-list__block",{"wp-block":!i}),o,e.className,l.className,fa(n),ga(n),ha(n),va(n)),style:{...l.style,...e.style}}}Ra.save=r.__unstableGetBlockProps;const La=(0,s.createContext)();function Aa(e){let{children:t,isHtml:n,...o}=e;return(0,s.createElement)("div",Ra(o,{__unstableIsHtml:n}),t)}const Da=(0,m.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{isBlockSelected:r,getBlockMode:l,isSelectionEnabled:i,getTemplateLock:s,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:c,canMoveBlock:u}=e(zn),d=a(n),p=r(n),m=s(o),f=c(n,o),g=u(n,o),{name:h,attributes:v,isValid:b}=d||{};return{mode:l(n),isSelectionEnabled:i(),isLocked:!!m,canRemove:f,canMove:g,block:d,name:h,attributes:v,isValid:b,isSelected:p}})),Oa=(0,m.withDispatch)(((e,t,n)=>{let{select:o}=n;const{updateBlockAttributes:l,insertBlocks:i,mergeBlocks:s,replaceBlocks:a,toggleSelection:c,__unstableMarkLastChangeAsPersistent:u}=e(zn);return{setAttributes(e){const{getMultiSelectedBlockClientIds:n}=o(zn),r=n(),{clientId:i}=t,s=r.length?r:[i];l(s,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;i(e,n,o)},onInsertBlocksAfter(e){const{clientId:n,rootClientId:r}=t,{getBlockIndex:l}=o(zn),s=l(n);i(e,s+1,r)},onMerge(e){const{clientId:n}=t,{getPreviousBlockClientId:r,getNextBlockClientId:l}=o(zn);if(e){const e=l(n);e&&s(n,e)}else{const e=r(n);e&&s(e,n)}},onReplace(e,n,o){e.length&&!(0,r.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),a([t.clientId],e,n,o)},toggleSelection(e){c(e)}}}));var Fa=(0,d.compose)(d.pure,Da,Oa,(0,d.ifCondition)((e=>{let{block:t}=e;return!!t})),(0,p.withFilters)("editor.BlockListBlock"))((function(e){let{mode:t,isLocked:n,canRemove:o,clientId:l,isSelected:i,isSelectionEnabled:a,className:d,name:p,isValid:f,attributes:g,wrapperProps:h,setAttributes:v,onReplace:b,onInsertBlocksAfter:k,onMerge:_,toggleSelection:y}=e;const{removeBlock:E}=(0,m.useDispatch)(zn),C=(0,s.useCallback)((()=>E(l)),[l]);let S=(0,s.createElement)(pr,{name:p,isSelected:i,attributes:g,setAttributes:v,insertBlocksAfter:n?void 0:k,onReplace:o?b:void 0,onRemove:o?C:void 0,mergeBlocks:o?_:void 0,clientId:l,isSelectionEnabled:a,toggleSelection:y});const w=(0,r.getBlockType)(p);null!=w&&w.getEditWrapperProps&&(h=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}(h,w.getEditWrapperProps(g)));const B=h&&!!h["data-align"];let x;if(B&&(S=(0,s.createElement)("div",{className:"wp-block","data-align":h["data-align"]},S)),f)x="html"===t?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{display:"none"}},S),(0,s.createElement)(Aa,{isHtml:!0},(0,s.createElement)(wr,{clientId:l}))):(null==w?void 0:w.apiVersion)>1?S:(0,s.createElement)(Aa,h,S);else{const e=(0,r.getSaveContent)(w,g);x=(0,s.createElement)(Aa,{className:"has-warning"},(0,s.createElement)(kr,{clientId:l}),(0,s.createElement)(s.RawHTML,null,(0,ir.safeHTML)(e)))}const I={clientId:l,className:d,wrapperProps:(0,u.omit)(h,["data-align"]),isAligned:B},T=(0,s.useMemo)((()=>I),Object.values(I));return(0,s.createElement)(La.Provider,{value:T},(0,s.createElement)(Cr,{fallback:(0,s.createElement)(Aa,{className:"has-warning"},(0,s.createElement)(yr,null))},x))})),za=window.wp.htmlEntities,Va=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Ha=[(0,s.createInterpolateElement)((0,g.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,s.createElement)("kbd",null)}),(0,s.createInterpolateElement)((0,g.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,s.createInterpolateElement)((0,g.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,g.__)("Drag files into the editor to automatically insert media blocks."),(0,g.__)("Change a block's type by pressing the block icon on the toolbar.")];var Ga=function(){const[e]=(0,s.useState)(Math.floor(Math.random()*Ha.length));return(0,s.createElement)(p.Tip,null,Ha[e])},Ua=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),Wa=(0,s.memo)((function(e){var t;let{icon:n,showColors:o=!1,className:r}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Ua});const l=(0,s.createElement)(p.Icon,{icon:n&&n.src?n.src:n}),i=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return(0,s.createElement)("span",{style:i,className:c()("block-editor-block-icon",r,{"has-colors":o})},l)})),$a=function(e){let{title:t,icon:n,description:o,blockType:r}=e;return r&&(Rt()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:t,icon:n,description:o}=r)),(0,s.createElement)("div",{className:"block-editor-block-card"},(0,s.createElement)(Wa,{icon:n,showColors:!0}),(0,s.createElement)("div",{className:"block-editor-block-card__content"},(0,s.createElement)("h2",{className:"block-editor-block-card__title"},t),(0,s.createElement)("span",{className:"block-editor-block-card__description"},o)))};function ja(e){let{clientId:t=null,value:n,selection:o,onChange:l=u.noop,onInput:i=u.noop}=e;const a=(0,m.useRegistry)(),{resetBlocks:c,resetSelection:d,replaceInnerBlocks:p,setHasControlledInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:g}=a.dispatch(zn),{getBlockName:h,getBlocks:v}=a.select(zn),b=(0,m.useSelect)((e=>!t||e(zn).areInnerBlocksControlled(t)),[t]),k=(0,s.useRef)({incoming:null,outgoing:[]}),_=(0,s.useRef)(!1),y=()=>{n&&(g(),t?a.batch((()=>{f(t,!0);const e=n.map((e=>(0,r.cloneBlock)(e)));_.current&&(k.current.incoming=e),g(),p(t,e)})):(_.current&&(k.current.incoming=n),c(n)))},E=(0,s.useRef)(i),C=(0,s.useRef)(l);(0,s.useEffect)((()=>{E.current=i,C.current=l}),[i,l]),(0,s.useEffect)((()=>{k.current.outgoing.includes(n)?(0,u.last)(k.current.outgoing)===n&&(k.current.outgoing=[]):v(t)!==n&&(k.current.outgoing=[],y(),o&&d(o.selectionStart,o.selectionEnd,o.initialPosition))}),[n,t]),(0,s.useEffect)((()=>{b||(k.current.outgoing=[],y())}),[b]),(0,s.useEffect)((()=>{const{getSelectionStart:e,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:l,areInnerBlocksControlled:i}=a.select(zn);let s=v(t),c=r(),u=!1;_.current=!0;const d=a.subscribe((()=>{if(null!==t&&null===h(t))return;if(t&&!i(t))return;const a=r(),d=v(t),p=d!==s;if(s=d,p&&(k.current.incoming||l()))return k.current.incoming=null,void(c=a);(p||u&&!p&&a&&!c)&&(c=a,k.current.outgoing.push(s),(c?C.current:E.current)(s,{selection:{selectionStart:e(),selectionEnd:n(),initialPosition:o()}})),u=p}));return()=>d()}),[a,t])}var Ka=(0,d.createHigherOrderComponent)((e=>(0,m.withRegistry)((t=>{let{useSubRegistry:n=!0,registry:o,...r}=t;if(!n)return(0,s.createElement)(e,i({registry:o},r));const[l,a]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=(0,m.createRegistry)({},o);e.registerStore(On,Fn),a(e)}),[o]),l?(0,s.createElement)(m.RegistryProvider,{value:l},(0,s.createElement)(e,i({registry:l},r))):null}))),"withRegistryProvider")((function(e){const{children:t,settings:n}=e,{updateSettings:o}=(0,m.useDispatch)(zn);return(0,s.useEffect)((()=>{o(n)}),[n]),ja(e),(0,s.createElement)(Ba,null,t)}));function qa(e){let{onClick:t}=e;return(0,s.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},(0,s.createElement)(p.Disabled,null,(0,s.createElement)(vm,null)))}function Ya(){const{hasSelectedBlock:e,hasMultiSelection:t}=(0,m.useSelect)(zn),{clearSelectedBlock:n}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}}),[e,t,n])}function Xa(e){return(0,s.createElement)("div",i({ref:Ya()},e))}function Za(e,t){const n="start"===t?"firstChild":"lastChild",o="start"===t?"nextSibling":"previousSibling";for(;e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[o];)e=e[o];return e}function Qa(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r}=e(zn);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r()}}function Ja(){const{isMultiSelecting:e,multiSelectedBlockClientIds:t,hasMultiSelection:n,selectedBlockClientId:o}=(0,m.useSelect)(Qa,[]),r=Ia(o),l=Ia((0,u.first)(t)),i=Ia((0,u.last)(t));return(0,d.useRefEffect)((s=>{const{ownerDocument:a}=s,{defaultView:c}=a;if(!n||e){if(!o||e)return;const t=c.getSelection();if(t.rangeCount&&!t.isCollapsed){const e=r.current,{startContainer:n,endContainer:o}=t.getRangeAt(0);!e||e.contains(n)&&e.contains(o)||t.removeAllRanges()}return}const{length:u}=t;if(u<2)return;if(!l.current||!i.current)return;s.focus();const d=c.getSelection(),p=a.createRange(),m=Za(l.current,"start"),f=Za(i.current,"end");var g;g=s,Array.from(g.querySelectorAll(".rich-text:not( .editor-post-title__input )")).forEach((e=>{e.removeAttribute("contenteditable")})),p.setStartBefore(m),p.setEndAfter(f),d.removeAllRanges(),d.addRange(p)}),[n,e,t,o])}function ec(e){const{tagName:t}=e;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function tc(e,t,n,o){let r,l=ir.focus.focusable.find(n);return t&&(l=(0,u.reverse)(l)),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),(0,u.find)(l,(function(e){if(!ir.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}))}function nc(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksStartClientId:t,getMultiSelectedBlocksEndClientId:n,getPreviousBlockClientId:o,getNextBlockClientId:r,getFirstMultiSelectedBlockClientId:l,getLastMultiSelectedBlockClientId:i,getSettings:s,hasMultiSelection:a}=(0,m.useSelect)(zn),{multiSelect:c,selectBlock:u}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((d=>{let p;function m(){p=null}function f(l){const i=e(),s=t(),a=n(),d=o(a||i),p=r(a||i),m=l?d:p;m&&(s===m?u(m):c(s||i,m))}function g(e){const t=l(),n=i(),o=e?t:n;o&&u(o)}function h(t){const{keyCode:l,target:i}=t,c=l===ka.UP,u=l===ka.DOWN,m=l===ka.LEFT,h=l===ka.RIGHT,v=c||m,b=m||h,k=c||u,_=b||k,y=t.shiftKey,E=y||t.ctrlKey||t.altKey||t.metaKey,C=k?ir.isVerticalEdge:ir.isHorizontalEdge,{ownerDocument:S}=d,{defaultView:w}=S;if(a())return void(_&&((y?f:g)(v),t.preventDefault()));if(k?p||(p=(0,ir.computeCaretRect)(w)):p=null,t.defaultPrevented)return;if(!_)return;if(!function(e,t,n){if((t===ka.UP||t===ka.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"!==o&&"TEXTAREA"!==o}(i,l,E))return;const B=(0,ir.isRTL)(i)?!v:v,{keepCaretInsideBlock:x}=s(),I=e();if(y){const e=n(),l=o(e||I),s=r(e||I);(v&&l||!v&&s)&&function(e,t){const n=tc(e,t,d);return!n||!function(e,t){return e.closest(aa)===t.closest(aa)}(e,n)}(i,v)&&C(i,v)&&(f(v),t.preventDefault())}else if(k&&(0,ir.isVerticalEdge)(i,v)&&!x){const e=tc(i,v,d,!0);e&&((0,ir.placeCaretAtVerticalEdge)(e,v,p),t.preventDefault())}else if(b&&w.getSelection().isCollapsed&&(0,ir.isHorizontalEdge)(i,B)&&!x){const e=tc(i,B,d);(0,ir.placeCaretAtHorizontalEdge)(e,v),t.preventDefault()}}return d.addEventListener("mousedown",m),d.addEventListener("keydown",h),()=>{d.removeEventListener("mousedown",m),d.removeEventListener("keydown",h)}}),[])}var oc=window.wp.keyboardShortcuts;function rc(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,m.useSelect)(zn),{multiSelect:o}=(0,m.useDispatch)(zn),r=(0,oc.__unstableUseShortcutEventMatch)();return(0,d.useRefEffect)((l=>{function i(l){if(!r("core/block-editor/select-all",l))return;if(!(0,ir.isEntirelySelected)(l.target))return;const i=t(),[s]=i,a=n(s);let c=e(a);i.length===c.length&&(c=e(n(a)));const d=(0,u.first)(c),p=(0,u.last)(c);d!==p&&(o(d,p),l.preventDefault())}return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}}),[])}function lc(){const[e,t,n]=function(){const e=(0,s.useRef)(),t=(0,s.useRef)(),n=(0,s.useRef)(),o=(0,s.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:l,getBlockCount:i}=(0,m.useSelect)(zn),{setNavigationMode:a}=(0,m.useDispatch)(zn),c=(0,m.useSelect)((e=>e(zn).isNavigationMode()),[])?void 0:"0",u=(0,s.useRef)();function p(t){if(u.current)u.current=null;else if(r())e.current.focus();else if(l())o.current.focus();else{a(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";ir.focus.tabbable[n](t.target).focus()}}const f=(0,s.createElement)("div",{ref:t,tabIndex:c,onFocus:p}),g=(0,s.createElement)("div",{ref:n,tabIndex:c,onFocus:p}),h=(0,d.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===ka.ESCAPE&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==ka.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!l())return void(e.target===s&&a(!0));if(ec(e.target)&&ec(ir.focus.tabbable[i](e.target)))return;const c=o?t:n;u.current=!0,c.current.focus({preventScroll:!0})}function d(e){o.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==i()||s.focus()}function p(o){var r;if(o.keyCode!==ka.TAB)return;if("region"===(null===(r=o.target)||void 0===r?void 0:r.getAttribute("role")))return;if(e.current===o.target)return;const l=o.shiftKey?"findPrevious":"findNext",i=ir.focus.tabbable[l](o.target);i!==t.current&&i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:m}=s,{defaultView:f}=m;return f.addEventListener("keydown",p),s.addEventListener("keydown",c),s.addEventListener("focusout",d),()=>{f.removeEventListener("keydown",p),s.removeEventListener("keydown",c),s.removeEventListener("focusout",d)}}),[]);return[f,(0,d.useMergeRefs)([e,h]),g]}(),o=(0,m.useSelect)((e=>e(zn).hasMultiSelection()),[]);return[e,(0,d.useMergeRefs)([t,Ja(),rc(),nc(),(0,d.useRefEffect)((e=>{if(e.tabIndex=-1,o)return e.setAttribute("aria-label",(0,g.__)("Multiple selected blocks")),()=>{e.removeAttribute("aria-label")}}),[o])]),n]}var ic=(0,s.forwardRef)((function(e,t){let{children:n,...o}=e;const[r,l,a]=lc();return(0,s.createElement)(s.Fragment,null,r,(0,s.createElement)("div",i({},o,{ref:(0,d.useMergeRefs)([l,t]),className:c()(o.className,"block-editor-writing-flow")}),n),a)}));const sc="editor-styles-wrapper";function ac(e){return(0,s.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}var cc=(0,s.forwardRef)((function(e,t){let{contentRef:n,children:o,head:r,tabIndex:l=0,assets:a,...u}=e;const[,m]=(0,s.useReducer)((()=>({}))),[f,h]=(0,s.useState)(),[v,b]=(0,s.useState)([]),k=ac(null==a?void 0:a.styles),_=ac(null==a?void 0:a.scripts),y=Ya(),[E,C,S]=lc(),w=(0,d.useRefEffect)((e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:o,documentElement:r}=t;return("interactive"===o||"complete"===o)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const i=new r(e.type,l);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(t),h(t),y(r),b(Array.from(n.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),t.dir=n.dir,r.removeChild(t.head),r.removeChild(t.body),!0)}t()||e.addEventListener("load",(()=>{t()}))}),[]),B=(0,d.useRefEffect)((e=>{_.reduce(((t,n)=>t.then((()=>async function(e,t){let{id:n,src:o}=t;return new Promise(((t,r)=>{const l=e.ownerDocument.createElement("script");l.id=n,o?(l.src=o,l.onload=()=>t(),l.onerror=()=>r()):t(),e.appendChild(l)}))}(e,n)))),Promise.resolve()).finally((()=>{m()}))}),[]),x=(0,d.useMergeRefs)([n,y,C]);return(0,s.useEffect)((()=>{var e;f&&(e=f,Array.from(document.styleSheets).forEach((t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;if(o&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(o).find((e=>{let{selectorText:t}=e;return t&&(t.includes(`.${sc}`)||t.includes(".wp-block"))}))&&!e.getElementById(n.id)){e.head.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.head.appendChild(o.cloneNode(!0))}})))}),[f]),r=(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",null,"body{margin:0}"),k.map((e=>{let{tagName:t,href:n,id:o,rel:r,media:l,textContent:i}=e;const a=t.toLowerCase();return"style"===a?(0,s.createElement)(a,{id:o,key:o},i):(0,s.createElement)(a,{href:n,id:o,rel:r,media:l,key:o})})),r),(0,s.createElement)(s.Fragment,null,l>=0&&E,(0,s.createElement)("iframe",i({},u,{ref:(0,d.useMergeRefs)([t,w]),tabIndex:l,title:(0,g.__)("Editor canvas")}),f&&(0,s.createPortal)((0,s.createElement)(s.Fragment,null,(0,s.createElement)("head",{ref:B},r),(0,s.createElement)("body",{ref:x,className:c()(sc,...v)},(0,s.createElement)(p.__experimentalStyleProvider,{document:f},o))),f.documentElement)),l>=0&&S)})),uc={grad:.9,turn:360,rad:360/(2*Math.PI)},dc=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},pc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},mc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},fc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},gc=function(e){return{r:mc(e.r,0,255),g:mc(e.g,0,255),b:mc(e.b,0,255),a:mc(e.a)}},hc=function(e){return{r:pc(e.r),g:pc(e.g),b:pc(e.b),a:pc(e.a,3)}},vc=/^#([0-9a-f]{3,8})$/i,bc=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},kc=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),i=l-Math.min(t,n,o),s=i?l===t?(n-o)/i:l===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:l?i/l*100:0,v:l/255*100,a:r}},_c=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),i=o*(1-n),s=o*(1-(t-l)*n),a=o*(1-(1-t+l)*n),c=l%6;return{r:255*[o,s,i,i,a,o][c],g:255*[a,o,o,s,i,i][c],b:255*[i,i,a,o,o,s][c],a:r}},yc=function(e){return{h:fc(e.h),s:mc(e.s,0,100),l:mc(e.l,0,100),a:mc(e.a)}},Ec=function(e){return{h:pc(e.h),s:pc(e.s),l:pc(e.l),a:pc(e.a,3)}},Cc=function(e){return _c((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},Sc=function(e){return{h:(t=kc(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},wc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ic=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tc={string:[[function(e){var t=vc.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?pc(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?pc(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=xc.exec(e)||Ic.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:gc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=wc.exec(e)||Bc.exec(e);if(!t)return null;var n,o,r=yc({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(uc[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Cc(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=void 0===r?1:r;return dc(t)&&dc(n)&&dc(o)?gc({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,l=void 0===r?1:r;if(!dc(t)||!dc(n)||!dc(o))return null;var i=yc({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return Cc(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,l=void 0===r?1:r;if(!dc(t)||!dc(n)||!dc(o))return null;var i=function(e){return{h:fc(e.h),s:mc(e.s,0,100),v:mc(e.v,0,100),a:mc(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(l)});return _c(i)},"hsv"]]},Nc=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Pc=function(e,t){var n=Sc(e);return{h:n.h,s:mc(n.s+100*t,0,100),l:n.l,a:n.a}},Mc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Rc=function(e,t){var n=Sc(e);return{h:n.h,s:n.s,l:mc(n.l+100*t,0,100),a:n.a}},Lc=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Nc(e.trim(),Tc.string):"object"==typeof e&&null!==e?Nc(e,Tc.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return pc(Mc(this.rgba),2)},e.prototype.isDark=function(){return Mc(this.rgba)<.5},e.prototype.isLight=function(){return Mc(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=hc(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?bc(pc(255*r)):"","#"+bc(t)+bc(n)+bc(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return hc(this.rgba)},e.prototype.toRgbString=function(){return t=(e=hc(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return Ec(Sc(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ec(Sc(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=kc(this.rgba),{h:pc(e.h),s:pc(e.s),v:pc(e.v),a:pc(e.a,3)};var e},e.prototype.invert=function(){return Ac({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ac(Pc(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ac(Pc(this.rgba,-e))},e.prototype.grayscale=function(){return Ac(Pc(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ac(Rc(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ac(Rc(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ac({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):pc(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Sc(this.rgba);return"number"==typeof e?Ac({h:e,s:t.s,l:t.l,a:t.a}):pc(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ac(e).toHex()},e}(),Ac=function(e){return e instanceof Lc?e:new Lc(e)},Dc=[],Oc=function(e){e.forEach((function(e){Dc.indexOf(e)<0&&(e(Lc,Tc),Dc.push(e))}))};function Fc(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var l={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=o[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u="black";if(!l.length)for(var d in n)l[d]=new e(n[d]).toRgb();for(var p in n){var m=(r=a,i=l[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var zc=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Vc=function(e){return.2126*zc(e.r)+.7152*zc(e.g)+.0722*zc(e.b)};function Hc(e){e.prototype.luminance=function(){return e=Vc(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,r,l,i,s,a,c=t instanceof e?t:new e(t);return l=this.rgba,i=c.toRgb(),n=(s=Vc(l))>(a=Vc(i))?(s+.05)/(a+.05):(a+.05)/(s+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(l=(n=t).size)?"normal":l,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,l,i}}var Gc=n(3692),Uc=n.n(Gc);const Wc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function $c(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function l(){const e={line:n,column:o};return function(t){return t.position=new i(e),m(),t}}function i(e){this.start=e,this.end={line:n,column:o},this.source=t.source}i.prototype.content=e;const s=[];function a(r){const l=new Error(t.source+":"+n+":"+o+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=o,l.source=e,!t.silent)throw l;s.push(l)}function c(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){let t;const n=[];for(m(),f(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),f(n));return n}function p(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function m(){p(/^\s*/)}function f(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=l();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return a("End of comment missing");const i=e.slice(2,n-2);return o+=2,r(i),e=e.slice(n),o+=2,t({type:"comment",comment:i})}function h(){const e=p(/^([^{]+)/);if(e)return jc(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){const e=l();let t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=jc(t[0]),!p(/^:\s*/))return a("property missing ':'");const n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(Wc,""),value:n?jc(n[0]).replace(Wc,""):""});return p(/^[;\s]*/),o}function b(){const e=[];if(!c())return a("missing '{'");let t;for(f(e);t=v();)!1!==t&&(e.push(t),f(e));return u()?e:a("missing '}'")}function k(){let e;const t=[],n=l();for(;e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:b()})}const _=C("import"),y=C("charset"),E=C("namespace");function C(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=l(),o=p(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=l();let t=p(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=p(/^([-\w]+)\s*/),!t)return a("@keyframes missing name");const o=t[1];if(!c())return a("@keyframes missing '{'");let r,i=f();for(;r=k();)i.push(r),i=i.concat(f());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):a("@keyframes missing '}'")}()||function(){const e=l(),t=p(/^@media *([^{]+)/);if(!t)return;const n=jc(t[1]);if(!c())return a("@media missing '{'");const o=f().concat(d());return u()?e({type:"media",media:n,rules:o}):a("@media missing '}'")}()||function(){const e=l(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:jc(t[1]),media:jc(t[2])})}()||function(){const e=l(),t=p(/^@supports *([^{]+)/);if(!t)return;const n=jc(t[1]);if(!c())return a("@supports missing '{'");const o=f().concat(d());return u()?e({type:"supports",supports:n,rules:o}):a("@supports missing '}'")}()||_()||y()||E()||function(){const e=l(),t=p(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=jc(t[1]),o=jc(t[2]);if(!c())return a("@document missing '{'");const r=f().concat(d());return u()?e({type:"document",document:o,vendor:n,rules:r}):a("@document missing '}'")}()||function(){const e=l();if(!p(/^@page */))return;const t=h()||[];if(!c())return a("@page missing '{'");let n,o=f();for(;n=v();)o.push(n),o=o.concat(f());return u()?e({type:"page",selectors:t,declarations:o}):a("@page missing '}'")}()||function(){const e=l();if(!p(/^@host\s*/))return;if(!c())return a("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):a("@host missing '}'")}()||function(){const e=l();if(!p(/^@font-face\s*/))return;if(!c())return a("@font-face missing '{'");let t,n=f();for(;t=v();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):a("@font-face missing '}'")}()}function w(){const e=l(),t=h();return t?(f(),e({type:"rule",selectors:t,declarations:b()})):a("selector missing")}return Kc(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:s}}}())}function jc(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Kc(e,t){const n=e&&"string"==typeof e.type,o=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){Kc(e,o)})):n&&"object"==typeof n&&Kc(n,o)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var qc=n(5717),Yc=n.n(qc),Xc=Zc;function Zc(e){this.options=e||{}}Zc.prototype.emit=function(e){return e},Zc.prototype.visit=function(e){return this[e.type](e)},Zc.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var Qc=Jc;function Jc(e){Xc.call(this,e)}Yc()(Jc,Xc),Jc.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Jc.prototype.comment=function(e){return this.emit("",e.position)},Jc.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Jc.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Jc.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Jc.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Jc.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Jc.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Jc.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Jc.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Jc.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Jc.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Jc.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Jc.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Jc.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Jc.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var eu=tu;function tu(e){e=e||{},Xc.call(this,e),this.indentation=e.indent}Yc()(tu,Xc),tu.prototype.compile=function(e){return this.stylesheet(e)},tu.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},tu.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},tu.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},tu.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},tu.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},tu.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},tu.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},tu.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},tu.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},tu.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},tu.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},tu.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},tu.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},tu.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},tu.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},tu.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},tu.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var nu=function(e,t){try{const r=$c(e);return n=Uc().map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)})),((o=o||{}).compress?new Qc(o):new eu(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function ou(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function ru(e,t){return new URL(e,t).toString()}var lu=e=>t=>{if("declaration"===t.type){const l=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};ou(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+ru(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=l,o.forEach((e=>{n=n.replace(e.source,e.newUrl)})),n)}}var n,o,r;return t};const iu=/^(body|html|:root).*$/;var su=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>"rule"===n.type?{...n,selectors:n.selectors.map((n=>t.includes(n.trim())?n:n.match(iu)?n.replace(/^(body|html|:root)/,e):e+" "+n))}:n},au=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(e,(e=>{let{css:n,baseURL:o}=e;const r=[];return t&&r.push(su(t)),o&&r.push(lu(o)),r.length?nu(n,(0,d.compose)(r)):n}))};const cu=".editor-styles-wrapper";function uu(e){return(0,s.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,r=t.querySelector(cu);let l;if(r)l=n.getComputedStyle(r,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),l=n.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const i=Ac(l);i.luminance()>.5||0===i.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e])}function du(e){let{styles:t}=e;const n=(0,s.useMemo)((()=>au(t,cu)),[t]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",{ref:uu(t)}),n.map(((e,t)=>(0,s.createElement)("style",{key:t},e))))}let pu;Oc([Fc,Hc]);const mu=2e3;var fu=function(e){let{viewportWidth:t,__experimentalPadding:n}=e;const[o,{width:r}]=(0,d.useResizeObserver)(),[l,{height:i}]=(0,d.useResizeObserver)(),{styles:a,assets:c}=(0,m.useSelect)((e=>{const t=e(zn).getSettings();return{styles:t.styles,assets:t.__unstableResolvedAssets}}),[]),u=(0,s.useMemo)((()=>a?[...a,{css:"body{height:auto;overflow:hidden;}",__unstableType:"presets"}]:a),[a]);pu=pu||(0,d.pure)(vm);const f=r/t;return(0,s.createElement)("div",{className:"block-editor-block-preview__container"},o,(0,s.createElement)(p.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${f})`,height:i*f,maxHeight:i>mu?mu*f:void 0}},(0,s.createElement)(cc,{head:(0,s.createElement)(du,{styles:u}),assets:c,contentRef:(0,d.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.padding=n+"px",e.style.position="relative"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:t,height:i,pointerEvents:"none",maxHeight:mu}},l,(0,s.createElement)(pu,{renderAppender:!1}))))},gu=(0,s.memo)((function(e){let{blocks:t,__experimentalPadding:n=0,viewportWidth:o=1200,__experimentalLive:r=!1,__experimentalOnClick:l}=e;const i=(0,m.useSelect)((e=>e(zn).getSettings()),[]),a=(0,s.useMemo)((()=>{const e={...i};return e.__experimentalBlockPatterns=[],e}),[i]),c=(0,s.useMemo)((()=>(0,u.castArray)(t)),[t]);return t&&0!==t.length?(0,s.createElement)(Ka,{value:c,settings:a},r?(0,s.createElement)(qa,{onClick:l}):(0,s.createElement)(fu,{viewportWidth:o,__experimentalPadding:n})):null}));function hu(e){let{blocks:t,props:n={},__experimentalLayout:o}=e;const r=(0,m.useSelect)((e=>e(zn).getSettings()),[]),l=(0,d.__experimentalUseDisabled)(),i=(0,d.useMergeRefs)([n.ref,l]),a=(0,s.useMemo)((()=>({...r,__experimentalBlockPatterns:[]})),[r]),p=(0,s.useMemo)((()=>(0,u.castArray)(t)),[t]),f=(0,s.createElement)(Ka,{value:p,settings:a},(0,s.createElement)(km,{renderAppender:!1,__experimentalLayout:o}));return{...n,ref:i,className:c()(n.className,"block-editor-block-preview__live-content","components-disabled"),children:null!=t&&t.length?f:null}}var vu=function(e){var t,n;let{item:o}=e;const{name:l,title:i,icon:a,description:c,initialAttributes:u}=o,d=(0,r.getBlockType)(l),p=(0,r.isReusableBlock)(o);return(0,s.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,s.createElement)("div",{className:"block-editor-inserter__preview"},p||null!=d&&d.example?(0,s.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,s.createElement)(gu,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=d.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:d.example?(0,r.getBlockFromExample)(o.name,{attributes:{...d.example.attributes,...u},innerBlocks:d.example.innerBlocks}):(0,r.createBlock)(l,u)})):(0,s.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,g.__)("No Preview Available."))),!p&&(0,s.createElement)($a,{title:i,icon:a,description:c}))},bu=(0,s.createContext)(),ku=(0,s.forwardRef)((function(e,t){let{isFirst:n,as:o,children:r,...l}=e;const a=(0,s.useContext)(bu);return(0,s.createElement)(p.__unstableCompositeItem,i({ref:t,state:a,role:"option",focusable:!0},l),(e=>{const t={...e,tabIndex:n?0:e.tabIndex};return o?(0,s.createElement)(o,t,r):"function"==typeof r?r(t):(0,s.createElement)(p.Button,t,r)}))})),_u=(0,s.createElement)(O.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},(0,s.createElement)(O.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function yu(e){let{count:t,icon:n}=e;return(0,s.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,s.createElement)("div",{className:"block-editor-block-draggable-chip"},(0,s.createElement)(p.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,s.createElement)(p.FlexItem,null,n?(0,s.createElement)(Wa,{icon:n}):(0,g.sprintf)(
11
  /* translators: %d: Number of blocks. */
12
- (0,g._n)("%d block","%d blocks",t),t)),(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Wa,{icon:_u})))))}var Eu=e=>{let{isEnabled:t,blocks:n,icon:o,children:r}=e;const l={type:"inserter",blocks:n};return(0,s.createElement)(p.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,__experimentalDragComponent:(0,s.createElement)(yu,{count:n.length,icon:o})},(e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return r({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?o:void 0})}))};function Cu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var Su=(0,s.memo)((function(e){let{className:t,isFirst:n,item:o,onSelect:l,onHover:a,isDraggable:u,...d}=e;const p=(0,s.useRef)(!1),m=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},f=(0,s.useMemo)((()=>[(0,r.createBlock)(o.name,o.initialAttributes,(0,r.createBlocksFromInnerBlocksTemplate)(o.innerBlocks))]),[o.name,o.initialAttributes,o.initialAttributes]);return(0,s.createElement)(Eu,{isEnabled:u&&!o.disabled,blocks:f,icon:o.icon},(e=>{let{draggable:r,onDragStart:u,onDragEnd:f}=e;return(0,s.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{p.current=!0,u&&(a(null),u(e))},onDragEnd:e=>{p.current=!1,f&&f(e)}},(0,s.createElement)(ku,i({isFirst:n,className:c()("block-editor-block-types-list__item",t),disabled:o.isDisabled,onClick:e=>{e.preventDefault(),l(o,Cu()?e.metaKey:e.ctrlKey),a(null)},onKeyDown:e=>{const{keyCode:t}=e;t===ka.ENTER&&(e.preventDefault(),l(o,Cu()?e.metaKey:e.ctrlKey),a(null))},onFocus:()=>{p.current||a(o)},onMouseEnter:()=>{p.current||a(o)},onMouseLeave:()=>a(null),onBlur:()=>a(null)},d),(0,s.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:m},(0,s.createElement)(Wa,{icon:o.icon,showColors:!0})),(0,s.createElement)("span",{className:"block-editor-block-types-list__item-title"},o.title)))}))})),wu=(0,s.forwardRef)((function(e,t){const[n,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{n&&(0,Nt.speak)((0,g.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,s.createElement)("div",i({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)}},e))})),Bu=(0,s.forwardRef)((function(e,t){const n=(0,s.useContext)(bu);return(0,s.createElement)(p.__unstableCompositeGroup,i({state:n,role:"presentation",ref:t},e))})),xu=function(e){let{items:t=[],onSelect:n,onHover:o=(()=>{}),children:l,label:i,isDraggable:a=!0}=e;return(0,s.createElement)(wu,{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}(t).map(((e,t)=>(0,s.createElement)(Bu,{key:t},e.map(((e,l)=>(0,s.createElement)(Su,{key:e.id,item:e,className:(0,r.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:a,isFirst:0===t&&0===l})))))),l)},Iu=function(e){let{title:t,icon:n,children:o}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,s.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),(0,s.createElement)(p.Icon,{icon:n})),(0,s.createElement)("div",{className:"block-editor-inserter__panel-content"},o))},Tu=(e,t)=>{const{categories:n,collections:o,items:l}=(0,m.useSelect)((t=>{const{getInserterItems:n}=t(zn),{getCategories:o,getCollections:l}=t(r.store);return{categories:o(),collections:l(),items:n(e)}}),[e]);return[l,n,o,(0,s.useCallback)(((e,n)=>{let{name:o,initialAttributes:l,innerBlocks:i}=e;const s=(0,r.createBlock)(o,l,(0,r.createBlocksFromInnerBlocksTemplate)(i));t(s,void 0,n)}),[t])]},Nu=function(e){let{children:t}=e;const n=(0,p.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return(0,s.createElement)(bu.Provider,{value:n},t)};const Pu=[];var Mu=function(e){let{rootClientId:t,onInsert:n,onHover:o,showMostUsedBlocks:r}=e;const[l,i,a,c]=Tu(t,n),p=(0,s.useMemo)((()=>(0,u.orderBy)(l,["frecency"],["desc"]).slice(0,6)),[l]),m=(0,s.useMemo)((()=>l.filter((e=>!e.category))),[l]),f=(0,s.useMemo)((()=>(0,u.flow)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>(0,u.groupBy)(e,"category")))(l)),[l]),h=(0,s.useMemo)((()=>{const e={...a};return Object.keys(a).forEach((t=>{e[t]=l.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[l,a]);(0,s.useEffect)((()=>()=>o(null)),[]);const v=(0,d.useAsyncList)(i),b=i.length===v.length,k=(0,s.useMemo)((()=>Object.entries(a)),[a]),_=(0,d.useAsyncList)(b?k:Pu);return(0,s.createElement)(Nu,null,(0,s.createElement)("div",null,r&&!!p.length&&(0,s.createElement)(Iu,{title:(0,g._x)("Most used","blocks")},(0,s.createElement)(xu,{items:p,onSelect:c,onHover:o,label:(0,g._x)("Most used","blocks")})),(0,u.map)(v,(e=>{const t=f[e.slug];return t&&t.length?(0,s.createElement)(Iu,{key:e.slug,title:e.title,icon:e.icon},(0,s.createElement)(xu,{items:t,onSelect:c,onHover:o,label:e.title})):null})),b&&m.length>0&&(0,s.createElement)(Iu,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,g.__)("Uncategorized")},(0,s.createElement)(xu,{items:m,onSelect:c,onHover:o,label:(0,g.__)("Uncategorized")})),(0,u.map)(_,(e=>{let[t,n]=e;const r=h[t];return r&&r.length?(0,s.createElement)(Iu,{key:t,title:n.title,icon:n.icon},(0,s.createElement)(xu,{items:r,onSelect:c,onHover:o,label:n.title})):null}))))},Ru=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o,openPatternExplorer:r}=e;const l=(0,d.useViewportMatch)("medium","<"),i=c()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return(0,s.createElement)(p.Flex,{justify:"space-between",align:"start",gap:"4",className:i},(0,s.createElement)(p.FlexItem,{isBlock:!0},(0,s.createElement)(p.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:(0,g.__)("Filter patterns"),hideLabelFromVision:!0,value:t.name,onChange:e=>{o(n.find((t=>e===t.name)))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return n.map((t=>e.push({value:t.name,label:t.label}))),e})()})),!l&&(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(p.Button,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:(0,g.__)("Explore all patterns"),onClick:()=>r()},(0,g._x)("Explore","Label for showing all block patterns"))))},Lu=window.wp.notices,Au=(e,t)=>{const{patternCategories:n,patterns:o}=(0,m.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(zn);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),{createSuccessNotice:l}=(0,m.useDispatch)(Lu.store);return[o,n,(0,s.useCallback)(((t,n)=>{e((0,u.map)(n,(e=>(0,r.cloneBlock)(e))),t.name),l((0,g.sprintf)(
13
  /* translators: %s: block pattern title. */
14
- (0,g.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function Du(e){let{isDraggable:t,pattern:n,onClick:o,composite:r}=e;const{blocks:l,viewportWidth:a}=n,c=`block-editor-block-patterns-list__item-description-${(0,d.useInstanceId)(Du)}`;return(0,s.createElement)(Eu,{isEnabled:t,blocks:l},(e=>{let{draggable:t,onDragStart:u,onDragEnd:d}=e;return(0,s.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?c:void 0,draggable:t,onDragStart:u,onDragEnd:d},(0,s.createElement)(p.__unstableCompositeItem,i({role:"option",as:"div"},r,{className:"block-editor-block-patterns-list__item",onClick:()=>o(n,l)}),(0,s.createElement)(gu,{blocks:l,viewportWidth:a}),(0,s.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&(0,s.createElement)(p.VisuallyHidden,{id:c},n.description)))}))}function Ou(){return(0,s.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Fu=function(e){let{isDraggable:t,blockPatterns:n,shownPatterns:o,onClickPattern:r,orientation:l,label:a=(0,g.__)("Block Patterns")}=e;const c=(0,p.__unstableUseCompositeState)({orientation:l});return(0,s.createElement)(p.__unstableComposite,i({},c,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":a}),n.map((e=>o.includes(e)?(0,s.createElement)(Du,{key:e.name,pattern:e,onClick:r,isDraggable:t,composite:c}):(0,s.createElement)(Ou,{key:e.name}))))};function zu(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o}=e;const r="block-editor-block-patterns-explorer__sidebar";return(0,s.createElement)("div",{className:`${r}__categories-list`},n.map((e=>{let{name:n,label:l}=e;return(0,s.createElement)(p.Button,{key:n,label:l,className:`${r}__categories-list__item`,isPressed:t===n,onClick:()=>{o(n)}},l)})))}function Vu(e){let{filterValue:t,setFilterValue:n}=e;return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,s.createElement)(p.SearchControl,{onChange:n,value:t,label:(0,g.__)("Search for patterns"),placeholder:(0,g.__)("Search")}))}var Hu=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o,filterValue:r,setFilterValue:l}=e;return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,s.createElement)(Vu,{filterValue:r,setFilterValue:l}),!r&&(0,s.createElement)(zu,{selectedCategory:t,patternCategories:n,onClickCategory:o}))},Gu=function(){return(0,s.createElement)("div",{className:"block-editor-inserter__no-results"},(0,s.createElement)(wo,{className:"block-editor-inserter__no-results-icon",icon:Ua}),(0,s.createElement)("p",null,(0,g.__)("No results found.")))},Uu=function(e){let{rootClientId:t="",insertionIndex:n,clientId:o,isAppender:l,onSelect:i,shouldFocusBlock:a=!0}=e;const{getSelectedBlock:c}=(0,m.useSelect)(zn),{destinationRootClientId:d,destinationIndex:p}=(0,m.useSelect)((e=>{const{getSelectedBlockClientId:r,getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:a}=e(zn),c=r();let u,d=t;return void 0!==n?u=n:o?u=s(o):!l&&c?(d=i(c),u=s(c)+1):u=a(d).length,{destinationRootClientId:d,destinationIndex:u}}),[t,n,o,l]),{replaceBlocks:f,insertBlocks:h,showInsertionPoint:v,hideInsertionPoint:b}=(0,m.useDispatch)(zn),k=(0,s.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=c();!l&&o&&(0,r.isUnmodifiedDefaultBlock)(o)?f(o.clientId,e,null,a||n?0:null,t):h(e,p,d,!0,a||n?0:null,t);const s=(0,g.sprintf)(// translators: %d: the name of the block that has been added
15
- (0,g._n)("%d block added.","%d blocks added.",(0,u.castArray)(e).length),(0,u.castArray)(e).length);(0,Nt.speak)(s),i&&i()}),[l,c,f,h,d,p,i,a]),_=(0,s.useCallback)((e=>{e?v(d,p):b()}),[v,b,d,p]);return[d,k,_]};const Wu=e=>e.name||"",$u=e=>e.title,ju=e=>e.description||"",Ku=e=>e.keywords||[],qu=e=>e.category,Yu=()=>null;function Xu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(0,u.deburr)(e),e=e.replace(/^\//,""),e=e.toLowerCase(),e}const Zu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,u.words)(Xu(e))},Qu=(e,t)=>(0,u.differenceWith)(e,Zu(t),((e,t)=>t.includes(e))),Ju=(e,t,n,o)=>0===Zu(o).length?e:ed(e,o,{getCategory:e=>{var n;return null===(n=(0,u.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}}),ed=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=Zu(t);if(0===o.length)return e;const r=e.map((e=>[e,td(e,t,n)])).filter((e=>{let[,t]=e;return t>0}));return r.sort(((e,t)=>{let[,n]=e,[,o]=t;return o-n})),r.map((e=>{let[t]=e;return t}))};function td(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName:o=Wu,getTitle:r=$u,getDescription:l=ju,getKeywords:i=Ku,getCategory:s=qu,getCollection:a=Yu}=n,c=o(e),d=r(e),p=l(e),m=i(e),f=s(e),g=a(e),h=Xu(t),v=Xu(d);let b=0;if(h===v)b+=30;else if(v.startsWith(h))b+=20;else{const e=[c,d,p,...m,f,g].join(" "),t=(0,u.words)(h);0===Qu(t,e).length&&(b+=10)}return 0!==b&&c.startsWith("core/")&&(b+=c!==e.id?1:2),b}function nd(e){let{filterValue:t,filteredBlockPatternsLength:n}=e;return t?(0,s.createElement)(p.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,g.sprintf)(
16
  /* translators: %d: number of patterns. %s: block pattern search query */
17
- (0,g._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',n),n,t)):null}var od=function(e){let{filterValue:t,selectedCategory:n,patternCategories:o}=e;const r=(0,d.useDebounce)(Nt.speak,500),[l,i]=Uu({shouldFocusBlock:!0}),[a,,c]=Au(i,l),u=(0,s.useMemo)((()=>o.map((e=>e.name))),[o]),p=(0,s.useMemo)((()=>t?ed(a,t):a.filter((e=>{var t,o;return"uncategorized"===n?!(null!==(t=e.categories)&&void 0!==t&&t.length)||e.categories.every((e=>!u.includes(e))):null===(o=e.categories)||void 0===o?void 0:o.includes(n)}))),[t,n,a]);(0,s.useEffect)((()=>{if(!t)return;const e=p.length,n=(0,g.sprintf)(
18
  /* translators: %d: number of results. */
19
- (0,g._n)("%d result found.","%d results found.",e),e);r(n)}),[t,r]);const m=(0,d.useAsyncList)(p,{step:2}),f=!(null==p||!p.length);return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},f&&(0,s.createElement)(nd,{filterValue:t,filteredBlockPatternsLength:p.length}),(0,s.createElement)(Nu,null,!f&&(0,s.createElement)(Gu,null),f&&(0,s.createElement)(Fu,{shownPatterns:m,blockPatterns:p,onClickPattern:c,isDraggable:!1})))};function rd(e){let{initialCategory:t,patternCategories:n}=e;const[o,r]=(0,s.useState)(""),[l,i]=(0,s.useState)(null==t?void 0:t.name);return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,s.createElement)(Hu,{selectedCategory:l,patternCategories:n,onClickCategory:i,filterValue:o,setFilterValue:r}),(0,s.createElement)(od,{filterValue:o,selectedCategory:l,patternCategories:n}))}var ld=function(e){let{onModalClose:t,...n}=e;return(0,s.createElement)(p.Modal,{title:(0,g.__)("Patterns"),closeLabel:(0,g.__)("Close"),onRequestClose:t,isFullScreen:!0},(0,s.createElement)(rd,n))};function id(e){let{rootClientId:t,onInsert:n,selectedCategory:o,populatedCategories:r}=e;const[l,,i]=Au(n,t),a=(0,s.useCallback)((e=>{var t;if(null===(t=e.categories)||void 0===t||!t.length)return 1/0;const n=r.reduce(((e,t,n)=>{let{name:o}=t;return e[o]=n,e}),{});return Math.min(...e.categories.map((e=>void 0!==n[e]?n[e]:1/0)))}),[r]),c=(0,s.useMemo)((()=>l.filter((e=>{var t;return"uncategorized"===o.name?a(e)===1/0:null===(t=e.categories)||void 0===t?void 0:t.includes(o.name)}))),[l,o]),u=(0,s.useMemo)((()=>c.sort(((e,t)=>a(e)-a(t)))),[c,a]),p=(0,d.useAsyncList)(u);return c.length?(0,s.createElement)("div",{className:"block-editor-inserter__panel-content"},(0,s.createElement)(Fu,{shownPatterns:p,blockPatterns:c,onClickPattern:i,label:o.label,orientation:"vertical",isDraggable:!0})):null}var sd=function(e){let{rootClientId:t,onInsert:n,onClickCategory:o,selectedCategory:r}=e;const[l,i]=(0,s.useState)(!1),[a,c]=Au(),u=(0,s.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>c.some((t=>t.name===e))))),[c]),d=(0,s.useMemo)((()=>{const e=c.filter((e=>a.some((t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})))).sort(((e,t)=>{let{name:n}=e,{name:o}=t;return[n,o].includes("featured")?"featured"===n?-1:1:0}));return a.some((e=>!u(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,g._x)("Uncategorized")}),e}),[a,c]),p=r||d[0];return(0,s.createElement)(s.Fragment,null,!l&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Ru,{selectedCategory:p,patternCategories:d,onClickCategory:o,openPatternExplorer:()=>i(!0)}),(0,s.createElement)(id,{rootClientId:t,onInsert:n,selectedCategory:p,populatedCategories:d})),l&&(0,s.createElement)(ld,{initialCategory:p,patternCategories:d,onModalClose:()=>i(!1)}))},ad=window.wp.url;function cd(e){let{onHover:t,onInsert:n,rootClientId:o}=e;const[r,,,l]=Tu(o,n),i=(0,s.useMemo)((()=>r.filter((e=>{let{category:t}=e;return"reusable"===t}))),[r]);return 0===i.length?(0,s.createElement)(Gu,null):(0,s.createElement)(Iu,{title:(0,g.__)("Reusable blocks")},(0,s.createElement)(xu,{items:i,onSelect:l,onHover:t,label:(0,g.__)("Reusable blocks")}))}var ud=function(e){let{rootClientId:t,onInsert:n,onHover:o}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(cd,{onHover:o,onInsert:n,rootClientId:t}),(0,s.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,s.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:(0,ad.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,g.__)("Manage Reusable blocks"))))};const{Fill:dd,Slot:pd}=(0,p.createSlotFill)("__unstableInserterMenuExtension");dd.Slot=pd;var md=dd;const fd=[];var gd=function(e){let{filterValue:t,onSelect:n,onHover:o,rootClientId:r,clientId:l,isAppender:i,__experimentalInsertionIndex:a,maxBlockPatterns:c,maxBlockTypes:m,showBlockDirectory:f=!1,isDraggable:h=!0,shouldFocusBlock:v=!0}=e;const b=(0,d.useDebounce)(Nt.speak,500),[k,_]=Uu({onSelect:n,rootClientId:r,clientId:l,isAppender:i,insertionIndex:a,shouldFocusBlock:v}),[y,E,C,S]=Tu(k,_),[w,,B]=Au(_,k),x=(0,s.useMemo)((()=>{const e=Ju((0,u.orderBy)(y,["frecency"],["desc"]),E,C,t);return void 0!==m?e.slice(0,m):e}),[t,y,E,C,m]),I=(0,s.useMemo)((()=>{const e=ed(w,t);return void 0!==c?e.slice(0,c):e}),[t,w,c]);(0,s.useEffect)((()=>{if(!t)return;const e=x.length+I.length,n=(0,g.sprintf)(
20
  /* translators: %d: number of results. */
21
- (0,g._n)("%d result found.","%d results found.",e),e);b(n)}),[t,b]);const T=(0,d.useAsyncList)(x,{step:9}),N=(0,d.useAsyncList)(T.length===x.length?I:fd),P=!(0,u.isEmpty)(x)||!(0,u.isEmpty)(I);return(0,s.createElement)(Nu,null,!f&&!P&&(0,s.createElement)(Gu,null),!!x.length&&(0,s.createElement)(Iu,{title:(0,s.createElement)(p.VisuallyHidden,null,(0,g.__)("Blocks"))},(0,s.createElement)(xu,{items:T,onSelect:S,onHover:o,label:(0,g.__)("Blocks"),isDraggable:h})),!!x.length&&!!I.length&&(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!I.length&&(0,s.createElement)(Iu,{title:(0,s.createElement)(p.VisuallyHidden,null,(0,g.__)("Block Patterns"))},(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,s.createElement)(Fu,{shownPatterns:N,blockPatterns:I,onClickPattern:B,isDraggable:h}))),f&&(0,s.createElement)(md.Slot,{fillProps:{onSelect:S,onHover:o,filterValue:t,hasItems:P,rootClientId:k}},(e=>e.length?e:P?null:(0,s.createElement)(Gu,null))))};const hd={name:"blocks",
22
  /* translators: Blocks tab title in the block inserter. */
23
- title:(0,g.__)("Blocks")},vd={name:"patterns",
24
  /* translators: Patterns tab title in the block inserter. */
25
- title:(0,g.__)("Patterns")},bd={name:"reusable",
26
  /* translators: Reusable blocks tab title in the block inserter. */
27
- title:(0,g.__)("Reusable")};var kd=function(e){let{children:t,showPatterns:n=!1,showReusableBlocks:o=!1,onSelect:r}=e;const l=(0,s.useMemo)((()=>{const e=[hd];return n&&e.push(vd),o&&e.push(bd),e}),[hd,n,vd,o,bd]);return(0,s.createElement)(p.TabPanel,{className:"block-editor-inserter__tabs",tabs:l,onSelect:r},t)},_d=(0,s.forwardRef)((function(e,t){let{rootClientId:n,clientId:o,isAppender:r,__experimentalInsertionIndex:l,onSelect:i,showInserterHelpPanel:a,showMostUsedBlocks:c,__experimentalFilterValue:u="",shouldFocusBlock:d=!0}=e;const[f,h]=(0,s.useState)(u),[v,b]=(0,s.useState)(null),[k,_]=(0,s.useState)(null),[y,E,C]=Uu({rootClientId:n,clientId:o,isAppender:r,insertionIndex:l,shouldFocusBlock:d}),{showPatterns:S,hasReusableBlocks:w}=(0,m.useSelect)((e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(zn);return{showPatterns:!!n(y).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}}),[y]),B=(0,s.useCallback)(((e,t,n)=>{E(e,t,n),i()}),[E,i]),x=(0,s.useCallback)(((e,t)=>{E(e,{patternName:t}),i()}),[E,i]),I=(0,s.useCallback)((e=>{C(!!e),b(e)}),[C,b]),T=(0,s.useCallback)((e=>{_(e)}),[_]),N=(0,s.useMemo)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-inserter__block-list"},(0,s.createElement)(Mu,{rootClientId:y,onInsert:B,onHover:I,showMostUsedBlocks:c})),a&&(0,s.createElement)("div",{className:"block-editor-inserter__tips"},(0,s.createElement)(p.VisuallyHidden,{as:"h2"},(0,g.__)("A tip for using the block editor")),(0,s.createElement)(Ga,null)))),[y,B,I,f,c,a]),P=(0,s.useMemo)((()=>(0,s.createElement)(sd,{rootClientId:y,onInsert:x,onClickCategory:T,selectedCategory:k})),[y,x,T,k]),M=(0,s.useMemo)((()=>(0,s.createElement)(ud,{rootClientId:y,onInsert:B,onHover:I})),[y,B,I]),R=(0,s.useCallback)((e=>"blocks"===e.name?N:"patterns"===e.name?P:M),[N,P,M]),L=(0,s.useRef)();return(0,s.useImperativeHandle)(t,(()=>({focusSearch:()=>{L.current.focus()}}))),(0,s.createElement)("div",{className:"block-editor-inserter__menu"},(0,s.createElement)("div",{className:"block-editor-inserter__main-area"},(0,s.createElement)("div",{className:"block-editor-inserter__content"},(0,s.createElement)(p.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{v&&b(null),h(e)},value:f,label:(0,g.__)("Search for blocks and patterns"),placeholder:(0,g.__)("Search"),ref:L}),!!f&&(0,s.createElement)(gd,{filterValue:f,onSelect:i,onHover:I,rootClientId:n,clientId:o,isAppender:r,__experimentalInsertionIndex:l,showBlockDirectory:!0,shouldFocusBlock:d}),!f&&(S||w)&&(0,s.createElement)(kd,{showPatterns:S,showReusableBlocks:w},R),!f&&!S&&!w&&N)),a&&v&&(0,s.createElement)(vu,{item:v}))}));function yd(e){let{onSelect:t,rootClientId:n,clientId:o,isAppender:r}=e;const[l,i]=(0,s.useState)(""),[a,u]=Uu({onSelect:t,rootClientId:n,clientId:o,isAppender:r}),[d]=Tu(a,u),[f]=Au(u,a),h=f.length&&!!l,v=h&&f.length>6||d.length>6,{setInserterIsOpened:b,insertionIndex:k}=(0,m.useSelect)((e=>{const{getSettings:t,getBlockIndex:n,getBlockCount:r}=e(zn),l=n(o);return{setInserterIsOpened:t().__experimentalSetIsInserterOpened,insertionIndex:-1===l?r():l}}),[o,n]);return(0,s.useEffect)((()=>{b&&b(!1)}),[b]),(0,s.createElement)("div",{className:c()("block-editor-inserter__quick-inserter",{"has-search":v,"has-expand":b})},v&&(0,s.createElement)(p.SearchControl,{className:"block-editor-inserter__search",value:l,onChange:e=>{i(e)},label:(0,g.__)("Search for blocks and patterns"),placeholder:(0,g.__)("Search")}),(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,s.createElement)(gd,{filterValue:l,onSelect:t,rootClientId:n,clientId:o,isAppender:r,maxBlockPatterns:h?2:0,maxBlockTypes:6,isDraggable:!1})),b&&(0,s.createElement)(p.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{b({rootClientId:n,insertionIndex:k,filterValue:l})},"aria-label":(0,g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,g.__)("Browse all")))}const Ed=e=>{let t,{onToggle:n,disabled:o,isOpen:r,blockTitle:l,hasSingleBlockType:a,toggleProps:c={}}=e;t=a?(0,g.sprintf)(// translators: %s: the name of the block when there is only one
28
- (0,g._x)("Add %s","directly add the only allowed block"),l):(0,g._x)("Add block","Generic label for block inserter button");const{onClick:u,...d}=c;return(0,s.createElement)(p.Button,i({icon:Va,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),u&&u(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&r,disabled:o},d))};class Cd extends s.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle(e){let{onToggle:t,isOpen:n}=e;const{disabled:o,blockTitle:r,hasSingleBlockType:l,directInsertBlock:i,toggleProps:s,hasItems:a,renderToggle:c=Ed}=this.props;return c({onToggle:t,isOpen:n,disabled:o||!a,blockTitle:r,hasSingleBlockType:l,directInsertBlock:i,toggleProps:s})}renderContent(e){let{onClose:t}=e;const{rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:l,__experimentalIsQuick:i}=this.props;return i?(0,s.createElement)(yd,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:r}):(0,s.createElement)(_d,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:l})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:l}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,s.createElement)(p.Dropdown,{className:"block-editor-inserter",contentClassName:c()("block-editor-inserter__popover",{"is-quick":r}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}var Sd=(0,d.compose)([(0,m.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{getBlockRootClientId:l,hasInserterItems:i,__experimentalGetAllowedBlocks:s,__experimentalGetDirectInsertBlock:a}=e(zn),{getBlockVariations:c}=e(r.store);o=o||l(n)||void 0;const d=s(o),p=a(o),m=1===(0,u.size)(d)&&0===(0,u.size)(c(d[0].name,"inserter"));let f=!1;return m&&(f=d[0]),{hasItems:i(o),hasSingleBlockType:m,blockTitle:f?f.title:"",allowedBlockType:f,directInsertBlock:p,rootClientId:o}})),(0,m.withDispatch)(((e,t,n)=>{let{select:o}=n;return{insertOnlyAllowedBlock(){const{rootClientId:n,clientId:l,isAppender:i,hasSingleBlockType:s,allowedBlockType:a,directInsertBlock:c,onSelectOrClose:u}=t;if(!s&&!c)return;const{insertBlock:d}=e(zn);let p;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:r}=o(zn);if(!e||!l&&!n)return{};const i={};let s={};if(l){const e=t(l),n=t(r(l));(null==e?void 0:e.name)===(null==n?void 0:n.name)&&(s=(null==n?void 0:n.attributes)||{})}else{var a;const e=t(n);if(null!=e&&null!==(a=e.innerBlocks)&&void 0!==a&&a.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&(null==c?void 0:c.name)===t.name&&(s=t.attributes)}}return e.forEach((e=>{s.hasOwnProperty(e)&&(i[e]=s[e])})),i}(c.attributesToCopy);p=(0,r.createBlock)(c.name,{...c.attributes||{},...e})}else p=(0,r.createBlock)(a.name);d(p,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:r,getBlockRootClientId:s}=o(zn);if(l)return e(l);const a=t();return!i&&a&&s(a)===n?e(a)+1:r(n).length}(),n),u&&u();const m=(0,g.sprintf)(// translators: %s: the name of the block that has been added
29
- (0,g.__)("%s block added"),a.title);(0,Nt.speak)(m)}}})),(0,d.ifCondition)((e=>{let{hasItems:t,isAppender:n,rootClientId:o,clientId:r}=e;return t||!n&&!o&&!r}))])(Cd),wd=(0,d.compose)((0,m.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=e(zn),l=!n(t.rootClientId),{bodyPlaceholder:i}=o();return{showPrompt:l,isLocked:!!r(t.rootClientId),placeholder:i}})),(0,m.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(zn);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}})))((function(e){let{isLocked:t,onAppend:n,showPrompt:o,placeholder:r,rootClientId:l}=e;if(t)return null;const i=(0,za.decodeEntities)(r)||(0,g.__)("Type / to choose a block");return(0,s.createElement)("div",{"data-root-client-id":l||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":o})},(0,s.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,g.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{ka.ENTER!==e.keyCode&&ka.SPACE!==e.keyCode||n()},onClick:()=>n(),onFocus:()=>{o&&n()}},o?i:"\ufeff"),(0,s.createElement)(Sd,{rootClientId:l,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function Bd(e,t){let{rootClientId:n,className:o,onFocus:r,tabIndex:l}=e;return(0,s.createElement)(Sd,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,renderToggle:e=>{let n,{onToggle:i,disabled:a,isOpen:u,blockTitle:d,hasSingleBlockType:m}=e;n=m?(0,g.sprintf)(// translators: %s: the name of the block when there is only one
30
- (0,g._x)("Add %s","directly add the only allowed block"),d):(0,g._x)("Add block","Generic label for block inserter button");const f=!m;let h=(0,s.createElement)(p.Button,{ref:t,onFocus:r,tabIndex:l,className:c()(o,"block-editor-button-block-appender"),onClick:i,"aria-haspopup":f?"true":void 0,"aria-expanded":f?u:void 0,disabled:a,label:n},!m&&(0,s.createElement)(p.VisuallyHidden,{as:"span"},n),(0,s.createElement)(wo,{icon:Va}));return(f||m)&&(h=(0,s.createElement)(p.Tooltip,{text:n},h)),h},isAppender:!0})}const xd=(0,s.forwardRef)(((e,t)=>(Rt()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),Bd(e,t))));var Id=(0,s.forwardRef)(Bd),Td=(0,m.withSelect)(((e,t)=>{let{rootClientId:n}=t;const{canInsertBlockType:o,getTemplateLock:l,getSelectedBlockClientId:i}=e(zn);return{isLocked:!!l(n),canInsertDefaultBlock:o((0,r.getDefaultBlockName)(),n),selectedBlockClientId:i()}}))((function(e){let t,{rootClientId:n,canInsertDefaultBlock:o,isLocked:r,renderAppender:l,className:i,selectedBlockClientId:a,tagName:u="div"}=e;if(r||!1===l)return null;if(l)t=(0,s.createElement)(l,null);else{if(a!==n&&(n||a))return null;t=o?(0,s.createElement)(wd,{rootClientId:n}):(0,s.createElement)(Id,{rootClientId:n,className:"block-list-appender__toggle"})}return(0,s.createElement)(u,{tabIndex:-1,className:c()("block-list-appender wp-block",i),"data-block":!0},t)}));function Nd(e){return(0,d.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])}const Pd=(0,s.createContext)();function Md(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const{selectBlock:o,hideInsertionPoint:r}=(0,m.useDispatch)(zn),l=(0,s.useContext)(Pd),i=(0,s.useRef)(),{orientation:a,previousClientId:u,nextClientId:f,rootClientId:h,isInserterShown:v}=(0,m.useSelect)((e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:l,getPreviousBlockClientId:i,getNextBlockClientId:s}=e(zn),a=r(),c=n(a.rootClientId);if(!c.length)return{};let u=c[a.index-1],d=c[a.index];for(;l(u);)u=i(u);for(;l(d);)d=s(d);return{previousClientId:u,nextClientId:d,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}}),[]),b=Ta(u),k=Ta(f),_="vertical"===a,y=(0,s.useMemo)((()=>{if(!b&&!k)return{};const e=b?b.getBoundingClientRect():null,t=k?k.getBoundingClientRect():null;if(_)return{width:b?b.offsetWidth:k.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=(0,g.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:b?b.offsetHeight:k.offsetHeight}}),[b,k]),E=(0,s.useCallback)((()=>{if(!b&&!k)return{};const{ownerDocument:e}=b||k,t=b?b.getBoundingClientRect():null,n=k?k.getBoundingClientRect():null;return _?(0,g.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}:(0,g.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}}),[b,k]),C=Nd(n),S=(0,d.useReducedMotion)(),w=c()("block-editor-block-list__insertion-point","is-"+a),B=b&&k&&v,x={start:{..._?{height:0,left:"50%",right:"50%",y:0}:{width:0,top:"50%",bottom:"50%",x:0},opacity:0},rest:{..._?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:B?.4:0}},hover:{..._?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:.4}}},I={start:{scale:S?1:0},rest:{scale:1,transition:{delay:.2}}};return(0,s.createElement)(p.Popover,{ref:C,noArrow:!0,animate:!1,getAnchorRect:E,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:t||null,key:f+"--"+h},(0,s.createElement)(p.__unstableMotion.div,{layout:!S,initial:S?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:i,tabIndex:-1,onClick:function(e){e.target===i.current&&f&&o(f,-1)},onFocus:function(e){e.target!==i.current&&(l.current=!0)},className:c()(w,{"is-with-inserter":B}),onHoverEnd:function(e){e.target!==i.current||l.current||r()},style:y},(0,s.createElement)(p.__unstableMotion.div,{variants:x,className:"block-editor-block-list__insertion-point-indicator"}),B&&(0,s.createElement)(p.__unstableMotion.div,{variants:I,className:c()("block-editor-block-list__insertion-point-inserter")},(0,s.createElement)(Sd,{position:"bottom center",clientId:f,rootClientId:h,__experimentalIsQuick:!0,onToggle:e=>{l.current=e},onSelectOrClose:()=>{l.current=!1}}))))}function Rd(e){let{children:t,__unstablePopoverSlot:n,__unstableContentRef:o}=e;const r=(0,m.useSelect)((e=>e(zn).isBlockInsertionPointVisible()),[]);return(0,s.createElement)(Pd.Provider,{value:(0,s.useRef)(!1)},r&&(0,s.createElement)(Md,{__unstablePopoverSlot:n,__unstableContentRef:o}),t)}function Ld(){const e=(0,s.useContext)(Pd),t=(0,m.useSelect)((e=>e(zn).getSettings().hasReducedUI),[]),{getBlockListSettings:n,getBlockRootClientId:o,getBlockIndex:r,isBlockInsertionPointVisible:l,isMultiSelecting:i,getSelectedBlockClientIds:a,getTemplateLock:c}=(0,m.useSelect)(zn),{showInsertionPoint:u,hideInsertionPoint:p}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((o=>{if(!t)return o.addEventListener("mousemove",s),()=>{o.removeEventListener("mousemove",s)};function s(t){var o,s;if(e.current)return;if(i())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(l()&&p());let d;if(t.target.classList.contains("is-root-container")||(d=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")),c(d))return;const m=(null===(o=n(d))||void 0===o?void 0:o.orientation)||"vertical",f=t.target.getBoundingClientRect(),g=t.clientY-f.top,h=t.clientX-f.left;let v=Array.from(t.target.children).find((e=>e.classList.contains("wp-block")&&"vertical"===m&&e.offsetTop>g||e.classList.contains("wp-block")&&"horizontal"===m&&e.offsetLeft>h));if(!v)return;if(!v.id&&(v=v.firstElementChild,!v))return;if(null===(s=v.parentElement)||void 0===s?void 0:s.closest(".block-editor-block-content-overlay.overlay-active"))return;const b=v.id.slice("block-".length);if(!b)return;if(a().includes(b))return;const k=v.getBoundingClientRect();if("horizontal"===m&&(t.clientY>k.bottom||t.clientY<k.top)||"vertical"===m&&(t.clientX>k.right||t.clientX<k.left))return void(l()&&p());const _=r(b);0!==_?u(d,_,{__unstableWithInserter:!0}):l()&&p()}}),[e,n,o,r,l,i,u,p,a])}const Ad="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,Dd="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;function Od(e){return(0,m.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(zn),{getBlockType:l,getActiveBlockVariation:i}=t(r.store),s=n(e),a=l(s);if(!a)return null;const c=o(e),u=i(s,c),d={title:a.title,icon:a.icon,description:a.description,anchor:null==c?void 0:c.anchor};return u?{title:u.title||a.title,icon:u.icon||a.icon,description:u.description||a.description}:d}),[e])}function Fd(e){let{clientId:t}=e;const{attributes:n,name:o,reusableBlockTitle:l}=(0,m.useSelect)((e=>{if(!t)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:l}=e(zn),i=n(t);if(!i)return{};const s=(0,r.isReusableBlock)((0,r.getBlockType)(i));return{attributes:o(t),name:i,reusableBlockTitle:s&&l(o(t).ref)}}),[t]),i=Od(t);if(!o||!i)return null;const s=(0,r.getBlockType)(o),a=s?(0,r.__experimentalGetBlockLabel)(s,n):null,c=l||a;return c&&c!==s.title?(0,u.truncate)(c,{length:35}):i.title}var zd=e=>{let{children:t,clientIds:n,cloneClassname:o,onDragStart:l,onDragEnd:i}=e;const{srcRootClientId:a,isDraggable:c,icon:u}=(0,m.useSelect)((e=>{var t;const{getBlockRootClientId:o,getTemplateLock:l,getBlockName:i}=e(zn),s=o(n[0]),a=s?l(s):null,c=i(n[0]);return{srcRootClientId:s,isDraggable:"all"!==a,icon:null===(t=(0,r.getBlockType)(c))||void 0===t?void 0:t.icon}}),[n]),d=(0,s.useRef)(!1),[f,g,h]=function(){const e=(0,s.useRef)(null),t=(0,s.useRef)(null),n=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,s.useCallback)((r=>{e.current=r.clientY,n.current=(0,ir.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,s.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,l=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>l){const e=Math.max(r-l-50,0),n=Math.max(i-l-50,0)/e;t.current=25*n}else if(o.clientY<l){const e=Math.max(l-50,0),n=Math.max(l-i-50,0)/e;t.current=-25*n}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{startDraggingBlocks:v,stopDraggingBlocks:b}=(0,m.useDispatch)(zn);if((0,s.useEffect)((()=>()=>{d.current&&b()}),[]),!c)return t({isDraggable:!1});const k={type:"block",srcClientIds:n,srcRootClientId:a};return(0,s.createElement)(p.Draggable,{cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:k,onDragStart:e=>{v(n),d.current=!0,f(e),l&&l()},onDragOver:g,onDragEnd:()=>{b(),d.current=!1,h(),i&&i()},__experimentalDragComponent:(0,s.createElement)(yu,{count:n.length,icon:u})},(e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return t({draggable:!0,onDragStart:n,onDragEnd:o})}))},Vd=function(e){let{clientId:t,rootClientId:n,blockElement:o}=e;const l=Od(t),a=(0,m.useSelect)((e=>{var o;const{getBlock:r,getBlockIndex:l,hasBlockMovingClientId:i,getBlockListSettings:s}=e(zn),a=l(t),{name:c,attributes:u}=r(t);return{index:a,name:c,attributes:u,blockMovingMode:i(),orientation:null===(o=s(n))||void 0===o?void 0:o.orientation}}),[t,n]),{index:u,name:d,attributes:f,blockMovingMode:h,orientation:v}=a,{setNavigationMode:b,removeBlock:k}=(0,m.useDispatch)(zn),_=(0,s.useRef)(),y=(0,r.getBlockType)(d),E=(0,r.__experimentalGetAccessibleBlockLabel)(y,f,u+1,v);(0,s.useEffect)((()=>{_.current.focus(),(0,Nt.speak)(E)}),[E]);const{hasBlockMovingClientId:C,getBlockIndex:S,getBlockRootClientId:w,getClientIdsOfDescendants:B,getSelectedBlockClientId:x,getMultiSelectedBlocksEndClientId:I,getPreviousBlockClientId:T,getNextBlockClientId:N,isNavigationMode:P}=(0,m.useSelect)(zn),{selectBlock:M,clearSelectedBlock:R,setBlockMovingClientId:L,moveBlockToPosition:A}=(0,m.useDispatch)(zn),D=c()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!h}),O=(0,g.__)("Drag");return(0,s.createElement)("div",{className:D},(0,s.createElement)(p.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Wa,{icon:null==l?void 0:l.icon,showColors:!0})),(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(zd,{clientIds:[t]},(e=>(0,s.createElement)(p.Button,i({icon:_u,className:"block-selection-button_drag-handle","aria-hidden":"true",label:O,tabIndex:"-1"},e))))),(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(p.Button,{ref:_,onClick:()=>b(!1),onKeyDown:function(e){const{keyCode:n}=e,r=n===ka.UP,l=n===ka.DOWN,i=n===ka.LEFT,s=n===ka.RIGHT,a=n===ka.TAB,c=n===ka.ESCAPE,u=n===ka.ENTER,d=n===ka.SPACE,p=e.shiftKey;if(n===ka.BACKSPACE||n===ka.DELETE)return k(t),void e.preventDefault();const m=x(),f=I(),g=T(f||m),h=N(f||m),v=a&&p||r,b=a&&!p||l,_=i,y=s;let E;if(v)E=g;else if(b)E=h;else if(_){var D;E=null!==(D=w(m))&&void 0!==D?D:m}else if(y){var O;E=null!==(O=B([m])[0])&&void 0!==O?O:m}const F=C();if(c&&P()&&(R(),e.preventDefault()),c&&F&&!e.defaultPrevented&&(L(null),e.preventDefault()),(u||d)&&F){const e=w(F),t=w(m),n=S(F);let o=S(m);n<o&&e===t&&(o-=1),A(F,e,t,o),M(F),L(null)}if(b||v||_||y)if(E)e.preventDefault(),M(E);else if(a&&m){let t;if(b){t=o;do{t=ir.focus.tabbable.findNext(t)}while(t&&o.contains(t));t||(t=o.ownerDocument.defaultView.frameElement,t=ir.focus.tabbable.findNext(t))}else t=ir.focus.tabbable.findPrevious(o);t&&(e.preventDefault(),t.focus(),R())}},label:E,className:"block-selection-button_select-button"},(0,s.createElement)(Fd,{clientId:t})))))};function Hd(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}var Gd=function(e){let{children:t,focusOnMount:n,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,...l}=e;const a=(0,s.useRef)(),c=function(e){const[t,n]=(0,s.useState)(!0),o=(0,s.useCallback)((()=>{const t=!ir.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||Rt()("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(0,s.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(a);return function(e,t,n,o,r){const[l]=(0,s.useState)(t),[i]=(0,s.useState)(o),a=(0,s.useCallback)((()=>{!function(e){const[t]=ir.focus.tabbable.find(e);t&&t.focus()}(e.current)}),[]);(0,oc.useShortcut)("core/block-editor/focus-toolbar",a),(0,s.useEffect)((()=>{l&&a()}),[n,l,a]),(0,s.useEffect)((()=>{let t=0;return i&&!l&&(t=window.requestAnimationFrame((()=>{const t=Hd(e.current),n=i||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()}))),()=>{if(window.cancelAnimationFrame(t),!r||!e.current)return;const n=Hd(e.current).findIndex((e=>0===e.tabIndex));r(n)}}),[i,l])}(a,n,c,o,r),c?(0,s.createElement)(p.Toolbar,i({label:l["aria-label"],ref:a},l),t):(0,s.createElement)(p.NavigableMenu,i({orientation:"horizontal",role:"toolbar",ref:a},l),t)},Ud=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Wd=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),$d=(0,s.createElement)(O.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(O.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),jd=(0,s.createElement)(O.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(O.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Kd=(e,t)=>"up"===e?"horizontal"===t?(0,g.isRTL)()?Ud:Wd:$d:"down"===e?"horizontal"===t?(0,g.isRTL)()?Wd:Ud:jd:null,qd=(e,t)=>"up"===e?"horizontal"===t?(0,g.isRTL)()?(0,g.__)("Move right"):(0,g.__)("Move left"):(0,g.__)("Move up"):"down"===e?"horizontal"===t?(0,g.isRTL)()?(0,g.__)("Move left"):(0,g.__)("Move right"):(0,g.__)("Move down"):null,Yd=(0,s.forwardRef)(((e,t)=>{let{clientIds:n,direction:o,orientation:l,...a}=e;const f=(0,d.useInstanceId)(Yd),h=(0,u.castArray)(n).length,{blockType:v,isDisabled:b,rootClientId:k,isFirst:_,isLast:y,firstIndex:E,orientation:C="vertical"}=(0,m.useSelect)((e=>{const{getBlockIndex:t,getBlockRootClientId:i,getBlockOrder:s,getBlock:a,getBlockListSettings:c}=e(zn),d=(0,u.castArray)(n),p=(0,u.first)(d),m=i(p),f=t(p),g=t((0,u.last)(d)),h=s(m),v=a(p),b=0===f,k=g===h.length-1,{orientation:_}=c(m)||{};return{blockType:v?(0,r.getBlockType)(v.name):null,isDisabled:"up"===o?b:k,rootClientId:m,firstIndex:f,isFirst:b,isLast:k,orientation:l||_}}),[n,o]),{moveBlocksDown:S,moveBlocksUp:w}=(0,m.useDispatch)(zn),B="up"===o?w:S,x=`block-editor-block-mover-button__description-${f}`;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Button,i({ref:t,className:c()("block-editor-block-mover-button",`is-${o}-button`),icon:Kd(o,C),label:qd(o,C),"aria-describedby":x},a,{onClick:b?null:e=>{B(n,k),a.onClick&&a.onClick(e)},"aria-disabled":b})),(0,s.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},function(e,t,n,o,r,l,i){const s=n+1,a=e=>"up"===e?"horizontal"===i?(0,g.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?(0,g.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const l=t+1;return r<0&&n?(0,g.__)("Blocks cannot be moved up as they are already at the top"):r>0&&o?(0,g.__)("Blocks cannot be moved down as they are already at the bottom"):r<0&&!n?(0,g.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
31
  (0,g._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,l):r>0&&!o?(0,g.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
32
  (0,g._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,l):void 0}(e,n,o,r,l);if(o&&r)return(0,g.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
33
  (0,g.__)("Block %s is the only block, and cannot be moved"),t);if(l>0&&!r){const e=a("down");if("down"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
@@ -42,54 +42,59 @@ title:(0,g.__)("Reusable")};var kd=function(e){let{children:t,showPatterns:n=!1,
42
  (0,g.__)("Move %1$s block from position %2$d right to position %3$d"),t,s,s-1)}if(l<0&&o){const e=a("up");if("up"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
43
  (0,g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
44
  (0,g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
45
- (0,g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(h,v&&v.title,E,_,y,"up"===o?-1:1,C)))})),Xd=(0,s.forwardRef)(((e,t)=>(0,s.createElement)(Yd,i({direction:"up",ref:t},e)))),Zd=(0,s.forwardRef)(((e,t)=>(0,s.createElement)(Yd,i({direction:"down",ref:t},e))));var Qd=(0,m.withSelect)(((e,t)=>{var n;let{clientIds:o}=t;const{getBlock:l,getBlockIndex:i,getBlockListSettings:s,canMoveBlocks:a,getBlockOrder:c,getBlockRootClientId:d}=e(zn),p=(0,u.castArray)(o),m=(0,u.first)(p),f=l(m),g=d((0,u.first)(p)),h=i(m),v=0===h,b=i((0,u.last)(p))===c(g).length-1;return{blockType:f?(0,r.getBlockType)(f.name):null,canMove:a(o,g),rootClientId:g,firstIndex:h,isFirst:v,isLast:b,orientation:null===(n=s(g))||void 0===n?void 0:n.orientation}}))((function(e){let{isFirst:t,isLast:n,clientIds:o,canMove:r,isHidden:l,rootClientId:a,orientation:u,hideDragHandle:d}=e;const[m,f]=(0,s.useState)(!1),h=()=>f(!0),v=()=>f(!1);if(!r||t&&n&&!a)return null;const b=(0,g.__)("Drag");return(0,s.createElement)("div",{className:c()("block-editor-block-mover",{"is-visible":m||!l,"is-horizontal":"horizontal"===u})},!d&&(0,s.createElement)(zd,{clientIds:o,cloneClassname:"block-editor-block-mover__drag-clone"},(e=>(0,s.createElement)(p.Button,i({icon:_u,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:b,tabIndex:"-1"},e)))),(0,s.createElement)(p.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},(0,s.createElement)(p.ToolbarItem,{onFocus:h,onBlur:v},(e=>(0,s.createElement)(Xd,i({clientIds:o},e)))),(0,s.createElement)(p.ToolbarItem,{onFocus:h,onBlur:v},(e=>(0,s.createElement)(Zd,i({clientIds:o},e))))))}));const{clearTimeout:Jd,setTimeout:ep}=window,tp=200;function np(e){let{ref:t,isFocused:n,debounceTimeout:o=tp,onChange:r=u.noop}=e;const[l,i]=(0,s.useState)(!1),a=(0,s.useRef)(),c=e=>{null!=t&&t.current&&i(e),r(e)},d=()=>{const e=a.current;e&&Jd&&Jd(e)};return(0,s.useEffect)((()=>()=>d()),[]),{showMovers:l,debouncedShowMovers:e=>{e&&e.stopPropagation(),d(),l||c(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),d(),a.current=ep((()=>{(()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e})()&&c(!1)}),o)}}}function op(e){let{ref:t,debounceTimeout:n=tp,onChange:o=u.noop}=e;const[r,l]=(0,s.useState)(!1),{showMovers:i,debouncedShowMovers:a,debouncedHideMovers:c}=np({ref:t,debounceTimeout:n,isFocused:r,onChange:o}),d=(0,s.useRef)(!1),p=()=>(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement);return(0,s.useEffect)((()=>{const e=t.current,n=()=>{p()&&(l(!0),a())},o=()=>{p()||(l(!1),c())};return e&&!d.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),d.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}}),[t,d,l,a,c]),{showMovers:i,gestures:{onMouseMove:a,onMouseLeave:c}}}function rp(){const{selectBlock:e,toggleBlockHighlight:t}=(0,m.useDispatch)(zn),{firstParentClientId:n,shouldHide:o,hasReducedUI:l}=(0,m.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:l}=e(zn),{hasBlockSupport:i}=e(r.store),s=n(o()),a=s[s.length-1],c=t(a),u=(0,r.getBlockType)(c),d=l();return{firstParentClientId:a,shouldHide:!i(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}}),[]),a=Od(n),c=(0,s.useRef)(),{gestures:u}=op({ref:c,onChange(e){e&&l||t(n,e)}});return o||void 0===n?null:(0,s.createElement)("div",i({className:"block-editor-block-parent-selector",key:n,ref:c},u),(0,s.createElement)(p.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:(0,g.sprintf)(
46
  /* translators: %s: Name of the block's parent. */
47
- (0,g.__)("Select %s"),a.title),showTooltip:!0,icon:(0,s.createElement)(Wa,{icon:a.icon})}))}var lp=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function ip(e){let{blocks:t}=e;return(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,s.createElement)(p.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,g.__)("Preview")),(0,s.createElement)(gu,{viewportWidth:500,blocks:t})))))}var sp=e=>{let{className:t,possibleBlockTransformations:n,onSelect:o,blocks:l}=e;const[i,a]=(0,s.useState)();return(0,s.createElement)(p.MenuGroup,{label:(0,g.__)("Transform to"),className:t},i&&(0,s.createElement)(ip,{blocks:(0,r.switchToBlockType)(l,i)}),n.map((e=>{const{name:t,icon:n,title:l,isDisabled:i}=e;return(0,s.createElement)(p.MenuItem,{key:t,className:(0,r.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),o(t)},disabled:i,onMouseLeave:()=>a(null),onMouseEnter:()=>a(t)},(0,s.createElement)(Wa,{icon:n,showColors:!0}),l)})))},ap=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),cp=window.wp.tokenList,up=n.n(cp);function dp(e,t,n){const o=new(up())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function pp(e){return(0,u.find)(e,"isDefault")}function mp(e){let{clientId:t,onSwitch:n}=e;const{styles:o,block:l,blockType:i,className:a}=(0,m.useSelect)((e=>{const{getBlock:n}=e(zn),o=n(t);if(!o)return{};const l=(0,r.getBlockType)(o.name),{getBlockStyles:i}=e(r.store);return{block:o,blockType:l,styles:i(o.name),className:o.attributes.className||""}}),[t]),{updateBlockAttributes:c}=(0,m.useDispatch)(zn),d=function(e){return e&&0!==e.length?pp(e)?e:[{name:"default",label:(0,g._x)("Default","block style"),isDefault:!0},...e]:[]}(o),p=function(e,t){for(const n of new(up())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=(0,u.find)(e,{name:t});if(o)return o}return(0,u.find)(e,"isDefault")}(d,a),f=function(e,t){return(0,s.useMemo)((()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?(0,r.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,r.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(l,i);return{onSelect:e=>{const o=dp(a,p,e);c(t,{className:o}),n()},stylesToRender:d,activeStyle:p,genericPreviewBlock:f,className:a}}function fp(e){let{clientId:t,onSwitch:n=u.noop}=e;const{onSelect:o,stylesToRender:r,activeStyle:l}=mp({clientId:t,onSwitch:n});return r&&0!==r.length?(0,s.createElement)(s.Fragment,null,r.map((e=>{const t=e.label||e.name;return(0,s.createElement)(p.MenuItem,{key:e.name,icon:l.name===e.name?ap:null,onClick:()=>o(e)},(0,s.createElement)(p.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function gp(e){let{hoveredBlock:t,onSwitch:n}=e;const{clientId:o}=t;return(0,s.createElement)(p.MenuGroup,{label:(0,g.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,s.createElement)(fp,{clientId:o,onSwitch:n}))}const hp=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const{clientId:o,name:r,innerBlocks:l=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of l){const o=hp(e,t,n);if(o)return o}}},vp=(e,t)=>{const n=((e,t)=>{const n=(0,r.__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 bp(e){let{patterns:t,onSelect:n}=e;return(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,s.createElement)(p.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,g.__)("Preview")),(0,s.createElement)(kp,{patterns:t,onSelect:n})))))}function kp(e){let{patterns:t,onSelect:n}=e;const o=(0,p.__unstableUseCompositeState)();return(0,s.createElement)(p.__unstableComposite,i({},o,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,g.__)("Patterns list")}),t.map((e=>(0,s.createElement)(_p,{key:e.name,pattern:e,onSelect:n,composite:o}))))}function _p(e){let{pattern:t,onSelect:n,composite:o}=e;const r="block-editor-block-switcher__preview-patterns-container",l=(0,d.useInstanceId)(_p,`${r}-list__item-description`);return(0,s.createElement)("div",{className:`${r}-list__list-item`,"aria-label":t.title,"aria-describedby":t.description?l:void 0},(0,s.createElement)(p.__unstableCompositeItem,i({role:"option",as:"div"},o,{className:`${r}-list__item`,onClick:()=>n(t.transformedBlocks)}),(0,s.createElement)(gu,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),(0,s.createElement)("div",{className:`${r}-list__item-title`},t.title)),!!t.description&&(0,s.createElement)(p.VisuallyHidden,{id:l},t.description))}var yp=function(e){let{blocks:t,patterns:n,onSelect:o}=e;const[l,i]=(0,s.useState)(!1),a=((e,t)=>(0,s.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,r.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=hp(r,t.name,o);if(n){e=!0,o.add(n.clientId),vp(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]))(n,t);return a.length?(0,s.createElement)(p.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},l&&(0,s.createElement)(bp,{patterns:a,onSelect:o}),(0,s.createElement)(p.MenuItem,{onClick:e=>{e.preventDefault(),i(!l)},icon:Ud},(0,g.__)("Patterns"))):null};const Ep=e=>{let{clientIds:t,blocks:n}=e;const{replaceBlocks:o}=(0,m.useDispatch)(zn),l=Od(n[0].clientId),{possibleBlockTransformations:i,canRemove:a,hasBlockStyles:c,icon:d,blockTitle:f,patterns:h}=(0,m.useSelect)((e=>{var o;const{getBlockRootClientId:i,getBlockTransformItems:s,__experimentalGetPatternTransformItems:a}=e(zn),{getBlockStyles:c,getBlockType:d}=e(r.store),{canRemoveBlocks:p}=e(zn),m=i((0,u.castArray)(t)[0]),[{name:f}]=n,g=1===n.length,h=g&&c(f);let v;var b;g?v=null==l?void 0:l.icon:v=1===(0,u.uniq)(n.map((e=>{let{name:t}=e;return t}))).length?null===(b=d(f))||void 0===b?void 0:b.icon:lp;return{possibleBlockTransformations:s(n,m),canRemove:p(t,m),hasBlockStyles:!(null==h||!h.length),icon:v,blockTitle:null===(o=d(f))||void 0===o?void 0:o.title,patterns:a(n,m)}}),[t,n,null==l?void 0:l.icon]),v=1===n.length&&(0,r.isReusableBlock)(n[0]),b=1===n.length&&(0,r.isTemplatePart)(n[0]),k=!!i.length&&a,_=!(null==h||!h.length)&&a;if(!c&&!k)return(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(p.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:f,icon:(0,s.createElement)(Wa,{icon:d,showColors:!0})}));const y=f,E=1===n.length?(0,g.sprintf)(
1
+ !function(){var e={6411:function(e,t){var n,o;void 0===(o="function"==typeof(n=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,o=null,i=function(){e.clientWidth!==n&&d()},s=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),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",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",i,!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:s,update:d}),"vertical"===(a=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===a.resize&&(e.style.resize="horizontal"),t="content-box"===a.boxSizing?-(parseFloat(a.paddingTop)+parseFloat(a.paddingBottom)):parseFloat(a.borderTopWidth)+parseFloat(a.borderBottomWidth),isNaN(t)&&(t=0),d()}var a;function c(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 o=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+t+"px",n=e.clientWidth,o.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),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=l("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function s(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default})?n.apply(t,[e,t]):n)||(e.exports=o)},4403:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===l)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4827:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1198:function(e,t){"use strict";function n(){}function o(e,t,n,o,r){for(var l=0,i=t.length,s=0,a=0;l<i;l++){var c=t[l];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,l&&t[l-1].added){var u=t[l-1];t[l-1]=t[l],t[l]=u}}else{if(!c.added&&r){var d=n.slice(s,s+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var p=t[i-1];return i>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(t[i-2].value+=p.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=n.callback;"function"==typeof n&&(l=n,n={}),this.options=n;var i=this;function s(e){return l?(setTimeout((function(){l(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,c=e.length,u=1,d=a+c,p=[{newPos:-1,components:[]}],m=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=a&&m+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var l=void 0,d=p[n-1],m=p[n+1],f=(m?m.newPos:0)-n;d&&(p[n-1]=void 0);var g=d&&d.newPos+1<a,h=m&&0<=f&&f<c;if(g||h){if(!g||h&&d.newPos<m.newPos?(l=r(m),i.pushComponent(l.components,void 0,!0)):((l=d).newPos++,i.pushComponent(l.components,!0,void 0)),f=i.extractCommon(l,t,e,n),l.newPos+1>=a&&f+1>=c)return s(o(i,l.components,t,e,i.useLongestToken));p[n]=l}else p[n]=void 0}u++}if(l)!function e(){setTimeout((function(){if(u>d)return l();f()||e()}),0)}();else for(;u<=d;){var g=f();if(g)return g}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,l=n.length,i=e.newPos,s=i-o,a=0;i+1<r&&s+1<l&&this.equals(t[i+1],n[s+1]);)i++,s++,a++;return a&&e.components.push({count:a}),e.newPos=i,s},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("")}}},1973:function(e,t,n){"use strict";var o;t.Kx=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(1198))&&o.__esModule?o:{default:o}).default)},1345:function(e,t,n){"use strict";var o=n(5022);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,l=n.onlyScrollIfNeeded,i=n.alignWithTop,s=n.alignWithLeft,a=n.offsetTop||0,c=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var p=o.isWindow(t),m=!(!p||!t.frameElement),f=o.offset(e),g=o.outerHeight(e),h=o.outerWidth(e),v=void 0,b=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0,S=void 0,w=void 0,B=void 0;m&&(t=t.document.scrollingElement||t.document.body),p||m?(C=t,B=o.height(C),w=o.width(C),S={left:o.scrollLeft(C),top:o.scrollTop(C)},y={left:f.left-S.left-c,top:f.top-S.top-a},E={left:f.left+h-(S.left+w)+d,top:f.top+g-(S.top+B)+u},_=S):(v=o.offset(t),b=t.clientHeight,k=t.clientWidth,_={left:t.scrollLeft,top:t.scrollTop},y={left:f.left-(v.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-c,top:f.top-(v.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},E={left:f.left+h-(v.left+k+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:f.top+g-(v.top+b+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),y.top<0||E.top>0?!0===i?o.scrollTop(t,_.top+y.top):!1===i?o.scrollTop(t,_.top+E.top):y.top<0?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top):l||((i=void 0===i||!!i)?o.scrollTop(t,_.top+y.top):o.scrollTop(t,_.top+E.top)),r&&(y.left<0||E.left>0?!0===s?o.scrollLeft(t,_.left+y.left):!1===s?o.scrollLeft(t,_.left+E.left):y.left<0?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.left+E.left):l||((s=void 0===s||!!s)?o.scrollLeft(t,_.left+y.left):o.scrollLeft(t,_.left+E.left)))}},5425:function(e,t,n){"use strict";e.exports=n(1345)},5022:function(e){"use strict";var t=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},n="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 o(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 r(e){return o(e)}function l(e){return o(e,!0)}function i(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,l=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||l.clientLeft||0,top:o-=i.clientTop||l.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=r(o),t.top+=l(o),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),a=/^(top|right|bottom|left)$/,c=void 0;function u(e,t){for(var n=0;n<e.length;n++)t(e[n])}function d(e){return"border-box"===c(e,"boxSizing")}"undefined"!=typeof window&&(c=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,l=n||r.defaultView.getComputedStyle(e,null);return l&&(o=l.getPropertyValue(t)||l[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!a.test(t)){var o=e.style,r=o.left,l=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,o.left="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o.left=r,e.runtimeStyle.left=l}return""===n?"auto":n});var p=["margin","border","padding"];function m(e,t,n){var o={},r=e.style,l=void 0;for(l in t)t.hasOwnProperty(l)&&(o[l]=r[l],r[l]=t[l]);for(l in n.call(e),t)t.hasOwnProperty(l)&&(r[l]=o[l])}function f(e,t,n){var o=0,r=void 0,l=void 0,i=void 0;for(l=0;l<t.length;l++)if(r=t[l])for(i=0;i<n.length;i++){var s;s="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(c(e,s))||0}return o}function g(e){return null!=e&&e==e.window}var h={};function v(e,t,n){if(g(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,l=(c(e),d(e)),i=0;(null==r||r<=0)&&(r=void 0,(null==(i=c(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=l?1:-1);var s=void 0!==r||l,a=r||i;if(-1===n)return s?a-f(e,["border","padding"],o):i;if(s){var u=2===n?-f(e,["border"],o):f(e,["margin"],o);return a+(1===n?0:u)}return i+f(e,p.slice(n),o)}u(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,l=o.documentElement[n];return"CSS1Compat"===o.compatMode&&l||r&&r[n]||l}}));var b={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=v.apply(void 0,n):m(e,b,(function(){t=v.apply(void 0,n)})),t}function _(e,t,o){var r=o;if("object"!==(void 0===t?"undefined":n(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):c(e,t);for(var l in t)t.hasOwnProperty(l)&&_(e,l,t[l])}u(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,o){return void 0===o?t&&k(t,e,-1):t?(c(t),d(t)&&(o+=f(t,["padding","border"],n)),_(t,e,o)):void 0}})),e.exports=t({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return i(e);!function(e,t){"static"===_(e,"position")&&(e.style.position="relative");var n=i(e),o={},r=void 0,l=void 0;for(l in t)t.hasOwnProperty(l)&&(r=parseFloat(_(e,l))||0,o[l]=r+t[l]-n[l]);_(e,o)}(e,t)},isWindow:g,each:u,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return r(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return l(e);window.scrollTo(r(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},8575:function(e){"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}},9894:function(e,t,n){var o=n(4827);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 l=e.nodeName,i=document.createElement(l);i.innerHTML="&nbsp;","TEXTAREA"===l.toUpperCase()&&i.setAttribute("rows","1");var s=o(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},5372:function(e,t,n){"use strict";var o=n(9567);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var s=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 s.name="Invariant Violation",s}}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:l,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438: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 __)}),l=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 s=n(9196),a=n(2652),c=n(6411),u=n(9894),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",l({},a,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(p,l({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var o=n(5438);t.Z=o.TextareaAutosize},3124:function(e){var t=e.exports=function(e){return new n(e)};function n(e){this.value=e}function o(e,t,n){var o=[],i=[],u=!0;return function e(d){var p=n?r(d):d,m={},f=!0,g={node:p,node_:d,path:[].concat(o),parent:i[i.length-1],parents:i,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){g.isRoot||(g.parent.node[g.key]=e),g.node=e,t&&(f=!1)},delete:function(e){delete g.parent.node[g.key],e&&(f=!1)},remove:function(e){s(g.parent.node)?g.parent.node.splice(g.key,1):delete g.parent.node[g.key],e&&(f=!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(){u=!1},block:function(){f=!1}};if(!u)return g;function h(){if("object"==typeof g.node&&null!==g.node){g.keys&&g.node_===g.node||(g.keys=l(g.node)),g.isLeaf=0==g.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===d){g.circular=i[e];break}}else g.isLeaf=!0,g.keys=null;g.notLeaf=!g.isLeaf,g.notRoot=!g.isRoot}h();var v=t.call(g,g.node);return void 0!==v&&g.update&&g.update(v),m.before&&m.before.call(g,g.node),f?("object"!=typeof g.node||null===g.node||g.circular||(i.push(g),h(),a(g.keys,(function(t,r){o.push(t),m.pre&&m.pre.call(g,g.node[t],t);var l=e(g.node[t]);n&&c.call(g.node,t)&&(g.node[t]=l.node),l.isLast=r==g.keys.length-1,l.isFirst=0==r,m.post&&m.post.call(g,l),o.pop()})),i.pop()),m.after&&m.after.call(g,g.node),g):g}(e).node}function r(e){if("object"==typeof e&&null!==e){var t;if(s(e))t=[];else if("[object Date]"===i(e))t=new Date(e.getTime?e.getTime():e);else if("[object RegExp]"===i(e))t=new RegExp(e);else if(function(e){return"[object Error]"===i(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===i(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===i(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===i(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 a(l(e),(function(n){t[n]=e[n]})),t}return e}n.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o)){t=void 0;break}t=t[o]}return t},n.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!c.call(t,o))return!1;t=t[o]}return!0},n.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];c.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},n.prototype.map=function(e){return o(this.value,e,!0)},n.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},n.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},n.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},n.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},n.prototype.clone=function(){var e=[],t=[];return function n(o){for(var i=0;i<e.length;i++)if(e[i]===o)return t[i];if("object"==typeof o&&null!==o){var s=r(o);return e.push(o),t.push(s),a(l(o),(function(e){s[e]=n(o[e])})),e.pop(),t.pop(),s}return o}(this.value)};var l=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function i(e){return Object.prototype.toString.call(e)}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};a(l(n.prototype),(function(e){t[e]=function(t){var o=[].slice.call(arguments,1),r=new n(t);return r[e].apply(r,o)}}));var c=Object.hasOwnProperty||function(e,t){return t in e}},9196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{AlignmentControl:function(){return zh},AlignmentToolbar:function(){return Vh},Autocomplete:function(){return Wh},BlockAlignmentControl:function(){return zo},BlockAlignmentToolbar:function(){return Vo},BlockBreadcrumb:function(){return Yh},BlockColorsStyleSelector:function(){return ev},BlockContextProvider:function(){return ur},BlockControls:function(){return Yn},BlockEdit:function(){return fr},BlockEditorKeyboardShortcuts:function(){return C_},BlockEditorProvider:function(){return Ya},BlockFormatControls:function(){return qn},BlockIcon:function(){return ja},BlockInspector:function(){return b_},BlockList:function(){return km},BlockMover:function(){return ep},BlockNavigationDropdown:function(){return _v},BlockPreview:function(){return vu},BlockSelectionClearer:function(){return Qa},BlockSettingsMenu:function(){return jp},BlockSettingsMenuControls:function(){return Gp},BlockStyles:function(){return Sv},BlockTitle:function(){return Vd},BlockToolbar:function(){return Kp},BlockTools:function(){return k_},BlockVerticalAlignmentControl:function(){return $v},BlockVerticalAlignmentToolbar:function(){return jv},ButtonBlockAppender:function(){return Nd},ButtonBlockerAppender:function(){return Td},ColorPalette:function(){return qv},ColorPaletteControl:function(){return Yv},ContrastChecker:function(){return gf},CopyHandler:function(){return Pp},DefaultBlockAppender:function(){return Id},FontSizePicker:function(){return rg},InnerBlocks:function(){return gm},Inserter:function(){return Bd},InspectorAdvancedControls:function(){return tr},InspectorControls:function(){return nr},JustifyContentControl:function(){return ho},JustifyToolbar:function(){return vo},LineHeightControl:function(){return Vf},MediaPlaceholder:function(){return vk},MediaReplaceFlow:function(){return pk},MediaUpload:function(){return uk},MediaUploadCheck:function(){return dk},MultiSelectScrollIntoView:function(){return S_},NavigableToolbar:function(){return Wd},ObserveTyping:function(){return x_},PanelColorSettings:function(){return bk},PlainText:function(){return Wk},RichText:function(){return Hk},RichTextShortcut:function(){return Kk},RichTextToolbarButton:function(){return qk},SETTINGS_DEFAULTS:function(){return v},SkipToSelectedBlock:function(){return p_},ToolSelector:function(){return Zk},Typewriter:function(){return M_},URLInput:function(){return Hb},URLInputButton:function(){return t_},URLPopover:function(){return gk},Warning:function(){return hr},WritingFlow:function(){return ac},__experimentalBlockAlignmentMatrixControl:function(){return Kh},__experimentalBlockContentOverlay:function(){return Xh},__experimentalBlockFullHeightAligmentControl:function(){return jh},__experimentalBlockPatternSetup:function(){return Dv},__experimentalBlockPatternsList:function(){return Vu},__experimentalBlockVariationPicker:function(){return Bv},__experimentalBlockVariationTransforms:function(){return Fv},__experimentalBorderRadiusControl:function(){return qm},__experimentalBorderStyleControl:function(){return ef},__experimentalColorGradientControl:function(){return wm},__experimentalColorGradientSettingsDropdown:function(){return Bm},__experimentalDuotoneControl:function(){return ih},__experimentalFontAppearanceControl:function(){return zf},__experimentalFontFamilyControl:function(){return Xf},__experimentalGetBorderClassesAndStyles:function(){return kh},__experimentalGetColorClassesAndStyles:function(){return yh},__experimentalGetGradientClass:function(){return uf},__experimentalGetGradientObjectByGradientValue:function(){return pf},__experimentalGetMatchingVariation:function(){return Ov},__experimentalGetSpacingClassesAndStyles:function(){return Sh},__experimentalImageEditingProvider:function(){return wb},__experimentalImageEditor:function(){return Ab},__experimentalImageSizeControl:function(){return Ob},__experimentalImageURLInputUI:function(){return c_},__experimentalLayoutStyle:function(){return Mo},__experimentalLetterSpacingControl:function(){return Bg},__experimentalLibrary:function(){return y_},__experimentalLinkControl:function(){return sk},__experimentalLinkControlSearchInput:function(){return Jb},__experimentalLinkControlSearchItem:function(){return Wb},__experimentalLinkControlSearchResults:function(){return Kb},__experimentalListView:function(){return bv},__experimentalPanelColorGradientSettings:function(){return ob},__experimentalPreviewOptions:function(){return u_},__experimentalResponsiveBlockControl:function(){return jk},__experimentalTextDecorationControl:function(){return fg},__experimentalTextTransformControl:function(){return Eg},__experimentalToolsPanelColorDropdown:function(){return hf},__experimentalUnitControl:function(){return Qk},__experimentalUseBlockPreview:function(){return bu},__experimentalUseBorderProps:function(){return _h},__experimentalUseColorProps:function(){return Ch},__experimentalUseCustomSides:function(){return qg},__experimentalUseGradient:function(){return ff},__experimentalUseNoRecursiveRenders:function(){return A_},__experimentalUseResizeCanvas:function(){return d_},__unstableBlockSettingsMenuFirstItem:function(){return Op},__unstableEditorStyles:function(){return mu},__unstableIframe:function(){return dc},__unstableInserterMenuExtension:function(){return gd},__unstableRichTextInputEvent:function(){return Yk},__unstableUseBlockSelectionClearer:function(){return Za},__unstableUseClipboardHandler:function(){return Np},__unstableUseMouseMoveTypingReset:function(){return B_},__unstableUseTypewriter:function(){return P_},__unstableUseTypingObserver:function(){return I_},createCustomColorsHOC:function(){return Th},getColorClassName:function(){return Pm},getColorObjectByAttributeValues:function(){return Tm},getColorObjectByColorValue:function(){return Nm},getFontSize:function(){return tg},getFontSizeClass:function(){return og},getFontSizeObjectByValue:function(){return ng},getGradientSlugByValue:function(){return mf},getGradientValueBySlug:function(){return df},getPxFromCssUnit:function(){return $_},store:function(){return zn},storeConfig:function(){return Fn},transformStyles:function(){return uu},useBlockDisplayInformation:function(){return zd},useBlockEditContext:function(){return Un},useBlockProps:function(){return Aa},useCachedTruthy:function(){return wh},useInnerBlocksProps:function(){return fm},useSetting:function(){return mo},withColorContext:function(){return Kv},withColors:function(){return Nh},withFontSizes:function(){return Mh}});var e={};n.r(e),n.d(e,{__experimentalGetActiveBlockIdByBlockNames:function(){return xt},__experimentalGetAllowedBlocks:function(){return at},__experimentalGetAllowedPatterns:function(){return pt},__experimentalGetBlockListSettingsForBlocks:function(){return bt},__experimentalGetDirectInsertBlock:function(){return ct},__experimentalGetLastBlockAttributeChanges:function(){return yt},__experimentalGetParsedPattern:function(){return ut},__experimentalGetPatternTransformItems:function(){return ft},__experimentalGetPatternsByBlockTypes:function(){return mt},__experimentalGetReusableBlockTitle:function(){return kt},__unstableGetBlockWithoutInnerBlocks:function(){return W},__unstableGetClientIdWithClientIdsTree:function(){return j},__unstableGetClientIdsTree:function(){return K},__unstableIsLastBlockChangeIgnored:function(){return _t},areInnerBlocksControlled:function(){return It},canInsertBlockType:function(){return qe},canInsertBlocks:function(){return Ye},canMoveBlock:function(){return Qe},canMoveBlocks:function(){return Je},canRemoveBlock:function(){return Xe},canRemoveBlocks:function(){return Ze},didAutomaticChange:function(){return wt},getAdjacentBlockClientId:function(){return pe},getBlock:function(){return U},getBlockAttributes:function(){return G},getBlockCount:function(){return Q},getBlockHierarchyRootClientId:function(){return ue},getBlockIndex:function(){return Ie},getBlockInsertionPoint:function(){return He},getBlockListSettings:function(){return gt},getBlockMode:function(){return Le},getBlockName:function(){return V},getBlockOrder:function(){return Be},getBlockParents:function(){return ae},getBlockParentsByBlockName:function(){return ce},getBlockRootClientId:function(){return se},getBlockSelectionEnd:function(){return ne},getBlockSelectionStart:function(){return te},getBlockTransformItems:function(){return it},getBlocks:function(){return $},getBlocksByClientId:function(){return Z},getClientIdsOfDescendants:function(){return q},getClientIdsWithDescendants:function(){return Y},getDraggedBlockClientIds:function(){return Oe},getFirstMultiSelectedBlockClientId:function(){return ke},getGlobalBlockCount:function(){return X},getInserterItems:function(){return lt},getLastMultiSelectedBlockClientId:function(){return _e},getLowestCommonAncestorWithSelectedBlock:function(){return de},getMultiSelectedBlockClientIds:function(){return ve},getMultiSelectedBlocks:function(){return be},getMultiSelectedBlocksEndClientId:function(){return we},getMultiSelectedBlocksStartClientId:function(){return Se},getNextBlockClientId:function(){return fe},getPreviousBlockClientId:function(){return me},getSelectedBlock:function(){return ie},getSelectedBlockClientId:function(){return le},getSelectedBlockClientIds:function(){return he},getSelectedBlockCount:function(){return oe},getSelectedBlocksInitialCaretPosition:function(){return ge},getSelectionEnd:function(){return ee},getSelectionStart:function(){return J},getSettings:function(){return ht},getTemplate:function(){return We},getTemplateLock:function(){return $e},hasBlockMovingClientId:function(){return St},hasInserterItems:function(){return st},hasMultiSelection:function(){return Pe},hasSelectedBlock:function(){return re},hasSelectedInnerBlock:function(){return Te},isAncestorBeingDragged:function(){return ze},isAncestorMultiSelected:function(){return Ce},isBlockBeingDragged:function(){return Fe},isBlockHighlighted:function(){return Bt},isBlockInsertionPointVisible:function(){return Ge},isBlockMultiSelected:function(){return Ee},isBlockSelected:function(){return xe},isBlockValid:function(){return H},isBlockWithinSelection:function(){return Ne},isCaretWithinFormattedText:function(){return Ve},isDraggingBlocks:function(){return De},isFirstMultiSelectedBlock:function(){return ye},isLastBlockChangePersistent:function(){return vt},isMultiSelecting:function(){return Me},isNavigationMode:function(){return Ct},isSelectionEnabled:function(){return Re},isTyping:function(){return Ae},isValidTemplate:function(){return Ue},wasBlockJustInserted:function(){return Tt}});var t={};n.r(t),n.d(t,{__unstableMarkAutomaticChange:function(){return xn},__unstableMarkLastChangeAsPersistent:function(){return Bn},__unstableMarkNextChangeAsNotPersistent:function(){return In},__unstableSaveReusableBlock:function(){return wn},clearSelectedBlock:function(){return jt},duplicateBlocks:function(){return Pn},enterFormattedText:function(){return bn},exitFormattedText:function(){return kn},flashBlock:function(){return An},hideInsertionPoint:function(){return ln},insertAfterBlock:function(){return Rn},insertBeforeBlock:function(){return Mn},insertBlock:function(){return nn},insertBlocks:function(){return on},insertDefaultBlock:function(){return En},mergeBlocks:function(){return cn},moveBlockToPosition:function(){return tn},moveBlocksDown:function(){return Qt},moveBlocksToPosition:function(){return en},moveBlocksUp:function(){return Jt},multiSelect:function(){return $t},receiveBlocks:function(){return Ot},removeBlock:function(){return dn},removeBlocks:function(){return un},replaceBlock:function(){return Xt},replaceBlocks:function(){return Yt},replaceInnerBlocks:function(){return pn},resetBlocks:function(){return Lt},resetSelection:function(){return Dt},selectBlock:function(){return Vt},selectNextBlock:function(){return Gt},selectPreviousBlock:function(){return Ht},selectionChange:function(){return yn},setBlockMovingClientId:function(){return Nn},setHasControlledInnerBlocks:function(){return Dn},setNavigationMode:function(){return Tn},setTemplateValidity:function(){return sn},showInsertionPoint:function(){return rn},startDraggingBlocks:function(){return hn},startMultiSelect:function(){return Ut},startTyping:function(){return fn},stopDraggingBlocks:function(){return vn},stopMultiSelect:function(){return Wt},stopTyping:function(){return gn},synchronizeTemplate:function(){return an},toggleBlockHighlight:function(){return Ln},toggleBlockMode:function(){return mn},toggleSelection:function(){return Kt},updateBlock:function(){return zt},updateBlockAttributes:function(){return Ft},updateBlockListSettings:function(){return Cn},updateSettings:function(){return Sn},validateBlocksToTemplate:function(){return At}});var r=window.wp.blocks,l=window.wp.hooks;function i(){return(i=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)}(0,l.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,r.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var s=window.wp.element,a=n(4403),c=n.n(a),u=window.lodash,d=window.wp.compose,p=window.wp.components,m=window.wp.data,f={default:(0,p.createSlotFill)("BlockControls"),block:(0,p.createSlotFill)("BlockControlsBlock"),inline:(0,p.createSlotFill)("BlockFormatControls"),other:(0,p.createSlotFill)("BlockControlsOther"),parent:(0,p.createSlotFill)("BlockControlsParent")},g=window.wp.i18n;const h={insertUsage:{}},v={alignWide:!1,supportsLayout:!0,colors:[{name:(0,g.__)("Black"),slug:"black",color:"#000000"},{name:(0,g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,g.__)("White"),slug:"white",color:"#ffffff"},{name:(0,g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,g._x)("Small","font size name"),size:13,slug:"small"},{name:(0,g._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,g._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,g._x)("Large","font size name"),size:36,slug:"large"},{name:(0,g._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,g.__)("Thumbnail")},{slug:"medium",name:(0,g.__)("Medium")},{slug:"large",name:(0,g.__)("Large")},{slug:"full",name:(0,g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__experimentalGenerateAnchors:!1,__unstableGalleryWithImageBlocks:!1,gradients:[{name:(0,g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function b(e,t,n){return[...e.slice(0,n),...(0,u.castArray)(t),...e.slice(n)]}function k(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=[...e];return r.splice(t,o),b(r,e.slice(t,t+o),n)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={[t]:[]};return e.forEach((e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,_(r,o))})),n}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(((e,n)=>Object.assign(e,{[n.clientId]:t},y(n.innerBlocks,n.clientId))),{})}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.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 C(e){return E(e,(e=>(0,u.omit)(e,"attributes")))}function S(e){return E(e,(e=>e.attributes))}function w(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&(0,u.isEqual)(e.clientIds,t.clientIds)&&function(e,t){return(0,u.isEqual)((0,u.keys)(e),(0,u.keys)(t))}(e.attributes,t.attributes)}function B(e,t){const n={},o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n[e.clientId]={};for(const t of r)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map((e=>n[e.clientId]))});return n}function I(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=new Set([]),l=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){l.add(n);break}r.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of r)t[e]={...t[e]};for(const n of r)t[n].innerBlocks=(e.order[n]||[]).map((e=>t[e]));for(const n of l)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map((e=>t[e]))};return t}const x=(0,u.flow)(m.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=(0,u.mapValues)(t.attributes,((n,r)=>{const{name:l}=t.byClientId[r];return"core/block"===l&&n.ref===e?{...n,ref:o}:n}))}return e(t,n)}),(e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=B(o,n.blocks);o.tree=I(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=I(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce(((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes[t]},e)),{});o.tree=I(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=B(o,n.blocks);o.tree=I(o,{...(0,u.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e)))),...e},n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||r.push(t.parents[e]);o.tree=I(o,o.tree,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents[r]||""!==t.parents[r]&&!o.byClientId[t.parents[r]]||e.push(t.parents[r]);o.tree=I(o,(0,u.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e)))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=I(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=I(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=(0,u.keys)((0,u.omitBy)(o.attributes,((e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId)));o.tree=I(o,{...o.tree,...e.reduce(((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes[t],innerBlocks:o.tree[t].innerBlocks},e)),{})},e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let l=r;return n.blocks.length&&(l=e(l,{...n,type:"INSERT_BLOCKS",index:0}),l.order={...l.order,...(0,u.reduce)(o,((e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e)),{})}),l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:C(n.blocks),attributes:S(n.blocks),order:_(n.blocks),parents:y(n.blocks),controlledInnerBlocks:{}},o=B(e,n.blocks);return e.tree={...o,"":{innerBlocks:n.blocks.map((e=>o[e.clientId]))}},e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!i){var s;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(s=null==o?void 0:o.isPersistentChange)||void 0===s||s;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!w(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...C(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=(0,u.omit)(t.updates,"attributes");return(0,u.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...(0,u.omit)(e,t.replacedClientIds),...C(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},attributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...S(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]:(0,u.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,((t,n,r)=>{var l,i;return n!==t[r]&&((t=(l=e[o])===(i=t)?{...l}: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?{...(0,u.omit)(e,t.replacedClientIds),...S(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},order(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":{const n=_(t.blocks);return{...e,...(0,u.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=_(t.blocks,n),{index:l=o.length}=t;return{...e,...r,[n]:b(o,r[n],l)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:l=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:k(e[o],t,l,r.length)}}return{...e,[n]:(0,u.without)(e[n],...r),[o]:b(e[o],r,l)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=e[o];if(!l.length||r===(0,u.first)(l))return e;const i=l.indexOf(r);return{...e,[o]:k(l,i,i-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=(0,u.first)(n),l=(0,u.last)(n),i=e[o];if(!i.length||l===(0,u.last)(i))return e;const s=i.indexOf(r);return{...e,[o]:k(i,s,s+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=_(t.blocks);return(0,u.flow)([e=>(0,u.omit)(e,t.replacedClientIds),e=>({...e,...(0,u.omit)(o,"")}),e=>(0,u.mapValues)(e,(e=>(0,u.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(0,u.flow)([e=>(0,u.omit)(e,t.removedClientIds),e=>(0,u.mapValues)(e,(e=>(0,u.without)(e,...t.removedClientIds)))])(e)}return e},parents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_BLOCKS":return{...e,...y(t.blocks)};case"INSERT_BLOCKS":return{...e,...y(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{...(0,u.omit)(e,t.replacedClientIds),...y(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return(0,u.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,clientId:n,hasControlledInnerBlocks:o}=arguments.length>1?arguments[1]:void 0;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var N,P,M=(0,m.combineReducers)({blocks:x,isTyping:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.startOffset},selectionEnd:{clientId:o.clientId,attributeKey:o.attributeKey,offset:o.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:l}=o;return{selectionStart:r,selectionEnd:l};case"MULTI_SELECT":const{start:i,end:s}=o;return{selectionStart:{clientId:i},selectionEnd:{clientId:s}};case"RESET_BLOCKS":const a=null==n||null===(e=n.selectionStart)||void 0===e?void 0:e.clientId,c=null==n||null===(t=n.selectionEnd)||void 0===t?void 0:t.clientId;if(!a&&!c)return n;if(!o.blocks.some((e=>e.clientId===a)))return{selectionStart:{},selectionEnd:{}};if(!o.blocks.some((e=>e.clientId===c)))return{...n,selectionEnd:n.selectionStart}}return{selectionStart:T(n.selectionStart,o),selectionEnd:T(n.selectionEnd,o)}},isMultiSelecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return(0,u.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?(0,u.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?(0,u.omit)(e,n):e}}return e},insertionPoint:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:l}=n,i=(0,m.select)(r.store).getActiveBlockVariation(l,o);let s=null!=i&&i.name?`${l}/${i.name}`:l;const a={name:s};return"core/block"===l&&(a.ref=o.ref,s+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[s]:{time:t.time,count:e.insertUsage[s]?e.insertUsage[s].count+1:1,insert:a}}}}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return null},isNavigationMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case"INSERT_BLOCKS":return n.blocks.length?{clientId:n.blocks[0].clientId,source:null===(e=n.meta)||void 0===e?void 0:e.source}:t;case"RESET_BLOCKS":return{}}return t}});function R(e){return[e]}function L(){var e={clear:function(){e.head=null}};return e}function A(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}function D(e,t){var n,o;function r(){n=P?new WeakMap:L()}function l(){var n,r,l,i,s,a=arguments.length;for(i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];for(s=t.apply(null,i),(n=o(s)).isUniqueByDependants||(n.lastDependants&&!A(s,n.lastDependants,0)&&n.clear(),n.lastDependants=s),r=n.head;r;){if(A(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=R),o=P?function(e){var t,o,r,l,i,s=n,a=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){a=!1;break}s.has(o)?s=s.get(o):(r=new WeakMap,s.set(o,r),s=r)}return s.has(N)||((l=L()).isUniqueByDependants=a,s.set(N,l)),s.get(N)}:function(){return n},l.getDependants=t,l.clear=r,r(),l}N={},P="undefined"!=typeof WeakMap;var O=window.wp.primitives,F=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));const z=[];function V(e,t){const n=e.blocks.byClientId[t],o="core/social-link";if("web"!==s.Platform.OS&&(null==n?void 0:n.name)===o){const n=e.blocks.attributes[t],{service:r}=n;return r?`core/social-link-${r}`:o}return n?n.name:null}function H(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function G(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function U(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const W=D(((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:G(e,t)}:null}),((e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]));function $(e,t){var n;const o=t&&It(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||z}const j=D(((e,t)=>({clientId:t,innerBlocks:K(e,t)})),(e=>[e.blocks.order])),K=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(Be(e,t),(t=>j(e,t)))}),(e=>[e.blocks.order])),q=(e,t)=>(0,u.flatMap)(t,(t=>{const n=Be(e,t);return[...n,...q(e,n)]})),Y=D((e=>{const t=Be(e);return[...t,...q(e,t)]}),(e=>[e.blocks.order])),X=D(((e,t)=>{const n=Y(e);return t?(0,u.reduce)(n,((n,o)=>e.blocks.byClientId[o].name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),Z=D(((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>U(e,t)))),((e,t)=>(0,u.map)((0,u.castArray)(t),(t=>e.blocks.tree[t]))));function Q(e,t){return Be(e,t).length}function J(e){return e.selection.selectionStart}function ee(e){return e.selection.selectionEnd}function te(e){return e.selection.selectionStart.clientId}function ne(e){return e.selection.selectionEnd.clientId}function oe(e){return ve(e).length||(e.selection.selectionStart.clientId?1:0)}function re(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function le(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function ie(e){const t=le(e);return t?U(e,t):null}function se(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const ae=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()}),(e=>[e.blocks.parents])),ce=D((function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=ae(e,t,o);return(0,u.map)((0,u.filter)((0,u.map)(r,(t=>({id:t,name:V(e,t)}))),(e=>{let{name:t}=e;return Array.isArray(n)?n.includes(t):t===n})),(e=>{let{id:t}=e;return t}))}),(e=>[e.blocks.parents]));function ue(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function de(e,t){const n=le(e),o=[...ae(e,t),t],r=[...ae(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)l=o[e];return l}function pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=le(e)),void 0===t&&(t=n<0?ke(e):_e(e)),!t)return null;const o=se(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r[o],i=l.indexOf(t),s=i+1*n;return s<0||s===l.length?null:l[s]}function me(e,t){return pe(e,t,-1)}function fe(e,t){return pe(e,t,1)}function ge(e){return e.initialPosition}const he=D((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return z;if(t.clientId===n.clientId)return[t.clientId];const o=se(e,t.clientId);if(null===o)return z;const r=Be(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function ve(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?z:he(e)}const be=D((e=>{const t=ve(e);return t.length?t.map((t=>U(e,t))):z}),(e=>[...he.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function ke(e){return(0,u.first)(ve(e))||null}function _e(e){return(0,u.last)(ve(e))||null}function ye(e,t){return ke(e)===t}function Ee(e,t){return-1!==ve(e).indexOf(t)}const Ce=D(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=se(e,n),o=Ee(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Se(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function we(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function Be(e,t){return e.blocks.order[t||""]||z}function Ie(e,t){return Be(e,se(e,t)).indexOf(t)}function xe(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function Te(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,u.some)(Be(e,t),(t=>xe(e,t)||Ee(e,t)||n&&Te(e,t,n)))}function Ne(e,t){if(!t)return!1;const n=ve(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function Pe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Me(e){return e.isMultiSelecting}function Re(e){return e.isSelectionEnabled}function Le(e,t){return e.blocksMode[t]||"visual"}function Ae(e){return e.isTyping}function De(e){return!!e.draggedBlocks.length}function Oe(e){return e.draggedBlocks}function Fe(e,t){return e.draggedBlocks.includes(t)}function ze(e,t){if(!De(e))return!1;const n=ae(e,t);return(0,u.some)(n,(t=>Fe(e,t)))}function Ve(e){return e.isCaretWithinFormattedText}function He(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=se(e,l)||void 0,n=Ie(e,r.clientId)+1):n=Be(e).length,{rootClientId:t,index:n}}function Ge(e){return null!==e.insertionPoint}function Ue(e){return e.template.isValid}function We(e){return e.settings.template}function $e(e,t){if(!t)return e.settings.templateLock;const n=gt(e,t);return n?n.templateLock:null}const je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,u.isBoolean)(e)?e:(0,u.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},Ke=function(e,t){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"==typeof t?(n=t,t=n.name):n=(0,r.getBlockType)(t),!n)return!1;const{allowedBlockTypes:i}=ht(e),s=je(i,t,!0);if(!s)return!1;const a=!!$e(e,o);if(a)return!1;const c=gt(e,o);if(o&&void 0===c)return!1;const u=null==c?void 0:c.allowedBlocks,d=je(u,t),p=n.parent,m=V(e,o),f=je(p,m),g=null===d&&null===f||!0===d||!0===f;return g?(0,l.applyFilters)("blockEditor.__unstableCanInsertBlockType",g,n,o,{getBlock:U.bind(null,e),getBlockParentsByBlockName:ce.bind(null,e)}):g},qe=D(Ke,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]));function Ye(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>qe(e,V(e,t),n)))}function Xe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=G(e,t);if(null===o)return!0;const{lock:r}=o,l=!!$e(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!l:!(null!=r&&r.remove)}function Ze(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>Xe(e,t,n)))}function Qe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=G(e,t);if(null===o)return;const{lock:r}=o,l="all"===$e(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!l:!(null!=r&&r.move)}function Je(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((t=>Qe(e,t,n)))}function et(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 tt=(e,t,n)=>!!(0,r.hasBlockSupport)(t,"inserter",!0)&&Ke(e,t.name,n),nt=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=et(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:ot(r,l)}},ot=(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}},rt=(e,t)=>{let{buildScope:n="inserter"}=t;return t=>{const o=t.name;let l=!1;(0,r.hasBlockSupport)(t.name,"multiple",!0)||(l=(0,u.some)(Z(e,Y(e)),{name:t.name}));const{time:i,count:s=0}=et(e,o)||{},a={id:o,name:t.name,title:t.title,icon:t.icon,isDisabled:l,frecency:ot(i,s)};if("transform"===n)return a;const c=(0,r.getBlockVariations)(t.name,"inserter");return{...a,initialAttributes:{},description:t.description,category:t.category,keywords:t.keywords,variations:c,example:t.example,utility:1}}},lt=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=rt(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,l=t=>{let n=F;if("web"===s.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,l=(0,r.getBlockType)(t+o);l&&(n=l.icon)}}const l=`core/block/${t.id}`,{time:i,count:a=0}=et(e,l)||{},c=ot(i,a);return{id:l,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:c}},i=(0,r.getBlockTypes)().filter((n=>tt(e,n,t))).map(n),a=Ke(e,"core/block",t)?Et(e).map(l):[],c=i.reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((e=>{let{isDefault:t}=e;return t}))||t.push(n),o.length){const r=nt(e,n);t.push(...o.map(r))}return t}),[]),u=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},{core:d,noncore:p}=c.reduce(u,{core:[],noncore:[]}),m=[...d,...p];return[...m,...a]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Et(e),(0,r.getBlockTypes)()])),it=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=rt(e,{buildScope:"transform"}),l=(0,r.getBlockTypes)().filter((t=>tt(e,t,n))).map(o),i=(0,u.mapKeys)(l,(e=>{let{name:t}=e;return t})),s=(0,r.getPossibleBlockTransformations)(t).reduce(((e,t)=>(i[null==t?void 0:t.name]&&e.push(i[t.name]),e)),[]),a=(0,u.orderBy)(s,(e=>i[e.name].frecency),"desc");return a}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),st=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(0,u.some)((0,r.getBlockTypes)(),(n=>tt(e,n,t)));if(n)return!0;const o=Ke(e,"core/block",t)&&Et(e).length>0;return o}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Et(e),(0,r.getBlockTypes)()])),at=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return(0,u.filter)((0,r.getBlockTypes)(),(n=>tt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,r.getBlockTypes)()])),ct=D((function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!o)return;const r=null===(t=e.blockListSettings[o])||void 0===t?void 0:t.__experimentalDefaultBlock,l=null===(n=e.blockListSettings[o])||void 0===n?void 0:n.__experimentalDirectInsert;return r&&l?"function"==typeof l?l(U(e,o))?r:null:r:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree[t]])),ut=D(((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find((e=>{let{name:n}=e;return n===t}));return n?{...n,blocks:(0,r.parse)(n.content)}:null}),(e=>[e.settings.__experimentalBlockPatterns])),dt=D((e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=ht(e);return t.filter((e=>{let{inserter:t=!0}=e;return!!t})).map((t=>{let{name:n}=t;return ut(e,n)})).filter((e=>{let{blocks:t}=e;return((e,t)=>{if((0,u.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!je(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach((e=>{n.push(e)}))}return!0})(t,n)}))}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes])),pt=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=dt(e),o=(0,u.filter)(n,(n=>{let{blocks:o}=n;return o.every((n=>{let{name:o}=n;return qe(e,o,t)}))}));return o}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]])),mt=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return z;const o=pt(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)=>[...pt.getDependants(e,t)])),ft=D((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return z;if(t.some((t=>{let{clientId:n,innerBlocks:o}=t;return o.length||It(e,n)})))return z;const o=Array.from(new Set(t.map((e=>{let{name:t}=e;return t}))));return mt(e,o,n)}),((e,t)=>[...mt.getDependants(e,t)]));function gt(e,t){return e.blockListSettings[t]}function ht(e){return e.settings}function vt(e){return e.blocks.isPersistentChange}const bt=D((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})}),(e=>[e.blockListSettings])),kt=D(((e,t)=>{var n;const o=(0,u.find)(Et(e),(e=>e.id===t));return o?null===(n=o.title)||void 0===n?void 0:n.raw:null}),(e=>[Et(e)]));function _t(e){return e.blocks.isIgnoredChange}function yt(e){return e.lastBlockAttributesChange}function Et(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:z}function Ct(e){return e.isNavigationMode}function St(e){return e.hasBlockMovingClientId}function wt(e){return!!e.automaticChangeStatus}function Bt(e,t){return e.highlightedBlock===t}function It(e,t){return!!e.blocks.controlledInnerBlocks[t]}const xt=D(((e,t)=>{if(!t.length)return null;const n=le(e);if(t.includes(V(e,n)))return n;const o=ve(e),r=ce(e,n||o[0],t);return r?(0,u.last)(r):null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function Tt(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var Nt=window.wp.a11y,Pt=window.wp.richText,Mt=window.wp.deprecated,Rt=n.n(Mt);const Lt=e=>t=>{let{dispatch:n}=t;n({type:"RESET_BLOCKS",blocks:e}),n(At(e))},At=e=>t=>{let{select:n,dispatch:o}=t;const l=n.getTemplate(),i=n.getTemplateLock(),s=!l||"all"!==i||(0,r.doBlocksMatchTemplate)(e,l);if(s!==n.isValidTemplate())return o.setTemplateValidity(s),s};function Dt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Ot(e){return Rt()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ft(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:(0,u.castArray)(e),attributes:t,uniqueByBlock:n}}function zt(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Ht=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getPreviousBlockClientId(e);r&&o.selectBlock(r,-1)},Gt=e=>t=>{let{select:n,dispatch:o}=t;const r=n.getNextBlockClientId(e);r&&o.selectBlock(r)};function Ut(){return{type:"START_MULTI_SELECT"}}function Wt(){return{type:"STOP_MULTI_SELECT"}}const $t=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o=>{let{select:r,dispatch:l}=o;if(r.getBlockRootClientId(e)!==r.getBlockRootClientId(t))return;l({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const i=r.getSelectedBlockCount();(0,Nt.speak)((0,g.sprintf)(
2
  /* translators: %s: number of selected blocks */
3
+ (0,g._n)("%s block selected.","%s blocks selected.",i),i),"assertive")}};function jt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Kt(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function qt(e,t){var n,o;const l=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(!(0,r.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!l[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:i={}}=e,s=l[n];return{...e,attributes:{...i,className:`${o||""} is-style-${s}`.trim()}}}))}const Yt=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0;return l=>{let{select:i,dispatch:s}=l;e=(0,u.castArray)(e),t=qt((0,u.castArray)(t),i.getSettings());const a=i.getBlockRootClientId((0,u.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,a))return}s({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),s((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()}))}};function Xt(e,t){return Yt(e,t)}const Zt=e=>(t,n)=>o=>{let{select:r,dispatch:l}=o;r.canMoveBlocks(t,n)&&l({type:e,clientIds:(0,u.castArray)(t),rootClientId:n})},Qt=Zt("MOVE_BLOCKS_DOWN"),Jt=Zt("MOVE_BLOCKS_UP"),en=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return r=>{let{select:l,dispatch:i}=r;if(l.canMoveBlocks(e,t)){if(t!==n){if(!l.canRemoveBlocks(e,t))return;if(!l.canInsertBlocks(e,n))return}i({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}}};function tn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;return en([e],t,n,o)}function nn(e,t,n,o,r){return on([e],t,n,o,0,r)}const on=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;return i=>{let{select:s,dispatch:a}=i;(0,u.isObject)(r)&&(l=r,r=0,Rt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=qt((0,u.castArray)(e),s.getSettings());const c=[];for(const t of e)s.canInsertBlockType(t.name,n)&&c.push(t);c.length&&a({type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})}};function rn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function ln(){return{type:"HIDE_INSERTION_POINT"}}function sn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const an=()=>e=>{let{select:t,dispatch:n}=e;n({type:"SYNCHRONIZE_TEMPLATE"});const o=t.getBlocks(),l=t.getTemplate(),i=(0,r.synchronizeBlocksWithTemplate)(o,l);n.resetBlocks(i)},cn=(e,t)=>n=>{let{select:o,dispatch:l}=n;const i=[e,t];l({type:"MERGE_BLOCKS",blocks:i});const[s,a]=i,c=o.getBlock(s),d=(0,r.getBlockType)(c.name);if(d&&!d.merge)return void l.selectBlock(c.clientId);const p=o.getBlock(a),m=(0,r.getBlockType)(p.name),{clientId:f,attributeKey:g,offset:h}=o.getSelectionStart(),v=(f===s?d:m).attributes[g],b=(f===s||f===a)&&void 0!==g&&void 0!==h&&!!v;v||("number"==typeof g?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 g):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const k=(0,r.cloneBlock)(c),_=(0,r.cloneBlock)(p);if(b){const e=f===s?k:_,t=e.attributes[g],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=v,l=(0,Pt.insert)((0,Pt.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),"†",h,h);e.attributes[g]=(0,Pt.toHTMLString)({value:l,multilineTag:n,preserveWhiteSpace:r})}const y=c.name===p.name?[_]:(0,r.switchToBlockType)(_,c.name);if(!y||!y.length)return;const E=d.merge(k.attributes,y[0].attributes);if(b){const e=(0,u.findKey)(E,(e=>"string"==typeof e&&-1!==e.indexOf("†"))),t=E[e],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=d.attributes[e],i=(0,Pt.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),s=i.text.indexOf("†"),a=(0,Pt.remove)(i,s,s+1),p=(0,Pt.toHTMLString)({value:a,multilineTag:n,preserveWhiteSpace:r});E[e]=p,l.selectionChange(c.clientId,e,s,s)}l.replaceBlocks([c.clientId,p.clientId],[{...c,attributes:{...c.attributes,...E}},...y.slice(1)],0)},un=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:r}=n;if(!e||!e.length)return;e=(0,u.castArray)(e);const l=o.getBlockRootClientId(e[0]);o.canRemoveBlocks(e,l)&&(t&&r.selectPreviousBlock(e[0]),r({type:"REMOVE_BLOCKS",clientIds:e}),r((e=>{let{select:t,dispatch:n}=e;if(t.getBlockCount()>0)return;const{__unstableHasCustomAppender:o}=t.getSettings();o||n.insertDefaultBlock()})))}};function dn(e,t){return un([e],t)}function pn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function mn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function fn(){return{type:"START_TYPING"}}function gn(){return{type:"STOP_TYPING"}}function hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function vn(){return{type:"STOP_DRAGGING_BLOCKS"}}function bn(){return{type:"ENTER_FORMATTED_TEXT"}}function kn(){return{type:"EXIT_FORMATTED_TEXT"}}function yn(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}const En=(e,t,n)=>o=>{let{dispatch:l}=o;const i=(0,r.getDefaultBlockName)();if(!i)return;const s=(0,r.createBlock)(i,e);return l.insertBlock(s,n,t)};function Cn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Sn(e){return{type:"UPDATE_SETTINGS",settings:e}}function wn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Bn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function In(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const xn=()=>e=>{let{dispatch:t}=e;t({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:n=(e=>setTimeout(e,100))}=window;n((()=>{t({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},Tn=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{dispatch:n}=t;n({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?(0,Nt.speak)((0,g.__)("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.")):(0,Nt.speak)((0,g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))}},Nn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{let{dispatch:n}=t;n({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Nt.speak)((0,g.__)("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."))}},Pn=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n=>{let{select:o,dispatch:l}=n;if(!e||!e.length)return;const i=o.getBlocksByClientId(e);if((0,u.some)(i,(e=>!e)))return;if(i.map((e=>e.name)).some((e=>!(0,r.hasBlockSupport)(e,"multiple",!0))))return;const s=o.getBlockRootClientId(e[0]),a=o.getBlockIndex((0,u.last)((0,u.castArray)(e))),c=i.map((e=>(0,r.__experimentalCloneSanitizedBlock)(e)));return l.insertBlocks(c,a+1,s,t),c.length>1&&t&&l.multiSelect((0,u.first)(c).clientId,(0,u.last)(c).clientId),c.map((e=>e.clientId))}},Mn=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l)},Rn=e=>t=>{let{select:n,dispatch:o}=t;if(!e)return;const r=n.getBlockRootClientId(e);if(n.getTemplateLock(r))return;const l=n.getBlockIndex(e);return o.insertDefaultBlock({},r,l+1)};function Ln(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const An=e=>async t=>{let{dispatch:n}=t;n(Ln(e,!0)),await new Promise((e=>setTimeout(e,150))),n(Ln(e,!1))};function Dn(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}const On="core/block-editor",Fn={reducer:M,selectors:e,actions:t},zn=(0,m.createReduxStore)(On,{...Fn,persist:["preferences"]});(0,m.registerStore)(On,{...Fn,persist:["preferences"]});const Vn={name:"",isSelected:!1},Hn=(0,s.createContext)(Vn),{Provider:Gn}=Hn;function Un(){return(0,s.useContext)(Hn)}function Wn(){const{isSelected:e,clientId:t,name:n}=Un();return(0,m.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(zn);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function $n(e){let{group:t="default",controls:n,children:o,__experimentalShareWithChildBlocks:l=!1}=e;const i=function(e,t){const n=Wn(),{clientId:o}=Un(),l=(0,m.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:l}=e(zn),{hasBlockSupport:i}=e(r.store);return t&&i(n(o),"__experimentalExposeControlsToChildren",!1)&&l(o)}),[t,o]);var i;return n?null===(i=f[e])||void 0===i?void 0:i.Fill:l?f.parent.Fill:null}(t,l);return i?(0,s.createElement)(p.__experimentalStyleProvider,{document:document},(0,s.createElement)(i,null,(e=>{const r=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolbarContext.Provider,{value:r},"default"===t&&(0,s.createElement)(p.ToolbarGroup,{controls:n}),o)}))):null}function jn(e){let{group:t="default",...n}=e;const o=(0,s.useContext)(p.__experimentalToolbarContext),r=f[t].Slot,l=(0,p.__experimentalUseSlot)(r.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===t?(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o})):(0,s.createElement)(p.ToolbarGroup,null,(0,s.createElement)(r,i({},n,{bubblesVirtually:!0,fillProps:o}))):null}const Kn=$n;Kn.Slot=jn;const qn=e=>(0,s.createElement)($n,i({group:"inline"},e));qn.Slot=e=>(0,s.createElement)(jn,i({group:"inline"},e));var Yn=Kn,Xn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),Zn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),Qn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"})),Jn=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),eo=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),to=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"})),no=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),oo=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),ro=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),lo=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),io=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),so=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"}));function ao(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split(",").map((e=>`.editor-styles-wrapper ${e} ${t}`)).join(",")}const co=["color","border","typography","spacing"],uo={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},po={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function mo(e){const{name:t}=Un();return(0,m.useSelect)((n=>{var o;if(co.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");const l=n(zn).getSettings(),i=(e=>po[e]||e)(e),s=`__experimentalFeatures.${i}`,a=`__experimentalFeatures.blocks.${t}.${i}`,c=null!==(o=(0,u.get)(l,a))&&void 0!==o?o:(0,u.get)(l,s);var d,p;if(void 0!==c)return r.__EXPERIMENTAL_PATHS_WITH_MERGE[i]?null!==(d=null!==(p=c.custom)&&void 0!==p?p:c.theme)&&void 0!==d?d:c.default:c;const m=uo[i]?uo[i](l):void 0;return void 0!==m?m:"typography.dropCap"===i||void 0}),[t,e])}const fo={left:no,center:oo,right:ro,"space-between":lo};var go=function(e){let{allowedControls:t=["left","center","right","space-between"],isCollapsed:n=!0,onChange:o,value:r,popoverProps:l,isToolbar:a}=e;const c=e=>{o(e===r?void 0:e)},u=r?fo[r]:fo.left,d=[{name:"left",icon:no,title:(0,g.__)("Justify items left"),isActive:"left"===r,onClick:()=>c("left")},{name:"center",icon:oo,title:(0,g.__)("Justify items center"),isActive:"center"===r,onClick:()=>c("center")},{name:"right",icon:ro,title:(0,g.__)("Justify items right"),isActive:"right"===r,onClick:()=>c("right")},{name:"space-between",icon:lo,title:(0,g.__)("Space between items"),isActive:"space-between"===r,onClick:()=>c("space-between")}],m=a?p.ToolbarGroup:p.ToolbarDropdownMenu,f=a?{isCollapsed:n}:{};return(0,s.createElement)(m,i({icon:u,popoverProps:l,label:(0,g.__)("Change items justification"),controls:d.filter((e=>t.includes(e.name)))},f))};function ho(e){return(0,s.createElement)(go,i({},e,{isToolbar:!1}))}function vo(e){return(0,s.createElement)(go,i({},e,{isToolbar:!0}))}const bo={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},ko={left:"flex-start",right:"flex-end",center:"center"},_o=["wrap","nowrap"];var yo={name:"flex",label:(0,g.__)("Flex"),inspectorControls:function(e){let{layout:t={},onChange:n}=e;const{allowOrientation:o=!0}=t;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Flex,null,(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Eo,{layout:t,onChange:n})),(0,s.createElement)(p.FlexItem,null,o&&(0,s.createElement)(So,{layout:t,onChange:n}))),(0,s.createElement)(Co,{layout:t,onChange:n}))},toolBarControls:function(e){let{layout:t={},onChange:n,layoutBlockSupport:o}=e;return null!=o&&o.allowSwitching?null:(0,s.createElement)(Yn,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(Eo,{layout:t,onChange:n,isToolbar:!0}))},save:function(e){var t,n;let{selector:o,layout:r,style:l}=e;const{orientation:i="horizontal"}=r,a=null!==mo("spacing.blockGap"),c=null!==(t=null==l||null===(n=l.spacing)||void 0===n?void 0:n.blockGap)&&void 0!==t?t:"var( --wp--style--block-gap, 0.5em )",u=bo[r.justifyContent]||bo.left,d=_o.includes(r.flexWrap)?r.flexWrap:"wrap",p=`\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tjustify-content: ${u};\n\t\t`,m=`\n\t\tflex-direction: column;\n\t\talign-items: ${ko[r.justifyContent]||ko.left};\n\t\t`;return(0,s.createElement)("style",null,`\n\t\t\t\t${ao(o)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tgap: ${a?c:"0.5em"};\n\t\t\t\t\tflex-wrap: ${d};\n\t\t\t\t\t${"horizontal"===i?p:m}\n\t\t\t\t}\n\n\t\t\t\t${ao(o,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function Eo(e){let{layout:t,onChange:n,isToolbar:o=!1}=e;const{justifyContent:r="left",orientation:l="horizontal"}=t,i=e=>{n({...t,justifyContent:e})},a=["left","center","right"];if("horizontal"===l&&a.push("space-between"),o)return(0,s.createElement)(ho,{allowedControls:a,value:r,onChange:i,popoverProps:{position:"bottom right",isAlternate:!0}});const c=[{value:"left",icon:no,label:(0,g.__)("Justify items left")},{value:"center",icon:oo,label:(0,g.__)("Justify items center")},{value:"right",icon:ro,label:(0,g.__)("Justify items right")}];return"horizontal"===l&&c.push({value:"space-between",icon:lo,label:(0,g.__)("Space between items")}),(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},(0,s.createElement)("legend",null,(0,g.__)("Justification")),(0,s.createElement)("div",null,c.map((e=>{let{value:t,icon:n,label:o}=e;return(0,s.createElement)(p.Button,{key:t,label:o,icon:n,isPressed:r===t,onClick:()=>i(t)})}))))}function Co(e){let{layout:t,onChange:n}=e;const{flexWrap:o="wrap"}=t;return(0,s.createElement)(p.ToggleControl,{label:(0,g.__)("Allow to wrap to multiple lines"),onChange:e=>{n({...t,flexWrap:e?"wrap":"nowrap"})},checked:"wrap"===o})}function So(e){let{layout:t,onChange:n}=e;const{orientation:o="horizontal"}=t;return(0,s.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},(0,s.createElement)("legend",null,(0,g.__)("Orientation")),(0,s.createElement)(p.Button,{label:"horizontal",icon:io,isPressed:"horizontal"===o,onClick:()=>n({...t,orientation:"horizontal"})}),(0,s.createElement)(p.Button,{label:"vertical",icon:so,isPressed:"vertical"===o,onClick:()=>n({...t,orientation:"vertical"})}))}var wo=function(e){let{icon:t,size:n=24,...o}=e;return(0,s.cloneElement)(t,{width:n,height:n,...o})};const Bo=[{name:"default",label:(0,g.__)("Flow"),inspectorControls:function(e){let{layout:t,onChange:n}=e;const{wideSize:o,contentSize:r}=t,l=(0,p.__experimentalUseCustomUnits)({availableUnits:mo("spacing.units")||["%","px","em","rem","vw"]});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,contentSize:e})},units:l}),(0,s.createElement)(wo,{icon:Qn})),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,s.createElement)(p.__experimentalUnitControl,{label:(0,g.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:e=>{e=0>parseFloat(e)?"0":e,n({...t,wideSize:e})},units:l}),(0,s.createElement)(wo,{icon:eo}))),(0,s.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},(0,s.createElement)(p.Button,{variant:"secondary",isSmall:!0,disabled:!r&&!o,onClick:()=>n({contentSize:void 0,wideSize:void 0,inherit:!1})},(0,g.__)("Reset"))),(0,s.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,g.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function(){return null},save:function(e){var t,n;let{selector:o,layout:r={},style:l}=e;const{contentSize:i,wideSize:a}=r,c=null!==mo("spacing.blockGap"),u=null!==(t=null==l||null===(n=l.spacing)||void 0===n?void 0:n.blockGap)&&void 0!==t?t:"var( --wp--style--block-gap )";let d=i||a?`\n\t\t\t\t\t${ao(o,"> :where(:not(.alignleft):not(.alignright))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\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\n\t\t\t\t\t${ao(o,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\n\t\t\t\t\t${ao(o,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return d+=`\n\t\t\t${ao(o,"> .alignleft")} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-right: 2em;\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t${ao(o,"> .alignright")} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-left: 2em;\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\n\t\t`,c&&(d+=`\n\t\t\t\t${ao(o,"> *")} {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t\t${ao(o,"> * + *")} {\n\t\t\t\t\tmargin-top: ${u};\n\t\t\t\t}\n\t\t\t`),(0,s.createElement)("style",null,d)},getOrientation:()=>"vertical",getAlignments(e){const t=function(e){const{contentSize:t,wideSize:n}=e,o={},r=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return r.test(t)&&(
4
  // translators: %s: container size (i.e. 600px etc)
5
  o.none=(0,g.sprintf)((0,g.__)("Max %s wide"),t)),r.test(n)&&(
6
  // translators: %s: container size (i.e. 600px etc)
7
+ o.wide=(0,g.sprintf)((0,g.__)("Max %s wide"),n)),o}(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}},yo];function Io(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return Bo.find((t=>t.name===e))}const xo={type:"default"},To=(0,s.createContext)(xo),No=To.Provider;function Po(){return(0,s.useContext)(To)}function Mo(e){let{layout:t={},...n}=e;const o=Io(t.type);return o?(0,s.createElement)(o.save,i({layout:t},n)):null}const Ro=["none","left","center","right","wide","full"],Lo=["wide","full"];function Ao(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro;e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=(0,m.useSelect)((e=>{const{getSettings:t}=e(zn),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}}),[]),o=Po(),r=Io(null==o?void 0:o.type),l=r.getAlignments(o);if(n){const t=l.filter((t=>{let{name:n}=t;return e.includes(n)}));return 1===t.length&&"none"===t[0].name?[]:t}if("default"!==r.name)return[];const{alignments:i=Ro}=o,s=e.filter((e=>(o.alignments||t||!Lo.includes(e))&&i.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?[]:s}const Do={none:{icon:Xn,title:(0,g.__)("None")},left:{icon:Zn,title:(0,g.__)("Align left")},center:{icon:Qn,title:(0,g.__)("Align center")},right:{icon:Jn,title:(0,g.__)("Align right")},wide:{icon:eo,title:(0,g.__)("Wide width")},full:{icon:to,title:(0,g.__)("Full width")}},Oo={isAlternate:!0};var Fo=function(e){let{value:t,onChange:n,controls:o,isToolbar:r,isCollapsed:l=!0}=e;const a=Ao(o);if(!a.length)return null;function u(e){n([t,"none"].includes(e)?void 0:e)}const d=Do[t],m=Do.none,f=r?p.ToolbarGroup:p.ToolbarDropdownMenu,h={popoverProps:Oo,icon:d?d.icon:m.icon,label:(0,g.__)("Align"),toggleProps:{describedBy:(0,g.__)("Change alignment")}},v=r||s.Platform.isNative?{isCollapsed:r?l:void 0,controls:a.map((e=>{let{name:n}=e;return{...Do[n],isActive:t===n||!t&&"none"===n,role:l?"menuitemradio":void 0,onClick:()=>u(n)}}))}:{children:e=>{let{onClose:n}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},a.map((e=>{let{name:o,info:r}=e;const{icon:l,title:i}=Do[o],a=o===t||!t&&"none"===o;return(0,s.createElement)(p.MenuItem,{key:o,icon:l,iconPosition:"left",className:c()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{u(o),n()},role:"menuitemradio",info:r},i)}))))}};return(0,s.createElement)(f,i({},h,v))};function zo(e){return(0,s.createElement)(Fo,i({},e,{isToolbar:!1}))}function Vo(e){return(0,s.createElement)(Fo,i({},e,{isToolbar:!0}))}const Ho=["left","center","right","wide","full"],Go=["wide","full"];function Uo(e){let t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?Ho.filter((t=>e.includes(t))):!0===e?[...Ho]:[],!o||!0===e&&!n?(0,u.without)(t,...Go):t}const Wo=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n}=t,o=Ao(Uo((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0))).map((e=>{let{name:t}=e;return t}));return(0,s.createElement)(s.Fragment,null,!!o.length&&(0,s.createElement)(Yn,{group:"block",__experimentalShareWithChildBlocks:!0},(0,s.createElement)(zo,{value:t.attributes.align,onChange:e=>{if(!e){var n,o;const l=(0,r.getBlockType)(t.name);(null==l||null===(n=l.attributes)||void 0===n||null===(o=n.align)||void 0===o?void 0:o.default)&&(e="")}t.setAttributes({align:e})},controls:o})),(0,s.createElement)(e,t))}),"withToolbarControls"),$o=(0,d.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:l}=o,a=Ao(Uo((0,r.getBlockSupport)(n,"align"),(0,r.hasBlockSupport)(n,"alignWide",!0)));if(void 0===l)return(0,s.createElement)(e,t);let c=t.wrapperProps;return a.some((e=>e.name===l))&&(c={...c,"data-align":l}),(0,s.createElement)(e,i({},t,{wrapperProps:c}))}));(0,l.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return(0,u.has)(e.attributes,["align","type"])||(0,r.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Ho,""]}}),e})),(0,l.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",$o),(0,l.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Wo),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Uo((0,r.getBlockSupport)(t,"align"),(0,r.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=c()(`align${o}`,e.className)),e})),(0,l.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return(0,u.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e})),window.wp.warning;var jo={default:(0,p.createSlotFill)("InspectorControls"),advanced:(0,p.createSlotFill)("InspectorAdvancedControls"),border:(0,p.createSlotFill)("InspectorControlsBorder"),color:(0,p.createSlotFill)("InspectorControlsColor"),dimensions:(0,p.createSlotFill)("InspectorControlsDimensions"),typography:(0,p.createSlotFill)("InspectorControlsTypography")};function Ko(e){var t;let{__experimentalGroup:n="default",children:o}=e;const r=Wn(),l=null===(t=jo[n])||void 0===t?void 0:t.Fill;return l?r?(0,s.createElement)(p.__experimentalStyleProvider,{document:document},(0,s.createElement)(l,null,(e=>{const t=(0,u.isEmpty)(e)?null:e;return(0,s.createElement)(p.__experimentalToolsPanelContext.Provider,{value:t},o)}))):null:("undefined"!=typeof process&&process.env,null)}const qo=e=>{if(!(0,u.isObject)(e)||Array.isArray(e))return e;const t=(0,u.pickBy)((0,u.mapValues)(e,qo),u.identity);return(0,u.isEmpty)(t)?void 0:t};function Yo(e,t,n){return(0,u.setWith)(e?(0,u.clone)(e):{},t,n,u.clone)}function Xo(e,t,n,o,r,l){var i;if((0,u.every)(e,(e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let s=null===(i=o[0])||void 0===i?void 0:i.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;var a;s=null===(a=o[r])||void 0===a?void 0:a.attributes}let c=n;return(0,u.forEach)(e,((e,n)=>{e&&t[n].forEach((e=>{const t=(0,u.get)(s,e);t&&(c={...c,attributes:Yo(c.attributes,e,t)})}))})),c}function Zo(e){let{children:t,group:n,label:o}=e;const{updateBlockAttributes:r}=(0,m.useDispatch)(zn),{getBlockAttributes:l,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:a,hasMultiSelection:c}=(0,m.useSelect)(zn),u=a(),d=(0,s.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={},n=c()?i():[u];n.forEach((n=>{const{style:o}=l(n);let r={style:o};e.forEach((e=>{r={...r,...e(r)}})),r={...r,style:qo(r.style)},t[n]=r})),r(n,t,!0)}),[qo,l,i,c,u,r]);return(0,s.createElement)(p.__experimentalToolsPanel,{className:`${n}-block-support-panel`,label:o,resetAll:d,key:u,panelId:u,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},t)}function Qo(e){let{Slot:t,...n}=e;const o=(0,s.useContext)(p.__experimentalToolsPanelContext);return(0,s.createElement)(t,i({},n,{fillProps:o,bubblesVirtually:!0}))}function Jo(e){var t;let{__experimentalGroup:n="default",label:o,...r}=e;const l=null===(t=jo[n])||void 0===t?void 0:t.Slot,a=(0,p.__experimentalUseSlot)(null==l?void 0:l.__unstableName);return l&&a?Boolean(a.fills&&a.fills.length)?o?(0,s.createElement)(Zo,{group:n,label:o},(0,s.createElement)(Qo,i({},r,{Slot:l}))):(0,s.createElement)(l,i({},r,{bubblesVirtually:!0})):null:("undefined"!=typeof process&&process.env,null)}const er=Ko;er.Slot=Jo;const tr=e=>(0,s.createElement)(Ko,i({},e,{__experimentalGroup:"advanced"}));tr.Slot=e=>(0,s.createElement)(Jo,i({},e,{__experimentalGroup:"advanced"})),tr.slotName="InspectorAdvancedControls";var nr=er;const or=/[\s#]/g,rr=(0,d.createHigherOrderComponent)((e=>t=>{if((0,r.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===s.Platform.OS,o=(0,s.createElement)(p.TextControl,{className:"html-anchor-control",label:(0,g.__)("HTML anchor"),help:(0,s.createElement)(s.Fragment,null,(0,g.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,s.createElement)(p.ExternalLink,{href:(0,g.__)("https://wordpress.org/support/article/page-jumps/")},(0,g.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,g.__)("Add an anchor"),onChange:e=>{e=e.replace(or,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),n&&(0,s.createElement)(nr,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&(0,s.createElement)(nr,null,(0,s.createElement)(p.PanelBody,{title:(0,g.__)("Heading settings")},o)))}return(0,s.createElement)(e,t)}),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return(0,u.has)(e.attributes,["anchor","type"])||(0,r.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",rr),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const lr=(0,d.createHigherOrderComponent)((e=>t=>(0,r.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,s.createElement)(s.Fragment,null,(0,s.createElement)(e,t),(0,s.createElement)(nr,{__experimentalGroup:"advanced"},(0,s.createElement)(p.TextControl,{autoComplete:"off",label:(0,g.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,g.__)("Separate multiple classes with spaces.")}))):(0,s.createElement)(e,t)),"withInspectorControl");(0,l.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,r.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,l.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",lr),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,r.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=c()(e.className,n.className)),e})),(0,l.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,r.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){var l;const o=null===(l=t[n])||void 0===l?void 0:l.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,l.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,r.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=(0,u.uniq)([(0,r.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=(0,r.getBlockDefaultClassName)(t.name)),e}));const ir=[{name:"padding",generate:(e,t)=>function(e,t,n,o){const r=(0,u.get)(e,["spacing","padding"]);if(!r)return[];const l=[];if("string"==typeof r)l.push({selector:t.selector,key:o,value:r});else{const e=["top","right","bottom","left"].reduce(((e,n)=>{const o=(0,u.get)(r,[n]);return o&&e.push({selector:t.selector,key:`padding${(0,u.upperFirst)(n)}`,value:o}),e}),[]);l.push(...e)}return l}(e,t,0,"padding")}];function sr(e,t){const n=[];return ir.forEach((o=>{n.push(...o.generate(e,t))})),n}var ar=window.wp.dom;const cr=(0,s.createContext)({});function ur(e){let{value:t,children:n}=e;const o=(0,s.useContext)(cr),r=(0,s.useMemo)((()=>({...o,...t})),[o,t]);return(0,s.createElement)(cr.Provider,{value:r,children:n})}var dr=cr;const pr={};var mr=(0,p.withFilters)("editor.BlockEdit")((e=>{const{attributes:t={},name:n}=e,o=(0,r.getBlockType)(n),l=(0,s.useContext)(dr),a=(0,s.useMemo)((()=>o&&o.usesContext?(0,u.pick)(l,o.usesContext):pr),[o,l]);if(!o)return null;const d=o.edit||o.save;if(o.apiVersion>1)return(0,s.createElement)(d,i({},e,{context:a}));const p=(0,r.hasBlockSupport)(o,"className",!0)?(0,r.getBlockDefaultClassName)(n):null,m=c()(p,t.className);return(0,s.createElement)(d,i({},e,{context:a,className:m}))}));function fr(e){const{name:t,isSelected:n,clientId:o}=e,r={name:t,isSelected:n,clientId:o};return(0,s.createElement)(Gn,{value:(0,s.useMemo)((()=>r),Object.values(r))},(0,s.createElement)(mr,e))}var gr=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),hr=function(e){let{className:t,actions:n,children:o,secondaryActions:r}=e;return(0,s.createElement)("div",{className:c()(t,"block-editor-warning")},(0,s.createElement)("div",{className:"block-editor-warning__contents"},(0,s.createElement)("p",{className:"block-editor-warning__message"},o),(s.Children.count(n)>0||r)&&(0,s.createElement)("div",{className:"block-editor-warning__actions"},s.Children.count(n)>0&&s.Children.map(n,((e,t)=>(0,s.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),r&&(0,s.createElement)(p.DropdownMenu,{className:"block-editor-warning__secondary",icon:gr,label:(0,g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,s.createElement)(p.MenuGroup,null,r.map(((e,t)=>(0,s.createElement)(p.MenuItem,{onClick:e.onClick,key:t},e.title)))))))))},vr=n(1973);function br(e){let{title:t,rawContent:n,renderedContent:o,action:r,actionText:l,className:i}=e;return(0,s.createElement)("div",{className:i},(0,s.createElement)("div",{className:"block-editor-block-compare__content"},(0,s.createElement)("h2",{className:"block-editor-block-compare__heading"},t),(0,s.createElement)("div",{className:"block-editor-block-compare__html"},n),(0,s.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,s.createElement)(s.RawHTML,null,(0,ar.safeHTML)(o)))),(0,s.createElement)("div",{className:"block-editor-block-compare__action"},(0,s.createElement)(p.Button,{variant:"secondary",tabIndex:"0",onClick:r},l)))}var kr=function(e){let{block:t,onKeep:n,onConvert:o,convertor:l,convertButtonText:i}=e;const a=(d=l(t),(0,u.castArray)(d).map((e=>(0,r.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var d;const p=(m=t.originalContent,f=a,(0,vr.Kx)(m,f).map(((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,s.createElement)("span",{key:t,className:n},e.value)})));var m,f;return(0,s.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,s.createElement)(br,{title:(0,g.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:(0,g.__)("Convert to HTML"),rawContent:t.originalContent,renderedContent:t.originalContent}),(0,s.createElement)(br,{title:(0,g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:o,actionText:i,rawContent:p,renderedContent:a}))};const _r=e=>(0,r.rawHandler)({HTML:e.originalContent});var yr=(0,d.compose)([(0,m.withSelect)(((e,t)=>{let{clientId:n}=t;return{block:e(zn).getBlock(n)}})),(0,m.withDispatch)(((e,t)=>{let{block:n}=t;const{replaceBlock:o}=e(zn);return{convertToClassic(){o(n.clientId,(e=>(0,r.createBlock)("core/freeform",{content:e.originalContent}))(n))},convertToHTML(){o(n.clientId,(e=>(0,r.createBlock)("core/html",{content:e.originalContent}))(n))},convertToBlocks(){o(n.clientId,_r(n))},attemptBlockRecovery(){o(n.clientId,(e=>{let{name:t,attributes:n,innerBlocks:o}=e;return(0,r.createBlock)(t,n,o)})(n))}}}))])((function(e){let{convertToHTML:t,convertToBlocks:n,convertToClassic:o,attemptBlockRecovery:l,block:i}=e;const a=!!(0,r.getBlockType)("core/html"),[c,u]=(0,s.useState)(!1),d=(0,s.useCallback)((()=>u(!0)),[]),m=(0,s.useCallback)((()=>u(!1)),[]),f=(0,s.useMemo)((()=>[{
8
  // translators: Button to fix block content
9
+ title:(0,g._x)("Resolve","imperative verb"),onClick:d},a&&{title:(0,g.__)("Convert to HTML"),onClick:t},{title:(0,g.__)("Convert to Classic Block"),onClick:o}].filter(Boolean)),[d,t,o]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(hr,{actions:[(0,s.createElement)(p.Button,{key:"recover",onClick:l,variant:"primary"},(0,g.__)("Attempt Block Recovery"))],secondaryActions:f},(0,g.__)("This block contains unexpected or invalid content.")),c&&(0,s.createElement)(p.Modal,{title:// translators: Dialog title to fix block content
10
+ (0,g.__)("Resolve Block"),onRequestClose:m,className:"block-editor-block-compare"},(0,s.createElement)(kr,{block:i,onKeep:t,onConvert:n,convertor:_r,convertButtonText:(0,g.__)("Convert to Blocks")})))}));const Er=(0,s.createElement)(hr,{className:"block-editor-block-list__block-crash-warning"},(0,g.__)("This block has encountered an error and cannot be previewed."));var Cr=()=>Er;class Sr extends s.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 wr=Sr,Br=n(773),Ir=function(e){let{clientId:t}=e;const[n,o]=(0,s.useState)(""),l=(0,m.useSelect)((e=>e(zn).getBlock(t)),[t]),{updateBlock:i}=(0,m.useDispatch)(zn);return(0,s.useEffect)((()=>{o((0,r.getBlockContent)(l))}),[l]),(0,s.createElement)(Br.Z,{className:"block-editor-block-list__block-html-textarea",value:n,onBlur:()=>{const e=(0,r.getBlockType)(l.name);if(!e)return;const s=(0,r.getBlockAttributes)(e,n,l.attributes),a=n||(0,r.getSaveContent)(e,s),c=!n||(0,r.isValidBlockContent)(e,s,a);i(t,{attributes:s,originalContent:a,isValid:c}),n||o({content:a})},onChange:e=>o(e.target.value)})};let xr=Ur();const Tr=e=>zr(e,xr);let Nr=Ur();Tr.write=e=>zr(e,Nr);let Pr=Ur();Tr.onStart=e=>zr(e,Pr);let Mr=Ur();Tr.onFrame=e=>zr(e,Mr);let Rr=Ur();Tr.onFinish=e=>zr(e,Rr);let Lr=[];Tr.setTimeout=(e,t)=>{let n=Tr.now()+t,o=()=>{let e=Lr.findIndex((e=>e.cancel==o));~e&&Lr.splice(e,1),$r.count-=~e?1:0},r={time:n,handler:e,cancel:o};return Lr.splice(Ar(n),0,r),$r.count+=1,Vr(),r};let Ar=e=>~(~Lr.findIndex((t=>t.time>e))||~Lr.length);Tr.cancel=e=>{xr.delete(e),Nr.delete(e)},Tr.sync=e=>{Fr=!0,Tr.batchedUpdates(e),Fr=!1},Tr.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,Tr.onStart(n)}return o.handler=e,o.cancel=()=>{Pr.delete(n),t=null},o};let Dr="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Tr.use=e=>Dr=e,Tr.now="undefined"!=typeof performance?()=>performance.now():Date.now,Tr.batchedUpdates=e=>e(),Tr.catch=console.error,Tr.frameLoop="always",Tr.advance=()=>{"demand"!==Tr.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Gr()};let Or=-1,Fr=!1;function zr(e,t){Fr?(t.delete(e),e(0)):(t.add(e),Vr())}function Vr(){Or<0&&(Or=0,"demand"!==Tr.frameLoop&&Dr(Hr))}function Hr(){~Or&&(Dr(Hr),Tr.batchedUpdates(Gr))}function Gr(){let e=Or;Or=Tr.now();let t=Ar(Or);t&&(Wr(Lr.splice(0,t),(e=>e.handler())),$r.count-=t),Pr.flush(),xr.flush(e?Math.min(64,Or-e):16.667),Mr.flush(),Nr.flush(),Rr.flush()}function Ur(){let e=new Set,t=e;return{add(n){$r.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>($r.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,$r.count-=t.size,Wr(t,(t=>t(n)&&e.add(t))),$r.count+=e.size,t=e)}}}function Wr(e,t){e.forEach((e=>{try{t(e)}catch(e){Tr.catch(e)}}))}const $r={count:0,clear(){Or=-1,Lr=[],Pr=Ur(),xr=Ur(),Mr=Ur(),Nr=Ur(),Rr=Ur(),$r.count=0}};var jr=n(9196),Kr=n.n(jr);function qr(){}const Yr={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Xr(e,t){if(Yr.arr(e)){if(!Yr.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Zr=(e,t)=>e.forEach(t);function Qr(e,t,n){for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const Jr=e=>Yr.und(e)?[]:Yr.arr(e)?e:[e];function el(e,t){if(e.size){const n=Array.from(e);e.clear(),Zr(n,t)}}const tl=(e,...t)=>el(e,(e=>e(...t)));let nl,ol,rl=null,ll=!1,il=qr;var sl=Object.freeze({__proto__:null,get createStringInterpolator(){return nl},get to(){return ol},get colors(){return rl},get skipAnimation(){return ll},get willAdvance(){return il},assign:e=>{e.to&&(ol=e.to),e.now&&(Tr.now=e.now),void 0!==e.colors&&(rl=e.colors),null!=e.skipAnimation&&(ll=e.skipAnimation),e.createStringInterpolator&&(nl=e.createStringInterpolator),e.requestAnimationFrame&&Tr.use(e.requestAnimationFrame),e.batchedUpdates&&(Tr.batchedUpdates=e.batchedUpdates),e.willAdvance&&(il=e.willAdvance),e.frameLoop&&(Tr.frameLoop=e.frameLoop)}});const al=new Set;let cl=[],ul=[],dl=0;const pl={get idle(){return!al.size&&!cl.length},start(e){dl>e.priority?(al.add(e),Tr.onStart(ml)):(fl(e),Tr(hl))},advance:hl,sort(e){if(dl)Tr.onFrame((()=>pl.sort(e)));else{const t=cl.indexOf(e);~t&&(cl.splice(t,1),gl(e))}},clear(){cl=[],al.clear()}};function ml(){al.forEach(fl),al.clear(),Tr(hl)}function fl(e){cl.includes(e)||gl(e)}function gl(e){cl.splice(function(t,n){const o=t.findIndex((t=>t.priority>e.priority));return o<0?t.length:o}(cl),0,e)}function hl(e){const t=ul;for(let n=0;n<cl.length;n++){const o=cl[n];dl=o.priority,o.idle||(il(o),o.advance(e),o.idle||t.push(o))}return dl=0,ul=cl,ul.length=0,cl=t,cl.length>0}const vl="[-+]?\\d*\\.?\\d+",bl=vl+"%";function kl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const _l=new RegExp("rgb"+kl(vl,vl,vl)),yl=new RegExp("rgba"+kl(vl,vl,vl,vl)),El=new RegExp("hsl"+kl(vl,bl,bl)),Cl=new RegExp("hsla"+kl(vl,bl,bl,vl)),Sl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wl=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bl=/^#([0-9a-fA-F]{6})$/,Il=/^#([0-9a-fA-F]{8})$/;function xl(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 Tl(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=xl(r,o,e+1/3),i=xl(r,o,e),s=xl(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*s)<<8}function Nl(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Pl(e){return(parseFloat(e)%360+360)%360/360}function Ml(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Rl(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ll(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Bl.exec(e))?parseInt(t[1]+"ff",16)>>>0:rl&&void 0!==rl[e]?rl[e]:(t=_l.exec(e))?(Nl(t[1])<<24|Nl(t[2])<<16|Nl(t[3])<<8|255)>>>0:(t=yl.exec(e))?(Nl(t[1])<<24|Nl(t[2])<<16|Nl(t[3])<<8|Ml(t[4]))>>>0:(t=Sl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Il.exec(e))?parseInt(t[1],16)>>>0:(t=wl.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=El.exec(e))?(255|Tl(Pl(t[1]),Rl(t[2]),Rl(t[3])))>>>0:(t=Cl.exec(e))?(Tl(Pl(t[1]),Rl(t[2]),Rl(t[3]))|Ml(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Al=(e,t,n)=>{if(Yr.fun(e))return e;if(Yr.arr(e))return Al({range:e,output:t,extrapolate:n});if(Yr.str(e.output[0]))return nl(e);const o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",s=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,s,a){let c=a?a(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}return o===r?o:t===n?e<=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,l[t],l[t+1],r[t],r[t+1],a,i,s,o.map)}};function Dl(){return(Dl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const Ol=Symbol.for("FluidValue.get"),Fl=Symbol.for("FluidValue.observers"),zl=e=>Boolean(e&&e[Ol]),Vl=e=>e&&e[Ol]?e[Ol]():e,Hl=e=>e[Fl]||null;function Gl(e,t){let n=e[Fl];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ul{constructor(e){if(this[Ol]=void 0,this[Fl]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Wl(this,e)}}const Wl=(e,t)=>Kl(e,Ol,t);function $l(e,t){if(e[Ol]){let n=e[Fl];n||Kl(e,Fl,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function jl(e,t){let n=e[Fl];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[Fl]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const Kl=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ql=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Yl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;let Xl;const Zl=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ql=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Jl=e=>{Xl||(Xl=rl?new RegExp(`(${Object.keys(rl).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Vl(e).replace(Yl,Ll).replace(Xl,Ll))),n=t.map((e=>e.match(ql).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Al(Dl({},e,{output:t}))));return e=>{let n=0;return t[0].replace(ql,(()=>String(o[n++](e)))).replace(Zl,Ql)}},ei="react-spring: ",ti=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ei}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},ni=ti(console.warn),oi=ti(console.warn);function ri(e){return Yr.str(e)&&("#"==e[0]||/\d/.test(e)||e in(rl||{}))}const li=e=>(0,jr.useEffect)(e,ii),ii=[];function si(){const e=(0,jr.useState)()[1],t=(0,jr.useState)(ai)[0];return li(t.unmount),()=>{t.current&&e({})}}function ai(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function ci(e){const t=(0,jr.useRef)();return(0,jr.useEffect)((()=>{t.current=e})),t.current}const ui="undefined"!=typeof window&&window.document&&window.document.createElement?jr.useLayoutEffect:jr.useEffect,di=Symbol.for("Animated:node"),pi=e=>e&&e[di],mi=(e,t)=>{return n=e,o=di,r=t,Object.defineProperty(n,o,{value:r,writable:!0,configurable:!0});var n,o,r},fi=e=>e&&e[di]&&e[di].getPayload();class gi{constructor(){this.payload=void 0,mi(this,this)}getPayload(){return this.payload||[]}}class hi extends gi{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Yr.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new hi(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Yr.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Yr.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class vi extends hi{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Al({output:[e,e]})}static create(e){return new vi(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Yr.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Al({output:[this.getValue(),e]})),this._value=0,super.reset()}}const bi={dependencies:null};class ki extends gi{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qr(this.source,((n,o)=>{var r;(r=n)&&r[di]===r?t[o]=n.getValue(e):zl(n)?t[o]=Vl(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Zr(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Qr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){bi.dependencies&&zl(e)&&bi.dependencies.add(e);const t=fi(e);t&&Zr(t,(e=>this.add(e)))}}class _i extends ki{constructor(e){super(e)}static create(e){return new _i(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(yi)),!0)}}function yi(e){return(ri(e)?vi:hi).create(e)}function Ei(e){const t=pi(e);return t?t.constructor:Yr.arr(e)?_i:ri(e)?vi:hi}function Ci(){return(Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const Si=(e,t)=>{const n=!Yr.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,jr.forwardRef)(((o,r)=>{const l=(0,jr.useRef)(null),i=n&&(0,jr.useCallback)((e=>{l.current=function(e,t){return e&&(Yr.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[s,a]=function(e,t){const n=new Set;return bi.dependencies=n,e.style&&(e=Ci({},e,{style:t.createAnimatedStyle(e.style)})),e=new ki(e),bi.dependencies=null,[e,n]}(o,t),c=si(),u=()=>{const e=l.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},d=new wi(u,a),p=(0,jr.useRef)();ui((()=>{const e=p.current;p.current=d,Zr(a,(e=>$l(e,d))),e&&(Zr(e.deps,(t=>jl(t,e))),Tr.cancel(e.update))})),(0,jr.useEffect)(u,[]),li((()=>()=>{const e=p.current;Zr(e.deps,(t=>jl(t,e)))}));const m=t.getComponentProps(s.getValue());return jr.createElement(e,Ci({},m,{ref:i}))}))};class wi{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Tr.write(this.update)}}const Bi=Symbol.for("AnimatedComponent"),Ii=e=>Yr.str(e)?e:e&&Yr.str(e.displayName)?e.displayName:Yr.fun(e)&&e.name||null;function xi(){return(xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function Ti(e,...t){return Yr.fun(e)?e(...t):e}const Ni=(e,t)=>!0===e||!!(t&&e&&(Yr.fun(e)?e(t):Jr(e).includes(t))),Pi=(e,t)=>Yr.obj(e)?t&&e[t]:e,Mi=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ri=e=>e,Li=(e,t=Ri)=>{let n=Ai;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const n=t(e[r],r);Yr.und(n)||(o[r]=n)}return o},Ai=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Di={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Oi(e){const t=function(e){const t={};let n=0;if(Qr(e,((e,o)=>{Di[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Qr(e,((e,o)=>o in t||(n[o]=e))),n}return xi({},e)}function Fi(e){return e=Vl(e),Yr.arr(e)?e.map(Fi):ri(e)?sl.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zi(e){for(const t in e)return!0;return!1}function Vi(e){return Yr.fun(e)||Yr.arr(e)&&Yr.obj(e[0])}function Hi(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Gi(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const Ui=xi({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class Wi{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Ui)}}function $i(e,t){if(Yr.und(t.decay)){const n=!Yr.und(t.tension)||!Yr.und(t.friction);!n&&Yr.und(t.frequency)&&Yr.und(t.damping)&&Yr.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const ji=[];class Ki{constructor(){this.changed=!1,this.values=ji,this.toValues=null,this.fromValues=ji,this.to=void 0,this.from=void 0,this.config=new Wi,this.immediate=!1}}function qi(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,s)=>{var a;let c,u,d=Ni(null!=(a=n.cancel)?a:null==o?void 0:o.cancel,t);if(d)f();else{Yr.und(n.pause)||(r.paused=Ni(n.pause,t));let e=null==o?void 0:o.pause;!0!==e&&(e=r.paused||Ni(e,t)),c=Ti(n.delay||0,t),e?(r.resumeQueue.add(m),l.pause()):(l.resume(),m())}function p(){r.resumeQueue.add(m),r.timeouts.delete(u),u.cancel(),c=u.time-Tr.now()}function m(){c>0?(u=Tr.setTimeout(f,c),r.pauseQueue.add(p),r.timeouts.add(u)):f()}function f(){r.pauseQueue.delete(p),r.timeouts.delete(u),e<=(r.cancelId||0)&&(d=!0);try{l.start(xi({},n,{callId:e,cancel:d}),i)}catch(e){s(e)}}}))}const Yi=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qi(e.get()):t.every((e=>e.noop))?Xi(e.get()):Zi(e.get(),t.every((e=>e.finished))),Xi=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Zi=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qi=e=>({value:e,cancelled:!0,finished:!1});function Ji(e,t,n,o){const{callId:r,parentId:l,onRest:i}=t,{asyncTo:s,promise:a}=n;return l||e!==s||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=Li(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=r<=(n.cancelId||0)&&Qi(o)||r!==n.asyncId&&Zi(o,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const l=new ts,i=new ns;return(async()=>{if(sl.skipAnimation)throw es(n),i.result=Zi(o,!1),d(i),i;m(l);const s=Yr.obj(e)?xi({},e):xi({},t,{to:e});s.parentId=r,Qr(c,((e,t)=>{Yr.und(s[t])&&(s[t]=e)}));const a=await o.start(s);return m(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),a})()};let g;if(sl.skipAnimation)return es(n),Zi(o,!1);try{let t;t=Yr.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,o.stop.bind(o))),await Promise.all([t.then(u),p]),g=Zi(o.get(),!0,!1)}catch(e){if(e instanceof ts)g=e.result;else{if(!(e instanceof ns))throw e;g=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?s:void 0,n.promise=l?a:void 0)}return Yr.fun(i)&&Tr.batchedUpdates((()=>{i(g,o,o.item)})),g})():a}function es(e,t){el(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class ts extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class ns extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const os=e=>e instanceof ls;let rs=1;class ls extends Ul{constructor(...e){super(...e),this.id=rs++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=pi(this);return e&&e.getValue()}to(...e){return sl.to(this,e)}interpolate(...e){return ni(`${ei}The "interpolate" function is deprecated in v9 (use "to" instead)`),sl.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Gl(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pl.sort(this),Gl(this,{type:"priority",parent:this,priority:e})}}const is=Symbol.for("SpringPhase"),ss=e=>(1&e[is])>0,as=e=>(2&e[is])>0,cs=e=>(4&e[is])>0,us=(e,t)=>t?e[is]|=3:e[is]&=-3,ds=(e,t)=>t?e[is]|=4:e[is]&=-5;class ps extends ls{constructor(e,t){if(super(),this.key=void 0,this.animation=new Ki,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Yr.und(e)||!Yr.und(t)){const n=Yr.obj(e)?xi({},e):xi({},t,{from:e});Yr.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(as(this)||this._state.asyncTo)||cs(this)}get goal(){return Vl(this.animation.to)}get velocity(){const e=pi(this);return e instanceof hi?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ss(this)}get isAnimating(){return as(this)}get isPaused(){return cs(this)}advance(e){let t=!0,n=!1;const o=this.animation;let{config:r,toValues:l}=o;const i=fi(o.to);!i&&zl(o.to)&&(l=Jr(Vl(o.to))),o.values.forEach(((s,a)=>{if(s.done)return;const c=s.constructor==vi?1:i?i[a].lastPosition:l[a];let u=o.immediate,d=c;if(!u){if(d=s.lastPosition,r.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=o.fromValues[a],l=null!=s.v0?s.v0:s.v0=Yr.arr(r.velocity)?r.velocity[a]:r.velocity;let i;if(Yr.und(r.duration))if(r.decay){const e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*t);d=n+l/(1-e)*(1-o),u=Math.abs(s.lastPosition-d)<.1,i=l*o}else{i=null==s.lastVelocity?l:s.lastVelocity;const t=r.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n))),o=r.restVelocity||t/10,a=r.clamp?0:r.bounce,p=!Yr.und(a),m=n==c?s.v0>0:n<c;let f,g=!1;const h=1,v=Math.ceil(e/h);for(let e=0;e<v&&(f=Math.abs(i)>o,f||(u=Math.abs(c-d)<=t,!u));++e)p&&(g=d==c||d>c==m,g&&(i=-i*a,d=c)),i+=(1e-6*-r.tension*(d-c)+.001*-r.friction*i)/r.mass*h,d+=i*h}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,s.durationProgress>0&&(s.elapsedTime=r.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(r.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),d=n+r.easing(o)*(c-n),i=(d-s.lastPosition)/e,u=1==o}s.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[a].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,r.round)&&(n=!0)}));const s=pi(this),a=s.getValue();if(t){const e=Vl(o.to);a===e&&!n||r.decay?n&&r.decay&&this._onChange(a):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(a)}set(e){return Tr.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(as(this)){const{to:e,config:t}=this.animation;Tr.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Yr.und(e)?(n=this.queue||[],this.queue=[]):n=[Yr.obj(e)?e:xi({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Yi(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),es(this._state,e&&this._lastCallId),Tr.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=Yr.obj(n)?n[t]:n,(null==n||Vi(n))&&(n=void 0),o=Yr.obj(o)?o[t]:o,null==o&&(o=void 0);const r={to:n,from:o};return ss(this)||(e.reverse&&([n,o]=[o,n]),o=Vl(o),Yr.und(o)?pi(this)||this._set(n):this._set(o)),r}_update(e,t){let n=xi({},e);const{key:o,defaultProps:r}=this;n.default&&Object.assign(r,Li(n,((e,t)=>/^on/.test(t)?Pi(e,o):e))),ks(this,n,"onProps"),_s(this,"onProps",n,this);const l=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return qi(++this._lastCallId,{key:o,props:n,defaultProps:r,state:i,actions:{pause:()=>{cs(this)||(ds(this,!0),tl(i.pauseQueue),_s(this,"onPause",Zi(this,ms(this,this.animation.to)),this))},resume:()=>{cs(this)&&(ds(this,!1),as(this)&&this._resume(),tl(i.resumeQueue),_s(this,"onResume",Zi(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=fs(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qi(this));const o=!Yr.und(e.to),r=!Yr.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(Qi(this));this._lastToId=t.callId}const{key:l,defaultProps:i,animation:s}=this,{to:a,from:c}=s;let{to:u=a,from:d=c}=e;!r||o||t.default&&!Yr.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!Xr(d,c);p&&(s.from=d),d=Vl(d);const m=!Xr(u,a);m&&this._focus(u);const f=Vi(t.to),{config:g}=s,{decay:h,velocity:v}=g;(o||r)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&($i(n=xi({},n),t),t=xi({},n,t)),$i(e,t),Object.assign(e,t);for(const t in Ui)null==e[t]&&(e[t]=Ui[t]);let{mass:o,frequency:r,damping:l}=e;Yr.und(r)||(r<.01&&(r=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*l*o/r)}(g,Ti(t.config,l),t.config!==i.config?Ti(i.config,l):void 0);let b=pi(this);if(!b||Yr.und(u))return n(Zi(this,!0));const k=Yr.und(t.reset)?r&&!t.default:!Yr.und(d)&&Ni(t.reset,l),_=k?d:this.get(),y=Fi(u),E=Yr.num(y)||Yr.arr(y)||ri(y),C=!f&&(!E||Ni(i.immediate||t.immediate,l));if(m){const e=Ei(u);if(e!==b.constructor){if(!C)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(y)}}const S=b.constructor;let w=zl(u),B=!1;if(!w){const e=k||!ss(this)&&p;(m||e)&&(B=Xr(Fi(_),y),w=!B),(Xr(s.immediate,C)||C)&&Xr(g.decay,h)&&Xr(g.velocity,v)||(w=!0)}if(B&&as(this)&&(s.changed&&!k?w=!0:w||this._stop(a)),!f&&((w||zl(a))&&(s.values=b.getPayload(),s.toValues=zl(u)?null:S==vi?[1]:Jr(y)),s.immediate!=C&&(s.immediate=C,C||k||this._set(a)),w)){const{onRest:e}=s;Zr(bs,(e=>ks(this,t,e)));const o=Zi(this,ms(this,a));tl(this._pendingCalls,o),this._pendingCalls.add(n),s.changed&&Tr.batchedUpdates((()=>{s.changed=!k,null==e||e(o,this),k?Ti(i.onRest,o):null==s.onStart||s.onStart(o,this)}))}k&&this._set(_),f?n(Ji(t.to,t,this._state,this)):w?this._start():as(this)&&!m?this._pendingCalls.add(n):n(Xi(_))}_focus(e){const t=this.animation;e!==t.to&&(Hl(this)&&this._detach(),t.to=e,Hl(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;zl(t)&&($l(t,this),os(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;zl(e)&&jl(e,this)}_set(e,t=!0){const n=Vl(e);if(!Yr.und(n)){const e=pi(this);if(!e||!Xr(n,e.getValue())){const o=Ei(n);e&&e.constructor==o?e.setValue(n):mi(this,o.create(n)),e&&Tr.batchedUpdates((()=>{this._onChange(n,t)}))}}return pi(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,_s(this,"onStart",Zi(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ti(this.animation.onChange,e,this)),Ti(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;pi(this).reset(Vl(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),as(this)||(us(this,!0),cs(this)||this._resume())}_resume(){sl.skipAnimation?this.finish():pl.start(this)}_stop(e,t){if(as(this)){us(this,!1);const n=this.animation;Zr(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Gl(this,{type:"idle",parent:this});const o=t?Qi(this.get()):Zi(this.get(),ms(this,null!=e?e:n.to));tl(this._pendingCalls,o),n.changed&&(n.changed=!1,_s(this,"onRest",o,this))}}}function ms(e,t){const n=Fi(t);return Xr(Fi(e.get()),n)}function fs(e,t=e.loop,n=e.to){let o=Ti(t);if(o){const r=!0!==o&&Oi(o),l=(r||e).reverse,i=!r||r.reset;return gs(xi({},e,{loop:t,default:!1,pause:void 0,to:!l||Vi(n)?n:void 0,from:i?e.from:void 0,reset:i},r))}}function gs(e){const{to:t,from:n}=e=Oi(e),o=new Set;return Yr.obj(t)&&vs(t,o),Yr.obj(n)&&vs(n,o),e.keys=o.size?Array.from(o):null,e}function hs(e){const t=gs(e);return Yr.und(t.default)&&(t.default=Li(t)),t}function vs(e,t){Qr(e,((e,n)=>null!=e&&t.add(n)))}const bs=["onStart","onRest","onChange","onPause","onResume"];function ks(e,t,n){e.animation[n]=t[n]!==Mi(t,n)?Pi(t[n],e.key):void 0}function _s(e,t,...n){var o,r,l,i;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(l=(i=e.defaultProps)[t])||l.call(i,...n)}const ys=["onStart","onChange","onRest"];let Es=1;class Cs{constructor(e,t){this.id=Es++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(xi({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Yr.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(gs(e)),this}start(e){let{queue:t}=this;return e?t=Jr(e).map(gs):this.queue=[],this._flush?this._flush(this,t):(Ns(this,t),Ss(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Zr(Jr(t),(t=>n[t].stop(!!e)))}else es(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Yr.und(e))this.start({pause:!0});else{const t=this.springs;Zr(Jr(e),(e=>t[e].pause()))}return this}resume(e){if(Yr.und(e))this.start({pause:!1});else{const t=this.springs;Zr(Jr(e),(e=>t[e].resume()))}return this}each(e){Qr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,el(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&el(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,el(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Tr.onFrame(this._onFrame)}}function Ss(e,t){return Promise.all(t.map((t=>ws(e,t)))).then((t=>Yi(e,t)))}async function ws(e,t,n){const{keys:o,to:r,from:l,loop:i,onRest:s,onResolve:a}=t,c=Yr.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);const u=Yr.arr(r)||Yr.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Zr(ys,(n=>{const o=t[n];if(Yr.fun(o)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,tl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===Mi(t,"cancel");(u||m&&d.asyncId)&&p.push(qi(++e._lastAsyncId,{props:t,state:d,actions:{pause:qr,resume:qr,start(t,n){m?(es(d,e._lastAsyncId),n(Qi(e))):(t.onRest=s,n(Ji(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Yi(e,await Promise.all(p));if(i&&f.finished&&(!n||!f.noop)){const n=fs(t,i,r);if(n)return Ns(e,[n]),ws(e,n,!0)}return a&&Tr.batchedUpdates((()=>a(f,e,e.item))),f}function Bs(e,t){const n=xi({},e.springs);return t&&Zr(Jr(t),(e=>{Yr.und(e.keys)&&(e=gs(e)),Yr.obj(e.to)||(e=xi({},e,{to:void 0})),Ts(n,e,(e=>xs(e)))})),Is(e,n),n}function Is(e,t){Qr(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,$l(t,e))}))}function xs(e,t){const n=new ps;return n.key=e,t&&$l(n,t),n}function Ts(e,t,n){t.keys&&Zr(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Ns(e,t){Zr(t,(t=>{Ts(e.springs,t,(t=>xs(t,e)))}))}const Ps=["children"],Ms=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,Ps);const o=(0,jr.useContext)(Rs),r=n.pause||!!o.pause,l=n.immediate||!!o.immediate;n=function(e,t){const[n]=(0,jr.useState)((()=>({inputs:t,result:e()}))),o=(0,jr.useRef)(),r=o.current;let l=r;return l?Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs))||(l={inputs:t,result:e()}):l=n,(0,jr.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:r,immediate:l})),[r,l]);const{Provider:i}=Rs;return jr.createElement(i,{value:n},t)},Rs=(Ls=Ms,As={},Object.assign(Ls,jr.createContext(As)),Ls.Provider._context=Ls,Ls.Consumer._context=Ls,Ls);var Ls,As;Ms.Provider=Rs.Provider,Ms.Consumer=Rs.Consumer;const Ds=()=>{const e=[],t=function(t){oi(`${ei}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const o=[];return Zr(e,((e,r)=>{if(Yr.und(t))o.push(e.start());else{const l=n(t,e,r);l&&o.push(e.start(l))}})),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Zr(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Zr(e,(e=>e.resume(...arguments))),this},t.set=function(t){Zr(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Zr(e,((e,o)=>{if(Yr.und(t))n.push(e.start());else{const r=this._getProps(t,e,o);r&&n.push(e.start(r))}})),n},t.stop=function(){return Zr(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Zr(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Yr.fun(e)?e(n,t):e};return t._getProps=n,t};function Os(e,t,n){const o=Yr.fun(t)&&t;o&&!n&&(n=[]);const r=(0,jr.useMemo)((()=>o||3==arguments.length?Ds():void 0),[]),l=(0,jr.useRef)(0),i=si(),s=(0,jr.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Bs(e,t);return l.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?Ss(e,t):new Promise((o=>{Is(e,n),s.queue.push((()=>{o(Ss(e,t))})),i()}))}})),[]),a=(0,jr.useRef)([...s.ctrls]),c=[],u=ci(e)||0;function d(e,n){for(let r=e;r<n;r++){const e=a.current[r]||(a.current[r]=new Cs(null,s.flush)),n=o?o(r,e):t[r];n&&(c[r]=hs(n))}}(0,jr.useMemo)((()=>{Zr(a.current.slice(e,u),(e=>{Hi(e,r),e.stop(!0)})),a.current.length=e,d(u,e)}),[e]),(0,jr.useMemo)((()=>{d(0,Math.min(u,e))}),n);const p=a.current.map(((e,t)=>Bs(e,c[t]))),m=(0,jr.useContext)(Ms),f=ci(m),g=m!==f&&zi(m);ui((()=>{l.current++,s.ctrls=a.current;const{queue:e}=s;e.length&&(s.queue=[],Zr(e,(e=>e()))),Zr(a.current,((e,t)=>{null==r||r.add(e),g&&e.start({default:m});const n=c[t];n&&(Gi(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),li((()=>()=>{Zr(s.ctrls,(e=>e.stop(!0)))}));const h=p.map((e=>xi({},e)));return r?[h,r]:h}let Fs;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Fs||(Fs={}));class zs extends ls{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Al(...t);const n=this._get(),o=Ei(n);mi(this,o.create(n))}advance(e){const t=this._get();Xr(t,this.get())||(pi(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Hs(this._active)&&Gs(this)}_get(){const e=Yr.arr(this.source)?this.source.map(Vl):Jr(Vl(this.source));return this.calc(...e)}_start(){this.idle&&!Hs(this._active)&&(this.idle=!1,Zr(fi(this),(e=>{e.done=!1})),sl.skipAnimation?(Tr.batchedUpdates((()=>this.advance())),Gs(this)):pl.start(this))}_attach(){let e=1;Zr(Jr(this.source),(t=>{zl(t)&&$l(t,this),os(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Zr(Jr(this.source),(e=>{zl(e)&&jl(e,this)})),this._active.clear(),Gs(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Jr(this.source).reduce(((e,t)=>Math.max(e,(os(t)?t.priority:0)+1)),0))}}function Vs(e){return!1!==e.idle}function Hs(e){return!e.size||Array.from(e).every(Vs)}function Gs(e){e.idle||(e.idle=!0,Zr(fi(e),(e=>{e.done=!0})),Gl(e,{type:"idle",parent:e}))}sl.assign({createStringInterpolator:Jl,to:(e,t)=>new zs(e,t)}),pl.advance;var Us=window.ReactDOM;function Ws(e,t){if(null==e)return{};var n,o,r={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const $s=["style","children","scrollTop","scrollLeft"],js=/^--/;function Ks(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||js.test(e)||Ys.hasOwnProperty(e)&&Ys[e]?(""+t).trim():t+"px"}const qs={};let Ys={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Xs=["Webkit","Ms","Moz","O"];Ys=Object.keys(Ys).reduce(((e,t)=>(Xs.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Ys);const Zs=["x","y","z"],Qs=/^(matrix|translate|scale|rotate|skew)/,Js=/^(translate)/,ea=/^(rotate|skew)/,ta=(e,t)=>Yr.num(e)&&0!==e?e+t:e,na=(e,t)=>Yr.arr(e)?e.every((e=>na(e,t))):Yr.num(e)?e===t:parseFloat(e)===t;class oa extends ki{constructor(e){let{x:t,y:n,z:o}=e,r=Ws(e,Zs);const l=[],i=[];(t||n||o)&&(l.push([t||0,n||0,o||0]),i.push((e=>[`translate3d(${e.map((e=>ta(e,"px"))).join(",")})`,na(e,0)]))),Qr(r,((e,t)=>{if("transform"===t)l.push([e||""]),i.push((e=>[e,""===e]));else if(Qs.test(t)){if(delete r[t],Yr.und(e))return;const n=Js.test(t)?"px":ea.test(t)?"deg":"";l.push(Jr(e)),i.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${ta(r,n)})`,na(r,0)]:e=>[`${t}(${e.map((e=>ta(e,n))).join(",")})`,na(e,t.startsWith("scale")?1:0)])}})),l.length&&(r.transform=new ra(l,i)),super(r)}}class ra extends Ul{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Zr(this.inputs,((n,o)=>{const r=Vl(n[0]),[l,i]=this.transforms[o](Yr.arr(r)?r:n.map(Vl));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Zr(this.inputs,(e=>Zr(e,(e=>zl(e)&&$l(e,this)))))}observerRemoved(e){0==e&&Zr(this.inputs,(e=>Zr(e,(e=>zl(e)&&jl(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Gl(this,e)}}const la=["scrollTop","scrollLeft"];sl.assign({batchedUpdates:Us.unstable_batchedUpdates,createStringInterpolator:Jl,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ia=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ki(e)),getComponentProps:o=(e=>e)}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{const t=Ii(e)||"Anonymous";return(e=Yr.str(e)?l[e]||(l[e]=Si(e,r)):e[Bi]||(e[Bi]=Si(e,r))).displayName=`Animated(${t})`,e};return Qr(e,((t,n)=>{Yr.arr(e)&&(n=Ii(t)),l[n]=l(t)})),{animated:l}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:l,scrollTop:i,scrollLeft:s}=o,a=Ws(o,$s),c=Object.values(a),u=Object.keys(a).map((t=>n||e.hasAttribute(t)?t:qs[t]||(qs[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==l&&(e.textContent=l);for(let t in r)if(r.hasOwnProperty(t)){const n=Ks(t,r[t]);js.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new oa(e),getComponentProps:e=>Ws(e,la)}).animated,sa=e=>e+1,aa=e=>({top:e.offsetTop,left:e.offsetLeft});var ca=function(e){let{isSelected:t,adjustScrolling:n,enableAnimation:o,triggerAnimationOnChange:r}=e;const l=(0,s.useRef)(),i=(0,d.useReducedMotion)()||!o,[a,c]=(0,s.useReducer)(sa,0),[u,p]=(0,s.useReducer)(sa,0),[m,f]=(0,s.useState)({x:0,y:0}),g=(0,s.useMemo)((()=>l.current?aa(l.current):null),[r]),h=(0,s.useMemo)((()=>{if(!n||!l.current)return()=>{};const e=(0,ar.getScrollContainer)(l.current);if(!e)return()=>{};const t=l.current.getBoundingClientRect();return()=>{const n=l.current.getBoundingClientRect().top-t.top;n&&(e.scrollTop+=n)}}),[r,n]);function v(e){let{value:n}=e,{x:o,y:r}=n;o=Math.round(o),r=Math.round(r),o===v.x&&r===v.y||(function(e){let{x:n,y:o}=e;if(!l.current)return;const r=0===n&&0===o;l.current.style.transformOrigin=r?"":"center",l.current.style.transform=r?"":`translate3d(${n}px,${o}px,0)`,l.current.style.zIndex=!t||r?"":"1",h()}({x:o,y:r}),v.x=o,v.y=r)}return(0,s.useLayoutEffect)((()=>{a&&p()}),[a]),(0,s.useLayoutEffect)((()=>{if(!g)return;if(i)return void h();l.current.style.transform="";const e=aa(l.current);c(),f({x:Math.round(g.left-e.left),y:Math.round(g.top-e.top)})}),[r]),v.x=0,v.y=0,function(e,t){const n=Yr.fun(e),[[o],r]=Os(1,n?e:[e],n?t||[]:t)}({from:{x:m.x,y:m.y},to:{x:0,y:0},reset:a!==u,config:{mass:5,tension:2e3,friction:200},immediate:i,onChange:v}),l};const ua=".block-editor-block-list__block",da=".block-list-appender";function pa(e,t){return t.closest([ua,da].join(","))===e}function ma(e,t){e.parentElement.closest("[contenteditable]").contentEditable=t}function fa(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:o,selectBlock:r}=(0,m.useDispatch)(zn),{isSelectionEnabled:l,isBlockSelected:i,getBlockParents:s,getBlockSelectionStart:a,hasMultiSelection:c}=(0,m.useSelect)(zn);return(0,d.useRefEffect)((u=>{const{ownerDocument:d}=u,{defaultView:p}=d;let m,f;function g(t){let{isSelectionEnd:n}=t;const l=p.getSelection();if(!l.rangeCount||l.isCollapsed)return void ma(u,!1);const i=function(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(ua);return t?t.id.slice("block-".length):void 0}(l.focusNode);if(e===i){if(r(e),n&&(ma(u,!1),l.rangeCount)){const{commonAncestorContainer:e}=l.getRangeAt(0);m.contains(e)&&m.focus()}}else{const t=[...s(e),e],n=[...s(i),i],r=Math.min(t.length,n.length)-1;o(t[r],n[r])}}function h(){d.removeEventListener("selectionchange",g),p.removeEventListener("mouseup",h),f=p.requestAnimationFrame((()=>{g({isSelectionEnd:!0}),n()}))}function v(n){let{buttons:o}=n;1===o&&l()&&i(e)&&(m=d.activeElement,t(),d.addEventListener("selectionchange",g),p.addEventListener("mouseup",h),ma(u,!0))}function b(t){if(l()&&0===t.button)if(t.shiftKey){const n=a(),r=s(n);if(n&&n!==e&&(null==r||!r.includes(e))){const l=[...r,n],i=[...s(e),e],a=Math.min(l.length,i.length)-1,c=l[a],d=i[a];c!==d&&(ma(u,!0),o(c,d),t.preventDefault())}}else c()&&r(e)}return u.addEventListener("mousedown",b),u.addEventListener("mouseleave",v),()=>{u.removeEventListener("mousedown",b),u.removeEventListener("mouseleave",v),d.removeEventListener("selectionchange",g),p.removeEventListener("mouseup",h),p.cancelAnimationFrame(f)}}),[e,t,n,o,r,l,i,s])}function ga(e){const t=(0,s.useRef)(),n=function(e){return(0,m.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:l}=t(zn);if(l(e)&&!o()&&!r())return n()}),[e])}(e);return(0,s.useEffect)((()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const o=ar.focus.tabbable.find(t.current).filter((e=>(0,ar.isTextField)(e))),r=-1===n,l=(r?u.last:u.first)(o)||t.current;pa(t.current,l)?(ma(t.current,!1),(0,ar.placeCaretAtHorizontalEdge)(l,r)):t.current.focus()}),[n]),t}function ha(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function va(){const e=(0,m.useSelect)((e=>{const{isNavigationMode:t,getSettings:n}=e(zn);return t()||n().outlineMode}),[]);return(0,d.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",ha),t.addEventListener("mouseover",ha),()=>{t.removeEventListener("mouseout",ha),t.removeEventListener("mouseover",ha),t.classList.remove("is-hovered")}}),[e])}function ba(e){return(0,m.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:l,isBlockMultiSelected:i,getBlockName:s,getSettings:a,hasSelectedInnerBlock:u,isTyping:d,__experimentalGetActiveBlockIdByBlockNames:p}=t(zn),{__experimentalSpotlightEntityBlocks:m,outlineMode:f}=a(),g=n(e),h=l(e),v=s(e),b=u(e,!0),k=p(m);return c()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":i(e),"is-reusable":(0,r.isReusableBlock)((0,r.getBlockType)(v)),"is-dragging":g,"has-child-selected":b,"has-active-entity":k,"is-active-entity":k===e,"remove-outline":h&&f&&d()})}),[e])}function ka(e){return(0,m.useSelect)((t=>{const n=t(zn).getBlockName(e),o=(0,r.getBlockType)(n);if((null==o?void 0:o.apiVersion)>1)return(0,r.getBlockDefaultClassName)(n)}),[e])}function _a(e){return(0,m.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(zn),l=o(e);if(null==l||!l.className)return;const i=(0,r.getBlockType)(n(e));return(null==i?void 0:i.apiVersion)>1?l.className:void 0}),[e])}function ya(e){return(0,m.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:l,isBlockSelected:i}=t(zn);if(!i(e))return;const s=n();return s?c()("is-block-moving-mode",{"can-insert-moving-block":o(r(s),l(e))}):void 0}),[e])}function Ea(e){const{isBlockSelected:t}=(0,m.useSelect)(zn),{selectBlock:n,selectionChange:o}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((r=>{function l(l){t(e)?l.target.isContentEditable||o(e):pa(r,l.target)&&n(e)}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}var Ca=window.wp.keycodes;function Sa(e){const t=(0,m.useSelect)((t=>t(zn).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:o}=(0,m.useSelect)(zn),{insertDefaultBlock:r,removeBlock:l}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((i=>{if(t)return i.addEventListener("keydown",s),i.addEventListener("dragstart",a),()=>{i.removeEventListener("keydown",s),i.removeEventListener("dragstart",a)};function s(t){const{keyCode:s,target:a}=t;s!==Ca.ENTER&&s!==Ca.BACKSPACE&&s!==Ca.DELETE||a!==i||(0,ar.isTextField)(a)||(t.preventDefault(),s===Ca.ENTER?r({},n(e),o(e)+1):l(e))}function a(e){e.preventDefault()}}),[e,t,n,o,r,l])}function wa(e){const{isNavigationMode:t,isBlockSelected:n}=(0,m.useSelect)(zn),{setNavigationMode:o,selectBlock:r}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.addEventListener("mousedown",i)}}),[e,t,n,o])}var Ba=n(5425),Ia=n.n(Ba);function xa(e){const t=(0,s.useRef)(),n=(0,m.useSelect)((t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(zn);return n(e)||o()===e}),[e]);return(0,s.useEffect)((()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=(0,ar.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&Ia()(e,o,{onlyScrollIfNeeded:!0})}),[n]),t}const Ta=(0,s.createContext)({refs:new Map,callbacks:new Map});function Na(e){let{children:t}=e;const n=(0,s.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,s.createElement)(Ta.Provider,{value:n},t)}function Pa(e){const{refs:t,callbacks:n}=(0,s.useContext)(Ta),o=(0,s.useRef)();return(0,s.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,d.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function Ma(e){const{refs:t}=(0,s.useContext)(Ta),n=(0,s.useRef)();return n.current=e,(0,s.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function Ra(e){const{callbacks:t}=(0,s.useContext)(Ta),n=Ma(e),[o,r]=(0,s.useState)(null);return(0,s.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}function La(){const e=(0,s.useContext)(vm);return(0,d.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Aa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{__unstableIsHtml:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clientId:n,className:o,wrapperProps:l={},isAligned:i}=(0,s.useContext)(Da),{index:a,mode:u,name:p,blockApiVersion:f,blockTitle:h,isPartOfSelection:v,adjustScrolling:b,enableAnimation:k}=(0,m.useSelect)((e=>{const{getBlockIndex:t,getBlockMode:o,getBlockName:l,isTyping:i,getGlobalBlockCount:s,isBlockSelected:a,isBlockMultiSelected:c,isAncestorMultiSelected:u,isFirstMultiSelectedBlock:d}=e(zn),p=a(n),m=c(n)||u(n),f=l(n),g=(0,r.getBlockType)(f);return{index:t(n),mode:o(n),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||d(n),enableAnimation:!i()&&s()<=200}}),[n]),_=(0,g.sprintf)((0,g.__)("Block: %s"),h),y="html"!==u||t?"":"-visual",E=(0,d.useMergeRefs)([e.ref,ga(n),xa(n),Pa(n),Ea(n),fa(n),Sa(n),wa(n),va(),La(),ca({isSelected:v,adjustScrolling:b,enableAnimation:k,triggerAnimationOnChange:a})]),C=Un();return f<2&&n===C.clientId&&"undefined"!=typeof process&&process.env,{...l,...e,ref:E,id:`block-${n}${y}`,tabIndex:0,role:"document","aria-label":_,"data-block":n,"data-type":p,"data-title":h,className:c()(c()("block-editor-block-list__block",{"wp-block":!i}),o,e.className,l.className,ba(n),ka(n),_a(n),ya(n)),style:{...l.style,...e.style}}}Aa.save=r.__unstableGetBlockProps;const Da=(0,s.createContext)();function Oa(e){let{children:t,isHtml:n,...o}=e;return(0,s.createElement)("div",Aa(o,{__unstableIsHtml:n}),t)}const Fa=(0,m.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{isBlockSelected:r,getBlockMode:l,isSelectionEnabled:i,getTemplateLock:s,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:c,canMoveBlock:u}=e(zn),d=a(n),p=r(n),m=s(o),f=c(n,o),g=u(n,o),{name:h,attributes:v,isValid:b}=d||{};return{mode:l(n),isSelectionEnabled:i(),isLocked:!!m,canRemove:f,canMove:g,block:d,name:h,attributes:v,isValid:b,isSelected:p}})),za=(0,m.withDispatch)(((e,t,n)=>{let{select:o}=n;const{updateBlockAttributes:l,insertBlocks:i,mergeBlocks:s,replaceBlocks:a,toggleSelection:c,__unstableMarkLastChangeAsPersistent:u}=e(zn);return{setAttributes(e){const{getMultiSelectedBlockClientIds:n}=o(zn),r=n(),{clientId:i}=t,s=r.length?r:[i];l(s,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;i(e,n,o)},onInsertBlocksAfter(e){const{clientId:n,rootClientId:r}=t,{getBlockIndex:l}=o(zn),s=l(n);i(e,s+1,r)},onMerge(e){const{clientId:n}=t,{getPreviousBlockClientId:r,getNextBlockClientId:l}=o(zn);if(e){const e=l(n);e&&s(n,e)}else{const e=r(n);e&&s(e,n)}},onReplace(e,n,o){e.length&&!(0,r.isUnmodifiedDefaultBlock)(e[e.length-1])&&u(),a([t.clientId],e,n,o)},toggleSelection(e){c(e)}}}));var Va=(0,d.compose)(d.pure,Fa,za,(0,d.ifCondition)((e=>{let{block:t}=e;return!!t})),(0,p.withFilters)("editor.BlockListBlock"))((function(e){var t;let{mode:n,isLocked:o,canRemove:l,clientId:i,isSelected:a,isSelectionEnabled:d,className:p,name:f,isValid:g,attributes:h,wrapperProps:v,setAttributes:b,onReplace:k,onInsertBlocksAfter:_,onMerge:y,toggleSelection:E}=e;const C=(0,m.useSelect)((e=>{const{getSettings:t}=e(zn);return t().supportsLayout}),[]),{removeBlock:S}=(0,m.useDispatch)(zn),w=(0,s.useCallback)((()=>S(i)),[i]);let B=(0,s.createElement)(fr,{name:f,isSelected:a,attributes:h,setAttributes:b,insertBlocksAfter:o?void 0:_,onReplace:l?k:void 0,onRemove:l?w:void 0,mergeBlocks:l?y:void 0,clientId:i,isSelectionEnabled:d,toggleSelection:E});const I=(0,r.getBlockType)(f);null!=I&&I.getEditWrapperProps&&(v=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(v,I.getEditWrapperProps(h)));const x=v&&!!v["data-align"]&&!C;let T;if(x&&(B=(0,s.createElement)("div",{className:"wp-block","data-align":v["data-align"]},B)),g)T="html"===n?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{style:{display:"none"}},B),(0,s.createElement)(Oa,{isHtml:!0},(0,s.createElement)(Ir,{clientId:i}))):(null==I?void 0:I.apiVersion)>1?B:(0,s.createElement)(Oa,v,B);else{const e=(0,r.getSaveContent)(I,h);T=(0,s.createElement)(Oa,{className:"has-warning"},(0,s.createElement)(yr,{clientId:i}),(0,s.createElement)(s.RawHTML,null,(0,ar.safeHTML)(e)))}const N={clientId:i,className:null!==(t=v)&&void 0!==t&&t["data-align"]&&C?c()(p,`align${v["data-align"]}`):p,wrapperProps:(0,u.omit)(v,["data-align"]),isAligned:x},P=(0,s.useMemo)((()=>N),Object.values(N));return(0,s.createElement)(Da.Provider,{value:P},(0,s.createElement)(wr,{fallback:(0,s.createElement)(Oa,{className:"has-warning"},(0,s.createElement)(Cr,null))},T))})),Ha=window.wp.htmlEntities,Ga=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Ua=[(0,s.createInterpolateElement)((0,g.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,s.createElement)("kbd",null)}),(0,s.createInterpolateElement)((0,g.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,s.createInterpolateElement)((0,g.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,s.createElement)("kbd",null)}),(0,g.__)("Drag files into the editor to automatically insert media blocks."),(0,g.__)("Change a block's type by pressing the block icon on the toolbar.")];var Wa=function(){const[e]=(0,s.useState)(Math.floor(Math.random()*Ua.length));return(0,s.createElement)(p.Tip,null,Ua[e])},$a=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),ja=(0,s.memo)((function(e){var t;let{icon:n,showColors:o=!1,className:r}=e;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:$a});const l=(0,s.createElement)(p.Icon,{icon:n&&n.src?n.src:n}),i=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return(0,s.createElement)("span",{style:i,className:c()("block-editor-block-icon",r,{"has-colors":o})},l)})),Ka=function(e){let{title:t,icon:n,description:o,blockType:r}=e;return r&&(Rt()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:t,icon:n,description:o}=r)),(0,s.createElement)("div",{className:"block-editor-block-card"},(0,s.createElement)(ja,{icon:n,showColors:!0}),(0,s.createElement)("div",{className:"block-editor-block-card__content"},(0,s.createElement)("h2",{className:"block-editor-block-card__title"},t),(0,s.createElement)("span",{className:"block-editor-block-card__description"},o)))};function qa(e){let{clientId:t=null,value:n,selection:o,onChange:l=u.noop,onInput:i=u.noop}=e;const a=(0,m.useRegistry)(),{resetBlocks:c,resetSelection:d,replaceInnerBlocks:p,setHasControlledInnerBlocks:f,__unstableMarkNextChangeAsNotPersistent:g}=a.dispatch(zn),{getBlockName:h,getBlocks:v}=a.select(zn),b=(0,m.useSelect)((e=>!t||e(zn).areInnerBlocksControlled(t)),[t]),k=(0,s.useRef)({incoming:null,outgoing:[]}),_=(0,s.useRef)(!1),y=()=>{n&&(g(),t?a.batch((()=>{f(t,!0);const e=n.map((e=>(0,r.cloneBlock)(e)));_.current&&(k.current.incoming=e),g(),p(t,e)})):(_.current&&(k.current.incoming=n),c(n)))},E=(0,s.useRef)(i),C=(0,s.useRef)(l);(0,s.useEffect)((()=>{E.current=i,C.current=l}),[i,l]),(0,s.useEffect)((()=>{k.current.outgoing.includes(n)?(0,u.last)(k.current.outgoing)===n&&(k.current.outgoing=[]):v(t)!==n&&(k.current.outgoing=[],y(),o&&d(o.selectionStart,o.selectionEnd,o.initialPosition))}),[n,t]),(0,s.useEffect)((()=>{b||(k.current.outgoing=[],y())}),[b]),(0,s.useEffect)((()=>{const{getSelectionStart:e,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:l,areInnerBlocksControlled:i}=a.select(zn);let s=v(t),c=r(),u=!1;_.current=!0;const d=a.subscribe((()=>{if(null!==t&&null===h(t))return;if(t&&!i(t))return;const a=r(),d=v(t),p=d!==s;if(s=d,p&&(k.current.incoming||l()))return k.current.incoming=null,void(c=a);(p||u&&!p&&a&&!c)&&(c=a,k.current.outgoing.push(s),(c?C.current:E.current)(s,{selection:{selectionStart:e(),selectionEnd:n(),initialPosition:o()}})),u=p}));return()=>d()}),[a,t])}var Ya=(0,d.createHigherOrderComponent)((e=>(0,m.withRegistry)((t=>{let{useSubRegistry:n=!0,registry:o,...r}=t;if(!n)return(0,s.createElement)(e,i({registry:o},r));const[l,a]=(0,s.useState)(null);return(0,s.useEffect)((()=>{const e=(0,m.createRegistry)({},o);e.registerStore(On,Fn),a(e)}),[o]),l?(0,s.createElement)(m.RegistryProvider,{value:l},(0,s.createElement)(e,i({registry:l},r))):null}))),"withRegistryProvider")((function(e){const{children:t,settings:n}=e,{updateSettings:o}=(0,m.useDispatch)(zn);return(0,s.useEffect)((()=>{o(n)}),[n]),qa(e),(0,s.createElement)(Na,null,t)}));function Xa(e){let{onClick:t}=e;return(0,s.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},(0,s.createElement)(p.Disabled,null,(0,s.createElement)(km,null)))}function Za(){const{hasSelectedBlock:e,hasMultiSelection:t}=(0,m.useSelect)(zn),{clearSelectedBlock:n}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}}),[e,t,n])}function Qa(e){return(0,s.createElement)("div",i({ref:Za()},e))}function Ja(e,t){const n="start"===t?"firstChild":"lastChild",o="start"===t?"nextSibling":"previousSibling";for(;e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[o];)e=e[o];return e}function ec(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:l}=e(zn);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:l()}}function tc(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r}=(0,m.useSelect)(ec,[]),l=Ma(r),i=Ma((0,u.first)(n)),s=Ma((0,u.last)(n));return(0,d.useRefEffect)((a=>{const{ownerDocument:c}=a,{defaultView:u}=c;if(null==e)return;if(!o||t){if(!r||t)return;const e=u.getSelection();if(e.rangeCount&&!e.isCollapsed){const t=l.current,{startContainer:n,endContainer:o}=e.getRangeAt(0);!t||t.contains(n)&&t.contains(o)||e.removeAllRanges()}return}const{length:d}=n;if(d<2)return;if(!i.current||!s.current)return;a.contentEditable=!0,a.focus();const p=u.getSelection(),m=c.createRange(),f=Ja(i.current,"start"),g=Ja(s.current,"end");m.setStartBefore(f),m.setEndAfter(g),p.removeAllRanges(),p.addRange(m)}),[o,t,n,r,e])}function nc(e){const{tagName:t}=e;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}function oc(e,t,n,o){let r,l=ar.focus.focusable.find(n);return t&&(l=(0,u.reverse)(l)),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),(0,u.find)(l,(function(e){if(!ar.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}))}function rc(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksStartClientId:t,getMultiSelectedBlocksEndClientId:n,getPreviousBlockClientId:o,getNextBlockClientId:r,getFirstMultiSelectedBlockClientId:l,getLastMultiSelectedBlockClientId:i,getSettings:s,hasMultiSelection:a}=(0,m.useSelect)(zn),{multiSelect:c,selectBlock:u}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((d=>{let p;function m(){p=null}function f(l){const i=e(),s=t(),a=n(),d=o(a||i),p=r(a||i),m=l?d:p;m&&(s===m?u(m):c(s||i,m))}function g(e){const t=l(),n=i(),o=e?t:n;o&&u(o)}function h(t){const{keyCode:l,target:i}=t,c=l===Ca.UP,u=l===Ca.DOWN,m=l===Ca.LEFT,h=l===Ca.RIGHT,v=c||m,b=m||h,k=c||u,_=b||k,y=t.shiftKey,E=y||t.ctrlKey||t.altKey||t.metaKey,C=k?ar.isVerticalEdge:ar.isHorizontalEdge,{ownerDocument:S}=d,{defaultView:w}=S;if(a())return void(_&&((y?f:g)(v),t.preventDefault()));if(k?p||(p=(0,ar.computeCaretRect)(w)):p=null,t.defaultPrevented)return;if(!_)return;if(!function(e,t,n){if((t===Ca.UP||t===Ca.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"!==o&&"TEXTAREA"!==o}(i,l,E))return;const B=(0,ar.isRTL)(i)?!v:v,{keepCaretInsideBlock:I}=s(),x=e();if(y){const e=n(),l=o(e||x),s=r(e||x);(v&&l||!v&&s)&&function(e,t){const n=oc(e,t,d);return!n||!function(e,t){return e.closest(ua)===t.closest(ua)}(e,n)}(i,v)&&C(i,v)&&(f(v),t.preventDefault())}else if(k&&(0,ar.isVerticalEdge)(i,v)&&!I){const e=oc(i,v,d,!0);e&&((0,ar.placeCaretAtVerticalEdge)(e,v,p),t.preventDefault())}else if(b&&w.getSelection().isCollapsed&&(0,ar.isHorizontalEdge)(i,B)&&!I){const e=oc(i,B,d);(0,ar.placeCaretAtHorizontalEdge)(e,v),t.preventDefault()}}return d.addEventListener("mousedown",m),d.addEventListener("keydown",h),()=>{d.removeEventListener("mousedown",m),d.removeEventListener("keydown",h)}}),[])}var lc=window.wp.keyboardShortcuts;function ic(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,m.useSelect)(zn),{multiSelect:o}=(0,m.useDispatch)(zn),r=(0,lc.__unstableUseShortcutEventMatch)();return(0,d.useRefEffect)((l=>{function i(l){if(!r("core/block-editor/select-all",l))return;const i=t();if(i.length<2&&!(0,ar.isEntirelySelected)(l.target))return;const[s]=i,a=n(s);let c=e(a);i.length===c.length&&(c=e(n(a)));const d=(0,u.first)(c),p=(0,u.last)(c);d!==p&&(o(d,p),l.preventDefault())}return l.addEventListener("keydown",i),()=>{l.removeEventListener("keydown",i)}}),[])}function sc(){const[e,t,n]=function(){const e=(0,s.useRef)(),t=(0,s.useRef)(),n=(0,s.useRef)(),o=(0,s.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:l,getBlockCount:i}=(0,m.useSelect)(zn),{setNavigationMode:a}=(0,m.useDispatch)(zn),c=(0,m.useSelect)((e=>e(zn).isNavigationMode()),[])?void 0:"0",u=(0,s.useRef)();function p(t){if(u.current)u.current=null;else if(r())e.current.focus();else if(l())o.current.focus();else{a(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";ar.focus.tabbable[n](t.target).focus()}}const f=(0,s.createElement)("div",{ref:t,tabIndex:c,onFocus:p}),g=(0,s.createElement)("div",{ref:n,tabIndex:c,onFocus:p}),h=(0,d.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===Ca.ESCAPE&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==Ca.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!l())return void(e.target===s&&a(!0));if(nc(e.target)&&nc(ar.focus.tabbable[i](e.target)))return;const c=o?t:n;u.current=!0,c.current.focus({preventScroll:!0})}function d(e){o.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==i()||s.focus()}function p(o){var r;if(o.keyCode!==Ca.TAB)return;if("region"===(null===(r=o.target)||void 0===r?void 0:r.getAttribute("role")))return;if(e.current===o.target)return;const l=o.shiftKey?"findPrevious":"findNext",i=ar.focus.tabbable[l](o.target);i!==t.current&&i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:m}=s,{defaultView:f}=m;return f.addEventListener("keydown",p),s.addEventListener("keydown",c),s.addEventListener("focusout",d),()=>{f.removeEventListener("keydown",p),s.removeEventListener("keydown",c),s.removeEventListener("focusout",d)}}),[]);return[f,(0,d.useMergeRefs)([e,h]),g]}(),o=(0,m.useSelect)((e=>e(zn).hasMultiSelection()),[]);return[e,(0,d.useMergeRefs)([t,tc(),ic(),rc(),(0,d.useRefEffect)((e=>{if(e.tabIndex=-1,e.contentEditable=o,o)return e.setAttribute("aria-label",(0,g.__)("Multiple selected blocks")),()=>{e.removeAttribute("aria-label")}}),[o])]),n]}var ac=(0,s.forwardRef)((function(e,t){let{children:n,...o}=e;const[r,l,a]=sc();return(0,s.createElement)(s.Fragment,null,r,(0,s.createElement)("div",i({},o,{ref:(0,d.useMergeRefs)([l,t]),className:c()(o.className,"block-editor-writing-flow")}),n),a)}));const cc="editor-styles-wrapper";function uc(e){return(0,s.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}var dc=(0,s.forwardRef)((function(e,t){let{contentRef:n,children:o,head:r,tabIndex:l=0,assets:a,...u}=e;const[,m]=(0,s.useReducer)((()=>({}))),[f,h]=(0,s.useState)(),[v,b]=(0,s.useState)([]),k=uc(null==a?void 0:a.styles),_=uc(null==a?void 0:a.scripts),y=Za(),[E,C,S]=sc(),w=(0,d.useRefEffect)((e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:o,documentElement:r}=t;return("interactive"===o||"complete"===o)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const i=new r(e.type,l);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(t),h(t),y(r),b(Array.from(n.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),t.dir=n.dir,r.removeChild(t.head),r.removeChild(t.body),!0)}t()||e.addEventListener("load",(()=>{t()}))}),[]),B=(0,d.useRefEffect)((e=>{_.reduce(((t,n)=>t.then((()=>async function(e,t){let{id:n,src:o}=t;return new Promise(((t,r)=>{const l=e.ownerDocument.createElement("script");l.id=n,o?(l.src=o,l.onload=()=>t(),l.onerror=()=>r()):t(),e.appendChild(l)}))}(e,n)))),Promise.resolve()).finally((()=>{m()}))}),[]),I=(0,d.useMergeRefs)([n,y,C]);return(0,s.useEffect)((()=>{var e;f&&(e=f,Array.from(document.styleSheets).forEach((t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;if(o&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(o).find((e=>{let{selectorText:t}=e;return t&&(t.includes(`.${cc}`)||t.includes(".wp-block"))}))&&!e.getElementById(n.id)){e.head.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.head.appendChild(o.cloneNode(!0))}})))}),[f]),r=(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",null,"body{margin:0}"),k.map((e=>{let{tagName:t,href:n,id:o,rel:r,media:l,textContent:i}=e;const a=t.toLowerCase();return"style"===a?(0,s.createElement)(a,{id:o,key:o},i):(0,s.createElement)(a,{href:n,id:o,rel:r,media:l,key:o})})),r),(0,s.createElement)(s.Fragment,null,l>=0&&E,(0,s.createElement)("iframe",i({},u,{ref:(0,d.useMergeRefs)([t,w]),tabIndex:l,title:(0,g.__)("Editor canvas")}),f&&(0,s.createPortal)((0,s.createElement)(s.Fragment,null,(0,s.createElement)("head",{ref:B},r),(0,s.createElement)("body",{ref:I,className:c()(cc,...v)},(0,s.createElement)(p.__experimentalStyleProvider,{document:f},o))),f.documentElement)),l>=0&&S)})),pc={grad:.9,turn:360,rad:360/(2*Math.PI)},mc=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},fc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},gc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},hc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},vc=function(e){return{r:gc(e.r,0,255),g:gc(e.g,0,255),b:gc(e.b,0,255),a:gc(e.a)}},bc=function(e){return{r:fc(e.r),g:fc(e.g),b:fc(e.b),a:fc(e.a,3)}},kc=/^#([0-9a-f]{3,8})$/i,_c=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},yc=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),i=l-Math.min(t,n,o),s=i?l===t?(n-o)/i:l===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:l?i/l*100:0,v:l/255*100,a:r}},Ec=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),i=o*(1-n),s=o*(1-(t-l)*n),a=o*(1-(1-t+l)*n),c=l%6;return{r:255*[o,s,i,i,a,o][c],g:255*[a,o,o,s,i,i][c],b:255*[i,i,a,o,o,s][c],a:r}},Cc=function(e){return{h:hc(e.h),s:gc(e.s,0,100),l:gc(e.l,0,100),a:gc(e.a)}},Sc=function(e){return{h:fc(e.h),s:fc(e.s),l:fc(e.l),a:fc(e.a,3)}},wc=function(e){return Ec((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},Bc=function(e){return{h:(t=yc(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},Ic=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Tc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Nc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pc={string:[[function(e){var t=kc.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?fc(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?fc(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Tc.exec(e)||Nc.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:vc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Ic.exec(e)||xc.exec(e);if(!t)return null;var n,o,r=Cc({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(pc[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return wc(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=void 0===r?1:r;return mc(t)&&mc(n)&&mc(o)?vc({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,l=void 0===r?1:r;if(!mc(t)||!mc(n)||!mc(o))return null;var i=Cc({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return wc(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,l=void 0===r?1:r;if(!mc(t)||!mc(n)||!mc(o))return null;var i=function(e){return{h:hc(e.h),s:gc(e.s,0,100),v:gc(e.v,0,100),a:gc(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(l)});return Ec(i)},"hsv"]]},Mc=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Rc=function(e,t){var n=Bc(e);return{h:n.h,s:gc(n.s+100*t,0,100),l:n.l,a:n.a}},Lc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Ac=function(e,t){var n=Bc(e);return{h:n.h,s:n.s,l:gc(n.l+100*t,0,100),a:n.a}},Dc=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Mc(e.trim(),Pc.string):"object"==typeof e&&null!==e?Mc(e,Pc.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return fc(Lc(this.rgba),2)},e.prototype.isDark=function(){return Lc(this.rgba)<.5},e.prototype.isLight=function(){return Lc(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=bc(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?_c(fc(255*r)):"","#"+_c(t)+_c(n)+_c(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return bc(this.rgba)},e.prototype.toRgbString=function(){return t=(e=bc(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return Sc(Bc(this.rgba))},e.prototype.toHslString=function(){return t=(e=Sc(Bc(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=yc(this.rgba),{h:fc(e.h),s:fc(e.s),v:fc(e.v),a:fc(e.a,3)};var e},e.prototype.invert=function(){return Oc({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Oc(Rc(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Oc(Rc(this.rgba,-e))},e.prototype.grayscale=function(){return Oc(Rc(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Oc(Ac(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Oc(Ac(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Oc({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):fc(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Bc(this.rgba);return"number"==typeof e?Oc({h:e,s:t.s,l:t.l,a:t.a}):fc(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Oc(e).toHex()},e}(),Oc=function(e){return e instanceof Dc?e:new Dc(e)},Fc=[],zc=function(e){e.forEach((function(e){Fc.indexOf(e)<0&&(e(Dc,Pc),Fc.push(e))}))};function Vc(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var l={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,s=o[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u="black";if(!l.length)for(var d in n)l[d]=new e(n[d]).toRgb();for(var p in n){var m=(r=a,i=l[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var Hc=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Gc=function(e){return.2126*Hc(e.r)+.7152*Hc(e.g)+.0722*Hc(e.b)};function Uc(e){e.prototype.luminance=function(){return e=Gc(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,r,l,i,s,a,c=t instanceof e?t:new e(t);return l=this.rgba,i=c.toRgb(),n=(s=Gc(l))>(a=Gc(i))?(s+.05)/(a+.05):(a+.05)/(s+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(l=(n=t).size)?"normal":l,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,l,i}}var Wc=n(3124),$c=n.n(Wc);const jc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Kc(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function l(){const e={line:n,column:o};return function(t){return t.position=new i(e),m(),t}}function i(e){this.start=e,this.end={line:n,column:o},this.source=t.source}i.prototype.content=e;const s=[];function a(r){const l=new Error(t.source+":"+n+":"+o+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=o,l.source=e,!t.silent)throw l;s.push(l)}function c(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){let t;const n=[];for(m(),f(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),f(n));return n}function p(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function m(){p(/^\s*/)}function f(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=l();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return a("End of comment missing");const i=e.slice(2,n-2);return o+=2,r(i),e=e.slice(n),o+=2,t({type:"comment",comment:i})}function h(){const e=p(/^([^{]+)/);if(e)return qc(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){const e=l();let t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=qc(t[0]),!p(/^:\s*/))return a("property missing ':'");const n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(jc,""),value:n?qc(n[0]).replace(jc,""):""});return p(/^[;\s]*/),o}function b(){const e=[];if(!c())return a("missing '{'");let t;for(f(e);t=v();)!1!==t&&(e.push(t),f(e));return u()?e:a("missing '}'")}function k(){let e;const t=[],n=l();for(;e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:b()})}const _=C("import"),y=C("charset"),E=C("namespace");function C(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=l(),o=p(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=l();let t=p(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=p(/^([-\w]+)\s*/),!t)return a("@keyframes missing name");const o=t[1];if(!c())return a("@keyframes missing '{'");let r,i=f();for(;r=k();)i.push(r),i=i.concat(f());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):a("@keyframes missing '}'")}()||function(){const e=l(),t=p(/^@media *([^{]+)/);if(!t)return;const n=qc(t[1]);if(!c())return a("@media missing '{'");const o=f().concat(d());return u()?e({type:"media",media:n,rules:o}):a("@media missing '}'")}()||function(){const e=l(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:qc(t[1]),media:qc(t[2])})}()||function(){const e=l(),t=p(/^@supports *([^{]+)/);if(!t)return;const n=qc(t[1]);if(!c())return a("@supports missing '{'");const o=f().concat(d());return u()?e({type:"supports",supports:n,rules:o}):a("@supports missing '}'")}()||_()||y()||E()||function(){const e=l(),t=p(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=qc(t[1]),o=qc(t[2]);if(!c())return a("@document missing '{'");const r=f().concat(d());return u()?e({type:"document",document:o,vendor:n,rules:r}):a("@document missing '}'")}()||function(){const e=l();if(!p(/^@page */))return;const t=h()||[];if(!c())return a("@page missing '{'");let n,o=f();for(;n=v();)o.push(n),o=o.concat(f());return u()?e({type:"page",selectors:t,declarations:o}):a("@page missing '}'")}()||function(){const e=l();if(!p(/^@host\s*/))return;if(!c())return a("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):a("@host missing '}'")}()||function(){const e=l();if(!p(/^@font-face\s*/))return;if(!c())return a("@font-face missing '{'");let t,n=f();for(;t=v();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):a("@font-face missing '}'")}()}function w(){const e=l(),t=h();return t?(f(),e({type:"rule",selectors:t,declarations:b()})):a("selector missing")}return Yc(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:s}}}())}function qc(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Yc(e,t){const n=e&&"string"==typeof e.type,o=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){Yc(e,o)})):n&&"object"==typeof n&&Yc(n,o)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Xc=n(8575),Zc=n.n(Xc),Qc=Jc;function Jc(e){this.options=e||{}}Jc.prototype.emit=function(e){return e},Jc.prototype.visit=function(e){return this[e.type](e)},Jc.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var eu=tu;function tu(e){Qc.call(this,e)}Zc()(tu,Qc),tu.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},tu.prototype.comment=function(e){return this.emit("",e.position)},tu.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},tu.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tu.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tu.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},tu.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},tu.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tu.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},tu.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},tu.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},tu.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},tu.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},tu.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},tu.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},tu.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var nu=ou;function ou(e){e=e||{},Qc.call(this,e),this.indentation=e.indent}Zc()(ou,Qc),ou.prototype.compile=function(e){return this.stylesheet(e)},ou.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},ou.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},ou.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},ou.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},ou.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},ou.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},ou.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},ou.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},ou.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},ou.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},ou.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},ou.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},ou.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},ou.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},ou.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},ou.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},ou.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var ru=function(e,t){try{const r=Kc(e);return n=$c().map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)})),((o=o||{}).compress?new eu(o):new nu(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function lu(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function iu(e,t){return new URL(e,t).toString()}var su=e=>t=>{if("declaration"===t.type){const l=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};lu(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+iu(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=l,o.forEach((e=>{n=n.replace(e.source,e.newUrl)})),n)}}var n,o,r;return t};const au=/^(body|html|:root).*$/;var cu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n=>"rule"===n.type?{...n,selectors:n.selectors.map((n=>t.includes(n.trim())?n:n.match(au)?n.replace(/^(body|html|:root)/,e):e+" "+n))}:n},uu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.map)(e,(e=>{let{css:n,baseURL:o}=e;const r=[];return t&&r.push(cu(t)),o&&r.push(su(o)),r.length?ru(n,(0,d.compose)(r)):n}))};const du=".editor-styles-wrapper";function pu(e){return(0,s.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,r=t.querySelector(du);let l;if(r)l=n.getComputedStyle(r,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),l=n.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const i=Oc(l);i.luminance()>.5||0===i.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e])}function mu(e){let{styles:t}=e;const n=(0,s.useMemo)((()=>uu(t,du)),[t]);return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("style",{ref:pu(t)}),n.map(((e,t)=>(0,s.createElement)("style",{key:t},e))))}let fu;zc([Vc,Uc]);const gu=2e3;var hu=function(e){let{viewportWidth:t,__experimentalPadding:n}=e;const[o,{width:r}]=(0,d.useResizeObserver)(),[l,{height:i}]=(0,d.useResizeObserver)(),{styles:a,assets:c}=(0,m.useSelect)((e=>{const t=e(zn).getSettings();return{styles:t.styles,assets:t.__unstableResolvedAssets}}),[]),u=(0,s.useMemo)((()=>a?[...a,{css:"body{height:auto;overflow:hidden;}",__unstableType:"presets"}]:a),[a]);fu=fu||(0,d.pure)(km);const f=r/t;return(0,s.createElement)("div",{className:"block-editor-block-preview__container"},o,(0,s.createElement)(p.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${f})`,height:i*f,maxHeight:i>gu?gu*f:void 0}},(0,s.createElement)(dc,{head:(0,s.createElement)(mu,{styles:u}),assets:c,contentRef:(0,d.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.padding=n+"px",e.style.position="relative"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:t,height:i,pointerEvents:"none",maxHeight:gu}},l,(0,s.createElement)(fu,{renderAppender:!1}))))},vu=(0,s.memo)((function(e){let{blocks:t,__experimentalPadding:n=0,viewportWidth:o=1200,__experimentalLive:r=!1,__experimentalOnClick:l}=e;const i=(0,m.useSelect)((e=>e(zn).getSettings()),[]),a=(0,s.useMemo)((()=>{const e={...i};return e.__experimentalBlockPatterns=[],e}),[i]),c=(0,s.useMemo)((()=>(0,u.castArray)(t)),[t]);return t&&0!==t.length?(0,s.createElement)(Ya,{value:c,settings:a},r?(0,s.createElement)(Xa,{onClick:l}):(0,s.createElement)(hu,{viewportWidth:o,__experimentalPadding:n})):null}));function bu(e){let{blocks:t,props:n={},__experimentalLayout:o}=e;const r=(0,m.useSelect)((e=>e(zn).getSettings()),[]),l=(0,d.__experimentalUseDisabled)(),i=(0,d.useMergeRefs)([n.ref,l]),a=(0,s.useMemo)((()=>({...r,__experimentalBlockPatterns:[]})),[r]),p=(0,s.useMemo)((()=>(0,u.castArray)(t)),[t]),f=(0,s.createElement)(Ya,{value:p,settings:a},(0,s.createElement)(ym,{renderAppender:!1,__experimentalLayout:o}));return{...n,ref:i,className:c()(n.className,"block-editor-block-preview__live-content","components-disabled"),children:null!=t&&t.length?f:null}}var ku=function(e){var t,n;let{item:o}=e;const{name:l,title:i,icon:a,description:c,initialAttributes:u}=o,d=(0,r.getBlockType)(l),p=(0,r.isReusableBlock)(o);return(0,s.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,s.createElement)("div",{className:"block-editor-inserter__preview"},p||null!=d&&d.example?(0,s.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,s.createElement)(vu,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=d.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:d.example?(0,r.getBlockFromExample)(o.name,{attributes:{...d.example.attributes,...u},innerBlocks:d.example.innerBlocks}):(0,r.createBlock)(l,u)})):(0,s.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,g.__)("No Preview Available."))),!p&&(0,s.createElement)(Ka,{title:i,icon:a,description:c}))},_u=(0,s.createContext)(),yu=(0,s.forwardRef)((function(e,t){let{isFirst:n,as:o,children:r,...l}=e;const a=(0,s.useContext)(_u);return(0,s.createElement)(p.__unstableCompositeItem,i({ref:t,state:a,role:"option",focusable:!0},l),(e=>{const t={...e,tabIndex:n?0:e.tabIndex};return o?(0,s.createElement)(o,t,r):"function"==typeof r?r(t):(0,s.createElement)(p.Button,t,r)}))})),Eu=(0,s.createElement)(O.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},(0,s.createElement)(O.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function Cu(e){let{count:t,icon:n}=e;return(0,s.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,s.createElement)("div",{className:"block-editor-block-draggable-chip"},(0,s.createElement)(p.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,s.createElement)(p.FlexItem,null,n?(0,s.createElement)(ja,{icon:n}):(0,g.sprintf)(
11
  /* translators: %d: Number of blocks. */
12
+ (0,g._n)("%d block","%d blocks",t),t)),(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(ja,{icon:Eu})))))}var Su=e=>{let{isEnabled:t,blocks:n,icon:o,children:r}=e;const l={type:"inserter",blocks:n};return(0,s.createElement)(p.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,__experimentalDragComponent:(0,s.createElement)(Cu,{count:n.length,icon:o})},(e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return r({draggable:t,onDragStart:t?n:void 0,onDragEnd:t?o:void 0})}))};function wu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var Bu=(0,s.memo)((function(e){let{className:t,isFirst:n,item:o,onSelect:l,onHover:a,isDraggable:u,...d}=e;const p=(0,s.useRef)(!1),m=o.icon?{backgroundColor:o.icon.background,color:o.icon.foreground}:{},f=(0,s.useMemo)((()=>[(0,r.createBlock)(o.name,o.initialAttributes,(0,r.createBlocksFromInnerBlocksTemplate)(o.innerBlocks))]),[o.name,o.initialAttributes,o.initialAttributes]);return(0,s.createElement)(Su,{isEnabled:u&&!o.disabled,blocks:f,icon:o.icon},(e=>{let{draggable:r,onDragStart:u,onDragEnd:f}=e;return(0,s.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{p.current=!0,u&&(a(null),u(e))},onDragEnd:e=>{p.current=!1,f&&f(e)}},(0,s.createElement)(yu,i({isFirst:n,className:c()("block-editor-block-types-list__item",t),disabled:o.isDisabled,onClick:e=>{e.preventDefault(),l(o,wu()?e.metaKey:e.ctrlKey),a(null)},onKeyDown:e=>{const{keyCode:t}=e;t===Ca.ENTER&&(e.preventDefault(),l(o,wu()?e.metaKey:e.ctrlKey),a(null))},onFocus:()=>{p.current||a(o)},onMouseEnter:()=>{p.current||a(o)},onMouseLeave:()=>a(null),onBlur:()=>a(null)},d),(0,s.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:m},(0,s.createElement)(ja,{icon:o.icon,showColors:!0})),(0,s.createElement)("span",{className:"block-editor-block-types-list__item-title"},o.title)))}))})),Iu=(0,s.forwardRef)((function(e,t){const[n,o]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{n&&(0,Nt.speak)((0,g.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,s.createElement)("div",i({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)}},e))})),xu=(0,s.forwardRef)((function(e,t){const n=(0,s.useContext)(_u);return(0,s.createElement)(p.__unstableCompositeGroup,i({state:n,role:"presentation",ref:t},e))})),Tu=function(e){let{items:t=[],onSelect:n,onHover:o=(()=>{}),children:l,label:i,isDraggable:a=!0}=e;return(0,s.createElement)(Iu,{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}(t).map(((e,t)=>(0,s.createElement)(xu,{key:t},e.map(((e,l)=>(0,s.createElement)(Bu,{key:e.id,item:e,className:(0,r.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:a,isFirst:0===t&&0===l})))))),l)},Nu=function(e){let{title:t,icon:n,children:o}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,s.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),(0,s.createElement)(p.Icon,{icon:n})),(0,s.createElement)("div",{className:"block-editor-inserter__panel-content"},o))},Pu=(e,t)=>{const{categories:n,collections:o,items:l}=(0,m.useSelect)((t=>{const{getInserterItems:n}=t(zn),{getCategories:o,getCollections:l}=t(r.store);return{categories:o(),collections:l(),items:n(e)}}),[e]);return[l,n,o,(0,s.useCallback)(((e,n)=>{let{name:o,initialAttributes:l,innerBlocks:i}=e;const s=(0,r.createBlock)(o,l,(0,r.createBlocksFromInnerBlocksTemplate)(i));t(s,void 0,n)}),[t])]},Mu=function(e){let{children:t}=e;const n=(0,p.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return(0,s.createElement)(_u.Provider,{value:n},t)};const Ru=[];var Lu=function(e){let{rootClientId:t,onInsert:n,onHover:o,showMostUsedBlocks:r}=e;const[l,i,a,c]=Pu(t,n),p=(0,s.useMemo)((()=>(0,u.orderBy)(l,["frecency"],["desc"]).slice(0,6)),[l]),m=(0,s.useMemo)((()=>l.filter((e=>!e.category))),[l]),f=(0,s.useMemo)((()=>(0,u.flow)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>(0,u.groupBy)(e,"category")))(l)),[l]),h=(0,s.useMemo)((()=>{const e={...a};return Object.keys(a).forEach((t=>{e[t]=l.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[l,a]);(0,s.useEffect)((()=>()=>o(null)),[]);const v=(0,d.useAsyncList)(i),b=i.length===v.length,k=(0,s.useMemo)((()=>Object.entries(a)),[a]),_=(0,d.useAsyncList)(b?k:Ru);return(0,s.createElement)(Mu,null,(0,s.createElement)("div",null,r&&!!p.length&&(0,s.createElement)(Nu,{title:(0,g._x)("Most used","blocks")},(0,s.createElement)(Tu,{items:p,onSelect:c,onHover:o,label:(0,g._x)("Most used","blocks")})),(0,u.map)(v,(e=>{const t=f[e.slug];return t&&t.length?(0,s.createElement)(Nu,{key:e.slug,title:e.title,icon:e.icon},(0,s.createElement)(Tu,{items:t,onSelect:c,onHover:o,label:e.title})):null})),b&&m.length>0&&(0,s.createElement)(Nu,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,g.__)("Uncategorized")},(0,s.createElement)(Tu,{items:m,onSelect:c,onHover:o,label:(0,g.__)("Uncategorized")})),(0,u.map)(_,(e=>{let[t,n]=e;const r=h[t];return r&&r.length?(0,s.createElement)(Nu,{key:t,title:n.title,icon:n.icon},(0,s.createElement)(Tu,{items:r,onSelect:c,onHover:o,label:n.title})):null}))))},Au=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o,openPatternExplorer:r}=e;const l=(0,d.useViewportMatch)("medium","<"),i=c()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return(0,s.createElement)(p.Flex,{justify:"space-between",align:"start",gap:"4",className:i},(0,s.createElement)(p.FlexItem,{isBlock:!0},(0,s.createElement)(p.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:(0,g.__)("Filter patterns"),hideLabelFromVision:!0,value:t.name,onChange:e=>{o(n.find((t=>e===t.name)))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return n.map((t=>e.push({value:t.name,label:t.label}))),e})()})),!l&&(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(p.Button,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:(0,g.__)("Explore all patterns"),onClick:()=>r()},(0,g._x)("Explore","Label for showing all block patterns"))))},Du=window.wp.notices,Ou=(e,t)=>{const{patternCategories:n,patterns:o}=(0,m.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(zn);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),{createSuccessNotice:l}=(0,m.useDispatch)(Du.store);return[o,n,(0,s.useCallback)(((t,n)=>{e((0,u.map)(n,(e=>(0,r.cloneBlock)(e))),t.name),l((0,g.sprintf)(
13
  /* translators: %s: block pattern title. */
14
+ (0,g.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function Fu(e){let{isDraggable:t,pattern:n,onClick:o,composite:r}=e;const{blocks:l,viewportWidth:a}=n,c=`block-editor-block-patterns-list__item-description-${(0,d.useInstanceId)(Fu)}`;return(0,s.createElement)(Su,{isEnabled:t,blocks:l},(e=>{let{draggable:t,onDragStart:u,onDragEnd:d}=e;return(0,s.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":n.title,"aria-describedby":n.description?c:void 0,draggable:t,onDragStart:u,onDragEnd:d},(0,s.createElement)(p.__unstableCompositeItem,i({role:"option",as:"div"},r,{className:"block-editor-block-patterns-list__item",onClick:()=>o(n,l)}),(0,s.createElement)(vu,{blocks:l,viewportWidth:a}),(0,s.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},n.title),!!n.description&&(0,s.createElement)(p.VisuallyHidden,{id:c},n.description)))}))}function zu(){return(0,s.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var Vu=function(e){let{isDraggable:t,blockPatterns:n,shownPatterns:o,onClickPattern:r,orientation:l,label:a=(0,g.__)("Block Patterns")}=e;const c=(0,p.__unstableUseCompositeState)({orientation:l});return(0,s.createElement)(p.__unstableComposite,i({},c,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":a}),n.map((e=>o.includes(e)?(0,s.createElement)(Fu,{key:e.name,pattern:e,onClick:r,isDraggable:t,composite:c}):(0,s.createElement)(zu,{key:e.name}))))};function Hu(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o}=e;const r="block-editor-block-patterns-explorer__sidebar";return(0,s.createElement)("div",{className:`${r}__categories-list`},n.map((e=>{let{name:n,label:l}=e;return(0,s.createElement)(p.Button,{key:n,label:l,className:`${r}__categories-list__item`,isPressed:t===n,onClick:()=>{o(n)}},l)})))}function Gu(e){let{filterValue:t,setFilterValue:n}=e;return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,s.createElement)(p.SearchControl,{onChange:n,value:t,label:(0,g.__)("Search for patterns"),placeholder:(0,g.__)("Search")}))}var Uu=function(e){let{selectedCategory:t,patternCategories:n,onClickCategory:o,filterValue:r,setFilterValue:l}=e;return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,s.createElement)(Gu,{filterValue:r,setFilterValue:l}),!r&&(0,s.createElement)(Hu,{selectedCategory:t,patternCategories:n,onClickCategory:o}))},Wu=function(){return(0,s.createElement)("div",{className:"block-editor-inserter__no-results"},(0,s.createElement)(wo,{className:"block-editor-inserter__no-results-icon",icon:$a}),(0,s.createElement)("p",null,(0,g.__)("No results found.")))},$u=function(e){let{rootClientId:t="",insertionIndex:n,clientId:o,isAppender:l,onSelect:i,shouldFocusBlock:a=!0}=e;const{getSelectedBlock:c}=(0,m.useSelect)(zn),{destinationRootClientId:d,destinationIndex:p}=(0,m.useSelect)((e=>{const{getSelectedBlockClientId:r,getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:a}=e(zn),c=r();let u,d=t;return void 0!==n?u=n:o?u=s(o):!l&&c?(d=i(c),u=s(c)+1):u=a(d).length,{destinationRootClientId:d,destinationIndex:u}}),[t,n,o,l]),{replaceBlocks:f,insertBlocks:h,showInsertionPoint:v,hideInsertionPoint:b}=(0,m.useDispatch)(zn),k=(0,s.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=c();!l&&o&&(0,r.isUnmodifiedDefaultBlock)(o)?f(o.clientId,e,null,a||n?0:null,t):h(e,p,d,!0,a||n?0:null,t);const s=(0,g.sprintf)(// translators: %d: the name of the block that has been added
15
+ (0,g._n)("%d block added.","%d blocks added.",(0,u.castArray)(e).length),(0,u.castArray)(e).length);(0,Nt.speak)(s),i&&i()}),[l,c,f,h,d,p,i,a]),_=(0,s.useCallback)((e=>{e?v(d,p):b()}),[v,b,d,p]);return[d,k,_]};const ju=e=>e.name||"",Ku=e=>e.title,qu=e=>e.description||"",Yu=e=>e.keywords||[],Xu=e=>e.category,Zu=()=>null;function Qu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(0,u.deburr)(e),e=e.replace(/^\//,""),e=e.toLowerCase(),e}const Ju=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,u.words)(Qu(e))},ed=(e,t)=>(0,u.differenceWith)(e,Ju(t),((e,t)=>t.includes(e))),td=(e,t,n,o)=>0===Ju(o).length?e:nd(e,o,{getCategory:e=>{var n;return null===(n=(0,u.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}}),nd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=Ju(t);if(0===o.length)return e;const r=e.map((e=>[e,od(e,t,n)])).filter((e=>{let[,t]=e;return t>0}));return r.sort(((e,t)=>{let[,n]=e,[,o]=t;return o-n})),r.map((e=>{let[t]=e;return t}))};function od(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getName:o=ju,getTitle:r=Ku,getDescription:l=qu,getKeywords:i=Yu,getCategory:s=Xu,getCollection:a=Zu}=n,c=o(e),d=r(e),p=l(e),m=i(e),f=s(e),g=a(e),h=Qu(t),v=Qu(d);let b=0;if(h===v)b+=30;else if(v.startsWith(h))b+=20;else{const e=[c,d,p,...m,f,g].join(" "),t=(0,u.words)(h);0===ed(t,e).length&&(b+=10)}return 0!==b&&c.startsWith("core/")&&(b+=c!==e.id?1:2),b}function rd(e){let{filterValue:t,filteredBlockPatternsLength:n}=e;return t?(0,s.createElement)(p.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,g.sprintf)(
16
  /* translators: %d: number of patterns. %s: block pattern search query */
17
+ (0,g._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',n),n,t)):null}var ld=function(e){let{filterValue:t,selectedCategory:n,patternCategories:o}=e;const r=(0,d.useDebounce)(Nt.speak,500),[l,i]=$u({shouldFocusBlock:!0}),[a,,c]=Ou(i,l),u=(0,s.useMemo)((()=>o.map((e=>e.name))),[o]),p=(0,s.useMemo)((()=>t?nd(a,t):a.filter((e=>{var t,o;return"uncategorized"===n?!(null!==(t=e.categories)&&void 0!==t&&t.length)||e.categories.every((e=>!u.includes(e))):null===(o=e.categories)||void 0===o?void 0:o.includes(n)}))),[t,n,a]);(0,s.useEffect)((()=>{if(!t)return;const e=p.length,n=(0,g.sprintf)(
18
  /* translators: %d: number of results. */
19
+ (0,g._n)("%d result found.","%d results found.",e),e);r(n)}),[t,r]);const m=(0,d.useAsyncList)(p,{step:2}),f=!(null==p||!p.length);return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},f&&(0,s.createElement)(rd,{filterValue:t,filteredBlockPatternsLength:p.length}),(0,s.createElement)(Mu,null,!f&&(0,s.createElement)(Wu,null),f&&(0,s.createElement)(Vu,{shownPatterns:m,blockPatterns:p,onClickPattern:c,isDraggable:!1})))};function id(e){let{initialCategory:t,patternCategories:n}=e;const[o,r]=(0,s.useState)(""),[l,i]=(0,s.useState)(null==t?void 0:t.name);return(0,s.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,s.createElement)(Uu,{selectedCategory:l,patternCategories:n,onClickCategory:i,filterValue:o,setFilterValue:r}),(0,s.createElement)(ld,{filterValue:o,selectedCategory:l,patternCategories:n}))}var sd=function(e){let{onModalClose:t,...n}=e;return(0,s.createElement)(p.Modal,{title:(0,g.__)("Patterns"),closeLabel:(0,g.__)("Close"),onRequestClose:t,isFullScreen:!0},(0,s.createElement)(id,n))};function ad(e){let{rootClientId:t,onInsert:n,selectedCategory:o,populatedCategories:r}=e;const[l,,i]=Ou(n,t),a=(0,s.useCallback)((e=>{var t;if(null===(t=e.categories)||void 0===t||!t.length)return 1/0;const n=r.reduce(((e,t,n)=>{let{name:o}=t;return e[o]=n,e}),{});return Math.min(...e.categories.map((e=>void 0!==n[e]?n[e]:1/0)))}),[r]),c=(0,s.useMemo)((()=>l.filter((e=>{var t;return"uncategorized"===o.name?a(e)===1/0:null===(t=e.categories)||void 0===t?void 0:t.includes(o.name)}))),[l,o]),u=(0,s.useMemo)((()=>c.sort(((e,t)=>a(e)-a(t)))),[c,a]),p=(0,d.useAsyncList)(u);return c.length?(0,s.createElement)("div",{className:"block-editor-inserter__panel-content"},(0,s.createElement)(Vu,{shownPatterns:p,blockPatterns:c,onClickPattern:i,label:o.label,orientation:"vertical",isDraggable:!0})):null}var cd=function(e){let{rootClientId:t,onInsert:n,onClickCategory:o,selectedCategory:r}=e;const[l,i]=(0,s.useState)(!1),[a,c]=Ou(),u=(0,s.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>c.some((t=>t.name===e))))),[c]),d=(0,s.useMemo)((()=>{const e=c.filter((e=>a.some((t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})))).sort(((e,t)=>{let{name:n}=e,{name:o}=t;return[n,o].includes("featured")?"featured"===n?-1:1:0}));return a.some((e=>!u(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,g._x)("Uncategorized")}),e}),[a,c]),p=r||d[0];return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Au,{selectedCategory:p,patternCategories:d,onClickCategory:o,openPatternExplorer:()=>i(!0)}),!l&&(0,s.createElement)(ad,{rootClientId:t,onInsert:n,selectedCategory:p,populatedCategories:d}),l&&(0,s.createElement)(sd,{initialCategory:p,patternCategories:d,onModalClose:()=>i(!1)}))},ud=window.wp.url;function dd(e){let{onHover:t,onInsert:n,rootClientId:o}=e;const[r,,,l]=Pu(o,n),i=(0,s.useMemo)((()=>r.filter((e=>{let{category:t}=e;return"reusable"===t}))),[r]);return 0===i.length?(0,s.createElement)(Wu,null):(0,s.createElement)(Nu,{title:(0,g.__)("Reusable blocks")},(0,s.createElement)(Tu,{items:i,onSelect:l,onHover:t,label:(0,g.__)("Reusable blocks")}))}var pd=function(e){let{rootClientId:t,onInsert:n,onHover:o}=e;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(dd,{onHover:o,onInsert:n,rootClientId:t}),(0,s.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,s.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:(0,ud.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,g.__)("Manage Reusable blocks"))))};const{Fill:md,Slot:fd}=(0,p.createSlotFill)("__unstableInserterMenuExtension");md.Slot=fd;var gd=md;const hd=[];var vd=function(e){let{filterValue:t,onSelect:n,onHover:o,rootClientId:r,clientId:l,isAppender:i,__experimentalInsertionIndex:a,maxBlockPatterns:c,maxBlockTypes:m,showBlockDirectory:f=!1,isDraggable:h=!0,shouldFocusBlock:v=!0,prioritizePatterns:b}=e;const k=(0,d.useDebounce)(Nt.speak,500),[_,y]=$u({onSelect:n,rootClientId:r,clientId:l,isAppender:i,insertionIndex:a,shouldFocusBlock:v}),[E,C,S,w]=Pu(_,y),[B,,I]=Ou(y,_),x=(0,s.useMemo)((()=>{if(0===c)return[];const e=nd(B,t);return void 0!==c?e.slice(0,c):e}),[t,B,c]);let T=m;b&&x.length>2&&(T=0);const N=(0,s.useMemo)((()=>{if(0===T)return[];const e=td((0,u.orderBy)(E,["frecency"],["desc"]),C,S,t);return void 0!==T?e.slice(0,T):e}),[t,E,C,S,m]);(0,s.useEffect)((()=>{if(!t)return;const e=N.length+x.length,n=(0,g.sprintf)(
20
  /* translators: %d: number of results. */
21
+ (0,g._n)("%d result found.","%d results found.",e),e);k(n)}),[t,k]);const P=(0,d.useAsyncList)(N,{step:9}),M=(0,d.useAsyncList)(P.length===N.length?x:hd),R=!(0,u.isEmpty)(N)||!(0,u.isEmpty)(x),L=!!N.length&&(0,s.createElement)(Nu,{title:(0,s.createElement)(p.VisuallyHidden,null,(0,g.__)("Blocks"))},(0,s.createElement)(Tu,{items:P,onSelect:w,onHover:o,label:(0,g.__)("Blocks"),isDraggable:h})),A=!!x.length&&(0,s.createElement)(Nu,{title:(0,s.createElement)(p.VisuallyHidden,null,(0,g.__)("Block Patterns"))},(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,s.createElement)(Vu,{shownPatterns:M,blockPatterns:x,onClickPattern:I,isDraggable:h})));return(0,s.createElement)(Mu,null,!f&&!R&&(0,s.createElement)(Wu,null),b?A:L,!!N.length&&!!x.length&&(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),b?L:A,f&&(0,s.createElement)(gd.Slot,{fillProps:{onSelect:w,onHover:o,filterValue:t,hasItems:R,rootClientId:_}},(e=>e.length?e:R?null:(0,s.createElement)(Wu,null))))};const bd={name:"blocks",
22
  /* translators: Blocks tab title in the block inserter. */
23
+ title:(0,g.__)("Blocks")},kd={name:"patterns",
24
  /* translators: Patterns tab title in the block inserter. */
25
+ title:(0,g.__)("Patterns")},_d={name:"reusable",
26
  /* translators: Reusable blocks tab title in the block inserter. */
27
+ title:(0,g.__)("Reusable")};var yd=function(e){let{children:t,showPatterns:n=!1,showReusableBlocks:o=!1,onSelect:r}=e;const l=(0,s.useMemo)((()=>{const e=[bd];return n&&e.push(kd),o&&e.push(_d),e}),[bd,n,kd,o,_d]);return(0,s.createElement)(p.TabPanel,{className:"block-editor-inserter__tabs",tabs:l,onSelect:r},t)},Ed=(0,s.forwardRef)((function(e,t){let{rootClientId:n,clientId:o,isAppender:r,__experimentalInsertionIndex:l,onSelect:i,showInserterHelpPanel:a,showMostUsedBlocks:c,__experimentalFilterValue:u="",shouldFocusBlock:d=!0}=e;const[f,h]=(0,s.useState)(u),[v,b]=(0,s.useState)(null),[k,_]=(0,s.useState)(null),[y,E,C]=$u({rootClientId:n,clientId:o,isAppender:r,insertionIndex:l,shouldFocusBlock:d}),{showPatterns:S,hasReusableBlocks:w}=(0,m.useSelect)((e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(zn);return{showPatterns:!!n(y).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}}),[y]),B=(0,s.useCallback)(((e,t,n)=>{E(e,t,n),i()}),[E,i]),I=(0,s.useCallback)(((e,t)=>{E(e,{patternName:t}),i()}),[E,i]),x=(0,s.useCallback)((e=>{C(!!e),b(e)}),[C,b]),T=(0,s.useCallback)((e=>{_(e)}),[_]),N=(0,s.useMemo)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"block-editor-inserter__block-list"},(0,s.createElement)(Lu,{rootClientId:y,onInsert:B,onHover:x,showMostUsedBlocks:c})),a&&(0,s.createElement)("div",{className:"block-editor-inserter__tips"},(0,s.createElement)(p.VisuallyHidden,{as:"h2"},(0,g.__)("A tip for using the block editor")),(0,s.createElement)(Wa,null)))),[y,B,x,f,c,a]),P=(0,s.useMemo)((()=>(0,s.createElement)(cd,{rootClientId:y,onInsert:I,onClickCategory:T,selectedCategory:k})),[y,I,T,k]),M=(0,s.useMemo)((()=>(0,s.createElement)(pd,{rootClientId:y,onInsert:B,onHover:x})),[y,B,x]),R=(0,s.useCallback)((e=>"blocks"===e.name?N:"patterns"===e.name?P:M),[N,P,M]),L=(0,s.useRef)();return(0,s.useImperativeHandle)(t,(()=>({focusSearch:()=>{L.current.focus()}}))),(0,s.createElement)("div",{className:"block-editor-inserter__menu"},(0,s.createElement)("div",{className:"block-editor-inserter__main-area"},(0,s.createElement)("div",{className:"block-editor-inserter__content"},(0,s.createElement)(p.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{v&&b(null),h(e)},value:f,label:(0,g.__)("Search for blocks and patterns"),placeholder:(0,g.__)("Search"),ref:L}),!!f&&(0,s.createElement)(vd,{filterValue:f,onSelect:i,onHover:x,rootClientId:n,clientId:o,isAppender:r,__experimentalInsertionIndex:l,showBlockDirectory:!0,shouldFocusBlock:d}),!f&&(S||w)&&(0,s.createElement)(yd,{showPatterns:S,showReusableBlocks:w},R),!f&&!S&&!w&&N)),a&&v&&(0,s.createElement)(ku,{item:v}))}));function Cd(e){let{onSelect:t,rootClientId:n,clientId:o,isAppender:r}=e;const[l,i]=(0,s.useState)(""),[a,u]=$u({onSelect:t,rootClientId:n,clientId:o,isAppender:r}),[d]=Pu(a,u),[f]=Ou(u,a),{setInserterIsOpened:h,insertionIndex:v,prioritizePatterns:b}=(0,m.useSelect)((e=>{const{getSettings:t,getBlockIndex:r,getBlockCount:l}=e(zn),i=t(),s=r(o),a=l();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,prioritizePatterns:i.__experimentalPreferPatternsOnRoot&&!n&&s>0&&(s<a||0===a),insertionIndex:-1===s?a:s}}),[o,n]),k=f.length&&(!!l||b),_=k&&f.length>6||d.length>6;(0,s.useEffect)((()=>{h&&h(!1)}),[h]);let y=0;return k&&(y=b?4:2),(0,s.createElement)("div",{className:c()("block-editor-inserter__quick-inserter",{"has-search":_,"has-expand":h})},_&&(0,s.createElement)(p.SearchControl,{className:"block-editor-inserter__search",value:l,onChange:e=>{i(e)},label:(0,g.__)("Search for blocks and patterns"),placeholder:(0,g.__)("Search")}),(0,s.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,s.createElement)(vd,{filterValue:l,onSelect:t,rootClientId:n,clientId:o,isAppender:r,maxBlockPatterns:y,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:b})),h&&(0,s.createElement)(p.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{h({rootClientId:n,insertionIndex:v,filterValue:l})},"aria-label":(0,g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,g.__)("Browse all")))}const Sd=e=>{let t,{onToggle:n,disabled:o,isOpen:r,blockTitle:l,hasSingleBlockType:a,toggleProps:c={}}=e;t=a?(0,g.sprintf)(// translators: %s: the name of the block when there is only one
28
+ (0,g._x)("Add %s","directly add the only allowed block"),l):(0,g._x)("Add block","Generic label for block inserter button");const{onClick:u,...d}=c;return(0,s.createElement)(p.Button,i({icon:Ga,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),u&&u(e)},className:"block-editor-inserter__toggle","aria-haspopup":!a&&"true","aria-expanded":!a&&r,disabled:o},d))};class wd extends s.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle(e){let{onToggle:t,isOpen:n}=e;const{disabled:o,blockTitle:r,hasSingleBlockType:l,directInsertBlock:i,toggleProps:s,hasItems:a,renderToggle:c=Sd}=this.props;return c({onToggle:t,isOpen:n,disabled:o||!a,blockTitle:r,hasSingleBlockType:l,directInsertBlock:i,toggleProps:s})}renderContent(e){let{onClose:t}=e;const{rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:l,__experimentalIsQuick:i}=this.props;return i?(0,s.createElement)(Cd,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:r}):(0,s.createElement)(Ed,{onSelect:()=>{t()},rootClientId:n,clientId:o,isAppender:r,showInserterHelpPanel:l})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:l}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,s.createElement)(p.Dropdown,{className:"block-editor-inserter",contentClassName:c()("block-editor-inserter__popover",{"is-quick":r}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}var Bd=(0,d.compose)([(0,m.withSelect)(((e,t)=>{let{clientId:n,rootClientId:o}=t;const{getBlockRootClientId:l,hasInserterItems:i,__experimentalGetAllowedBlocks:s,__experimentalGetDirectInsertBlock:a}=e(zn),{getBlockVariations:c}=e(r.store);o=o||l(n)||void 0;const d=s(o),p=a(o),m=1===(0,u.size)(d)&&0===(0,u.size)(c(d[0].name,"inserter"));let f=!1;return m&&(f=d[0]),{hasItems:i(o),hasSingleBlockType:m,blockTitle:f?f.title:"",allowedBlockType:f,directInsertBlock:p,rootClientId:o}})),(0,m.withDispatch)(((e,t,n)=>{let{select:o}=n;return{insertOnlyAllowedBlock(){const{rootClientId:n,clientId:l,isAppender:i,hasSingleBlockType:s,allowedBlockType:a,directInsertBlock:c,onSelectOrClose:u}=t;if(!s&&!c)return;const{insertBlock:d}=e(zn);let p;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:r}=o(zn);if(!e||!l&&!n)return{};const i={};let s={};if(l){const e=t(l),n=t(r(l));(null==e?void 0:e.name)===(null==n?void 0:n.name)&&(s=(null==n?void 0:n.attributes)||{})}else{var a;const e=t(n);if(null!=e&&null!==(a=e.innerBlocks)&&void 0!==a&&a.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&(null==c?void 0:c.name)===t.name&&(s=t.attributes)}}return e.forEach((e=>{s.hasOwnProperty(e)&&(i[e]=s[e])})),i}(c.attributesToCopy);p=(0,r.createBlock)(c.name,{...c.attributes||{},...e})}else p=(0,r.createBlock)(a.name);d(p,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:r,getBlockRootClientId:s}=o(zn);if(l)return e(l);const a=t();return!i&&a&&s(a)===n?e(a)+1:r(n).length}(),n),u&&u();const m=(0,g.sprintf)(// translators: %s: the name of the block that has been added
29
+ (0,g.__)("%s block added"),a.title);(0,Nt.speak)(m)}}})),(0,d.ifCondition)((e=>{let{hasItems:t,isAppender:n,rootClientId:o,clientId:r}=e;return t||!n&&!o&&!r}))])(wd),Id=(0,d.compose)((0,m.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=e(zn),l=!n(t.rootClientId),{bodyPlaceholder:i}=o();return{showPrompt:l,isLocked:!!r(t.rootClientId),placeholder:i}})),(0,m.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(zn);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}})))((function(e){let{isLocked:t,onAppend:n,showPrompt:o,placeholder:r,rootClientId:l}=e;if(t)return null;const i=(0,Ha.decodeEntities)(r)||(0,g.__)("Type / to choose a block");return(0,s.createElement)("div",{"data-root-client-id":l||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":o})},(0,s.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,g.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{Ca.ENTER!==e.keyCode&&Ca.SPACE!==e.keyCode||n()},onClick:()=>n(),onFocus:()=>{o&&n()}},o?i:"\ufeff"),(0,s.createElement)(Bd,{rootClientId:l,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function xd(e,t){let{rootClientId:n,className:o,onFocus:r,tabIndex:l}=e;return(0,s.createElement)(Bd,{position:"bottom center",rootClientId:n,__experimentalIsQuick:!0,renderToggle:e=>{let n,{onToggle:i,disabled:a,isOpen:u,blockTitle:d,hasSingleBlockType:m}=e;n=m?(0,g.sprintf)(// translators: %s: the name of the block when there is only one
30
+ (0,g._x)("Add %s","directly add the only allowed block"),d):(0,g._x)("Add block","Generic label for block inserter button");const f=!m;let h=(0,s.createElement)(p.Button,{ref:t,onFocus:r,tabIndex:l,className:c()(o,"block-editor-button-block-appender"),onClick:i,"aria-haspopup":f?"true":void 0,"aria-expanded":f?u:void 0,disabled:a,label:n},!m&&(0,s.createElement)(p.VisuallyHidden,{as:"span"},n),(0,s.createElement)(wo,{icon:Ga}));return(f||m)&&(h=(0,s.createElement)(p.Tooltip,{text:n},h)),h},isAppender:!0})}const Td=(0,s.forwardRef)(((e,t)=>(Rt()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),xd(e,t))));var Nd=(0,s.forwardRef)(xd),Pd=(0,m.withSelect)(((e,t)=>{let{rootClientId:n}=t;const{canInsertBlockType:o,getTemplateLock:l,getSelectedBlockClientId:i}=e(zn);return{isLocked:!!l(n),canInsertDefaultBlock:o((0,r.getDefaultBlockName)(),n),selectedBlockClientId:i()}}))((function(e){let t,{rootClientId:n,canInsertDefaultBlock:o,isLocked:r,renderAppender:l,className:i,selectedBlockClientId:a,tagName:u="div"}=e;if(r||!1===l)return null;if(l)t=(0,s.createElement)(l,null);else{if(a!==n&&(n||a))return null;t=o?(0,s.createElement)(Id,{rootClientId:n}):(0,s.createElement)(Nd,{rootClientId:n,className:"block-list-appender__toggle"})}return(0,s.createElement)(u,{tabIndex:-1,className:c()("block-list-appender wp-block",i),"data-block":!0},t)}));function Md(e){return(0,d.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])}const Rd=(0,s.createContext)();function Ld(e){let{__unstablePopoverSlot:t,__unstableContentRef:n}=e;const{selectBlock:o,hideInsertionPoint:r}=(0,m.useDispatch)(zn),l=(0,s.useContext)(Rd),i=(0,s.useRef)(),{orientation:a,previousClientId:u,nextClientId:f,rootClientId:h,isInserterShown:v}=(0,m.useSelect)((e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:l,getPreviousBlockClientId:i,getNextBlockClientId:s}=e(zn),a=r(),c=n(a.rootClientId);if(!c.length)return{};let u=c[a.index-1],d=c[a.index];for(;l(u);)u=i(u);for(;l(d);)d=s(d);return{previousClientId:u,nextClientId:d,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}}),[]),b=Ra(u),k=Ra(f),_="vertical"===a,y=(0,s.useMemo)((()=>{if(!b&&!k)return{};const e=b?b.getBoundingClientRect():null,t=k?k.getBoundingClientRect():null;if(_)return{width:b?b.offsetWidth:k.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=(0,g.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:b?b.offsetHeight:k.offsetHeight}}),[b,k]),E=(0,s.useCallback)((()=>{if(!b&&!k)return{};const{ownerDocument:e}=b||k,t=b?b.getBoundingClientRect():null,n=k?k.getBoundingClientRect():null;return _?(0,g.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}:(0,g.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}}),[b,k]),C=Md(n),S=(0,d.useReducedMotion)(),w=c()("block-editor-block-list__insertion-point","is-"+a),B=b&&k&&v,I={start:{..._?{height:0,left:"50%",right:"50%",y:0}:{width:0,top:"50%",bottom:"50%",x:0},opacity:0},rest:{..._?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:B?.4:0}},hover:{..._?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:.4}}},x={start:{scale:S?1:0},rest:{scale:1,transition:{delay:.2}}};return(0,s.createElement)(p.Popover,{ref:C,noArrow:!0,animate:!1,getAnchorRect:E,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:t||null,key:f+"--"+h},(0,s.createElement)(p.__unstableMotion.div,{layout:!S,initial:S?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:i,tabIndex:-1,onClick:function(e){e.target===i.current&&f&&o(f,-1)},onFocus:function(e){e.target!==i.current&&(l.current=!0)},className:c()(w,{"is-with-inserter":B}),onHoverEnd:function(e){e.target!==i.current||l.current||r()},style:y},(0,s.createElement)(p.__unstableMotion.div,{variants:I,className:"block-editor-block-list__insertion-point-indicator"}),B&&(0,s.createElement)(p.__unstableMotion.div,{variants:x,className:c()("block-editor-block-list__insertion-point-inserter")},(0,s.createElement)(Bd,{position:"bottom center",clientId:f,rootClientId:h,__experimentalIsQuick:!0,onToggle:e=>{l.current=e},onSelectOrClose:()=>{l.current=!1}}))))}function Ad(e){let{children:t,__unstablePopoverSlot:n,__unstableContentRef:o}=e;const r=(0,m.useSelect)((e=>e(zn).isBlockInsertionPointVisible()),[]);return(0,s.createElement)(Rd.Provider,{value:(0,s.useRef)(!1)},r&&(0,s.createElement)(Ld,{__unstablePopoverSlot:n,__unstableContentRef:o}),t)}function Dd(){const e=(0,s.useContext)(Rd),t=(0,m.useSelect)((e=>e(zn).getSettings().hasReducedUI),[]),{getBlockListSettings:n,getBlockRootClientId:o,getBlockIndex:r,isBlockInsertionPointVisible:l,isMultiSelecting:i,getSelectedBlockClientIds:a,getTemplateLock:c}=(0,m.useSelect)(zn),{showInsertionPoint:u,hideInsertionPoint:p}=(0,m.useDispatch)(zn);return(0,d.useRefEffect)((o=>{if(!t)return o.addEventListener("mousemove",s),()=>{o.removeEventListener("mousemove",s)};function s(t){var o,s;if(e.current)return;if(i())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(l()&&p());let d;if(t.target.classList.contains("is-root-container")||(d=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")),c(d))return;const m=(null===(o=n(d))||void 0===o?void 0:o.orientation)||"vertical",f=t.target.getBoundingClientRect(),g=t.clientY-f.top,h=t.clientX-f.left;let v=Array.from(t.target.children).find((e=>e.classList.contains("wp-block")&&"vertical"===m&&e.offsetTop>g||e.classList.contains("wp-block")&&"horizontal"===m&&e.offsetLeft>h));if(!v)return;if(!v.id&&(v=v.firstElementChild,!v))return;if(null===(s=v.parentElement)||void 0===s?void 0:s.closest(".block-editor-block-content-overlay.overlay-active"))return;const b=v.id.slice("block-".length);if(!b)return;if(a().includes(b))return;const k=v.getBoundingClientRect();if("horizontal"===m&&(t.clientY>k.bottom||t.clientY<k.top)||"vertical"===m&&(t.clientX>k.right||t.clientX<k.left))return void(l()&&p());const _=r(b);0!==_?u(d,_,{__unstableWithInserter:!0}):l()&&p()}}),[e,n,o,r,l,i,u,p,a])}const Od="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,Fd="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;function zd(e){return(0,m.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(zn),{getBlockType:l,getActiveBlockVariation:i}=t(r.store),s=n(e),a=l(s);if(!a)return null;const c=o(e),u=i(s,c),d={title:a.title,icon:a.icon,description:a.description,anchor:null==c?void 0:c.anchor};return u?{title:u.title||a.title,icon:u.icon||a.icon,description:u.description||a.description}:d}),[e])}function Vd(e){let{clientId:t}=e;const{attributes:n,name:o,reusableBlockTitle:l}=(0,m.useSelect)((e=>{if(!t)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:l}=e(zn),i=n(t);if(!i)return{};const s=(0,r.isReusableBlock)((0,r.getBlockType)(i));return{attributes:o(t),name:i,reusableBlockTitle:s&&l(o(t).ref)}}),[t]),i=zd(t);if(!o||!i)return null;const s=(0,r.getBlockType)(o),a=s?(0,r.__experimentalGetBlockLabel)(s,n):null,c=l||a;return c&&c!==s.title?(0,u.truncate)(c,{length:35}):i.title}var Hd=e=>{let{children:t,clientIds:n,cloneClassname:o,onDragStart:l,onDragEnd:i}=e;const{srcRootClientId:a,isDraggable:c,icon:u}=(0,m.useSelect)((e=>{var t;const{getBlockRootClientId:o,getTemplateLock:l,getBlockName:i}=e(zn),s=o(n[0]),a=s?l(s):null,c=i(n[0]);return{srcRootClientId:s,isDraggable:"all"!==a,icon:null===(t=(0,r.getBlockType)(c))||void 0===t?void 0:t.icon}}),[n]),d=(0,s.useRef)(!1),[f,g,h]=function(){const e=(0,s.useRef)(null),t=(0,s.useRef)(null),n=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,s.useCallback)((r=>{e.current=r.clientY,n.current=(0,ar.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,s.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,l=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>l){const e=Math.max(r-l-50,0),n=Math.max(i-l-50,0)/e;t.current=25*n}else if(o.clientY<l){const e=Math.max(l-50,0),n=Math.max(l-i-50,0)/e;t.current=-25*n}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{startDraggingBlocks:v,stopDraggingBlocks:b}=(0,m.useDispatch)(zn);if((0,s.useEffect)((()=>()=>{d.current&&b()}),[]),!c)return t({isDraggable:!1});const k={type:"block",srcClientIds:n,srcRootClientId:a};return(0,s.createElement)(p.Draggable,{cloneClassname:o,__experimentalTransferDataType:"wp-blocks",transferData:k,onDragStart:e=>{v(n),d.current=!0,f(e),l&&l()},onDragOver:g,onDragEnd:()=>{b(),d.current=!1,h(),i&&i()},__experimentalDragComponent:(0,s.createElement)(Cu,{count:n.length,icon:u})},(e=>{let{onDraggableStart:n,onDraggableEnd:o}=e;return t({draggable:!0,onDragStart:n,onDragEnd:o})}))},Gd=function(e){let{clientId:t,rootClientId:n,blockElement:o}=e;const l=zd(t),a=(0,m.useSelect)((e=>{var o;const{getBlock:r,getBlockIndex:l,hasBlockMovingClientId:i,getBlockListSettings:s}=e(zn),a=l(t),{name:c,attributes:u}=r(t);return{index:a,name:c,attributes:u,blockMovingMode:i(),orientation:null===(o=s(n))||void 0===o?void 0:o.orientation}}),[t,n]),{index:u,name:d,attributes:f,blockMovingMode:h,orientation:v}=a,{setNavigationMode:b,removeBlock:k}=(0,m.useDispatch)(zn),_=(0,s.useRef)(),y=(0,r.getBlockType)(d),E=(0,r.__experimentalGetAccessibleBlockLabel)(y,f,u+1,v);(0,s.useEffect)((()=>{_.current.focus(),(0,Nt.speak)(E)}),[E]);const{hasBlockMovingClientId:C,getBlockIndex:S,getBlockRootClientId:w,getClientIdsOfDescendants:B,getSelectedBlockClientId:I,getMultiSelectedBlocksEndClientId:x,getPreviousBlockClientId:T,getNextBlockClientId:N,isNavigationMode:P}=(0,m.useSelect)(zn),{selectBlock:M,clearSelectedBlock:R,setBlockMovingClientId:L,moveBlockToPosition:A}=(0,m.useDispatch)(zn),D=c()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!h}),O=(0,g.__)("Drag");return(0,s.createElement)("div",{className:D},(0,s.createElement)(p.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(ja,{icon:null==l?void 0:l.icon,showColors:!0})),(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(Hd,{clientIds:[t]},(e=>(0,s.createElement)(p.Button,i({icon:Eu,className:"block-selection-button_drag-handle","aria-hidden":"true",label:O,tabIndex:"-1"},e))))),(0,s.createElement)(p.FlexItem,null,(0,s.createElement)(p.Button,{ref:_,onClick:()=>b(!1),onKeyDown:function(e){const{keyCode:n}=e,r=n===Ca.UP,l=n===Ca.DOWN,i=n===Ca.LEFT,s=n===Ca.RIGHT,a=n===Ca.TAB,c=n===Ca.ESCAPE,u=n===Ca.ENTER,d=n===Ca.SPACE,p=e.shiftKey;if(n===Ca.BACKSPACE||n===Ca.DELETE)return k(t),void e.preventDefault();const m=I(),f=x(),g=T(f||m),h=N(f||m),v=a&&p||r,b=a&&!p||l,_=i,y=s;let E;if(v)E=g;else if(b)E=h;else if(_){var D;E=null!==(D=w(m))&&void 0!==D?D:m}else if(y){var O;E=null!==(O=B([m])[0])&&void 0!==O?O:m}const F=C();if(c&&P()&&(R(),e.preventDefault()),c&&F&&!e.defaultPrevented&&(L(null),e.preventDefault()),(u||d)&&F){const e=w(F),t=w(m),n=S(F);let o=S(m);n<o&&e===t&&(o-=1),A(F,e,t,o),M(F),L(null)}if(b||v||_||y)if(E)e.preventDefault(),M(E);else if(a&&m){let t;if(b){t=o;do{t=ar.focus.tabbable.findNext(t)}while(t&&o.contains(t));t||(t=o.ownerDocument.defaultView.frameElement,t=ar.focus.tabbable.findNext(t))}else t=ar.focus.tabbable.findPrevious(o);t&&(e.preventDefault(),t.focus(),R())}},label:E,className:"block-selection-button_select-button"},(0,s.createElement)(Vd,{clientId:t})))))};function Ud(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}var Wd=function(e){let{children:t,focusOnMount:n,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,...l}=e;const a=(0,s.useRef)(),c=function(e){const[t,n]=(0,s.useState)(!0),o=(0,s.useCallback)((()=>{const t=!ar.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||Rt()("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(0,s.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(a);return function(e,t,n,o,r){const[l]=(0,s.useState)(t),[i]=(0,s.useState)(o),a=(0,s.useCallback)((()=>{!function(e){const[t]=ar.focus.tabbable.find(e);t&&t.focus()}(e.current)}),[]);(0,lc.useShortcut)("core/block-editor/focus-toolbar",a),(0,s.useEffect)((()=>{l&&a()}),[n,l,a]),(0,s.useEffect)((()=>{let t=0;return i&&!l&&(t=window.requestAnimationFrame((()=>{const t=Ud(e.current),n=i||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()}))),()=>{if(window.cancelAnimationFrame(t),!r||!e.current)return;const n=Ud(e.current).findIndex((e=>0===e.tabIndex));r(n)}}),[i,l])}(a,n,c,o,r),c?(0,s.createElement)(p.Toolbar,i({label:l["aria-label"],ref:a},l),t):(0,s.createElement)(p.NavigableMenu,i({orientation:"horizontal",role:"toolbar",ref:a},l),t)},$d=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),jd=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Kd=(0,s.createElement)(O.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(O.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),qd=(0,s.createElement)(O.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(O.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Yd=(e,t)=>"up"===e?"horizontal"===t?(0,g.isRTL)()?$d:jd:Kd:"down"===e?"horizontal"===t?(0,g.isRTL)()?jd:$d:qd:null,Xd=(e,t)=>"up"===e?"horizontal"===t?(0,g.isRTL)()?(0,g.__)("Move right"):(0,g.__)("Move left"):(0,g.__)("Move up"):"down"===e?"horizontal"===t?(0,g.isRTL)()?(0,g.__)("Move left"):(0,g.__)("Move right"):(0,g.__)("Move down"):null,Zd=(0,s.forwardRef)(((e,t)=>{let{clientIds:n,direction:o,orientation:l,...a}=e;const f=(0,d.useInstanceId)(Zd),h=(0,u.castArray)(n).length,{blockType:v,isDisabled:b,rootClientId:k,isFirst:_,isLast:y,firstIndex:E,orientation:C="vertical"}=(0,m.useSelect)((e=>{const{getBlockIndex:t,getBlockRootClientId:i,getBlockOrder:s,getBlock:a,getBlockListSettings:c}=e(zn),d=(0,u.castArray)(n),p=(0,u.first)(d),m=i(p),f=t(p),g=t((0,u.last)(d)),h=s(m),v=a(p),b=0===f,k=g===h.length-1,{orientation:_}=c(m)||{};return{blockType:v?(0,r.getBlockType)(v.name):null,isDisabled:"up"===o?b:k,rootClientId:m,firstIndex:f,isFirst:b,isLast:k,orientation:l||_}}),[n,o]),{moveBlocksDown:S,moveBlocksUp:w}=(0,m.useDispatch)(zn),B="up"===o?w:S,I=`block-editor-block-mover-button__description-${f}`;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(p.Button,i({ref:t,className:c()("block-editor-block-mover-button",`is-${o}-button`),icon:Yd(o,C),label:Xd(o,C),"aria-describedby":I},a,{onClick:b?null:e=>{B(n,k),a.onClick&&a.onClick(e)},"aria-disabled":b})),(0,s.createElement)("span",{id:I,className:"block-editor-block-mover-button__description"},function(e,t,n,o,r,l,i){const s=n+1,a=e=>"up"===e?"horizontal"===i?(0,g.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?(0,g.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const l=t+1;return r<0&&n?(0,g.__)("Blocks cannot be moved up as they are already at the top"):r>0&&o?(0,g.__)("Blocks cannot be moved down as they are already at the bottom"):r<0&&!n?(0,g.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
31
  (0,g._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,l):r>0&&!o?(0,g.sprintf)(// translators: 1: Number of selected blocks, 2: Position of selected blocks
32
  (0,g._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,l):void 0}(e,n,o,r,l);if(o&&r)return(0,g.sprintf)(// translators: %s: Type of block (i.e. Text, Image etc)
33
  (0,g.__)("Block %s is the only block, and cannot be moved"),t);if(l>0&&!r){const e=a("down");if("down"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc), 2: Position of selected block, 3: New position
42
  (0,g.__)("Move %1$s block from position %2$d right to position %3$d"),t,s,s-1)}if(l<0&&o){const e=a("up");if("up"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
43
  (0,g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
44
  (0,g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,g.sprintf)(// translators: 1: Type of block (i.e. Text, Image etc)
45
+ (0,g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}(h,v&&v.title,E,_,y,"up"===o?-1:1,C)))})),Qd=(0,s.forwardRef)(((e,t)=>(0,s.createElement)(Zd,i({direction:"up",ref:t},e)))),Jd=(0,s.forwardRef)(((e,t)=>(0,s.createElement)(Zd,i({direction:"down",ref:t},e))));var ep=(0,m.withSelect)(((e,t)=>{var n;let{clientIds:o}=t;const{getBlock:l,getBlockIndex:i,getBlockListSettings:s,canMoveBlocks:a,getBlockOrder:c,getBlockRootClientId:d}=e(zn),p=(0,u.castArray)(o),m=(0,u.first)(p),f=l(m),g=d((0,u.first)(p)),h=i(m),v=0===h,b=i((0,u.last)(p))===c(g).length-1;return{blockType:f?(0,r.getBlockType)(f.name):null,canMove:a(o,g),rootClientId:g,firstIndex:h,isFirst:v,isLast:b,orientation:null===(n=s(g))||void 0===n?void 0:n.orientation}}))((function(e){let{isFirst:t,isLast:n,clientIds:o,canMove:r,isHidden:l,rootClientId:a,orientation:u,hideDragHandle:d}=e;const[m,f]=(0,s.useState)(!1),h=()=>f(!0),v=()=>f(!1);if(!r||t&&n&&!a)return null;const b=(0,g.__)("Drag");return(0,s.createElement)("div",{className:c()("block-editor-block-mover",{"is-visible":m||!l,"is-horizontal":"horizontal"===u})},!d&&(0,s.createElement)(Hd,{clientIds:o,cloneClassname:"block-editor-block-mover__drag-clone"},(e=>(0,s.createElement)(p.Button,i({icon:Eu,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:b,tabIndex:"-1"},e)))),(0,s.createElement)(p.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},(0,s.createElement)(p.ToolbarItem,{onFocus:h,onBlur:v},(e=>(0,s.createElement)(Qd,i({clientIds:o},e)))),(0,s.createElement)(p.ToolbarItem,{onFocus:h,onBlur:v},(e=>(0,s.createElement)(Jd,i({clientIds:o},e))))))}));const{clearTimeout:tp,setTimeout:np}=window,op=200;function rp(e){let{ref:t,isFocused:n,debounceTimeout:o=op,onChange:r=u.noop}=e;const[l,i]=(0,s.useState)(!1),a=(0,s.useRef)(),c=e=>{null!=t&&t.current&&i(e),r(e)},d=()=>{const e=a.current;e&&tp&&tp(e)};return(0,s.useEffect)((()=>()=>d()),[]),{showMovers:l,debouncedShowMovers:e=>{e&&e.stopPropagation(),d(),l||c(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),d(),a.current=np((()=>{(()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e})()&&c(!1)}),o)}}}function lp(e){let{ref:t,debounceTimeout:n=op,onChange:o=u.noop}=e;const[r,l]=(0,s.useState)(!1),{showMovers:i,debouncedShowMovers:a,debouncedHideMovers:c}=rp({ref:t,debounceTimeout:n,isFocused:r,onChange:o}),d=(0,s.useRef)(!1),p=()=>(null==t?void 0:t.current)&&t.current.contains(t.current.ownerDocument.activeElement);return(0,s.useEffect)((()=>{const e=t.current,n=()=>{p()&&(l(!0),a())},o=()=>{p()||(l(!1),c())};return e&&!d.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),d.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}}),[t,d,l,a,c]),{showMovers:i,gestures:{onMouseMove:a,onMouseLeave:c}}}function ip(){const{selectBlock:e,toggleBlockHighlight:t}=(0,m.useDispatch)(zn),{firstParentClientId:n,shouldHide:o,hasReducedUI:l}=(0,m.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:l}=e(zn),{hasBlockSupport:i}=e(r.store),s=n(o()),a=s[s.length-1],c=t(a),u=(0,r.getBlockType)(c),d=l();return{firstParentClientId:a,shouldHide:!i(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}}),[]),a=zd(n),c=(0,s.useRef)(),{gestures:u}=lp({ref:c,onChange(e){e&&l||t(n,e)}});return o||void 0===n?null:(0,s.createElement)("div",i({className:"block-editor-block-parent-selector",key:n,ref:c},u),(0,s.createElement)(p.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:(0,g.sprintf)(
46
  /* translators: %s: Name of the block's parent. */
47
+ (0,g.__)("Select %s"),a.title),showTooltip:!0,icon:(0,s.createElement)(ja,{icon:a.icon})}))}var sp=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function ap(e){let{blocks:t}=e;return(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,s.createElement)(p.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,g.__)("Preview")),(0,s.createElement)(vu,{viewportWidth:500,blocks:t})))))}var cp=e=>{let{className:t,possibleBlockTransformations:n,onSelect:o,blocks:l}=e;const[i,a]=(0,s.useState)();return(0,s.createElement)(p.MenuGroup,{label:(0,g.__)("Transform to"),className:t},i&&(0,s.createElement)(ap,{blocks:(0,r.switchToBlockType)(l,i)}),n.map((e=>{const{name:t,icon:n,title:l,isDisabled:i}=e;return(0,s.createElement)(p.MenuItem,{key:t,className:(0,r.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),o(t)},disabled:i,onMouseLeave:()=>a(null),onMouseEnter:()=>a(t)},(0,s.createElement)(ja,{icon:n,showColors:!0}),l)})))},up=(0,s.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(O.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),dp=window.wp.tokenList,pp=n.n(dp);function mp(e,t,n){const o=new(pp())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function fp(e){return(0,u.find)(e,"isDefault")}function gp(e){let{clientId:t,onSwitch:n}=e;const{styles:o,block:l,blockType:i,className:a}=(0,m.useSelect)((e=>{const{getBlock:n}=e(zn),o=n(t);if(!o)return{};const l=(0,r.getBlockType)(o.name),{getBlockStyles:i}=e(r.store);return{block:o,blockType:l,styles:i(o.name),className:o.attributes.className||""}}),[t]),{updateBlockAttributes:c}=(0,m.useDispatch)(zn),d=function(e){return e&&0!==e.length?fp(e)?e:[{name:"default",label:(0,g._x)("Default","block style"),isDefault:!0},...e]:[]}(o),p=function(e,t){for(const n of new(pp())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=(0,u.find)(e,{name:t});if(o)return o}return(0,u.find)(e,"isDefault")}(d,a),f=function(e,t){return(0,s.useMemo)((()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?(0,r.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,r.cloneBlock)(e):void 0}),[null!=t&&t.example?null==e?void 0:e.name:e,t])}(l,i);return{onSelect:e=>{const o=mp(a,p,e);c(t,{className:o}),n()},stylesToRender:d,activeStyle:p,genericPreviewBlock:f,className:a}}function hp(e){let{clientId:t,onSwitch:n=u.noop}=e;const{onSelect:o,stylesToRender:r,activeStyle:l}=gp({clientId:t,onSwitch:n});return r&&0!==r.length?(0,s.createElement)(s.Fragment,null,r.map((e=>{const t=e.label||e.name;return(0,s.createElement)(p.MenuItem,{key:e.name,icon:l.name===e.name?up:null,onClick:()=>o(e)},(0,s.createElement)(p.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function vp(e){let{hoveredBlock:t,onSwitch:n}=e;const{clientId:o}=t;return(0,s.createElement)(p.MenuGroup,{label:(0,g.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,s.createElement)(hp,{clientId:o,onSwitch:n}))}const bp=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const{clientId:o,name:r,innerBlocks:l=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of l){const o=bp(e,t,n);if(o)return o}}},kp=(e,t)=>{const n=((e,t)=>{const n=(0,r.__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 _p(e){let{patterns:t,onSelect:n}=e;return(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,s.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,s.createElement)(p.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,s.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,g.__)("Preview")),(0,s.createElement)(yp,{patterns:t,onSelect:n})))))}function yp(e){let{patterns:t,onSelect:n}=e;const o=(0,p.__unstableUseCompositeState)();return(0,s.createElement)(p.__unstableComposite,i({},o,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,g.__)("Patterns list")}),t.map((e=>(0,s.createElement)(Ep,{key:e.name,pattern:e,onSelect:n,composite:o}))))}function Ep(e){let{pattern:t,onSelect:n,composite:o}=e;const r="block-editor-block-switcher__preview-patterns-container",l=(0,d.useInstanceId)(Ep,`${r}-list__item-description`);return(0,s.createElement)("div",{className:`${r}-list__list-item`,"aria-label":t.title,"aria-describedby":t.description?l:void 0},(0,s.createElement)(p.__unstableCompositeItem,i({role:"option",as:"div"},o,{className:`${r}-list__item`,onClick:()=>n(t.transformedBlocks)}),(0,s.createElement)(vu,{blocks:t.transformedBlocks,viewportWidth:t.viewportWidth||500}),(0,s.createElement)("div",{className:`${r}-list__item-title`},t.title)),!!t.description&&(0,s.createElement)(p.VisuallyHidden,{id:l},t.description))}var Cp=function(e){let{blocks:t,patterns:n,onSelect:o}=e;const[l,i]=(0,s.useState)(!1),a=((e,t)=>(0,s.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,r.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=bp(r,t.name,o);if(n){e=!0,o.add(n.clientId),kp(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]))(n,t);return a.length?(0,s.createElement)(p.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},l&&(0,s.createElement)(_p,{patterns:a,onSelect:o}),(0,s.createElement)(p.MenuItem,{onClick:e=>{e.preventDefault(),i(!l)},icon:$d},(0,g.__)("Patter