Gutenberg - Version 8.3.0

Version Description

Download this release

Release Info

Developer nosolosw
Plugin Icon 128x128 Gutenberg
Version 8.3.0
Comparing to
See all releases

Code changes from version 8.2.1 to 8.3.0

build/a11y/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '0c0885f142232e03dd1331f62d405472');
1
+ <?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'a78af4ce5541f8177a79a41a900108b3');
build/a11y/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=393)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},231:function(t,e){!function(){t.exports=this.wp.domReady}()},393:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(231),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(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");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(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");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n<t.length;n++)t[n].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});
1
+ this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=397)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},233:function(t,e){!function(){t.exports=this.wp.domReady}()},397:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(233),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(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");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(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");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n<t.length;n++)t[n].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}});
build/annotations/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '65ba64b66e74945cf852a4e002776ac8');
1
+ <?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'ce796ddbd9cb9751800c4a0cfc5403e0');
build/annotations/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=386)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(41);function o(t,e){if(null==t)return{};var n,o,a=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}},16:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(25);var o=n(35),a=n(29);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){!function(){t.exports=this.lodash}()},230:function(t,e,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=[],u=0;u<256;++u)i[u]=(u+256).toString(16).substr(1);var c=function(t,e){var n=e||0,r=i;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")};e.a=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[r+i]=o[i];return e||c(o)}},25:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},26:function(t,e){!function(){t.exports=this.wp.richText}()},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(25);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},31:function(t,e){!function(){t.exports=this.wp.hooks}()},35:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},386:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return m})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return x})),n.d(o,"__experimentalRemoveAnnotation",(function(){return _})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return w})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return N}));var a=n(4),i=n(16),u=n(5),c=n(2);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(u.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){var n=t.filter(e);return t.length===n.length?t:n}function p(t){return Object(c.isNumber)(t.start)&&Object(c.isNumber)(t.end)&&t.start<=t.end}var d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var n=e.blockClientId,r={id:e.id,blockClientId:n,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===r.selector&&!p(r.range))return t;var o=Object(c.get)(t,n,[]);return s({},t,Object(u.a)({},n,[].concat(Object(i.a)(o),[r])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(t,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,s({},t,{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.source!==e.source}))}))}return t},b=n(15),O=n(44);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=[],g=Object(O.a)((function(t,e){return Object(c.get)(t,e,[]).filter((function(t){return"block"===t.selector}))}),(function(t,e){return[Object(c.get)(t,e,y)]})),m=function(t,e){return Object(c.get)(t,e,y)},j=Object(O.a)((function(t,e,n){return Object(c.get)(t,e,[]).filter((function(t){return"range"===t.selector&&n===t.richTextIdentifier})).map((function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(u.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.range,{},Object(b.a)(t,["range"]))}))}),(function(t,e){return[Object(c.get)(t,e,y)]}));function h(t){return Object(c.flatMap)(t,(function(t){return t}))}var A=n(230);function x(t){var e=t.blockClientId,n=t.richTextIdentifier,r=void 0===n?null:n,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,s=t.id,l={type:"ANNOTATION_ADD",id:void 0===s?Object(A.a)():s,blockClientId:e,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(l.range=a),l}function _(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function w(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function N(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:d,selectors:r,actions:o});var T=n(26),P=n(1);var E={name:"core/annotation",title:Object(P.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,e){var n=e.richTextIdentifier,r=e.blockClientId;return{annotations:t("core/annotations").__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree:function(t){var e=t.annotations;return function(t,n){if(0===e.length)return t;var r={formats:t,text:n};return(r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var n=e.start,r=e.end;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+e.source,a="annotation-text-"+e.id;t=Object(T.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),t}(r,e)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(e){var n=function(t){var e={};return t.forEach((function(t,n){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,e,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;t.forEach((function(t){var n=e[t.id];if(n){var a=t.start,i=t.end;a===n.start&&i===n.end||o(t.id,n.start,n.end)}else r(t.id)}))}(t.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},I=E.name,R=Object(b.a)(E,["name"]);Object(T.registerFormatType)(I,R);var S=n(31);Object(S.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,e){var n=e.clientId,r=e.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(n).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},4:function(t,e){!function(){t.exports=this.wp.data}()},41:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},44:function(t,e,n){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function f(){n=o?new WeakMap:i()}function s(){var n,r,o,a,i,f=arguments.length;for(a=new Array(f),o=0;o<f;o++)a[o]=arguments[o];for(i=e.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=a),c=o?function(t){var e,o,a,u,c,f=n,s=!0;for(e=0;e<t.length;e++){if(o=t[e],!(c=o)||"object"!=typeof c){s=!1;break}f.has(o)?f=f.get(o):(a=new WeakMap,f.set(o,a),f=a)}return f.has(r)||((u=i()).isUniqueByDependants=s,f.set(r,u)),f.get(r)}:function(){return n},s.getDependants=e,s.clear=f,f(),s}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}});
1
+ this.wp=this.wp||{},this.wp.annotations=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=390)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(43);function o(t,e){if(null==t)return{};var n,o,a=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}},16:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(26);var o=n(36),a=n(29);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){!function(){t.exports=this.lodash}()},232:function(t,e,n){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var i=[],u=0;u<256;++u)i[u]=(u+256).toString(16).substr(1);var c=function(t,e){var n=e||0,r=i;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")};e.a=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[r+i]=o[i];return e||c(o)}},26:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},27:function(t,e){!function(){t.exports=this.wp.richText}()},29:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26);function o(t,e){if(t){if("string"==typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},30:function(t,e){!function(){t.exports=this.wp.hooks}()},36:function(t,e,n){"use strict";function r(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},390:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),n.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return m})),n.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),n.d(r,"__experimentalGetAnnotations",(function(){return h}));var o={};n.r(o),n.d(o,"__experimentalAddAnnotation",(function(){return x})),n.d(o,"__experimentalRemoveAnnotation",(function(){return _})),n.d(o,"__experimentalUpdateAnnotationRange",(function(){return w})),n.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return N}));var a=n(4),i=n(16),u=n(5),c=n(2);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(u.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){var n=t.filter(e);return t.length===n.length?t:n}function p(t){return Object(c.isNumber)(t.start)&&Object(c.isNumber)(t.end)&&t.start<=t.end}var d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var n=e.blockClientId,r={id:e.id,blockClientId:n,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===r.selector&&!p(r.range))return t;var o=Object(c.get)(t,n,[]);return s({},t,Object(u.a)({},n,[].concat(Object(i.a)(o),[r])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(t,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,s({},t,{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(t,(function(t){return l(t,(function(t){return t.source!==e.source}))}))}return t},b=n(15),O=n(42);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var y=[],g=Object(O.a)((function(t,e){return Object(c.get)(t,e,[]).filter((function(t){return"block"===t.selector}))}),(function(t,e){return[Object(c.get)(t,e,y)]}));function m(t,e){return Object(c.get)(t,e,y)}var j=Object(O.a)((function(t,e,n){return Object(c.get)(t,e,[]).filter((function(t){return"range"===t.selector&&n===t.richTextIdentifier})).map((function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(u.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t.range,{},Object(b.a)(t,["range"]))}))}),(function(t,e){return[Object(c.get)(t,e,y)]}));function h(t){return Object(c.flatMap)(t,(function(t){return t}))}var A=n(232);function x(t){var e=t.blockClientId,n=t.richTextIdentifier,r=void 0===n?null:n,o=t.range,a=void 0===o?null:o,i=t.selector,u=void 0===i?"range":i,c=t.source,f=void 0===c?"default":c,s=t.id,l={type:"ANNOTATION_ADD",id:void 0===s?Object(A.a)():s,blockClientId:e,richTextIdentifier:r,source:f,selector:u};return"range"===u&&(l.range=a),l}function _(t){return{type:"ANNOTATION_REMOVE",annotationId:t}}function w(t,e,n){return{type:"ANNOTATION_UPDATE_RANGE",annotationId:t,start:e,end:n}}function N(t){return{type:"ANNOTATION_REMOVE_SOURCE",source:t}}Object(a.registerStore)("core/annotations",{reducer:d,selectors:r,actions:o});var T=n(27),P=n(1);var E={name:"core/annotation",title:Object(P.__)("Annotation"),tagName:"mark",className:"annotation-text",attributes:{className:"class",id:"id"},edit:function(){return null},__experimentalGetPropsForEditableTreePreparation:function(t,e){var n=e.richTextIdentifier,r=e.blockClientId;return{annotations:t("core/annotations").__experimentalGetAnnotationsForRichText(r,n)}},__experimentalCreatePrepareEditableTree:function(t){var e=t.annotations;return function(t,n){if(0===e.length)return t;var r={formats:t,text:n};return(r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var n=e.start,r=e.end;n>t.text.length&&(n=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+e.source,a="annotation-text-"+e.id;t=Object(T.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},n,r)})),t}(r,e)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(e){var n=function(t){var e={};return t.forEach((function(t,n){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),e.hasOwnProperty(r)||(e[r]={start:n}),e[r].end=n+1}))})),e}(e),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,e,n){var r=n.removeAnnotation,o=n.updateAnnotationRange;t.forEach((function(t){var n=e[t.id];if(n){var a=t.start,i=t.end;a===n.start&&i===n.end||o(t.id,n.start,n.end)}else r(t.id)}))}(t.annotations,n,{removeAnnotation:r,updateAnnotationRange:o})}}},I=E.name,R=Object(b.a)(E,["name"]);Object(T.registerFormatType)(I,R);var S=n(30);Object(S.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,e){var n=e.clientId,r=e.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(n).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},4:function(t,e){!function(){t.exports=this.wp.data}()},42:function(t,e,n){"use strict";var r,o;function a(t){return[t]}function i(){var t={clear:function(){t.head=null}};return t}function u(t,e,n){var r;if(t.length!==e.length)return!1;for(r=n;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,e.a=function(t,e){var n,c;function f(){n=o?new WeakMap:i()}function s(){var n,r,o,a,i,f=arguments.length;for(a=new Array(f),o=0;o<f;o++)a[o]=arguments[o];for(i=e.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!u(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(u(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:t.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return e||(e=a),c=o?function(t){var e,o,a,u,c,f=n,s=!0;for(e=0;e<t.length;e++){if(o=t[e],!(c=o)||"object"!=typeof c){s=!1;break}f.has(o)?f=f.get(o):(a=new WeakMap,f.set(o,a),f=a)}return f.has(r)||((u=i()).isUniqueByDependants=s,f.set(r,u)),f.get(r)}:function(){return n},s.getDependants=e,s.clear=f,f(),s}},43:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}});
build/api-fetch/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '191a7900816c1597c6823557c9bfdbb8');
1
+ <?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'dd120cf10798a19df8f6c3daa6423971');
build/api-fetch/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=384)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(41);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},28:function(e,t){!function(){e.exports=this.wp.url}()},384:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(15),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=function(e){function t(e,r){var n=e.headers,o=void 0===n?{}:n;for(var c in o)if("x-wp-nonce"===c.toLowerCase())return r(e);return r(a({},e,{headers:a({},o,{"X-WP-Nonce":t.nonce})}))}return t.nonce=e,t};function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var p=function(e,t){var r,o,c=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),c=(o=e.endpoint.replace(/^\//,""))?r+"/"+o:r),delete e.namespace,delete e.endpoint,t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{path:c}))};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var l=function(e){return function(t,r){return p(t,(function(t){var o,c=t.url,i=t.path;return"string"==typeof i&&(o=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof o&&-1!==o.indexOf("?")&&(i=i.replace("?","&")),c=o+i),r(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{url:c}))}))}};function O(e){var t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((function(e){return e.split("=")})).sort((function(e,t){return e[0].localeCompare(t[0])})).map((function(e){return e.join("=")})).join("&"):n}var b=function(e){var t=Object.keys(e).reduce((function(t,r){return t[O(r)]=e[r],t}),{});return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var c=e.method||"GET",i=O(e.path);if(o&&"GET"===c&&t[i])return Promise.resolve(t[i].body);if("OPTIONS"===c&&t[c]&&t[c][i])return Promise.resolve(t[c][i])}return r(e)}},d=r(23),j=r.n(d),y=r(42),h=r(28);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P=function(e){return e.json?e.json():Promise.reject(e)},w=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},m=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},x=function(){var e=Object(y.a)(j.a.mark((function e(t,r){var n,c,i,a,u,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(m(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,F(g({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,g({},Object(o.a)(p,["path","url"]),{url:O&&Object(h.addQueryArgs)(O,f),path:l&&Object(h.addQueryArgs)(l,f)})),{parse:!1}));case 6:return n=e.sent,e.next=9,P(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=w(n)){e.next=15;break}return e.abrupt("return",c);case 15:a=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,F(g({},t,{path:void 0,url:i,parse:!1}));case 19:return u=e.sent,e.next=22,P(u);case 22:s=e.sent,a=a.concat(s),i=w(u),e.next=16;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=new Set(["PATCH","PUT","DELETE"]);var E=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},k=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(E(e,t)).catch((function(e){return A(e,t)}))};function A(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return k(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e,t);var r=0;return t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{parse:!1})).catch((function(n){var o=n.headers.get("x-wp-upload-attachment-id");return n.status>=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):A(n,e.parse)})).then((function(t){return T(t,e.parse)}))};function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var L={Accept:"application/json, */*;q=0.1"},U={credentials:"include"},G=[function(e,t){return"string"!=typeof e.url||Object(h.hasQueryArg)(e.url,"_locale")||(e.url=Object(h.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(h.hasQueryArg)(e.path,"_locale")||(e.path=Object(h.addQueryArgs)(e.path,{_locale:"user"})),t(e,t)},p,function(e,t){var r=e.method,n=void 0===r?"GET":r;return S.has(n.toUpperCase())&&(e=_({},e,{headers:_({},e.headers,{"X-HTTP-Method-Override":n,"Content-Type":"application/json"}),method:"POST"})),t(e,t)},x];var H=function(e){if(e.status>=200&&e.status<300)return e;throw e},I=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,a=void 0===i||i,u=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N({},L,{},p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,N({},U,{},u,{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(H).catch((function(e){return A(e,a)})).then((function(e){return T(e,a)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function R(e){var t=[].concat(G,[I]);return new Promise((function(r,n){(function e(r){return function(n){var o=t[r];return r===t.length-1?o(n):o(n,e(r+1))}})(0)(e).then(r).catch((function(t){if("rest_cookie_invalid_nonce"!==t.code)return n(t);window.fetch(R.nonceEndpoint).then(H).then((function(e){return e.text()})).then((function(t){R.nonceMiddleware.nonce=t,R(e).then(r).catch(n)})).catch(n)}))}))}R.use=function(e){G.unshift(e)},R.setFetchHandler=function(e){I=e},R.createNonceMiddleware=u,R.createPreloadingMiddleware=b,R.createRootURLMiddleware=l,R.fetchAllMiddleware=x,R.mediaUploadMiddleware=C;var F=t.default=R},41:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},42:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var a=e[c](i),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)}))}}r.d(t,"a",(function(){return o}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default;
1
+ this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=388)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(43);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},28:function(e,t){!function(){e.exports=this.wp.url}()},388:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(15),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u=function(e){function t(e,r){var n=e.headers,o=void 0===n?{}:n;for(var c in o)if("x-wp-nonce"===c.toLowerCase())return r(e);return r(a({},e,{headers:a({},o,{"X-WP-Nonce":t.nonce})}))}return t.nonce=e,t};function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var p=function(e,t){var r,o,c=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),c=(o=e.endpoint.replace(/^\//,""))?r+"/"+o:r),delete e.namespace,delete e.endpoint,t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{path:c}))};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var l=function(e){return function(t,r){return p(t,(function(t){var o,c=t.url,i=t.path;return"string"==typeof i&&(o=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof o&&-1!==o.indexOf("?")&&(i=i.replace("?","&")),c=o+i),r(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{url:c}))}))}};function O(e){var t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.split("&").map((function(e){return e.split("=")})).sort((function(e,t){return e[0].localeCompare(t[0])})).map((function(e){return e.join("=")})).join("&"):n}var b=function(e){var t=Object.keys(e).reduce((function(t,r){return t[O(r)]=e[r],t}),{});return function(e,r){var n=e.parse,o=void 0===n||n;if("string"==typeof e.path){var c=e.method||"GET",i=O(e.path);if(o&&"GET"===c&&t[i])return Promise.resolve(t[i].body);if("OPTIONS"===c&&t[c]&&t[c][i])return Promise.resolve(t[c][i])}return r(e)}},d=r(23),j=r.n(d),y=r(44),h=r(28);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var P=function(e){return e.json?e.json():Promise.reject(e)},w=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},m=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},x=function(){var e=Object(y.a)(j.a.mark((function e(t,r){var n,c,i,a,u,s;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(m(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,F(g({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,g({},Object(o.a)(p,["path","url"]),{url:O&&Object(h.addQueryArgs)(O,f),path:l&&Object(h.addQueryArgs)(l,f)})),{parse:!1}));case 6:return n=e.sent,e.next=9,P(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=w(n)){e.next=15;break}return e.abrupt("return",c);case 15:a=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,F(g({},t,{path:void 0,url:i,parse:!1}));case 19:return u=e.sent,e.next=22,P(u);case 22:s=e.sent,a=a.concat(s),i=w(u),e.next=16;break;case 27:return e.abrupt("return",a);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=new Set(["PATCH","PUT","DELETE"]);var E=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},k=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(E(e,t)).catch((function(e){return A(e,t)}))};function A(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return k(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var C=function(e,t){if(!(e.path&&-1!==e.path.indexOf("/wp/v2/media")||e.url&&-1!==e.url.indexOf("/wp/v2/media")))return t(e,t);var r=0;return t(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{parse:!1})).catch((function(n){var o=n.headers.get("x-wp-upload-attachment-id");return n.status>=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):A(n,e.parse)})).then((function(t){return T(t,e.parse)}))};function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var L={Accept:"application/json, */*;q=0.1"},U={credentials:"include"},G=[function(e,t){return"string"!=typeof e.url||Object(h.hasQueryArg)(e.url,"_locale")||(e.url=Object(h.addQueryArgs)(e.url,{_locale:"user"})),"string"!=typeof e.path||Object(h.hasQueryArg)(e.path,"_locale")||(e.path=Object(h.addQueryArgs)(e.path,{_locale:"user"})),t(e,t)},p,function(e,t){var r=e.method,n=void 0===r?"GET":r;return S.has(n.toUpperCase())&&(e=_({},e,{headers:_({},e.headers,{"X-HTTP-Method-Override":n,"Content-Type":"application/json"}),method:"POST"})),t(e,t)},x];var H=function(e){if(e.status>=200&&e.status<300)return e;throw e},I=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,a=void 0===i||i,u=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=N({},L,{},p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,N({},U,{},u,{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(H).catch((function(e){return A(e,a)})).then((function(e){return T(e,a)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function R(e){var t=[].concat(G,[I]);return new Promise((function(r,n){(function e(r){return function(n){var o=t[r];return r===t.length-1?o(n):o(n,e(r+1))}})(0)(e).then(r).catch((function(t){if("rest_cookie_invalid_nonce"!==t.code)return n(t);window.fetch(R.nonceEndpoint).then(H).then((function(e){return e.text()})).then((function(t){R.nonceMiddleware.nonce=t,R(e).then(r).catch(n)})).catch(n)}))}))}R.use=function(e){G.unshift(e)},R.setFetchHandler=function(e){I=e},R.createNonceMiddleware=u,R.createPreloadingMiddleware=b,R.createRootURLMiddleware=l,R.fetchAllMiddleware=x,R.mediaUploadMiddleware=C;var F=t.default=R},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},44:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var a=e[c](i),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)}))}}r.d(t,"a",(function(){return o}))},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default;
build/autop/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '2d54f48fd8414e48ef4683765e44cf01');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '807a7e2e7cfccc35ccdf383cd5b55782');
build/autop/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=253)}({14:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(36);var p=n(29),c=n(37);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},25:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,"a",(function(){return t}))},253:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",(function(){return a})),n.d(r,"removep",(function(){return i}));var t=n(14),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a<n.length;a+=2)for(var i=0;i<c.length;i++){var o=c[i];if(-1!==n[a].indexOf(o)){n[a]=n[a].replace(new RegExp(o,"g"),r[o]),t=!0;break}}return t&&(e=n.join("")),e}function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var p=e.split("</pre>"),a=p.pop();e="";for(var i=0;i<p.length;i++){var o=p[i],l=o.indexOf("<pre");if(-1!==l){var u="<pre wp-pre-tag-"+i+"></pre>";n.push([u,o.substr(l)+"</pre>"]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+s+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="<p>"+r.replace(/^\n*|\n*$/g,"")+"</p>\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+s+"[^>]*>)\\s*</p>","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"<WPPreserveNewline />")}))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(function(e,r){return r?e:"<br />\n"}))).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+s+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),"<wp-preserve>"}))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+t+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),a&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),p.length&&(e=e.replace(/<wp-preserve>/g,(function(){return p.shift()}))),e):""}},29:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(25);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},36:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},37:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}});
1
+ this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=256)}({13:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(37);var p=n(29),c=n(38);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},256:function(e,r,n){"use strict";n.r(r),n.d(r,"autop",(function(){return a})),n.d(r,"removep",(function(){return i}));var t=n(13),p=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a<n.length;a+=2)for(var i=0;i<c.length;i++){var o=c[i];if(-1!==n[a].indexOf(o)){n[a]=n[a].replace(new RegExp(o,"g"),r[o]),t=!0;break}}return t&&(e=n.join("")),e}function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf("<pre")){var p=e.split("</pre>"),a=p.pop();e="";for(var i=0;i<p.length;i++){var o=p[i],l=o.indexOf("<pre");if(-1!==l){var u="<pre wp-pre-tag-"+i+"></pre>";n.push([u,o.substr(l)+"</pre>"]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/<br\s*\/?>\s*<br\s*\/?>/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("(</"+s+">)","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"<option")).replace(/<\/option>\s*/g,"</option>")),-1!==e.indexOf("</object>")&&(e=(e=(e=e.replace(/(<object[^>]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"</object>")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("<source")&&-1===e.indexOf("<track")||(e=(e=(e=e.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("<figcaption")&&(e=(e=e.replace(/\s*(<figcaption[^>]*>)/,"$1")).replace(/<\/figcaption>\s*/,"</figcaption>"));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="<p>"+r.replace(/^\n*|\n*$/g,"")+"</p>\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p>\s*<\/p>/g,"")).replace(/<p>([^<]+)<\/(div|address|form)>/g,"<p>$1</p></$2>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)\\s*</p>","g"),"$1")).replace(/<p>(<li.+?)<\/p>/g,"$1")).replace(/<p><blockquote([^>]*)>/gi,"<blockquote$1><p>")).replace(/<\/blockquote><\/p>/g,"</p></blockquote>")).replace(new RegExp("<p>\\s*(</?"+s+"[^>]*>)","g"),"$1")).replace(new RegExp("(</?"+s+"[^>]*>)\\s*</p>","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"<WPPreserveNewline />")}))).replace(/<br>|<br\/>/g,"<br />")).replace(/(<br \/>)?\s*\n/g,(function(e,r){return r?e:"<br />\n"}))).replace(/<WPPreserveNewline \/>/g,"\n")),e=(e=(e=e.replace(new RegExp("(</?"+s+"[^>]*>)\\s*<br />","g"),"$1")).replace(/<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"</p>"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?<!-- wpnl -->\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("<script")&&-1===e.indexOf("<style")||(e=e.replace(/<(script|style)[^>]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),"<wp-preserve>"}))),-1!==e.indexOf("<pre")&&(c=!0,e=e.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/<br ?\/?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"<wp-line-break>")).replace(/\r?\n/g,"<wp-line-break>")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/<br([^>]*)>/g,"<wp-temp-br$1>").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*</("+n+")>\\s*","g"),"</$1>\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(<p [^>]+>[\s\S]*?)<\/p>/g,"$1</p#>")).replace(/<div( [^>]*)?>\s*<p>/gi,"<div$1>\n\n")).replace(/\s*<p>/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)<br ?\/?>\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*<div/g,"\n<div")).replace(/<\/div>\s*/g,"</div>\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*</("+t+")>\\s*","g"),"</$1>\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("<option")&&(e=(e=e.replace(/\s*<option/g,"\n<option")).replace(/\s*<\/select>/g,"\n</select>")),-1!==e.indexOf("<hr")&&(e=e.replace(/\s*<hr( [^>]*)?>\s*/g,"\n\n<hr$1>\n\n")),-1!==e.indexOf("<object")&&(e=e.replace(/<object[\s\S]+?<\/object>/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"</p>\n")).replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(/<wp-line-break>/g,"\n")),a&&(e=e.replace(/<wp-temp-br([^>]*)>/g,"<br$1>")),p.length&&(e=e.replace(/<wp-preserve>/g,(function(){return p.shift()}))),e):""}},26:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}n.d(r,"a",(function(){return t}))},29:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(26);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},37:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},38:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}});
build/blob/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-polyfill'), 'version' => '3dd72704924b899d739e71204f50b096');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '19f81bee2159f7280c9d5055b3560f35');
build/blob/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=254)}({254:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
1
+ this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=257)}({257:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"revokeBlobURL",(function(){return l})),n.d(t,"isBlobURL",(function(){return d}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){i[e]&&u(e),delete i[e]}function d(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}});
build/block-directory/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'de37b690c1985a81954b6bd4db8e495a');
1
+ <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '1a9110b78d186cd9194fe6171e8fed73');
build/block-directory/index.js CHANGED
@@ -1 +1 @@
1
- this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=376)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},113:function(e,t,n){"use strict";var r=n(5),o=n(15),c=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,l=void 0===n?24:n,i=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:l,height:l},i))}},12:function(e,t){!function(){e.exports=this.wp.blocks}()},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36);var o=n(29),c=n(37);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(41);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},156:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=c},157:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=c},16:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(25);var o=n(35),c=n(29);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},25:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},255:function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));t.a=c},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},3:function(e,t){!function(){e.exports=this.wp.components}()},35:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},36:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},37:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},376:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return b})),n.d(r,"getDownloadableBlocks",(function(){return d})),n.d(r,"hasInstallBlocksPermission",(function(){return f})),n.d(r,"getInstalledBlockTypes",(function(){return p})),n.d(r,"isInstalling",(function(){return O})),n.d(r,"getErrorNotices",(function(){return m}));var o={};n.r(o),n.d(o,"fetchDownloadableBlocks",(function(){return P})),n.d(o,"receiveDownloadableBlocks",(function(){return L})),n.d(o,"setInstallBlocksPermission",(function(){return D})),n.d(o,"downloadBlock",(function(){return T})),n.d(o,"installBlock",(function(){return C})),n.d(o,"uninstallBlock",(function(){return A})),n.d(o,"addInstalledBlockType",(function(){return R})),n.d(o,"removeInstalledBlockType",(function(){return M})),n.d(o,"setIsInstalling",(function(){return z})),n.d(o,"setErrorNotice",(function(){return V})),n.d(o,"clearErrorNotice",(function(){return H}));var c=n(4),a=n(16),l=n(5);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=Object(c.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{results:{},filterValue:void 0,isRequestingDownloadableBlocks:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return s({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return s({},e,{results:s({},e.results,Object(l.a)({},t.filterValue,t.downloadableBlocks)),isRequestingDownloadableBlocks:!1})}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return s({},e,{installedBlockTypes:[].concat(Object(a.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return s({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return s({},e,{isInstalling:t.isInstalling})}return e},hasPermission:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_INSTALL_BLOCKS_PERMISSION"===t.type?t.hasPermission:e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{notices:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE_ID":return s({},e,{notices:s({},e.notices,Object(l.a)({},t.blockId,t.noticeId))})}return e}});function b(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function d(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function f(e){return e.hasPermission}function p(e){return e.blockManagement.installedBlockTypes}function O(e){return e.blockManagement.isInstalling}function m(e){return e.errorNotices.notices}var j=n(23),y=n.n(j),k=n(12),h=n(2),v=n(38),w=n.n(v);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var g=y.a.mark(S);function E(e){return{type:"API_FETCH",request:e}}function S(e){return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{type:"LOAD_ASSETS",assets:e});case 1:case"end":return t.stop()}}),g)}var B={SELECT:Object(c.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,c=t.args;return(n=e.select(r))[o].apply(n,Object(a.a)(c))}})),DISPATCH:Object(c.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.dispatcherName,c=t.args;return(n=e.dispatch(r))[o].apply(n,Object(a.a)(c))}})),API_FETCH:function(e){var t=e.request;return w()(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){Object(l.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))},LOAD_ASSETS:function(e){var t=e.assets;return new Promise((function(e,n){if(Array.isArray(t)){var r=0;Object(h.forEach)(t,(function(t){null!==t.match(/\.js$/)?(r++,function(e,t,n){if(e){var r=document.querySelector('script[src="'.concat(e.src,'"]'));r&&r.parentNode.removeChild(r);var o=document.createElement("script");o.src="string"==typeof e?e:e.src,o.onload=t,o.onerror=n,document.body.appendChild(o)}}(t,(function(){if(0===--r)return e(r)}),n)):function(e){if(e){var t=document.createElement("link");t.rel="stylesheet",t.href="string"==typeof e?e:e.src,document.body.appendChild(t)}}(t)}))}}))}},N=y.a.mark(T),x=y.a.mark(C),I=y.a.mark(A);function P(){return{type:"FETCH_DOWNLOADABLE_BLOCKS"}}function L(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function D(e){return{type:"SET_INSTALL_BLOCKS_PERMISSION",hasPermission:e}}function T(e,t,n){return y.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.assets.length){r.next=3;break}throw new Error("Block has no assets");case 3:return r.next=5,S(e.assets);case 5:if(!Object(k.getBlockTypes)().length){r.next=10;break}t(e),r.next=11;break;case 10:throw new Error("Unable to get block types");case 11:r.next=17;break;case 13:return r.prev=13,r.t0=r.catch(0),r.next=17,n(r.t0);case 17:case"end":return r.stop()}}),N,null,[[0,13]])}function C(e,t,n){var r,o,c;return y.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.id,o=e.name,a.prev=1,a.next=4,E({path:"__experimental/block-directory/install",data:{slug:r},method:"POST"});case 4:if(!1!==(c=a.sent).success){a.next=7;break}throw new Error(c.errorMessage);case 7:return a.next=9,R({id:r,name:o});case 9:t(),a.next=15;break;case 12:a.prev=12,a.t0=a.catch(1),n(a.t0);case 15:case"end":return a.stop()}}),x,null,[[1,12]])}function A(e,t,n){var r,o,c;return y.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=e.id,o=e.name,a.prev=1,a.next=4,E({path:"__experimental/block-directory/uninstall",data:{slug:r},method:"DELETE"});case 4:if(!1!==(c=a.sent).success){a.next=7;break}throw new Error(c.errorMessage);case 7:return a.next=9,M({id:r,name:o});case 9:t(),a.next=15;break;case 12:a.prev=12,a.t0=a.catch(1),n(a.t0);case 15:case"end":return a.stop()}}),I,null,[[1,12]])}function R(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function M(e){return{type:"REMOVE_INSTALLED_BLOCK_TYPE",item:e}}function z(e){return{type:"SET_INSTALLING_BLOCK",isInstalling:e}}function V(e,t){return{type:"SET_ERROR_NOTICE_ID",blockId:e,noticeId:t}}function H(e){return{type:"SET_ERROR_NOTICE_ID",blockId:e,noticeId:""}}var K={reducer:u,selectors:r,actions:o,controls:B,resolvers:{getDownloadableBlocks:y.a.mark((function e(t){var n,r;return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,{type:"FETCH_DOWNLOADABLE_BLOCKS"};case 5:return e.next=7,E({path:"__experimental/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(h.mapKeys)(e,(function(e,t){return Object(h.camelCase)(t)}))})),e.next=11,L(r,t);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(2),"rest_user_cannot_view"!==e.t0.code){e.next=18;break}return e.next=18,D(!1);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})),hasInstallBlocksPermission:y.a.mark((function e(){return y.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E({path:"__experimental/block-directory/search?term="});case 3:return e.next=5,D(!0);case 5:e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),"rest_user_cannot_view"!==e.t0.code){e.next=12;break}return e.next=12,D(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))}},F=(Object(c.registerStore)("core/block-directory",K),n(0)),q=n(50),W=n(14),$=n(6),G=n(8),U=n(1),Y=n(3);var J=function(e){var t=e.author,n=e.authorBlockCount,r=e.authorBlockRating;return Object(F.createElement)(F.Fragment,null,Object(F.createElement)("span",{className:"block-directory-downloadable-block-author-info__content-author"},Object(U.sprintf)(Object(U.__)("Authored by %s"),t)),Object(F.createElement)("span",{className:"block-directory-downloadable-block-author-info__content"},r>0?Object(U.sprintf)(Object(U._n)("This author has %1$d block, with an average rating of %2$d.","This author has %1$d blocks, with an average rating of %2$d.",n),n,r):Object(U.sprintf)(Object(U._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},Q=n(113),X=n(156),Z=n(7),ee=Object(F.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(F.createElement)(Z.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"})),te=n(157);var ne=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),o=Math.ceil(t-r),c=5-(r+o);return Object(F.createElement)("div",{"aria-label":Object(U.sprintf)(Object(U.__)("%s out of 5 stars"),n)},Object(h.times)(r,(function(e){return Object(F.createElement)(Q.a,{key:"full_stars_".concat(e),icon:X.a,size:16})})),Object(h.times)(o,(function(e){return Object(F.createElement)(Q.a,{key:"half_stars_".concat(e),icon:ee,size:16})})),Object(h.times)(c,(function(e){return Object(F.createElement)(Q.a,{key:"empty_stars_".concat(e),icon:te.a,size:16})})))},re=function(e){var t=e.rating,n=e.ratingCount;return Object(F.createElement)("div",{className:"block-directory-block-ratings"},Object(F.createElement)(ne,{rating:t}),Object(F.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(U.sprintf)(Object(U._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var oe=Object(c.withSelect)((function(e){return{isLoading:e("core/block-directory").isInstalling()}}))((function(e){var t=e.icon,n=e.title,r=e.rating,o=e.ratingCount,c=e.isLoading,a=e.onClick;return Object(F.createElement)("div",{className:"block-directory-downloadable-block-header__row"},null!==t.match(/\.(jpeg|jpg|gif|png)(?:\?.*)?$/)?Object(F.createElement)("img",{src:t,alt:Object(U.sprintf)(Object(U.__)("%s block icon"),n)}):Object(F.createElement)("span",null,Object(F.createElement)($.BlockIcon,{icon:t,showColors:!0})),Object(F.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(F.createElement)("span",{role:"heading",className:"block-directory-downloadable-block-header__title"},n),Object(F.createElement)(re,{rating:r,ratingCount:o})),Object(F.createElement)(Y.Button,{isSecondary:!0,isBusy:c,disabled:c,onClick:function(e){e.preventDefault(),c||a()}},c?Object(U.__)("Adding…"):Object(U.__)("Add block")))})),ce=Object(F.createElement)(Z.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(F.createElement)(Z.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),ae=n(255);var le=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(F.createElement)(F.Fragment,null,Object(F.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(F.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(F.createElement)(Q.a,{className:"block-directory-downloadable-block-info__icon",icon:ce}),Object(U.sprintf)(Object(U._n)("%d active installation","%d active installations",n),n)),Object(F.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(F.createElement)(Q.a,{className:"block-directory-downloadable-block-info__icon",icon:ae.a}),Object(U.sprintf)(Object(U.__)("Updated %s"),r)))},ie=Object(c.withSelect)((function(e){return{errorNotices:e("core/block-directory").getErrorNotices()}}))((function(e){var t=e.block,n=e.errorNotices,r=e.onClick;if(!n[t.id])return null;var o=Object(U.__)("Block could not be added.");return"block-download-error"===n[t.id]&&(o=Object(U.__)("Block could not be added. There is a problem with the block.")),Object(F.createElement)(Y.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-blocks__notice"},Object(F.createElement)("div",{className:"block-directory-downloadable-blocks__notice-content"},o),Object(F.createElement)(Y.Button,{isSmall:!0,isPrimary:!0,onClick:function(){r(t)}},Object(U.__)("Retry")))}));var se=function(e){var t=e.item,n=e.onClick,r=t.icon,o=t.title,c=t.description,a=t.rating,l=t.activeInstalls,i=t.ratingCount,s=t.author,u=t.humanizedUpdated,b=t.authorBlockCount,d=t.authorBlockRating;return Object(F.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(F.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(F.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(F.createElement)(oe,{icon:r,onClick:n,title:o,rating:a,ratingCount:i})),Object(F.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(F.createElement)(ie,{onClick:n,block:t}),Object(F.createElement)(le,{activeInstalls:l,description:c,humanizedUpdated:u})),Object(F.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(F.createElement)(J,{author:s,authorBlockCount:b,authorBlockRating:d}))))};var ue=Object(G.compose)(Object(c.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-directory"),c=o.downloadBlock,a=o.installBlock,l=o.setErrorNotice,i=o.clearErrorNotice,s=o.setIsInstalling,u=t.onSelect,b=r("core/block-directory").getErrorNotices();return{install:function(e){!function(e,t){if(b[e.id]&&"block-download-error"===b[e.id])return t();i(e.id),s(!0);a(e,t,(function(){l(e.id,"block-install-error"),s(!1)}))}(e,(function(){!function(e){i(e.id),s(!0);c(e,(function(){u(e),s(!1)}),(function(){l(e.id,"block-download-error"),s(!1)}))}(e)}))}}})))((function(e){var t=e.items,n=e.onHover,r=void 0===n?h.noop:n,o=e.children,c=e.install;return t.length?Object(F.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(F.createElement)(se,{key:e.id,className:Object(k.getBlockMenuDefaultClassName)(e.id),icons:e.icons,onClick:function(){c(e),r(null)},onFocus:function(){return r(e)},onMouseEnter:function(){return r(e)},onMouseLeave:function(){return r(null)},onBlur:function(){return r(null)},item:e})})),o):null}));var be=Object(G.compose)([Y.withSpokenMessages,Object(c.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),o=r.getDownloadableBlocks,c=r.hasInstallBlocksPermission,a=r.isRequestingDownloadableBlocks,l=c();return{downloadableItems:l?o(n):[],hasPermission:l,isLoading:a()}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,o=e.hasPermission,c=e.isLoading,a=e.isWaiting,l=e.debouncedSpeak;return o?c||a?Object(F.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(F.createElement)(Y.Spinner,null)):t.length?(l(Object(U.sprintf)(Object(U._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(F.createElement)(F.Fragment,null,Object(F.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(U.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(F.createElement)(ue,{items:t,onSelect:n,onHover:r}))):Object(F.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(U.__)("No blocks found in your library.")):(l(Object(U.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(F.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(U.__)("No blocks found in your library."),Object(F.createElement)("br",null),Object(U.__)("Please contact your site administrator to install new blocks.")))}));var de=function(){var e=Object(F.useState)(""),t=Object(W.a)(e,2),n=t[0],r=t[1],o=Object(h.debounce)(r,400);return Object(F.createElement)($.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,c=e.filterValue;return e.hasItems||!c?null:(n!==c&&o(c),Object(F.createElement)(be,{onSelect:t,onHover:r,filterValue:n,isWaiting:c!==n}))}))};Object(q.registerPlugin)("block-directory",{render:function(){return Object(F.createElement)(de,null)}})},38:function(e,t){!function(){e.exports=this.wp.apiFetch}()},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},50:function(e,t){!function(){e.exports=this.wp.plugins}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t){!function(){e.exports=this.wp.compose}()}});
1
+ this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=379)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},117:function(e,t,n){"use strict";var r=n(5),c=n(15),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,l=void 0===n?24:n,i=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:l,height:l},i))}},13:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(37);var c=n(29),o=n(38);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,c=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(c)throw o}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(43);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c<a.length;c++)n=a[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},158:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));t.a=o},159:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(c.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"}));t.a=o},16:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(26);var c=n(36),o=n(29);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(c.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},234:function(e,t){!function(){e.exports=this.wp.editPost}()},258:function(e,t,n){"use strict";var r=n(0),c=n(7),o=Object(r.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(c.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));t.a=o},26:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},29:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(26);function c(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},3:function(e,t){!function(){e.exports=this.wp.components}()},35:function(e,t){!function(){e.exports=this.wp.dataControls}()},36:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},37:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},379:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return d})),n.d(r,"getDownloadableBlocks",(function(){return f})),n.d(r,"hasInstallBlocksPermission",(function(){return O})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"isInstalling",(function(){return p})),n.d(r,"getErrorNotices",(function(){return j})),n.d(r,"getErrorNoticeForBlock",(function(){return y}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return E})),n.d(c,"receiveDownloadableBlocks",(function(){return S})),n.d(c,"setInstallBlocksPermission",(function(){return B})),n.d(c,"installBlockType",(function(){return N})),n.d(c,"addInstalledBlockType",(function(){return P})),n.d(c,"setIsInstalling",(function(){return x})),n.d(c,"setErrorNotice",(function(){return I})),n.d(c,"clearErrorNotice",(function(){return T}));var o=n(5),a=n(4),l=n(35),i=n(16);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=Object(a.combineReducers)({downloadableBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{results:{},isRequestingDownloadableBlocks:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return u({},e,{isRequestingDownloadableBlocks:!0});case"RECEIVE_DOWNLOADABLE_BLOCKS":return u({},e,{results:u({},e.results,Object(o.a)({},t.filterValue,t.downloadableBlocks)),isRequestingDownloadableBlocks:!1})}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return u({},e,{installedBlockTypes:[].concat(Object(i.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return u({},e,{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return u({},e,{isInstalling:u({},e.isInstalling,Object(o.a)({},t.blockId,t.isInstalling))})}return e},hasPermission:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_INSTALL_BLOCKS_PERMISSION"===t.type?t.hasPermission:e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return u({},e,Object(o.a)({},t.blockId,t.notice))}return e}});function d(e){return e.downloadableBlocks.isRequestingDownloadableBlocks}function f(e,t){return e.downloadableBlocks.results[t]?e.downloadableBlocks.results[t]:[]}function O(e){return e.hasPermission}function m(e){return e.blockManagement.installedBlockTypes}function p(e,t){return e.blockManagement.isInstalling[t]||!1}function j(e){return e.errorNotices}function y(e,t){return e.errorNotices[t]||!1}var k=n(23),h=n.n(k),v=n(1);function _(e){return{type:"LOAD_ASSETS",assets:e}}var g={LOAD_ASSETS:function(e){var t=e.assets.map((function(e){return null!==e.match(/\.js$/)?function(e){return e&&/\.js$/.test(e)?new Promise((function(t,n){var r=document.querySelector('script[src="'.concat(e,'"]'));r&&r.parentNode.removeChild(r);var c=document.createElement("script");c.src=e,c.onload=function(){return t(!0)},c.onerror=function(){return n(new Error("Error loading script."))},document.body.appendChild(c)})):Promise.reject(new Error("No script found."))}(e):function(e){return e&&/\.css$/.test(e)?new Promise((function(t,n){var r=document.createElement("link");r.rel="stylesheet",r.href=e,r.onload=function(){return t(!0)},r.onerror=function(){return n(new Error("Error loading style."))},document.body.appendChild(r)})):Promise.reject(new Error("No style found."))}(e)}));return Promise.all(t)}},w=h.a.mark(N);function E(e){return{type:"FETCH_DOWNLOADABLE_BLOCKS",filterValue:e}}function S(e,t){return{type:"RECEIVE_DOWNLOADABLE_BLOCKS",downloadableBlocks:e,filterValue:t}}function B(e){return{type:"SET_INSTALL_BLOCKS_PERMISSION",hasPermission:e}}function N(e){var t,n,r;return h.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.id,n=e.assets,r=!1,c.next=4,T(t);case 4:if(c.prev=4,Array.isArray(n)&&n.length){c.next=7;break}throw new Error(Object(v.__)("Block has no assets."));case 7:return c.next=9,x(e.id,!0);case 9:return c.next=11,Object(l.apiFetch)({path:"__experimental/block-directory/install",data:{slug:e.id},method:"POST"});case 11:if(!0===c.sent.success){c.next=14;break}throw new Error(Object(v.__)("Unable to install this block."));case 14:return c.next=16,P(e);case 16:return c.next=18,_(n);case 18:return c.next=20,Object(l.select)("core/blocks","getBlockTypes");case 20:if(c.sent.length){c.next=23;break}throw new Error(Object(v.__)("Unable to get block types."));case 23:r=!0,c.next=30;break;case 26:return c.prev=26,c.t0=c.catch(4),c.next=30,I(t,c.t0.message||Object(v.__)("An error occurred."));case 30:return c.next=32,x(e.id,!1);case 32:return c.abrupt("return",r);case 33:case"end":return c.stop()}}),w,null,[[4,26]])}function P(e){return{type:"ADD_INSTALLED_BLOCK_TYPE",item:e}}function x(e,t){return{type:"SET_INSTALLING_BLOCK",blockId:e,isInstalling:t}}function I(e,t){return{type:"SET_ERROR_NOTICE",blockId:e,notice:t}}function T(e){return{type:"SET_ERROR_NOTICE",blockId:e,notice:!1}}var L=n(2),D={getDownloadableBlocks:h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,E(t);case 5:return e.next=7,Object(l.apiFetch)({path:"__experimental/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(L.mapKeys)(e,(function(e,t){return Object(L.camelCase)(t)}))})),e.next=11,S(r,t);case 11:e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(2),"rest_user_cannot_view"!==e.t0.code){e.next=18;break}return e.next=18,B(!1);case 18:case"end":return e.stop()}}),e,null,[[2,13]])})),hasInstallBlocksPermission:h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l.apiFetch)({path:"__experimental/block-directory/search?term="});case 3:return e.next=5,B(!0);case 5:e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),"rest_user_cannot_view"!==e.t0.code){e.next=12;break}return e.next=12,B(!1);case 12:case"end":return e.stop()}}),e,null,[[0,7]])}))};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A={reducer:b,selectors:r,actions:c,controls:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l.controls,{},g),resolvers:D},R=(Object(a.registerStore)("core/block-directory",A),n(0)),M=n(52),z=n(13),V=n(6),K=n(9),F=n(3);var $=function(e){var t=e.author,n=e.authorBlockCount,r=e.authorBlockRating;return Object(R.createElement)(R.Fragment,null,Object(R.createElement)("span",{className:"block-directory-downloadable-block-author-info__content-author"},Object(v.sprintf)(Object(v.__)("Authored by %s"),t)),Object(R.createElement)("span",{className:"block-directory-downloadable-block-author-info__content"},r>0?Object(v.sprintf)(Object(v._n)("This author has %1$d block, with an average rating of %2$d.","This author has %1$d blocks, with an average rating of %2$d.",n),n,r):Object(v.sprintf)(Object(v._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},H=n(117),W=n(158),q=n(7),G=Object(R.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(R.createElement)(q.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),U=n(159);var Y=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),o=5-(r+c);return Object(R.createElement)("div",{"aria-label":Object(v.sprintf)(Object(v.__)("%s out of 5 stars"),n)},Object(L.times)(r,(function(e){return Object(R.createElement)(H.a,{key:"full_stars_".concat(e),icon:W.a,size:16})})),Object(L.times)(c,(function(e){return Object(R.createElement)(H.a,{key:"half_stars_".concat(e),icon:G,size:16})})),Object(L.times)(o,(function(e){return Object(R.createElement)(H.a,{key:"empty_stars_".concat(e),icon:U.a,size:16})})))},J=function(e){var t=e.rating,n=e.ratingCount;return Object(R.createElement)("div",{className:"block-directory-block-ratings"},Object(R.createElement)(Y,{rating:t}),Object(R.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(v.sprintf)(Object(v._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var Q=function(e){var t=e.icon,n=e.title;return Object(R.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png)(?:\?.*)?$/)?Object(R.createElement)("img",{src:t,alt:Object(v.sprintf)(Object(v.__)("%s block icon"),n)}):Object(R.createElement)(V.BlockIcon,{icon:t,showColors:!0}))};var X=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=e.onClick;return Object(R.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(R.createElement)(Q,{icon:t,title:n}),Object(R.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(R.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},n),Object(R.createElement)(J,{rating:r,ratingCount:c})),Object(R.createElement)(F.Button,{isSecondary:!0,isBusy:o,disabled:o,onClick:function(e){e.preventDefault(),o||a()}},o?Object(v.__)("Adding…"):Object(v.__)("Add block")))},Z=Object(R.createElement)(q.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(R.createElement)(q.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),ee=n(258);var te=function(e){var t=e.description,n=e.activeInstalls,r=e.humanizedUpdated;return Object(R.createElement)(R.Fragment,null,Object(R.createElement)("p",{className:"block-directory-downloadable-block-info__content"},t),Object(R.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(R.createElement)(H.a,{className:"block-directory-downloadable-block-info__icon",icon:Z}),Object(v.sprintf)(Object(v._n)("%d active installation","%d active installations",n),n)),Object(R.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(R.createElement)(H.a,{className:"block-directory-downloadable-block-info__icon",icon:ee.a}),Object(v.sprintf)(Object(v.__)("Updated %s"),r)))},ne=function(e){var t=e.block,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").getErrorNoticeForBlock(t.id)}),[t]);return r?Object(R.createElement)(F.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(R.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r),Object(R.createElement)(F.Button,{isSmall:!0,isPrimary:!0,onClick:function(){n(t)}},Object(v.__)("Retry"))):null};function re(e){var t=e.item,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").isInstalling(t.id)}),[t]),c=t.icon,o=t.title,l=t.description,i=t.rating,s=t.activeInstalls,u=t.ratingCount,b=t.author,d=t.humanizedUpdated,f=t.authorBlockCount,O=t.authorBlockRating;return Object(R.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(R.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(R.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(R.createElement)(X,{icon:c,onClick:n,title:o,rating:i,ratingCount:u,isLoading:r})),Object(R.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(R.createElement)(ne,{onClick:n,block:t}),Object(R.createElement)(te,{activeInstalls:s,description:l,humanizedUpdated:d})),Object(R.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(R.createElement)($,{author:b,authorBlockCount:f,authorBlockRating:O}))))}var ce=function(e){var t=e.items,n=e.onHover,r=void 0===n?L.noop:n,c=e.onSelect,o=Object(a.useDispatch)("core/block-directory").installBlockType;return t.length?Object(R.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(R.createElement)(re,{key:e.id,onClick:function(){o(e).then((function(t){t&&c(e)})),r(null)},item:e})}))):null};var oe=Object(K.compose)([F.withSpokenMessages,Object(a.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),c=r.getDownloadableBlocks,o=r.hasInstallBlocksPermission,a=r.isRequestingDownloadableBlocks,l=o();return{downloadableItems:l?c(n):[],hasPermission:l,isLoading:a()}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasPermission,o=e.isLoading,a=e.isWaiting,l=e.debouncedSpeak;return c?o||a?Object(R.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(R.createElement)(F.Spinner,null)):t.length?(l(Object(v.sprintf)(Object(v._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(R.createElement)(R.Fragment,null,Object(R.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(v.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(R.createElement)(ce,{items:t,onSelect:n,onHover:r}))):Object(R.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(v.__)("No blocks found in your library.")):(l(Object(v.__)("No blocks found in your library. Please contact your site administrator to install new blocks.")),Object(R.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(v.__)("No blocks found in your library."),Object(R.createElement)("br",null),Object(v.__)("Please contact your site administrator to install new blocks.")))}));var ae=function(){var e=Object(R.useState)(""),t=Object(z.a)(e,2),n=t[0],r=t[1],c=Object(L.debounce)(r,400);return Object(R.createElement)(V.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(R.createElement)(oe,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},le=n(234);function ie(e){var t=e.items;return t.length?Object(R.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(R.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(R.createElement)(Q,{icon:t,title:r}),Object(R.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(R.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(R.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(v.sprintf)(Object(v.__)("By %s"),c))))}))):null}function se(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getInstalledBlockTypes()}));return e.length?Object(R.createElement)(le.PluginPrePublishPanel,{icon:"block-default",title:Object(v.sprintf)(Object(v._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(R.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(v._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(R.createElement)(ie,{items:e})):null}Object(M.registerPlugin)("block-directory",{render:function(){return Object(R.createElement)(R.Fragment,null,Object(R.createElement)(ae,null),Object(R.createElement)(se,null))}})},38:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},43:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,c={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},52:function(e,t){!function(){e.exports=this.wp.plugins}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},9:function(e,t){!function(){e.exports=this.wp.compose}()}});
build/block-directory/style-rtl.css CHANGED
@@ -1 +1 @@
1
- .block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-header__row img{width:36px;height:36px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title{font-weight:600;margin-right:12px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings{margin-right:12px}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-left:4px;fill:#606a73}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:right;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-downloadable-blocks__notice{margin:0 0 16px}.block-directory-downloadable-blocks__notice-content{padding-left:12px;margin-bottom:8px}
1
+ .block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-right:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#555d66;font-size:11px}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-right:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-left:4px;fill:#606a73}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:right;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-left:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:right;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0}
build/block-directory/style.css CHANGED
@@ -1 +1 @@
1
- .block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-header__row img{width:36px;height:36px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-downloadable-block-header__title{font-weight:600;margin-left:12px}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column .block-directory-block-ratings{margin-left:12px}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-right:4px;fill:#606a73}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:left;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-downloadable-blocks__notice{margin:0 0 16px}.block-directory-downloadable-blocks__notice-content{padding-right:12px;margin-bottom:8px}
1
+ .block-directory-block-ratings{display:flex}.block-directory-block-ratings>div{line-height:1;display:flex}.block-directory-block-ratings .block-directory-block-ratings__rating-count{color:#606a73;font-size:ms(-2)}.block-directory-block-ratings svg{fill:#ffb900}.block-directory-compact-list{margin:0;list-style:none}.block-directory-compact-list__item{display:flex;flex-direction:row;align-items:center;margin-bottom:16px}.block-directory-compact-list__item:last-child{margin-bottom:0}.block-directory-compact-list__item-details{margin-left:8px}.block-directory-compact-list__item-title{font-weight:500}.block-directory-compact-list__item-author{color:#555d66;font-size:11px}.block-directory-downloadable-block-author-info__content{color:#606a73;font-size:12px}.block-directory-downloadable-block-author-info__content-author{margin-bottom:4px;font-size:13px}.block-directory-downloadable-block-header__row{display:flex;flex-grow:1}.block-directory-downloadable-block-header__row .block-directory-downloadable-block-header__column{display:flex;flex-direction:column;flex-grow:1;padding-left:12px}.block-directory-downloadable-block-header__title{margin:0;font-size:13px;color:currentColor}.block-directory-downloadable-block-icon{width:36px;height:36px}.block-directory-downloadable-block-icon .block-editor-block-icon{width:36px;height:36px;font-size:36px;background-color:#edeff0}.block-directory-downloadable-block-info__content{margin:0 0 16px;font-size:13px}.block-directory-downloadable-block-info__meta{display:flex;align-items:center;margin-bottom:2px;color:#606a73;font-size:12px}.block-directory-downloadable-block-info__meta:last-child{margin-bottom:0}.block-directory-downloadable-block-info__icon{margin-right:4px;fill:#606a73}.block-directory-downloadable-block-list-item{width:100%;padding:0;margin:0;display:flex;flex-direction:row;font-size:13px;color:#32373c;align-items:flex-start;justify-content:center;background:transparent;word-break:break-word;border-top:1px solid #e2e4e7;border-bottom:1px solid #e2e4e7;transition:all .05s ease-in-out;position:relative;text-align:left;overflow:hidden}@media (prefers-reduced-motion:reduce){.block-directory-downloadable-block-list-item{transition-duration:0s}}.block-directory-downloadable-block-list-item:last-child:not(:only-of-type){border-top:0}.block-directory-downloadable-block-list-item__panel{display:flex;flex-grow:1;flex-direction:column}.block-directory-downloadable-block-list-item__header{display:flex;flex-direction:column;padding:16px 16px 0}.block-directory-downloadable-block-list-item__body{display:flex;flex-direction:column;padding:16px}.block-directory-downloadable-block-list-item__footer{display:flex;flex-direction:column;padding:16px;background-color:#f3f4f5}.block-directory-downloadable-block-list-item__content{color:#606a73}.block-directory-downloadable-block-notice{margin:0 0 16px}.block-directory-downloadable-block-notice__content{padding-right:12px;margin-bottom:8px}.block-directory-downloadable-blocks-list{list-style:none;margin:0;overflow:hidden;display:flex;flex-wrap:wrap}.block-directory-downloadable-blocks-panel__description{font-style:italic;padding:16px;margin:0;text-align:left;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results{font-style:normal;padding:0;margin-top:100px;text-align:center;color:#606a73}.block-directory-downloadable-blocks-panel__description.has-no-results .components-spinner{float:inherit}.installed-blocks-pre-publish-panel__copy{margin-top:0}
build/block-editor/index.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-priority-queue', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '3cda01b68631b160310133efc4d03889');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-priority-queue', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'b2ed49113d94d2b565ba5cf8fa9ac5a7');
build/block-editor/index.js CHANGED
@@ -1,11 +1,11 @@
1
- this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=368)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2016 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(36);var o=n(29),c=n(37);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(41);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25);var o=n(35),c=n(29);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(34),o=n(9);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.richText}()},,function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t){!function(){e.exports=this.wp.hooks}()},,function(e,t,n){e.exports=n(125)()},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},,,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},,function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(l=o)||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},,,function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},,function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(c=new Array(l),i=0;i<l;i++)c[i]=arguments[i];return a={args:c,val:e.apply(null,c)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},,,,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},,function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,b=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(f=e.r,p=e.g,m=e.b,t={r:255*N(f,255),g:255*N(p,255),b:255*N(m,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=M(e.s),a=M(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,a),d=!0,b="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=M(e.s),l=M(e.l),t=function(e,t,n){var r,o,c;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function O(e,t,n,r){return[L(A(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=R(n.s),b(n)}function v(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=R(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=R(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=R(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function B(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function I(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(A(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+O(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+O(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function D(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function A(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},,,,,,,,,,,,,function(e,t){!function(){e.exports=this.wp.viewport}()},,,,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(158)),c=r(n(159)),i=n(22),a=r(i),l=r(n(131)),s=r(n(160)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var O,g,v=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}return l(t,e),t}(v),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(v);function k(e,t){O={fn:e,transform:t}}function y(e){g=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function C(e){_=e}var w,B=function(){return Date.now()};function I(e){w=e}var x,P,T=function(e){return e.current};function N(e){x=e}var R=Object.freeze({get applyAnimatedValues(){return O},injectApplyAnimatedValues:k,get colorNames(){return g},injectColorNames:y,get requestFrame(){return E},get cancelFrame(){return S},injectFrame:function(e,t){E=e,S=t},get interpolation(){return _},injectStringInterpolator:C,get now(){return B},injectNow:function(e){B=e},get defaultElement(){return w},injectDefaultElement:I,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),D=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),L=!1,M=new Set,A=function e(){if(!L)return!1;var t=B(),n=M,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],O=f.lastPosition,g=m instanceof v,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(g&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)O=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)O=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-O)<.1)&&(m=O);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k){O+=1*(h+=1*((-s.tension*(O-m)+-s.friction*h)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<m?O>m:O<m),_=Math.abs(h)<=s.precision,S=0===s.tension||Math.abs(m-O)<=s.precision;u=y||_&&S,f.lastVelocity=h,f.lastTime=t}g&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(O=m),f.done=!0):a=!0,f.setValue(O),f.lastPosition=O}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(M.delete(i),i.stop(!0))}return M.size?P?P():E(e):L=!1,L};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new V(this,e,t)},t}(v),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),U=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,M.has(t)||M.add(t),L||(L=!0,E(P||A));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,O=n.reset,v=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!g[i],m=u.arr(i),h=!l&&!m&&!d,k=u.und(c[r])?i:c[r],y=l||m?i:d?i:1,E=p(s,r);j&&(y=j.animations[r].parent);var S,C=a.parent,w=a.interpolation,I=f(j?y.getPayload():y),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=w&&w.getValue(),N=!u.und(C)&&a.animatedValues.some((function(e){return!e.done})),R=!u.equ(x,T),D=!u.equ(x,a.previous),L=!u.equ(E,a.config);if(O||D&&R||L){var M;if(l||d)C=w=a.parent||new H(k);else if(m)C=w=a.parent||new z(k);else if(h){var A=a.interpolation&&a.interpolation.calc(a.parent.value);A=void 0===A||O?k:A,a.parent?(C=a.parent).setValue(0,!1):C=new H(0);var F={output:[A,i]};a.interpolation?(w=a.interpolation,a.interpolation.updateConfig(F)):w=C.interpolate(F)}return I=f(j?y.getPayload():y),S=f(C.getPayload()),O&&!h&&C.setValue(k,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=B(),e.done=!1,e.animatedStyles.clear()})),p(v,r)&&C.setValue(h?y:i,!1),o({},e,((M={})[r]=o({},a,{name:r,parent:C,interpolation:w,animatedValues:S,toValues:I,previous:x,config:E,fromValues:f(C.getValue()),immediate:p(v,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),M))}return R?e:(h&&(C.setValue(1,!1),w.updateConfig({output:[x,x]})),C.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),K=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return(r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new G,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n])}),[e]),a=c[0],l=c[1];r.current=a;i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},W=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=O.transform(t)),n.payload=t,n}return l(t,e),t}(j),Z={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},Q="[-+]?\\d*\\.?\\d+",J=Q+"%";function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var te=new RegExp("rgb"+ee(Q,Q,Q)),ne=new RegExp("rgba"+ee(Q,Q,Q,Q)),re=new RegExp("hsl"+ee(Q,J,J)),oe=new RegExp("hsla"+ee(Q,J,J,Q)),ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,le=/^#([0-9a-fA-F]{8})$/;function se(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 ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=se(o,r,e+1/3),i=se(o,r,e),a=se(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function de(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function be(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=te.exec(t))?(de(n[1])<<24|de(n[2])<<16|de(n[3])<<8|255)>>>0:(n=ne.exec(t))?(de(n[1])<<24|de(n[2])<<16|de(n[3])<<8|fe(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=le.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=re.exec(t))?(255|ue(be(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=oe.exec(t))?(ue(be(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var Oe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ve=new RegExp("("+Object.keys(Z).join("|")+")","g"),he={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},je=["Webkit","Ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}he=Object.keys(he).reduce((function(e,t){return je.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),he);var ye={};N((function(e){return new X(e)})),I("div"),C((function(e){var t=e.output.map((function(e){return e.replace(ge,me)})).map((function(e){return e.replace(ve,me)})),n=t[0].match(Oe).map((function(){return[]}));t.forEach((function(e){e.match(Oe).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Oe).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Oe,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=ke(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ye[b]||(ye[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var _e,Ee,Se=(_e=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){b.current&&!1===O.fn(b.current,s.current.getAnimatedValue())&&r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p=s.current.getValue(),m=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return a.createElement(e,o({},m,{ref:function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)}),Ce=Se(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Se,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=A,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),O=a.onRest,g=a.onStart,v=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,O=a.trail,g=void 0===O?0:O,v=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,S=o({},i.current),C=[].concat(i.deleted),w=Object.keys(S),B=new Set(w),I=new Set(s),x=s.filter((function(e){return!B.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!I.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return B.has(e)})),N=-g;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){v&&C.find((function(t){return t.originalKey===e}))&&(C=C.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";S[e]={slot:c,originalKey:e,key:v?String(e):W++,item:o,trail:N+=g,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];C.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=g,config:p(h,n,"leave"),to:p(f,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];S[e]=o({},S[e],{item:n,slot:"update",trail:N+=g,config:p(h,n,"update"),to:p(m,n)})}))}}var R=s.map((function(e){return S[e]}));return C.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,current:S,deleted:C,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:v,onRest:function(n){y.current.mounted&&(e.destroyed&&(v||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&y.current.deleted.length>0&&Y(y),O&&O(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},,,,,,function(e,t,n){"use strict";t.__esModule=!0;var r=n(161);t.default=r.default},,,,,,,,,,,,,function(e,t,n){e.exports=function(){"use strict";return function(e){var t={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(t,e),function(e){return function(n){return function(r){var o,c,i=t[r.type],a=n(r);if(i)for(o=0;o<i.length;o++)(c=i[o](r,e))&&e.dispatch(c);return a}}}}}()},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},,,,,function(e,t,n){"use strict";e.exports=n(165)},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,function(e,t,n){"use strict";var r=n(5),o=n(15),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},,,,,,,,,,,,function(e,t,n){"use strict";var r=n(126);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){!function(){e.exports=this.wp.priorityQueue}()},function(e,t){!function(){e.exports=this.wp.wordcount}()},,,function(e,t){!function(){e.exports=this.wp.tokenList}()},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=c},,,,,,,,,,,,,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},,,,,,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(22),l=n(33),s=n(162),u=n(163),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!1),t.textarea.dispatchEvent(n)},t.updateLineHeight=function(){t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t,n=e.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,i(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return c({},a,{saveDOMNodeRef:s,style:u?c({},o,{maxHeight:u}):o,onChange:t.onChange})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout((function(){return s(e.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=i(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",c({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(){this.props.value!==this.currentValue&&this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.func},t}(a.Component);t.default=d},function(e,t,n){var r,o,c;
7
  /*!
8
  autosize 4.0.2
9
  license: MIT
10
  http://www.jacklmoore.com/autosize
11
- */o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=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],a),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=s,e.exports=t.default})?r.apply(t,o):r)||(e.exports=c)},function(e,t,n){var r=n(164);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},function(e,t,n){"use strict";var r=n(166);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),O=void 0,g=void 0,v=void 0,h=void 0,j=void 0,k=void 0,y=void 0,_=void 0,E=void 0,S=void 0;b?(y=t,S=r.height(y),E=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},j={left:f.left-_.left-s,top:f.top-_.top-l},k={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+S)+u},h=_):(O=r.offset(t),g=t.clientHeight,v=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(O.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(O.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},k={left:f.left+m-(O.left+v+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(O.top+g+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/;var d=void 0;function b(e,t){for(var n=0;n<e.length;n++)t(e[n])}function f(e){return"border-box"===d(e,"boxSizing")}"undefined"!=typeof window&&(d=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=c}return""===n?"auto":n});var p=["margin","border","padding"];function m(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(d(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var v={};function h(e,t,n){if(g(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(d(e),f(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=d(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,p.slice(n),r)}b(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var j={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=h.apply(void 0,n):m(e,j,(function(){t=h.apply(void 0,n)})),t}function y(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):d(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}b(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,r){if(void 0===r)return t&&k(t,e,-1);if(t){d(t);return f(t)&&(r+=O(t,["padding","border"],n)),y(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(y(e,c))||0,r[c]=o+t[c]-n[c]);y(e,r)}(e,t)},isWindow:g,each:b,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(262))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function O(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}O();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),O(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=c},function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,O=f&&0<=p&&p<s;if(m||O){if(!m||O&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-5.7-5.3-.6.6-.5-.5-5.2 5.2 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return $})),n.d(t,"getColorClassName",(function(){return he})),n.d(t,"getColorObjectByAttributeValues",(function(){return ge})),n.d(t,"getColorObjectByColorValue",(function(){return ve})),n.d(t,"createCustomColorsHOC",(function(){return At})),n.d(t,"withColors",(function(){return Ft})),n.d(t,"__experimentalUseColors",(function(){return nn})),n.d(t,"__experimentalGetGradientClass",(function(){return je})),n.d(t,"getGradientValueBySlug",(function(){return ke})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return ye})),n.d(t,"getGradientSlugByValue",(function(){return _e})),n.d(t,"__experimentalUseGradient",(function(){return Ee})),n.d(t,"getFontSize",(function(){return dt})),n.d(t,"getFontSizeClass",(function(){return ft})),n.d(t,"getFontSizeObjectByValue",(function(){return bt})),n.d(t,"FontSizePicker",(function(){return pt})),n.d(t,"withFontSizes",(function(){return ln})),n.d(t,"AlignmentToolbar",(function(){return mn})),n.d(t,"Autocomplete",(function(){return En})),n.d(t,"BlockAlignmentToolbar",(function(){return H})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Sn})),n.d(t,"BlockBreadcrumb",(function(){return wn})),n.d(t,"BlockContextProvider",(function(){return xn})),n.d(t,"BlockControls",(function(){return I})),n.d(t,"BlockColorsStyleSelector",(function(){return Rn})),n.d(t,"BlockEdit",(function(){return Mn})),n.d(t,"useBlockEditContext",(function(){return y})),n.d(t,"BlockFormatControls",(function(){return zn})),n.d(t,"BlockIcon",(function(){return gn})),n.d(t,"BlockNavigationDropdown",(function(){return zs})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Ns})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return cu})),n.d(t,"__experimentalBlockNavigationTree",(function(){return As})),n.d(t,"__experimentalBlockVariationPicker",(function(){return iu})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return bu})),n.d(t,"ButtonBlockerAppender",(function(){return la})),n.d(t,"ColorPalette",(function(){return pu})),n.d(t,"ColorPaletteControl",(function(){return mu})),n.d(t,"ContrastChecker",(function(){return We})),n.d(t,"__experimentalGradientPicker",(function(){return gu})),n.d(t,"__experimentalGradientPickerControl",(function(){return vu})),n.d(t,"__experimentalGradientPickerPanel",(function(){return hu})),n.d(t,"__experimentalColorGradientControl",(function(){return Re})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Ue})),n.d(t,"__experimentalImageSizeControl",(function(){return ku})),n.d(t,"InnerBlocks",(function(){return Tu})),n.d(t,"InspectorAdvancedControls",(function(){return te})),n.d(t,"InspectorControls",(function(){return pe})),n.d(t,"__experimentalLinkControl",(function(){return td})),n.d(t,"__experimentalLineHeightControl",(function(){return ct})),n.d(t,"MediaReplaceFlow",(function(){return id})),n.d(t,"MediaPlaceholder",(function(){return Od})),n.d(t,"MediaUpload",(function(){return od})),n.d(t,"MediaUploadCheck",(function(){return cd})),n.d(t,"PanelColorSettings",(function(){return Ut})),n.d(t,"PlainText",(function(){return hd})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return kd})),n.d(t,"RichText",(function(){return ou})),n.d(t,"RichTextShortcut",(function(){return _d})),n.d(t,"RichTextToolbarButton",(function(){return Ed})),n.d(t,"__unstableRichTextInputEvent",(function(){return Cd})),n.d(t,"ToolSelector",(function(){return Id})),n.d(t,"__experimentalUnitControl",(function(){return Pd})),n.d(t,"URLInput",(function(){return Ku})),n.d(t,"URLInputButton",(function(){return Dd})),n.d(t,"URLPopover",(function(){return dd})),n.d(t,"__experimentalImageURLInputUI",(function(){return Fd})),n.d(t,"withColorContext",(function(){return fu})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return Ul})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Pa})),n.d(t,"__experimentalPreviewOptions",(function(){return Hd})),n.d(t,"__experimentalUseResizeCanvas",(function(){return $d})),n.d(t,"BlockInspector",(function(){return eb})),n.d(t,"BlockList",(function(){return pa})),n.d(t,"__experimentalBlock",(function(){return ys})),n.d(t,"BlockMover",(function(){return kl})),n.d(t,"BlockPreview",(function(){return ga})),n.d(t,"BlockSelectionClearer",(function(){return rb})),n.d(t,"BlockSettingsMenu",(function(){return Jl})),n.d(t,"BlockSettingsMenuControls",(function(){return Yl})),n.d(t,"BlockTitle",(function(){return Cn})),n.d(t,"BlockToolbar",(function(){return is})),n.d(t,"CopyHandler",(function(){return ob})),n.d(t,"DefaultBlockAppender",(function(){return ia})),n.d(t,"__unstableEditorStyles",(function(){return Ib})),n.d(t,"Inserter",(function(){return rl})),n.d(t,"__experimentalLibrary",(function(){return xb})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Tb})),n.d(t,"MultiSelectScrollIntoView",(function(){return Nb})),n.d(t,"NavigableToolbar",(function(){return gl})),n.d(t,"ObserveTyping",(function(){return Db})),n.d(t,"PreserveScrollInReorder",(function(){return Lb})),n.d(t,"SkipToSelectedBlock",(function(){return Yd})),n.d(t,"Typewriter",(function(){return Hb})),n.d(t,"Warning",(function(){return dr})),n.d(t,"WritingFlow",(function(){return dl})),n.d(t,"BlockEditorProvider",(function(){return oa})),n.d(t,"useSimulatedMediaQuery",(function(){return qd})),n.d(t,"__experimentalUseEditorFeature",(function(){return ot})),n.d(t,"transformStyles",(function(){return Bb})),n.d(t,"storeConfig",(function(){return ta})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Ar}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return wo})),n.d(r,"resetSelection",(function(){return Bo})),n.d(r,"receiveBlocks",(function(){return Io})),n.d(r,"updateBlockAttributes",(function(){return xo})),n.d(r,"updateBlock",(function(){return Po})),n.d(r,"selectBlock",(function(){return To})),n.d(r,"selectPreviousBlock",(function(){return No})),n.d(r,"selectNextBlock",(function(){return Ro})),n.d(r,"startMultiSelect",(function(){return Do})),n.d(r,"stopMultiSelect",(function(){return Lo})),n.d(r,"multiSelect",(function(){return Mo})),n.d(r,"clearSelectedBlock",(function(){return Ao})),n.d(r,"toggleSelection",(function(){return Fo})),n.d(r,"replaceBlocks",(function(){return Ho})),n.d(r,"replaceBlock",(function(){return zo})),n.d(r,"moveBlocksDown",(function(){return Go})),n.d(r,"moveBlocksUp",(function(){return Ko})),n.d(r,"moveBlockToPosition",(function(){return Wo})),n.d(r,"insertBlock",(function(){return qo})),n.d(r,"insertBlocks",(function(){return $o})),n.d(r,"showInsertionPoint",(function(){return Yo})),n.d(r,"hideInsertionPoint",(function(){return Xo})),n.d(r,"setTemplateValidity",(function(){return Zo})),n.d(r,"synchronizeTemplate",(function(){return Qo})),n.d(r,"mergeBlocks",(function(){return Jo})),n.d(r,"removeBlocks",(function(){return ec})),n.d(r,"removeBlock",(function(){return tc})),n.d(r,"replaceInnerBlocks",(function(){return nc})),n.d(r,"toggleBlockMode",(function(){return rc})),n.d(r,"startTyping",(function(){return oc})),n.d(r,"stopTyping",(function(){return cc})),n.d(r,"startDraggingBlocks",(function(){return ic})),n.d(r,"stopDraggingBlocks",(function(){return ac})),n.d(r,"enterFormattedText",(function(){return lc})),n.d(r,"exitFormattedText",(function(){return sc})),n.d(r,"selectionChange",(function(){return uc})),n.d(r,"insertDefaultBlock",(function(){return dc})),n.d(r,"updateBlockListSettings",(function(){return bc})),n.d(r,"updateSettings",(function(){return fc})),n.d(r,"__unstableSaveReusableBlock",(function(){return pc})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return mc})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return Oc})),n.d(r,"__unstableMarkAutomaticChange",(function(){return gc})),n.d(r,"setNavigationMode",(function(){return vc})),n.d(r,"duplicateBlocks",(function(){return hc})),n.d(r,"insertBeforeBlock",(function(){return jc})),n.d(r,"insertAfterBlock",(function(){return kc})),n.d(r,"toggleBlockHighlight",(function(){return yc})),n.d(r,"flashBlock",(function(){return _c})),n.d(r,"setHasControlledInnerBlocks",(function(){return Ec}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return xc})),n.d(o,"isBlockValid",(function(){return Pc})),n.d(o,"getBlockAttributes",(function(){return Tc})),n.d(o,"getBlock",(function(){return Nc})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Rc})),n.d(o,"getBlocks",(function(){return Dc})),n.d(o,"getClientIdsOfDescendants",(function(){return Lc})),n.d(o,"getClientIdsWithDescendants",(function(){return Mc})),n.d(o,"getGlobalBlockCount",(function(){return Ac})),n.d(o,"getBlocksByClientId",(function(){return Fc})),n.d(o,"getBlockCount",(function(){return Vc})),n.d(o,"getSelectionStart",(function(){return Hc})),n.d(o,"getSelectionEnd",(function(){return zc})),n.d(o,"getBlockSelectionStart",(function(){return Uc})),n.d(o,"getBlockSelectionEnd",(function(){return Gc})),n.d(o,"getSelectedBlockCount",(function(){return Kc})),n.d(o,"hasSelectedBlock",(function(){return Wc})),n.d(o,"getSelectedBlockClientId",(function(){return qc})),n.d(o,"getSelectedBlock",(function(){return $c})),n.d(o,"getBlockRootClientId",(function(){return Yc})),n.d(o,"getBlockParents",(function(){return Xc})),n.d(o,"getBlockParentsByBlockName",(function(){return Zc})),n.d(o,"getBlockHierarchyRootClientId",(function(){return Qc})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Jc})),n.d(o,"getAdjacentBlockClientId",(function(){return ei})),n.d(o,"getPreviousBlockClientId",(function(){return ti})),n.d(o,"getNextBlockClientId",(function(){return ni})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return ri})),n.d(o,"getSelectedBlockClientIds",(function(){return oi})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return ci})),n.d(o,"getMultiSelectedBlocks",(function(){return ii})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return ai})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return li})),n.d(o,"isFirstMultiSelectedBlock",(function(){return si})),n.d(o,"isBlockMultiSelected",(function(){return ui})),n.d(o,"isAncestorMultiSelected",(function(){return di})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return bi})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return fi})),n.d(o,"getBlockOrder",(function(){return pi})),n.d(o,"getBlockIndex",(function(){return mi})),n.d(o,"isBlockSelected",(function(){return Oi})),n.d(o,"hasSelectedInnerBlock",(function(){return gi})),n.d(o,"isBlockWithinSelection",(function(){return vi})),n.d(o,"hasMultiSelection",(function(){return hi})),n.d(o,"isMultiSelecting",(function(){return ji})),n.d(o,"isSelectionEnabled",(function(){return ki})),n.d(o,"getBlockMode",(function(){return yi})),n.d(o,"isTyping",(function(){return _i})),n.d(o,"isDraggingBlocks",(function(){return Ei})),n.d(o,"isCaretWithinFormattedText",(function(){return Si})),n.d(o,"getBlockInsertionPoint",(function(){return Ci})),n.d(o,"isBlockInsertionPointVisible",(function(){return wi})),n.d(o,"isValidTemplate",(function(){return Bi})),n.d(o,"getTemplate",(function(){return Ii})),n.d(o,"getTemplateLock",(function(){return xi})),n.d(o,"canInsertBlockType",(function(){return Ti})),n.d(o,"getInserterItems",(function(){return Di})),n.d(o,"hasInserterItems",(function(){return Li})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Mi})),n.d(o,"getBlockListSettings",(function(){return Ai})),n.d(o,"getSettings",(function(){return Fi})),n.d(o,"isLastBlockChangePersistent",(function(){return Vi})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return Hi})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return zi})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return Ui})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return Gi})),n.d(o,"isNavigationMode",(function(){return Wi})),n.d(o,"didAutomaticChange",(function(){return qi})),n.d(o,"isBlockHighlighted",(function(){return $i})),n.d(o,"areInnerBlocksControlled",(function(){return Yi}));var c=n(12),i=n(26),a=n(72),l=n(48),s=n(10),u=n(5),d=n(0),b=n(11),f=n.n(b),p=n(2),m=n(8),O=n(31),g=n(4),v=n(3),h=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),j=h.Provider,k=h.Consumer;function y(){return Object(d.useContext)(h)}var _=function(e){return Object(m.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(k,null,(function(r){return Object(d.createElement)(t,Object(s.a)({},n,e(r,n)))}))}}),"withBlockEditContext")},E=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(d.createElement)(k,null,(function(n){return n.isSelected&&Object(d.createElement)(e,t)}))}}),"ifBlockEditSelected"),S=Object(v.createSlotFill)("BlockControls"),C=S.Fill,w=S.Slot;var B=E((function(e){var t=e.controls,n=e.children;return Object(d.createElement)(C,null,(function(e){var r=Object(p.isEmpty)(e)?null:e;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:r},Object(d.createElement)(v.ToolbarGroup,{controls:t}),n)}))}));B.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(w,Object(s.a)({},e,{fillProps:t}))};var I=B,x=n(1),P=n(7),T=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),N=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),R=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),D=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),L=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var A={left:{icon:T,title:Object(x.__)("Align left")},center:{icon:N,title:Object(x.__)("Align center")},right:{icon:R,title:Object(x.__)("Align right")},wide:{icon:D,title:Object(x.__)("Wide width")},full:{icon:L,title:Object(x.__)("Full width")}},F=["left","center","right","wide","full"],V=["wide","full"];var H=Object(m.compose)(_((function(e){return{clientId:e.clientId}})),Object(g.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?F:r,c=e.isCollapsed,i=void 0===c||c,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===V.indexOf(e)})),s=A[t],b=A.center;return Object(d.createElement)(v.ToolbarGroup,{isCollapsed:i,icon:s?s.icon:b.icon,label:Object(x.__)("Change alignment"),controls:l.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},A[e],{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G=["left","center","right","wide","full"],K=["wide","full"];function W(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?G:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(K)):t}var q=Object(d.createContext)({}),$=q.Provider,Y=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(q).isEmbedButton,r=t.name,o=n?[]:W(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(I,{key:"align-controls"},Object(d.createElement)(H,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),X=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var i=W(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(i,r)&&(a=U({},a,{"data-align":r})),Object(d.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(O.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(c.hasBlockSupport)(e,"align")&&(e.attributes=U({},e.attributes,{align:{type:"string"}})),e)})),Object(O.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",X),Object(O.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Y),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(c.getBlockSupport)(t,"align"),i=Object(c.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(W(o,i),r)&&(e.className=f()("align".concat(r),e.className)),e}));var Z=Object(v.createSlotFill)("InspectorAdvancedControls"),Q=Z.Fill,J=Z.Slot,ee=E(Q);ee.slotName="InspectorAdvancedControls",ee.Slot=J;var te=ee;function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var re=/[\s#]/g;var oe=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(te,null,Object(d.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(x.__)("HTML anchor"),help:Object(d.createElement)(d.Fragment,null,Object(x.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(d.createElement)(v.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(x.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(re,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(O.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(O.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",oe),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var ie=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(te,null,Object(d.createElement)(v.TextControl,{autoComplete:"off",label:Object(x.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(x.__)("Separate multiple classes with spaces.")}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function ae(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(O.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.attributes,{className:{type:"string"}})),e})),Object(O.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ie),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=f()(e.className,n.className)),e})),Object(O.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=ae(o),a=ae(n),l=Object(p.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var le=n(16);Object(O.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(le.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var se=n(14),ue=Object(v.createSlotFill)("InspectorControls"),de=ue.Fill,be=ue.Slot,fe=E(de);fe.Slot=be;var pe=fe,me=n(59),Oe=n.n(me),ge=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},ve=function(e,t){return Object(p.find)(e,{color:t})};function he(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}function je(e){if(e)return"has-".concat(e,"-gradient-background")}function ke(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function ye(e,t){return Object(p.find)(e,["gradient",t])}function _e(e,t){var n=ye(e,t);return n&&n.slug}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=y(),i=c.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,b=a.customGradient,f=Object(g.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(d.useCallback)((function(e){var t,r,c=_e(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),O=je(s);return{gradientClass:O,gradientValue:s?ke(l,s):b,setGradient:m}}var Se=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},Ce=n(15);function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Be=Object(x.__)("(Color: %s)"),Ie=Object(x.__)("(Gradient: %s)"),xe=["colors","disableCustomColors","gradients","disableCustomGradients"];function Pe(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=ve(r,t=a),u=s&&s.name;n=Object(x.sprintf)(Be,u||t)}}else if("gradient"===i&&l){var b=ye(o,t=l),f=b&&b.name;n=Object(x.sprintf)(Ie,f||t)}return Object(d.createElement)(d.Fragment,null,c,!!t&&Object(d.createElement)(v.ColorIndicator,{colorValue:t,"aria-label":n}))}function Te(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,l=e.onGradientChange,u=e.colorValue,b=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),O=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(b?"gradient":!!m&&"color"),h=Object(se.a)(g,2),j=h[0],k=h[1];return m||O?Object(d.createElement)(v.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(v.BaseControl.VisualLabel,null,Object(d.createElement)(Pe,{currentTab:j,label:i,colorValue:u,gradientValue:b})))),m&&O&&Object(d.createElement)(v.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(v.Button,{isSmall:!0,isPrimary:"color"===j,isSecondary:"color"!==j,onClick:function(){return k("color")}},Object(x.__)("Solid")),Object(d.createElement)(v.Button,{isSmall:!0,isPrimary:"gradient"===j,isSecondary:"gradient"!==j,onClick:function(){return k("gradient")}},Object(x.__)("Gradient"))),("color"===j||!O)&&Object(d.createElement)(v.ColorPalette,Object(s.a)({value:u,onChange:O?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({value:b,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ne(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,xe)}));return Object(d.createElement)(Te,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},e))}var Re=function(e){return Object(p.every)(xe,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(Te,e):Object(d.createElement)(Ne,e)};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Me=Object(x.__)("(%s: color %s)"),Ae=Object(x.__)("(%s: gradient %s)"),Fe=["colors","disableCustomColors","gradients","disableCustomGradients"],Ve=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!c&&!i)return null;if(c){var u=ve(l||t,c);o=Object(x.sprintf)(Me,a.toLowerCase(),u&&u.name||c)}else{var b=ye(s||n,c);o=Object(x.sprintf)(Ae,a.toLowerCase(),b&&b.name||i)}return Object(d.createElement)(v.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},He=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,i=e.children,a=e.settings,l=e.title,u=Object(Ce.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(p.isEmpty)(n)&&Object(p.isEmpty)(r)&&o&&c&&Object(p.every)(a,(function(e){return Object(p.isEmpty)(e.colors)&&Object(p.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var b=Object(d.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},l,Object(d.createElement)(Ve,{colors:n,gradients:r,settings:a}));return Object(d.createElement)(v.PanelBody,Object(s.a)({className:f()("block-editor-panel-color-gradient-settings",t),title:b},u),a.map((function(e,t){return Object(d.createElement)(Re,Object(s.a)({key:t},Le({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),i)},ze=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Fe)}));return Object(d.createElement)(He,Le({},t,{},e))},Ue=function(e){return Object(p.every)(Fe,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(He,e):Object(d.createElement)(ze,e)},Ge=n(51);function Ke(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(x.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(x.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(d.useEffect)((function(){Object(Ge.speak)(Object(x.__)("This color combination may be hard for people to read."))}),[r,o]),Object(d.createElement)("div",{className:"block-editor-contrast-checker"},Object(d.createElement)(v.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var We=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=Oe()(t||n),l=Oe()(i||r);return 1!==a.getAlpha()||1!==l.getAlpha()||Oe.a.isReadable(a,l,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(d.createElement)(Ke,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})};function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==window.Node.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(d.useState)(),s=Object(se.a)(l,2),u=s[0],b=s[1],f=Object(d.useState)(),p=Object(se.a)(f,2),m=p[0],O=p[1];return Object(d.useEffect)((function(){if(o){var e=qe(n);if(e){O(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;b(r)}}})),Object(d.createElement)(pe,null,Object(d.createElement)(Ue,{title:Object(x.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(d.createElement)(We,{backgroundColor:u,textColor:m})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){return Object(c.hasBlockSupport)(e,"__experimentalColor")},et=function(e){var t=Object(c.getBlockSupport)(e,"__experimentalColor");return Object(p.isObject)(t)&&!!t.gradients};function tt(e,t,n){var r,o,c,i,a;if(!Je(t))return e;var l=et(t),s=n.backgroundColor,d=n.textColor,b=n.gradient,p=n.style,m=he("background-color",s),O=je(b),g=he("color",d),v=f()(e.className,g,O,(a={},Object(u.a)(a,m,!(l&&(null==p?void 0:null===(r=p.color)||void 0===r?void 0:r.gradient)||!m)),Object(u.a)(a,"has-text-color",d||(null==p?void 0:null===(o=p.color)||void 0===o?void 0:o.text)),Object(u.a)(a,"has-background",s||(null==p?void 0:null===(c=p.color)||void 0===c?void 0:c.background)||l&&(b||(null==p?void 0:null===(i=p.color)||void 0===i?void 0:i.gradient))),a));return e.className=v||void 0,e}function nt(e){var t,n,r,o=e.name,c=e.attributes,i=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),a=i.colors,l=i.gradients,s=Object(d.useRef)(c);if(Object(d.useEffect)((function(){s.current=c}),[c]),!Je(o))return null;var b,f=et(o),p=c.style,m=c.textColor,O=c.backgroundColor,v=c.gradient;if(f&&v)b=ke(l,v);else if(f){var h;b=null==p?void 0:null===(h=p.color)||void 0===h?void 0:h.gradient}var j=function(t){return function(n){var r,o,c=ve(a,n),i=t+"Color",l=Qe({},s.current.style,{color:Qe({},null===(r=s.current)||void 0===r?void 0:null===(o=r.style)||void 0===o?void 0:o.color,Object(u.a)({},t,(null==c?void 0:c.slug)?void 0:n))}),d=(null==c?void 0:c.slug)?c.slug:void 0,b=Object(u.a)({style:Se(l)},i,d);e.setAttributes(b),s.current=Qe({},s.current,{},b)}};return Object(d.createElement)(Xe,{enableContrastChecking:"web"===d.Platform.OS&&!v&&!(null==p?void 0:null===(t=p.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[{label:Object(x.__)("Text Color"),onColorChange:j("text"),colorValue:ge(a,m,null==p?void 0:null===(n=p.color)||void 0===n?void 0:n.text).color},{label:Object(x.__)("Background Color"),onColorChange:j("background"),colorValue:ge(a,O,null==p?void 0:null===(r=p.color)||void 0===r?void 0:r.background).color,gradientValue:b,onGradientChange:f?function(t){var n,r=_e(l,t);if(r){var o,c,i,a=Qe({},null===(o=s.current)||void 0===o?void 0:o.style,{color:Qe({},null===(c=s.current)||void 0===c?void 0:null===(i=c.style)||void 0===i?void 0:i.color,{gradient:void 0})});n={style:Se(a),gradient:r}}else{var u,d,b,f=Qe({},null===(u=s.current)||void 0===u?void 0:u.style,{color:Qe({},null===(d=s.current)||void 0===d?void 0:null===(b=d.style)||void 0===b?void 0:b.color,{gradient:t})});n={style:Se(f),gradient:void 0}}e.setAttributes(n),s.current=Qe({},s.current,{},n)}:void 0}]})}Object(O.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Je(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),et(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",tt),Object(O.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Je(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),tt(r,e,n)},e}));var rt=n(21);function ot(e){return Object(g.useSelect)((function(t){return(0,t("core/block-editor").getSettings)()[e]}),[e])}function ct(e){var t=e.value,n=e.onChange;if(ot("__experimentalDisableCustomLineHeight"))return null;var r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(d.createElement)("div",{className:"block-editor-line-height-control"},Object(d.createElement)(v.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==rt.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(x.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e){var t,n=e.name,r=e.attributes.style;if(!Object(c.hasBlockSupport)(n,"__experimentalLineHeight"))return null;return Object(d.createElement)(ct,{value:null==r?void 0:null===(t=r.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var n=at({},r,{typography:at({},null==r?void 0:r.typography,{lineHeight:t})});e.setAttributes({style:Se(n)})}})}var st=n(136),ut=n.n(st),dt=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function bt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function ft(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var pt=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(v.FontSizePicker);function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t,n){if(!Object(c.hasBlockSupport)(t,"__experimentalFontSize"))return e;var r=new ut.a(e.className);r.add(ft(n.fontSize));var o=r.value;return e.className=o||void 0,e}function vt(e){var t,n=e.name,r=e.attributes,o=r.fontSize,i=r.style,a=e.setAttributes,l=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})).fontSizes;if(!Object(c.hasBlockSupport)(n,"__experimentalFontSize"))return null;var s=dt(l,o,null==i?void 0:null===(t=i.typography)||void 0===t?void 0:t.fontSize);return Object(d.createElement)(pt,{value:s.size,onChange:function(e){var t=bt(l,e).slug;a({style:Se(Ot({},i,{typography:Ot({},null==i?void 0:i.typography,{fontSize:t?void 0:e})})),fontSize:t})}})}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(O.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",gt),Object(O.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),gt(r,e,n)},e}));var jt=["__experimentalColor","__experimentalLineHeight","__experimentalFontSize"],kt=["__experimentalLineHeight","__experimentalFontSize"],yt=function(e){return jt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function _t(e,t,n){if(!yt(t))return e;var r=n.style;return e.style=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"]},n={};return Object.entries(t).forEach((function(t){var r=Object(se.a)(t,2),o=r[0],c=r[1];Object(p.has)(e,c)&&(n[o]=Object(p.get)(e,c))})),n}(r),{},e.style),e}var Et=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=kt.some((function(e){return Object(c.hasBlockSupport)(n,e)}));return["web"===d.Platform.OS&&r&&Object(d.createElement)(pe,{key:"typography"},Object(d.createElement)(v.PanelBody,{title:Object(x.__)("Typography")},Object(d.createElement)(vt,t),Object(d.createElement)(lt,t))),Object(d.createElement)(nt,Object(s.a)({key:"colors"},t)),Object(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls");Object(O.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return yt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",_t),Object(O.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!yt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),_t(r,e,n)},e})),Object(O.addFilter)("editor.BlockEdit","core/style/with-block-controls",Et);var St=n(18),Ct=n(17),wt=n(9),Bt=n(20),It=n(13),xt=n(19);function Pt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rt=[],Dt=function(e){return Object(m.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(t,Object(s.a)({},n,{colors:e}))}}),"withCustomColorPalette")},Lt=function(){return Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],Rt)}}))};function Mt(e,t){var n=Object(p.reduce)(e,(function(e,t){return Nt({},e,{},Object(p.isString)(t)?Object(u.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(m.compose)([t,function(e){return function(t){Object(xt.a)(c,t);var r,o=(r=c,function(){var e,t=Object(It.a)(r);if(Pt()){var n=Object(It.a)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Object(Bt.a)(this,e)});function c(e){var t;return Object(St.a)(this,c),(t=o.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(wt.a)(t))},t.state={},t}return Object(Ct.a)(c,[{key:"getMostReadableColor",value:function(e){return function(e,t){return Oe.a.mostReadable(t,Object(p.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(n,(function(t,n,r){var o=Object(p.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=ve(n.props.colors,r);n.props.setAttributes((o={},Object(u.a)(o,e,c&&c.slug?c.slug:void 0),Object(u.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,Nt({},this.props,{colors:void 0},this.state,{},this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(p.reduce)(n,(function(e,n,c){var i=ge(o,r[c],r["custom".concat(Object(p.upperFirst)(c))]),a=t[c];return Object(p.get)(a,["color"])===i.color&&a?e[c]=a:e[c]=Nt({},i,{class:he(n,i.slug)}),e}),{})}}]),c}(d.Component)}])}function At(e){return function(){for(var t=Dt(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(m.createHigherOrderComponent)(Mt(r,t),"withCustomColors")}}function Ft(){for(var e=Lt(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(m.createHigherOrderComponent)(Mt(n,e),"withColors")}var Vt=n(53),Ht=n.n(Vt);function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ut=function(e){var t=e.colorSettings,n=Object(Ce.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(Ce.a)(e,["value","onChange"]),{colorValue:t,onColorChange:n})}));return Object(d.createElement)(Ue,Object(s.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},Gt=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function Kt(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,i=e.detectedColor,a=e.panelChildren,l=e.initialOpen;return Object(d.createElement)(Ut,Object(s.a)({title:t,initialOpen:l,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(Ce.a)(e,["backgroundColor","textColor"]);return t=Gt(t,n,c),r=Gt(r,n,i),Object(d.createElement)(We,Object(s.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(p.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=Gt(r||t,n,c),a=Gt(a||t,n,i),Object(d.createElement)(We,Object(s.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)}function Wt(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xt=window,Zt=Xt.getComputedStyle,Qt=Xt.Node,Jt=[],en={textColor:Object(x.__)("Text Color"),backgroundColor:Object(x.__)("Background Color")},tn=function(e){return Object(d.createElement)(pe,null,Object(d.createElement)(Kt,e))};function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(x.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(x.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,b=void 0===s?l:s,m=a.textColorTargetRef,O=void 0===m?l:m,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=y(),j=h.clientId,k=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:Jt}}),[j]),_=k.attributes,E=k.settingsColors,S=Object(g.useDispatch)("core/block-editor"),C=S.updateBlockAttributes,w=Object(d.useCallback)((function(e){return C(j,e)}),[C,j]),B=Object(d.useMemo)((function(){return Ht()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,b=void 0===s?"":s,m=i.style,O=void 0===m?{}:m,g={};r?g=Object(u.a)({},t,o):c&&(g=Object(u.a)({},t,c));var v={className:f()(b,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:Yt({},g,{},O)};return Object(p.isFunction)(l)?l(v):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:f()(e.props.className,v.className),style:Yt({},v.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),I=Object(d.useMemo)((function(){return Ht()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),P=Object(d.useState)(),T=Object(se.a)(P,2),N=T[0],R=T[1],D=Object(d.useState)(),L=Object(se.a)(D,2),M=L[0],A=L[1];return Object(d.useEffect)((function(){if(c){var e,t=!1,n=!1,r=Wt(Object(p.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&A(Zt(O.current).color),t){for(var l=b.current,s=Zt(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===Qt.ELEMENT_NODE;)l=l.parentNode,s=Zt(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(le.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Yt({},n,{color:_[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||en[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,b=r.color,f=void 0===b?n.color:b,m=r.colors,O=void 0===m?E:m,g=_[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:O.find((function(e){return e.slug===f}));return e[d]=B(o,i,a,f,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=f,e[d].setColor=I(o,O),t[d]={value:v?v.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:O},O||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:M,panelChildren:i};return Yt({},n,{ColorPanel:Object(d.createElement)(Kt,a),InspectorControlsColorPanel:Object(d.createElement)(tn,a)})}),[_,w,M,N].concat(Object(le.a)(v)))}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e){return function(){var t,n=Object(It.a)(e);if(an()){var r=Object(It.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(Bt.a)(this,t)}}function an(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ln=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(p.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(p.upperFirst)(t)),e}),{});return Object(m.createHigherOrderComponent)(Object(m.compose)([Object(g.withSelect)((function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}})),function(e){return function(t){Object(xt.a)(o,t);var n=cn(o);function o(e){var t;return Object(St.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(Ct.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(r,(function(t,n,r){var o=Object(p.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(p.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(u.a)(o,e,c&&c.slug?c.slug:void 0),Object(u.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,on({},this.props,{fontSizes:void 0},this.state,{},this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(p.some)(r,c))return null;var i=Object(p.reduce)(Object(p.pickBy)(r,c),(function(e,t,r){var c=n[r],i=dt(o,c,n[t]);return e[r]=on({},i,{class:ft(c)}),e}),{});return on({},t,{},i)}}]),o}(d.Component)}]),"withFontSizes")},sn=n(256),un=n(257),dn=n(258);function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var fn=[{icon:sn.a,title:Object(x.__)("Align text left"),align:"left"},{icon:un.a,title:Object(x.__)("Align text center"),align:"center"},{icon:dn.a,title:Object(x.__)("Align text right"),align:"right"}],pn={position:"bottom right",isAlternate:!0};var mn=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?fn:r,c=e.label,i=void 0===c?Object(x.__)("Change text alignment"):c,a=e.isCollapsed,l=void 0===a||a,s=e.isRTL;function b(e){return function(){return n(t===e?void 0:e)}}var f=Object(p.find)(o,(function(e){return e.align===t}));return Object(d.createElement)(v.ToolbarGroup,{isCollapsed:l,icon:f?f.icon:s?dn.a:sn.a,label:i,popoverProps:pn,controls:o.map((function(e){var n=e.align;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:t===n,role:l?"menuitemradio":void 0,onClick:b(n)})}))})},On=n(182);function gn(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className;"block-default"===Object(p.get)(t,["src"])&&(t={src:On.a});var c=Object(d.createElement)(v.Icon,{icon:t&&t.src?t.src:t}),i=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:i,className:f()("block-editor-block-icon",o,{"has-colors":r})},c)}function vn(){return Object(g.select)("core/block-editor").getBlockInsertionPoint().rootClientId}function hn(e){return Object(g.select)("core/block-editor").getInserterItems(e)}function jn(){var e=Object(g.select)("core/block-editor"),t=e.getSelectedBlockClientId,n=e.getBlockName,r=t();return r?n(r):null}var kn=Object(p.once)((function(){var e=Object(g.select)("core/block-editor").getSettings().__experimentalFetchReusableBlocks;e&&e()}));var yn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?vn:t,r=e.getInserterItems,o=void 0===r?hn:r,i=e.getSelectedBlockName,a=void 0===i?jn:i;return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",options:function(){kn();var e=a();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(le.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(d.createElement)(gn,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(c.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),_n=[];var En=Object(m.compose)([_((function(e){return{blockName:e.name}})),function(e){return function(t){var n=t.completers,r=void 0===n?_n:n,o=t.blockName;return r=Object(d.useMemo)((function(){return o===Object(c.getDefaultBlockName)()?r.concat([yn]):r}),[r,o]),Object(O.hasFilter)("editor.Autocomplete.completers")&&(r=Object(O.applyFilters)("editor.Autocomplete.completers",r.map(p.clone),t.blockName)),Object(d.createElement)(e,Object(s.a)({},t,{completers:r}))}}])(v.Autocomplete);var Sn=function(e){var t=e.label,n=void 0===t?Object(x.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?p.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(d.createElement)(v.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.Button,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==rt.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(d.createElement)(v.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};var Cn=Object(g.withSelect)((function(e,t){return{name:(0,e("core/block-editor").getBlockName)(t.clientId)}}))((function(e){var t=e.name;if(!t)return null;var n=Object(c.getBlockType)(t);return n?n.title:null})),wn=function(){var e=Object(g.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(x.__)("Block breadcrumb")},Object(d.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(x.__)("Document")),!i&&Object(x.__)("Document")),c.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(Cn,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(Cn,{clientId:o})))};function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var In=Object(d.createContext)({});function xn(e){var t=e.value,n=e.children,r=Object(d.useContext)(In),o=Object(d.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},t)}),[r,t]);return Object(d.createElement)(In.Provider,{value:o,children:n})}var Pn=In,Tn=function(){return Object(d.createElement)(v.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(d.createElement)(v.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},Nn=function(e){var t=e.style,n=e.className;return Object(d.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(d.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(d.createElement)(Tn,null)))},Rn=function(e){var t,n,r,o=e.children,c=Object(Ce.a)(e,["children"]);return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(x.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==rt.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(d.createElement)(r,null,Object(d.createElement)(n,null,Object(d.createElement)(Nn,null)))}))}),renderContent:function(){return o}})},Dn={},Ln=Object(v.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(c.getBlockType)(r),i=Object(d.useContext)(Pn),a=Object(d.useMemo)((function(){return o&&o.context?Object(p.pick)(i,o.context):Dn}),[o,i]);if(!o)return null;var l=o.edit||o.save;if(Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(d.createElement)(l,Object(s.a)({},e,{context:a}));var u=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,b=f()(u,n.className);return Object(d.createElement)(l,Object(s.a)({},e,{context:a,className:b}))}));function Mn(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(d.createElement)(j,{value:Object(d.useMemo)((function(){return t}),Object.values(t))},Object(d.createElement)(Ln,e))}var An=Object(v.createSlotFill)("BlockFormatControls"),Fn=An.Fill,Vn=An.Slot;var Hn=E((function(e){return Object(d.createElement)(Fn,null,(function(t){var n=Object(p.isEmpty)(t)?null:t;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:n},e.children)}))}));Hn.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(Vn,Object(s.a)({},e,{fillProps:t}))};var zn=Hn,Un=n(185),Gn=n(80),Kn=n(30),Wn=function(e){return e+1},qn=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var $n=function(e,t,n,r,o){var c=Object(m.useReducedMotion)()||!r,i=Object(d.useReducer)(Wn,0),a=Object(se.a)(i,2),l=a[0],s=a[1],u=Object(d.useReducer)(Wn,0),b=Object(se.a)(u,2),f=b[0],p=b[1],O=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(se.a)(O,2),v=g[0],h=g[1],j=e.current?qn(e.current):null,k=Object(d.useRef)();Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(j)if(k.current=Object(Kn.getScrollContainer)(e.current),c){if(n&&k.current){e.current.style.transform="none";var t=qn(e.current);k.current.scrollTop=k.current.scrollTop-j.top+t.top}}else{e.current.style.transform="none";var r=qn(e.current),o={x:j.left-r.left,y:j.top-r.top,scrollTop:k.current?k.current.scrollTop-j.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),h(o)}}),[o]);var y=Object(Gn.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:function(e){n&&k.current&&!c&&e.y&&(k.current.scrollTop=v.scrollTop+e.y)}});return c?{}:{transformOrigin:"center",transform:Object(Gn.interpolate)([y.x,y.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(Gn.interpolate)([y.x,y.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},Yn=Object(Gn.animated)(v.__experimentalTreeGridRow);function Xn(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,l=Object(Ce.a)(e,["isSelected","position","level","rowCount","children","className","path"]),u=Object(d.useRef)(null),b=a.join("_"),p=$n(u,t,!1,!0,b);return Object(d.createElement)(Yn,Object(s.a)({ref:u,style:p,className:f()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},l),c)}var Zn=Object(d.createElement)(v.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Polygon,{points:"14.5,8 10.6,12 14.5,16 13.5,17 8.4,12 13.5,7 "})),Qn=Object(d.createElement)(v.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Polygon,{points:"9.5,16 13.4,12 9.5,8 10.5,7 15.6,12 10.5,17 "})),Jn=(Object(d.createElement)(v.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(v.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),n(260)),er=n(261);function tr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(x.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(x.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(x.sprintf)(Object(x._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(x.sprintf)(Object(x._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(x.sprintf)(Object(x.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(x.sprintf)(Object(x.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(x.sprintf)(Object(x.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(x.sprintf)(Object(x.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(x.sprintf)(Object(x.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(x.sprintf)(Object(x.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(x.sprintf)(Object(x.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(x.sprintf)(Object(x.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(x.sprintf)(Object(x.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(x.sprintf)(Object(x.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(x.sprintf)(Object(x.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(x.sprintf)(Object(x.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(x.sprintf)(Object(x.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var nr=function(e,t,n){return"up"===e?"horizontal"===t?n?Qn:Zn:Jn.a:"down"===e?"horizontal"===t?n?Zn:Qn:er.a:null},rr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(x.__)("Move right"):Object(x.__)("Move left"):Object(x.__)("Move up"):"down"===e?"horizontal"===t?n?Object(x.__)("Move left"):Object(x.__)("Move right"):Object(x.__)("Move down"):null},or=Object(d.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.__experimentalOrientation,i=Object(Ce.a)(e,["clientIds","direction","__experimentalOrientation"]),a=Object(m.useInstanceId)(or),l=Object(p.castArray)(n).length,u=Object(g.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(p.castArray)(n),f=Object(p.first)(b),m=a(f),O=i(f,m),g=i(Object(p.last)(b),m),v=l(m),h=s(f),j=0===O,k=g===v.length-1,y=(d(m)||{}).__experimentalMoverDirection,_=void 0===y?"vertical":y;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:O,isFirst:j,isLast:k,isRTL:u().isRTL,moverOrientation:o||_}}),[n,r]),b=u.blockType,O=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.moverOrientation,S=Object(g.useDispatch)("core/block-editor"),C=S.moveBlocksDown,w=S.moveBlocksUp,B="up"===r?w:C,I="block-editor-block-mover-button__description-".concat(a);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:nr(r,E,_),label:rr(r,E,_),"aria-describedby":I},i,{onClick:O?null:function(e){B(n,h),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(d.createElement)("span",{id:I,className:"block-editor-block-mover-button__description"},tr(l,b&&b.title,y,j,k,"up"===r?-1:1,E,_)))})),cr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(or,Object(s.a)({direction:"up",ref:t},e))})),ir=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(or,Object(s.a)({direction:"down",ref:t},e))}));function ar(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(d.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var lr=Object(d.createContext)({__experimentalWithBlockNavigationSlots:!1,__experimentalWithEllipsisMenu:!1,__experimentalWithEllipsisMenuMinLevel:0}),sr=function(){return Object(d.useContext)(lr)},ur=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var dr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:f()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(v.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{icon:ur,label:Object(x.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(v.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(v.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},br=n(233),fr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(v.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};function pr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var mr=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(pr()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){return Object(St.a)(this,r),n.apply(this,arguments)}return Object(Ct.a)(r,[{key:"getDifference",value:function(e,t){return Object(br.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}},{key:"getOriginalContent",value:function(e){return{rawContent:e.originalContent,renderedContent:Object(c.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)}));return{rawContent:n.join(""),renderedContent:r}}},{key:"render",value:function(){var e=this.props,t=e.block,n=e.onKeep,r=e.onConvert,o=e.convertor,c=e.convertButtonText,i=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(i.rawContent,a.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(fr,{title:Object(x.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(x.__)("Convert to HTML"),rawContent:i.rawContent,renderedContent:i.renderedContent}),Object(d.createElement)(fr,{title:Object(x.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:c,rawContent:l,renderedContent:a.renderedContent}))}}]),r}(d.Component);function Or(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var gr=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(Or()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(e){var t;return Object(St.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(wt.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(wt.a)(t)),t}return Object(Ct.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(x.__)("Convert to Classic Block"),onClick:r},{title:Object(x.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(dr,{actions:[Object(d.createElement)(v.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(x._x)("Resolve","imperative verb")),a&&Object(d.createElement)(v.Button,{key:"edit",onClick:t,isPrimary:!0},Object(x.__)("Convert to HTML"))],secondaryActions:s},Object(x.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(v.Modal,{title:Object(x.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(mr,{block:i,onKeep:t,onConvert:n,convertor:vr,convertButtonText:Object(x.__)("Convert to Blocks")})))}}]),r}(d.Component),vr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},hr=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,vr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])(gr),jr=Object(d.createElement)(dr,{className:"block-editor-block-list__block-crash-warning"},Object(x.__)("This block has encountered an error and cannot be previewed.")),kr=function(){return jr};function yr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _r=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(yr()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Ct.a)(r,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),r}(d.Component),Er=n(86),Sr=n.n(Er);var Cr=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(se.a)(n,2),o=r[0],i=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(d.createElement)(Sr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})};function wr(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function Br(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function Ir(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var xr=n(183),Pr=[Object(d.createInterpolateElement)(Object(x.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(x.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(x.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(x.__)("Drag files into the editor to automatically insert media blocks."),Object(x.__)("Change a block's type by pressing the block icon on the toolbar.")];var Tr=function(){var e=Object(d.useState)(Math.floor(Math.random()*Pr.length)),t=Object(se.a)(e,1)[0];return Object(d.createElement)(v.Tip,null,Pr[t])},Nr=n(113),Rr=n(259);var Dr=function e(t){var n=t.onChange,r=Object(m.useInstanceId)(e);return Object(d.createElement)("div",{className:"block-editor-inserter__search"},Object(d.createElement)(v.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(r)},Object(x.__)("Search for a block")),Object(d.createElement)("input",{className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(r),type:"search",placeholder:Object(x.__)("Search for a block"),autoFocus:!0,onChange:function(e){return n(e.target.value)},autoComplete:"off"}),Object(d.createElement)(Nr.a,{className:"block-editor-inserter__search-icon",icon:Rr.a}))};var Lr=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(gn,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},Mr={insertUsage:{}},Ar={alignWide:!1,colors:[{name:Object(x.__)("Black"),slug:"black",color:"#000000"},{name:Object(x.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(x.__)("White"),slug:"white",color:"#ffffff"},{name:Object(x.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(x.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(x.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(x.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(x.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(x.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(x.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(x.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(x.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(x._x)("Small","font size name"),size:13,slug:"small"},{name:Object(x._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(x._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(x._x)("Large","font size name"),size:36,slug:"large"},{name:Object(x._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(x.__)("Thumbnail")},{slug:"medium",name:Object(x.__)("Medium")},{slug:"large",name:Object(x.__)("Large")},{slug:"full",name:Object(x.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(x.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(x.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(x.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(x.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(x.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(x.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(x.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(x.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(x.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(x.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(x.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(x.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function Fr(e,t,n){return[].concat(Object(le.a)(e.slice(0,n)),Object(le.a)(Object(p.castArray)(t)),Object(le.a)(e.slice(n)))}function Vr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(le.a)(e);return o.splice(t,r),Fr(o,e.slice(t,t+r),n)}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Ur(o,r))})),n}function Gr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),Gr(n.innerBlocks,n.clientId))}),{})}function Kr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(le.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(Ce.a)(o,["innerBlocks"]);r.push.apply(r,Object(le.a)(c)),n[i.clientId]=t(i)}return n}function Wr(e){return Kr(e,(function(e){return Object(p.omit)(e,"attributes")}))}function qr(e){return Kr(e,(function(e){return e.attributes}))}function $r(e,t){return e===t?zr({},e):t}function Yr(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Xr=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Zr=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=zr({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?zr({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(Kr(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(Kr(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=zr({},r.cache,{},Xr(o(c)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=zr({},r.cache,{},Xr(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Xr(o(n.replacedClientIds));r.cache=zr({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},Xr(Object(p.keys)(Kr(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=zr({},Object(p.omit)(r.cache,n.removedClientIds),{},Xr(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=zr({},r.cache,{},Xr(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=zr({},r.cache,{},Xr(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=zr({},r.cache,{},Xr(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(le.a)(r)),(c=r).push.apply(c,Object(le.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=zr({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=zr({},n,{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(le.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(Ce.a)(c,["innerBlocks"]);o.push.apply(o,Object(le.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,zr({},n,{type:"INSERT_BLOCKS",index:0}))).order=zr({},s.order,{},Object(p.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(le.a)(n),[o],Object(le.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return zr({},t,{byClientId:zr({},Object(p.omit)(t.byClientId,r),{},Wr(n.blocks)),attributes:zr({},Object(p.omit)(t.attributes,r),{},qr(n.blocks)),order:zr({},Object(p.omit)(t.order,r),{},Object(p.omit)(Ur(n.blocks),o)),parents:zr({},Object(p.omit)(t.parents,r),{},Gr(n.blocks)),cache:zr({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(Kr(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:zr({},c,{isPersistentChange:a})}return c=zr({},c,{isPersistentChange:i?!n:!Yr(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Wr(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return zr({},e,{},Wr(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:zr({},e,Object(u.a)({},t.clientId,zr({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?zr({},Object(p.omit)(e,t.replacedClientIds),{},Wr(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return qr(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return zr({},e,{},qr(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?zr({},e,Object(u.a)({},t.clientId,zr({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=$r(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:zr({},e,Object(u.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?zr({},Object(p.omit)(e,t.replacedClientIds),{},qr(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Ur(t.blocks);case"RECEIVE_BLOCKS":return zr({},e,{},Object(p.omit)(Ur(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=Ur(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return zr({},e,{},c,Object(u.a)({},r,Fr(o,c[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,s=t.fromRootClientId,d=void 0===s?"":s,b=t.toRootClientId,f=void 0===b?"":b,m=t.clientId,O=t.index,g=void 0===O?e[f].length:O;if(d===f){var v=e[f],h=v.indexOf(m);return zr({},e,Object(u.a)({},f,Vr(e[f],h,g)))}return zr({},e,(l={},Object(u.a)(l,d,Object(p.without)(e[d],m)),Object(u.a)(l,f,Fr(e[f],m,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return zr({},e,Object(u.a)({},y,Vr(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var C=t.clientIds,w=t.rootClientId,B=void 0===w?"":w,I=Object(p.first)(C),x=Object(p.last)(C),P=e[B];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(I);return zr({},e,Object(u.a)({},B,Vr(P,T,T+1,C.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=Ur(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return zr({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(le.a)(e),Object(le.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(le.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Gr(t.blocks);case"RECEIVE_BLOCKS":return zr({},e,{},Gr(t.blocks));case"INSERT_BLOCKS":return zr({},e,{},Gr(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return zr({},e,Object(u.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return zr({},Object(p.omit)(e,t.replacedClientIds),{},Gr(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?zr({},e,Object(u.a)({},r,o)):e}});function Qr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var Jr=Object(g.combineReducers)({blocks:Zr,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Qr(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Qr(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition?t.initialPosition:"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type?e:"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return zr({},e,Object(u.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:zr({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return zr({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return zr({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),zr({},e,{insertUsage:zr({},e.insertUsage,Object(u.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(u.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},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"STOP_TYPING":return e}},highlightedBlock:function(e,t){var n=t.clientId,r=t.isHighlighted;if("TOGGLE_BLOCK_HIGHLIGHT"===t.type){if(r)return n;if(e===n)return null}return e}}),eo=n(99),to=n.n(eo),no=n(232),ro=n.n(no),oo=n(34),co=n(23),io=n.n(co);function ao(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"SELECT",storeName:e,selectorName:t,args:r}}var lo={SELECT:Object(g.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,c=t.args;return(n=e.select(r))[o].apply(n,Object(le.a)(c))}})),SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))}};function so(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uo(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var po=io.a.mark(Co),mo=io.a.mark(No),Oo=io.a.mark(Ro),go=io.a.mark(Ho),vo=io.a.mark(Wo),ho=io.a.mark($o),jo=io.a.mark(ec),ko=io.a.mark(vc),yo=io.a.mark(hc),_o=io.a.mark(jc),Eo=io.a.mark(kc),So=io.a.mark(_c);function Co(){return io.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ao("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=6;break}return e.next=6,dc();case 6:case"end":return e.stop()}}),po)}function wo(e){return{type:"RESET_BLOCKS",blocks:e}}function Bo(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function Io(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function xo(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function Po(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function To(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function No(e){var t;return io.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ao("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,To(t,-1);case 6:case"end":return n.stop()}}),mo)}function Ro(e){var t;return io.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ao("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,To(t);case 6:case"end":return n.stop()}}),Oo)}function Do(){return{type:"START_MULTI_SELECT"}}function Lo(){return{type:"STOP_MULTI_SELECT"}}function Mo(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function Ao(){return{type:"CLEAR_SELECTED_BLOCK"}}function Fo(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Vo(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return fo({},e,{attributes:fo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function Ho(e,t,n,r){var o,c,i;return io.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=Vo,a.t1=Object(p.castArray)(t),a.next=5,ao("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,ao("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c<t.length)){a.next=21;break}return i=t[c],a.next=15,ao("core/block-editor","canInsertBlockType",i.name,o);case 15:if(a.sent){a.next=18;break}return a.abrupt("return");case 18:c++,a.next=11;break;case 21:return a.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r};case 23:return a.delegateYield(Co(),"t3",24);case 24:case"end":return a.stop()}}),go)}function zo(e,t){return Ho(e,t)}function Uo(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var Go=Uo("MOVE_BLOCKS_DOWN"),Ko=Uo("MOVE_BLOCKS_UP");function Wo(e){var t,n,r,o,c,i,a=arguments;return io.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,ao("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(c={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,c;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,ao("core/block-editor","getBlockName",e);case 17:return i=l.sent,l.next=20,ao("core/block-editor","canInsertBlockType",i,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,c;case 24:case"end":return l.stop()}}),vo)}function qo(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return $o([e],t,n,r)}function $o(e,t,n){var r,o,c,i,a,l=arguments;return io.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=Vo,s.t1=Object(p.castArray)(e),s.next=5,ao("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=so(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,ao("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),ho,null,[[9,21,24,27]])}function Yo(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function Xo(){return{type:"HIDE_INSERTION_POINT"}}function Zo(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Qo(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Jo(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function ec(e){var t,n,r=arguments;return io.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=!(r.length>1&&void 0!==r[1])||r[1],e&&e.length){o.next=3;break}return o.abrupt("return");case 3:return e=Object(p.castArray)(e),o.next=6,ao("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=o.sent,o.next=9,ao("core/block-editor","getTemplateLock",n);case 9:if(!o.sent){o.next=12;break}return o.abrupt("return");case 12:if(!t){o.next=15;break}return o.next=15,No(e[0]);case 15:return o.next=17,{type:"REMOVE_BLOCKS",clientIds:e};case 17:return o.delegateYield(Co(),"t0",18);case 18:case"end":return o.stop()}}),jo)}function tc(e,t){return ec([e],t)}function nc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function rc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function oc(){return{type:"START_TYPING"}}function cc(){return{type:"STOP_TYPING"}}function ic(){return{type:"START_DRAGGING_BLOCKS"}}function ac(){return{type:"STOP_DRAGGING_BLOCKS"}}function lc(){return{type:"ENTER_FORMATTED_TEXT"}}function sc(){return{type:"EXIT_FORMATTED_TEXT"}}function uc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function dc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return qo(Object(c.createBlock)(r,e),n,t)}function bc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function fc(e){return{type:"UPDATE_SETTINGS",settings:e}}function pc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function mc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Oc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function gc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function vc(){var e,t=arguments;return io.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Ge.speak)(Object(x.__)("You are currently in navigation mode. Navigate blocks using the Tab key. To exit navigation mode and edit the selected block, press Enter.")):Object(Ge.speak)(Object(x.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),ko)}function hc(e){var t,n,r,o,i;return io.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e||e.length){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,ao("core/block-editor","getBlocksByClientId",e);case 4:return t=a.sent,a.next=7,ao("core/block-editor","getBlockRootClientId",e[0]);case 7:if(n=a.sent,!Object(p.some)(t,(function(e){return!e}))){a.next=10;break}return a.abrupt("return");case 10:if(r=t.map((function(e){return e.name})),!Object(p.some)(r,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){a.next=13;break}return a.abrupt("return");case 13:return a.next=15,ao("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),n);case 15:return o=a.sent,i=t.map((function(e){return Object(c.cloneBlock)(e)})),a.next=19,$o(i,o+1,n);case 19:if(!(i.length>1)){a.next=22;break}return a.next=22,Mo(Object(p.first)(i).clientId,Object(p.last)(i).clientId);case 22:case"end":return a.stop()}}),yo)}function jc(e){var t,n;return io.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,ao("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,ao("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,ao("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,dc({},t,n);case 15:case"end":return r.stop()}}),_o)}function kc(e){var t,n;return io.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,ao("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,ao("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,ao("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,dc({},t,n+1);case 15:case"end":return r.stop()}}),Eo)}function yc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function _c(e){return io.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,yc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,yc(e,!1);case 6:case"end":return t.stop()}}),So)}function Ec(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var Sc=n(44);function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bc=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(d.createElement)(v.G,null,Object(d.createElement)(v.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),Ic=[];function xc(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function Pc(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function Tc(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Nc=Object(Sc.a)((function(e,t){var n=e.blocks.byClientId[t];return n?wc({},n,{attributes:Tc(e,t),innerBlocks:Yi(e,t)?Ic:Dc(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),Rc=Object(Sc.a)((function(e,t){var n=e.blocks.byClientId[t];return n?wc({},n,{attributes:Tc(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),Dc=Object(Sc.a)((function(e,t){return Object(p.map)(pi(e,t),(function(t){return Nc(e,t)}))}),(function(e,t){return Object(p.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),Lc=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=pi(t,n);return[].concat(Object(le.a)(r),Object(le.a)(e(t,r)))}))},Mc=Object(Sc.a)((function(e){var t=pi(e);return[].concat(Object(le.a)(t),Object(le.a)(Lc(e,t)))}),(function(e){return[e.blocks.order]})),Ac=Object(Sc.a)((function(e,t){var n=Mc(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),Fc=Object(Sc.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return Nc(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function Vc(e,t){return pi(e,t).length}function Hc(e){return e.selectionStart}function zc(e){return e.selectionEnd}function Uc(e){return e.selectionStart.clientId}function Gc(e){return e.selectionEnd.clientId}function Kc(e){var t=ci(e).length;return t||(e.selectionStart.clientId?1:0)}function Wc(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function qc(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function $c(e){var t=qc(e);return t?Nc(e,t):null}function Yc(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Xc=Object(Sc.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Zc=Object(Sc.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Xc(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:xc(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Qc(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Jc(e,t){for(var n,r=qc(e),o=[].concat(Object(le.a)(Xc(e,t)),[t]),c=[].concat(Object(le.a)(Xc(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function ei(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=qc(e)),void 0===t&&(t=n<0?ai(e):li(e)),!t)return null;var r=Yc(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0?null:a===c.length?null:c[a]}function ti(e,t){return ei(e,t,-1)}function ni(e,t){return ei(e,t,1)}function ri(e){return e.initialPosition}var oi=Object(Sc.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return Ic;if(t.clientId===n.clientId)return[t.clientId];var r=Yc(e,t.clientId);if(null===r)return Ic;var o=pi(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function ci(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?Ic:oi(e)}var ii=Object(Sc.a)((function(e){var t=ci(e);return t.length?t.map((function(t){return Nc(e,t)})):Ic}),(function(e){return[].concat(Object(le.a)(oi.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function ai(e){return Object(p.first)(ci(e))||null}function li(e){return Object(p.last)(ci(e))||null}function si(e,t){return ai(e)===t}function ui(e,t){return-1!==ci(e).indexOf(t)}var di=Object(Sc.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=ui(e,n=Yc(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function bi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function fi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function pi(e,t){return e.blocks.order[t||""]||Ic}function mi(e,t,n){return pi(e,n).indexOf(t)}function Oi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function gi(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(pi(e,t),(function(t){return Oi(e,t)||ui(e,t)||n&&gi(e,t,n)}))}function vi(e,t){if(!t)return!1;var n=ci(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function hi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function ji(e){return e.isMultiSelecting}function ki(e){return e.isSelectionEnabled}function yi(e,t){return e.blocksMode[t]||"visual"}function _i(e){return e.isTyping}function Ei(e){return e.isDraggingBlocks}function Si(e){return e.isCaretWithinFormattedText}function Ci(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=Yc(e,c)||void 0,n=mi(e,o.clientId,t)+1):n=pi(e).length,{rootClientId:t,index:n}}function wi(e){return null!==e.insertionPoint}function Bi(e){return e.template.isValid}function Ii(e){return e.settings.template}function xi(e,t){if(!t)return e.settings.templateLock;var n=Ai(e,t);return n?n.templateLock:null}var Pi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Fi(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!xi(e,n);if(s)return!1;var u=Ai(e,n),d=Object(p.get)(u,["allowedBlocks"]),b=r(d,t),f=o.parent,m=xc(e,n),O=r(f,m);return null!==b&&null!==O?b||O:null!==b?b:null===O||O},Ti=Object(Sc.a)(Pi,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Ni(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Ri=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&Pi(e,t.name,n)},Di=Object(Sc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(Fc(e,Mc(e)),{name:t.name}));var i=Ni(e,r)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:r,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=zi(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=Ni(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:Bc,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return Ri(e,n,t)})).map(r),a=Pi(e,"core/block",t)?Ki(e).map(o):[];return Object(p.orderBy)([].concat(Object(le.a)(i),Object(le.a)(a)),["frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ki(e),Object(c.getBlockTypes)()]})),Li=Object(Sc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return Ri(e,n,t)}));if(n)return!0;var r=Pi(e,"core/block",t)&&Ki(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ki(e),Object(c.getBlockTypes)()]})),Mi=Object(Sc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return Ri(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function Ai(e,t){return e.blockListSettings[t]}function Fi(e){return e.settings}function Vi(e){return e.blocks.isPersistentChange}var Hi=Object(Sc.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),zi=Object(Sc.a)((function(e,t){var n=Object(p.find)(Ki(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[Ki(e)]}));function Ui(e){return e.blocks.isIgnoredChange}function Gi(e){return e.lastBlockAttributesChange}function Ki(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],Ic)}function Wi(e){return e.isNavigationMode}function qi(e){return!!e.automaticChangeStatus}function $i(e,t){return e.highlightedBlock===t}function Yi(e,t){return!!e.blocks.controlledInnerBlocks[t]}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qi={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(se.a)(e.blocks,2),a=o[0],l=o[1],s=Nc(r,a),u=Object(c.getBlockType)(s.name);if(u.merge){var d=Nc(r,l),b=Object(c.getBlockType)(d.name),f=Hc(r),m=f.clientId,O=f.attributeKey,g=f.offset,v=(m===a?u:b).attributes[O],h=(m===a||m===l)&&void 0!==O&&void 0!==g&&!!v;v||("number"==typeof O?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(oo.a)(O))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(c.cloneBlock)(s),k=Object(c.cloneBlock)(d);if(h){var y=m===a?j:k,_=y.attributes[O],E=v.multiline,S=v.__unstableMultilineWrapperTags,C=v.__unstablePreserveWhiteSpace,w=Object(i.insert)(Object(i.create)({html:_,multilineTag:E,multilineWrapperTags:S,preserveWhiteSpace:C}),"†",g,g);y.attributes[O]=Object(i.toHTMLString)({value:w,multilineTag:E,preserveWhiteSpace:C})}var B=s.name===d.name?[k]:Object(c.switchToBlockType)(k,s.name);if(B&&B.length){var I=u.merge(j.attributes,B[0].attributes);if(h){var x=Object(p.findKey)(I,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),P=I[x],T=u.attributes[x],N=T.multiline,R=T.__unstableMultilineWrapperTags,D=T.__unstablePreserveWhiteSpace,L=Object(i.create)({html:P,multilineTag:N,multilineWrapperTags:R,preserveWhiteSpace:D}),M=L.text.indexOf("†"),A=Object(i.remove)(L,M,M+1),F=Object(i.toHTMLString)({value:A,multilineTag:N,preserveWhiteSpace:D});I[x]=F,n(uc(s.clientId,x,M,M))}n(Ho([s.clientId,d.clientId],[Zi({},s,{attributes:Zi({},s.attributes,{},I)})].concat(Object(le.a)(B.slice(1)))))}}else n(To(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=Ii(n),o=xi(n),i=!r||"all"!==o||Object(c.doBlocksMatchTemplate)(e.blocks,r);if(i!==Bi(n))return Zo(i)}],MULTI_SELECT:function(e,t){var n=Kc((0,t.getState)());Object(Ge.speak)(Object(x.sprintf)(Object(x._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Dc(n),o=Ii(n);return wo(Object(c.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var Ji=function(e){var t,n=[to()(Qi),ro.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(le.a)(t))(e.dispatch),e.dispatch=r,e};function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ta={reducer:Jr,selectors:o,actions:r,controls:lo},na=Object(g.registerStore)("core/block-editor",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ta,{persist:["preferences"]}));Ji(na);function ra(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?p.noop:i,l=e.onInput,s=void 0===l?p.noop:l,u=Object(g.useRegistry)(),b=u.dispatch("core/block-editor"),f=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,v=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=u.select("core/block-editor").getBlocks,k=Object(d.useRef)({incoming:null,outgoing:[]});Object(d.useEffect)((function(){var e,t=u.select("core/block-editor"),r=t.getSelectionStart,o=t.getSelectionEnd,c=t.isLastBlockChangePersistent,i=t.__unstableIsLastBlockChangeIgnored,l=c(),d=!1,b=u.subscribe((function(){var t=c(),u=j(n),b=u!==e;if(e=u,b&&(k.current.incoming||i()))return k.current.incoming=null,void(l=t);(b||d&&!b&&t&&!l)&&(l=t,k.current.outgoing.push(e),(l?a:s)(e,{selectionStart:r(),selectionEnd:o()}));d=b}));return function(){return b()}}),[u,a,s,n]),Object(d.useEffect)((function(){k.current.outgoing.includes(r)?Object(p.last)(k.current.outgoing)===r&&(k.current.outgoing=[]):j(n)!==r&&(k.current.outgoing=[],k.current.incoming=r,r&&(h(),n?(v(n,!0),h(),O(n,r,!1)):f(r)),o&&c&&m(o,c))}),[r,n])}var oa=Object(m.createHigherOrderComponent)((function(e){return Object(g.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(Ce.a)(t,["useSubRegistry","registry"]);if(!r)return Object(d.createElement)(e,Object(s.a)({registry:o},c));var i=Object(d.useState)(null),a=Object(se.a)(i,2),l=a[0],u=a[1];return Object(d.useEffect)((function(){var e=Object(g.createRegistry)({},o),t=e.registerStore("core/block-editor",ta);Ji(t),u(e)}),[o]),l?Object(d.createElement)(g.RegistryProvider,{value:l},Object(d.createElement)(e,Object(s.a)({registry:l},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(g.useDispatch)("core/block-editor").updateSettings;return Object(d.useEffect)((function(){r(n)}),[n]),ra(e),t})),ca=n(57);var ia=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,i=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(c.getDefaultBlockName)(),d=i(t.lastBlockClientId),b=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:b}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(ca.decodeEntities)(c)||Object(x.__)("Start writing or type / to choose a block");return Object(d.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(d.createElement)(Sr.a,{role:"button","aria-label":Object(x.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(d.createElement)(rl,{rootClientId:i,position:"top right",isAppender:!0}))})),aa=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M16 11.2h-3.2V8h-1.6v3.2H8v1.6h3.2V16h1.6v-3.2H16z"}));var la=Object(d.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(d.createElement)(rl,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,l=e.isOpen,s=e.blockTitle,u=e.hasSingleBlockType;n=u?Object(x.sprintf)(Object(x._x)("Add %s","directly add the only allowed block"),s):Object(x._x)("Add block","Generic label for block inserter button");var b=!u;return Object(d.createElement)(v.Tooltip,{text:n},Object(d.createElement)(v.Button,{ref:t,onFocus:c,tabIndex:i,className:f()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":b?"true":void 0,"aria-expanded":b?l:void 0,disabled:a,label:n},Object(d.createElement)(v.VisuallyHidden,{as:"span"},n),Object(d.createElement)(Nr.a,{icon:aa})))},isAppender:!0})}));function sa(e){e.stopPropagation()}var ua=Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,i=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:i(Object(c.getDefaultBlockName)(),n)}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,l=e.tagName,s=void 0===l?"div":l;return c||!1===i?null:(t=i?Object(d.createElement)(i,null):o?Object(d.createElement)(ia,{rootClientId:r,lastBlockClientId:Object(p.last)(n)}):Object(d.createElement)(la,{rootClientId:r,className:"block-list-appender__toggle"}),Object(d.createElement)(s,{tabIndex:-1,onFocus:sa,className:f()("block-list-appender",a)},t))}));function da(e){var t=e.element,n=e.rootClientId,r=Object(d.useState)(null),o=Object(se.a)(r,2),i=o[0],a=o[1];var l=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getClientIdsOfDescendants,c=t.getSettings,a=t.getTemplateLock;return{getBlockIndex:r,blockIndex:r(i,n),getClientIdsOfDescendants:o,hasUploadPermissions:!!c().mediaUpload,isLockedAll:"all"===a(n)}}),[n,i]),s=l.getBlockIndex,u=l.blockIndex,b=l.getClientIdsOfDescendants,f=l.hasUploadPermissions,p=l.isLockedAll,m=Object(g.useDispatch)("core/block-editor"),O=m.insertBlocks,h=m.updateBlockAttributes,j=m.moveBlockToPosition,k=Object(d.useCallback)((function(e){if(f){var t=Object(c.findTransform)(Object(c.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(t){var r=t.transform(e,h);O(r,u,n)}}}),[f,h,O,u,n]),y=Object(d.useCallback)((function(e){var t=Object(c.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&O(t,u,n)}),[O,u,n]),_=Object(d.useCallback)((function(e){var t=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),r=t.srcRootClientId,o=t.srcClientId,c=t.srcIndex,a=t.type;if("block"===a&&o!==i&&!function(e,t){return b([e]).some((function(e){return e===t}))}(o,i||n)){var l,d,f=i?s(i,n):void 0,p=f&&c<f&&((l=r)===(d=n)||1==!l&&1==!d)?u-1:u;j(o,r,n,p)}}),[b,s,i,u,j,n]),E=Object(v.__unstableUseDropZone)({element:t,onFilesDrop:k,onHTMLDrop:y,onDrop:_,isDisabled:p,withPosition:!0}).position;if(Object(d.useEffect)((function(){if(E){var e=E.y-t.current.getBoundingClientRect().top,n=Array.from(t.current.children).find((function(t){return t.offsetTop+t.offsetHeight/2>e}));if(!n)return;var r=n.id.slice("block-".length);if(!r)return;a(r)}}),[E]),E)return i}var ba,fa=Object(d.forwardRef)((function(e,t){var n=e.className,r=e.rootClientId,o=e.isDraggable,c=e.renderAppender,i=e.__experimentalTagName,a=void 0===i?"div":i,l=e.__experimentalAppenderTagName,u=e.__experimentalPassedProps,b=void 0===u?{}:u,p=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,o=t.isMultiSelecting,c=t.getSelectedBlockClientId,i=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getGlobalBlockCount,s=t.isTyping;return{blockClientIds:n(r),isMultiSelecting:o(),selectedBlockClientId:c(),multiSelectedBlockClientIds:i(),hasMultiSelection:a(),enableAnimation:!s()&&l()<=200}}),[r]),m=p.blockClientIds,O=p.isMultiSelecting,v=p.selectedBlockClientId,h=p.multiSelectedBlockClientIds,j=p.hasMultiSelection,k=p.enableAnimation,y=r?a:gs,_=da({element:t,rootClientId:r});return Object(d.createElement)(y,Object(s.a)({},b,{ref:t,className:f()("block-editor-block-list__layout",n,b.className)}),m.map((function(e,t){var n=j?h.includes(e):v===e;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!n},Object(d.createElement)(ws,{rootClientId:r,clientId:e,isDraggable:o,isMultiSelecting:O,index:t,enableAnimation:k,className:e===_?"is-drop-target":void 0}))})),Object(d.createElement)(ua,{tagName:l,rootClientId:r,renderAppender:c,className:null===_?"is-drop-target":void 0}))})),pa=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(fa,Object(s.a)({ref:t||n},e)))}));function ma(e){var t=e.onClick;return Object(d.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(d.createElement)(v.Disabled,null,Object(d.createElement)(pa,null)))}var Oa=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(m.useResizeObserver)(),o=Object(se.a)(r,2),c=o[0],i=o[1].width,a=Object(m.useResizeObserver)(),l=Object(se.a)(a,2),s=l[0],u=l[1].height;ba=ba||Object(m.pure)(pa);var b=(i-2*n)/t;return Object(d.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:u*b+2*n}},c,Object(d.createElement)(v.Disabled,{style:{transform:"scale(".concat(b,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},s,Object(d.createElement)(ba,null)))};var ga=Object(d.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?700:o,i=e.__experimentalLive,a=void 0!==i&&i,l=e.__experimentalOnClick,s=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),u=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]);return t&&0!==t.length?Object(d.createElement)(oa,{value:u,settings:s},a?Object(d.createElement)(ma,{onClick:l}):Object(d.createElement)(Oa,{viewportWidth:c,__experimentalPadding:r})):null}));function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ja=function(e){var t=e.item,n=Object(c.getBlockType)(t.name);return Object(d.createElement)("div",{className:"block-editor-inserter__menu-preview-panel"},Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(c.isReusableBlock)(t)||n.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(ga,{__experimentalPadding:16,viewportWidth:500,blocks:n.example?Object(c.getBlockFromExample)(t.name,{attributes:ha({},n.example.attributes,{},t.initialAttributes),innerBlocks:n.example.innerBlocks}):Object(c.createBlock)(t.name,t.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(x.__)("No Preview Available."))),!Object(c.isReusableBlock)(t)&&Object(d.createElement)(Lr,{blockType:t}))},ka=n(28),ya=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(P.Path,{d:"M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z"}));var _a=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,c=e.className,i=Object(Ce.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(d.createElement)("li",{className:"block-editor-block-types-list__list-item"},Object(d.createElement)(v.Button,Object(s.a)({className:f()("block-editor-block-types-list__item",c),onClick:function(e){e.preventDefault(),n()},disabled:r},i),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(gn,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};function Ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ea(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ca=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,i=void 0===o?function(){}:o,a=e.children,l=n.reduce((function(e,t){var n=t.variations,r=void 0===n?[]:n;return r.some((function(e){return e.isDefault}))||e.push(t),r.length&&(e=e.concat(r.map((function(e){return Sa({},t,{id:"".concat(t.id,"-").concat(e.name),icon:e.icon||t.icon,title:e.title||t.title,description:e.description||t.description,example:e.hasOwnProperty("example")?e.example:t.example,initialAttributes:Sa({},t.initialAttributes,{},e.attributes),innerBlocks:e.innerBlocks})})))),e}),[]);return Object(d.createElement)("ul",{role:"list",className:"block-editor-block-types-list"},l.map((function(e){return Object(d.createElement)(_a,{key:e.id,className:Object(c.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),i(null)},onFocus:function(){return i(e)},onMouseEnter:function(){return i(e)},onMouseLeave:function(){return i(null)},onBlur:function(){return i(null)},isDisabled:e.isDisabled,title:e.title})})),a)};var wa=Object(m.compose)(Object(m.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(Ce.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(d.createElement)("div",{className:"block-editor-inserter__child-blocks"},(t||n)&&Object(d.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(d.createElement)(gn,{icon:t,showColors:!0}),n&&Object(d.createElement)("h2",null,n)),Object(d.createElement)(Ca,Object(s.a)({items:r},o)))})),Ba=Object(v.createSlotFill)("__experimentalInserterMenuExtension"),Ia=Ba.Fill,xa=Ba.Slot;Ia.Slot=xa;var Pa=Ia;function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Ra=function(e,t){return Object(p.differenceWith)(e,Na(t),(function(e,t){return t.includes(e)}))},Da=function(e,t,n,r){var o=Na(r);return 0===o.length?e:La(e,r,{getCategory:function(e){var n;return null===(n=Object(p.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Na(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{variations:t})}))},La=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Na(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,d=n.getKeywords,b=void 0===d?c:d,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,O=void 0===m?a:m,g=n.getVariations,v=void 0===g?l:g;return e.filter((function(e){var t=u(e),n=b(e),o=p(e),c=O(e),i=v(e),a=[t].concat(Object(le.a)(n),[o,c],Object(le.a)(i)).join(" ");return 0===Ra(r,a).length}))};var Ma=function(e){var t=e.title,n=e.icon,r=e.children;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(d.createElement)("span",{className:"block-editor-inserter__panel-title"},t),Object(d.createElement)(v.Icon,{icon:n})),Object(d.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var Aa=function(){return Object(d.createElement)("div",{className:"block-editor-inserter__no-results"},Object(d.createElement)(Nr.a,{className:"block-editor-inserter__no-results-icon",icon:On.a}),Object(d.createElement)("p",null,Object(x.__)("No results found.")))};function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Va=Object(m.compose)(v.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.__experimentalSelectBlockOnInsert,i=e.filterValue,a=e.debouncedSpeak,l=Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getInserterItems,o=n.getBlockName,c=n.getSettings,i=e("core/blocks"),a=i.getCategories,l=i.getCollections,s=i.getChildBlockNames,u=o(t),d=c().__experimentalFetchReusableBlocks;return{categories:a(),collections:l(),rootChildBlocks:s(u),items:r(t),fetchReusableBlocks:d}}),[t]),s=l.categories,b=l.collections,f=l.items,m=l.rootChildBlocks,O=l.fetchReusableBlocks;Object(d.useEffect)((function(){O&&O()}),[]);var v=function(e){var t=e.name,r=e.title,i=e.initialAttributes,a=e.innerBlocks,l=Object(c.createBlock)(t,i,function e(t){return Object(p.map)(t,(function(t){var n=Object(se.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(a));if(n(l),!o){var s=Object(x.sprintf)(Object(x.__)("%s block added"),r);Object(Ge.speak)(s)}},h=Object(d.useMemo)((function(){return Da(f,s,b,i)}),[i,f,s,b]),j=Object(d.useMemo)((function(){return h.filter((function(e){var t=e.name;return Object(p.includes)(m,t)}))}),[h,m]),k=Object(d.useMemo)((function(){return f.slice(0,6)}),[f]),y=Object(d.useMemo)((function(){return h.filter((function(e){return"reusable"===e.category}))}),[h]),_=Object(d.useMemo)((function(){return h.filter((function(e){return!e.category}))}),[h]),E=Object(d.useMemo)((function(){var e=function(e){return Object(p.findIndex)(s,(function(t){return t.slug===e.category}))};return Object(p.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(t){return Object(p.sortBy)(t,e)}),(function(e){return Object(p.groupBy)(e,"category")}))(h)}),[h,s]),S=Object(d.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fa(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return Object.keys(b).forEach((function(t){e[t]=h.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[h,b]);Object(d.useEffect)((function(){var e=Object(x.sprintf)(Object(x._n)("%d result found.","%d results found.",h.length),h.length);a(e)}),[i,a]);var C=!Object(p.isEmpty)(h),w=j.length>0;return Object(d.createElement)("div",null,Object(d.createElement)(wa,{rootClientId:t,items:j,onSelect:v,onHover:r}),!w&&!!k.length&&!i&&Object(d.createElement)(Ma,{title:Object(x._x)("Most used","blocks")},Object(d.createElement)(Ca,{items:k,onSelect:v,onHover:r})),!w&&Object(p.map)(s,(function(e){var t=E[e.slug];return t&&t.length?Object(d.createElement)(Ma,{key:e.slug,title:e.title,icon:e.icon},Object(d.createElement)(Ca,{items:t,onSelect:v,onHover:r})):null})),!w&&!!_.length&&Object(d.createElement)(Ma,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(x.__)("Uncategorized")},Object(d.createElement)(Ca,{items:_,onSelect:v,onHover:r})),!w&&Object(p.map)(b,(function(e,t){var n=S[t];return n&&n.length?Object(d.createElement)(Ma,{key:t,title:e.title,icon:e.icon},Object(d.createElement)(Ca,{items:n,onSelect:v,onHover:r})):null})),!w&&!!y.length&&Object(d.createElement)(Ma,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(x.__)("Reusable"),icon:ya},Object(d.createElement)(Ca,{items:y,onSelect:v,onHover:r}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(ka.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(x.__)("Manage all reusable blocks"))),Object(d.createElement)(Pa.Slot,{fillProps:{onSelect:v,onHover:r,filterValue:i,hasItems:C}},(function(e){return e.length?e:C?null:Object(d.createElement)(Aa,null)})))})),Ha=n(132);function za(e,t){return"reset"===t.type?t.list:"append"===t.type?[].concat(Object(le.a)(e),[t.item]):e}var Ua=function(e){var t=Object(d.useReducer)(za,[]),n=Object(se.a)(t,2),r=n[0],o=n[1];return Object(d.useEffect)((function(){var t=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);o({type:"reset",list:t});var n=Object(Ha.createQueue)();return n.add({},function t(r){return function(){e.length<=r||(o({type:"append",item:e[r]}),n.add({},t(r+1)))}}(t.length)),function(){return n.reset()}}),[e]),r},Ga=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return{patterns:t.__experimentalBlockPatterns,patternCategories:t.__experimentalBlockPatternCategories}}),[]),n=t.patternCategories,r=t.patterns,o=Object(g.useDispatch)("core/notices").createSuccessNotice;return[r,n,Object(d.useCallback)((function(t,n){e(Object(p.map)(n,(function(e){return Object(c.cloneBlock)(e)}))),o(Object(x.sprintf)(Object(x.__)('Pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function Ka(e){var t=e.pattern,n=e.onClick,r=t.content,o=t.viewportWidth,i=Object(d.useMemo)((function(){return Object(c.parse)(r)}),[r]);return Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item",role:"button",onClick:function(){return n(t,i)},onKeyDown:function(e){rt.ENTER!==e.keyCode&&rt.SPACE!==e.keyCode||n(t,i)},tabIndex:0,"aria-label":t.title},Object(d.createElement)(ga,{blocks:i,viewportWidth:o}),Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item-title"},t.title))}function Wa(){return Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item is-placeholder"})}function qa(e){var t=e.patterns,n=e.shownPatterns,r=e.onClickPattern;return t.map((function(e){return n.includes(e)?Object(d.createElement)(Ka,{key:e.name,pattern:e,onClick:r}):Object(d.createElement)(Wa,{key:e.name})}))}function $a(e){var t=e.filterValue,n=e.onInsert,r=Ga(n),o=Object(se.a)(r,3),c=o[0],i=o[2],a=Ua(c),l=Object(d.useMemo)((function(){return La(c,t)}),[t,c]);if(t)return l.length?Object(d.createElement)(Ma,{title:Object(x.__)("Search Results")},Object(d.createElement)(qa,{shownPatterns:a,patterns:l,onClickPattern:i})):Object(d.createElement)(Aa,null)}function Ya(e){var t=e.onInsert,n=Ga(t),r=Object(se.a)(n,3),o=r[0],c=r[1],i=r[2],a=Object(d.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(p.fromPairs)(c.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(le.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[c]),l=Object(d.useMemo)((function(){return o.sort((function(e,t){return a(e)-a(t)}))}),[o,a]),s=Ua(l),u=Object(d.useMemo)((function(){return o.filter((function(e){return a(e)===1/0}))}),[o,a]);return Object(d.createElement)(d.Fragment,null,c.map((function(e){var t=o.filter((function(t){return t.categories&&t.categories.includes(e.name)}));return!!t.length&&Object(d.createElement)(Ma,{key:e.name,title:e.label},Object(d.createElement)(qa,{shownPatterns:s,patterns:t,onClickPattern:i}))})),!!u.length&&Object(d.createElement)(Ma,{title:Object(x._x)("Uncategorized")},Object(d.createElement)(qa,{shownPatterns:s,patterns:u,onClickPattern:i})))}var Xa=function(e){var t=e.onInsert,n=e.filterValue;return n?Object(d.createElement)($a,{onInsert:t,filterValue:n}):Object(d.createElement)(Ya,{onInsert:t})};function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qa=function(e){return e.stopPropagation()};var Ja=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalSelectBlockOnInsert,i=e.onSelect,a=e.showInserterHelpPanel,l=Object(d.useState)(""),s=Object(se.a)(l,2),b=s[0],f=s[1],m=Object(d.useState)(null),O=Object(se.a)(m,2),h=O[0],j=O[1],k=Object(g.useSelect)((function(e){var o,c=e("core/block-editor"),i=c.getSettings,a=c.getBlockRootClientId,l=c.getBlockSelectionEnd,s=t;if(!s&&!n&&!r){var d=l();d&&(s=a(d)||void 0)}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasPatterns:!!(null===(o=i().__experimentalBlockPatterns)||void 0===o?void 0:o.length),destinationRootClientId:s},Object(p.pick)(e("core/block-editor"),["getSelectedBlock","getBlockIndex","getBlockSelectionEnd","getBlockOrder"]))}),[r,n,t]),y=k.destinationRootClientId,_=k.hasPatterns,E=k.getSelectedBlock,S=k.getBlockIndex,C=k.getBlockSelectionEnd,w=k.getBlockOrder,B=Object(g.useDispatch)("core/block-editor"),I=B.replaceBlocks,P=B.insertBlocks,T=B.showInsertionPoint,N=B.hideInsertionPoint,R=!y&&_;function D(){if(n)return S(n,y);var e=C();return!r&&e?S(e,y)+1:w(y).length}var L=function(e){var t=E();!r&&t&&Object(c.isUnmodifiedDefaultBlock)(t)?I(t.clientId,e):P(e,D(),y,o),i()},M=Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__block-list"},Object(d.createElement)("div",{className:"block-editor-inserter__scrollable"},Object(d.createElement)(Va,{rootClientId:y,onInsert:L,onHover:function(e){if(j(e),e){var t=D();T(y,t)}else N()},__experimentalSelectBlockOnInsert:o,filterValue:b}))),a&&Object(d.createElement)("div",{className:"block-editor-inserter__tips"},Object(d.createElement)(Tr,null))),A=Object(d.createElement)("div",{className:"block-editor-inserter__scrollable"},Object(d.createElement)(Xa,{onInsert:L,filterValue:b}));return Object(d.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:Qa,onKeyDown:function(e){Object(p.includes)([rt.LEFT,rt.DOWN,rt.RIGHT,rt.UP,rt.BACKSPACE,rt.ENTER],e.keyCode)&&e.stopPropagation()}},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)(Dr,{onChange:f}),R&&Object(d.createElement)(v.TabPanel,{className:"block-editor-inserter__tabs",tabs:[{name:"blocks",title:Object(x.__)("Blocks")},{name:"patterns",title:Object(x.__)("Patterns")}]},(function(e){return"blocks"===e.name?M:A})),!R&&M),a&&h&&Object(d.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(d.createElement)(ja,{item:h})))};function el(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var tl=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps;return t=i?Object(x.sprintf)(Object(x._x)("Add %s","directly add the only allowed block"),c):Object(x._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(v.Button,Object(s.a)({icon:xr.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},a))},nl=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(el()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).onToggle=e.onToggle.bind(Object(wt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(wt.a)(e)),e.renderContent=e.renderContent.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?tl:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(Ja,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(v.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(x.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),r}(d.Component),rl=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=o.getBlockSelectionEnd,s=e("core/blocks").getBlockVariations,u=a(r=r||c(n||l())||void 0),d=1===Object(p.size)(u)&&0===Object(p.size)(s(u[0].name,"inserter")),b=!1;return d&&(b=u[0]),{hasItems:i(r),hasSingleBlockType:d,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(x.sprintf)(Object(x.__)("%s block added"),l.title);Object(Ge.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(nl),ol=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=Kn.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=Kn.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),cl=window,il=cl.getSelection,al=cl.getComputedStyle,ll=Object(p.overEvery)([Kn.isTextField,Kn.focus.tabbable.isTabbableIndex]);function sl(e,t,n,r){var o,c=Kn.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!Kn.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(Kn.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ul(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.isSelectionEnabled,f=t.getBlockSelectionStart,p=t.isMultiSelecting,m=n(),O=r(),g=o();return{selectedBlockClientId:m,selectionStartClientId:O,selectionBeforeEndClientId:c(g||m),selectionAfterEndClientId:i(g||m),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),isSelectionEnabled:b(),blockSelectionStart:f(),isMultiSelecting:p()}}function dl(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(ul,[]),u=s.selectedBlockClientId,b=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,v=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,C=Object(g.useDispatch)("core/block-editor"),w=C.multiSelect,B=C.selectBlock,I=C.clearSelectedBlock,P=C.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var T=f()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:T},Object(d.createElement)(ol,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===rt.UP,f=t===rt.DOWN,g=t===rt.LEFT,_=t===rt.RIGHT,E=t===rt.TAB,S=t===rt.ESCAPE,C=d||g,x=g||_,T=d||f,N=x||T,R=e.shiftKey,D=R||e.ctrlKey||e.altKey||e.metaKey,L=T?Kn.isVerticalEdge:Kn.isHorizontalEdge;if(y){var M=E&&R||d,A=E&&!R||f,F=M?m:O;if(A||M)if(F)e.preventDefault(),B(F);else if(E&&u){var V,H=qe(u);(V=A?Kn.focus.tabbable.findNext(H):Kn.focus.tabbable.findPrevious(H))&&(e.preventDefault(),V.focus(),I())}}else{if(u)if(E){var z=qe(u);if(R){if(s===z)return a.current=!0,void r.current.focus()}else{var U=Kn.focus.tabbable.find(z);if(s===(Object(p.last)(U)||z))return a.current=!0,void o.current.focus()}}else S&&P(!0);else if(j&&E&&s===c.current)return a.current=!0,void(R?r.current.focus():o.current.focus());if(T?l.current||(l.current=Object(Kn.computeCaretRect)()):l.current=null,!N)return rt.isKeyboardEvent.primary(e)&&(i.current=Object(Kn.isEntirelySelected)(s)),void(rt.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?i.current:Object(Kn.isEntirelySelected)(s))&&(w(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===rt.UP||t===rt.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,D)){var G="rtl"===al(s).direction?!C:C;if(R)(C&&m||!C&&O)&&(j||function(e,t){var r,o,c=sl(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,C)&&L(s,C))&&(!function(e){var t=e?m:O;t&&w(b||u,t)}(C),e.preventDefault());else if(j)!function(e){var t=e?v:h;t&&B(t)}(C),e.preventDefault();else if(T&&Object(Kn.isVerticalEdge)(s,C)){var K=sl(s,C,n.current,!0);K&&(Object(Kn.placeCaretAtVerticalEdge)(K,C,l.current),e.preventDefault())}else if(x&&il().isCollapsed&&Object(Kn.isHorizontalEdge)(s,G)){var W=sl(s,G,n.current);Object(Kn.placeCaretAtHorizontalEdge)(W,G),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&$e(qe(u),e.target)&&P(!1),_&&0===e.button){var t=Ye(e.target);t&&(e.shiftKey?E!==t&&(w(E,t),e.preventDefault()):j&&B(t))}}},Object(d.createElement)("div",{ref:c,tabIndex:j?"0":void 0,"aria-label":j?Object(x.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(ol,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=Kn.focus.focusable.find(n.current),t=Object(p.findLast)(e,ll);t&&Object(Kn.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function bl(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,c=n.isBlockInsertionPointVisible,i=(0,n.getBlockRootClientId)(t),a=r(t,i),l=o();return c()&&l.index===a&&l.rootClientId===i}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function fl(e){var t=e.isMultiSelecting,n=e.hasMultiSelection,r=e.selectedBlockClientId,o=e.children,c=e.containerRef,i=Object(d.useState)(!1),a=Object(se.a)(i,2),l=a[0],s=a[1],u=Object(d.useState)(!1),b=Object(se.a)(u,2),p=b[0],m=b[1],O=Object(d.useState)(null),h=Object(se.a)(O,2),j=h[0],k=h[1],y=Object(d.useState)(null),_=Object(se.a)(y,2),E=_[0],S=_[1],C=Object(d.useRef)(),w=Object(g.useSelect)((function(e){return{multiSelectedBlockClientIds:(0,e("core/block-editor").getMultiSelectedBlockClientIds)()}})).multiSelectedBlockClientIds;var B=n?w.includes(E):E===r;return Object(d.createElement)(d.Fragment,null,!t&&(l||p)&&Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,anchorRef:j,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:j.offsetWidth}},Object(d.createElement)(bl,{clientId:E}),Object(d.createElement)("div",{ref:C,onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===C.current){var o=r.getBoundingClientRect(),i=n<o.top+o.height/2,a=qe(E),l=sl(a,!0,i?c.current:a)||a,s=new window.DOMRect(t,n,0,16);Object(Kn.placeCaretAtVerticalEdge)(l,i,s,!1)}},tabIndex:-1,className:f()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":B})},Object(d.createElement)(rl,{position:"bottom center",clientId:E})))),Object(d.createElement)("div",{onMouseMove:p||t?void 0:function(e){if(e.target.classList.contains("block-editor-block-list__layout")){var t=e.target.getBoundingClientRect(),n=e.clientY-t.top,r=Array.from(e.target.children).find((function(e){return e.offsetTop>n}));if(r){var o=r.id.slice("block-".length);if(o){var c=r.getBoundingClientRect();e.clientX>c.right||e.clientX<c.left?l&&s(!1):(s(!0),k(r),S(o))}}}else l&&s(!1)}},o))}var pl=function(e){var t=e.clientId,n=e.rootClientId,r=e.moverDirection,o=Object(Ce.a)(e,["clientId","rootClientId","moverDirection"]),i=Object(g.useSelect)((function(e){var r=e("core/block-editor"),o=r.__unstableGetBlockWithoutInnerBlocks,c=(0,r.getBlockIndex)(t,n),i=o(t);return{index:c,name:i.name,attributes:i.attributes}}),[t,n]),a=i.index,l=i.name,u=i.attributes,b=Object(g.useDispatch)("core/block-editor"),f=b.setNavigationMode,p=b.removeBlock,m=Object(d.useRef)();Object(d.useEffect)((function(){m.current.focus()}));var O=Object(c.getBlockType)(l),h=Object(c.__experimentalGetAccessibleBlockLabel)(O,u,a+1,r);return Object(d.createElement)("div",Object(s.a)({className:"block-editor-block-list__breadcrumb"},o),Object(d.createElement)(v.Button,{ref:m,onClick:function(){return f(!1)},onKeyDown:function(e){var n=e.keyCode;n!==rt.BACKSPACE&&n!==rt.DELETE||(p(t),e.preventDefault())},label:h},Object(d.createElement)(Cn,{clientId:t})))};function ml(e){var t,n,r,o=Object(d.useState)(!1),c=Object(se.a)(o,2),i=c[0],a=c[1],l=Object(d.useCallback)((function(){var t=Kn.focus.tabbable.find(e.current);a(!t.some((function(e){return!("experimentalToolbarItem"in e.dataset)})))}),[]);return Object(d.useLayoutEffect)(l,[]),t=function(){var t=new window.MutationObserver(l);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}},n=[i],r=Object(d.useRef)(!1),Object(d.useLayoutEffect)((function(){if(r.current)return t();r.current=!0}),n),i}function Ol(e,t,n){var r=Object(d.useState)(t),o=Object(se.a)(r,1)[0],c=Object(d.useCallback)((function(){var t,n,r;t=e.current,n=Kn.focus.tabbable.find(t),(r=Object(se.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){o&&c()}),[n,o,c])}var gl=function(e){var t=e.children,n=e.focusOnMount,r=Object(Ce.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),c=ml(o);return Ol(o,n,c),c?Object(d.createElement)(v.Toolbar,Object(s.a)({__experimentalAccessibilityLabel:r["aria-label"],ref:o},r),t):Object(d.createElement)(v.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},vl=function(e){var t=e.children,n=e.clientIds,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getBlockRootClientId,c=t.getTemplateLock,i=1===n.length?o(n[0]):null,a=i?c(i):null;return{index:r(n[0],i),srcRootClientId:i,isDraggable:1===n.length&&"all"!==a}}),[n]),o=r.srcRootClientId,c=r.index,i=r.isDraggable,a=Object(d.useRef)(!1),l=Object(g.useDispatch)("core/block-editor"),s=l.startDraggingBlocks,u=l.stopDraggingBlocks;if(Object(d.useEffect)((function(){return function(){a.current&&u()}}),[]),!i)return t({isDraggable:!1});var b="block-".concat(n[0]),f={type:"block",srcIndex:c,srcClientId:n[0],srcRootClientId:o};return Object(d.createElement)(v.Draggable,{elementId:b,transferData:f,onDragStart:function(){s(),a.current=!0},onDragEnd:function(){u(),a.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({isDraggable:!0,onDraggableStart:n,onDraggableEnd:r})}))};function hl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var jl=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(hl()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(wt.a)(e)),e.onBlur=e.onBlur.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isFirst,r=t.isLast,o=t.clientIds,c=t.isLocked,i=t.isHidden,a=t.rootClientId,l=t.hideDragHandle,u=t.__experimentalOrientation,b=this.state.isFocused;return c||n&&r&&!a?null:Object(d.createElement)(vl,{clientIds:o},(function(t){var n=t.isDraggable,r=t.onDraggableStart,c=t.onDraggableEnd;return Object(d.createElement)("div",{className:f()("block-editor-block-mover",{"is-visible":b||!i,"is-horizontal":"horizontal"===u}),draggable:n&&!l,onDragStart:r,onDragEnd:c},Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.__experimentalToolbarItem,{onFocus:e.onFocus,onBlur:e.onBlur},(function(e){return Object(d.createElement)(cr,Object(s.a)({clientIds:o},e))})),Object(d.createElement)(v.__experimentalToolbarItem,{onFocus:e.onFocus,onBlur:e.onBlur},(function(e){return Object(d.createElement)(ir,Object(s.a)({clientIds:o},e))}))))}))}}]),r}(d.Component),kl=Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockOrder,s=r.getBlockRootClientId,u=Object(p.castArray)(n),d=Object(p.first)(u),b=o(d),f=s(Object(p.first)(u)),m=i(d,f),O=0===m,g=i(Object(p.last)(u),f)===l(f).length-1;return{blockType:b?Object(c.getBlockType)(b.name):null,isLocked:"all"===a(f),rootClientId:f,firstIndex:m,isFirst:O,isLast:g}}))(jl),yl=n(184);function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sl(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Cl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cl(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wl(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,l=Object(d.useMemo)((function(){return El({},t,{attributes:El({},t.attributes,{className:a})})}),[t,a]);return Object(d.createElement)("div",{key:n.name,className:f()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){rt.ENTER!==e.keyCode&&rt.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:"button",tabIndex:"0","aria-label":n.label||n.name},Object(d.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(d.createElement)(ga,{viewportWidth:500,blocks:l})),Object(d.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var Bl=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?p.noop:n,o=e.onHoverClassName,i=void 0===o?p.noop:o,a=Object(g.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core/blocks").getBlockStyles,o=n(t);return{block:o,type:Object(c.getBlockType)(o.name),styles:r(o.name),className:o.attributes.className||""}}),[t]),l=a.styles,s=a.block,u=a.type,b=a.className,f=Object(g.useDispatch)("core/block-editor").updateBlockAttributes,m=function(e,t){return Object(d.useMemo)((function(){return t.example?Object(c.getBlockFromExample)(e.name,{attributes:t.example.attributes,innerBlocks:t.example.innerBlocks}):Object(c.cloneBlock)(e)}),[t.example?e.name:e,t])}(s,u);if(!l||0===l.length)return null;u.styles||Object(p.find)(l,"isDefault")||l.unshift({name:"default",label:Object(x._x)("Default","block style"),isDefault:!0});var O=function(e,t){var n,r=Sl(new ut.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(p.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(p.find)(e,"isDefault")}(l,b);return Object(d.createElement)("div",{className:"block-editor-block-styles"},l.map((function(e){var n=function(e,t,n){var r=new ut.a(e);return t&&r.remove("is-style-"+t.name),n.isDefault||r.add("is-style-"+n.name),r.value}(b,O,e);return Object(d.createElement)(wl,{genericPreviewBlock:m,className:b,isActive:O===e,key:e.name,onSelect:function(){f(t,{className:n}),i(null),r()},onBlur:function(){return i(null)},onHover:function(){return i(n)},style:e,styleClassName:n})})))};function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Tl={position:"bottom right",isAlternate:!0},Nl=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(Pl()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,i=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var l,s=n[0],u=Object(c.getBlockType)(s.name),b=Object(p.mapKeys)(o,(function(e){return e.name})),f=Object(p.orderBy)(Object(p.filter)(Object(c.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,O=Object(c.getBlockType)(m);l=O.icon}else l=yl.a;return i||f.length?Object(d.createElement)(v.Dropdown,{popoverProps:Tl,className:"block-editor-block-switcher",contentClassName:"block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(x.__)("Change block type or style"):Object(x.sprintf)(Object(x._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{className:"block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,onKeyDown:function(e){r||e.keyCode!==rt.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0,icon:Object(d.createElement)(gn,{icon:l,showColors:!0})}))},renderContent:function(t){var o=t.onClose;return Object(d.createElement)(d.Fragment,null,(i||0!==f.length)&&Object(d.createElement)("div",{className:"block-editor-block-switcher__container"},i&&Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(x.__)("Styles")),Object(d.createElement)(Bl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==f.length&&Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(x.__)("Transform to")),Object(d.createElement)(Ca,{items:f.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(d.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(d.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(x.__)("Preview")),Object(d.createElement)(ga,{viewportWidth:500,blocks:u.example?Object(c.getBlockFromExample)(s.name,{attributes:xl({},u.example.attributes,{className:a}),innerBlocks:u.example.innerBlocks}):Object(c.cloneBlock)(s,{className:a})})))}}):Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",label:Object(x.__)("Block icon"),icon:Object(d.createElement)(gn,{icon:l,showColors:!0})}))}}]),r}(d.Component),Rl=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,c=r.getBlockRootClientId,i=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=c(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:i(l),hasBlockStyles:d&&d.length>0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Nl);var Dl=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,i=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=i(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,i=t.blocks,a=e("core/block-editor"),l=a.removeBlocks,s=a.replaceBlocks,u=a.duplicateBlocks,d=a.insertAfterBlock,b=a.insertBeforeBlock;return{onDuplicate:function(){return u(o)},onRemove:function(){l(o)},onInsertBefore:function(){b(Object(p.first)(Object(p.castArray)(o)))},onInsertAfter:function(){d(Object(p.last)(Object(p.castArray)(o)))},onGroup:function(){if(i.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(c.switchToBlockType)(i,e);t&&s(o,t)}},onUngroup:function(){if(i.length){var e=i[0].innerBlocks;e.length&&s(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup,blocks:e.blocks})}));var Ll=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(x.__)("Edit as HTML"):Object(x.__)("Edit visually");return Object(d.createElement)(v.MenuItem,{onClick:r},!i&&s)}));function Ml(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(x.__)("Convert to Blocks");return Object(d.createElement)(v.MenuItem,{onClick:n},!r&&o)}var Al=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))(Ml),Fl=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.serialize)(n)}))}}})))(Ml),Vl=Object(v.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Hl=Vl.Fill,zl=Vl.Slot;Hl.Slot=zl;var Ul=Hl;function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wl=Object(v.createSlotFill)("BlockSettingsMenuControls"),ql=Wl.Fill,$l=Wl.Slot;ql.Slot=function(e){var t=e.fillProps,n=e.clientIds,r=void 0===n?null:n,o=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,o=t.getSelectedBlockClientIds,c=null!==r?r:o();return{selectedBlocks:Object(p.map)(n(c),(function(e){return e.name}))}}),[]).selectedBlocks;return Object(d.createElement)($l,{fillProps:Kl({},t,{selectedBlocks:o})},(function(e){return!Object(p.isEmpty)(e)&&Object(d.createElement)(v.MenuGroup,null,e)}))};var Yl=ql,Xl={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var Zl=function(e){var t=e.clientIds,n=Object(Ce.a)(e,["clientIds"]),r=Object(p.castArray)(t),o=r.length,i=r[0],a=Object(g.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),l=Object(d.useState)(),u=Object(se.a)(l,2),b=u[0],f=u[1];return Object(d.createElement)(Dl,{clientIds:t},(function(e){var r=e.canDuplicate,l=e.canInsertDefaultBlock,u=e.isLocked,m=e.onDuplicate,O=e.onInsertAfter,g=e.onInsertBefore,h=e.onRemove,j=e.blocks;return Object(d.createElement)(v.DropdownMenu,Object(s.a)({icon:ur,label:Object(x.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:Xl,noIcons:!0},n),(function(e){var n=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(Ul.Slot,{fillProps:{onClose:n}}),1===o&&Object(d.createElement)(Fl,{clientId:i}),1===o&&Object(d.createElement)(Al,{clientId:i}),Object(d.createElement)(v.ClipboardButton,{text:function(){return Object(c.serialize)(j)},role:"menuitem",className:"components-menu-item__button",onCopy:function(){f(!0)},onFinishCopy:function(){return f(!1)}},b?Object(x.__)("Copied!"):Object(x.__)("Copy")),r&&Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,m),shortcut:a.duplicate},Object(x.__)("Duplicate")),l&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,g),shortcut:a.insertBefore},Object(x.__)("Insert Before")),Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,O),shortcut:a.insertAfter},Object(x.__)("Insert After"))),1===o&&Object(d.createElement)(Ll,{clientId:i,onToggle:n})),Object(d.createElement)(Yl.Slot,{fillProps:{onClose:n},clientIds:t}),Object(d.createElement)(v.MenuGroup,null,!u&&Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,h),shortcut:a.remove},Object(x._n)("Remove Block","Remove Blocks",o))))}))}))};var Ql,Jl=function(e){var t=e.clientIds,n=Object(Ce.a)(e,["clientIds"]);return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.__experimentalToolbarItem,null,(function(e){return Object(d.createElement)(Zl,Object(s.a)({clientIds:t,toggleProps:e},n))})))},es=window,ts=es.clearTimeout,ns=es.requestAnimationFrame,rs=es.cancelAnimationFrame,os=es.setTimeout;function cs(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?250:r,c=e.onChange,i=void 0===c?p.noop:c,a=Object(d.useState)(!1),l=Object(se.a)(a,2),s=l[0],u=l[1],b=Object(d.useRef)(),f=function(e){u(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},O=function(){var e=b.current;e&&ts&&ts(e)};return Object(d.useEffect)((function(){return function(){return O()}}),[]),{showMovers:s,debouncedShowMovers:function(e){e&&e.stopPropagation(),O(),s||f(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),O(),b.current=os((function(){m()&&f(!1)}),o)}}}function is(e){var t=e.hideDragHandle,n=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,c=t.getBlockRootClientId,i=t.getBlockListSettings,a=t.getSettings,l=r(),s=l[0],u=c(s),d=(i(u)||{}).__experimentalMoverDirection;return{blockClientIds:l,blockClientId:s,hasFixedToolbar:a().hasFixedToolbar,rootClientId:u,isValid:1===l.length?o(l[0]):null,mode:1===l.length?n(l[0]):null,moverDirection:d}}),[]),r=n.blockClientIds,o=n.blockClientId,c=n.hasFixedToolbar,i=n.isValid,a=n.mode,l=n.moverDirection,u=function(e){var t=Object(g.useDispatch)("core/block-editor").toggleBlockHighlight,n=Object(d.useCallback)((function(n){t(e,n)}),[e]);return Object(d.useEffect)((function(){return Ql&&rs(Ql),function(){Ql=ns((function(){n(!1)}))}}),[]),n}(o),b=Object(d.useRef)(),O=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?250:n,o=e.onChange,c=void 0===o?p.noop:o,i=Object(d.useState)(!1),a=Object(se.a)(i,2),l=a[0],s=a[1],u=cs({ref:t,debounceTimeout:r,isFocused:l,onChange:c}),b=u.showMovers,f=u.debouncedShowMovers,m=u.debouncedHideMovers,O=Object(d.useRef)(!1),g=function(){return(null==t?void 0:t.current)&&t.current.contains(document.activeElement)};return Object(d.useEffect)((function(){var e=t.current,n=function(){g()&&(s(!0),f())},r=function(){g()||(s(!1),m())};return e&&!O.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),O.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,O,s,f,m]),{showMovers:b,gestures:{onMouseMove:f,onMouseLeave:m}}}({ref:b,onChange:u}),v=O.showMovers,h=O.gestures,j=Object(m.useViewportMatch)("medium","<")||c,k=j||v;if(0===r.length)return null;var y=i&&"visual"===a,_=r.length>1,E={opacity:k?1:0,transform:k?"translateX(0px)":"translateX(100%)"},S=f()("block-editor-block-toolbar",!j&&"has-responsive-movers");return Object(d.createElement)("div",{className:S},Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-switcher-container",ref:b},Object(d.createElement)("div",Object(s.a)({className:"block-editor-block-toolbar__mover-trigger-container"},h),Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-trigger-wrapper",style:E},Object(d.createElement)(kl,{clientIds:r,__experimentalOrientation:l,hideDragHandle:t}))),(y||_)&&Object(d.createElement)("div",Object(s.a)({},h,{className:"block-editor-block-toolbar__block-switcher-wrapper"}),Object(d.createElement)(Rl,{clientIds:r}))),y&&!_&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(I.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(zn.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(Jl,{clientIds:r}))}var as=function(e){var t=e.focusOnMount,n=Object(Ce.a)(e,["focusOnMount"]);return Object(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(gl,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(x.__)("Block tools")},n),Object(d.createElement)(is,null)))};function ls(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function ss(e){var t=e.clientId,n=e.rootClientId,r=e.align,o=e.isValid,c=e.moverDirection,i=e.isEmptyDefaultBlock,a=e.capturingClientId,s=Object(g.useSelect)(ls,[]),u=s.isNavigationMode,b=s.isMultiSelecting,p=s.isTyping,O=s.isCaretWithinFormattedText,h=s.hasMultiSelection,j=s.hasFixedToolbar,k=s.lastClientId,y=Object(m.useViewportMatch)("medium"),_=Object(d.useState)(!1),E=Object(se.a)(_,2),S=E[0],C=E[1],w=Object(d.useState)(!1),B=Object(se.a)(w,2),I=B[0],x=B[1],P=Object(d.useContext)(fs),T=!u&&i&&o,N=u,R=!u&&!j&&y&&!T&&!b&&(!p||O),D=!(u||R||j||i);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return C(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!D}),!(N||R||S||T))return null;var L=P[t];if(a&&(L=document.getElementById("block-"+a)),!L)return null;var M=L;if(h){var A=P[k];if(!A)return null;M={top:L,bottom:A}}var F=T?"top left right":"top right left";return Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:M,className:"block-editor-block-list__block-popover",__unstableSticky:!T,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableAllowVerticalSubpixelPosition:"horizontal"!==c&&L,__unstableAllowHorizontalSubpixelPosition:"horizontal"===c&&L,onBlur:function(){return C(!1)},shouldAnchorIncludePadding:!0,key:R},(R||S)&&Object(d.createElement)("div",{onFocus:function(){x(!0)},onBlur:function(){x(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":I})},Object(d.createElement)(rl,{clientId:t,rootClientId:n})),(R||S)&&Object(d.createElement)(as,{focusOnMount:S,"data-align":r}),N&&Object(d.createElement)(pl,{clientId:t,rootClientId:n,moverDirection:c,"data-align":r}),T&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(rl,{position:"top right",rootClientId:n,clientId:t})))}function us(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.getBlockListSettings,s=t.__experimentalGetBlockListSettingsForBlocks,u=n()||r();if(u){var d,b=o(u),f=i(u)||{},m=f.name,O=f.attributes,g=void 0===O?{}:O,v=f.isValid,h=a(u),j=(l(b)||{}).__experimentalMoverDirection,k=s(h),y=Object(p.findIndex)(k,["__experimentalCaptureToolbars",!0]);return-1!==y&&(d=h[y]),{clientId:u,rootClientId:o(u),name:m,align:g.align,isValid:v,moverDirection:j,isEmptyDefaultBlock:m&&Object(c.isUnmodifiedDefaultBlock)({name:m,attributes:g}),capturingClientId:d}}}function ds(){var e=Object(g.useSelect)(us,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.align,c=e.isValid,i=e.moverDirection,a=e.isEmptyDefaultBlock,l=e.capturingClientId;return r?Object(d.createElement)(ss,{clientId:t,rootClientId:n,align:o,isValid:c,moverDirection:i,isEmptyDefaultBlock:a,capturingClientId:l}):null}var bs=Object(d.createContext)(),fs=Object(d.createContext)(),ps=Object(d.createContext)();function ms(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectedBlockClientId:n(),hasMultiSelection:r(),isMultiSelecting:o()}}function Os(e){Ye(e.target)&&e.preventDefault()}var gs=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(g.useSelect)(ms,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=o.isMultiSelecting,l=Object(g.useDispatch)("core/block-editor").selectBlock,s=function(e){var t=Object(g.useSelect)(Br,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(g.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(d.useRef)(),m=Object(d.useRef)(),O=Object(d.useRef)();Object(d.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=wr(i,"start"),l=wr(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var d=window.getSelection();if(d.rangeCount&&!d.isCollapsed){var b=qe(a),f=d.getRangeAt(0),p=f.startContainer,m=f.endContainer;!b||b.contains(p)&&b.contains(m)||d.removeAllRanges()}}}),[c,r,o,f,a]);var v=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(Ir(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(le.a)(i(m.current)),[m.current]),l=[].concat(Object(le.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else Ir(e.current,!0)}),[f,i,b]),h=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){v({isSelectionEnd:!0}),u()}))}),[v,u]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[v,h]),Object(d.useCallback)((function(t){n&&(m.current=t,O.current=document.activeElement,s(),document.addEventListener("selectionchange",v),window.addEventListener("mouseup",h),Ir(e.current,!1))}),[n,s,h])}(t),u=Object(d.useState)({}),b=Object(se.a)(u,2),p=b[0],m=b[1];return Object(d.createElement)(fl,{isMultiSelecting:a,hasMultiSelection:i,selectedBlockClientId:c,containerRef:t},Object(d.createElement)(fs.Provider,{value:p},Object(d.createElement)(ds,null),Object(d.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&l(t)}},onDragStart:Os},Object(d.createElement)(ps.Provider,{value:m},Object(d.createElement)(bs.Provider,{value:s},n)))))})),vs=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ks=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=e.__unstableIsHtml,i=Object(Ce.a)(e,["children","tagName","__unstableIsHtml"]),a=Object(d.useContext)(bs),l=Object(d.useContext)(ps),b=Object(d.useContext)(Es),m=b.clientId,O=b.rootClientId,v=b.isSelected,h=b.isFirstMultiSelected,j=b.isLastMultiSelected,k=b.isMultiSelecting,y=b.isNavigationMode,_=b.isPartOfMultiSelection,E=b.enableAnimation,S=b.index,C=b.className,w=b.isLocked,B=b.name,I=b.mode,P=b.blockTitle,T=b.wrapperProps,N=Object(g.useSelect)((function(e){return v?{initialPosition:e("core/block-editor").getSelectedBlocksInitialCaretPosition()}:{}}),[v]).initialPosition,R=Object(g.useDispatch)("core/block-editor"),D=R.removeBlock,L=R.insertDefaultBlock,M=Object(d.useRef)(),A=T&&!!T["data-align"];t=t||M,Object(d.useEffect)((function(){if(v||h||j){var e=t.current;return l((function(t){return js({},t,Object(u.a)({},m,e))})),function(){l((function(e){return Object(p.omit)(e,m)}))}}}),[v,h,j]);var F=Object(x.sprintf)(Object(x.__)("Block: %s"),P);Object(d.useEffect)((function(){k||y||!v||function(){if(!document.activeElement||!$e(t.current,document.activeElement)){var e=Kn.focus.tabbable.find(t.current).filter(Kn.isTextField).filter((function(e){return $e(t.current,e)&&!e.closest(".block-list-appender")})),n=-1===N,r=(n?p.last:p.first)(e)||t.current;Object(Kn.placeCaretAtHorizontalEdge)(r,n)}}()}),[v,k,y]);var V=$n(t,v||_,v||h,E,S),H="html"!==I||c?"":"-visual",z="block-".concat(m).concat(H),U=Gn.animated[o],G=Object(d.createElement)(U,Object(s.a)({"aria-label":F,role:"group"},Object(p.omit)(T,["data-align"]),i,{id:z,ref:t,className:f()(C,i.className,T&&T.className,!A&&"wp-block"),"data-block":m,"data-type":B,"data-title":P,onKeyDown:v&&!w?function(e){var n=e.keyCode,r=e.target;i.onKeyDown&&i.onKeyDown(e),n!==rt.ENTER&&n!==rt.BACKSPACE&&n!==rt.DELETE||r!==t.current||Object(Kn.isTextField)(r)||(e.preventDefault(),n===rt.ENTER?L({},O,S+1):D(m))}:void 0,onMouseLeave:v?function(e){var t=e.which;1===(e.buttons||t)&&a(m)}:void 0,tabIndex:"0",style:js({},T?T.style:{},{},i.style||{},{},V)}),n);if(A){var K={"data-align":T["data-align"]};return Object(d.createElement)("div",Object(s.a)({className:"wp-block"},K),G)}return G})),ys=vs.reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)(ks,Object(s.a)({},e,{ref:n,tagName:t}))})),e}),ks);function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Es=Object(d.createContext)();var Ss=Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),i=c.isBlockSelected,a=c.isAncestorMultiSelected,l=c.isBlockMultiSelected,s=c.isFirstMultiSelectedBlock,u=c.getLastMultiSelectedBlockClientId,d=c.isTyping,b=c.getBlockMode,f=c.isSelectionEnabled,p=c.getSettings,m=c.hasSelectedInnerBlock,O=c.getTemplateLock,g=c.__unstableGetBlockWithoutInnerBlocks,v=c.isNavigationMode,h=g(n),j=i(n),k=p(),y=k.focusMode,_=k.isRTL,E=O(r),S=m(n,!0),C=h||{},w=C.name,B=C.attributes,I=C.isValid;return{isMultiSelected:l(n),isPartOfMultiSelection:l(n)||a(n),isFirstMultiSelected:s(n),isLastMultiSelected:u()===n,isTypingWithinBlock:(j||S)&&d(),mode:b(n),isSelectionEnabled:f(),isLocked:!!E,isFocusMode:y&&o,isNavigationMode:v(),isRTL:_,block:h,name:w,attributes:B,isValid:I,isSelected:j,isAncestorOfSelectedBlock:S}})),Cs=Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),i=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;i(n,e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var a=i(n);a&&l(n,a)}else{var s=c(n);s&&l(s,n)}},onReplace:function(e,n,r){e.length&&!Object(c.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n,r)},toggleSelection:function(e){u(e)}}})),ws=Object(m.compose)(m.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),Ss,Cs,Object(m.ifCondition)((function(e){return!!e.block})),Object(v.withFilters)("editor.BlockListBlock"))((function(e){var t=e.mode,n=e.isFocusMode,r=e.isLocked,o=e.clientId,i=e.rootClientId,a=e.isSelected,l=e.isMultiSelected,s=e.isPartOfMultiSelection,b=e.isFirstMultiSelected,p=e.isLastMultiSelected,m=e.isTypingWithinBlock,O=e.isAncestorOfSelectedBlock,v=e.isSelectionEnabled,h=e.className,j=e.name,k=e.isValid,y=e.attributes,_=e.wrapperProps,E=e.setAttributes,S=e.onReplace,C=e.onInsertBlocksAfter,w=e.onMerge,B=e.toggleSelection,I=e.index,x=e.enableAnimation,P=e.isNavigationMode,T=e.isMultiSelecting,N=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.isDraggingBlocks,r=t.isBlockHighlighted;return{isDragging:n(),isHighlighted:r(o)}}),[]),R=N.isDragging,D=N.isHighlighted,L=Object(g.useDispatch)("core/block-editor").removeBlock,M=Object(d.useState)(!1),A=Object(se.a)(M,2),F=A[0],V=A[1],H=Object(c.getBlockType)(j),z=Object(c.hasBlockSupport)(H,"lightBlockWrapper",!1),U=j===Object(c.getUnregisteredTypeHandlerName)();H.getEditWrapperProps&&(_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_,{},H.getEditWrapperProps(y)));var G=z&&Object(c.hasBlockSupport)(H,"className",!0)?Object(c.getBlockDefaultClassName)(j):null,K=z?y.className:null,W=f()(G,K,"block-editor-block-list__block",{"has-warning":!k||!!F||U,"is-selected":a,"is-highlighted":D,"is-multi-selected":l,"is-reusable":Object(c.isReusableBlock)(H),"is-dragging":R&&(a||s),"is-typing":m,"is-focused":n&&(a||O),"is-focus-mode":n,"has-child-selected":O},h),q=Object(d.createElement)(Mn,{name:j,isSelected:a,attributes:y,setAttributes:E,insertBlocksAfter:r?void 0:C,onReplace:r?void 0:S,onRemove:r?void 0:function(){return L(o)},mergeBlocks:r?void 0:w,clientId:o,isSelectionEnabled:v,toggleSelection:B});"visual"!==t&&(q=Object(d.createElement)("div",{style:{display:"none"}},q));var $={clientId:o,rootClientId:i,isSelected:a,isFirstMultiSelected:b,isLastMultiSelected:p,isMultiSelecting:T,isNavigationMode:P,isPartOfMultiSelection:s,enableAnimation:x,index:I,className:W,isLocked:r,name:j,mode:t,blockTitle:H.title,wrapperProps:_},Y=Object(d.useMemo)((function(){return $}),Object.values($));return Object(d.createElement)(Es.Provider,{value:Y},Object(d.createElement)(_r,{onError:function(){return V(!0)}},k&&z&&Object(d.createElement)(d.Fragment,null,q,"html"===t&&Object(d.createElement)(ys.div,{__unstableIsHtml:!0},Object(d.createElement)(Cr,{clientId:o}))),k&&!z&&Object(d.createElement)(ys.div,_,q,"html"===t&&Object(d.createElement)(Cr,{clientId:o})),!k&&Object(d.createElement)(ys.div,null,Object(d.createElement)(hr,{clientId:o}),Object(d.createElement)("div",null,Object(c.getSaveElement)(H,y)))),!!F&&Object(d.createElement)(ys.div,null,Object(d.createElement)(kr,null)))})),Bs=function(e,t,n){return Object(x.sprintf)(Object(x.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Is=Object(d.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingCount,u=t.level,b=t.tabIndex,p=t.onFocus,O=o.name,g=o.attributes,h=Object(c.getBlockType)(O),j=Object(c.__experimentalGetBlockLabel)(h,g),k=Object(m.useInstanceId)(e),y="block-navigation-block-select-button__".concat(k),_=Bs(l,s,u);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{className:f()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":y,ref:n,tabIndex:b,onFocus:p},Object(d.createElement)(gn,{icon:h.icon,showColors:!0}),j,i&&Object(d.createElement)(v.VisuallyHidden,null,Object(x.__)("(selected block)"))),Object(d.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:y},_))}));function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ps=function(e){return"BlockNavigationBlock-".concat(e)};var Ts=Object(d.forwardRef)((function e(t,n){var r=Object(m.useInstanceId)(e),o=t.block.clientId;return Object(d.createElement)(v.Slot,{name:Ps(o)},(function(e){if(!e.length)return Object(d.createElement)(Is,Object(s.a)({ref:n},t));var o=t.className,i=t.block,a=t.isSelected,l=t.position,b=t.siblingCount,p=t.level,m=t.tabIndex,O=t.onFocus,g=i.name,h=Object(c.getBlockType)(g),j="block-navigation-block-slot__".concat(r),k=Bs(l,b,p),y={tabIndex:m,onFocus:O,ref:n,"aria-describedby":j};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:f()("block-editor-block-navigation-block-slot",o)},Object(d.createElement)(gn,{icon:h.icon,showColors:!0}),d.Children.map(e,(function(e){return Object(d.cloneElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props,{},y))})),a&&Object(d.createElement)(v.VisuallyHidden,null,Object(x.__)("(selected block)")),Object(d.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))}))})),Ns=function(e){var t=Object(d.useContext)(Es).clientId;return Object(d.createElement)(v.Fill,Object(s.a)({},e,{name:Ps(t)}))},Rs=Object(d.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,i=e.siblingCount,a=e.level,l=Object(Ce.a)(e,["onClick","block","isSelected","position","siblingCount","level"]);return sr().__experimentalWithBlockNavigationSlots?Object(d.createElement)(Ts,Object(s.a)({ref:t,className:"block-editor-block-navigation-block-contents",block:r,onClick:n,isSelected:o,position:c,siblingCount:i,level:a},l)):Object(d.createElement)(Is,Object(s.a)({ref:t,className:"block-editor-block-navigation-block-contents",block:r,onClick:n,isSelected:o,position:c,siblingCount:i,level:a},l))}));function Ds(e){var t=e.block,n=e.onClick,r=e.isSelected,o=e.position,c=e.level,i=e.rowCount,a=e.showBlockMovers,l=e.terminatedLevels,u=e.path,b=Object(d.useState)(!1),p=Object(se.a)(b,2),m=p[0],O=p[1],g=Object(d.useState)(!1),h=Object(se.a)(g,2),j=h[0],k=h[1],y=t.clientId,_=i-1,E=a&&_>1,S=m||r||j,C=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":S}),w=sr(),B=w.__experimentalWithEllipsisMenu,I=w.__experimentalWithEllipsisMenuMinLevel,x=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":S});return Object(d.createElement)(Xn,{className:f()({"is-selected":r}),onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},level:c,position:o,rowCount:i,path:u},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:E?void 0:3},(function(e){return Object(d.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(d.createElement)(ar,{level:c,isLastRow:o===i,terminatedLevels:l}),Object(d.createElement)(Rs,Object(s.a)({block:t,onClick:n,isSelected:r,position:o,siblingCount:_,level:c},e)))})),E&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.__experimentalTreeGridCell,{className:C},(function(e){return Object(d.createElement)(cr,Object(s.a)({__experimentalOrientation:"vertical",clientIds:[y]},e))})),Object(d.createElement)(v.__experimentalTreeGridCell,{className:C},(function(e){return Object(d.createElement)(ir,Object(s.a)({__experimentalOrientation:"vertical",clientIds:[y]},e))}))),B&&c>=I&&Object(d.createElement)(v.__experimentalTreeGridCell,{className:x},(function(e){return Object(d.createElement)(Zl,Object(s.a)({clientIds:[y],icon:Un.a},e))})))}function Ls(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)(Ls),l="block-navigation-appender-row__description_".concat(a),u=Object(x.sprintf)(Object(x.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(d.createElement)(Xn,{level:r,position:n,rowCount:o,path:i},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){return Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(d.createElement)(ar,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(d.createElement)(la,Object(s.a)({rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l},e)),Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},u))})))}function Ms(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,u=e.terminatedLevels,b=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,O=!a,g=Object(p.compact)(t),v=o?g.length+1:g.length,h=o&&g.length>0&&!O,j=v;return Object(d.createElement)(d.Fragment,null,Object(p.map)(g,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=i&&!!l&&!!l.length,f=t+1,p=v===f?[].concat(Object(le.a)(b),[s]):b,O=[].concat(Object(le.a)(m),[f]);return Object(d.createElement)(d.Fragment,{key:a},Object(d.createElement)(Ds,{block:e,onClick:function(){return n(a)},isSelected:r===a,level:s,position:f,rowCount:v,showBlockMovers:c,terminatedLevels:b,path:O}),u&&Object(d.createElement)(Ms,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:p,path:O}))})),h&&Object(d.createElement)(Ls,{parentBlockClientId:a,position:v,rowCount:j,level:s,terminatedLevels:b,path:[].concat(Object(le.a)(m),[j])}))}function As(e){var t=e.__experimentalWithBlockNavigationSlots,n=e.__experimentalWithEllipsisMenu,r=e.__experimentalWithEllipsisMenuMinLevel,o=Object(Ce.a)(e,["__experimentalWithBlockNavigationSlots","__experimentalWithEllipsisMenu","__experimentalWithEllipsisMenuMinLevel"]),c=Object(d.useMemo)((function(){return{__experimentalWithBlockNavigationSlots:t,__experimentalWithEllipsisMenu:n,__experimentalWithEllipsisMenuMinLevel:"number"==typeof r?r:0}}),[t,n,r]);return Object(d.createElement)(v.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(x.__)("Block navigation structure")},Object(d.createElement)(lr.Provider,{value:c},Object(d.createElement)(Ms,o)))}Ms.defaultProps={selectBlock:function(){}};var Fs=Object(m.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalWithBlockNavigationSlots,i=e.__experimentalWithEllipsisMenu,a=e.__experimentalWithEllipsisMenuMinLevel;if(!n||0===n.length)return null;var l=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)("div",{className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(x.__)("Block navigation")),l&&Object(d.createElement)(As,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalWithEllipsisMenu:i,__experimentalWithEllipsisMenuMinLevel:a,__experimentalWithBlockNavigationSlots:c,showNestedBlocks:!0}),!l&&Object(d.createElement)(As,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalWithEllipsisMenu:i,__experimentalWithEllipsisMenuMinLevel:a,__experimentalWithBlockNavigationSlots:c}))})),Vs=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(v.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Hs(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen;Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var o=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(v.Button,{icon:Vs,"aria-expanded":r,onClick:t?n:void 0,label:Object(x.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:o,"aria-disabled":!t})}var zs=function(e){var t=e.isDisabled,n=e.__experimentalWithBlockNavigationSlots,r=e.__experimentalWithEllipsisMenu,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!t;return Object(d.createElement)(v.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){return Object(d.createElement)(Hs,Object(s.a)({},e,{isEnabled:o}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(Fs,{onSelect:t,__experimentalWithBlockNavigationSlots:n,__experimentalWithEllipsisMenu:r})}})},Us=n(40),Gs=n.n(Us),Ks=n(111),Ws=[rt.rawShortcut.primary("z"),rt.rawShortcut.primaryShift("z"),rt.rawShortcut.primary("y")],qs=Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Ws.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),$s=function(){return qs},Ys=n(47);function Xs(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(Ys.createBlobURL)(e),'">')})).join("")}var Zs={position:"bottom right",isAlternate:!0},Qs=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(v.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(v.__experimentalToolbarItem,null,(function(t){return Object(d.createElement)(v.DropdownMenu,{icon:er.a,label:Object(x.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(se.a)(e,1)[0].props})),"title"),popoverProps:Zs})}))}))))},Js=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(v.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(Qs,null)):Object(d.createElement)(zn,null,Object(d.createElement)(Qs,null))};function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function nu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?nu.EMPTY_ARRAY:t||n?t||(Gs()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}nu.EMPTY_ARRAY=[];var ru=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,b=t.isSelected,p=t.multiline,O=t.inlineToolbar,v=t.wrapperClassName,h=t.className,j=t.autocompleters,k=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,S=t.allowedFormats,C=t.formattingControls,w=t.withoutInteractiveFormatting,B=t.onRemove,I=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,L=t.style,M=t.preserveWhiteSpace,A=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(Ce.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(d.useRef)(),G=n||U,K=y(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),O=i(),g=a().__experimentalUndo;void 0===b?t=m.clientId===W&&m.attributeKey===N:b&&(t=m.clientId===W);var v={};if("native"===d.Platform.OS){var h=W&&s(W);v={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isCaretWithinFormattedText:r(),selectionStart:t?m.offset:void 0,selectionEnd:t?O.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:f()||p(),undo:g},v)})),X=Y.isCaretWithinFormattedText,Z=Y.selectionStart,Q=Y.selectionEnd,J=Y.isSelected,ee=Y.didAutomaticChange,te=Y.disabled,ne=Y.undo,re=Y.shouldBlurOnUnmount,oe=Object(g.useDispatch)("core/block-editor"),ce=oe.__unstableMarkLastChangeAsPersistent,ie=oe.enterFormattedText,ae=oe.exitFormattedText,ue=oe.selectionChange,de=oe.__unstableMarkAutomaticChange,be=tu(p),fe=nu({allowedFormats:S,formattingControls:C,disableFormats:F}),pe=!fe||fe.length>0,me=a,Oe=l;Array.isArray(a)&&(me=c.children.toHTML(a),Oe=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var ge=Object(d.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),ve=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;I&&I(!n),B&&Object(i.isEmpty)(t)&&n&&B(!n)}),[I,B]),he=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k&&x){var n=[],r=Object(i.split)(e),o=Object(se.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:be}))),s+=1),l?(n.push.apply(n,Object(le.a)(t)),s+=t.length):T&&n.push(T()),(l?Object(i.isEmpty)(a):T&&Object(i.isEmpty)(a))||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:be})));var u=l?s:1,d=l?-1:null;k(n,u,d)}}),[k,x,be,T]),je=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=k&&x;if(k){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(k([l.transform({content:t.text})]),de())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?he(t):n(Object(i.__unstableInsertLineSeparator)(t));else if(r||!o&&!P)V||n(Object(i.insert)(t,"\n"));else if(P&&!o){var s=t.text,u=t.start,d=t.end;u===d&&d===s.length&&P()}else o&&he(t)}),[k,x,de,p,he]),ke=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:Xs(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(k&&Object(i.isEmpty)(t)?k(u):he(t,u))}var d,b=k&&x?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Ks.regexp)(".*").test(d))&&(b="BLOCKS"),A&&Object(i.isEmpty)(t)&&Object(ka.isURL)(a.trim())&&(b="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var O=m.formats.length;O--;)m.formats[O]=[].concat(Object(le.a)(s),Object(le.a)(m.formats[O]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(k&&Object(i.isEmpty)(t)?k(f,f.length-1,-1):he(t,f))}),[o,k,x,he,A,p]),ye=Object(d.useCallback)((function(e,t){if(k){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);k([u]),de()}}}}),[k,de]),_e=Object(d.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:me,onChange:Oe,selectionStart:Z,selectionEnd:Q,onSelectionChange:ge,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:je,onDelete:ve,onPaste:ke,__unstableIsSelected:J,__unstableInputRule:ye,__unstableMultilineTag:be,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:ie,__unstableOnExitFormattedText:ae,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:de,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:L,preserveWhiteSpace:M,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==b?b:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.Editable;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&pe&&Object(d.createElement)(Js,{inline:O,anchorRef:G.current}),t&&Object(d.createElement)($s,null),Object(d.createElement)(En,{onReplace:k,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:r})})))}));return v?(Gs()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:f()("block-editor-rich-text",v)},_e)):_e}));ru.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Ce.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=tu(r);!t&&i&&(t="<".concat(i,"></").concat(i,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},ru.isEmpty=function(e){return!e||0===e.length},ru.Content.defaultProps={format:"string",value:""};var ou=ru;function cu(e){var t=e.value,n=e.onChange;return Object(d.createElement)(Ns,null,Object(d.createElement)(ou,{value:t,onChange:n,placeholder:Object(x.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var iu=function(e){var t=e.icon,n=void 0===t?yl.a:t,r=e.label,o=void 0===r?Object(x.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(x.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(v.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(x.__)("Block variations")},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(v.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(d.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(v.Button,{isLink:!0,onClick:function(){return l()}},Object(x.__)("Skip"))))},au=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),lu=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var uu={top:{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(x._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:lu,title:Object(x._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:au,title:Object(x._x)("Vertically Align Bottom","Block vertical alignment setting")}},du=["top","center","bottom"];var bu=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?du:r,c=e.isCollapsed,i=void 0===c||c,a=uu[t],l=uu.top;return Object(d.createElement)(v.ToolbarGroup,{isCollapsed:i,icon:a?a.icon:l.icon,label:Object(x._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},uu[e],{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})},fu=Object(m.createHigherOrderComponent)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),pu=fu(v.ColorPalette);function mu(e){var t=e.onChange,n=e.value,r=Object(Ce.a)(e,["onChange","value"]);return Object(d.createElement)(Re,Object(s.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}function Ou(e){var t=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),n=t.gradients,r=t.disableCustomGradients;return Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({gradients:void 0!==e.gradients?e.gradient:n,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:r},e))}var gu=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?v.__experimentalGradientPicker:Ou;return Object(d.createElement)(t,e)},vu=function(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(x.__)("Gradient Presets"):o,i=Object(Ce.a)(e,["className","value","onChange","label"]),a=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),l=a.gradients,u=void 0===l?[]:l,b=a.disableCustomGradients;return Object(p.isEmpty)(u)&&b?null:Object(d.createElement)(v.BaseControl,{className:f()("block-editor-gradient-picker-control",t)},Object(d.createElement)(v.BaseControl.VisualLabel,null,c),Object(d.createElement)(gu,Object(s.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:u,disableCustomGradients:b},i)))};function hu(e){var t=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().gradients}),[]);return Object(p.isEmpty)(t)?null:Object(d.createElement)(v.PanelBody,{title:Object(x.__)("Gradient")},Object(d.createElement)(vu,e))}function ju(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ku=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(ju()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(e){var t;return Object(St.a)(this,r),(t=n.call(this,e)).updateDimensions=t.updateDimensions.bind(Object(wt.a)(t)),t}return Object(Ct.a)(r,[{key:"updateDimensions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return function(){e.props.onChange({width:t,height:n})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.imageWidth,r=t.imageHeight,o=t.imageSizeOptions,c=void 0===o?[]:o,i=t.isResizable,a=void 0===i||i,l=t.slug,s=t.width,u=t.height,b=t.onChange,f=t.onChangeImage,m=void 0===f?p.noop:f;return Object(d.createElement)(d.Fragment,null,!Object(p.isEmpty)(c)&&Object(d.createElement)(v.SelectControl,{label:Object(x.__)("Image size"),value:l,options:c,onChange:m}),a&&Object(d.createElement)("div",{className:"block-editor-image-size-control"},Object(d.createElement)("p",{className:"block-editor-image-size-control__row"},Object(x.__)("Image dimensions")),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(v.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(x.__)("Width"),value:s||n||"",min:1,onChange:function(e){return b({width:parseInt(e,10)})}}),Object(d.createElement)(v.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(x.__)("Height"),value:u||r||"",min:1,onChange:function(e){return b({height:parseInt(e,10)})}})),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(v.ButtonGroup,{"aria-label":Object(x.__)("Image Size")},[25,50,75,100].map((function(t){var o=Math.round(n*(t/100)),c=Math.round(r*(t/100)),i=s===o&&u===c;return Object(d.createElement)(v.Button,{key:t,isSmall:!0,isPrimary:i,isPressed:i,onClick:e.updateDimensions(o,c)},t,"%")}))),Object(d.createElement)(v.Button,{isSmall:!0,onClick:this.updateDimensions()},Object(x.__)("Reset")))))}}]),r}(d.Component),yu=Object(m.createHigherOrderComponent)((function(e){return _((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),_u=yu((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(d.createElement)(la,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),Eu=Object(m.compose)([yu,Object(g.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(d.createElement)(ia,{rootClientId:t,lastBlockClientId:n})})),Su=n(49),Cu=n.n(Su);var wu=new WeakMap;function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iu(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,i=e.forwardedRef,a=e.templateInsertUpdatesSelection,l=e.__experimentalCaptureToolbars,u=e.__experimentalMoverDirection,b=Object(m.useViewportMatch)("medium","<"),O=Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlock,o=n.isBlockSelected,c=n.hasSelectedInnerBlock,i=n.isNavigationMode,a=r(t);return{block:a,hasOverlay:"core/template"!==a.name&&!o(t)&&!c(t,!0),enableClickThrough:i()||b}})),v=O.hasOverlay,h=O.block,j=O.enableClickThrough;!function(e,t,n,r,o){var c=Object(g.useDispatch)("core/block-editor").updateBlockListSettings,i=Object(g.useSelect)((function(t){var n=t("core/block-editor").getBlockRootClientId(e);return{blockListSettings:t("core/block-editor").getBlockListSettings(e),parentLock:t("core/block-editor").getTemplateLock(n)}}),[e]),a=i.blockListSettings,l=i.parentLock;Object(d.useLayoutEffect)((function(){var i={allowedBlocks:t,templateLock:void 0===n?l:n};void 0!==r&&(i.__experimentalCaptureToolbars=r),void 0!==o&&(i.__experimentalMoverDirection=o),Cu()(a,i)||c(e,i)}),[e,a,t,n,l,r,o,c])}(t,n,o,l,u),function(e,t,n,r){var o=Object(g.useDispatch)("core/block-editor").replaceInnerBlocks,i=Object(g.useSelect)((function(t){return t("core/block-editor").getBlocks(e)}),[e]),a=Object(d.useRef)(null);Object(d.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(p.isEqual)(t,a.current)){a.current=t;var l=Object(c.synchronizeBlocksWithTemplate)(i,t);Object(p.isEqual)(l,i)||o(e,l,0===i.length&&r&&0!==l.length)}}),[i,n,e])}(t,r,o,a);var k=f()({"has-overlay":j&&v,"is-capturing-toolbar":l}),y=Object(d.createElement)(pa,Object(s.a)({},e,{ref:i,rootClientId:t,className:k})),_=Object(c.getBlockType)(h.name);if(_&&_.providesContext){var E=function(e,t){wu.has(t)||wu.set(t,new WeakMap);var n=wu.get(t);if(!n.has(e)){var r=Object(p.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(h.attributes,_);y=Object(d.createElement)(xn,{value:E},y)}return e.__experimentalTagName?y:Object(d.createElement)("div",{className:"block-editor-inner-blocks",ref:i},y)}function xu(e){return ra(e),Object(d.createElement)(Iu,e)}var Pu=Object(d.forwardRef)((function(e,t){var n=y().clientId,r=Object(d.useRef)(),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bu(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({clientId:n,forwardedRef:t||r},e);return e.value&&e.onChange?Object(d.createElement)(xu,o):Object(d.createElement)(Iu,o)}));Pu.DefaultBlockAppender=Eu,Pu.ButtonBlockAppender=_u,Pu.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var Tu=Pu,Nu=n(42);function Ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Du=[{id:"opensInNewTab",title:Object(x.__)("Open in new tab")}],Lu=function(e){var t=e.value,n=e.onChange,r=void 0===n?p.noop:n,o=e.settings,c=void 0===o?Du:o;if(!c||!c.length)return null;var i=function(e){return function(n){r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ru(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ru(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,Object(u.a)({},e.id,n)))}},a=c.map((function(e){return Object(d.createElement)(v.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(d.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(d.createElement)(v.VisuallyHidden,{as:"legend"},Object(x.__)("Currently selected link settings")),a)},Mu=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(P.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),Au=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,l=e.searchTerm,u=void 0===l?"":l;return Object(d.createElement)(v.Button,Object(s.a)({},t,{onClick:c,className:f()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(Nr.a,{className:"block-editor-link-control__search-item-icon",icon:Mu}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(v.TextHighlight,{text:n.title,highlight:u})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(ka.filterURLForDisplay)(Object(ka.safeDecodeURI)(n.url))||""),a&&Object(x.__)("Press ENTER to add this link"))),n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},n.type))},Fu=n(186),Vu=n(109),Hu=n.n(Vu);function zu(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Uu=function(e){return e.stopPropagation()},Gu=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(zu()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(e){var t;return Object(St.a)(this,r),(t=n.call(this,e)).onChange=t.onChange.bind(Object(wt.a)(t)),t.onFocus=t.onFocus.bind(Object(wt.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(wt.a)(t)),t.selectLink=t.selectLink.bind(Object(wt.a)(t)),t.handleOnClick=t.handleOnClick.bind(Object(wt.a)(t)),t.bindSuggestionNode=t.bindSuggestionNode.bind(Object(wt.a)(t)),t.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),t.inputRef=Object(d.createRef)(),t.updateSuggestions=Object(p.throttle)(t.updateSuggestions.bind(Object(wt.a)(t)),200),t.suggestionNodes=[],t.isUpdatingSuggestions=!1,t.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},t}return Object(Ct.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,Hu()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(ka.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1}),t.length?e.props.debouncedSpeak(Object(x.sprintf)(Object(x._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(x.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case rt.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case rt.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case rt.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(x.__)("Link selected.")));break;case rt.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case rt.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case rt.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.hasBorder,a=t.__experimentalRenderSuggestions,l=t.placeholder,u=void 0===l?Object(x.__)("Paste URL or type to search"):l,b=t.value,m=void 0===b?"":b,O=t.autoFocus,g=void 0===O||O,h=t.__experimentalShowInitialSuggestions,j=void 0!==h&&h,k=this.state,y=k.showSuggestions,_=k.suggestions,E=k.selectedSuggestion,S=k.loading,C="url-input-control-".concat(r),w="block-editor-url-input-suggestions-".concat(r),B="block-editor-url-input-suggestion-".concat(r),I={id:w,ref:this.autocompleteRef,role:"listbox"},P=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(B,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===E}};return Object(d.createElement)(v.BaseControl,{label:n,id:C,className:f()("block-editor-url-input",o,{"is-full-width":c,"has-border":i})},Object(d.createElement)("input",{className:"block-editor-url-input__input",autoFocus:g,type:"text","aria-label":Object(x.__)("URL"),required:!0,value:m,onChange:this.onChange,onFocus:this.onFocus,onInput:Uu,placeholder:u,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":y,"aria-autocomplete":"list","aria-owns":w,"aria-activedescendant":null!==E?"".concat(B,"-").concat(E):void 0,ref:this.inputRef}),S&&Object(d.createElement)(v.Spinner,null),Object(p.isFunction)(a)&&y&&!!_.length&&a({suggestions:_,selectedSuggestion:E,suggestionsListProps:I,buildSuggestionItemProps:P,isLoading:S,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:j&&!(m&&m.length)}),!Object(p.isFunction)(a)&&y&&!!_.length&&Object(d.createElement)(v.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(s.a)({},I,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),_.map((function(t,n){return Object(d.createElement)(v.Button,Object(s.a)({},P(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===E}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(d.Component),Ku=Object(m.compose)(m.withSafeTimeout,v.withSpokenMessages,m.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(Gu),Wu=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(d.useState)(),u=Object(se.a)(s,2),b=u[0],f=u[1];return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(b||{url:n})}},Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)(Ku,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(x.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(v.Button,{type:"submit",label:Object(x.__)("Submit"),icon:Fu.a,className:"block-editor-link-control__search-submit"}))),l&&Object(d.createElement)(v.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},qu=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(d.createElement)(v.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(d.createElement)(v.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createInterpolateElement)(Object(x.sprintf)(Object(x.__)("New page: <mark>%s</mark>"),t),{mark:Object(d.createElement)("mark",null)})))):null};function $u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$u(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xu=Object(v.createSlotFill)("BlockEditorLinkControlViewer"),Zu=Xu.Slot,Qu=Xu.Fill,Ju=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function ed(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?p.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,u=void 0===l||l,b=e.showInitialSuggestions,O=e.forceIsEditingLink,h=e.createSuggestion,j=Object(d.useRef)(),k=Object(d.useRef)(),y=Object(d.useRef)(),_=Object(m.useInstanceId)(ed),E=Object(d.useState)(n&&n.url||""),S=Object(se.a)(E,2),C=S[0],w=S[1],B=Object(d.useState)(void 0!==O?O:!n||!n.url),I=Object(se.a)(B,2),P=I[0],T=I[1],N=Object(d.useState)(!1),R=Object(se.a)(N,2),D=R[0],L=R[1],M=Object(d.useState)(null),A=Object(se.a)(M,2),F=A[0],V=A[1],H=Object(d.useRef)(!1),z=Object(g.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,U=n&&Object(ka.filterURLForDisplay)(Object(ka.safeDecodeURI)(n.url))||"";Object(d.useEffect)((function(){void 0!==O&&O!==P&&T(O)}),[O]),Object(d.useEffect)((function(){H.current&&y.current&&!y.current.contains(document.activeElement)&&(Kn.focus.focusable.find(y.current)[0]||y.current).focus();H.current=!1}),[P]),Object(d.useEffect)((function(){return function(){j.current&&j.current.cancel(),k.current&&k.current.cancel()}}),[]);var G=a?function(){return Promise.resolve([])}:function(e){var t="URL",n=Object(ka.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(p.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(ka.prependHTTP)(e):e,type:t}])},K=function(){var e=Object(Nu.a)(io.a.mark((function e(t,n){var r,o;return io.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([z(t,Yu({},n.isInitialSuggestions?{perPage:3}:{})),G(t)]);case 2:return r=e.sent,o=!t.includes(" "),r=o&&!n.isInitialSuggestions?r[0].concat(r[1]):r[0],e.abrupt("return",q(t)?r:r.concat({title:t,url:t,type:"__CREATE__"}));case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function W(){var e;H.current=!!(null===(e=y.current)||void 0===e?void 0:e.contains(document.activeElement)),T(!1)}function q(e){var t=Object(p.startsWith)(e,"#");return Object(ka.isURL)(e)||e&&e.includes("www.")||t}var $=Object(d.useCallback)((function(e,t){return u?q(e)?G(e,t):K(e,t):Promise.resolve([])}),[G,z]),Y=function(){var e=Object(Nu.a)(io.a.mark((function e(t){var n;return io.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),V(null),e.prev=2,k.current=Ju(Promise.resolve(h(t))),e.next=6,k.current.promise;case 6:n=e.sent,L(!1),n?(c(n),W()):T(!0),e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(2),!e.t0||!e.t0.isCanceled){e.next=15;break}return e.abrupt("return");case 15:V(e.t0.message||Object(x.__)("An unknown error occurred during creation. Please try again.")),L(!1),T(!0);case 18:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=Yu({},t);delete n.type,delete n.id,c(Yu({},n,{},e))};return Object(d.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(v.Spinner,null)," ",Object(x.__)("Creating"),"…"),(P||!n)&&!D&&Object(d.createElement)(Wu,{placeholder:t,value:C,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";w(e)},onSelect:function(){var e=Object(Nu.a)(io.a.mark((function e(t){return io.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(C);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),b=["url","mailto","tel","internal"],p=1===o.length&&b.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,O="block-editor-link-control-search-results-label-".concat(_),g=l?Object(x.__)("Recently updated"):Object(x.sprintf)(Object(x.__)('Search results for "%s"'),C),j=Object(d.createElement)(l?d.Fragment:v.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:O},g));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(d.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":O}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(d.createElement)(qu,{searchTerm:C,onClick:Object(Nu.a)(io.a.mark((function t(){return io.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(d.createElement)(Au,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(Yu({},n,{},e))},isSelected:t===i,isURL:b.includes(e.type.toLowerCase()),searchTerm:C})}))))}:null,fetchSuggestions:$,showInitialSuggestions:b,errorMessage:F}),n&&!P&&!D&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{"aria-label":Object(x.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(v.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(d.createElement)(v.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(x.__)("Edit")),Object(d.createElement)(Zu,{fillProps:n}))),Object(d.createElement)(Lu,{value:n,settings:r,onChange:c}))}ed.ViewerFill=Qu;var td=ed,nd=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(P.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),rd=n(263),od=Object(v.withFilters)("editor.MediaUpload")((function(){return null}));var cd=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),id=Object(m.compose)([Object(g.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}}))])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.name,l=void 0===a?Object(x.__)("Replace"):a,s=e.createNotice,u=e.removeNotice,b=Object(d.useState)(t),f=Object(se.a)(b,2),m=f[0],O=f[1],h=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),j=Object(d.createRef)(),k=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),y=function(e){var t=document.createElement("div");t.innerHTML=Object(d.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){s("error",n,{speak:!0,id:k,isDismissible:!0})}),1e3)},_=function(e){c(e),O(e.url),Object(Ge.speak)(Object(x.__)("The media file has been replaced")),u(k)},E=function(e){e.keyCode===rt.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(d.createElement)(v.Dropdown,{contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(v.Button,{ref:j,"aria-expanded":t,onClick:n,onKeyDown:E},l))},renderContent:function(e){e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(d.createElement)(od,{value:n,onSelect:function(e){return _(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(v.MenuItem,{icon:nd,onClick:t},Object(x.__)("Open Media Library"))}}),Object(d.createElement)(cd,null,Object(d.createElement)(v.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;h({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(se.a)(e,1)[0];_(t)},onError:y})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(v.MenuItem,{icon:rd.a,onClick:function(){t()}},Object(x.__)("Upload"))}}))),i&&Object(d.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(d.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(x.__)("Current media URL:")),Object(d.createElement)(td,{value:{url:m},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;O(t),i(t),j.current.focus()}})))}})})),ad=n(187);function ld(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(v.ExternalLink,{className:o,href:t},n||Object(ka.filterURLForDisplay)(Object(ka.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function sd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ud=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(sd()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(wt.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Ct.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(Ce.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,b=!!r&&u;return Object(d.createElement)(v.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(v.Button,{className:"block-editor-url-popover__settings-toggle",icon:er.a,label:Object(x.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),b&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!b&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(d.Component);ud.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(Ce.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(d.createElement)(Ku,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(v.Button,{icon:Fu.a,label:Object(x.__)("Apply"),type:"submit"}))},ud.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(Ce.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(d.createElement)(ld,{url:o,urlLabel:c,className:n}),r&&Object(d.createElement)(v.Button,{icon:ad.a,label:Object(x.__)("Edit"),onClick:r}))};var dd=ud;function bd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var fd=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(dd,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(x.__)("URL"),placeholder:Object(x.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Fu.a,label:Object(x.__)("Apply"),type:"submit"})))},pd=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(bd()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(wt.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(wt.a)(e)),e.onUpload=e.onUpload.bind(Object(wt.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(wt.a)(e)),e.openURLInput=e.openURLInput.bind(Object(wt.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect;if(a)if(o){var u=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!u.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!u.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),u=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(se.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,b=n.mediaPreview,p=n.notices,m=n.onSelectURL,O=n.mediaUpload,g=n.children,h=s.instructions,j=s.title;if(O||m||(h=Object(x.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&O&&(h=Object(x.__)("Upload a media file or pick one from your media library."),y?h=Object(x.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(x.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(x.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(x.__)("Media"),y?j=Object(x.__)("Audio"):_?j=Object(x.__)("Image"):E&&(j=Object(x.__)("Video")))}var S=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(d.createElement)(v.Placeholder,{icon:i,label:j,instructions:h,className:S,notices:p,onClick:t,onDoubleClick:u,preview:b},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(v.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(x.__)("Cancel"),isLink:!0,onClick:e},Object(x.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(x.__)("Insert from URL")),t&&Object(d.createElement)(fd,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,b=t.value,m=void 0===b?{}:b,O=Object(d.createElement)(od,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(d.createElement)(v.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(x.__)("Media Library"))}});if(a&&i)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(x.__)("Upload")),O,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(x.__)("Upload")),O,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(O)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&Gs()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(cd,null,this.renderDropZone())):Object(d.createElement)(cd,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(d.Component),md=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Od=Object(m.compose)(md,Object(v.withFilters)("editor.MediaPlaceholder"))(pd),gd=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(ou,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));gd.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(Ce.a)(e,["value","tagName"]);return Object(d.createElement)(o,c,n)};var vd=gd,hd=Object(d.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(Ce.a)(e,["__experimentalVersion"]);if(2===n)return Object(d.createElement)(vd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(Ce.a)(r,["className","onChange"]);return Object(d.createElement)(Sr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function jd(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(jd),c=r||Object(x.sprintf)(Object(x._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)(v.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var kd=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(x.__)("All")}:s,b=e.viewports,p=void 0===b?[{id:"small",label:Object(x.__)("Small screens")},{id:"medium",label:Object(x.__)("Medium screens")},{id:"large",label:Object(x.__)("Large screens")}]:b;if(!t||!n||!c)return null;var m=r||Object(x.sprintf)(Object(x.__)("Use the same %s on all screensizes."),n),O=Object(x.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=c(Object(d.createElement)(jd,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(v.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:O}),Object(d.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(i?i(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},c(Object(d.createElement)(jd,{property:n,viewport:e}),e))}))))))};function yd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _d=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(yd()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).onUse=e.onUse.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(u.a)({},rt.rawShortcut[n](t),this.onUse)})}}]),r}(d.Component);function Ed(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(Ce.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=rt.displayShortcut[r](o)),Object(d.createElement)(v.Fill,{name:i},Object(d.createElement)(v.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function Sd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cd=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(Sd()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),r}(d.Component),wd=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),Bd=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Id=function(){var e=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),t=Object(g.useDispatch)("core/block-editor").setNavigationMode;if(!Object(m.useViewportMatch)("medium"))return null;var n=function(e){t("edit"!==e)};return Object(d.createElement)(v.Dropdown,{renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(d.createElement)(v.Button,{icon:e?Bd:wd,"aria-expanded":n,onClick:r,label:Object(x.__)("Tools")})},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{role:"menu","aria-label":Object(x.__)("Tools")},Object(d.createElement)(v.MenuItemsChoice,{value:e?"select":"edit",onSelect:n,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,wd,Object(x.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Bd,Object(x.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(x.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})},xd=v.__experimentalUnitControl.__defaultUnits;function Pd(e){var t,n=e.units,r=Object(Ce.a)(e,["units"]),o=ot("__experimentalDisableCustomUnits"),c=!!o;return t=Array.isArray(o)?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(o,n):!c&&n,Object(d.createElement)(v.__experimentalUnitControl,Object(s.a)({units:t},r))}Pd.__defaultUnits=xd;var Td=n(188),Nd=Object(d.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(P.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Rd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Dd=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(Rd()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(wt.a)(e)),e.submitLink=e.submitLink.bind(Object(wt.a)(e)),e.state={expanded:!1},e}return Object(Ct.a)(r,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(x.__)("Edit link"):Object(x.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(v.Button,{icon:Td.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(v.Button,{className:"block-editor-url-input__back",icon:Nd,label:Object(x.__)("Close"),onClick:this.toggle}),Object(d.createElement)(Ku,{value:t||"",onChange:n}),Object(d.createElement)(v.Button,{icon:Fu.a,label:Object(x.__)("Submit"),type:"submit"}))))}}]),r}(d.Component),Ld=n(104),Md=["noreferrer","noopener"],Ad=Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(d.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Fd=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,b=Object(d.useState)(!1),f=Object(se.a)(b,2),m=f[0],O=f[1],g=Object(d.useCallback)((function(){O(!0)})),h=Object(d.useState)(!1),j=Object(se.a)(h,2),k=j[0],y=j[1],_=Object(d.useState)(null),E=Object(se.a)(_,2),S=E[0],C=E[1],w=Object(d.useRef)(null),B=function(e){e.stopPropagation()},I=function(e){[rt.LEFT,rt.DOWN,rt.RIGHT,rt.UP,rt.BACKSPACE,rt.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||C(""),y(!0)})),T=Object(d.useCallback)((function(){y(!1)})),N=Object(d.useCallback)((function(){C(null),T(),O(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Md,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(d.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(O(!1),C(null),T())}})),L=Object(d.useCallback)((function(){return function(e){S&&n({href:S}),T(),C(null),e.preventDefault()}})),M=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),A=function(){return[{linkDestination:"media",title:Object(x.__)("Media File"),url:"image"===c?i:void 0,icon:Ad},{linkDestination:"attachment",title:Object(x.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]},F=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToggleControl,{label:Object(x.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(v.TextControl,{label:Object(x.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:I}),Object(d.createElement)(v.TextControl,{label:Object(x.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:I,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(p.find)(A(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{icon:Td.a,className:"components-toolbar__control",label:r?Object(x.__)("Edit link"):Object(x.__)("Insert link"),"aria-expanded":m,onClick:g}),m&&Object(d.createElement)(dd,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(d.createElement)(v.NavigableMenu,null,Object(p.map)(A(),(function(e){return Object(d.createElement)(v.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;C(null),t=e.url,o=A(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(d.createElement)(dd.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:C,onKeyDown:I,onKeyPress:B,onSubmit:L(),autocompleteRef:w}),r&&!k&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(dd.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(d.createElement)(v.Button,{icon:Ld.a,label:Object(x.__)("Remove link"),onClick:M}))))},Vd=n(137);function Hd(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(d.createElement)(v.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(x.__)("Preview"),Object(d.createElement)(Nr.a,{icon:er.a}))},renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&Vd.a},Object(x.__)("Desktop")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&Vd.a},Object(x.__)("Tablet")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&Vd.a},Object(x.__)("Mobile"))),t)}})}var zd=n(234),Ud=/\((min|max)-width:[^\(]*?\)/g;function Gd(e){return!!e.media&&!!e.media.mediaText.match(Ud)}function Kd(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function Wd(e,t){return e.replace(Ud,(function(e){return Object(zd.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function qd(e,t){Object(d.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(ka.getProtocol)(e.href)===window.location.protocol&&Object(ka.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i<n.cssRules.length;++i){var a=n.cssRules[i];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!c&&a.cssText.match(new RegExp("#start-".concat(e)))&&(c=!0),c&&a.cssText.match(new RegExp("#end-".concat(e)))&&(c=!1),c&&Gd(a))){var l=a.cssText;r[o]||(r[o]=[]),r[o][i]=l,Kd(n,Wd(l,t),i)}}})),function(){r.forEach((function(e,t){if(e)for(var r=0;r<e.length;++r){var o=e[r];o&&Kd(n[t],o,r)}}))}}}),[t])}function $d(e){var t=Object(d.useState)(window.innerWidth),n=Object(se.a)(t,2),r=n[0],o=n[1];Object(d.useEffect)((function(){if("Desktop"!==e){var t=function(){return o(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var c=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<r?t:r};return qd("resizable-editor-section",c(e)),function(e){switch(e){case"Tablet":case"Mobile":return{width:c(e),margin:(window.innerHeight<800?36:72)+"px auto",flexGrow:0,maxHeight:"Mobile"===e?"768px":"1024px",overflowY:"auto"};default:return null}}(e)}var Yd=Object(g.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(d.createElement)(v.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){qe(t).focus()}},Object(x.__)("Skip to the selected block"))})),Xd=n(133);var Zd=Object(g.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(Xd.count)(Object(c.serialize)(t),"words");return Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(d.createElement)(gn,{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(x.sprintf)(Object(x._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(x.sprintf)(Object(x._n)("%d word","%d words",n),n))))}));function Qd(e){var t=e.blockName,n=Object(g.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(d.useMemo)((function(){return[{label:Object(x.__)("Not set"),value:""}].concat(Object(le.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(d.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(d.createElement)(v.SelectControl,{options:i,value:r||"",label:Object(x.__)("Default Style"),onChange:a})}var Jd=function(e){var t=e.slotName,n=Object(v.__experimentalUseSlot)(t);return Boolean(n.fills&&n.fills.length)?Object(d.createElement)(v.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(x.__)("Advanced"),initialOpen:!1},Object(d.createElement)(te.Slot,{bubblesVirtually:!0})):null},eb=Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,i=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(c.getBlockType)(l),u=a&&i(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(d.createElement)(Zd,null);var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(Lr,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(v.PanelBody,{title:Object(x.__)("Styles")},Object(d.createElement)(Bl,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(d.createElement)(Qd,{blockName:t.name}))),Object(d.createElement)(pe.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,Object(d.createElement)(Jd,{slotName:te.slotName})),Object(d.createElement)(Yd,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(x.__)("No block selected.")):null}));function tb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var nb=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(tb()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(wt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(d.Component),rb=Object(m.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(nb);var ob=function(e){var t,n,r,o=e.children,i=Object(d.useRef)(),a=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]),l=a.getBlocksByClientId,s=a.getSelectedBlockClientIds,u=a.hasMultiSelection,b=a.getSettings,f=Object(g.useDispatch)("core/block-editor"),m=f.flashBlock,O=f.removeBlocks,v=f.replaceBlocks,h=(t=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,n=Object(g.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,r=Object(g.useDispatch)("core/notices").createSuccessNotice,Object(d.useCallback)((function(e,o){var c="";if(1===o.length){var i=o[0],a=n(t(i)).title;c="copy"===e?Object(x.sprintf)(Object(x.__)('Copied "%s" to clipboard.'),a):Object(x.sprintf)(Object(x.__)('Moved "%s" to clipboard.'),a)}else c="copy"===e?Object(x.sprintf)(Object(x.__)("Copied %d blocks to clipboard."),o.length):Object(x.sprintf)(Object(x.__)("Moved %d blocks to clipboard."),o.length);r(c,{type:"snackbar"})}),[])),j=b().__experimentalCanUserUseUnfilteredHTML,k=function(e){var t=s();if(0!==t.length){if(!u())if("copy"===e.type||"cut"===e.type?Object(Kn.documentHasTextSelection)():Object(Kn.documentHasSelection)())return;if(i.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&m(t[0]),h(e.type,t);var n=l(t),r=Object(c.serialize)(n);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",r)}if("cut"===e.type)O(t);else if("paste"===e.type){var o=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(p.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'<img src="'.concat(Object(Ys.createBlobURL)(e),'">')})).join(""),o=""),{html:c,plainText:o}}(e),a=o.plainText,d=o.html,b=Object(c.pasteHandler)({HTML:d,plainText:a,mode:"BLOCKS",canUserUseUnfilteredHTML:j});v(t,b,b.length-1,-1)}}}};return Object(d.createElement)("div",{ref:i,onCopy:k,onCut:k,onPaste:k},o)},cb=n(235),ib=n.n(cb),ab=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,lb=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||C());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function O(){var e=b(/^([^{]+)/);if(e)return sb(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 g(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=sb(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(ab,""),value:n?sb(n[0]).replace(ab,""):""});return b(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=sb(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:sb(t[1]),media:sb(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=sb(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=sb(t[1]),r=sb(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=O()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function C(){var e=c(),t=O();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(oo.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function sb(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ub=n(150),db=n.n(ub),bb=fb;function fb(e){this.options=e||{}}fb.prototype.emit=function(e){return e},fb.prototype.visit=function(e){return this[e.type](e)},fb.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var pb=mb;function mb(e){bb.call(this,e)}db()(mb,bb),mb.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},mb.prototype.comment=function(e){return this.emit("",e.position)},mb.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},mb.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},mb.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},mb.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},mb.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},mb.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},mb.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},mb.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},mb.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},mb.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},mb.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},mb.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},mb.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},mb.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Ob=gb;function gb(e){e=e||{},bb.call(this,e),this.indentation=e.indent}db()(gb,bb),gb.prototype.compile=function(e){return this.stylesheet(e)},gb.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},gb.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},gb.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},gb.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}")},gb.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},gb.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},gb.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},gb.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}")},gb.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)+"}")},gb.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},gb.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},gb.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}")},gb.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}")},gb.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},gb.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},gb.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},gb.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var vb=function(e,t){try{var n=lb(e),r=ib.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((c=c||{}).compress?new pb(c):new Ob(c)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,c};function hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hb(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kb(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 yb(e,t){return new URL(e,t).toString()}var _b=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};kb(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){var t=yb(e.value,c);return jb({},e,{newUrl:"url("+e.before+e.quote+t+e.quote+e.after+")"})}));return jb({},t,{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function Eb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eb(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cb=/^(body|html|:root).*$/,wb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Sb({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Cb)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Bb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(wb(t)),r&&o.push(_b(r)),o.length?vb(n,Object(m.compose)(o)):n}))};var Ib=function(e){var t=e.styles;return Object(d.useEffect)((function(){var e=Bb(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var xb=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.__experimentalSelectBlockOnInsert,i=e.onSelect,a=void 0===i?p.noop:i,l=Object(g.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return{rootClientId:t=t||r(n)||void 0}})).destinationRootClientId;return Object(d.createElement)(Ja,{onSelect:a,rootClientId:l,clientId:n,isAppender:r,showInserterHelpPanel:o,__experimentalSelectBlockOnInsert:c})};function Pb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,c=r.removeBlocks,i=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),i(Object(p.last)(t))}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}Pb.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(x.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(x.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(x.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(x.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(x.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(x.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(x.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(x.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var Tb=Pb;function Nb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(d.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(Kn.getScrollContainer)(e);o&&Hu()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Rb=[rt.UP,rt.RIGHT,rt.DOWN,rt.LEFT,rt.ENTER,rt.BACKSPACE];var Db=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(g.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",b),document[t]("mousemove",u)}function u(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(Kn.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(Rb,t)}(e))&&a()}return Object(d.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(Kn.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==rt.ESCAPE&&e.keyCode!==rt.TAB||l()}])},t)}));function Lb(){return Gs()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Mb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ab=-1!==window.navigator.userAgent.indexOf("Trident"),Fb=new Set([rt.UP,rt.DOWN,rt.LEFT,rt.RIGHT]),Vb=function(e){Object(xt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(It.a)(t);if(Mb()){var r=Object(It.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Bt.a)(this,e)});function r(){var e;return Object(St.a)(this,r),(e=n.apply(this,arguments)).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(wt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(wt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(wt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(wt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(wt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(wt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(wt.a)(e)),e}return Object(Ct.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(Kn.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(Kn.computeCaretRect)();if(n)if(this.caretRect)if(Fb.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(Kn.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:c?window.scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){document.addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=window.requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(d.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),r}(d.Component),Hb=Ab?function(e){return e.children}:Object(g.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(Vb)}]);
1
+ this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=372)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2016 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r))e.push(o.apply(null,r));else if("object"===c)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(37);var o=n(29),c=n(38);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(43);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(36),c=n(29);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(39),o=n(10);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},,,function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.dom}()},,function(e,t,n){e.exports=n(126)()},,,function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(l=o)||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},,,function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},,function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(c=new Array(l),i=0;i<l;i++)c[i]=arguments[i];return a={args:c,val:e.apply(null,c)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},,,,,function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,b=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(f=e.r,p=e.g,m=e.b,t={r:255*N(f,255),g:255*N(p,255),b:255*N(m,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=A(e.s),a=A(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,a),d=!0,b="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=A(e.s),l=A(e.l),t=function(e,t,n){var r,o,c;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function O(e,t,n,r){return[L(M(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=R(n.s),b(n)}function v(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=R(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=R(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=R(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function I(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(M(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+O(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+O(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:A(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function D(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},,,,,,,,,,,,,,,,function(e,t){!function(){e.exports=this.wp.viewport}()},,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(161)),c=r(n(162)),i=n(22),a=r(i),l=r(n(133)),s=r(n(163)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var O,g,v=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}return l(t,e),t}(v),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(v);function k(e,t){O={fn:e,transform:t}}function y(e){g=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function C(e){_=e}var w,I=function(){return Date.now()};function B(e){w=e}var x,P,T=function(e){return e.current};function N(e){x=e}var R=Object.freeze({get applyAnimatedValues(){return O},injectApplyAnimatedValues:k,get colorNames(){return g},injectColorNames:y,get requestFrame(){return E},get cancelFrame(){return S},injectFrame:function(e,t){E=e,S=t},get interpolation(){return _},injectStringInterpolator:C,get now(){return I},injectNow:function(e){I=e},get defaultElement(){return w},injectDefaultElement:B,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),D=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),L=!1,A=new Set,M=function e(){if(!L)return!1;var t=I(),n=A,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],O=f.lastPosition,g=m instanceof v,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(g&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)O=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)O=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-O)<.1)&&(m=O);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k){O+=1*(h+=1*((-s.tension*(O-m)+-s.friction*h)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<m?O>m:O<m),_=Math.abs(h)<=s.precision,S=0===s.tension||Math.abs(m-O)<=s.precision;u=y||_&&S,f.lastVelocity=h,f.lastTime=t}g&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(O=m),f.done=!0):a=!0,f.setValue(O),f.lastPosition=O}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(A.delete(i),i.stop(!0))}return A.size?P?P():E(e):L=!1,L};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o),c}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new V(this,e,t)},t}(v),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),U=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A.has(t)||A.add(t),L||(L=!0,E(P||M));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,A.has(t)&&A.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,O=n.reset,v=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!g[i],m=u.arr(i),h=!l&&!m&&!d,k=u.und(c[r])?i:c[r],y=l||m?i:d?i:1,E=p(s,r);j&&(y=j.animations[r].parent);var S,C=a.parent,w=a.interpolation,B=f(j?y.getPayload():y),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=w&&w.getValue(),N=!u.und(C)&&a.animatedValues.some((function(e){return!e.done})),R=!u.equ(x,T),D=!u.equ(x,a.previous),L=!u.equ(E,a.config);if(O||D&&R||L){var A;if(l||d)C=w=a.parent||new H(k);else if(m)C=w=a.parent||new z(k);else if(h){var M=a.interpolation&&a.interpolation.calc(a.parent.value);M=void 0===M||O?k:M,a.parent?(C=a.parent).setValue(0,!1):C=new H(0);var F={output:[M,i]};a.interpolation?(w=a.interpolation,a.interpolation.updateConfig(F)):w=C.interpolate(F)}return B=f(j?y.getPayload():y),S=f(C.getPayload()),O&&!h&&C.setValue(k,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=I(),e.done=!1,e.animatedStyles.clear()})),p(v,r)&&C.setValue(h?y:i,!1),o({},e,((A={})[r]=o({},a,{name:r,parent:C,interpolation:w,animatedValues:S,toValues:B,previous:x,config:E,fromValues:f(C.getValue()),immediate:p(v,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),A))}return R?e:(h&&(C.setValue(1,!1),w.updateConfig({output:[x,x]})),C.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),K=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return(r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new G,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n])}),[e]),a=c[0],l=c[1];r.current=a;i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},W=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=O.transform(t)),n.payload=t,n}return l(t,e),t}(j),Z={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},Q="[-+]?\\d*\\.?\\d+",J=Q+"%";function ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var te=new RegExp("rgb"+ee(Q,Q,Q)),ne=new RegExp("rgba"+ee(Q,Q,Q,Q)),re=new RegExp("hsl"+ee(Q,J,J)),oe=new RegExp("hsla"+ee(Q,J,J,Q)),ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,le=/^#([0-9a-fA-F]{8})$/;function se(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 ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=se(o,r,e+1/3),i=se(o,r,e),a=se(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function de(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function be(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=te.exec(t))?(de(n[1])<<24|de(n[2])<<16|de(n[3])<<8|255)>>>0:(n=ne.exec(t))?(de(n[1])<<24|de(n[2])<<16|de(n[3])<<8|fe(n[4]))>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=le.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=re.exec(t))?(255|ue(be(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=oe.exec(t))?(ue(be(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var Oe=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ge=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ve=new RegExp("("+Object.keys(Z).join("|")+")","g"),he={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},je=["Webkit","Ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}he=Object.keys(he).reduce((function(e,t){return je.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),he);var ye={};N((function(e){return new X(e)})),B("div"),C((function(e){var t=e.output.map((function(e){return e.replace(ge,me)})).map((function(e){return e.replace(ve,me)})),n=t[0].match(Oe).map((function(){return[]}));t.forEach((function(e){e.match(Oe).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(Oe).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(Oe,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=ke(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ye[b]||(ye[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var _e,Ee,Se=(_e=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){b.current&&!1===O.fn(b.current,s.current.getAnimatedValue())&&r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p=s.current.getValue(),m=(p.scrollTop,p.scrollLeft,c(p,["scrollTop","scrollLeft"]));return a.createElement(e,o({},m,{ref:function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=_e(n),e}),_e)}),Ce=Se(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Se,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=M,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),O=a.onRest,g=a.onStart,v=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,O=a.trail,g=void 0===O?0:O,v=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,S=o({},i.current),C=[].concat(i.deleted),w=Object.keys(S),I=new Set(w),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-g;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){v&&C.find((function(t){return t.originalKey===e}))&&(C=C.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";S[e]={slot:c,originalKey:e,key:v?String(e):W++,item:o,trail:N+=g,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];C.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=g,config:p(h,n,"leave"),to:p(f,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];S[e]=o({},S[e],{item:n,slot:"update",trail:N+=g,config:p(h,n,"update"),to:p(m,n)})}))}}var R=s.map((function(e){return S[e]}));return C.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,current:S,deleted:C,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:v,onRest:function(n){y.current.mounted&&(e.destroyed&&(v||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&y.current.deleted.length>0&&Y(y),O&&O(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},,,,,,,function(e,t,n){"use strict";t.__esModule=!0;var r=n(164);t.default=r.default},,,,,,,,,,,,,function(e,t,n){e.exports=function(){"use strict";return function(e){var t={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(t,e),function(e){return function(n){return function(r){var o,c,i=t[r.type],a=n(r);if(i)for(o=0;o<i.length;o++)(c=i[o](r,e))&&e.dispatch(c);return a}}}}}()},,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},,,,,function(e,t,n){"use strict";e.exports=n(168)},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,function(e,t,n){"use strict";var r=n(5),o=n(15),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},,,,,,,,,function(e,t,n){"use strict";var r=n(127);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=c},,,,,function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(37),o=n(36),c=n(29),i=n(38);function a(e){return Object(r.a)(e)||Object(o.a)(e)||Object(c.a)(e)||Object(i.a)()}},function(e,t){!function(){e.exports=this.wp.priorityQueue}()},function(e,t){!function(){e.exports=this.wp.wordcount}()},,,function(e,t){!function(){e.exports=this.wp.tokenList}()},,,,,,,,,,,,,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(22),l=n(33),s=n(165),u=n(166),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!1),t.textarea.dispatchEvent(n)},t.updateLineHeight=function(){t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t,n=e.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,i(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return c({},a,{saveDOMNodeRef:s,style:u?c({},o,{maxHeight:u}):o,onChange:t.onChange})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout((function(){return s(e.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=i(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",c({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(){this.props.value!==this.currentValue&&this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.func},t}(a.Component);t.default=d},function(e,t,n){var r,o,c;
7
  /*!
8
  autosize 4.0.2
9
  license: MIT
10
  http://www.jacklmoore.com/autosize
11
+ */o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=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],a),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=s,e.exports=t.default})?r.apply(t,o):r)||(e.exports=c)},function(e,t,n){var r=n(167);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},function(e,t,n){"use strict";var r=n(169);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),O=void 0,g=void 0,v=void 0,h=void 0,j=void 0,k=void 0,y=void 0,_=void 0,E=void 0,S=void 0;b?(y=t,S=r.height(y),E=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},j={left:f.left-_.left-s,top:f.top-_.top-l},k={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+S)+u},h=_):(O=r.offset(t),g=t.clientHeight,v=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(O.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(O.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},k={left:f.left+m-(O.left+v+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(O.top+g+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/;var d=void 0;function b(e,t){for(var n=0;n<e.length;n++)t(e[n])}function f(e){return"border-box"===d(e,"boxSizing")}"undefined"!=typeof window&&(d=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=c}return""===n?"auto":n});var p=["margin","border","padding"];function m(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function O(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(d(e,a))||0}return r}function g(e){return null!=e&&e==e.window}var v={};function h(e,t,n){if(g(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(d(e),f(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=d(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-O(e,["border","padding"],r):i;if(a){var s=2===n?-O(e,["border"],r):O(e,["margin"],r);return l+(1===n?0:s)}return i+O(e,p.slice(n),r)}b(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var j={position:"absolute",visibility:"hidden",display:"block"};function k(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=h.apply(void 0,n):m(e,j,(function(){t=h.apply(void 0,n)})),t}function y(e,t,n){var r=n;if("object"!==(void 0===t?"undefined":o(t)))return void 0!==r?("number"==typeof r&&(r+="px"),void(e.style[t]=r)):d(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}b(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&k(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,r){if(void 0===r)return t&&k(t,e,-1);if(t){d(t);return f(t)&&(r+=O(t,["padding","border"],n)),y(t,e,r)}}})),e.exports=r({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return l(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(y(e,c))||0,r[c]=o+t[c]-n[c]);y(e,r)}(e,t)},isWindow:g,each:b,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(g(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(g(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(265))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function O(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}O();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),O(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=c},function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,O=f&&0<=p&&p<s;if(m||O){if(!m||O&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-5.7-5.3-.6.6-.5-.5-5.2 5.2 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return W})),n.d(t,"getColorClassName",(function(){return je})),n.d(t,"getColorObjectByAttributeValues",(function(){return ve})),n.d(t,"getColorObjectByColorValue",(function(){return he})),n.d(t,"createCustomColorsHOC",(function(){return $t})),n.d(t,"withColors",(function(){return Yt})),n.d(t,"__experimentalUseColors",(function(){return fn})),n.d(t,"__experimentalGetGradientClass",(function(){return ke})),n.d(t,"getGradientValueBySlug",(function(){return ye})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return _e})),n.d(t,"getGradientSlugByValue",(function(){return Ee})),n.d(t,"__experimentalUseGradient",(function(){return Se})),n.d(t,"getFontSize",(function(){return ft})),n.d(t,"getFontSizeClass",(function(){return mt})),n.d(t,"getFontSizeObjectByValue",(function(){return pt})),n.d(t,"FontSizePicker",(function(){return Ot})),n.d(t,"withFontSizes",(function(){return vn})),n.d(t,"AlignmentToolbar",(function(){return Sn})),n.d(t,"Autocomplete",(function(){return Rn})),n.d(t,"BlockAlignmentToolbar",(function(){return F})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Dn})),n.d(t,"BlockBreadcrumb",(function(){return An})),n.d(t,"BlockContextProvider",(function(){return Vn})),n.d(t,"BlockControls",(function(){return C})),n.d(t,"BlockColorsStyleSelector",(function(){return Gn})),n.d(t,"BlockEdit",(function(){return qn})),n.d(t,"useBlockEditContext",(function(){return k})),n.d(t,"BlockFormatControls",(function(){return Qn})),n.d(t,"BlockIcon",(function(){return wn})),n.d(t,"BlockNavigationDropdown",(function(){return eu})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Ks})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return gu})),n.d(t,"__experimentalBlockNavigationTree",(function(){return Xs})),n.d(t,"__experimentalBlockVariationPicker",(function(){return vu})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Su})),n.d(t,"ButtonBlockerAppender",(function(){return ga})),n.d(t,"ColorPalette",(function(){return wu})),n.d(t,"ColorPaletteControl",(function(){return Iu})),n.d(t,"ContrastChecker",(function(){return We})),n.d(t,"__experimentalGradientPicker",(function(){return xu})),n.d(t,"__experimentalGradientPickerControl",(function(){return Pu})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Tu})),n.d(t,"__experimentalColorGradientControl",(function(){return Re})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Ue})),n.d(t,"__experimentalImageSizeControl",(function(){return Ru})),n.d(t,"InnerBlocks",(function(){return Ku})),n.d(t,"InspectorAdvancedControls",(function(){return J})),n.d(t,"InspectorControls",(function(){return fe})),n.d(t,"__experimentalLinkControl",(function(){return pd})),n.d(t,"__experimentalLineHeightControl",(function(){return at})),n.d(t,"MediaReplaceFlow",(function(){return hd})),n.d(t,"MediaPlaceholder",(function(){return Bd})),n.d(t,"MediaUpload",(function(){return gd})),n.d(t,"MediaUploadCheck",(function(){return vd})),n.d(t,"PanelColorSettings",(function(){return Jt})),n.d(t,"PlainText",(function(){return Td})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Rd})),n.d(t,"RichText",(function(){return Ou})),n.d(t,"RichTextShortcut",(function(){return Ld})),n.d(t,"RichTextToolbarButton",(function(){return Ad})),n.d(t,"__unstableRichTextInputEvent",(function(){return Fd})),n.d(t,"ToolSelector",(function(){return zd})),n.d(t,"__experimentalUnitControl",(function(){return kt})),n.d(t,"URLInput",(function(){return od})),n.d(t,"URLInputButton",(function(){return Wd})),n.d(t,"URLPopover",(function(){return Ed})),n.d(t,"__experimentalImageURLInputUI",(function(){return Xd})),n.d(t,"withColorContext",(function(){return Cu})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return ts})),n.d(t,"__experimentalInserterMenuExtension",(function(){return Va})),n.d(t,"__experimentalPreviewOptions",(function(){return Qd})),n.d(t,"__experimentalUseResizeCanvas",(function(){return cb})),n.d(t,"BlockInspector",(function(){return db})),n.d(t,"BlockList",(function(){return _a})),n.d(t,"__experimentalBlock",(function(){return Rs})),n.d(t,"BlockMover",(function(){return Tl})),n.d(t,"BlockPreview",(function(){return Ca})),n.d(t,"BlockSelectionClearer",(function(){return pb})),n.d(t,"BlockSettingsMenu",(function(){return ds})),n.d(t,"BlockSettingsMenuControls",(function(){return as})),n.d(t,"BlockTitle",(function(){return Ln})),n.d(t,"BlockToolbar",(function(){return vs})),n.d(t,"CopyHandler",(function(){return mb})),n.d(t,"DefaultBlockAppender",(function(){return ma})),n.d(t,"__unstableEditorStyles",(function(){return Vb})),n.d(t,"Inserter",(function(){return pl})),n.d(t,"__experimentalLibrary",(function(){return Hb})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Ub})),n.d(t,"MultiSelectScrollIntoView",(function(){return Gb})),n.d(t,"NavigableToolbar",(function(){return Il})),n.d(t,"ObserveTyping",(function(){return Wb})),n.d(t,"PreserveScrollInReorder",(function(){return qb})),n.d(t,"SkipToSelectedBlock",(function(){return ib})),n.d(t,"Typewriter",(function(){return Qb})),n.d(t,"Warning",(function(){return kr})),n.d(t,"WritingFlow",(function(){return yl})),n.d(t,"BlockEditorProvider",(function(){return fa})),n.d(t,"useSimulatedMediaQuery",(function(){return ob})),n.d(t,"__experimentalUseEditorFeature",(function(){return it})),n.d(t,"transformStyles",(function(){return Fb})),n.d(t,"storeConfig",(function(){return ua})),n.d(t,"SETTINGS_DEFAULTS",(function(){return qr}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return Lo})),n.d(r,"resetSelection",(function(){return Ao})),n.d(r,"receiveBlocks",(function(){return Mo})),n.d(r,"updateBlockAttributes",(function(){return Fo})),n.d(r,"updateBlock",(function(){return Vo})),n.d(r,"selectBlock",(function(){return Ho})),n.d(r,"selectPreviousBlock",(function(){return zo})),n.d(r,"selectNextBlock",(function(){return Uo})),n.d(r,"startMultiSelect",(function(){return Go})),n.d(r,"stopMultiSelect",(function(){return Ko})),n.d(r,"multiSelect",(function(){return Wo})),n.d(r,"clearSelectedBlock",(function(){return qo})),n.d(r,"toggleSelection",(function(){return $o})),n.d(r,"replaceBlocks",(function(){return Xo})),n.d(r,"replaceBlock",(function(){return Zo})),n.d(r,"moveBlocksDown",(function(){return Jo})),n.d(r,"moveBlocksUp",(function(){return ec})),n.d(r,"moveBlockToPosition",(function(){return tc})),n.d(r,"insertBlock",(function(){return nc})),n.d(r,"insertBlocks",(function(){return rc})),n.d(r,"showInsertionPoint",(function(){return oc})),n.d(r,"hideInsertionPoint",(function(){return cc})),n.d(r,"setTemplateValidity",(function(){return ic})),n.d(r,"synchronizeTemplate",(function(){return ac})),n.d(r,"mergeBlocks",(function(){return lc})),n.d(r,"removeBlocks",(function(){return sc})),n.d(r,"removeBlock",(function(){return uc})),n.d(r,"replaceInnerBlocks",(function(){return dc})),n.d(r,"toggleBlockMode",(function(){return bc})),n.d(r,"startTyping",(function(){return fc})),n.d(r,"stopTyping",(function(){return pc})),n.d(r,"startDraggingBlocks",(function(){return mc})),n.d(r,"stopDraggingBlocks",(function(){return Oc})),n.d(r,"enterFormattedText",(function(){return gc})),n.d(r,"exitFormattedText",(function(){return vc})),n.d(r,"selectionChange",(function(){return hc})),n.d(r,"insertDefaultBlock",(function(){return jc})),n.d(r,"updateBlockListSettings",(function(){return kc})),n.d(r,"updateSettings",(function(){return yc})),n.d(r,"__unstableSaveReusableBlock",(function(){return _c})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Ec})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return Sc})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Cc})),n.d(r,"setNavigationMode",(function(){return wc})),n.d(r,"duplicateBlocks",(function(){return Ic})),n.d(r,"insertBeforeBlock",(function(){return Bc})),n.d(r,"insertAfterBlock",(function(){return xc})),n.d(r,"toggleBlockHighlight",(function(){return Pc})),n.d(r,"flashBlock",(function(){return Tc})),n.d(r,"setHasControlledInnerBlocks",(function(){return Nc}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return Fc})),n.d(o,"isBlockValid",(function(){return Vc})),n.d(o,"getBlockAttributes",(function(){return Hc})),n.d(o,"getBlock",(function(){return zc})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Uc})),n.d(o,"getBlocks",(function(){return Gc})),n.d(o,"getClientIdsOfDescendants",(function(){return Kc})),n.d(o,"getClientIdsWithDescendants",(function(){return Wc})),n.d(o,"getGlobalBlockCount",(function(){return qc})),n.d(o,"getBlocksByClientId",(function(){return $c})),n.d(o,"getBlockCount",(function(){return Yc})),n.d(o,"getSelectionStart",(function(){return Xc})),n.d(o,"getSelectionEnd",(function(){return Zc})),n.d(o,"getBlockSelectionStart",(function(){return Qc})),n.d(o,"getBlockSelectionEnd",(function(){return Jc})),n.d(o,"getSelectedBlockCount",(function(){return ei})),n.d(o,"hasSelectedBlock",(function(){return ti})),n.d(o,"getSelectedBlockClientId",(function(){return ni})),n.d(o,"getSelectedBlock",(function(){return ri})),n.d(o,"getBlockRootClientId",(function(){return oi})),n.d(o,"getBlockParents",(function(){return ci})),n.d(o,"getBlockParentsByBlockName",(function(){return ii})),n.d(o,"getBlockHierarchyRootClientId",(function(){return ai})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return li})),n.d(o,"getAdjacentBlockClientId",(function(){return si})),n.d(o,"getPreviousBlockClientId",(function(){return ui})),n.d(o,"getNextBlockClientId",(function(){return di})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return bi})),n.d(o,"getSelectedBlockClientIds",(function(){return fi})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return pi})),n.d(o,"getMultiSelectedBlocks",(function(){return mi})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Oi})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return gi})),n.d(o,"isFirstMultiSelectedBlock",(function(){return vi})),n.d(o,"isBlockMultiSelected",(function(){return hi})),n.d(o,"isAncestorMultiSelected",(function(){return ji})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return ki})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return yi})),n.d(o,"getBlockOrder",(function(){return _i})),n.d(o,"getBlockIndex",(function(){return Ei})),n.d(o,"isBlockSelected",(function(){return Si})),n.d(o,"hasSelectedInnerBlock",(function(){return Ci})),n.d(o,"isBlockWithinSelection",(function(){return wi})),n.d(o,"hasMultiSelection",(function(){return Ii})),n.d(o,"isMultiSelecting",(function(){return Bi})),n.d(o,"isSelectionEnabled",(function(){return xi})),n.d(o,"getBlockMode",(function(){return Pi})),n.d(o,"isTyping",(function(){return Ti})),n.d(o,"isDraggingBlocks",(function(){return Ni})),n.d(o,"isCaretWithinFormattedText",(function(){return Ri})),n.d(o,"getBlockInsertionPoint",(function(){return Di})),n.d(o,"isBlockInsertionPointVisible",(function(){return Li})),n.d(o,"isValidTemplate",(function(){return Ai})),n.d(o,"getTemplate",(function(){return Mi})),n.d(o,"getTemplateLock",(function(){return Fi})),n.d(o,"canInsertBlockType",(function(){return Hi})),n.d(o,"getInserterItems",(function(){return Gi})),n.d(o,"hasInserterItems",(function(){return Ki})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Wi})),n.d(o,"getBlockListSettings",(function(){return qi})),n.d(o,"getSettings",(function(){return $i})),n.d(o,"isLastBlockChangePersistent",(function(){return Yi})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return Xi})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return Zi})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return Qi})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return Ji})),n.d(o,"isNavigationMode",(function(){return ta})),n.d(o,"didAutomaticChange",(function(){return na})),n.d(o,"isBlockHighlighted",(function(){return ra})),n.d(o,"areInnerBlocksControlled",(function(){return oa}));var c=n(12),i=n(27),a=n(76),l=n(48),s=n(8),u=n(5),d=n(0),b=n(11),f=n.n(b),p=n(2),m=n(9),O=n(30),g=n(4),v=n(3),h=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),j=h.Provider;function k(){return Object(d.useContext)(h)}var y=Object(v.createSlotFill)("BlockControls"),_=y.Fill,E=y.Slot;var S=function(e){var t=e.controls,n=e.children;return k().isSelected?Object(d.createElement)(_,null,(function(e){var r=Object(p.isEmpty)(e)?null:e;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:r},Object(d.createElement)(v.ToolbarGroup,{controls:t}),n)})):null};S.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(E,Object(s.a)({},e,{fillProps:t}))};var C=S,w=n(1),I=n(7),B=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),x=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),P=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),T=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),N=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var D={left:{icon:B,title:Object(w.__)("Align left")},center:{icon:x,title:Object(w.__)("Align center")},right:{icon:P,title:Object(w.__)("Align right")},wide:{icon:T,title:Object(w.__)("Wide width")},full:{icon:N,title:Object(w.__)("Full width")}},L=["left","center","right","wide","full"],A=["wide","full"],M={isAlternate:!0};var F=Object(m.compose)(Object(g.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?L:r,c=e.isCollapsed,i=void 0===c||c,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===A.indexOf(e)})),s=D[t],b=D.center;return Object(d.createElement)(v.ToolbarGroup,{popoverProps:M,isCollapsed:i,icon:s?s.icon:b.icon,label:Object(w.__)("Change alignment"),controls:l.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},D[e],{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z=["left","center","right","wide","full"],U=["wide","full"];function G(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?z:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(U)):t}var K=Object(d.createContext)({}),W=K.Provider,q=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(K).isEmbedButton,r=t.name,o=n?[]:G(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(C,{key:"align-controls"},Object(d.createElement)(F,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),$=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var i=G(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(i,r)&&(a=H({},a,{"data-align":r})),Object(d.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(O.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(c.hasBlockSupport)(e,"align")&&(e.attributes=H({},e.attributes,{align:{type:"string"}})),e)})),Object(O.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",$),Object(O.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",q),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(c.getBlockSupport)(t,"align"),i=Object(c.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(G(o,i),r)&&(e.className=f()("align".concat(r),e.className)),e}));var Y=Object(v.createSlotFill)("InspectorAdvancedControls"),X=Y.Fill,Z=Y.Slot;function Q(e){var t=e.children;return k().isSelected?Object(d.createElement)(X,null,t):null}Q.slotName="InspectorAdvancedControls",Q.Slot=Z;var J=Q;function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var te=/[\s#]/g;var ne=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(J,null,Object(d.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(w.__)("HTML anchor"),help:Object(d.createElement)(d.Fragment,null,Object(w.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(d.createElement)(v.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(w.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(te,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(O.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(O.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",ne),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var oe=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(J,null,Object(d.createElement)(v.TextControl,{autoComplete:"off",label:Object(w.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(w.__)("Separate multiple classes with spaces.")}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function ce(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(O.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.attributes,{className:{type:"string"}})),e})),Object(O.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",oe),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=f()(e.className,n.className)),e})),Object(O.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=ce(o),a=ce(n),l=Object(p.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ie=n(16);Object(O.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ie.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var ae=n(13),le=n(134),se=Object(v.createSlotFill)("InspectorControls"),ue=se.Fill,de=se.Slot;function be(e){var t=e.children;return k().isSelected?Object(d.createElement)(ue,null,t):null}be.Slot=de;var fe=be,pe=n(15);function me(e){var t=e.children,n=Object(pe.a)(e,["children"]);return Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(p.get)(t(),"__experimentalEnableCustomSpacing")}))?Object(d.createElement)(fe,n,Object(d.createElement)(v.PanelBody,{title:Object(w.__)("Spacing")},t)):null}var Oe=n(58),ge=n.n(Oe),ve=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},he=function(e,t){return Object(p.find)(e,{color:t})};function je(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}function ke(e){if(e)return"has-".concat(e,"-gradient-background")}function ye(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function _e(e,t){return Object(p.find)(e,["gradient",t])}function Ee(e,t){var n=_e(e,t);return n&&n.slug}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=k(),i=c.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,b=a.customGradient,f=Object(g.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(d.useCallback)((function(e){var t,r,c=Ee(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),O=ke(s);return{gradientClass:O,gradientValue:s?ye(l,s):b,setGradient:m}}var Ce=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n};function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ie=Object(w.__)("(Color: %s)"),Be=Object(w.__)("(Gradient: %s)"),xe=["colors","disableCustomColors","gradients","disableCustomGradients"];function Pe(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=he(r,t=a),u=s&&s.name;n=Object(w.sprintf)(Ie,u||t)}}else if("gradient"===i&&l){var b=_e(o,t=l),f=b&&b.name;n=Object(w.sprintf)(Be,f||t)}return Object(d.createElement)(d.Fragment,null,c,!!t&&Object(d.createElement)(v.ColorIndicator,{colorValue:t,"aria-label":n}))}function Te(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,l=e.onGradientChange,u=e.colorValue,b=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),O=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(b?"gradient":!!m&&"color"),h=Object(ae.a)(g,2),j=h[0],k=h[1];return m||O?Object(d.createElement)(v.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(v.BaseControl.VisualLabel,null,Object(d.createElement)(Pe,{currentTab:j,label:i,colorValue:u,gradientValue:b})))),m&&O&&Object(d.createElement)(v.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(v.Button,{isSmall:!0,isPrimary:"color"===j,isSecondary:"color"!==j,onClick:function(){return k("color")}},Object(w.__)("Solid")),Object(d.createElement)(v.Button,{isSmall:!0,isPrimary:"gradient"===j,isSecondary:"gradient"!==j,onClick:function(){return k("gradient")}},Object(w.__)("Gradient"))),("color"===j||!O)&&Object(d.createElement)(v.ColorPalette,Object(s.a)({value:u,onChange:O?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({value:b,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ne(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,xe)}));return Object(d.createElement)(Te,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},e))}var Re=function(e){return Object(p.every)(xe,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(Te,e):Object(d.createElement)(Ne,e)};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=Object(w.__)("(%s: color %s)"),Me=Object(w.__)("(%s: gradient %s)"),Fe=["colors","disableCustomColors","gradients","disableCustomGradients"],Ve=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!c&&!i)return null;if(c){var u=he(l||t,c);o=Object(w.sprintf)(Ae,a.toLowerCase(),u&&u.name||c)}else{var b=_e(s||n,c);o=Object(w.sprintf)(Me,a.toLowerCase(),b&&b.name||i)}return Object(d.createElement)(v.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},He=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,i=e.children,a=e.settings,l=e.title,u=Object(pe.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(p.isEmpty)(n)&&Object(p.isEmpty)(r)&&o&&c&&Object(p.every)(a,(function(e){return Object(p.isEmpty)(e.colors)&&Object(p.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var b=Object(d.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},l,Object(d.createElement)(Ve,{colors:n,gradients:r,settings:a}));return Object(d.createElement)(v.PanelBody,Object(s.a)({className:f()("block-editor-panel-color-gradient-settings",t),title:b},u),a.map((function(e,t){return Object(d.createElement)(Re,Object(s.a)({key:t},Le({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),i)},ze=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Fe)}));return Object(d.createElement)(He,Le({},t,{},e))},Ue=function(e){return Object(p.every)(Fe,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(He,e):Object(d.createElement)(ze,e)},Ge=n(51);function Ke(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(w.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(w.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(d.useEffect)((function(){Object(Ge.speak)(Object(w.__)("This color combination may be hard for people to read."))}),[r,o]),Object(d.createElement)("div",{className:"block-editor-contrast-checker"},Object(d.createElement)(v.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var We=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=ge()(t||n),l=ge()(i||r);return 1!==a.getAlpha()||1!==l.getAlpha()||ge.a.isReadable(a,l,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(d.createElement)(Ke,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})};function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==window.Node.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(d.useState)(),s=Object(ae.a)(l,2),u=s[0],b=s[1],f=Object(d.useState)(),p=Object(ae.a)(f,2),m=p[0],O=p[1];return Object(d.useEffect)((function(){if(o){var e=qe(n);if(e){O(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;b(r)}}})),Object(d.createElement)(fe,null,Object(d.createElement)(Ue,{title:Object(w.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(d.createElement)(We,{backgroundColor:u,textColor:m})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){return"web"===d.Platform.OS&&Object(c.hasBlockSupport)(e,"__experimentalColor")},et=function(e){if("web"!==d.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"__experimentalColor");return Object(p.isObject)(t)&&!!t.linkColor},tt=function(e){if("web"!==d.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"__experimentalColor");return Object(p.isObject)(t)&&!!t.gradients};function nt(e,t,n){var r,o,c,i,a,l;if(!Je(t))return e;var s=tt(t),d=n.backgroundColor,b=n.textColor,p=n.gradient,m=n.style,O=je("background-color",d),g=ke(p),v=je("color",b),h=f()(e.className,v,g,(l={},Object(u.a)(l,O,!(s&&(null==m?void 0:null===(r=m.color)||void 0===r?void 0:r.gradient)||!O)),Object(u.a)(l,"has-text-color",b||(null==m?void 0:null===(o=m.color)||void 0===o?void 0:o.text)),Object(u.a)(l,"has-background",d||(null==m?void 0:null===(c=m.color)||void 0===c?void 0:c.background)||s&&(p||(null==m?void 0:null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(u.a)(l,"has-link-color",null==m?void 0:null===(a=m.color)||void 0===a?void 0:a.link),l));return e.className=h||void 0,e}var rt=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?ve(e,n[1]).color:t};function ot(e){var t,n,r,o,c,i,a=e.name,l=e.attributes,s=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),b=s.colors,f=s.gradients,p=s.__experimentalEnableLinkColor,m=Object(d.useRef)(l);if(Object(d.useEffect)((function(){m.current=l}),[l]),!Je(a))return null;var O,v=tt(a),h=l.style,j=l.textColor,k=l.backgroundColor,y=l.gradient;if(v&&y)O=ye(f,y);else if(v){var _;O=null==h?void 0:null===(_=h.color)||void 0===_?void 0:_.gradient}var E=function(t){return function(n){var r,o,c=he(b,n),i=t+"Color",a=Qe({},m.current.style,{color:Qe({},null===(r=m.current)||void 0===r?void 0:null===(o=r.style)||void 0===o?void 0:o.color,Object(u.a)({},t,(null==c?void 0:c.slug)?void 0:n))}),l=(null==c?void 0:c.slug)?c.slug:void 0,s=Object(u.a)({style:Ce(a)},i,l);e.setAttributes(s),m.current=Qe({},m.current,{},s)}};return Object(d.createElement)(Xe,{enableContrastChecking:"web"===d.Platform.OS&&!y&&!(null==h?void 0:null===(t=h.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[{label:Object(w.__)("Text Color"),onColorChange:E("text"),colorValue:ve(b,j,null==h?void 0:null===(n=h.color)||void 0===n?void 0:n.text).color},{label:Object(w.__)("Background Color"),onColorChange:E("background"),colorValue:ve(b,k,null==h?void 0:null===(r=h.color)||void 0===r?void 0:r.background).color,gradientValue:O,onGradientChange:v?function(t){var n,r=Ee(f,t);if(r){var o,c,i,a=Qe({},null===(o=m.current)||void 0===o?void 0:o.style,{color:Qe({},null===(c=m.current)||void 0===c?void 0:null===(i=c.style)||void 0===i?void 0:i.color,{gradient:void 0})});n={style:Ce(a),gradient:r}}else{var l,s,u,d=Qe({},null===(l=m.current)||void 0===l?void 0:l.style,{color:Qe({},null===(s=m.current)||void 0===s?void 0:null===(u=s.style)||void 0===u?void 0:u.color,{gradient:t})});n={style:Ce(d),gradient:void 0}}e.setAttributes(n),m.current=Qe({},m.current,{},n)}:void 0}].concat(Object(ie.a)(p&&et(a)?[{label:Object(w.__)("Link Color"),onColorChange:function(t){var n,r=he(b,t);e.setAttributes({style:Qe({},e.attributes.style,{color:Qe({},null===(n=e.attributes.style)||void 0===n?void 0:n.color,{link:(null==r?void 0:r.slug)?"var:preset|color|".concat(r.slug):t})})})},colorValue:rt(b,null==h?void 0:null===(o=h.color)||void 0===o?void 0:o.link),clearable:!!(null===(c=e.attributes.style)||void 0===c?void 0:null===(i=c.color)||void 0===i?void 0:i.link)}]:[]))})}Object(O.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Je(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),tt(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",nt),Object(O.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Je(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),nt(r,e,n)},e}));var ct=n(21);function it(e){var t=k().name,n="__experimentalFeatures.".concat(e);return Object(g.useSelect)((function(e){var r=(0,e("core/blocks").getBlockSupport)(t,n);if(void 0!==r)return r;var o=e("core/block-editor").getSettings;return Object(p.get)(o(),n)}),[t,n])}function at(e){var t=e.value,n=e.onChange;if(it("__experimentalDisableCustomLineHeight"))return null;var r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(d.createElement)("div",{className:"block-editor-line-height-control"},Object(d.createElement)(v.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==ct.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(w.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e){var t,n=e.name,r=e.attributes.style;if(!Object(c.hasBlockSupport)(n,"__experimentalLineHeight"))return null;return Object(d.createElement)(at,{value:null==r?void 0:null===(t=r.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var n=st({},r,{typography:st({},null==r?void 0:r.typography,{lineHeight:t})});e.setAttributes({style:Ce(n)})}})}var dt=n(139),bt=n.n(dt),ft=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function pt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function mt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Ot=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(v.FontSizePicker);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){if(!Object(c.hasBlockSupport)(t,"__experimentalFontSize"))return e;var r=new bt.a(e.className);r.add(mt(n.fontSize));var o=r.value;return e.className=o||void 0,e}function jt(e){var t,n=e.name,r=e.attributes,o=r.fontSize,i=r.style,a=e.setAttributes,l=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})).fontSizes;if(!Object(c.hasBlockSupport)(n,"__experimentalFontSize"))return null;var s=ft(l,o,null==i?void 0:null===(t=i.typography)||void 0===t?void 0:t.fontSize);return Object(d.createElement)(Ot,{value:s.size,onChange:function(e){var t=pt(l,e).slug;a({style:Ce(vt({},i,{typography:vt({},null==i?void 0:i.typography,{fontSize:t?void 0:e})})),fontSize:t})}})}function kt(e){var t=e.units,n=Object(pe.a)(e,["units"]),r=yt(t);return Object(d.createElement)(v.__experimentalUnitControl,Object(s.a)({units:r},n))}function yt(e){var t=it("__experimentalDisableCustomUnits"),n=!!t;return Array.isArray(t)?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t,e):!n&&e}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(O.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",ht),Object(O.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ht(r,e,n)},e}));function St(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,i=yt();if(!Object(c.hasBlockSupport)(n,"__experimentalPadding"))return null;return d.Platform.select({web:Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.__experimentalBoxControl,{values:null==r?void 0:null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=Et({},r,{spacing:{padding:e}});o({style:Ce(t)})},onChangeShowVisualizer:function(e){var t=Et({},r,{visualizers:{padding:e}});o({style:Ce(t)})},label:Object(w.__)("Padding"),units:i})),native:null})}var Ct={paddingTop:["spacing","padding","top"],paddingRight:["spacing","padding","right"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"]};function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt=["__experimentalColor","__experimentalLineHeight","__experimentalFontSize","__experimentalPadding"],xt=["__experimentalLineHeight","__experimentalFontSize"],Pt=function(e){return Bt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function Tt(e){if(Object(p.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function Nt(e,t,n){if(!Pt(t))return e;var r=n.style;return e.style=It({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=It({},Ct,{lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],"--wp--style--color--link":["color","link"]}),n={};return Object.entries(t).forEach((function(t){var r=Object(le.a)(t),o=r[0],c=r.slice(1),i=Object(ae.a)(c,1)[0];Object(p.has)(e,i)&&(n[o]=Tt(Object(p.get)(e,i)))})),n}(r),{},e.style),e}var Rt=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=xt.some((function(e){return Object(c.hasBlockSupport)(n,e)})),o=Object(c.hasBlockSupport)(n,"__experimentalPadding");return["web"===d.Platform.OS&&r&&Object(d.createElement)(fe,{key:"typography"},Object(d.createElement)(v.PanelBody,{title:Object(w.__)("Typography")},Object(d.createElement)(jt,t),Object(d.createElement)(ut,t))),Object(d.createElement)(ot,Object(s.a)({key:"colors"},t)),Object(d.createElement)(e,Object(s.a)({key:"edit"},t)),o&&Object(d.createElement)(me,{key:"spacing"},Object(d.createElement)(St,t))]}}),"withToolbarControls");Object(O.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Pt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Nt),Object(O.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Pt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Nt(r,e,n)},e})),Object(O.addFilter)("editor.BlockEdit","core/style/with-block-controls",Rt);var Dt=n(18),Lt=n(17),At=n(10),Mt=n(20),Ft=n(14),Vt=n(19);function Ht(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=[],Kt=function(e){return Object(m.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(t,Object(s.a)({},n,{colors:e}))}}),"withCustomColorPalette")},Wt=function(){return Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],Gt)}}))};function qt(e,t){var n=Object(p.reduce)(e,(function(e,t){return Ut({},e,{},Object(p.isString)(t)?Object(u.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(m.compose)([t,function(e){return function(t){Object(Vt.a)(c,t);var r,o=(r=c,function(){var e,t=Object(Ft.a)(r);if(Ht()){var n=Object(Ft.a)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Object(Mt.a)(this,e)});function c(e){var t;return Object(Dt.a)(this,c),(t=o.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(At.a)(t))},t.state={},t}return Object(Lt.a)(c,[{key:"getMostReadableColor",value:function(e){return function(e,t){return ge.a.mostReadable(t,Object(p.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(n,(function(t,n,r){var o=Object(p.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=he(n.props.colors,r);n.props.setAttributes((o={},Object(u.a)(o,e,c&&c.slug?c.slug:void 0),Object(u.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,Ut({},this.props,{colors:void 0},this.state,{},this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(p.reduce)(n,(function(e,n,c){var i=ve(o,r[c],r["custom".concat(Object(p.upperFirst)(c))]),a=t[c];return Object(p.get)(a,["color"])===i.color&&a?e[c]=a:e[c]=Ut({},i,{class:je(n,i.slug)}),e}),{})}}]),c}(d.Component)}])}function $t(e){return function(){for(var t=Kt(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(m.createHigherOrderComponent)(qt(r,t),"withCustomColors")}}function Yt(){for(var e=Wt(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(m.createHigherOrderComponent)(qt(n,e),"withColors")}var Xt=n(53),Zt=n.n(Xt);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Jt=function(e){var t=e.colorSettings,n=Object(pe.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(pe.a)(e,["value","onChange"]),{colorValue:t,onColorChange:n})}));return Object(d.createElement)(Ue,Object(s.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},en=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function tn(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,i=e.detectedColor,a=e.panelChildren,l=e.initialOpen;return Object(d.createElement)(Jt,Object(s.a)({title:t,initialOpen:l,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(pe.a)(e,["backgroundColor","textColor"]);return t=en(t,n,c),r=en(r,n,i),Object(d.createElement)(We,Object(s.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(p.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=en(r||t,n,c),a=en(a||t,n,i),Object(d.createElement)(We,Object(s.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)}function nn(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rn(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var an=window,ln=an.getComputedStyle,sn=an.Node,un=[],dn={textColor:Object(w.__)("Text Color"),backgroundColor:Object(w.__)("Background Color")},bn=function(e){return Object(d.createElement)(fe,null,Object(d.createElement)(tn,e))};function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(w.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(w.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,b=void 0===s?l:s,m=a.textColorTargetRef,O=void 0===m?l:m,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=k(),j=h.clientId,y=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:un}}),[j]),_=y.attributes,E=y.settingsColors,S=Object(g.useDispatch)("core/block-editor"),C=S.updateBlockAttributes,I=Object(d.useCallback)((function(e){return C(j,e)}),[C,j]),B=Object(d.useMemo)((function(){return Zt()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,b=void 0===s?"":s,m=i.style,O=void 0===m?{}:m,g={};r?g=Object(u.a)({},t,o):c&&(g=Object(u.a)({},t,c));var v={className:f()(b,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:cn({},g,{},O)};return Object(p.isFunction)(l)?l(v):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:f()(e.props.className,v.className),style:cn({},v.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(d.useMemo)((function(){return Zt()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));I(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),I(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[I,e.length]),P=Object(d.useState)(),T=Object(ae.a)(P,2),N=T[0],R=T[1],D=Object(d.useState)(),L=Object(ae.a)(D,2),A=L[0],M=L[1];return Object(d.useEffect)((function(){if(c){var e,t=!1,n=!1,r=nn(Object(p.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(ln(O.current).color),t){for(var l=b.current,s=ln(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===sn.ELEMENT_NODE;)l=l.parentNode,s=ln(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ie.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=cn({},n,{color:_[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||dn[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,b=r.color,f=void 0===b?n.color:b,m=r.colors,O=void 0===m?E:m,g=_[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:O.find((function(e){return e.slug===f}));return e[d]=B(o,i,a,f,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=f,e[d].setColor=x(o,O),t[d]={value:v?v.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:O},O||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:A,panelChildren:i};return cn({},n,{ColorPanel:Object(d.createElement)(tn,a),InspectorControlsColorPanel:Object(d.createElement)(bn,a)})}),[_,I,A,N].concat(Object(ie.a)(v)))}function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function On(e){return function(){var t,n=Object(Ft.a)(e);if(gn()){var r=Object(Ft.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(Mt.a)(this,t)}}function gn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var vn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(p.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(p.upperFirst)(t)),e}),{});return Object(m.createHigherOrderComponent)(Object(m.compose)([Object(g.withSelect)((function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}})),function(e){return function(t){Object(Vt.a)(o,t);var n=On(o);function o(e){var t;return Object(Dt.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(Lt.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(r,(function(t,n,r){var o=Object(p.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(p.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(u.a)(o,e,c&&c.slug?c.slug:void 0),Object(u.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,mn({},this.props,{fontSizes:void 0},this.state,{},this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(p.some)(r,c))return null;var i=Object(p.reduce)(Object(p.pickBy)(r,c),(function(e,t,r){var c=n[r],i=ft(o,c,n[t]);return e[r]=mn({},i,{class:mt(c)}),e}),{});return mn({},t,{},i)}}]),o}(d.Component)}]),"withFontSizes")},hn=n(259),jn=n(260),kn=n(261);function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _n=[{icon:hn.a,title:Object(w.__)("Align text left"),align:"left"},{icon:jn.a,title:Object(w.__)("Align text center"),align:"center"},{icon:kn.a,title:Object(w.__)("Align text right"),align:"right"}],En={position:"bottom right",isAlternate:!0};var Sn=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?_n:r,c=e.label,i=void 0===c?Object(w.__)("Change text alignment"):c,a=e.isCollapsed,l=void 0===a||a,s=e.isRTL;function b(e){return function(){return n(t===e?void 0:e)}}var f=Object(p.find)(o,(function(e){return e.align===t}));return Object(d.createElement)(v.ToolbarGroup,{isCollapsed:l,icon:f?f.icon:s?kn.a:hn.a,label:i,popoverProps:En,controls:o.map((function(e){var n=e.align;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:t===n,role:l?"menuitemradio":void 0,onClick:b(n)})}))})},Cn=n(160);function wn(e){var t=e.icon,n=e.showColors,r=void 0!==n&&n,o=e.className;"block-default"===Object(p.get)(t,["src"])&&(t={src:Cn.a});var c=Object(d.createElement)(v.Icon,{icon:t&&t.src?t.src:t}),i=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:i,className:f()("block-editor-block-icon",o,{"has-colors":r})},c)}function In(){return Object(g.select)("core/block-editor").getBlockInsertionPoint().rootClientId}function Bn(e){return Object(g.select)("core/block-editor").getInserterItems(e)}function xn(){var e=Object(g.select)("core/block-editor"),t=e.getSelectedBlockClientId,n=e.getBlockName,r=t();return r?n(r):null}var Pn=Object(p.once)((function(){var e=Object(g.select)("core/block-editor").getSettings().__experimentalFetchReusableBlocks;e&&e()}));var Tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?In:t,r=e.getInserterItems,o=void 0===r?Bn:r,i=e.getSelectedBlockName,a=void 0===i?xn:i;return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",options:function(){Pn();var e=a();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(ie.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(d.createElement)(wn,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(c.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),Nn=[];var Rn=function(e){var t=k().name,n=e.completers,r=void 0===n?Nn:n;return r=Object(d.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([Tn])),Object(O.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(p.clone)),e=Object(O.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(d.createElement)(v.Autocomplete,Object(s.a)({},e,{completers:r}))};var Dn=function(e){var t=e.label,n=void 0===t?Object(w.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?p.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(d.createElement)(v.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(d.createElement)(v.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Ln(e){var t=e.clientId,n=Object(g.useSelect)((function(e){return t?(0,e("core/block-editor").getBlockName)(t):null}),[t]);if(!n)return null;var r=Object(c.getBlockType)(n);return r?r.title:null}var An=function(){var e=Object(g.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(w.__)("Block breadcrumb")},Object(d.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(w.__)("Document")),!i&&Object(w.__)("Document")),c.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(Ln,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(Ln,{clientId:o})))};function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Fn=Object(d.createContext)({});function Vn(e){var t=e.value,n=e.children,r=Object(d.useContext)(Fn),o=Object(d.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},t)}),[r,t]);return Object(d.createElement)(Fn.Provider,{value:o,children:n})}var Hn=Fn,zn=function(){return Object(d.createElement)(v.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(d.createElement)(v.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},Un=function(e){var t=e.style,n=e.className;return Object(d.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(d.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(d.createElement)(zn,null)))},Gn=function(e){var t,n,r,o=e.children,c=Object(pe.a)(e,["children"]);return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(w.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(d.createElement)(r,null,Object(d.createElement)(n,null,Object(d.createElement)(Un,null)))}))}),renderContent:function(){return o}})},Kn={},Wn=Object(v.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(c.getBlockType)(r),i=Object(d.useContext)(Hn),a=Object(d.useMemo)((function(){return o&&o.context?Object(p.pick)(i,o.context):Kn}),[o,i]);if(!o)return null;var l=o.edit||o.save;if(Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(d.createElement)(l,Object(s.a)({},e,{context:a}));var u=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,b=f()(u,n.className);return Object(d.createElement)(l,Object(s.a)({},e,{context:a,className:b}))}));function qn(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(d.createElement)(j,{value:Object(d.useMemo)((function(){return t}),Object.values(t))},Object(d.createElement)(Wn,e))}var $n=Object(v.createSlotFill)("BlockFormatControls"),Yn=$n.Fill,Xn=$n.Slot;var Zn=function(e){return k().isSelected?Object(d.createElement)(Yn,null,(function(t){var n=Object(p.isEmpty)(t)?null:t;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};Zn.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(Xn,Object(s.a)({},e,{fillProps:t}))};var Qn=Zn,Jn=n(188),er=n(82),tr=n(31),nr=function(e){return e+1},rr=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var or=function(e,t,n,r,o){var c=Object(m.useReducedMotion)()||!r,i=Object(d.useReducer)(nr,0),a=Object(ae.a)(i,2),l=a[0],s=a[1],u=Object(d.useReducer)(nr,0),b=Object(ae.a)(u,2),f=b[0],p=b[1],O=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(ae.a)(O,2),v=g[0],h=g[1],j=e.current?rr(e.current):null,k=Object(d.useRef)();Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(j)if(k.current=Object(tr.getScrollContainer)(e.current),c){if(n&&k.current){e.current.style.transform="none";var t=rr(e.current);k.current.scrollTop=k.current.scrollTop-j.top+t.top}}else{e.current.style.transform="none";var r=rr(e.current),o={x:j.left-r.left,y:j.top-r.top,scrollTop:k.current?k.current.scrollTop-j.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),h(o)}}),[o]);var y=Object(er.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:function(e){n&&k.current&&!c&&e.y&&(k.current.scrollTop=v.scrollTop+e.y)}});return c?{}:{transformOrigin:"center",transform:Object(er.interpolate)([y.x,y.y],(function(e,t){return 0===e&&0===t?void 0:"translate3d(".concat(e,"px,").concat(t,"px,0)")})),zIndex:Object(er.interpolate)([y.x,y.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},cr=Object(er.animated)(v.__experimentalTreeGridRow);function ir(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,l=Object(pe.a)(e,["isSelected","position","level","rowCount","children","className","path"]),u=Object(d.useRef)(null),b=a.join("_"),p=or(u,t,!1,!0,b);return Object(d.createElement)(cr,Object(s.a)({ref:u,style:p,className:f()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},l),c)}var ar=Object(d.createElement)(v.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Polygon,{points:"14.5,8 10.6,12 14.5,16 13.5,17 8.4,12 13.5,7 "})),lr=Object(d.createElement)(v.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Polygon,{points:"9.5,16 13.4,12 9.5,8 10.5,7 15.6,12 10.5,17 "})),sr=(Object(d.createElement)(v.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(v.Path,{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"})),n(263)),ur=n(264);function dr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(w.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(w.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(w.sprintf)(Object(w._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(w.sprintf)(Object(w._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(w.sprintf)(Object(w.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(w.sprintf)(Object(w.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(w.sprintf)(Object(w.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var br=function(e,t,n){return"up"===e?"horizontal"===t?n?lr:ar:sr.a:"down"===e?"horizontal"===t?n?ar:lr:ur.a:null},fr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(w.__)("Move right"):Object(w.__)("Move left"):Object(w.__)("Move up"):"down"===e?"horizontal"===t?n?Object(w.__)("Move left"):Object(w.__)("Move right"):Object(w.__)("Move down"):null},pr=Object(d.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.__experimentalOrientation,i=Object(pe.a)(e,["clientIds","direction","__experimentalOrientation"]),a=Object(m.useInstanceId)(pr),l=Object(p.castArray)(n).length,u=Object(g.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(p.castArray)(n),f=Object(p.first)(b),m=a(f),O=i(f,m),g=i(Object(p.last)(b),m),v=l(m),h=s(f),j=0===O,k=g===v.length-1,y=(d(m)||{}).__experimentalMoverDirection,_=void 0===y?"vertical":y;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:O,isFirst:j,isLast:k,isRTL:u().isRTL,moverOrientation:o||_}}),[n,r]),b=u.blockType,O=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.moverOrientation,S=Object(g.useDispatch)("core/block-editor"),C=S.moveBlocksDown,w=S.moveBlocksUp,I="up"===r?w:C,B="block-editor-block-mover-button__description-".concat(a);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:br(r,E,_),label:fr(r,E,_),"aria-describedby":B},i,{onClick:O?null:function(e){I(n,h),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(d.createElement)("span",{id:B,className:"block-editor-block-mover-button__description"},dr(l,b&&b.title,y,j,k,"up"===r?-1:1,E,_)))})),mr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(pr,Object(s.a)({direction:"up",ref:t},e))})),Or=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(pr,Object(s.a)({direction:"down",ref:t},e))}));function gr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(d.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var vr=Object(d.createContext)({__experimentalFeatures:!1}),hr=function(){return Object(d.useContext)(vr)},jr=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var kr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:f()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(v.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{icon:jr,label:Object(w.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(v.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(v.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},yr=n(236),_r=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(v.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Er=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,b={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),O=function(e,t){return Object(yr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}(b.rawContent,m.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(_r,{title:Object(w.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(w.__)("Convert to HTML"),rawContent:b.rawContent,renderedContent:b.renderedContent}),Object(d.createElement)(_r,{title:Object(w.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:O,renderedContent:m.renderedContent}))};function Sr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cr=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Sr()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(e){var t;return Object(Dt.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(At.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(At.a)(t)),t}return Object(Lt.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(w.__)("Convert to Classic Block"),onClick:r},{title:Object(w.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(kr,{actions:[Object(d.createElement)(v.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(w._x)("Resolve","imperative verb")),a&&Object(d.createElement)(v.Button,{key:"edit",onClick:t,isPrimary:!0},Object(w.__)("Convert to HTML"))],secondaryActions:s},Object(w.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(v.Modal,{title:Object(w.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(Er,{block:i,onKeep:t,onConvert:n,convertor:wr,convertButtonText:Object(w.__)("Convert to Blocks")})))}}]),r}(d.Component),wr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Ir=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,wr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])(Cr),Br=Object(d.createElement)(kr,{className:"block-editor-block-list__block-crash-warning"},Object(w.__)("This block has encountered an error and cannot be previewed.")),xr=function(){return Br};function Pr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Tr=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Pr()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Lt.a)(r,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),r}(d.Component),Nr=n(89),Rr=n.n(Nr);var Dr=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(ae.a)(n,2),o=r[0],i=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(d.createElement)(Rr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})};function Lr(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function Ar(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function Mr(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Fr=n(186),Vr=[Object(d.createInterpolateElement)(Object(w.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(w.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(w.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(w.__)("Drag files into the editor to automatically insert media blocks."),Object(w.__)("Change a block's type by pressing the block icon on the toolbar.")];var Hr=function(){var e=Object(d.useState)(Math.floor(Math.random()*Vr.length)),t=Object(ae.a)(e,1)[0];return Object(d.createElement)(v.Tip,null,Vr[t])},zr=n(117),Ur=n(262);var Gr=function e(t){var n=t.onChange,r=Object(m.useInstanceId)(e);return Object(d.createElement)("div",{className:"block-editor-inserter__search"},Object(d.createElement)(v.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(r)},Object(w.__)("Search for a block")),Object(d.createElement)("input",{className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(r),type:"search",placeholder:Object(w.__)("Search for a block"),autoFocus:!0,onChange:function(e){return n(e.target.value)},autoComplete:"off"}),Object(d.createElement)(zr.a,{className:"block-editor-inserter__search-icon",icon:Ur.a}))};var Kr=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(wn,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},Wr={insertUsage:{}},qr={alignWide:!1,colors:[{name:Object(w.__)("Black"),slug:"black",color:"#000000"},{name:Object(w.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(w.__)("White"),slug:"white",color:"#ffffff"},{name:Object(w.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(w.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(w.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(w.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(w.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(w.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(w.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(w.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(w.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(w._x)("Small","font size name"),size:13,slug:"small"},{name:Object(w._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(w._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(w._x)("Large","font size name"),size:36,slug:"large"},{name:Object(w._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(w.__)("Thumbnail")},{slug:"medium",name:Object(w.__)("Medium")},{slug:"large",name:Object(w.__)("Large")},{slug:"full",name:Object(w.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__experimentalEnableRichImageEditing:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(w.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(w.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(w.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(w.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(w.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(w.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(w.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(w.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(w.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(w.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(w.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(w.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function $r(e,t,n){return[].concat(Object(ie.a)(e.slice(0,n)),Object(ie.a)(Object(p.castArray)(t)),Object(ie.a)(e.slice(n)))}function Yr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ie.a)(e);return o.splice(t,r),$r(o,e.slice(t,t+r),n)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Qr(o,r))})),n}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),Jr(n.innerBlocks,n.clientId))}),{})}function eo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(ie.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(pe.a)(o,["innerBlocks"]);r.push.apply(r,Object(ie.a)(c)),n[i.clientId]=t(i)}return n}function to(e){return eo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function no(e){return eo(e,(function(e){return e.attributes}))}function ro(e,t){return e===t?Zr({},e):t}function oo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var co=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var io=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=Zr({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Zr({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(eo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(eo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=Zr({},r.cache,{},co(o(c)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Zr({},r.cache,{},co(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=co(o(n.replacedClientIds));r.cache=Zr({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},co(Object(p.keys)(eo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Zr({},Object(p.omit)(r.cache,n.removedClientIds),{},co(Object(p.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCK_TO_POSITION":var a=[n.clientId];n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=Zr({},r.cache,{},co(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Zr({},r.cache,{},co(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Zr({},r.cache,{},co(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(ie.a)(r)),(c=r).push.apply(c,Object(ie.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=Zr({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=Zr({},n,{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(ie.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(pe.a)(c,["innerBlocks"]);o.push.apply(o,Object(ie.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,Zr({},n,{type:"INSERT_BLOCKS",index:0}))).order=Zr({},s.order,{},Object(p.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ie.a)(n),[o],Object(ie.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return Zr({},t,{byClientId:Zr({},Object(p.omit)(t.byClientId,r),{},to(n.blocks)),attributes:Zr({},Object(p.omit)(t.attributes,r),{},no(n.blocks)),order:Zr({},Object(p.omit)(t.order,r),{},Object(p.omit)(Qr(n.blocks),o)),parents:Zr({},Object(p.omit)(t.parents,r),{},Jr(n.blocks)),cache:Zr({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(eo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:Zr({},c,{isPersistentChange:a})}return c=Zr({},c,{isPersistentChange:i?!n:!oo(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return to(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Zr({},e,{},to(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(p.omit)(t.updates,"attributes");return Object(p.isEmpty)(n)?e:Zr({},e,Object(u.a)({},t.clientId,Zr({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Zr({},Object(p.omit)(e,t.replacedClientIds),{},to(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return no(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Zr({},e,{},no(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Zr({},e,Object(u.a)({},t.clientId,Zr({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(!e[t.clientId])return e;var n=Object(p.reduce)(t.attributes,(function(n,r,o){return r!==n[o]&&((n=ro(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Zr({},e,Object(u.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Zr({},Object(p.omit)(e,t.replacedClientIds),{},no(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Qr(t.blocks);case"RECEIVE_BLOCKS":return Zr({},e,{},Object(p.omit)(Qr(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=Qr(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return Zr({},e,{},c,Object(u.a)({},r,$r(o,c[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,s=t.fromRootClientId,d=void 0===s?"":s,b=t.toRootClientId,f=void 0===b?"":b,m=t.clientId,O=t.index,g=void 0===O?e[f].length:O;if(d===f){var v=e[f],h=v.indexOf(m);return Zr({},e,Object(u.a)({},f,Yr(e[f],h,g)))}return Zr({},e,(l={},Object(u.a)(l,d,Object(p.without)(e[d],m)),Object(u.a)(l,f,$r(e[f],m,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return Zr({},e,Object(u.a)({},y,Yr(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var C=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(C),x=Object(p.last)(C),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return Zr({},e,Object(u.a)({},I,Yr(P,T,T+1,C.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=Qr(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Zr({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ie.a)(e),Object(ie.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(ie.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Jr(t.blocks);case"RECEIVE_BLOCKS":return Zr({},e,{},Jr(t.blocks));case"INSERT_BLOCKS":return Zr({},e,{},Jr(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Zr({},e,Object(u.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Zr({},Object(p.omit)(e,t.replacedClientIds),{},Jr(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?Zr({},e,Object(u.a)({},r,o)):e}});function ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var lo=Object(g.combineReducers)({blocks:io,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return ao(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return ao(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition?t.initialPosition:"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type?e:"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return Zr({},e,Object(u.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:Zr({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return Zr({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Zr({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Zr({},e,{insertUsage:Zr({},e.insertUsage,Object(u.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(u.a)({},t.clientId,t.attributes)}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},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"STOP_TYPING":return e}},highlightedBlock:function(e,t){var n=t.clientId,r=t.isHighlighted;if("TOGGLE_BLOCK_HIGHLIGHT"===t.type){if(r)return n;if(e===n)return null}return e}}),so=n(102),uo=n.n(so),bo=n(235),fo=n.n(bo),po=n(39),mo=n(23),Oo=n.n(mo);function go(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return{type:"SELECT",storeName:e,selectorName:t,args:r}}var vo={SELECT:Object(g.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,c=t.args;return(n=e.select(r))[o].apply(n,Object(ie.a)(c))}})),SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))}};function ho(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jo(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _o=Oo.a.mark(Do),Eo=Oo.a.mark(zo),So=Oo.a.mark(Uo),Co=Oo.a.mark(Xo),wo=Oo.a.mark(tc),Io=Oo.a.mark(rc),Bo=Oo.a.mark(sc),xo=Oo.a.mark(wc),Po=Oo.a.mark(Ic),To=Oo.a.mark(Bc),No=Oo.a.mark(xc),Ro=Oo.a.mark(Tc);function Do(){return Oo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,go("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=6;break}return e.next=6,jc();case 6:case"end":return e.stop()}}),_o)}function Lo(e){return{type:"RESET_BLOCKS",blocks:e}}function Ao(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function Mo(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function Fo(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function Vo(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function zo(e){var t;return Oo.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,go("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Ho(t,-1);case 6:case"end":return n.stop()}}),Eo)}function Uo(e){var t;return Oo.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,go("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Ho(t);case 6:case"end":return n.stop()}}),So)}function Go(){return{type:"START_MULTI_SELECT"}}function Ko(){return{type:"STOP_MULTI_SELECT"}}function Wo(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function qo(){return{type:"CLEAR_SELECTED_BLOCK"}}function $o(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Yo(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return yo({},e,{attributes:yo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function Xo(e,t,n,r){var o,c,i;return Oo.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=Yo,a.t1=Object(p.castArray)(t),a.next=5,go("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,go("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c<t.length)){a.next=21;break}return i=t[c],a.next=15,go("core/block-editor","canInsertBlockType",i.name,o);case 15:if(a.sent){a.next=18;break}return a.abrupt("return");case 18:c++,a.next=11;break;case 21:return a.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r};case 23:return a.delegateYield(Do(),"t3",24);case 24:case"end":return a.stop()}}),Co)}function Zo(e,t){return Xo(e,t)}function Qo(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var Jo=Qo("MOVE_BLOCKS_DOWN"),ec=Qo("MOVE_BLOCKS_UP");function tc(e){var t,n,r,o,c,i,a=arguments;return Oo.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return t=a.length>1&&void 0!==a[1]?a[1]:"",n=a.length>2&&void 0!==a[2]?a[2]:"",r=a.length>3?a[3]:void 0,l.next=5,go("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(c={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,c;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,go("core/block-editor","getBlockName",e);case 17:return i=l.sent,l.next=20,go("core/block-editor","canInsertBlockType",i,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,c;case 24:case"end":return l.stop()}}),wo)}function nc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return rc([e],t,n,r)}function rc(e,t,n){var r,o,c,i,a,l=arguments;return Oo.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=Yo,s.t1=Object(p.castArray)(e),s.next=5,go("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=ho(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,go("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),Io,null,[[9,21,24,27]])}function oc(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function cc(){return{type:"HIDE_INSERTION_POINT"}}function ic(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function ac(){return{type:"SYNCHRONIZE_TEMPLATE"}}function lc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function sc(e){var t,n,r=arguments;return Oo.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(t=!(r.length>1&&void 0!==r[1])||r[1],e&&e.length){o.next=3;break}return o.abrupt("return");case 3:return e=Object(p.castArray)(e),o.next=6,go("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=o.sent,o.next=9,go("core/block-editor","getTemplateLock",n);case 9:if(!o.sent){o.next=12;break}return o.abrupt("return");case 12:if(!t){o.next=15;break}return o.next=15,zo(e[0]);case 15:return o.next=17,{type:"REMOVE_BLOCKS",clientIds:e};case 17:return o.delegateYield(Do(),"t0",18);case 18:case"end":return o.stop()}}),Bo)}function uc(e,t){return sc([e],t)}function dc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function bc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function fc(){return{type:"START_TYPING"}}function pc(){return{type:"STOP_TYPING"}}function mc(){return{type:"START_DRAGGING_BLOCKS"}}function Oc(){return{type:"STOP_DRAGGING_BLOCKS"}}function gc(){return{type:"ENTER_FORMATTED_TEXT"}}function vc(){return{type:"EXIT_FORMATTED_TEXT"}}function hc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function jc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return nc(Object(c.createBlock)(r,e),n,t)}function kc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function yc(e){return{type:"UPDATE_SETTINGS",settings:e}}function _c(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Ec(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Sc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Cc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function wc(){var e,t=arguments;return Oo.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Ge.speak)(Object(w.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Ge.speak)(Object(w.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),xo)}function Ic(e){var t,n,r,o,i;return Oo.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e||e.length){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,go("core/block-editor","getBlocksByClientId",e);case 4:return t=a.sent,a.next=7,go("core/block-editor","getBlockRootClientId",e[0]);case 7:if(n=a.sent,!Object(p.some)(t,(function(e){return!e}))){a.next=10;break}return a.abrupt("return");case 10:if(r=t.map((function(e){return e.name})),!Object(p.some)(r,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){a.next=13;break}return a.abrupt("return");case 13:return a.next=15,go("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),n);case 15:return o=a.sent,i=t.map((function(e){return Object(c.cloneBlock)(e)})),a.next=19,rc(i,o+1,n);case 19:if(!(i.length>1)){a.next=22;break}return a.next=22,Wo(Object(p.first)(i).clientId,Object(p.last)(i).clientId);case 22:case"end":return a.stop()}}),Po)}function Bc(e){var t,n;return Oo.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,go("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,go("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,go("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,jc({},t,n);case 15:case"end":return r.stop()}}),To)}function xc(e){var t,n;return Oo.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,go("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,go("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,go("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,jc({},t,n+1);case 15:case"end":return r.stop()}}),No)}function Pc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Tc(e){return Oo.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Pc(e,!1);case 6:case"end":return t.stop()}}),Ro)}function Nc(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var Rc=n(42);function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ac=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(d.createElement)(v.G,null,Object(d.createElement)(v.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),Mc=[];function Fc(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function Vc(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function Hc(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var zc=Object(Rc.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Lc({},n,{attributes:Hc(e,t),innerBlocks:oa(e,t)?Mc:Gc(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),Uc=Object(Rc.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Lc({},n,{attributes:Hc(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),Gc=Object(Rc.a)((function(e,t){return Object(p.map)(_i(e,t),(function(t){return zc(e,t)}))}),(function(e,t){return Object(p.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),Kc=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=_i(t,n);return[].concat(Object(ie.a)(r),Object(ie.a)(e(t,r)))}))},Wc=Object(Rc.a)((function(e){var t=_i(e);return[].concat(Object(ie.a)(t),Object(ie.a)(Kc(e,t)))}),(function(e){return[e.blocks.order]})),qc=Object(Rc.a)((function(e,t){var n=Wc(e);return t?Object(p.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),$c=Object(Rc.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return zc(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function Yc(e,t){return _i(e,t).length}function Xc(e){return e.selectionStart}function Zc(e){return e.selectionEnd}function Qc(e){return e.selectionStart.clientId}function Jc(e){return e.selectionEnd.clientId}function ei(e){var t=pi(e).length;return t||(e.selectionStart.clientId?1:0)}function ti(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function ni(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function ri(e){var t=ni(e);return t?zc(e,t):null}function oi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var ci=Object(Rc.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),ii=Object(Rc.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=ci(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:Fc(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function ai(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function li(e,t){for(var n,r=ni(e),o=[].concat(Object(ie.a)(ci(e,t)),[t]),c=[].concat(Object(ie.a)(ci(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function si(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ni(e)),void 0===t&&(t=n<0?Oi(e):gi(e)),!t)return null;var r=oi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0?null:a===c.length?null:c[a]}function ui(e,t){return si(e,t,-1)}function di(e,t){return si(e,t,1)}function bi(e){return e.initialPosition}var fi=Object(Rc.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return Mc;if(t.clientId===n.clientId)return[t.clientId];var r=oi(e,t.clientId);if(null===r)return Mc;var o=_i(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function pi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?Mc:fi(e)}var mi=Object(Rc.a)((function(e){var t=pi(e);return t.length?t.map((function(t){return zc(e,t)})):Mc}),(function(e){return[].concat(Object(ie.a)(fi.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Oi(e){return Object(p.first)(pi(e))||null}function gi(e){return Object(p.last)(pi(e))||null}function vi(e,t){return Oi(e)===t}function hi(e,t){return-1!==pi(e).indexOf(t)}var ji=Object(Rc.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=hi(e,n=oi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function ki(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function yi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function _i(e,t){return e.blocks.order[t||""]||Mc}function Ei(e,t,n){return _i(e,n).indexOf(t)}function Si(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Ci(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(_i(e,t),(function(t){return Si(e,t)||hi(e,t)||n&&Ci(e,t,n)}))}function wi(e,t){if(!t)return!1;var n=pi(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Ii(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function Bi(e){return e.isMultiSelecting}function xi(e){return e.isSelectionEnabled}function Pi(e,t){return e.blocksMode[t]||"visual"}function Ti(e){return e.isTyping}function Ni(e){return e.isDraggingBlocks}function Ri(e){return e.isCaretWithinFormattedText}function Di(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=oi(e,c)||void 0,n=Ei(e,o.clientId,t)+1):n=_i(e).length,{rootClientId:t,index:n}}function Li(e){return null!==e.insertionPoint}function Ai(e){return e.template.isValid}function Mi(e){return e.settings.template}function Fi(e,t){if(!t)return e.settings.templateLock;var n=qi(e,t);return n?n.templateLock:null}var Vi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=$i(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!Fi(e,n);if(s)return!1;var u=qi(e,n),d=Object(p.get)(u,["allowedBlocks"]),b=r(d,t),f=o.parent,m=Fc(e,n),O=r(f,m);return null!==b&&null!==O?b||O:null!==b?b:null===O||O},Hi=Object(Rc.a)(Vi,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function zi(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Ui=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&Vi(e,t.name,n)},Gi=Object(Rc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)($c(e,Wc(e)),{name:t.name}));var i=zi(e,r)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:r,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=Zi(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=zi(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:Ac,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return Ui(e,n,t)})).map(r),a=Vi(e,"core/block",t)?ea(e).map(o):[];return Object(p.orderBy)([].concat(Object(ie.a)(i),Object(ie.a)(a)),["frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,ea(e),Object(c.getBlockTypes)()]})),Ki=Object(Rc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return Ui(e,n,t)}));if(n)return!0;var r=Vi(e,"core/block",t)&&ea(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,ea(e),Object(c.getBlockTypes)()]})),Wi=Object(Rc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return Ui(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function qi(e,t){return e.blockListSettings[t]}function $i(e){return e.settings}function Yi(e){return e.blocks.isPersistentChange}var Xi=Object(Rc.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Zi=Object(Rc.a)((function(e,t){var n=Object(p.find)(ea(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[ea(e)]}));function Qi(e){return e.blocks.isIgnoredChange}function Ji(e){return e.lastBlockAttributesChange}function ea(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],Mc)}function ta(e){return e.isNavigationMode}function na(e){return!!e.automaticChangeStatus}function ra(e,t){return e.highlightedBlock===t}function oa(e,t){return!!e.blocks.controlledInnerBlocks[t]}function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aa={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(ae.a)(e.blocks,2),a=o[0],l=o[1],s=zc(r,a),u=Object(c.getBlockType)(s.name);if(u.merge){var d=zc(r,l),b=Object(c.getBlockType)(d.name),f=Xc(r),m=f.clientId,O=f.attributeKey,g=f.offset,v=(m===a?u:b).attributes[O],h=(m===a||m===l)&&void 0!==O&&void 0!==g&&!!v;v||("number"==typeof O?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(po.a)(O))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(c.cloneBlock)(s),k=Object(c.cloneBlock)(d);if(h){var y=m===a?j:k,_=y.attributes[O],E=v.multiline,S=v.__unstableMultilineWrapperTags,C=v.__unstablePreserveWhiteSpace,w=Object(i.insert)(Object(i.create)({html:_,multilineTag:E,multilineWrapperTags:S,preserveWhiteSpace:C}),"†",g,g);y.attributes[O]=Object(i.toHTMLString)({value:w,multilineTag:E,preserveWhiteSpace:C})}var I=s.name===d.name?[k]:Object(c.switchToBlockType)(k,s.name);if(I&&I.length){var B=u.merge(j.attributes,I[0].attributes);if(h){var x=Object(p.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),P=B[x],T=u.attributes[x],N=T.multiline,R=T.__unstableMultilineWrapperTags,D=T.__unstablePreserveWhiteSpace,L=Object(i.create)({html:P,multilineTag:N,multilineWrapperTags:R,preserveWhiteSpace:D}),A=L.text.indexOf("†"),M=Object(i.remove)(L,A,A+1),F=Object(i.toHTMLString)({value:M,multilineTag:N,preserveWhiteSpace:D});B[x]=F,n(hc(s.clientId,x,A,A))}n(Xo([s.clientId,d.clientId],[ia({},s,{attributes:ia({},s.attributes,{},B)})].concat(Object(ie.a)(I.slice(1)))))}}else n(Ho(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=Mi(n),o=Fi(n),i=!r||"all"!==o||Object(c.doBlocksMatchTemplate)(e.blocks,r);if(i!==Ai(n))return ic(i)}],MULTI_SELECT:function(e,t){var n=ei((0,t.getState)());Object(Ge.speak)(Object(w.sprintf)(Object(w._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Gc(n),o=Mi(n);return Lo(Object(c.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var la=function(e){var t,n=[uo()(aa),fo.a],r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}};return t=n.map((function(e){return e(o)})),r=p.flowRight.apply(void 0,Object(ie.a)(t))(e.dispatch),e.dispatch=r,e};function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ua={reducer:lo,selectors:o,actions:r,controls:vo},da=Object(g.registerStore)("core/block-editor",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ua,{persist:["preferences"]}));la(da);function ba(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?p.noop:i,l=e.onInput,s=void 0===l?p.noop:l,u=Object(g.useRegistry)(),b=u.dispatch("core/block-editor"),f=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,v=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=u.select("core/block-editor"),k=j.getBlockName,y=j.getBlocks,_=Object(d.useRef)({incoming:null,outgoing:[]}),E=Object(d.useRef)(s),S=Object(d.useRef)(a);Object(d.useEffect)((function(){var e,t=u.select("core/block-editor"),r=t.getSelectionStart,o=t.getSelectionEnd,c=t.isLastBlockChangePersistent,i=t.__unstableIsLastBlockChangeIgnored,l=c(),d=!1;E.current=s,S.current=a;var b=u.subscribe((function(){if(E.current===s&&S.current===a&&(null===n||null!==k(n))){var t=c(),u=y(n),b=u!==e;if(e=u,b&&(_.current.incoming||i()))return _.current.incoming=null,void(l=t);if(b||d&&!b&&t&&!l)l=t,_.current.outgoing.push(e),(l?a:s)(e,{selectionStart:r(),selectionEnd:o()});d=b}}));return function(){return b()}}),[u,a,s,n]),Object(d.useEffect)((function(){_.current.outgoing.includes(r)?Object(p.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):y(n)!==r&&(_.current.outgoing=[],_.current.incoming=r,r&&(h(),n?(v(n,!0),h(),O(n,r,!1)):f(r)),o&&c&&m(o,c))}),[r,n])}var fa=Object(m.createHigherOrderComponent)((function(e){return Object(g.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(pe.a)(t,["useSubRegistry","registry"]);if(!r)return Object(d.createElement)(e,Object(s.a)({registry:o},c));var i=Object(d.useState)(null),a=Object(ae.a)(i,2),l=a[0],u=a[1];return Object(d.useEffect)((function(){var e=Object(g.createRegistry)({},o),t=e.registerStore("core/block-editor",ua);la(t),u(e)}),[o]),l?Object(d.createElement)(g.RegistryProvider,{value:l},Object(d.createElement)(e,Object(s.a)({registry:l},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(g.useDispatch)("core/block-editor").updateSettings;return Object(d.useEffect)((function(){r(n)}),[n]),ba(e),t})),pa=n(60);var ma=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,i=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(c.getDefaultBlockName)(),d=i(t.lastBlockClientId),b=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:b}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(pa.decodeEntities)(c)||Object(w.__)("Start writing or type / to choose a block");return Object(d.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(d.createElement)(Rr.a,{role:"button","aria-label":Object(w.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(d.createElement)(pl,{rootClientId:i,position:"top right",isAppender:!0}))})),Oa=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M16 11.2h-3.2V8h-1.6v3.2H8v1.6h3.2V16h1.6v-3.2H16z"}));var ga=Object(d.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(d.createElement)(pl,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,l=e.isOpen,s=e.blockTitle,u=e.hasSingleBlockType;n=u?Object(w.sprintf)(Object(w._x)("Add %s","directly add the only allowed block"),s):Object(w._x)("Add block","Generic label for block inserter button");var b=!u,p=Object(d.createElement)(v.Button,{ref:t,onFocus:c,tabIndex:i,className:f()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":b?"true":void 0,"aria-expanded":b?l:void 0,disabled:a,label:n},!u&&Object(d.createElement)(v.VisuallyHidden,{as:"span"},n),Object(d.createElement)(zr.a,{icon:Oa}),u&&Object(d.createElement)("span",{className:"block-editor-button-block-appender__label"},n," "));return b&&(p=Object(d.createElement)(v.Tooltip,{text:n}," ",p," ")),p},isAppender:!0})}));function va(e){e.stopPropagation()}var ha=Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,i=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:i(Object(c.getDefaultBlockName)(),n)}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,l=e.tagName,s=void 0===l?"div":l;return c||!1===i?null:(t=i?Object(d.createElement)(i,null):o?Object(d.createElement)(ma,{rootClientId:r,lastBlockClientId:Object(p.last)(n)}):Object(d.createElement)(ga,{rootClientId:r,className:"block-list-appender__toggle"}),Object(d.createElement)(s,{tabIndex:-1,onFocus:va,className:f()("block-list-appender",a)},t))}));function ja(e){var t=e.element,n=e.rootClientId,r=Object(d.useState)(null),o=Object(ae.a)(r,2),i=o[0],a=o[1];var l=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getClientIdsOfDescendants,c=t.getSettings,a=t.getTemplateLock;return{getBlockIndex:r,blockIndex:r(i,n),getClientIdsOfDescendants:o,hasUploadPermissions:!!c().mediaUpload,isLockedAll:"all"===a(n)}}),[n,i]),s=l.getBlockIndex,u=l.blockIndex,b=l.getClientIdsOfDescendants,f=l.hasUploadPermissions,p=l.isLockedAll,m=Object(g.useDispatch)("core/block-editor"),O=m.insertBlocks,h=m.updateBlockAttributes,j=m.moveBlockToPosition,k=Object(d.useCallback)((function(e){if(f){var t=Object(c.findTransform)(Object(c.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(t){var r=t.transform(e,h);O(r,u,n)}}}),[f,h,O,u,n]),y=Object(d.useCallback)((function(e){var t=Object(c.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&O(t,u,n)}),[O,u,n]),_=Object(d.useCallback)((function(e){var t=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),r=t.srcRootClientId,o=t.srcClientId,c=t.srcIndex,a=t.type;if("block"===a&&o!==i&&!function(e,t){return b([e]).some((function(e){return e===t}))}(o,i||n)){var l,d,f=i?s(i,n):void 0,p=f&&c<f&&((l=r)===(d=n)||1==!l&&1==!d)?u-1:u;j(o,r,n,p)}}),[b,s,i,u,j,n]),E=Object(v.__unstableUseDropZone)({element:t,onFilesDrop:k,onHTMLDrop:y,onDrop:_,isDisabled:p,withPosition:!0}).position;if(Object(d.useEffect)((function(){if(E){var e=E.y-t.current.getBoundingClientRect().top,n=Array.from(t.current.children).find((function(t){return t.offsetTop+t.offsetHeight/2>e}));if(!n)return;var r=n.id.slice("block-".length);if(!r)return;a(r)}}),[E]),E)return i}var ka,ya=Object(d.forwardRef)((function(e,t){var n=e.className,r=e.rootClientId,o=e.renderAppender,c=e.__experimentalTagName,i=void 0===c?"div":c,a=e.__experimentalAppenderTagName,l=e.__experimentalPassedProps,u=void 0===l?{}:l,b=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockOrder,o=t.isMultiSelecting,c=t.getSelectedBlockClientId,i=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getGlobalBlockCount,s=t.isTyping;return{blockClientIds:n(r),isMultiSelecting:o(),selectedBlockClientId:c(),multiSelectedBlockClientIds:i(),hasMultiSelection:a(),enableAnimation:!s()&&l()<=200}}),[r]),p=b.blockClientIds,m=b.isMultiSelecting,O=b.selectedBlockClientId,v=b.multiSelectedBlockClientIds,h=b.hasMultiSelection,j=b.enableAnimation,k=r?i:Bs,y=ja({element:t,rootClientId:r});return Object(d.createElement)(k,Object(s.a)({},u,{ref:t,className:f()("block-editor-block-list__layout",n,u.className)}),p.map((function(e,t){var n=h?v.includes(e):O===e;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!n},Object(d.createElement)(Fs,{rootClientId:r,clientId:e,isMultiSelecting:m,index:t,enableAnimation:j,className:e===y?"is-drop-target":void 0}))})),Object(d.createElement)(ha,{tagName:a,rootClientId:r,renderAppender:o,className:null===y?"is-drop-target":void 0}))})),_a=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(ya,Object(s.a)({ref:t||n},e)))}));function Ea(e){var t=e.onClick;return Object(d.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(d.createElement)(v.Disabled,null,Object(d.createElement)(_a,null)))}var Sa=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(m.useResizeObserver)(),o=Object(ae.a)(r,2),c=o[0],i=o[1].width,a=Object(m.useResizeObserver)(),l=Object(ae.a)(a,2),s=l[0],u=l[1].height;ka=ka||Object(m.pure)(_a);var b=(i-2*n)/t;return Object(d.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:u*b+2*n}},c,Object(d.createElement)(v.Disabled,{style:{transform:"scale(".concat(b,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},s,Object(d.createElement)(ka,null)))};var Ca=Object(d.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?700:o,i=e.__experimentalLive,a=void 0!==i&&i,l=e.__experimentalOnClick,s=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),u=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]);return t&&0!==t.length?Object(d.createElement)(fa,{value:u,settings:s},a?Object(d.createElement)(Ea,{onClick:l}):Object(d.createElement)(Sa,{viewportWidth:c,__experimentalPadding:r})):null}));function wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ba=function(e){var t=e.item,n=Object(c.getBlockType)(t.name);return Object(d.createElement)("div",{className:"block-editor-inserter__menu-preview-panel"},Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(c.isReusableBlock)(t)||n.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(Ca,{__experimentalPadding:16,viewportWidth:500,blocks:n.example?Object(c.getBlockFromExample)(t.name,{attributes:Ia({},n.example.attributes,{},t.initialAttributes),innerBlocks:n.example.innerBlocks}):Object(c.createBlock)(t.name,t.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(w.__)("No Preview Available."))),!Object(c.isReusableBlock)(t)&&Object(d.createElement)(Kr,{blockType:t}))},xa=n(28),Pa=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(I.Path,{d:"M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z"}));var Ta=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,c=e.className,i=Object(pe.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(d.createElement)("li",{className:"block-editor-block-types-list__list-item"},Object(d.createElement)(v.Button,Object(s.a)({className:f()("block-editor-block-types-list__item",c),onClick:function(e){e.preventDefault(),n()},disabled:r},i),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(wn,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Da=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,i=void 0===o?function(){}:o,a=e.children,l=n.reduce((function(e,t){var n=t.variations,r=void 0===n?[]:n;return r.some((function(e){return e.isDefault}))||e.push(t),r.length&&(e=e.concat(r.map((function(e){return Ra({},t,{id:"".concat(t.id,"-").concat(e.name),icon:e.icon||t.icon,title:e.title||t.title,description:e.description||t.description,example:e.hasOwnProperty("example")?e.example:t.example,initialAttributes:Ra({},t.initialAttributes,{},e.attributes),innerBlocks:e.innerBlocks})})))),e}),[]);return Object(d.createElement)("ul",{role:"list",className:"block-editor-block-types-list"},l.map((function(e){return Object(d.createElement)(Ta,{key:e.id,className:Object(c.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),i(null)},onFocus:function(){return i(e)},onMouseEnter:function(){return i(e)},onMouseLeave:function(){return i(null)},onBlur:function(){return i(null)},isDisabled:e.isDisabled,title:e.title})})),a)};var La=Object(m.compose)(Object(m.ifCondition)((function(e){var t=e.items;return t&&t.length>0})),Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(n));return{rootBlockTitle:r&&r.title,rootBlockIcon:r&&r.icon}})))((function(e){var t=e.rootBlockIcon,n=e.rootBlockTitle,r=e.items,o=Object(pe.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(d.createElement)("div",{className:"block-editor-inserter__child-blocks"},(t||n)&&Object(d.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(d.createElement)(wn,{icon:t,showColors:!0}),n&&Object(d.createElement)("h2",null,n)),Object(d.createElement)(Da,Object(s.a)({items:r},o)))})),Aa=Object(v.createSlotFill)("__experimentalInserterMenuExtension"),Ma=Aa.Fill,Fa=Aa.Slot;Ma.Slot=Fa;var Va=Ma;function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Ua=function(e,t){return Object(p.differenceWith)(e,za(t),(function(e,t){return t.includes(e)}))},Ga=function(e,t,n,r){var o=za(r);return 0===o.length?e:Ka(e,r,{getCategory:function(e){var n;return null===(n=Object(p.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,za(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{variations:t})}))},Ka=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=za(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,d=n.getKeywords,b=void 0===d?c:d,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,O=void 0===m?a:m,g=n.getVariations,v=void 0===g?l:g;return e.filter((function(e){var t=u(e),n=b(e),o=p(e),c=O(e),i=v(e),a=[t].concat(Object(ie.a)(n),[o,c],Object(ie.a)(i)).join(" ");return 0===Ua(r,a).length}))};var Wa=function(e){var t=e.title,n=e.icon,r=e.children;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(d.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(d.createElement)(v.Icon,{icon:n})),Object(d.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var qa=function(){return Object(d.createElement)("div",{className:"block-editor-inserter__no-results"},Object(d.createElement)(zr.a,{className:"block-editor-inserter__no-results-icon",icon:Cn.a}),Object(d.createElement)("p",null,Object(w.__)("No results found.")))},$a=function(e,t){var n=Object(g.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(d.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(ae.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]};function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Xa=Object(m.compose)(v.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak,i=$a(t,n),a=Object(ae.a)(i,4),l=a[0],s=a[1],b=a[2],f=a[3],m=Object(g.useSelect)((function(e){var n=e("core/block-editor").getBlockName;return(0,e("core/blocks").getChildBlockNames)(n(t))}),[t]),O=Object(d.useMemo)((function(){return Ga(l,s,b,o)}),[o,l,s,b]),v=Object(d.useMemo)((function(){return O.filter((function(e){var t=e.name;return Object(p.includes)(m,t)}))}),[O,m]),h=Object(d.useMemo)((function(){return l.slice(0,6)}),[l]),j=Object(d.useMemo)((function(){return O.filter((function(e){return"reusable"===e.category}))}),[O]),k=Object(d.useMemo)((function(){return O.filter((function(e){return!e.category}))}),[O]),y=Object(d.useMemo)((function(){var e=function(e){return Object(p.findIndex)(s,(function(t){return t.slug===e.category}))};return Object(p.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(t){return Object(p.sortBy)(t,e)}),(function(e){return Object(p.groupBy)(e,"category")}))(O)}),[O,s]),_=Object(d.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return Object.keys(b).forEach((function(t){e[t]=O.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[O,b]);Object(d.useEffect)((function(){var e=Object(w.sprintf)(Object(w._n)("%d result found.","%d results found.",O.length),O.length);c(e)}),[o,c]);var E=!Object(p.isEmpty)(O),S=v.length>0;return Object(d.createElement)("div",null,Object(d.createElement)(La,{rootClientId:t,items:v,onSelect:f,onHover:r}),!S&&!!h.length&&!o&&Object(d.createElement)(Wa,{title:Object(w._x)("Most used","blocks")},Object(d.createElement)(Da,{items:h,onSelect:f,onHover:r})),!S&&Object(p.map)(s,(function(e){var t=y[e.slug];return t&&t.length?Object(d.createElement)(Wa,{key:e.slug,title:e.title,icon:e.icon},Object(d.createElement)(Da,{items:t,onSelect:f,onHover:r})):null})),!S&&!!k.length&&Object(d.createElement)(Wa,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(w.__)("Uncategorized")},Object(d.createElement)(Da,{items:k,onSelect:f,onHover:r})),!S&&Object(p.map)(b,(function(e,t){var n=_[t];return n&&n.length?Object(d.createElement)(Wa,{key:t,title:e.title,icon:e.icon},Object(d.createElement)(Da,{items:n,onSelect:f,onHover:r})):null})),!S&&!!j.length&&Object(d.createElement)(Wa,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(w.__)("Reusable"),icon:Pa},Object(d.createElement)(Da,{items:j,onSelect:f,onHover:r}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(xa.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(w.__)("Manage all reusable blocks"))),Object(d.createElement)(Va.Slot,{fillProps:{onSelect:f,onHover:r,filterValue:o,hasItems:E}},(function(e){return e.length?e:E?null:Object(d.createElement)(qa,null)})))})),Za=n(135);function Qa(e,t){return"reset"===t.type?t.list:"append"===t.type?[].concat(Object(ie.a)(e),[t.item]):e}var Ja=function(e){var t=Object(d.useReducer)(Qa,[]),n=Object(ae.a)(t,2),r=n[0],o=n[1];return Object(d.useEffect)((function(){var t=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!t.includes(o))break;n.push(o)}return n}(e,r);o({type:"reset",list:t});var n=Object(Za.createQueue)();return n.add({},function t(r){return function(){e.length<=r||(o({type:"append",item:e[r]}),n.add({},t(r+1)))}}(t.length)),function(){return n.reset()}}),[e]),r},el=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return{patterns:t.__experimentalBlockPatterns,patternCategories:t.__experimentalBlockPatternCategories}}),[]),n=t.patternCategories,r=t.patterns,o=Object(g.useDispatch)("core/notices").createSuccessNotice;return[r,n,Object(d.useCallback)((function(t,n){e(Object(p.map)(n,(function(e){return Object(c.cloneBlock)(e)}))),o(Object(w.sprintf)(Object(w.__)('Pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function tl(e){var t=e.pattern,n=e.onClick,r=t.content,o=t.viewportWidth,i=Object(d.useMemo)((function(){return Object(c.parse)(r)}),[r]);return Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item",role:"button",onClick:function(){return n(t,i)},onKeyDown:function(e){ct.ENTER!==e.keyCode&&ct.SPACE!==e.keyCode||n(t,i)},tabIndex:0,"aria-label":t.title},Object(d.createElement)(Ca,{blocks:i,viewportWidth:o}),Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item-title"},t.title))}function nl(){return Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item is-placeholder"})}function rl(e){var t=e.patterns,n=e.shownPatterns,r=e.onClickPattern;return t.map((function(e){return n.includes(e)?Object(d.createElement)(tl,{key:e.name,pattern:e,onClick:r}):Object(d.createElement)(nl,{key:e.name})}))}function ol(e){var t=e.filterValue,n=e.onInsert,r=el(n),o=Object(ae.a)(r,3),c=o[0],i=o[2],a=Ja(c),l=Object(d.useMemo)((function(){return Ka(c,t)}),[t,c]);if(t)return l.length?Object(d.createElement)(Wa,{title:Object(w.__)("Search Results")},Object(d.createElement)(rl,{shownPatterns:a,patterns:l,onClickPattern:i})):Object(d.createElement)(qa,null)}function cl(e){var t=e.onInsert,n=el(t),r=Object(ae.a)(n,3),o=r[0],c=r[1],i=r[2],a=Object(d.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(p.fromPairs)(c.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(ie.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[c]),l=Object(d.useMemo)((function(){return o.sort((function(e,t){return a(e)-a(t)}))}),[o,a]),s=Ja(l),u=Object(d.useMemo)((function(){return o.filter((function(e){return a(e)===1/0}))}),[o,a]);return Object(d.createElement)(d.Fragment,null,c.map((function(e){var t=o.filter((function(t){return t.categories&&t.categories.includes(e.name)}));return!!t.length&&Object(d.createElement)(Wa,{key:e.name,title:e.label},Object(d.createElement)(rl,{shownPatterns:s,patterns:t,onClickPattern:i}))})),!!u.length&&Object(d.createElement)(Wa,{title:Object(w._x)("Uncategorized")},Object(d.createElement)(rl,{shownPatterns:s,patterns:u,onClickPattern:i})))}var il=function(e){var t=e.onInsert,n=e.filterValue;return n?Object(d.createElement)(ol,{onInsert:t,filterValue:n}):Object(d.createElement)(cl,{onInsert:t})};function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ll=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.selectBlockOnInsert,i=Object(g.useSelect)((function(e){var o,c=e("core/block-editor"),i=c.getSettings,a=c.getBlockRootClientId,l=c.getBlockSelectionEnd,s=t;if(!s&&!n&&!r){var d=l();d&&(s=a(d))}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasPatterns:!!(null===(o=i().__experimentalBlockPatterns)||void 0===o?void 0:o.length),destinationRootClientId:s},Object(p.pick)(e("core/block-editor"),["getSelectedBlock","getBlockIndex","getBlockSelectionEnd","getBlockOrder"]))}),[r,n,t]),a=i.destinationRootClientId,l=i.getSelectedBlock,s=i.getBlockIndex,d=i.getBlockSelectionEnd,b=i.getBlockOrder,f=Object(g.useDispatch)("core/block-editor"),m=f.replaceBlocks,O=f.insertBlocks,v=f.showInsertionPoint,h=f.hideInsertionPoint;function j(){if(n)return s(n,a);var e=d();return!r&&e?s(e,a)+1:b(a).length}return[a,function(e){var t=l();if(!r&&t&&Object(c.isUnmodifiedDefaultBlock)(t)?m(t.clientId,e):O(e,j(),a,o),!o){var n=Object(w._n)("%d block added.","%d blocks added",e.length);Object(Ge.speak)(n)}},function(e){if(e){var t=j();v(a,t)}else h()}]},sl=function(e){return e.stopPropagation()};var ul=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalSelectBlockOnInsert,c=e.onSelect,i=e.showInserterHelpPanel,a=Object(d.useState)(""),l=Object(ae.a)(a,2),s=l[0],u=l[1],b=Object(d.useState)(null),f=Object(ae.a)(b,2),m=f[0],O=f[1],h=ll({rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:o}),j=Object(ae.a)(h,3),k=j[0],y=j[1],_=j[2],E=Object(g.useSelect)((function(e){var t;return{hasPatterns:!!(null===(t=(0,e("core/block-editor").getSettings)().__experimentalBlockPatterns)||void 0===t?void 0:t.length)}}),[r,n,t]).hasPatterns,S=!k&&E,C=function(e){y(e),c()},I=Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__block-list"},Object(d.createElement)("div",{className:"block-editor-inserter__scrollable"},Object(d.createElement)(Xa,{rootClientId:k,onInsert:C,onHover:function(e){_(!!e),O(e)},filterValue:s}))),i&&Object(d.createElement)("div",{className:"block-editor-inserter__tips"},Object(d.createElement)(v.VisuallyHidden,{as:"h2"},Object(w.__)("A tip for using the block editor")),Object(d.createElement)(Hr,null))),B=Object(d.createElement)("div",{className:"block-editor-inserter__scrollable"},Object(d.createElement)(il,{onInsert:C,filterValue:s}));return Object(d.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:sl,onKeyDown:function(e){Object(p.includes)([ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER],e.keyCode)&&e.stopPropagation()}},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)(Gr,{onChange:u}),S&&Object(d.createElement)(v.TabPanel,{className:"block-editor-inserter__tabs",tabs:[{name:"blocks",title:Object(w.__)("Blocks")},{name:"patterns",title:Object(w.__)("Patterns")}]},(function(e){return"blocks"===e.name?I:B})),!S&&I),i&&m&&Object(d.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(d.createElement)(Ba,{item:m})))};function dl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var bl=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps;return t=i?Object(w.sprintf)(Object(w._x)("Add %s","directly add the only allowed block"),c):Object(w._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(v.Button,Object(s.a)({icon:Fr.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},a))},fl=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(dl()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).onToggle=e.onToggle.bind(Object(At.a)(e)),e.renderToggle=e.renderToggle.bind(Object(At.a)(e)),e.renderContent=e.renderContent.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?bl:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(ul,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(v.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(w.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),r}(d.Component),pl=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=o.getBlockSelectionEnd,s=e("core/blocks").getBlockVariations,u=a(r=r||c(n||l())||void 0),d=1===Object(p.size)(u)&&0===Object(p.size)(s(u[0].name,"inserter")),b=!1;return d&&(b=u[0]),{hasItems:i(r),hasSingleBlockType:d,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(w.sprintf)(Object(w.__)("%s block added"),l.title);Object(Ge.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(fl),ml=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=tr.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=tr.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),Ol=window,gl=Ol.getSelection,vl=Ol.getComputedStyle,hl=Object(p.overEvery)([tr.isTextField,tr.focus.tabbable.isTabbableIndex]);function jl(e,t,n,r){var o,c=tr.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!tr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(tr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function kl(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.getBlockRootClientId,f=t.getClientIdsOfDescendants,p=t.isSelectionEnabled,m=t.getBlockSelectionStart,O=t.isMultiSelecting,g=n(),v=r(),h=o();return{selectedBlockClientId:g,selectionStartClientId:v,selectionBeforeEndClientId:c(h||g),selectionAfterEndClientId:i(h||g),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),getBlockRootClientId:b,getClientIdsOfDescendants:f,isSelectionEnabled:p(),blockSelectionStart:m(),isMultiSelecting:O()}}function yl(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(kl,[]),u=s.selectedBlockClientId,b=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,v=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,C=s.getBlockRootClientId,I=s.getClientIdsOfDescendants,B=Object(g.useDispatch)("core/block-editor"),x=B.multiSelect,P=B.selectBlock,T=B.clearSelectedBlock,N=B.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var R=f()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:R},Object(d.createElement)(ml,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===ct.UP,f=t===ct.DOWN,g=t===ct.LEFT,_=t===ct.RIGHT,E=t===ct.TAB,S=t===ct.ESCAPE,w=d||g,B=g||_,R=d||f,D=B||R,L=e.shiftKey,A=L||e.ctrlKey||e.altKey||e.metaKey,M=R?tr.isVerticalEdge:tr.isHorizontalEdge;if(y){var F,V=E&&L||d,H=E&&!L||f,z=g,U=_;if(V)F=m;else if(H)F=O;else if(z){var G;F=null!==(G=C(u))&&void 0!==G?G:u}else if(U){var K;F=null!==(K=I([u])[0])&&void 0!==K?K:u}if(H||V||z||U)if(F)e.preventDefault(),P(F);else if(E&&u){var W,q=qe(u);(W=H?tr.focus.tabbable.findNext(q):tr.focus.tabbable.findPrevious(q))&&(e.preventDefault(),W.focus(),T())}}else{if(u)if(E){var $=qe(u);if(L){if(s===$)return a.current=!0,void r.current.focus()}else{var Y=tr.focus.tabbable.find($);if(s===(Object(p.last)(Y)||$))return a.current=!0,void o.current.focus()}}else S&&N(!0);else if(j&&E&&s===c.current)return a.current=!0,void(L?r.current.focus():o.current.focus());if(R?l.current||(l.current=Object(tr.computeCaretRect)()):l.current=null,!D)return ct.isKeyboardEvent.primary(e)&&(i.current=Object(tr.isEntirelySelected)(s)),void(ct.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?i.current:Object(tr.isEntirelySelected)(s))&&(x(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===ct.UP||t===ct.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,A)){var X="rtl"===vl(s).direction?!w:w;if(L)(w&&m||!w&&O)&&(j||function(e,t){var r,o,c=jl(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,w)&&M(s,w))&&(!function(e){var t=e?m:O;t&&x(b||u,t)}(w),e.preventDefault());else if(j)!function(e){var t=e?v:h;t&&P(t)}(w),e.preventDefault();else if(R&&Object(tr.isVerticalEdge)(s,w)){var Z=jl(s,w,n.current,!0);Z&&(Object(tr.placeCaretAtVerticalEdge)(Z,w,l.current),e.preventDefault())}else if(B&&gl().isCollapsed&&Object(tr.isHorizontalEdge)(s,X)){var Q=jl(s,X,n.current);Object(tr.placeCaretAtHorizontalEdge)(Q,X),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&$e(qe(u),e.target)&&N(!1),_&&0===e.button){var t=Ye(e.target);t&&(e.shiftKey?E!==t&&(x(E,t),e.preventDefault()):j&&P(t))}}},Object(d.createElement)("div",{ref:c,tabIndex:j?"0":void 0,"aria-label":j?Object(w.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(ml,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=tr.focus.focusable.find(n.current),t=Object(p.findLast)(e,hl);t&&Object(tr.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function _l(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,c=n.isBlockInsertionPointVisible,i=(0,n.getBlockRootClientId)(t),a=r(t,i),l=o();return c()&&l.index===a&&l.rootClientId===i}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function El(e){var t=e.isMultiSelecting,n=e.hasMultiSelection,r=e.selectedBlockClientId,o=e.children,c=e.containerRef,i=Object(d.useState)(!1),a=Object(ae.a)(i,2),l=a[0],s=a[1],u=Object(d.useState)(!1),b=Object(ae.a)(u,2),p=b[0],m=b[1],O=Object(d.useState)(null),h=Object(ae.a)(O,2),j=h[0],k=h[1],y=Object(d.useState)(null),_=Object(ae.a)(y,2),E=_[0],S=_[1],C=Object(d.useRef)(),w=Object(g.useSelect)((function(e){return{multiSelectedBlockClientIds:(0,e("core/block-editor").getMultiSelectedBlockClientIds)()}})).multiSelectedBlockClientIds;var I=n?w.includes(E):E===r;return Object(d.createElement)(d.Fragment,null,!t&&(l||p)&&Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,anchorRef:j,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:j.offsetWidth}},Object(d.createElement)(_l,{clientId:E}),Object(d.createElement)("div",{ref:C,onFocus:function(){return m(!0)},onBlur:function(){return m(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===C.current){var o=r.getBoundingClientRect(),i=n<o.top+o.height/2,a=qe(E),l=jl(a,!0,i?c.current:a)||a,s=new window.DOMRect(t,n,0,16);Object(tr.placeCaretAtVerticalEdge)(l,i,s,!1)}},tabIndex:-1,className:f()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":I})},Object(d.createElement)(pl,{position:"bottom center",clientId:E})))),Object(d.createElement)("div",{onMouseMove:p||t?void 0:function(e){if(e.target.classList.contains("block-editor-block-list__layout")){var t=e.target.getBoundingClientRect(),n=e.clientY-t.top,r=Array.from(e.target.children).find((function(e){return e.offsetTop>n}));if(r){var o=r.id.slice("block-".length);if(o){var c=r.getBoundingClientRect();e.clientX>c.right||e.clientX<c.left?l&&s(!1):(s(!0),k(r),S(o))}}}else l&&s(!1)}},o))}var Sl=function(e){var t=e.clientId,n=e.rootClientId,r=e.moverDirection,o=Object(pe.a)(e,["clientId","rootClientId","moverDirection"]),i=Object(g.useSelect)((function(e){var r=e("core/block-editor"),o=r.__unstableGetBlockWithoutInnerBlocks,c=(0,r.getBlockIndex)(t,n),i=o(t);return{index:c,name:i.name,attributes:i.attributes}}),[t,n]),a=i.index,l=i.name,u=i.attributes,b=Object(g.useDispatch)("core/block-editor"),f=b.setNavigationMode,p=b.removeBlock,m=Object(d.useRef)();Object(d.useEffect)((function(){m.current.focus()}));var O=Object(c.getBlockType)(l),h=Object(c.__experimentalGetAccessibleBlockLabel)(O,u,a+1,r);return Object(d.createElement)("div",Object(s.a)({className:"block-editor-block-list__block-selection-button"},o),Object(d.createElement)(v.Button,{ref:m,onClick:function(){return f(!1)},onKeyDown:function(e){var n=e.keyCode;n!==ct.BACKSPACE&&n!==ct.DELETE||(p(t),e.preventDefault())},label:h},Object(d.createElement)(Ln,{clientId:t})))};function Cl(e){var t,n,r,o=Object(d.useState)(!1),c=Object(ae.a)(o,2),i=c[0],a=c[1],l=Object(d.useCallback)((function(){var t=tr.focus.tabbable.find(e.current);a(!t.some((function(e){return!("experimentalToolbarItem"in e.dataset)})))}),[]);return Object(d.useLayoutEffect)(l,[]),t=function(){var t=new window.MutationObserver(l);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}},n=[i],r=Object(d.useRef)(!1),Object(d.useLayoutEffect)((function(){if(r.current)return t();r.current=!0}),n),i}function wl(e,t,n){var r=Object(d.useState)(t),o=Object(ae.a)(r,1)[0],c=Object(d.useCallback)((function(){var t,n,r;t=e.current,n=tr.focus.tabbable.find(t),(r=Object(ae.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){o&&c()}),[n,o,c])}var Il=function(e){var t=e.children,n=e.focusOnMount,r=Object(pe.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),c=Cl(o);return wl(o,n,c),c?Object(d.createElement)(v.Toolbar,Object(s.a)({__experimentalAccessibilityLabel:r["aria-label"],ref:o},r),t):Object(d.createElement)(v.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},Bl=function(e){var t=e.children,n=e.clientIds,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getBlockRootClientId,c=t.getTemplateLock,i=1===n.length?o(n[0]):null,a=i?c(i):null;return{index:r(n[0],i),srcRootClientId:i,isDraggable:1===n.length&&"all"!==a}}),[n]),o=r.srcRootClientId,c=r.index,i=r.isDraggable,a=Object(d.useRef)(!1),l=Object(g.useDispatch)("core/block-editor"),s=l.startDraggingBlocks,u=l.stopDraggingBlocks;if(Object(d.useEffect)((function(){return function(){a.current&&u()}}),[]),!i)return t({isDraggable:!1});var b="block-".concat(n[0]),f={type:"block",srcIndex:c,srcClientId:n[0],srcRootClientId:o};return Object(d.createElement)(v.Draggable,{elementId:b,transferData:f,onDragStart:function(){s(),a.current=!0},onDragEnd:function(){u(),a.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({isDraggable:!0,onDraggableStart:n,onDraggableEnd:r})}))};function xl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Pl=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(xl()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(At.a)(e)),e.onBlur=e.onBlur.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isFirst,r=t.isLast,o=t.clientIds,c=t.isLocked,i=t.isHidden,a=t.rootClientId,l=t.hideDragHandle,u=t.__experimentalOrientation,b=this.state.isFocused;return c||n&&r&&!a?null:Object(d.createElement)(Bl,{clientIds:o},(function(t){var n=t.isDraggable,r=t.onDraggableStart,c=t.onDraggableEnd;return Object(d.createElement)("div",{className:f()("block-editor-block-mover",{"is-visible":b||!i,"is-horizontal":"horizontal"===u}),draggable:n&&!l,onDragStart:r,onDragEnd:c},Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.__experimentalToolbarItem,{onFocus:e.onFocus,onBlur:e.onBlur},(function(e){return Object(d.createElement)(mr,Object(s.a)({clientIds:o},e))})),Object(d.createElement)(v.__experimentalToolbarItem,{onFocus:e.onFocus,onBlur:e.onBlur},(function(e){return Object(d.createElement)(Or,Object(s.a)({clientIds:o},e))}))))}))}}]),r}(d.Component),Tl=Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockOrder,s=r.getBlockRootClientId,u=Object(p.castArray)(n),d=Object(p.first)(u),b=o(d),f=s(Object(p.first)(u)),m=i(d,f),O=0===m,g=i(Object(p.last)(u),f)===l(f).length-1;return{blockType:b?Object(c.getBlockType)(b.name):null,isLocked:"all"===a(f),rootClientId:f,firstIndex:m,isFirst:O,isLast:g}}))(Pl);function Nl(){var e=Object(g.useDispatch)("core/block-editor").selectBlock,t=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=(0,t.getBlockParents)((0,t.getSelectedBlockClientId)()),o=r[r.length-1],i=n(o);return{parentBlockType:Object(c.getBlockType)(i),firstParentClientId:o}}),[]),n=t.parentBlockType,r=t.firstParentClientId;return void 0!==r?Object(d.createElement)("div",{className:"block-editor-block-parent-selector",key:r},Object(d.createElement)(v.Button,{className:"block-editor-block-parent-selector__button",onClick:function(){return e(r)},label:Object(w.sprintf)(Object(w.__)("Select parent (%s)"),n.title),showTooltip:!0,icon:Object(d.createElement)(wn,{icon:n.icon})})):null}var Rl=n(187);function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Al(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ml(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fl(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,l=Object(d.useMemo)((function(){return Ll({},t,{attributes:Ll({},t.attributes,{className:a})})}),[t,a]);return Object(d.createElement)("div",{key:n.name,className:f()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){ct.ENTER!==e.keyCode&&ct.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:"button",tabIndex:"0","aria-label":n.label||n.name},Object(d.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(d.createElement)(Ca,{viewportWidth:500,blocks:l})),Object(d.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var Vl=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?p.noop:n,o=e.onHoverClassName,i=void 0===o?p.noop:o,a=Object(g.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core/blocks").getBlockStyles,o=n(t);return{block:o,type:Object(c.getBlockType)(o.name),styles:r(o.name),className:o.attributes.className||""}}),[t]),l=a.styles,s=a.block,u=a.type,b=a.className,f=Object(g.useDispatch)("core/block-editor").updateBlockAttributes,m=function(e,t){return Object(d.useMemo)((function(){return t.example?Object(c.getBlockFromExample)(e.name,{attributes:t.example.attributes,innerBlocks:t.example.innerBlocks}):Object(c.cloneBlock)(e)}),[t.example?e.name:e,t])}(s,u);if(!l||0===l.length)return null;u.styles||Object(p.find)(l,"isDefault")||l.unshift({name:"default",label:Object(w._x)("Default","block style"),isDefault:!0});var O=function(e,t){var n,r=Al(new bt.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(p.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(p.find)(e,"isDefault")}(l,b);return Object(d.createElement)("div",{className:"block-editor-block-styles"},l.map((function(e){var n=function(e,t,n){var r=new bt.a(e);return t&&r.remove("is-style-"+t.name),n.isDefault||r.add("is-style-"+n.name),r.value}(b,O,e);return Object(d.createElement)(Fl,{genericPreviewBlock:m,className:b,isActive:O===e,key:e.name,onSelect:function(){f(t,{className:n}),i(null),r()},onBlur:function(){return i(null)},onHover:function(){return i(n)},style:e,styleClassName:n})})))};function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ul(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Gl={position:"bottom right",isAlternate:!0},Kl=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Ul()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,i=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var l,s=n[0],u=Object(c.getBlockType)(s.name),b=Object(p.mapKeys)(o,(function(e){return e.name})),f=Object(p.orderBy)(Object(p.filter)(Object(c.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,O=Object(c.getBlockType)(m);l=O.icon}else l=Rl.a;return i||f.length?Object(d.createElement)(v.Dropdown,{popoverProps:Gl,className:"block-editor-block-switcher",contentClassName:"block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(w.__)("Change block type or style"):Object(w.sprintf)(Object(w._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{className:"block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,title:o,onKeyDown:function(e){r||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0,icon:Object(d.createElement)(wn,{icon:l,showColors:!0})}))},renderContent:function(t){var o=t.onClose;return Object(d.createElement)(d.Fragment,null,(i||0!==f.length)&&Object(d.createElement)("div",{className:"block-editor-block-switcher__container"},i&&Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(w.__)("Styles")),Object(d.createElement)(Vl,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==f.length&&Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(w.__)("Transform to")),Object(d.createElement)(Da,{items:f.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(d.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(d.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(w.__)("Preview")),Object(d.createElement)(Ca,{viewportWidth:500,blocks:u.example?Object(c.getBlockFromExample)(s.name,{attributes:zl({},u.example.attributes,{className:a}),innerBlocks:u.example.innerBlocks}):Object(c.cloneBlock)(s,{className:a})})))}}):Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:Object(w.__)("Block icon"),icon:Object(d.createElement)(wn,{icon:l,showColors:!0})}))}}]),r}(d.Component),Wl=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,c=r.getBlockRootClientId,i=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=c(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:i(l),hasBlockStyles:d&&d.length>0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Kl);var ql=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,i=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=i(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&r(e.name,u)})),canInsertDefaultBlock:r(l(),u),extraProps:t,isLocked:!!a(u),rootClientId:u}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=t.clientIds,i=t.blocks,a=e("core/block-editor"),l=a.removeBlocks,s=a.replaceBlocks,u=a.duplicateBlocks,d=a.insertAfterBlock,b=a.insertBeforeBlock;return{onDuplicate:function(){return u(o)},onRemove:function(){l(o)},onInsertBefore:function(){b(Object(p.first)(Object(p.castArray)(o)))},onInsertAfter:function(){d(Object(p.last)(Object(p.castArray)(o)))},onGroup:function(){if(i.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(c.switchToBlockType)(i,e);t&&s(o,t)}},onUngroup:function(){if(i.length){var e=i[0].innerBlocks;e.length&&s(o,e)}}}}))])((function(e){var t=e.canDuplicate,n=e.canInsertDefaultBlock;return(0,e.children)({canDuplicate:t,canInsertDefaultBlock:n,isLocked:e.isLocked,onDuplicate:e.onDuplicate,onGroup:e.onGroup,onInsertAfter:e.onInsertAfter,onInsertBefore:e.onInsertBefore,onRemove:e.onRemove,onUngroup:e.onUngroup,blocks:e.blocks})}));var $l=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(w.__)("Edit as HTML"):Object(w.__)("Edit visually");return Object(d.createElement)(v.MenuItem,{onClick:r},!i&&s)}));function Yl(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(w.__)("Convert to Blocks");return Object(d.createElement)(v.MenuItem,{onClick:n},!r&&o)}var Xl=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))(Yl),Zl=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.serialize)(n)}))}}})))(Yl),Ql=Object(v.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Jl=Ql.Fill,es=Ql.Slot;Jl.Slot=es;var ts=Jl;function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var os=Object(v.createSlotFill)("BlockSettingsMenuControls"),cs=os.Fill,is=os.Slot;cs.Slot=function(e){var t=e.fillProps,n=e.clientIds,r=void 0===n?null:n,o=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,o=t.getSelectedBlockClientIds,c=null!==r?r:o();return{selectedBlocks:Object(p.map)(n(c),(function(e){return e.name}))}}),[]).selectedBlocks;return Object(d.createElement)(is,{fillProps:rs({},t,{selectedBlocks:o})},(function(e){return!Object(p.isEmpty)(e)&&Object(d.createElement)(v.MenuGroup,null,e)}))};var as=cs,ls={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var ss=function(e){var t=e.clientIds,n=Object(pe.a)(e,["clientIds"]),r=Object(p.castArray)(t),o=r.length,i=r[0],a=Object(g.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),l=Object(d.useState)(),u=Object(ae.a)(l,2),b=u[0],f=u[1];return Object(d.createElement)(ql,{clientIds:t},(function(e){var r=e.canDuplicate,l=e.canInsertDefaultBlock,u=e.isLocked,m=e.onDuplicate,O=e.onInsertAfter,g=e.onInsertBefore,h=e.onRemove,j=e.blocks;return Object(d.createElement)(v.DropdownMenu,Object(s.a)({icon:jr,label:Object(w.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:ls,noIcons:!0},n),(function(e){var n=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(ts.Slot,{fillProps:{onClose:n}}),1===o&&Object(d.createElement)(Zl,{clientId:i}),1===o&&Object(d.createElement)(Xl,{clientId:i}),Object(d.createElement)(v.ClipboardButton,{text:function(){return Object(c.serialize)(j)},role:"menuitem",className:"components-menu-item__button",onCopy:function(){f(!0)},onFinishCopy:function(){return f(!1)}},b?Object(w.__)("Copied!"):Object(w.__)("Copy")),r&&Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,m),shortcut:a.duplicate},Object(w.__)("Duplicate")),l&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,g),shortcut:a.insertBefore},Object(w.__)("Insert Before")),Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,O),shortcut:a.insertAfter},Object(w.__)("Insert After"))),1===o&&Object(d.createElement)($l,{clientId:i,onToggle:n})),Object(d.createElement)(as.Slot,{fillProps:{onClose:n},clientIds:t}),Object(d.createElement)(v.MenuGroup,null,!u&&Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(n,h),shortcut:a.remove},Object(w._n)("Remove Block","Remove Blocks",o))))}))}))};var us,ds=function(e){var t=e.clientIds,n=Object(pe.a)(e,["clientIds"]);return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.__experimentalToolbarItem,null,(function(e){return Object(d.createElement)(ss,Object(s.a)({clientIds:t,toggleProps:e},n))})))},bs=window,fs=bs.clearTimeout,ps=bs.requestAnimationFrame,ms=bs.cancelAnimationFrame,Os=bs.setTimeout;function gs(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?250:r,c=e.onChange,i=void 0===c?p.noop:c,a=Object(d.useState)(!1),l=Object(ae.a)(a,2),s=l[0],u=l[1],b=Object(d.useRef)(),f=function(e){u(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},O=function(){var e=b.current;e&&fs&&fs(e)};return Object(d.useEffect)((function(){return function(){return O()}}),[]),{showMovers:s,debouncedShowMovers:function(e){e&&e.stopPropagation(),O(),s||f(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),O(),b.current=Os((function(){m()&&f(!1)}),o)}}}function vs(e){var t=e.hideDragHandle,n=Object(g.useSelect)((function(e){var t=e("core/blocks").getBlockType,n=e("core/block-editor"),r=n.getBlockName,o=n.getBlockMode,c=n.getSelectedBlockClientIds,i=n.isBlockValid,a=n.getBlockRootClientId,l=n.getBlockListSettings,s=n.getSettings,u=c(),d=u[0],b=a(d),f=(l(b)||{}).__experimentalMoverDirection;return{blockClientIds:u,blockClientId:d,blockType:d&&t(r(d)),hasFixedToolbar:s().hasFixedToolbar,rootClientId:b,isValid:1===u.length?i(u[0]):null,mode:1===u.length?o(u[0]):null,moverDirection:f}}),[]),r=n.blockClientIds,o=n.blockClientId,i=n.blockType,a=n.hasFixedToolbar,l=n.isValid,u=n.mode,b=n.moverDirection,O=function(e){var t=Object(g.useDispatch)("core/block-editor").toggleBlockHighlight,n=Object(d.useCallback)((function(n){t(e,n)}),[e]);return Object(d.useEffect)((function(){return us&&ms(us),function(){us=ps((function(){n(!1)}))}}),[]),n}(o),v=Object(d.useRef)(),h=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?250:n,o=e.onChange,c=void 0===o?p.noop:o,i=Object(d.useState)(!1),a=Object(ae.a)(i,2),l=a[0],s=a[1],u=gs({ref:t,debounceTimeout:r,isFocused:l,onChange:c}),b=u.showMovers,f=u.debouncedShowMovers,m=u.debouncedHideMovers,O=Object(d.useRef)(!1),g=function(){return(null==t?void 0:t.current)&&t.current.contains(document.activeElement)};return Object(d.useEffect)((function(){var e=t.current,n=function(){g()&&(s(!0),f())},r=function(){g()||(s(!1),m())};return e&&!O.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),O.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,O,s,f,m]),{showMovers:b,gestures:{onMouseMove:f,onMouseLeave:m}}}({ref:v,onChange:O}),j=h.showMovers,k=h.gestures,y=Object(m.useViewportMatch)("medium","<")||a;if(i&&!Object(c.hasBlockSupport)(i,"__experimentalToolbar",!0))return null;var _=y||j;if(0===r.length)return null;var E=l&&"visual"===u,S=r.length>1,w={opacity:_?1:0,transform:_?"translateX(0px)":"translateX(100%)"},I=f()("block-editor-block-toolbar",_&&"is-showing-movers",!y&&"has-responsive-movers");return Object(d.createElement)("div",{className:I},Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-switcher-container",ref:v},!S&&Object(d.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(d.createElement)(Nl,{clientIds:r})),Object(d.createElement)("div",Object(s.a)({className:"block-editor-block-toolbar__mover-trigger-container"},k),Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-trigger-wrapper",style:w},Object(d.createElement)(Tl,{clientIds:r,__experimentalOrientation:b,hideDragHandle:t}))),(E||S)&&Object(d.createElement)("div",Object(s.a)({},k,{className:"block-editor-block-toolbar__block-switcher-wrapper"}),Object(d.createElement)(Wl,{clientIds:r}))),E&&!S&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(C.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(Qn.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(ds,{clientIds:r}))}var hs=function(e){var t=e.focusOnMount,n=Object(pe.a)(e,["focusOnMount"]),r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}})).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(Il,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(w.__)("Block tools")},n),Object(d.createElement)(vs,null)))};function js(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function ks(e){var t=e.clientId,n=e.rootClientId,r=e.align,o=e.isValid,c=e.moverDirection,i=e.isEmptyDefaultBlock,a=e.capturingClientId,s=Object(g.useSelect)(js,[]),u=s.isNavigationMode,b=s.isMultiSelecting,p=s.isTyping,O=s.isCaretWithinFormattedText,h=s.hasMultiSelection,j=s.hasFixedToolbar,k=s.lastClientId,y=Object(m.useViewportMatch)("medium"),_=Object(d.useState)(!1),E=Object(ae.a)(_,2),S=E[0],C=E[1],w=Object(d.useState)(!1),I=Object(ae.a)(w,2),B=I[0],x=I[1],P=Object(d.useContext)(Ss),T=!u&&i&&o,N=u,R=!u&&!j&&y&&!T&&!b&&(!p||O),D=!(u||R||j||i);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return C(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!D}),!(N||R||S||T))return null;var L=P[t];if(a&&(L=document.getElementById("block-"+a)),!L)return null;var A=L;if(h){var M=P[k];if(!M)return null;A={top:L,bottom:M}}var F=T?"top left right":"top right left";return Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:A,className:"block-editor-block-list__block-popover",__unstableSticky:!T,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableAllowVerticalSubpixelPosition:"horizontal"!==c&&L,__unstableAllowHorizontalSubpixelPosition:"horizontal"===c&&L,onBlur:function(){return C(!1)},shouldAnchorIncludePadding:!0,key:R},(R||S)&&Object(d.createElement)("div",{onFocus:function(){x(!0)},onBlur:function(){x(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":B})},Object(d.createElement)(pl,{clientId:t,rootClientId:n})),(R||S)&&Object(d.createElement)(hs,{focusOnMount:S,"data-align":r}),N&&Object(d.createElement)(Sl,{clientId:t,rootClientId:n,moverDirection:c,"data-align":r}),T&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(pl,{position:"top right",rootClientId:n,clientId:t})))}function ys(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.getBlockListSettings,s=t.__experimentalGetBlockListSettingsForBlocks,u=n()||r();if(u){var d,b=o(u),f=i(u)||{},m=f.name,O=f.attributes,g=void 0===O?{}:O,v=f.isValid,h=a(u),j=(l(b)||{}).__experimentalMoverDirection,k=s(h),y=Object(p.findIndex)(k,["__experimentalCaptureToolbars",!0]);return-1!==y&&(d=h[y]),{clientId:u,rootClientId:o(u),name:m,align:g.align,isValid:v,moverDirection:j,isEmptyDefaultBlock:m&&Object(c.isUnmodifiedDefaultBlock)({name:m,attributes:g}),capturingClientId:d}}}function _s(){var e=Object(g.useSelect)(ys,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.align,c=e.isValid,i=e.moverDirection,a=e.isEmptyDefaultBlock,l=e.capturingClientId;return r?Object(d.createElement)(ks,{clientId:t,rootClientId:n,align:o,isValid:c,moverDirection:i,isEmptyDefaultBlock:a,capturingClientId:l}):null}var Es=Object(d.createContext)(),Ss=Object(d.createContext)(),Cs=Object(d.createContext)();function ws(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectedBlockClientId:n(),hasMultiSelection:r(),isMultiSelecting:o()}}function Is(e){Ye(e.target)&&e.preventDefault()}var Bs=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(g.useSelect)(ws,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=o.isMultiSelecting,l=Object(g.useDispatch)("core/block-editor").selectBlock,s=function(e){var t=Object(g.useSelect)(Ar,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(g.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(d.useRef)(),m=Object(d.useRef)(),O=Object(d.useRef)();Object(d.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=Lr(i,"start"),l=Lr(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var d=window.getSelection();if(d.rangeCount&&!d.isCollapsed){var b=qe(a),f=d.getRangeAt(0),p=f.startContainer,m=f.endContainer;!b||b.contains(p)&&b.contains(m)||d.removeAllRanges()}}}),[c,r,o,f,a]);var v=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(Mr(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ie.a)(i(m.current)),[m.current]),l=[].concat(Object(ie.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else Mr(e.current,!0)}),[f,i,b]),h=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){v({isSelectionEnd:!0}),u()}))}),[v,u]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[v,h]),Object(d.useCallback)((function(t){n&&(m.current=t,O.current=document.activeElement,s(),document.addEventListener("selectionchange",v),window.addEventListener("mouseup",h),Mr(e.current,!1))}),[n,s,h])}(t),u=Object(d.useState)({}),b=Object(ae.a)(u,2),p=b[0],m=b[1];return Object(d.createElement)(El,{isMultiSelecting:a,hasMultiSelection:i,selectedBlockClientId:c,containerRef:t},Object(d.createElement)(Ss.Provider,{value:p},Object(d.createElement)(_s,null),Object(d.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&l(t)}},onDragStart:Is},Object(d.createElement)(Cs.Provider,{value:m},Object(d.createElement)(Es.Provider,{value:s},n)))))})),xs=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function Ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ns=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=e.__unstableIsHtml,i=Object(pe.a)(e,["children","tagName","__unstableIsHtml"]),a=Object(d.useContext)(Es),l=Object(d.useContext)(Cs),b=Object(d.useContext)(Ls),m=b.clientId,O=b.rootClientId,v=b.isSelected,h=b.isFirstMultiSelected,j=b.isLastMultiSelected,k=b.isMultiSelecting,y=b.isNavigationMode,_=b.isPartOfMultiSelection,E=b.enableAnimation,S=b.index,C=b.className,I=b.isLocked,B=b.name,x=b.mode,P=b.blockTitle,T=b.wrapperProps,N=Object(g.useSelect)((function(e){return v?{initialPosition:e("core/block-editor").getSelectedBlocksInitialCaretPosition()}:{}}),[v]).initialPosition,R=Object(g.useDispatch)("core/block-editor"),D=R.removeBlock,L=R.insertDefaultBlock,A=Object(d.useRef)(),M=T&&!!T["data-align"];t=t||A,Object(d.useEffect)((function(){if(v||h||j){var e=t.current;return l((function(t){return Ts({},t,Object(u.a)({},m,e))})),function(){l((function(e){return Object(p.omit)(e,m)}))}}}),[v,h,j]);var F=Object(w.sprintf)(Object(w.__)("Block: %s"),P);Object(d.useEffect)((function(){k||y||!v||function(){if(!document.activeElement||!$e(t.current,document.activeElement)){var e=tr.focus.tabbable.find(t.current).filter(tr.isTextField).filter((function(e){return $e(t.current,e)&&!e.closest(".block-list-appender")})),n=-1===N,r=(n?p.last:p.first)(e)||t.current;Object(tr.placeCaretAtHorizontalEdge)(r,n)}}()}),[v,k,y]);var V=or(t,v||_,v||h,E,S),H="html"!==x||c?"":"-visual",z="block-".concat(m).concat(H),U=er.animated[o],G=Object(d.createElement)(U,Object(s.a)({"aria-label":F,role:"group"},Object(p.omit)(T,["data-align"]),i,{id:z,ref:t,className:f()(C,i.className,T&&T.className,!M&&"wp-block"),"data-block":m,"data-type":B,"data-title":P,onKeyDown:v&&!I?function(e){var n=e.keyCode,r=e.target;i.onKeyDown&&i.onKeyDown(e),n!==ct.ENTER&&n!==ct.BACKSPACE&&n!==ct.DELETE||r!==t.current||Object(tr.isTextField)(r)||(e.preventDefault(),n===ct.ENTER?L({},O,S+1):D(m))}:void 0,onMouseLeave:v?function(e){var t=e.which;1===(e.buttons||t)&&a(m)}:void 0,tabIndex:"0",style:Ts({},T?T.style:{},{},i.style||{},{},V)}),n);if(M){var K={"data-align":T["data-align"]};return Object(d.createElement)("div",Object(s.a)({className:"wp-block"},K),G)}return G})),Rs=xs.reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)(Ns,Object(s.a)({},e,{ref:n,tagName:t}))})),e}),Ns);function Ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ls=Object(d.createContext)();var As=Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),i=c.isBlockSelected,a=c.isAncestorMultiSelected,l=c.isBlockMultiSelected,s=c.isFirstMultiSelectedBlock,u=c.getLastMultiSelectedBlockClientId,d=c.isTyping,b=c.getBlockMode,f=c.isSelectionEnabled,p=c.getSettings,m=c.hasSelectedInnerBlock,O=c.getTemplateLock,g=c.__unstableGetBlockWithoutInnerBlocks,v=c.isNavigationMode,h=g(n),j=i(n),k=p(),y=k.focusMode,_=k.isRTL,E=O(r),S=m(n,!0),C=h||{},w=C.name,I=C.attributes,B=C.isValid;return{isMultiSelected:l(n),isPartOfMultiSelection:l(n)||a(n),isFirstMultiSelected:s(n),isLastMultiSelected:u()===n,isTypingWithinBlock:(j||S)&&d(),mode:b(n),isSelectionEnabled:f(),isLocked:!!E,isFocusMode:y&&o,isNavigationMode:v(),isRTL:_,block:h,name:w,attributes:I,isValid:B,isSelected:j,isAncestorOfSelectedBlock:S}})),Ms=Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),i=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;i(n,e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var a=i(n);a&&l(n,a)}else{var s=c(n);s&&l(s,n)}},onReplace:function(e,n,r){e.length&&!Object(c.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n,r)},toggleSelection:function(e){u(e)}}})),Fs=Object(m.compose)(m.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),As,Ms,Object(m.ifCondition)((function(e){return!!e.block})),Object(v.withFilters)("editor.BlockListBlock"))((function(e){var t=e.mode,n=e.isFocusMode,r=e.isLocked,o=e.clientId,i=e.rootClientId,a=e.isSelected,l=e.isMultiSelected,s=e.isPartOfMultiSelection,b=e.isFirstMultiSelected,p=e.isLastMultiSelected,m=e.isTypingWithinBlock,O=e.isAncestorOfSelectedBlock,v=e.isSelectionEnabled,h=e.className,j=e.name,k=e.isValid,y=e.attributes,_=e.wrapperProps,E=e.setAttributes,S=e.onReplace,C=e.onInsertBlocksAfter,w=e.onMerge,I=e.toggleSelection,B=e.index,x=e.enableAnimation,P=e.isNavigationMode,T=e.isMultiSelecting,N=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.isDraggingBlocks,r=t.isBlockHighlighted;return{isDragging:n(),isHighlighted:r(o)}}),[]),R=N.isDragging,D=N.isHighlighted,L=Object(g.useDispatch)("core/block-editor").removeBlock,A=Object(d.useState)(!1),M=Object(ae.a)(A,2),F=M[0],V=M[1],H=Object(c.getBlockType)(j),z=Object(c.hasBlockSupport)(H,"lightBlockWrapper",!1),U=j===Object(c.getUnregisteredTypeHandlerName)();H.getEditWrapperProps&&(_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_,{},H.getEditWrapperProps(y)));var G=z&&Object(c.hasBlockSupport)(H,"className",!0)?Object(c.getBlockDefaultClassName)(j):null,K=z?y.className:null,W=f()(G,K,"block-editor-block-list__block",{"has-warning":!k||!!F||U,"is-selected":a,"is-highlighted":D,"is-multi-selected":l,"is-reusable":Object(c.isReusableBlock)(H),"is-dragging":R&&(a||s),"is-typing":m,"is-focused":n&&(a||O),"is-focus-mode":n,"has-child-selected":O},h),q=Object(d.createElement)(qn,{name:j,isSelected:a,attributes:y,setAttributes:E,insertBlocksAfter:r?void 0:C,onReplace:r?void 0:S,onRemove:r?void 0:function(){return L(o)},mergeBlocks:r?void 0:w,clientId:o,isSelectionEnabled:v,toggleSelection:I});"visual"!==t&&(q=Object(d.createElement)("div",{style:{display:"none"}},q));var $={clientId:o,rootClientId:i,isSelected:a,isFirstMultiSelected:b,isLastMultiSelected:p,isMultiSelecting:T,isNavigationMode:P,isPartOfMultiSelection:s,enableAnimation:x,index:B,className:W,isLocked:r,name:j,mode:t,blockTitle:H.title,wrapperProps:_},Y=Object(d.useMemo)((function(){return $}),Object.values($));return Object(d.createElement)(Ls.Provider,{value:Y},Object(d.createElement)(Tr,{onError:function(){return V(!0)}},k&&z&&Object(d.createElement)(d.Fragment,null,q,"html"===t&&Object(d.createElement)(Rs.div,{__unstableIsHtml:!0},Object(d.createElement)(Dr,{clientId:o}))),k&&!z&&Object(d.createElement)(Rs.div,_,q,"html"===t&&Object(d.createElement)(Dr,{clientId:o})),!k&&Object(d.createElement)(Rs.div,null,Object(d.createElement)(Ir,{clientId:o}),Object(d.createElement)("div",null,Object(c.getSaveElement)(H,y)))),!!F&&Object(d.createElement)(Rs.div,null,Object(d.createElement)(xr,null)))})),Vs=function(e,t,n){return Object(w.sprintf)(Object(w.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Hs=Object(d.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingCount,u=t.level,b=t.tabIndex,p=t.onFocus,O=o.name,g=o.attributes,h=Object(c.getBlockType)(O),j=Object(c.__experimentalGetBlockLabel)(h,g),k=Object(m.useInstanceId)(e),y="block-navigation-block-select-button__".concat(k),_=Vs(l,s,u);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{className:f()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":y,ref:n,tabIndex:b,onFocus:p},Object(d.createElement)(wn,{icon:h.icon,showColors:!0}),j,i&&Object(d.createElement)(v.VisuallyHidden,null,Object(w.__)("(selected block)"))),Object(d.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:y},_))}));function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Us=function(e){return"BlockNavigationBlock-".concat(e)};var Gs=Object(d.forwardRef)((function e(t,n){var r=Object(m.useInstanceId)(e),o=t.block.clientId;return Object(d.createElement)(v.Slot,{name:Us(o)},(function(e){if(!e.length)return Object(d.createElement)(Hs,Object(s.a)({ref:n},t));var o=t.className,i=t.block,a=t.isSelected,l=t.position,b=t.siblingCount,p=t.level,m=t.tabIndex,O=t.onFocus,g=i.name,h=Object(c.getBlockType)(g),j="block-navigation-block-slot__".concat(r),k=Vs(l,b,p),y={tabIndex:m,onFocus:O,ref:n,"aria-describedby":j};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:f()("block-editor-block-navigation-block-slot",o)},Object(d.createElement)(wn,{icon:h.icon,showColors:!0}),d.Children.map(e,(function(e){return Object(d.cloneElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props,{},y))})),a&&Object(d.createElement)(v.VisuallyHidden,null,Object(w.__)("(selected block)")),Object(d.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))}))})),Ks=function(e){var t=Object(d.useContext)(Ls).clientId;return Object(d.createElement)(v.Fill,Object(s.a)({},e,{name:Us(t)}))},Ws=Object(d.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,i=e.siblingCount,a=e.level,l=Object(pe.a)(e,["onClick","block","isSelected","position","siblingCount","level"]);return hr().__experimentalFeatures?Object(d.createElement)(Gs,Object(s.a)({ref:t,className:"block-editor-block-navigation-block-contents",block:r,onClick:n,isSelected:o,position:c,siblingCount:i,level:a},l)):Object(d.createElement)(Hs,Object(s.a)({ref:t,className:"block-editor-block-navigation-block-contents",block:r,onClick:n,isSelected:o,position:c,siblingCount:i,level:a},l))}));function qs(e){var t=e.block,n=e.onClick,r=e.isSelected,o=e.position,c=e.level,i=e.rowCount,a=e.showBlockMovers,l=e.terminatedLevels,s=e.path,u=Object(d.useState)(!1),b=Object(ae.a)(u,2),p=b[0],m=b[1],O=Object(d.useState)(!1),g=Object(ae.a)(O,2),h=g[0],j=g[1],k=t.clientId,y=i-1,_=a&&y>1,E=p||r||h,S=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":E}),C=hr().__experimentalFeatures,w=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":E});return Object(d.createElement)(ir,{className:f()({"is-selected":r}),onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)},onFocus:function(){return j(!0)},onBlur:function(){return j(!1)},level:c,position:o,rowCount:i,path:s},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:_?void 0:3},(function(e){var a=e.ref,s=e.tabIndex,u=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(d.createElement)(gr,{level:c,isLastRow:o===i,terminatedLevels:l}),Object(d.createElement)(Ws,{block:t,onClick:n,isSelected:r,position:o,siblingCount:y,level:c,ref:a,tabIndex:s,onFocus:u}))})),_&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.__experimentalTreeGridCell,{className:S},(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(mr,{__experimentalOrientation:"vertical",clientIds:[k],ref:t,tabIndex:n,onFocus:r})})),Object(d.createElement)(v.__experimentalTreeGridCell,{className:S},(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Or,{__experimentalOrientation:"vertical",clientIds:[k],ref:t,tabIndex:n,onFocus:r})}))),C&&c>1&&Object(d.createElement)(v.__experimentalTreeGridCell,{className:w},(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(ss,{clientIds:[k],icon:Jn.a,toggleProps:{ref:t,tabIndex:n,onFocus:r},disableOpenOnArrowDown:!0})})))}function $s(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)($s),l="block-navigation-appender-row__description_".concat(a),s=Object(w.sprintf)(Object(w.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(d.createElement)(ir,{level:r,position:n,rowCount:o,path:i},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,u=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(d.createElement)(gr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(d.createElement)(pl,{rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l,toggleProps:{ref:i,tabIndex:a,onFocus:u}}),Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},s))})))}function Ys(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,u=e.terminatedLevels,b=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,O=!a,g=Object(p.compact)(t),v=o?g.length+1:g.length,h=o&&g.length>0&&!O,j=v;return Object(d.createElement)(d.Fragment,null,Object(p.map)(g,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=i&&!!l&&!!l.length,f=t+1,p=v===f?[].concat(Object(ie.a)(b),[s]):b,O=[].concat(Object(ie.a)(m),[f]);return Object(d.createElement)(d.Fragment,{key:a},Object(d.createElement)(qs,{block:e,onClick:function(){return n(a)},isSelected:r===a,level:s,position:f,rowCount:v,showBlockMovers:c,terminatedLevels:b,path:O}),u&&Object(d.createElement)(Ys,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:p,path:O}))})),h&&Object(d.createElement)($s,{parentBlockClientId:a,position:v,rowCount:j,level:s,terminatedLevels:b,path:[].concat(Object(ie.a)(m),[j])}))}function Xs(e){var t=e.__experimentalFeatures,n=Object(pe.a)(e,["__experimentalFeatures"]),r=Object(d.useMemo)((function(){return{__experimentalFeatures:t}}),[t]);return Object(d.createElement)(v.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(w.__)("Block navigation structure")},Object(d.createElement)(vr.Provider,{value:r},Object(d.createElement)(Ys,n)))}Ys.defaultProps={selectBlock:function(){}};var Zs=Object(m.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)("div",{className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(w.__)("Block navigation")),i&&Object(d.createElement)(Xs,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(d.createElement)(Xs,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Qs=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(v.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Js(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen;Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var o=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(v.Button,{icon:Qs,"aria-expanded":r,onClick:t?n:void 0,label:Object(w.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:o,"aria-disabled":!t})}var eu=function(e){var t=e.isDisabled,n=e.__experimentalFeatures,r=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!t;return Object(d.createElement)(v.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){return Object(d.createElement)(Js,Object(s.a)({},e,{isEnabled:r}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(Zs,{onSelect:t,__experimentalFeatures:n})}})},tu=n(41),nu=n.n(tu),ru=n(115),ou=[ct.rawShortcut.primary("z"),ct.rawShortcut.primaryShift("z"),ct.rawShortcut.primary("y")],cu=Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(ou.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),iu=function(){return cu},au=n(47);function lu(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(au.createBlobURL)(e),'">')})).join("")}var su={position:"bottom right",isAlternate:!0},uu=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(v.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(v.__experimentalToolbarItem,null,(function(t){return Object(d.createElement)(v.DropdownMenu,{icon:ur.a,label:Object(w.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(ae.a)(e,1)[0].props})),"title"),popoverProps:su})}))}))))},du=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(v.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(uu,null)):Object(d.createElement)(Qn,null,Object(d.createElement)(uu,null))};function bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function pu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?pu.EMPTY_ARRAY:t||n?t||(nu()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}pu.EMPTY_ARRAY=[];var mu=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,b=t.isSelected,p=t.multiline,O=t.inlineToolbar,v=t.wrapperClassName,h=t.className,j=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,S=t.allowedFormats,C=t.formattingControls,w=t.withoutInteractiveFormatting,I=t.onRemove,B=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,L=t.style,A=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(pe.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(d.useRef)(),G=n||U,K=k(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),O=i(),g=a().__experimentalUndo;void 0===b?t=m.clientId===W&&m.attributeKey===N:b&&(t=m.clientId===W);var v={};if("native"===d.Platform.OS){var h=W&&s(W);v={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isCaretWithinFormattedText:r(),selectionStart:t?m.offset:void 0,selectionEnd:t?O.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:f()||p(),undo:g},v)})),X=Y.isCaretWithinFormattedText,Z=Y.selectionStart,Q=Y.selectionEnd,J=Y.isSelected,ee=Y.didAutomaticChange,te=Y.disabled,ne=Y.undo,re=Y.shouldBlurOnUnmount,oe=Object(g.useDispatch)("core/block-editor"),ce=oe.__unstableMarkLastChangeAsPersistent,le=oe.enterFormattedText,se=oe.exitFormattedText,ue=oe.selectionChange,de=oe.__unstableMarkAutomaticChange,be=fu(p),fe=pu({allowedFormats:S,formattingControls:C,disableFormats:F}),me=!fe||fe.length>0,Oe=a,ge=l;Array.isArray(a)&&(Oe=c.children.toHTML(a),ge=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var ve=Object(d.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),he=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),I&&Object(i.isEmpty)(t)&&n&&I(!n)}),[B,I]),je=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&x){var n=[],r=Object(i.split)(e),o=Object(ae.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:be}))),s+=1),l?(n.push.apply(n,Object(ie.a)(t)),s+=t.length):T&&n.push(T()),(l?Object(i.isEmpty)(a):T&&Object(i.isEmpty)(a))||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:be})));var u=l?s:1,d=l?-1:null;y(n,u,d)}}),[y,x,be,T]),ke=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&x;if(y){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(y([l.transform({content:t.text})]),de())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?je(t):n(Object(i.__unstableInsertLineSeparator)(t));else if(r||!o&&!P)V||n(Object(i.insert)(t,"\n"));else if(P&&!o){var s=t.text,u=t.start,d=t.end;u===d&&d===s.length&&P()}else o&&je(t)}),[y,x,de,p,je,P]),ye=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:lu(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(y&&Object(i.isEmpty)(t)?y(u):je(t,u))}var d,b=y&&x?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(ru.regexp)(".*").test(d))&&(b="BLOCKS"),M&&Object(i.isEmpty)(t)&&Object(xa.isURL)(a.trim())&&(b="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var O=m.formats.length;O--;)m.formats[O]=[].concat(Object(ie.a)(s),Object(ie.a)(m.formats[O]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(y&&Object(i.isEmpty)(t)?y(f,f.length-1,-1):je(t,f))}),[o,y,x,je,M,p]),_e=Object(d.useCallback)((function(e,t){if(y){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);y([u]),de()}}}}),[y,de]),Ee=Object(d.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:Oe,onChange:ge,selectionStart:Z,selectionEnd:Q,onSelectionChange:ve,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:ke,onDelete:he,onPaste:ye,__unstableIsSelected:J,__unstableInputRule:_e,__unstableMultilineTag:be,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:le,__unstableOnExitFormattedText:se,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:de,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:L,preserveWhiteSpace:A,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==b?b:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.Editable;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&me&&Object(d.createElement)(du,{inline:O,anchorRef:G.current}),t&&Object(d.createElement)(iu,null),Object(d.createElement)(Rn,{onReplace:y,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:r})})))}));return v?(nu()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:f()("block-editor-rich-text",v)},Ee)):Ee}));mu.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(pe.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=fu(r);!t&&i&&(t="<".concat(i,"></").concat(i,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},mu.isEmpty=function(e){return!e||0===e.length},mu.Content.defaultProps={format:"string",value:""};var Ou=mu;function gu(e){var t=e.value,n=e.onChange;return Object(d.createElement)(Ks,null,Object(d.createElement)(Ou,{value:t,onChange:n,placeholder:Object(w.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var vu=function(e){var t=e.icon,n=void 0===t?Rl.a:t,r=e.label,o=void 0===r?Object(w.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(w.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(v.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(w.__)("Block variations")},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(v.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(d.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(v.Button,{isLink:!0,onClick:function(){return l()}},Object(w.__)("Skip"))))},hu=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),ju=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yu={top:{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(w._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:ju,title:Object(w._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:hu,title:Object(w._x)("Vertically Align Bottom","Block vertical alignment setting")}},_u=["top","center","bottom"],Eu={isAlternate:!0};var Su=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?_u:r,c=e.isCollapsed,i=void 0===c||c,a=yu[t],l=yu.top;return Object(d.createElement)(v.ToolbarGroup,{popoverProps:Eu,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(w._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ku(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},yu[e],{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})},Cu=Object(m.createHigherOrderComponent)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),wu=Cu(v.ColorPalette);function Iu(e){var t=e.onChange,n=e.value,r=Object(pe.a)(e,["onChange","value"]);return Object(d.createElement)(Re,Object(s.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}function Bu(e){var t=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),n=t.gradients,r=t.disableCustomGradients;return Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({gradients:void 0!==e.gradients?e.gradient:n,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:r},e))}var xu=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?v.__experimentalGradientPicker:Bu;return Object(d.createElement)(t,e)};function Pu(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(w.__)("Gradient Presets"):o,i=Object(pe.a)(e,["className","value","onChange","label"]),a=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),l=a.gradients,u=void 0===l?[]:l,b=a.disableCustomGradients;return Object(p.isEmpty)(u)&&b?null:Object(d.createElement)(v.BaseControl,{className:f()("block-editor-gradient-picker-control",t)},Object(d.createElement)(v.BaseControl.VisualLabel,null,c),Object(d.createElement)(xu,Object(s.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:u,disableCustomGradients:b},i)))}function Tu(e){var t=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().gradients}),[]);return Object(p.isEmpty)(t)?null:Object(d.createElement)(v.PanelBody,{title:Object(w.__)("Gradient")},Object(d.createElement)(Pu,e))}var Nu=[25,50,75,100];function Ru(e){var t,n,r=e.imageWidth,o=e.imageHeight,c=e.imageSizeOptions,i=void 0===c?[]:c,a=e.isResizable,l=void 0===a||a,s=e.slug,u=e.width,b=e.height,f=e.onChange,m=e.onChangeImage,O=void 0===m?p.noop:m;function g(e,t){return function(){f({width:e,height:t})}}return Object(d.createElement)(d.Fragment,null,!Object(p.isEmpty)(i)&&Object(d.createElement)(v.SelectControl,{label:Object(w.__)("Image size"),value:s,options:i,onChange:O}),l&&Object(d.createElement)("div",{className:"block-editor-image-size-control"},Object(d.createElement)("p",{className:"block-editor-image-size-control__row"},Object(w.__)("Image dimensions")),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(v.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(w.__)("Width"),value:null!==(t=null!=u?u:r)&&void 0!==t?t:"",min:1,onChange:function(e){return f({width:parseInt(e,10)})}}),Object(d.createElement)(v.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(w.__)("Height"),value:null!==(n=null!=b?b:o)&&void 0!==n?n:"",min:1,onChange:function(e){return f({height:parseInt(e,10)})}})),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(v.ButtonGroup,{"aria-label":Object(w.__)("Image size presets")},Nu.map((function(e){var t=Math.round(r*(e/100)),n=Math.round(o*(e/100)),c=u===t&&b===n;return Object(d.createElement)(v.Button,{key:e,isSmall:!0,isPrimary:c,isPressed:c,onClick:g(t,n)},e,"%")}))),Object(d.createElement)(v.Button,{isSmall:!0,onClick:g()},Object(w.__)("Reset")))))}var Du=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=k().clientId;return Object(d.createElement)(e,Object(s.a)({},t,{clientId:n}))}}),"withClientId"),Lu=Du((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(d.createElement)(ga,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),Au=Object(m.compose)([Du,Object(g.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(d.createElement)(ma,{rootClientId:t,lastBlockClientId:n})})),Mu=n(50),Fu=n.n(Mu);var Vu=new WeakMap;function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zu(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,i=e.forwardedRef,a=e.templateInsertUpdatesSelection,l=e.__experimentalCaptureToolbars,u=e.__experimentalMoverDirection,b=Object(m.useViewportMatch)("medium","<"),O=Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlock,o=n.isBlockSelected,c=n.hasSelectedInnerBlock,i=n.isNavigationMode,a=r(t);return{block:a,hasOverlay:"core/template"!==a.name&&!o(t)&&!c(t,!0),enableClickThrough:i()||b}})),v=O.hasOverlay,h=O.block,j=O.enableClickThrough;!function(e,t,n,r,o){var c=Object(g.useDispatch)("core/block-editor").updateBlockListSettings,i=Object(g.useSelect)((function(t){var n=t("core/block-editor").getBlockRootClientId(e);return{blockListSettings:t("core/block-editor").getBlockListSettings(e),parentLock:t("core/block-editor").getTemplateLock(n)}}),[e]),a=i.blockListSettings,l=i.parentLock;Object(d.useLayoutEffect)((function(){var i={allowedBlocks:t,templateLock:void 0===n?l:n};void 0!==r&&(i.__experimentalCaptureToolbars=r),void 0!==o&&(i.__experimentalMoverDirection=o),Fu()(a,i)||c(e,i)}),[e,a,t,n,l,r,o,c])}(t,n,o,l,u),function(e,t,n,r){var o=Object(g.useDispatch)("core/block-editor").replaceInnerBlocks,i=Object(g.useSelect)((function(t){return t("core/block-editor").getBlocks(e)}),[e]),a=Object(d.useRef)(null);Object(d.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(p.isEqual)(t,a.current)){a.current=t;var l=Object(c.synchronizeBlocksWithTemplate)(i,t);Object(p.isEqual)(l,i)||o(e,l,0===i.length&&r&&0!==l.length)}}),[i,n,e])}(t,r,o,a);var k=f()({"has-overlay":j&&v,"is-capturing-toolbar":l}),y=Object(d.createElement)(_a,Object(s.a)({},e,{ref:i,rootClientId:t,className:k})),_=Object(c.getBlockType)(h.name);if(_&&_.providesContext){var E=function(e,t){Vu.has(t)||Vu.set(t,new WeakMap);var n=Vu.get(t);if(!n.has(e)){var r=Object(p.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(h.attributes,_);y=Object(d.createElement)(Vn,{value:E},y)}return e.__experimentalTagName?y:Object(d.createElement)("div",{className:"block-editor-inner-blocks",ref:i},y)}function Uu(e){return ba(e),Object(d.createElement)(zu,e)}var Gu=Object(d.forwardRef)((function(e,t){var n=k().clientId,r=Object(d.useRef)(),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({clientId:n,forwardedRef:t||r},e);return e.value&&e.onChange?Object(d.createElement)(Uu,o):Object(d.createElement)(zu,o)}));Gu.DefaultBlockAppender=Au,Gu.ButtonBlockAppender=Lu,Gu.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var Ku=Gu,Wu=n(44);function qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $u=[{id:"opensInNewTab",title:Object(w.__)("Open in new tab")}],Yu=function(e){var t=e.value,n=e.onChange,r=void 0===n?p.noop:n,o=e.settings,c=void 0===o?$u:o;if(!c||!c.length)return null;var i=function(e){return function(n){r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qu(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,Object(u.a)({},e.id,n)))}},a=c.map((function(e){return Object(d.createElement)(v.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(d.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(d.createElement)(v.VisuallyHidden,{as:"legend"},Object(w.__)("Currently selected link settings")),a)},Xu=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(I.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),Zu=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,l=e.searchTerm,u=void 0===l?"":l;return Object(d.createElement)(v.Button,Object(s.a)({},t,{onClick:c,className:f()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(zr.a,{className:"block-editor-link-control__search-item-icon",icon:Xu}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(v.TextHighlight,{text:n.title,highlight:u})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(xa.filterURLForDisplay)(Object(xa.safeDecodeURI)(n.url))||""),a&&Object(w.__)("Press ENTER to add this link"))),n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},n.type))},Qu=n(189),Ju=n(113),ed=n.n(Ju);function td(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var nd=function(e){return e.stopPropagation()},rd=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(td()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(e){var t;return Object(Dt.a)(this,r),(t=n.call(this,e)).onChange=t.onChange.bind(Object(At.a)(t)),t.onFocus=t.onFocus.bind(Object(At.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(At.a)(t)),t.selectLink=t.selectLink.bind(Object(At.a)(t)),t.handleOnClick=t.handleOnClick.bind(Object(At.a)(t)),t.bindSuggestionNode=t.bindSuggestionNode.bind(Object(At.a)(t)),t.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),t.inputRef=Object(d.createRef)(),t.updateSuggestions=Object(p.throttle)(t.updateSuggestions.bind(Object(At.a)(t)),200),t.suggestionNodes=[],t.isUpdatingSuggestions=!1,t.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},t}return Object(Lt.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ed()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(xa.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(w.sprintf)(Object(w._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(w.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case ct.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case ct.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case ct.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(w.__)("Link selected.")));break;case ct.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case ct.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case ct.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.__experimentalRenderSuggestions,a=t.placeholder,l=void 0===a?Object(w.__)("Paste URL or type to search"):a,u=t.value,b=void 0===u?"":u,m=t.autoFocus,O=void 0===m||m,g=t.__experimentalShowInitialSuggestions,h=void 0!==g&&g,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,S="url-input-control-".concat(r),C="block-editor-url-input-suggestions-".concat(r),I="block-editor-url-input-suggestion-".concat(r),B={id:C,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(I,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(d.createElement)(v.BaseControl,{label:n,id:S,className:f()("block-editor-url-input",o,{"is-full-width":c})},Object(d.createElement)("input",{className:"block-editor-url-input__input",autoFocus:O,type:"text","aria-label":Object(w.__)("URL"),required:!0,value:b,onChange:this.onChange,onFocus:this.onFocus,onInput:nd,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":C,"aria-activedescendant":null!==_?"".concat(I,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(d.createElement)(v.Spinner,null),Object(p.isFunction)(i)&&k&&!!y.length&&i({suggestions:y,selectedSuggestion:_,suggestionsListProps:B,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:h&&!(b&&b.length)}),!Object(p.isFunction)(i)&&k&&!!y.length&&Object(d.createElement)(v.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(s.a)({},B,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(d.createElement)(v.Button,Object(s.a)({},x(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(d.Component),od=Object(m.compose)(m.withSafeTimeout,v.withSpokenMessages,m.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(rd),cd=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(d.useState)(),u=Object(ae.a)(s,2),b=u[0],f=u[1];return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(b||{url:n})}},Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)(od,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(w.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(v.Button,{type:"submit",label:Object(w.__)("Submit"),icon:Qu.a,className:"block-editor-link-control__search-submit"}))),l&&Object(d.createElement)(v.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},id=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(d.createElement)(v.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(d.createElement)(v.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createInterpolateElement)(Object(w.sprintf)(Object(w.__)("New page: <mark>%s</mark>"),t),{mark:Object(d.createElement)("mark",null)})))):null};function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sd=Object(v.createSlotFill)("BlockEditorLinkControlViewer"),ud=sd.Slot,dd=sd.Fill,bd=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function fd(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?p.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,u=void 0===l||l,b=e.showInitialSuggestions,O=e.forceIsEditingLink,h=e.createSuggestion,j=Object(d.useRef)(),k=Object(d.useRef)(),y=Object(d.useRef)(),_=Object(m.useInstanceId)(fd),E=Object(d.useState)(n&&n.url||""),S=Object(ae.a)(E,2),C=S[0],I=S[1],B=Object(d.useState)(void 0!==O?O:!n||!n.url),x=Object(ae.a)(B,2),P=x[0],T=x[1],N=Object(d.useState)(!1),R=Object(ae.a)(N,2),D=R[0],L=R[1],A=Object(d.useState)(null),M=Object(ae.a)(A,2),F=M[0],V=M[1],H=Object(d.useRef)(!1),z=Object(g.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,U=n&&Object(xa.filterURLForDisplay)(Object(xa.safeDecodeURI)(n.url))||"";Object(d.useEffect)((function(){void 0!==O&&O!==P&&T(O)}),[O]),Object(d.useEffect)((function(){H.current&&y.current&&!y.current.contains(document.activeElement)&&(tr.focus.focusable.find(y.current)[0]||y.current).focus();H.current=!1}),[P]),Object(d.useEffect)((function(){return function(){j.current&&j.current.cancel(),k.current&&k.current.cancel()}}),[]);var G=a?function(){return Promise.resolve([])}:function(e){var t="URL",n=Object(xa.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(p.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(xa.prependHTTP)(e):e,type:t}])},K=function(){var e=Object(Wu.a)(Oo.a.mark((function e(t,n){var r,o;return Oo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([z(t,ld({},n.isInitialSuggestions?{perPage:3}:{})),G(t)]);case 2:if(r=e.sent,o=!t.includes(" "),r=o&&!n.isInitialSuggestions?r[0].concat(r[1]):r[0],!n.isInitialSuggestions){e.next=7;break}return e.abrupt("return",r);case 7:return e.abrupt("return",q(t)?r:r.concat({title:t,url:t,type:"__CREATE__"}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function W(){var e;H.current=!!(null===(e=y.current)||void 0===e?void 0:e.contains(document.activeElement)),T(!1)}function q(e){var t=Object(p.startsWith)(e,"#");return Object(xa.isURL)(e)||e&&e.includes("www.")||t}var $=Object(d.useCallback)((function(e,t){return u?q(e)?G(e,t):K(e,t):Promise.resolve([])}),[G,z]),Y=function(){var e=Object(Wu.a)(Oo.a.mark((function e(t){var n;return Oo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),V(null),e.prev=2,k.current=bd(Promise.resolve(h(t))),e.next=6,k.current.promise;case 6:n=e.sent,L(!1),n?(c(n),W()):T(!0),e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(2),!e.t0||!e.t0.isCanceled){e.next=15;break}return e.abrupt("return");case 15:V(e.t0.message||Object(w.__)("An unknown error occurred during creation. Please try again.")),L(!1),T(!0);case 18:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=ld({},t);delete n.type,delete n.id,c(ld({},n,{},e))};return Object(d.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(v.Spinner,null)," ",Object(w.__)("Creating"),"…"),(P||!n)&&!D&&Object(d.createElement)(cd,{placeholder:t,value:C,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";I(e)},onSelect:function(){var e=Object(Wu.a)(Oo.a.mark((function e(t){return Oo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(C);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),b=["url","mailto","tel","internal"],p=1===o.length&&b.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,O="block-editor-link-control-search-results-label-".concat(_),g=l?Object(w.__)("Recently updated"):Object(w.sprintf)(Object(w.__)('Search results for "%s"'),C),j=Object(d.createElement)(l?d.Fragment:v.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:O},g));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(d.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":O}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(d.createElement)(id,{searchTerm:C,onClick:Object(Wu.a)(Oo.a.mark((function t(){return Oo.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(d.createElement)(Zu,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(ld({},n,{},e))},isSelected:t===i,isURL:b.includes(e.type.toLowerCase()),searchTerm:C})}))))}:null,fetchSuggestions:$,showInitialSuggestions:b,errorMessage:F}),n&&!P&&!D&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{"aria-label":Object(w.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(v.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(d.createElement)(v.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(w.__)("Edit")),Object(d.createElement)(ud,{fillProps:n}))),Object(d.createElement)(Yu,{value:n,settings:r,onChange:c}))}fd.ViewerFill=dd;var pd=fd,md=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(I.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),Od=n(266),gd=Object(v.withFilters)("editor.MediaUpload")((function(){return null}));var vd=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),hd=Object(m.compose)([Object(g.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}}))])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.name,l=void 0===a?Object(w.__)("Replace"):a,s=e.createNotice,u=e.removeNotice,b=Object(d.useState)(t),f=Object(ae.a)(b,2),m=f[0],O=f[1],h=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),j=Object(d.createRef)(),k=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),y=function(e){var t=document.createElement("div");t.innerHTML=Object(d.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){s("error",n,{speak:!0,id:k,isDismissible:!0})}),1e3)},_=function(e){c(e),O(e.url),Object(Ge.speak)(Object(w.__)("The media file has been replaced")),u(k)},E=function(e){e.keyCode===ct.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(d.createElement)(v.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(v.ToolbarButton,{ref:j,"aria-expanded":t,onClick:n,onKeyDown:E},l))},renderContent:function(e){e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(d.createElement)(gd,{value:n,onSelect:function(e){return _(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(v.MenuItem,{icon:md,onClick:t},Object(w.__)("Open Media Library"))}}),Object(d.createElement)(vd,null,Object(d.createElement)(v.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;h({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(ae.a)(e,1)[0];_(t)},onError:y})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(v.MenuItem,{icon:Od.a,onClick:function(){t()}},Object(w.__)("Upload"))}}))),i&&Object(d.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(d.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(w.__)("Current media URL:")),Object(d.createElement)(pd,{value:{url:m},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;O(t),i(t),j.current.focus()}})))}})})),jd=n(190);function kd(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(v.ExternalLink,{className:o,href:t},n||Object(xa.filterURLForDisplay)(Object(xa.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function yd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _d=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(yd()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(At.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Lt.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(pe.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,b=!!r&&u;return Object(d.createElement)(v.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(v.Button,{className:"block-editor-url-popover__settings-toggle",icon:ur.a,label:Object(w.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),b&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!b&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(d.Component);_d.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(pe.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(d.createElement)(od,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(v.Button,{icon:Qu.a,label:Object(w.__)("Apply"),type:"submit"}))},_d.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(pe.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(d.createElement)(kd,{url:o,urlLabel:c,className:n}),r&&Object(d.createElement)(v.Button,{icon:jd.a,label:Object(w.__)("Edit"),onClick:r}))};var Ed=_d;function Sd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cd=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(Ed,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(w.__)("URL"),placeholder:Object(w.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Qu.a,label:Object(w.__)("Apply"),type:"submit"})))},wd=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Sd()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(At.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(At.a)(e)),e.onUpload=e.onUpload.bind(Object(At.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(At.a)(e)),e.openURLInput=e.openURLInput.bind(Object(At.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect;if(a)if(o){var u=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!u.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!u.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),u=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(ae.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,b=n.mediaPreview,p=n.notices,m=n.onSelectURL,O=n.mediaUpload,g=n.children,h=s.instructions,j=s.title;if(O||m||(h=Object(w.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&O&&(h=Object(w.__)("Upload a media file or pick one from your media library."),y?h=Object(w.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(w.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(w.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(w.__)("Media"),y?j=Object(w.__)("Audio"):_?j=Object(w.__)("Image"):E&&(j=Object(w.__)("Video")))}var S=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(d.createElement)(v.Placeholder,{icon:i,label:j,instructions:h,className:S,notices:p,onClick:t,onDoubleClick:u,preview:b},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(v.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(w.__)("Cancel"),isLink:!0,onClick:e},Object(w.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(w.__)("Insert from URL")),t&&Object(d.createElement)(Cd,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,b=t.value,m=void 0===b?{}:b,O=Object(d.createElement)(gd,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(d.createElement)(v.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(w.__)("Media Library"))}});if(a&&i)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(w.__)("Upload")),O,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(w.__)("Upload")),O,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(O)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&nu()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(vd,null,this.renderDropZone())):Object(d.createElement)(vd,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(d.Component),Id=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Bd=Object(m.compose)(Id,Object(v.withFilters)("editor.MediaPlaceholder"))(wd),xd=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Ou,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));xd.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(pe.a)(e,["value","tagName"]);return Object(d.createElement)(o,c,n)};var Pd=xd,Td=Object(d.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(pe.a)(e,["__experimentalVersion"]);if(2===n)return Object(d.createElement)(Pd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(pe.a)(r,["className","onChange"]);return Object(d.createElement)(Rr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Nd(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(Nd),c=r||Object(w.sprintf)(Object(w._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)(v.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Rd=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(w.__)("All")}:s,b=e.viewports,p=void 0===b?[{id:"small",label:Object(w.__)("Small screens")},{id:"medium",label:Object(w.__)("Medium screens")},{id:"large",label:Object(w.__)("Large screens")}]:b;if(!t||!n||!c)return null;var m=r||Object(w.sprintf)(Object(w.__)("Use the same %s on all screensizes."),n),O=Object(w.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=c(Object(d.createElement)(Nd,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(v.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:O}),Object(d.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(i?i(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},c(Object(d.createElement)(Nd,{property:n,viewport:e}),e))}))))))};function Dd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ld=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Dd()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).onUse=e.onUse.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(u.a)({},ct.rawShortcut[n](t),this.onUse)})}}]),r}(d.Component);function Ad(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(pe.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=ct.displayShortcut[r](o)),Object(d.createElement)(v.Fill,{name:i},Object(d.createElement)(v.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function Md(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fd=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Md()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),r}(d.Component),Vd=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),Hd=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var zd=function(){var e=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),t=Object(g.useDispatch)("core/block-editor").setNavigationMode;if(!Object(m.useViewportMatch)("medium"))return null;var n=function(e){t("edit"!==e)};return Object(d.createElement)(v.Dropdown,{renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(d.createElement)(v.Button,{icon:e?Hd:Vd,"aria-expanded":n,onClick:r,label:Object(w.__)("Tools")})},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{role:"menu","aria-label":Object(w.__)("Tools")},Object(d.createElement)(v.MenuItemsChoice,{value:e?"select":"edit",onSelect:n,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Vd,Object(w.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Hd,Object(w.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(w.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})},Ud=n(170),Gd=Object(d.createElement)(I.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(I.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Kd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Wd=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(Kd()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(At.a)(e)),e.submitLink=e.submitLink.bind(Object(At.a)(e)),e.state={expanded:!1},e}return Object(Lt.a)(r,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(w.__)("Edit link"):Object(w.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(v.Button,{icon:Ud.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(v.Button,{className:"block-editor-url-input__back",icon:Gd,label:Object(w.__)("Close"),onClick:this.toggle}),Object(d.createElement)(od,{value:t||"",onChange:n}),Object(d.createElement)(v.Button,{icon:Qu.a,label:Object(w.__)("Submit"),type:"submit"}))))}}]),r}(d.Component),qd=n(108),$d=["noreferrer","noopener"],Yd=Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(d.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Xd=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,b=Object(d.useState)(!1),f=Object(ae.a)(b,2),m=f[0],O=f[1],g=Object(d.useCallback)((function(){O(!0)})),h=Object(d.useState)(!1),j=Object(ae.a)(h,2),k=j[0],y=j[1],_=Object(d.useState)(null),E=Object(ae.a)(_,2),S=E[0],C=E[1],I=Object(d.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||C(""),y(!0)})),T=Object(d.useCallback)((function(){y(!1)})),N=Object(d.useCallback)((function(){C(null),T(),O(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)($d,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(d.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(O(!1),C(null),T())}})),L=Object(d.useCallback)((function(){return function(e){S&&n({href:S}),T(),C(null),e.preventDefault()}})),A=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),M=function(){return[{linkDestination:"media",title:Object(w.__)("Media File"),url:"image"===c?i:void 0,icon:Yd},{linkDestination:"attachment",title:Object(w.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]},F=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToggleControl,{label:Object(w.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(v.TextControl,{label:Object(w.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(d.createElement)(v.TextControl,{label:Object(w.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(p.find)(M(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToolbarButton,{icon:Ud.a,className:"components-toolbar__control",label:r?Object(w.__)("Edit link"):Object(w.__)("Insert link"),"aria-expanded":m,onClick:g}),m&&Object(d.createElement)(Ed,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(d.createElement)(v.NavigableMenu,null,Object(p.map)(M(),(function(e){return Object(d.createElement)(v.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;C(null),t=e.url,o=M(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(d.createElement)(Ed.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:C,onKeyDown:x,onKeyPress:B,onSubmit:L(),autocompleteRef:I}),r&&!k&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Ed.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(d.createElement)(v.Button,{icon:qd.a,label:Object(w.__)("Remove link"),onClick:A}))))},Zd=n(128);function Qd(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(d.createElement)(v.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(w.__)("Preview"),Object(d.createElement)(zr.a,{icon:ur.a}))},renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&Zd.a},Object(w.__)("Desktop")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&Zd.a},Object(w.__)("Tablet")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&Zd.a},Object(w.__)("Mobile"))),t)}})}var Jd=n(237),eb=/\((min|max)-width:[^\(]*?\)/g;function tb(e){return!!e.media&&!!e.media.mediaText.match(eb)}function nb(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function rb(e,t){return e.replace(eb,(function(e){return Object(Jd.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function ob(e,t){Object(d.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(xa.getProtocol)(e.href)===window.location.protocol&&Object(xa.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i<n.cssRules.length;++i){var a=n.cssRules[i];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!c&&a.cssText.match(new RegExp("#start-".concat(e)))&&(c=!0),c&&a.cssText.match(new RegExp("#end-".concat(e)))&&(c=!1),c&&tb(a))){var l=a.cssText;r[o]||(r[o]=[]),r[o][i]=l,nb(n,rb(l,t),i)}}})),function(){r.forEach((function(e,t){if(e)for(var r=0;r<e.length;++r){var o=e[r];o&&nb(n[t],o,r)}}))}}}),[t])}function cb(e){var t=Object(d.useState)(window.innerWidth),n=Object(ae.a)(t,2),r=n[0],o=n[1];Object(d.useEffect)((function(){if("Desktop"!==e){var t=function(){return o(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var c=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<r?t:r};return ob("resizable-editor-section",c(e)),function(e){switch(e){case"Tablet":case"Mobile":return{width:c(e),margin:(window.innerHeight<800?36:72)+"px auto",flexGrow:0,maxHeight:"Mobile"===e?"768px":"1024px",overflowY:"auto"};default:return null}}(e)}var ib=Object(g.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(d.createElement)(v.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){qe(t).focus()}},Object(w.__)("Skip to the selected block"))})),ab=n(136);var lb=Object(g.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(ab.count)(Object(c.serialize)(t),"words");return Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(d.createElement)(wn,{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(w.sprintf)(Object(w._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(w.sprintf)(Object(w._n)("%d word","%d words",n),n))))}));function sb(e){var t=e.blockName,n=Object(g.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(d.useMemo)((function(){return[{label:Object(w.__)("Not set"),value:""}].concat(Object(ie.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(d.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(d.createElement)(v.SelectControl,{options:i,value:r||"",label:Object(w.__)("Default Style"),onChange:a})}var ub=function(e){var t=e.slotName,n=Object(v.__experimentalUseSlot)(t);return Boolean(n.fills&&n.fills.length)?Object(d.createElement)(v.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(w.__)("Advanced"),initialOpen:!1},Object(d.createElement)(J.Slot,{bubblesVirtually:!0})):null},db=Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,i=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(c.getBlockType)(l),u=a&&i(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(d.createElement)(lb,null);var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(Kr,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(v.PanelBody,{title:Object(w.__)("Styles")},Object(d.createElement)(Vl,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(d.createElement)(sb,{blockName:t.name}))),Object(d.createElement)(fe.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,Object(d.createElement)(ub,{slotName:J.slotName})),Object(d.createElement)(ib,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(w.__)("No block selected.")):null}));function bb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var fb=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if(bb()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(At.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(d.Component),pb=Object(m.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(fb);var mb=function(e){var t,n,r,o=e.children,i=Object(d.useRef)(),a=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]),l=a.getBlocksByClientId,s=a.getSelectedBlockClientIds,u=a.hasMultiSelection,b=a.getSettings,f=Object(g.useDispatch)("core/block-editor"),m=f.flashBlock,O=f.removeBlocks,v=f.replaceBlocks,h=(t=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,n=Object(g.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,r=Object(g.useDispatch)("core/notices").createSuccessNotice,Object(d.useCallback)((function(e,o){var c="";if(1===o.length){var i=o[0],a=n(t(i)).title;c="copy"===e?Object(w.sprintf)(Object(w.__)('Copied "%s" to clipboard.'),a):Object(w.sprintf)(Object(w.__)('Moved "%s" to clipboard.'),a)}else c="copy"===e?Object(w.sprintf)(Object(w.__)("Copied %d blocks to clipboard."),o.length):Object(w.sprintf)(Object(w.__)("Moved %d blocks to clipboard."),o.length);r(c,{type:"snackbar"})}),[])),j=b().__experimentalCanUserUseUnfilteredHTML,k=function(e){var t=s();if(0!==t.length){if(!u())if("copy"===e.type||"cut"===e.type?Object(tr.documentHasUncollapsedSelection)():Object(tr.documentHasSelection)())return;if(i.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&m(t[0]),h(e.type,t);var n=l(t),r=Object(c.serialize)(n);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",r)}if("cut"===e.type)O(t);else if("paste"===e.type){var o=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(p.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'<img src="'.concat(Object(au.createBlobURL)(e),'">')})).join(""),o=""),{html:c,plainText:o}}(e),a=o.plainText,d=o.html,b=Object(c.pasteHandler)({HTML:d,plainText:a,mode:"BLOCKS",canUserUseUnfilteredHTML:j});v(t,b,b.length-1,-1)}}}};return Object(d.createElement)("div",{ref:i,onCopy:k,onCut:k,onPaste:k},o)},Ob=n(238),gb=n.n(Ob),vb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,hb=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||C());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function O(){var e=b(/^([^{]+)/);if(e)return jb(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 g(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=jb(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(vb,""),value:n?jb(n[0]).replace(vb,""):""});return b(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=jb(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:jb(t[1]),media:jb(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=jb(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=jb(t[1]),r=jb(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=O()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function C(){var e=c(),t=O();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(po.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function jb(e){return e?e.replace(/^\s+|\s+$/g,""):""}var kb=n(152),yb=n.n(kb),_b=Eb;function Eb(e){this.options=e||{}}Eb.prototype.emit=function(e){return e},Eb.prototype.visit=function(e){return this[e.type](e)},Eb.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r<o;r++)n+=this.visit(e[r]),t&&r<o-1&&(n+=this.emit(t));return n};var Sb=Cb;function Cb(e){_b.call(this,e)}yb()(Cb,_b),Cb.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Cb.prototype.comment=function(e){return this.emit("",e.position)},Cb.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Cb.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cb.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cb.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Cb.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Cb.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cb.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Cb.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Cb.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Cb.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Cb.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Cb.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Cb.prototype.rule=function(e){var t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},Cb.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var wb=Ib;function Ib(e){e=e||{},_b.call(this,e),this.indentation=e.indent}yb()(Ib,_b),Ib.prototype.compile=function(e){return this.stylesheet(e)},Ib.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Ib.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Ib.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Ib.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}")},Ib.prototype.document=function(e){var t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},Ib.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Ib.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Ib.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}")},Ib.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)+"}")},Ib.prototype.keyframe=function(e){var t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},Ib.prototype.page=function(e){var t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},Ib.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}")},Ib.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}")},Ib.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Ib.prototype.rule=function(e){var t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},Ib.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Ib.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Bb=function(e,t){try{var n=hb(e),r=gb.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((c=c||{}).compress?new Sb(c):new wb(c)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,c};function xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tb(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 Nb(e,t){return new URL(e,t).toString()}var Rb=function(e){return function(t){if("declaration"===t.type){var n=function(e){for(var t,n=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g,r=[];null!==(t=n.exec(e));){var o={source:t[0],before:t[1],quote:t[2],value:t[3],after:t[4]};Tb(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){return Pb({},e,{newUrl:"url("+e.before+e.quote+Nb(e.value,c)+e.quote+e.after+")"})}));return Pb({},t,{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function Db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Db(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Db(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ab=/^(body|html|:root).*$/,Mb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Lb({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Ab)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Fb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(p.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Mb(t)),r&&o.push(Rb(r)),o.length?Bb(n,Object(m.compose)(o)):n}))};var Vb=function(e){var t=e.styles;return Object(d.useEffect)((function(){var e=Fb(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var Hb=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.__experimentalSelectBlockOnInsert,i=e.onSelect,a=void 0===i?p.noop:i,l=Object(g.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return{rootClientId:t=t||r(n)||void 0}})).destinationRootClientId;return Object(d.createElement)(ul,{onSelect:a,rootClientId:l,clientId:n,isAppender:r,showInserterHelpPanel:o,__experimentalSelectBlockOnInsert:c})};function zb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,c=r.removeBlocks,i=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),i(Object(p.last)(t))}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}zb.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(w.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(w.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(w.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(w.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(w.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(w.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(w.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(w.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var Ub=zb;function Gb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(d.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(tr.getScrollContainer)(e);o&&ed()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Kb=[ct.UP,ct.RIGHT,ct.DOWN,ct.LEFT,ct.ENTER,ct.BACKSPACE];var Wb=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(g.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",b),document[t]("mousemove",u)}function u(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(tr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(Kb,t)}(e))&&a()}return Object(d.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(tr.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==ct.ESCAPE&&e.keyCode!==ct.TAB||l()}])},t)}));function qb(){return nu()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function $b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Yb=-1!==window.navigator.userAgent.indexOf("Trident"),Xb=new Set([ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT]),Zb=function(e){Object(Vt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Ft.a)(t);if($b()){var r=Object(Ft.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Mt.a)(this,e)});function r(){var e;return Object(Dt.a)(this,r),(e=n.apply(this,arguments)).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(At.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(At.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(At.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(At.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(At.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(At.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(At.a)(e)),e}return Object(Lt.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(tr.computeCaretRect)())}},{key:"computeCaretRectOnSelectionChange",value:function(){document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=window.requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(document.activeElement)&&document.activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===document.activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(tr.computeCaretRect)();if(n)if(this.caretRect)if(Xb.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(tr.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:c?window.scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){document.addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=window.requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(d.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),r}(d.Component),Qb=Yb?function(e){return e.children}:Object(g.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(Zb)}]);
build/block-editor/style-rtl.css CHANGED
@@ -1 +1 @@
1
- #start-resizable-editor-section{display:none}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;padding:8px;width:auto}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e2e4e7}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;border-radius:1px}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #0085ba}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #007cba}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #d9ab59}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #0085ba}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-sunrise .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-ocean .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-midnight .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-ectoplasm .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-coffee .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-blue .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-light .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #0085ba}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .block-editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .block-editor-block-list__insertion-point-indicator{background:#0085ba}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{opacity:0;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed 1.2s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar-wrapper{padding-right:48px}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-list__breadcrumb{display:block;z-index:22}.block-editor-block-list__breadcrumb .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff;margin-right:49px}.block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-list__breadcrumb .components-button:focus{box-shadow:0 0 0 1.5px #0085ba}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}.components-popover.block-editor-block-list__block-popover{z-index:29}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb{margin-bottom:12px;margin-right:-48px}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align=full],.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__breadcrumb[data-align=full]{margin-right:0}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__layout.is-root-container{padding-right:14px;padding-left:14px}@media (min-width:600px){.block-editor-block-list__layout.is-root-container{padding-right:36px;padding-left:36px}}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-36px;margin-left:-36px}}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender.is-drop-target>div:before{content:"";position:absolute;left:-8px;right:-8px;top:-8px;bottom:-8px;border-radius:2px;border:3px solid #0085ba}body.admin-color-sunrise .block-list-appender.is-drop-target>div:before{border:3px solid #d1864a}body.admin-color-ocean .block-list-appender.is-drop-target>div:before{border:3px solid #a3b9a2}body.admin-color-midnight .block-list-appender.is-drop-target>div:before{border:3px solid #e14d43}body.admin-color-ectoplasm .block-list-appender.is-drop-target>div:before{border:3px solid #a7b656}body.admin-color-coffee .block-list-appender.is-drop-target>div:before{border:3px solid #c2a68c}body.admin-color-blue .block-list-appender.is-drop-target>div:before{border:3px solid #82b4cb}body.admin-color-light .block-list-appender.is-drop-target>div:before{border:3px solid #0085ba}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"\2192"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #0085ba}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #e2e4e7}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px!important;min-width:24px!important;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:8px!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:8px!important}.block-editor-block-mover:not([draggable=false]){cursor:grab}.block-editor-block-mover:not([draggable=false]) .block-editor-block-mover__control{cursor:grab!important}.block-editor-block-mover:not([draggable=false]) .block-editor-block-mover__control:not(:disabled):not([aria-disabled=true]):active{cursor:grabbing}.block-editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:6px;text-align:right;color:#40464d;border-radius:2px}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{margin-left:6px}.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-mover-button{width:36px;height:36px}.block-editor-block-navigation-leaf .block-editor-button-block-appender{outline:none;background:none;padding:6px;margin-right:.8em;width:calc(100% - .8em)}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:-1px;bottom:-2px;left:0;border-left:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:16px;right:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;outline:2px solid transparent}body.admin-color-sunrise .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #0085ba}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba}body.admin-color-sunrise .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#d1864a}body.admin-color-ocean .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#a3b9a2}body.admin-color-midnight .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#e14d43}body.admin-color-ectoplasm .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#a7b656}body.admin-color-coffee .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#c2a68c}body.admin-color-blue .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#d9ab59}body.admin-color-light .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#0085ba}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border:1px solid rgba(30,30,30,.2);border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:680px;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content .components-menu-group{padding:16px 24px}.components-popover.block-editor-block-switcher__popover .components-popover__content .components-menu-group+.components-menu-group{border-color:#ccc}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container{min-width:300px;max-width:340px;width:50%}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__label{margin-bottom:8px;color:#757575}@media (min-width:782px){.block-editor-block-switcher__popover .components-popover__content{position:relative}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__preview{border-right:1px solid #e2e4e7;box-shadow:0 2px 6px rgba(0,0,0,.05);background:#fff;width:300px;height:auto;position:-webkit-sticky;position:sticky;-ms-grid-row-align:stretch;align-self:stretch;top:0;padding:10px}}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:12px 0 0}.block-editor-block-switcher__preview-title{margin-bottom:10px;color:#6c7781}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-left:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba}body.admin-color-sunrise .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #d1864a}body.admin-color-ocean .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #a3b9a2}body.admin-color-midnight .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #e14d43}body.admin-color-ectoplasm .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #a7b656}body.admin-color-coffee .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #c2a68c}body.admin-color-blue .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #d9ab59}body.admin-color-light .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #0085ba}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba}body.admin-color-sunrise .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #d1864a}body.admin-color-ocean .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #a3b9a2}body.admin-color-midnight .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #e14d43}body.admin-color-ectoplasm .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #a7b656}body.admin-color-coffee .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #c2a68c}body.admin-color-blue .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #d9ab59}body.admin-color-light .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #0085ba}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{background:#1e1e1e;color:#fff;box-shadow:none;width:24px;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(14,28,46,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #e2e4e7;border-radius:4px;font-size:16px}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;box-shadow:0 0 0 .5px #007cba;outline:2px solid transparent}body.admin-color-sunrise .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#d1864a;box-shadow:0 0 0 .5px #d1864a}body.admin-color-ocean .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#a3b9a2;box-shadow:0 0 0 .5px #a3b9a2}body.admin-color-midnight .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#e14d43;box-shadow:0 0 0 .5px #e14d43}body.admin-color-ectoplasm .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#a7b656;box-shadow:0 0 0 .5px #a7b656}body.admin-color-coffee .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#c2a68c;box-shadow:0 0 0 .5px #c2a68c}body.admin-color-blue .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#d9ab59;box-shadow:0 0 0 .5px #d9ab59}body.admin-color-light .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#0085ba;box-shadow:0 0 0 .5px #0085ba}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#edeff0}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #0085ba}.block-editor-link-control__search-item.is-selected{background:#f3f4f5}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#191e23}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f3f4f5;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #e2e4e7}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #e2e4e7;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;color:#007cba!important}body.admin-color-sunrise .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#d1864a;color:#d1864a!important}body.admin-color-ocean .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#a3b9a2;color:#a3b9a2!important}body.admin-color-midnight .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#e14d43;color:#e14d43!important}body.admin-color-ectoplasm .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#a7b656;color:#a7b656!important}body.admin-color-coffee .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#c2a68c;color:#c2a68c!important}body.admin-color-blue .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#d9ab59;color:#d9ab59!important}body.admin-color-light .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#0085ba;color:#0085ba!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba}body.admin-color-sunrise .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #d1864a}body.admin-color-ocean .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #a3b9a2}body.admin-color-midnight .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #e14d43}body.admin-color-ectoplasm .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #a7b656}body.admin-color-coffee .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #c2a68c}body.admin-color-blue .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #d9ab59}body.admin-color-light .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #0085ba}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .block-editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .block-editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .block-editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .block-editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .block-editor-skip-to-selected-block:focus{color:#c75726}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #e2e4e7;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.has-border input[type=text],.block-editor-url-input.has-border input[type=text],.components-popover .block-editor-url-input.has-border input[type=text]{border:1px solid #555d66;border-radius:4px}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width input[type=text],.block-editor-url-input.is-full-width input[type=text],.components-popover .block-editor-url-input.is-full-width input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__suggestions{max-height:200px;transition:all .15s ease-in-out;padding:4px 0;width:302px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:inherit}}.block-editor-url-input__suggestion{padding:4px 8px;color:#6c7781;display:block;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;box-shadow:none}.block-editor-url-input__suggestion:hover{background:#e2e4e7}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:#00719e;color:#fff;outline:none}body.admin-color-sunrise .block-editor-url-input__suggestion.is-selected,body.admin-color-sunrise .block-editor-url-input__suggestion:focus{background:#b2723f}body.admin-color-ocean .block-editor-url-input__suggestion.is-selected,body.admin-color-ocean .block-editor-url-input__suggestion:focus{background:#8b9d8a}body.admin-color-midnight .block-editor-url-input__suggestion.is-selected,body.admin-color-midnight .block-editor-url-input__suggestion:focus{background:#bf4139}body.admin-color-ectoplasm .block-editor-url-input__suggestion.is-selected,body.admin-color-ectoplasm .block-editor-url-input__suggestion:focus{background:#8e9b49}body.admin-color-coffee .block-editor-url-input__suggestion.is-selected,body.admin-color-coffee .block-editor-url-input__suggestion:focus{background:#a58d77}body.admin-color-blue .block-editor-url-input__suggestion.is-selected,body.admin-color-blue .block-editor-url-input__suggestion:focus{background:#6f99ad}body.admin-color-light .block-editor-url-input__suggestion.is-selected,body.admin-color-light .block-editor-url-input__suggestion:focus{background:#00719e}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{content:"";position:absolute;display:block;width:1px;height:24px;left:-1px;background:#e2e4e7}.block-editor-url-input__button-modal{box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #e2e4e7;background:#fff}.block-editor-url-input__button-modal-line{display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0;align-items:flex-start}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;width:36px;height:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #e2e4e7}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:2px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{padding:5px;border-radius:4px;height:30px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #007cba,inset 0 0 0 4px #fff;outline:2px solid transparent}body.admin-color-sunrise .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #d1864a,inset 0 0 0 4px #fff}body.admin-color-ocean .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #a3b9a2,inset 0 0 0 4px #fff}body.admin-color-midnight .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #e14d43,inset 0 0 0 4px #fff}body.admin-color-ectoplasm .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #a7b656,inset 0 0 0 4px #fff}body.admin-color-coffee .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #c2a68c,inset 0 0 0 4px #fff}body.admin-color-blue .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #d9ab59,inset 0 0 0 4px #fff}body.admin-color-light .block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 1.5px #0085ba,inset 0 0 0 4px #fff}.block-editor-url-popover__settings-toggle{flex-shrink:0;border-radius:0;border-right:1px solid #e2e4e7;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__input-container .components-base-control:last-child,.block-editor-url-popover__input-container .components-base-control:last-child .components-base-control__field{margin-bottom:0}.block-editor-url-popover__settings{display:block;padding:16px;border-top:1px solid #e2e4e7}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-editor .block-editor-url-input .components-base-control__field,.block-editor-url-popover__link-viewer .block-editor-url-input .components-base-control__field{margin-bottom:0}.block-editor-url-popover__link-editor .block-editor-url-input .components-spinner,.block-editor-url-popover__link-viewer .block-editor-url-input .components-spinner{bottom:9px}.block-editor-url-popover__link-viewer-url{margin:7px;flex-grow:1;flex-shrink:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:150px;max-width:500px}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#d94f4f}.block-editor-warning{align-items:center;display:flex;flex-wrap:wrap;padding:6px 12px;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-warning .block-editor-warning__message{line-height:1.4;margin:1em 0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;align-items:baseline;width:100%}.block-editor-warning .block-editor-warning__actions{display:flex}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 8px auto 0}.block-editor-writing-flow{display:flex;flex-direction:column}.block-editor-writing-flow__click-redirect{cursor:text}.html-anchor-control .components-external-link{display:block;margin-top:8px}#end-resizable-editor-section{display:none}.block-editor-block-toolbar{display:flex;flex-grow:1;width:100%;overflow:auto;position:relative;transition:border-color .1s linear,box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;line-height:0;margin-top:-1px;margin-bottom:-1px;border:0;border-left:1px solid #e2e4e7}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-format-toolbar .components-toolbar,.block-editor-format-toolbar .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports ((position:-webkit-sticky) or (position:sticky)){.block-editor-block-toolbar__slot{display:inline-flex}}.block-editor-block-toolbar__mover-switcher-container{display:flex}.block-editor-block-toolbar__block-switcher-wrapper .block-editor-block-switcher{display:block}@media (min-width:782px){.block-editor-block-toolbar.has-responsive-movers .block-editor-block-toolbar__mover-trigger-container{bottom:-1px;right:-1px;position:absolute;top:-1px;transform:translateX(48px);-webkit-user-select:none;-ms-user-select:none;user-select:none}}.block-editor-block-toolbar.has-responsive-movers .block-editor-block-toolbar__block-switcher-wrapper{background:#fff;border-right:1px solid;border-radius:0 0 2px 2px;position:relative;z-index:1;margin-right:-1px}@media (min-width:782px){.block-editor-block-toolbar.has-responsive-movers .block-editor-block-toolbar__mover-trigger-wrapper:not(:empty){background-color:#fff;border-bottom-right-radius:2px;border-top-right-radius:2px;border:1px solid #000;border-left:none;height:100%;transition:all 60ms linear}}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar.has-responsive-movers .block-editor-block-toolbar__mover-trigger-wrapper:not(:empty){transition-duration:0s}}.block-editor-inserter{display:inline-block;background:none;border:none;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4}@media (min-width:782px){.block-editor-inserter{position:relative}}@media (min-width:782px){.block-editor-inserter__popover>.components-popover__content{overflow-y:visible;height:100vh;padding:0}}.block-editor-inserter__toggle.components-button{display:inline-flex;align-items:center;cursor:pointer;border:none;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-duration:0s}}.block-editor-inserter__menu{height:100%;position:relative;overflow:visible}.block-editor-inserter__main-area{width:auto;display:flex;flex-direction:column;height:100%}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99998}.block-editor-inserter__search{padding:16px;z-index:1;flex-shrink:0;position:relative}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{display:block;padding:16px 16px 16px 48px;border-radius:2px;background:#f3f4f5;border:none;width:100%;height:48px;font-size:16px}@media (min-width:600px){.block-editor-inserter__search input[type=search].block-editor-inserter__search-input{font-size:13px}}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{background:#fff;box-shadow:0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-inserter__search input[type=search].block-editor-inserter__search-input:focus{box-shadow:0 0 0 1.5px #0085ba}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input:-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::-ms-input-placeholder{color:#606a73}.block-editor-inserter__search input[type=search].block-editor-inserter__search-input::placeholder{color:#606a73}.block-editor-inserter__search-icon{position:absolute;top:28px;left:28px}.block-editor-inserter__tabs{display:flex;flex-grow:1;flex-direction:column;margin-top:-8px}.block-editor-inserter__tabs .components-tab-panel__tabs{border-bottom:1px solid #e2e4e7}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-grow:1;flex-direction:column;position:relative}.block-editor-inserter__panel-header{display:inline-flex;align-items:center;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:0 16px}.block-editor-inserter__panel-title{color:#007cba;text-transform:uppercase;font-size:11px;font-weight:500;margin-left:8px}body.admin-color-sunrise .block-editor-inserter__panel-title{color:#d1864a}body.admin-color-ocean .block-editor-inserter__panel-title{color:#a3b9a2}body.admin-color-midnight .block-editor-inserter__panel-title{color:#e14d43}body.admin-color-ectoplasm .block-editor-inserter__panel-title{color:#a7b656}body.admin-color-coffee .block-editor-inserter__panel-title{color:#c2a68c}body.admin-color-blue .block-editor-inserter__panel-title{color:#d9ab59}body.admin-color-light .block-editor-inserter__panel-title{color:#0085ba}.block-editor-inserter__block-list{flex-grow:1;position:relative}.block-editor-inserter__scrollable{overflow:auto;position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:scroll}.block-editor-inserter__popover .block-editor-block-types-list{margin:0 -8px}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks{display:inline-block;margin:16px}.block-editor-inserter__no-results{padding:32px;margin-top:64px;text-align:center}.block-editor-inserter__no-results-icon{fill:#b5bcc2}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{display:flex;align-items:center}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{display:none;width:300px;background:#fff;border-radius:2px;border:1px solid #e2e4e7;position:absolute;top:16px;right:calc(100% + 16px)}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__preview-content{min-height:144px;background:#f3f4f5;display:-ms-grid;display:grid;flex-grow:1;align-items:center}.block-editor-inserter__preview-content-missing{flex:1;display:flex;justify-content:center;align-items:center;min-height:144px;color:#606a73;background:#f3f4f5}.block-editor-inserter__tips{border-top:1px solid #e2e4e7;padding:16px;flex-shrink:0}.block-editor-inserter__patterns-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;position:relative;border:1px solid transparent}.block-editor-inserter__patterns-item:hover{border:1px solid #007cba}body.admin-color-sunrise .block-editor-inserter__patterns-item:hover{border:1px solid #d1864a}body.admin-color-ocean .block-editor-inserter__patterns-item:hover{border:1px solid #a3b9a2}body.admin-color-midnight .block-editor-inserter__patterns-item:hover{border:1px solid #e14d43}body.admin-color-ectoplasm .block-editor-inserter__patterns-item:hover{border:1px solid #a7b656}body.admin-color-coffee .block-editor-inserter__patterns-item:hover{border:1px solid #c2a68c}body.admin-color-blue .block-editor-inserter__patterns-item:hover{border:1px solid #d9ab59}body.admin-color-light .block-editor-inserter__patterns-item:hover{border:1px solid #0085ba}.block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;outline:2px solid transparent}body.admin-color-sunrise .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-inserter__patterns-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #0085ba}.block-editor-inserter__patterns-item.is-placeholder{min-height:100px}.block-editor-inserter__patterns-item-title{padding:4px;font-size:12px;text-align:center}.block-editor-post-preview__dropdown{display:none;margin-left:12px;padding:0}.block-editor-post-preview__button-toggle{display:flex;justify-content:space-between;padding:0 12px 0 8px}.block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-post-preview__button-toggle:focus:not(:disabled){box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #0085ba}.block-editor-post-preview__button-toggle svg{margin-right:4px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content .components-popover__content{overflow-y:visible}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px 12px;margin-right:-12px;margin-left:-12px}@media (min-width:600px){.editor-post-preview{display:none}.block-editor-post-preview__dropdown{display:flex}}
1
+ #start-resizable-editor-section{display:none}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-matrix-toolbar__popover .components-popover__content{min-width:0;padding:8px;width:auto}.block-editor-block-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}.block-editor-block-icon svg{min-width:20px;min-height:20px;max-width:24px;max-height:24px}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e2e4e7}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-blocks{display:block;font-size:13px;background:#fff;padding:32px 16px;text-align:center}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*{background:#f8f9f9}.block-editor-block-list__layout .block-editor-block-list__block.is-dragging>*>*{visibility:hidden}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-styles .block-editor-block-list__block{margin:0}.block-editor-block-list__layout .block-editor-block-list__block{position:relative;overflow-wrap:break-word}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-right:0;margin-left:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus{outline:none}.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px;box-shadow:0 0 0 1.5px #007cba;border-radius:1px}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #0085ba}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){opacity:.5;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected){transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected).is-focused,.block-editor-block-list__layout .block-editor-block-list__block.is-focus-mode:not(.is-multi-selected):not(.is-focused) .block-editor-block-list__block{opacity:1}.block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{content:"";position:absolute;z-index:0;pointer-events:none;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;left:0;right:0;top:-14px;border-radius:2px;border-top:4px solid #007cba}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #d9ab59}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-drop-target:before{border-top:4px solid #0085ba}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{position:absolute;z-index:1;pointer-events:none;content:"";top:1px;bottom:1px;right:1px;left:1px}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #007cba;border-radius:1px;transition:box-shadow .2s ease-out;outline:2px solid transparent}body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-sunrise .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-sunrise .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-ocean .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-ocean .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-midnight .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-midnight .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-ectoplasm .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-ectoplasm .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-coffee .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-coffee .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-blue .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-blue .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,body.admin-color-light .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,body.admin-color-light .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #0085ba}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{transition-duration:0s}}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:after,.is-dark-theme .is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected .components-placeholder ::selection,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block.is-selected .components-placeholder ::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:36px}.block-editor-block-list__layout .block-editor-block-list__block:after{content:"";pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;box-shadow:0 0 0 1.5px transparent;transition:box-shadow .1s ease-in}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block:after{transition-duration:0s}}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-radius:2px;background-color:hsla(0,0%,100%,.4)}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block{cursor:default}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__layout .block-editor-default-block-appender .block-editor-inserter{right:auto;left:8px}.block-editor-block-list__layout .wp-block{margin-right:auto;margin-left:auto}.wp-block[data-align=left],.wp-block[data-align=right]{width:100%;height:0}.wp-block[data-align=left]:before,.wp-block[data-align=right]:before{content:none}.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-block[data-align=left]>*{float:left;margin-right:2em}.wp-block[data-align=right]>*{float:right;margin-left:2em}.wp-block[data-align=full],.wp-block[data-align=wide]{clear:both}.block-editor-block-list .block-editor-inserter{margin:8px;cursor:move;cursor:grab}.block-editor-block-list__insertion-point{position:relative;z-index:6;margin-top:-14px}.block-editor-block-list__insertion-point-indicator{position:absolute;top:calc(50% - 1px);height:1.5px;right:0;left:0;background:#0085ba}body.admin-color-sunrise .block-editor-block-list__insertion-point-indicator{background:#d1864a}body.admin-color-ocean .block-editor-block-list__insertion-point-indicator{background:#a3b9a2}body.admin-color-midnight .block-editor-block-list__insertion-point-indicator{background:#e14d43}body.admin-color-ectoplasm .block-editor-block-list__insertion-point-indicator{background:#a7b656}body.admin-color-coffee .block-editor-block-list__insertion-point-indicator{background:#c2a68c}body.admin-color-blue .block-editor-block-list__insertion-point-indicator{background:#82b4cb}body.admin-color-light .block-editor-block-list__insertion-point-indicator{background:#0085ba}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;cursor:text}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__insertion-point-inserter.is-inserter-hidden .block-editor-inserter__toggle{opacity:0;pointer-events:none}.block-editor-block-list__block-popover-inserter{position:absolute;top:-9999em;margin-bottom:14px}.block-editor-block-list__block-popover-inserter.is-visible{position:static}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button{background:#1e1e1e;border-radius:2px;color:#fff;padding:0;min-width:24px;height:24px}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button:hover,.block-editor-default-block-appender .block-editor-inserter__toggle.components-button:hover{color:#fff}.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation:block-editor-inserter__toggle__fade-in-animation-delayed 1.2s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block-popover-inserter .block-editor-inserter__toggle.components-button,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button{animation-duration:1ms}}@keyframes block-editor-inserter__toggle__fade-in-animation-delayed{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-duration:1ms}}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.wp-block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block>.block-editor-block-list__insertion-point{position:absolute;top:-16px;height:28px;bottom:auto;right:14px;left:14px}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{display:block;margin:0;width:100%;border:none;outline:none;box-shadow:none;resize:none;overflow:hidden;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:150%;transition:padding .2s linear}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:none}.block-editor-block-contextual-toolbar-wrapper{padding-right:48px}.block-editor-block-contextual-toolbar{border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-list__block-selection-button{display:block;z-index:22}.block-editor-block-list__block-selection-button .components-button{font-size:13px;height:46px;padding:12px 16px;position:relative;top:-1px;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px;background-color:#fff;margin-right:49px}.block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-list__block-selection-button .components-button:focus{box-shadow:0 0 0 1.5px #0085ba}.block-editor-block-list__block .block-editor-warning{z-index:5;position:relative}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-block-list__insertion-point-popover.is-without-arrow{z-index:28}.block-editor-block-list__insertion-point-popover.is-without-arrow .components-popover__content.components-popover__content{background:none;border:none;box-shadow:none;overflow-y:visible;margin-right:0}.components-popover.block-editor-block-list__block-popover{z-index:31}.components-popover.block-editor-block-list__block-popover .components-popover__content{margin:0!important;min-width:auto;width:max-content;background:none;border:none;box-shadow:none;overflow-y:visible;pointer-events:none}.components-popover.block-editor-block-list__block-popover .components-popover__content>*{pointer-events:all}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-right:-48px}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-align=full],.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-list__block-selection-button[data-align=full]{margin-right:0}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-list__layout.is-root-container{padding-right:14px;padding-left:14px}@media (min-width:600px){.block-editor-block-list__layout.is-root-container{padding-right:36px;padding-left:36px}}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-14px;margin-left:-14px}@media (min-width:600px){.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:-36px;margin-left:-36px}}.block-editor-block-list__block .block-list-appender{margin:8px 0}.has-background .block-editor-block-list__block .block-list-appender{margin:20px 8px}.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{opacity:1;transform:scale(1);transition:all .1s ease}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{transition-duration:0s}}.block-list-appender.is-drop-target>div:before{content:"";position:absolute;left:-8px;right:-8px;top:-8px;bottom:-8px;border-radius:2px;border:3px solid #0085ba}body.admin-color-sunrise .block-list-appender.is-drop-target>div:before{border:3px solid #d1864a}body.admin-color-ocean .block-list-appender.is-drop-target>div:before{border:3px solid #a3b9a2}body.admin-color-midnight .block-list-appender.is-drop-target>div:before{border:3px solid #e14d43}body.admin-color-ectoplasm .block-list-appender.is-drop-target>div:before{border:3px solid #a7b656}body.admin-color-coffee .block-list-appender.is-drop-target>div:before{border:3px solid #c2a68c}body.admin-color-blue .block-list-appender.is-drop-target>div:before{border:3px solid #82b4cb}body.admin-color-light .block-list-appender.is-drop-target>div:before{border:3px solid #0085ba}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-breadcrumb{list-style:none;padding:0;margin:0}.block-editor-block-breadcrumb li{display:inline-block;margin:0}.block-editor-block-breadcrumb li:not(:last-child):after{content:"\2192"}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){text-decoration:underline;box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{content:"";display:block;position:absolute;border-radius:2px;top:1px;left:1px;bottom:1px;right:1px;box-shadow:inset 0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-breadcrumb__button.components-button:focus:before{box-shadow:inset 0 0 0 1.5px #0085ba}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;padding:0 8px;font-size:inherit}.block-editor-block-card{display:flex;align-items:flex-start}.block-editor-block-card__icon{border:1px solid #ccd0d4;padding:7px;margin-left:10px;height:36px;width:36px}.block-editor-block-card__content{flex-grow:1}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{margin:0 0 5px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor-block-compare{overflow:auto;height:auto}@media (min-width:600px){.block-editor-block-compare{max-height:70%}}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;justify-content:space-between;flex-direction:column;width:50%;padding:0 0 0 16px;min-width:200px}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-right:15px;padding-left:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{font-family:Menlo,Consolas,monaco,monospace;font-size:12px;color:#23282d;border-bottom:1px solid #ddd;padding-bottom:15px;line-height:1.7}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-top:3px;padding-bottom:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#d94f4f}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:14px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:14px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-mobile-toolbar{display:flex;flex-direction:row;border-left:1px solid #e2e4e7}.block-editor-block-mobile-toolbar .block-editor-block-mover-button{width:36px;height:36px;border-radius:4px;padding:3px;margin:0;justify-content:center;align-items:center}.block-editor-block-mobile-toolbar .block-editor-block-mover-button .dashicon{margin:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover{display:flex;margin-left:auto}.block-editor-block-mobile-toolbar .block-editor-block-mover .block-editor-block-mover-button{float:right}.block-editor-block-mover{display:inline-flex;flex-direction:row}.block-editor-block-mover-button__description{display:none}.block-editor-block-mover-button.has-icon{padding:0}.block-editor-block-mover .components-toolbar,.block-editor-block-mover .components-toolbar-group{flex-direction:column;flex:1}.block-editor-block-mover.is-horizontal .components-toolbar,.block-editor-block-mover.is-horizontal .components-toolbar-group{flex-direction:row}.block-editor-block-mover .block-editor-block-mover-button{height:24px;width:48px;padding:0!important}.block-editor-block-mover .block-editor-block-mover-button:before{right:8px!important;left:8px!important}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button svg{margin-bottom:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-up-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-up-button:before{bottom:0;height:calc(100% - 8px)}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button svg,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button svg{margin-top:-8px}.block-editor-block-mover .components-toolbar-group .block-editor-block-mover-button.is-down-button:before,.block-editor-block-mover .components-toolbar .block-editor-block-mover-button.is-down-button:before{top:0;height:calc(100% - 8px)}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon{height:48px;width:24px!important;min-width:24px!important;padding-right:0;padding-left:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.has-icon:before{top:8px;bottom:8px;min-width:0;width:auto;height:auto}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon svg{margin-right:0;margin-left:-8px;margin-bottom:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-up-button.has-icon:before{right:8px!important;left:0!important}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon svg{margin-right:-8px;margin-left:0;margin-top:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover-button.is-down-button.has-icon:before{right:0!important;left:8px!important}.block-editor-block-mover:not([draggable=false]){cursor:grab}.block-editor-block-mover:not([draggable=false]) .block-editor-block-mover__control{cursor:grab!important}.block-editor-block-mover:not([draggable=false]) .block-editor-block-mover__control:not(:disabled):not([aria-disabled=true]):active{cursor:grabbing}.block-editor-block-navigation__label{margin:0 0 8px;color:#6c7781}.block-editor-block-navigation__container{padding:7px}.block-editor-block-navigation-tree{width:100%;border-collapse:collapse;padding:0;margin:0}.block-editor-block-navigation-leaf{position:relative}.block-editor-block-navigation-leaf .block-editor-block-navigation-block-contents{display:flex;align-items:center;width:calc(100% - .8em);height:auto;padding:6px;text-align:right;color:#40464d;border-radius:2px}.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf.is-visible .block-editor-block-navigation-block-contents{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-icon{align-self:flex-start;margin-left:6px}.block-editor-block-navigation-leaf.is-selected .block-editor-block-icon svg,.block-editor-block-navigation-leaf.is-selected:focus .block-editor-block-icon svg{color:#fff;background:#1e1e1e;box-shadow:0 0 0 1px #1e1e1e;border-radius:1px}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{width:36px;opacity:0;vertical-align:top}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell{transition-duration:0s}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{opacity:1;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell.is-visible,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell.is-visible{animation-duration:1ms}}.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__menu-cell .components-button.has-icon,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell,.block-editor-block-navigation-leaf .block-editor-block-navigation-block__mover-cell .components-button.has-icon{width:24px;min-width:24px;padding:0}.block-editor-block-navigation-leaf .block-editor-block-mover-button{width:36px;height:36px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px .8em 6px 6px;min-width:24px}.block-editor-block-navigation-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-block-navigation-appender__description,.block-editor-block-navigation-block-select-button__description,.block-editor-block-navigation-block-slot__description{display:none}.block-editor-block-navigation-appender__cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-appender__cell .block-editor-block-navigation-block__contents-container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-appender__container,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigation-block__contents-container{display:flex}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line{position:relative;flex-shrink:0;width:24px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:first-child,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:first-child{width:18px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item{margin-left:6px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line:before{content:"";display:block;position:absolute;top:-1px;bottom:-2px;left:0;border-left:2px solid #a2aab2}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.is-terminated:before,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.is-terminated:before{border-color:transparent}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item.is-last-row,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item.is-last-row{height:16px}.block-editor-block-navigation-appender__cell .block-editor-block-navigator-descender-line.has-item:after,.block-editor-block-navigation-block__contents-cell .block-editor-block-navigator-descender-line.has-item:after{content:"";display:block;position:absolute;top:16px;right:100%;width:5px;border-bottom:2px solid #a2aab2}.block-editor-block-parent-selector{background:#fff;border:1px solid #1e1e1e;border-radius:2px;padding:8px;line-height:1}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{width:32px;min-width:auto;height:32px;padding:0}.block-editor-block-preview__container{position:relative;width:100%;overflow:hidden}.block-editor-block-preview__content{position:absolute;top:0;right:0;transform-origin:top right;text-align:initial;margin:0;overflow:visible;min-height:auto}.block-editor-block-preview__content .block-editor-block-drop-zone,.block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__content .block-list-appender,.block-editor-block-preview__content .reusable-block-indicator{display:none}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container{padding-right:0;padding-left:0}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.wp-block[data-align=full]{margin-right:0;margin-left:0}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles{display:flex;flex-wrap:wrap;justify-content:space-between}.block-editor-block-styles__item{width:calc(50% - 4px);margin:4px 0;flex-shrink:0;cursor:pointer;overflow:hidden;border-radius:2px;padding:6px;display:flex;flex-direction:column}.block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #007cba;outline:2px solid transparent}body.admin-color-sunrise .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-block-styles__item:focus{box-shadow:0 0 0 1.5px #0085ba}.block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#007cba}body.admin-color-sunrise .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#d1864a}body.admin-color-ocean .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#a3b9a2}body.admin-color-midnight .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#e14d43}body.admin-color-ectoplasm .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#a7b656}body.admin-color-coffee .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#c2a68c}body.admin-color-blue .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#d9ab59}body.admin-color-light .block-editor-block-styles__item:hover .block-editor-block-styles__item-preview{border-color:#0085ba}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-label{font-weight:700}.block-editor-block-styles__item.is-active .block-editor-block-styles__item-preview{border:2px solid #1e1e1e}.block-editor-block-styles__item-preview{outline:1px solid transparent;padding:0;border:1px solid rgba(30,30,30,.2);border-radius:2px;display:flex;overflow:hidden;background:#fff;align-items:center;flex-grow:1;min-height:80px}.block-editor-block-styles__item-label{text-align:center;padding:4px 2px}.block-editor-block-switcher,.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{margin:0;display:block;height:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-blocks-icon{margin-left:auto;margin-right:auto}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e!important}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon{padding:0}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{height:100%;position:relative;margin:0 auto;display:flex;align-items:center}.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{top:8px;left:8px;bottom:8px;right:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px;max-width:680px;display:flex;background:#fff;padding:0}.components-popover.block-editor-block-switcher__popover .components-popover__content .components-menu-group{padding:16px 24px}.components-popover.block-editor-block-switcher__popover .components-popover__content .components-menu-group+.components-menu-group{border-color:#ccc}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__container{min-width:300px;max-width:340px;width:50%}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__label{margin-bottom:8px;color:#757575}@media (min-width:782px){.block-editor-block-switcher__popover .components-popover__content{position:relative}.block-editor-block-switcher__popover .components-popover__content .block-editor-block-switcher__preview{border-right:1px solid #e2e4e7;box-shadow:0 2px 6px rgba(0,0,0,.05);background:#fff;width:300px;height:auto;position:-webkit-sticky;position:sticky;-ms-grid-row-align:stretch;align-self:stretch;top:0;padding:10px}}.block-editor-block-switcher__popover .components-popover__content .components-panel__body{border:0;position:relative;z-index:1}.block-editor-block-switcher__popover .components-popover__content .components-panel__body+.components-panel__body{border-top:1px solid #e2e4e7}.block-editor-block-switcher__popover .block-editor-block-styles{margin:0 -3px}.block-editor-block-switcher__popover .block-editor-block-types-list{margin:12px 0 0}.block-editor-block-switcher__preview-title{margin-bottom:10px;color:#6c7781}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{width:48px;height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-types-list{list-style:none;padding:4px;margin-right:-4px;margin-left:-4px;overflow:hidden;display:flex;flex-wrap:wrap}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;width:100%;margin:16px 0;padding:0;list-style:none}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{list-style:none;margin:8px 0 0 8px;flex-shrink:1;max-width:100px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:flex}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;display:block;margin-left:12px;text-align:center}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;width:100%;height:auto;color:#1e1e1e;box-shadow:inset 0 0 0 1px #1e1e1e}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #007cba}body.admin-color-sunrise .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #d1864a}body.admin-color-ocean .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #a3b9a2}body.admin-color-midnight .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #e14d43}body.admin-color-ectoplasm .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #a7b656}body.admin-color-coffee .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #c2a68c}body.admin-color-blue .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #d9ab59}body.admin-color-light .block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #0085ba}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #007cba}body.admin-color-sunrise .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #d1864a}body.admin-color-ocean .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #a3b9a2}body.admin-color-midnight .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #e14d43}body.admin-color-ectoplasm .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #a7b656}body.admin-color-coffee .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #c2a68c}body.admin-color-blue .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #d9ab59}body.admin-color-light .block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px #0085ba}.block-editor-button-block-appender:active{color:#000}.block-editor-button-block-appender.block-list-appender__toggle{display:flex;flex-direction:row;color:#1e1e1e;box-shadow:none;height:24px;padding:0;margin-right:8px}.block-editor-button-block-appender.block-list-appender__toggle:active{color:#fff}.block-editor-button-block-appender.block-list-appender__toggle>svg{width:24px;background-color:#1e1e1e;color:#fff}.block-editor-button-block-appender.block-list-appender__toggle .block-editor-button-block-appender__label{display:block;margin-right:8px}.block-editor-color-gradient-control__color-indicator{margin-bottom:8px}.block-editor-color-gradient-control__button-tabs{display:block;margin-bottom:8px}.block-editor-panel-color-gradient-settings .component-color-indicator{vertical-align:text-bottom}.block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:inline-block}.block-editor-panel-color-gradient-settings.is-opened .block-editor-panel-color-gradient-settings__panel-title .component-color-indicator{display:none}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-default-block-appender{clear:both;margin-right:auto;margin-left:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{font-family:inherit;font-size:inherit;border:none;background:none;box-shadow:none;display:block;cursor:text;width:100%;outline:1px solid transparent;transition:outline .2s;resize:none;margin-top:28px;margin-bottom:28px;padding:0 0 0 50px;color:rgba(14,28,46,.62)}@media (prefers-reduced-motion:reduce){.block-editor-default-block-appender textarea.block-editor-default-block-appender__content{transition-duration:0s}}.is-dark-theme .block-editor-default-block-appender textarea.block-editor-default-block-appender__content{color:hsla(0,0%,100%,.65)}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender__content{line-height:1.8}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{position:absolute;top:0;height:32px}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle,.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle{margin-left:0}.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:8px}@media (min-width:600px){.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{display:flex;height:100%}}.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}@media (min-width:600px){.block-editor-default-block-appender .block-editor-inserter{align-items:center}}.block-editor-link-control{position:relative;min-width:360px}.components-popover__content .block-editor-link-control{min-width:auto;width:90vw;max-width:360px}.block-editor-link-control__search-input-wrapper{position:relative}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;font-size:16px;line-height:normal;width:calc(100% - 32px);display:block;padding:11px 16px 11px 36px;margin:16px;position:relative;border:1px solid #e2e4e7;border-radius:4px}@media (prefers-reduced-motion:reduce){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{font-size:13px;line-height:normal}}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#007cba;box-shadow:0 0 0 .5px #007cba;outline:2px solid transparent}body.admin-color-sunrise .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#d1864a;box-shadow:0 0 0 .5px #d1864a}body.admin-color-ocean .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#a3b9a2;box-shadow:0 0 0 .5px #a3b9a2}body.admin-color-midnight .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#e14d43;box-shadow:0 0 0 .5px #e14d43}body.admin-color-ectoplasm .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#a7b656;box-shadow:0 0 0 .5px #a7b656}body.admin-color-coffee .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#c2a68c;box-shadow:0 0 0 .5px #c2a68c}body.admin-color-blue .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#d9ab59;box-shadow:0 0 0 .5px #d9ab59}body.admin-color-light .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:focus{border-color:#0085ba;box-shadow:0 0 0 .5px #0085ba}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:rgba(14,28,46,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:rgba(14,28,46,.62)}.block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:rgba(14,28,46,.62)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.block-editor-link-control .block-editor-link-control__search-input .components-base-control__field{margin-bottom:0}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{position:absolute;top:19px;left:19px}.block-editor-link-control__search-results-wrapper{position:relative;margin-top:-15px}.block-editor-link-control__search-results-wrapper:after,.block-editor-link-control__search-results-wrapper:before{content:"";position:absolute;right:-1px;left:16px;display:block;pointer-events:none;z-index:100}.block-editor-link-control__search-results-wrapper:before{height:8px;top:0;bottom:auto;background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0))}.block-editor-link-control__search-results-wrapper:after{height:16px;bottom:0;top:auto;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff)}.block-editor-link-control__search-results-label{padding:15px 30px 0;display:block;font-size:1.1em}.block-editor-link-control__search-results{margin:0;padding:8px 16px;max-height:200px;overflow-y:auto}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item{position:relative;display:flex;align-items:center;font-size:13px;cursor:pointer;background:#fff;width:100%;border:none;text-align:right;padding:10px 15px;border-radius:5px;height:auto}.block-editor-link-control__search-item:focus,.block-editor-link-control__search-item:hover{background-color:#edeff0}.block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #007cba}body.admin-color-sunrise .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #d1864a}body.admin-color-ocean .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #a3b9a2}body.admin-color-midnight .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #e14d43}body.admin-color-ectoplasm .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #a7b656}body.admin-color-coffee .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #c2a68c}body.admin-color-blue .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #d9ab59}body.admin-color-light .block-editor-link-control__search-item:focus:not(:disabled){box-shadow:inset 0 0 0 1.5px #0085ba}.block-editor-link-control__search-item.is-selected{background:#f3f4f5}.block-editor-link-control__search-item.is-selected .block-editor-link-control__search-item-type{background:#fff}.block-editor-link-control__search-item.is-current{background:transparent;border:0;width:100%;cursor:default;padding:16px 24px 16px 16px}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{display:block;margin-left:24px;overflow:hidden;white-space:nowrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{margin-left:1em;min-width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-info,.block-editor-link-control__search-item .block-editor-link-control__search-item-title{max-width:230px;overflow:hidden;text-overflow:ellipsis}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{color:#191e23}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;margin-bottom:.2em;font-weight:500}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{font-weight:700;color:#000;background-color:transparent}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-info{display:block;color:#6c7781;font-size:.9em;line-height:1.3}.block-editor-link-control__search-item .block-editor-link-control__search-item-type{display:block;padding:3px 8px;margin-right:auto;font-size:.9em;background-color:#f3f4f5;border-radius:2px}.block-editor-link-control__loading{margin:16px;display:flex;align-items:center}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{margin-top:20px;overflow:visible;padding:12px 15px}.components-button+.block-editor-link-control__search-create:before{content:"";position:absolute;top:-10px;right:0;display:block;width:100%;border-top:1px solid #e2e4e7}.block-editor-link-control__search-results div[role=menu]>.block-editor-link-control__search-item.block-editor-link-control__search-item{padding:10px}.block-editor-link-control__settings{border-top:1px solid #e2e4e7;margin:0;padding:16px 24px}.block-editor-link-control__settings :last-child{margin-bottom:0}.block-editor-link-control__setting{margin-bottom:16px}.block-editor-link-control__setting :last-child{margin-bottom:0}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{position:absolute;right:auto;bottom:auto;top:28px;left:62px}.block-editor-link-control__search-item-action{margin-right:auto;flex-shrink:0}.block-editor-line-height-control{margin-bottom:24px}.block-editor-line-height-control input{display:block;max-width:60px}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__row{display:flex;justify-content:space-between}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-bottom:.5em}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height input,.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width input{line-height:1.25}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__width{margin-left:5px}.block-editor-image-size-control .block-editor-image-size-control__row .block-editor-image-size-control__height{margin-right:5px}.block-editor-block-list__layout.has-overlay:after{content:"";position:absolute;top:-14px;left:-14px;bottom:-14px;right:-14px;z-index:60}[data-align=full] .has-overlay:after{left:0;right:0}.block-editor-block-types-list__list-item{display:block;width:33.33%;padding:0;margin:0}.components-button.block-editor-block-types-list__item{display:flex;flex-direction:column;width:100%;font-size:13px;color:#32373c;padding:8px;align-items:stretch;justify-content:center;cursor:pointer;background:transparent;word-break:break-word;border-radius:2px;border:1px solid transparent;transition:all .05s ease-in-out;position:relative;height:auto}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{opacity:.6;cursor:default}.components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#007cba;color:#007cba!important}body.admin-color-sunrise .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#d1864a;color:#d1864a!important}body.admin-color-ocean .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#a3b9a2;color:#a3b9a2!important}body.admin-color-midnight .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#e14d43;color:#e14d43!important}body.admin-color-ectoplasm .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#a7b656;color:#a7b656!important}body.admin-color-coffee .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#c2a68c;color:#c2a68c!important}body.admin-color-blue .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#d9ab59;color:#d9ab59!important}body.admin-color-light .components-button.block-editor-block-types-list__item:not(:disabled):hover{border-color:#0085ba;color:#0085ba!important}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{color:#fff;background:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{padding:12px 20px;border-radius:2px;color:#1e1e1e;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-right:auto;margin-left:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-duration:0s}}.block-editor-block-types-list__item-title{padding:4px 2px 8px;font-size:12px}.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__options .components-popover__content{padding-top:16px}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-replace-flow__media-upload-menu{margin-bottom:16px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{top:16px}.block-editor-media-flow__url-input .block-editor-link-control{margin-top:-16px;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .components-base-control .components-base-control__field{margin-bottom:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:180px;margin-top:16px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{width:auto;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:16px 0 0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px}.block-editor-media-flow__error{padding:0 20px 20px;max-width:255px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{overflow:hidden;word-wrap:break-word}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;left:10px}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:100%;flex-grow:1;border:none;border-radius:0;margin:2px}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{margin:1em;display:block}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{cursor:pointer;box-shadow:0 0 0 1px #007cba}body.admin-color-sunrise .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #d1864a}body.admin-color-ocean .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #a3b9a2}body.admin-color-midnight .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #e14d43}body.admin-color-ectoplasm .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #a7b656}body.admin-color-coffee .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #c2a68c}body.admin-color-blue .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #d9ab59}body.admin-color-light .block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px #0085ba}.block-editor-multi-selection-inspector__card{display:flex;align-items:flex-start;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{margin-right:-2px;margin-left:10px;padding:0 3px;width:36px;height:24px}.block-editor .block-editor-plain-text{box-shadow:none;font-family:inherit;font-size:inherit;color:inherit;line-height:inherit;border:none;padding:0;margin:0;width:100%}.block-editor-responsive-block-control{margin-bottom:28px;border-bottom:1px solid #d7dade;padding-bottom:14px}.block-editor-responsive-block-control:last-child{padding-bottom:0;border-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}.block-editor-format-toolbar .components-dropdown-menu__toggle{justify-content:center}.block-editor-rich-text__editable>p:first-child{margin-top:0}.block-editor-rich-text__editable [data-rich-text-placeholder]{pointer-events:none}.block-editor-rich-text__editable [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.block-editor-rich-text__editable:focus{outline:none}.block-editor-rich-text__editable:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable:focus:not(.keep-placeholder-on-focus) [data-rich-text-placeholder]:after{display:none}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{width:auto;min-width:auto;margin-bottom:8px;box-shadow:none;border:1px solid #1e1e1e;border-radius:2px;background-color:#fff}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar-group{border:none}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-width:48px;min-height:48px;padding-right:12px;padding-left:12px}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#11a0d2;line-height:normal;box-shadow:0 0 2px 2px rgba(0,0,0,.6);text-decoration:none;outline:none;z-index:100000}body.admin-color-sunrise .block-editor-skip-to-selected-block:focus{color:#c8b03c}body.admin-color-ocean .block-editor-skip-to-selected-block:focus{color:#a89d8a}body.admin-color-midnight .block-editor-skip-to-selected-block:focus{color:#77a6b9}body.admin-color-ectoplasm .block-editor-skip-to-selected-block:focus{color:#c77430}body.admin-color-coffee .block-editor-skip-to-selected-block:focus{color:#9fa47b}body.admin-color-blue .block-editor-skip-to-selected-block:focus{color:#d9ab59}body.admin-color-light .block-editor-skip-to-selected-block:focus{color:#c75726}.block-editor-tool-selector__help{margin:8px -12px -12px;padding:12px 20px;border-top:1px solid #e2e4e7;color:#6c7781}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;position:relative;padding:1px}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:100%;padding:8px;border:none;border-radius:0;margin-right:0;margin-left:0;font-size:16px}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{width:300px}}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text]{width:100%}.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{position:absolute;left:8px;bottom:17px;margin:0}.block-editor-url-input__input[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:#007cba;box-shadow:0 0 0 .5px #007cba;outline:2px solid transparent}body.admin-color-sunrise .block-editor-url-input__input[type=text]:focus{border-color:#d1864a;box-shadow:0 0 0 .5px #d1864a}body.admin-color-ocean .block-editor-url-input__input[type=text]:focus{border-color:#a3b9a2;box-shadow:0 0 0 .5px #a3b9a2}body.admin-color-midnight .block-editor-url-input__input[type=text]:focus{border-color:#e14d43;box-shadow:0 0 0 .5px #e14d43}body.admin-color-ectoplasm .block-editor-url-input__input[type=text]:focus{border-color:#a7b656;box-shadow:0 0 0 .5px #a7b656}body.admin-color-coffee .block-editor-url-input__input[type=text]:focus{border-color