[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> block-editor.min.js (source)

   1  /*! This file is auto-generated */
   2  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=363)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){var r;
   3  /*!
   4    Copyright (c) 2017 Jed Watson.
   5    Licensed under the MIT License (MIT), see
   6    http://jedwatson.github.io/classnames
   7  */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===i)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},110:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},112:function(e,t,n){"use strict";var r=n(113);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,c=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 f=r.isWindow(t),b=r.offset(e),p=r.outerHeight(e),h=r.outerWidth(e),m=void 0,g=void 0,v=void 0,O=void 0,k=void 0,j=void 0,y=void 0,_=void 0,C=void 0,E=void 0;f?(y=t,E=r.height(y),C=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},k={left:b.left-_.left-s,top:b.top-_.top-l},j={left:b.left+h-(_.left+C)+d,top:b.top+p-(_.top+E)+u},O=_):(m=r.offset(t),g=t.clientHeight,v=t.clientWidth,O={left:t.scrollLeft,top:t.scrollTop},k={left:b.left-(m.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:b.top-(m.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},j={left:b.left+h-(m.left+v+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:b.top+p-(m.top+g+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),k.top<0||j.top>0?!0===c?r.scrollTop(t,O.top+k.top):!1===c?r.scrollTop(t,O.top+j.top):k.top<0?r.scrollTop(t,O.top+k.top):r.scrollTop(t,O.top+j.top):i||((c=void 0===c||!!c)?r.scrollTop(t,O.top+k.top):r.scrollTop(t,O.top+j.top)),o&&(k.left<0||j.left>0?!0===a?r.scrollLeft(t,O.left+k.left):!1===a?r.scrollLeft(t,O.left+j.left):k.left<0?r.scrollLeft(t,O.left+k.left):r.scrollLeft(t,O.left+j.left):i||((a=void 0===a||!!a)?r.scrollLeft(t,O.left+k.left):r.scrollLeft(t,O.left+j.left)))}},113: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 i(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 c(e){return i(e)}function a(e){return i(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,c=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=c.clientLeft||i.clientLeft||0,top:r-=c.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=c(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="currentStyle",f="runtimeStyle",b="left",p="px";var h=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function g(e){return"border-box"===h(e,"boxSizing")}"undefined"!=typeof window&&(h=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,i=n||o.defaultView.getComputedStyle(e,null);return i&&(r=i.getPropertyValue(t)||i[t]),r}:function(e,t){var n=e[d]&&e[d][t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[b],i=e[f][b];e[f][b]=e[d][b],r[b]="fontSize"===t?"1em":n||0,n=r.pixelLeft+p,r[b]=o,e[f][b]=i}return""===n?"auto":n});var v=["margin","border","padding"],O=-1,k=2,j=1;function y(e,t,n){var r=0,o=void 0,i=void 0,c=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(c=0;c<n.length;c++){var a=void 0;a="border"===o?o+n[c]+"Width":o+n[c],r+=parseFloat(h(e,a))||0}return r}function _(e){return null!=e&&e==e.window}var C={};function E(e,t,n){if(_(e))return"width"===t?C.viewportWidth(e):C.viewportHeight(e);if(9===e.nodeType)return"width"===t?C.docWidth(e):C.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(h(e),g(e)),c=0;(null==o||o<=0)&&(o=void 0,(null==(c=h(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=parseFloat(c)||0),void 0===n&&(n=i?j:O);var a=void 0!==o||i,l=o||c;if(n===O)return a?l-y(e,["border","padding"],r):c;if(a){var s=n===k?-y(e,["border"],r):y(e,["margin"],r);return l+(n===j?0:s)}return c+y(e,v.slice(n),r)}m(["Width","Height"],(function(e){C["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],C["viewport"+e](n))},C["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var S={position:"absolute",visibility:"hidden",display:"block"};function w(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=E.apply(void 0,n):function(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);for(i in n.call(e),t)t.hasOwnProperty(i)&&(o[i]=r[i])}(e,S,(function(){t=E.apply(void 0,n)})),t}function I(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)):h(e,t);for(var i in t)t.hasOwnProperty(i)&&I(e,i,t[i])}m(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);C["outer"+t]=function(t,n){return t&&w(t,e,n?0:j)};var n="width"===e?["Left","Right"]:["Top","Bottom"];C[e]=function(t,r){if(void 0===r)return t&&w(t,e,O);if(t){h(t);return g(t)&&(r+=y(t,["padding","border"],n)),I(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"===I(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o=parseFloat(I(e,i))||0,r[i]=o+t[i]-n[i]);I(e,r)}(e,t)},isWindow:_,each:m,css:I,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(_(e)){if(void 0===t)return c(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(_(e)){if(void 0===t)return a(e);window.scrollTo(c(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},C)},114: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)}),i=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},c=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(21),l=n(28),s=n(115),u=n(116),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,c(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return i({},a,{saveDOMNodeRef:s,style:u?i({},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=c(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",i({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(e){this.props.value===this.currentValue&&this.props.rows===e.rows||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},115:function(e,t,n){var r,o,i;
   8  /*!
   9      autosize 4.0.2
  10      license: MIT
  11      http://www.jacklmoore.com/autosize
  12  */o=[e,t],void 0===(i="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))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},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),c!==r){c=r;var o=i("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 c(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=i)},116:function(e,t,n){var r=n(117);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 i=e.nodeName,c=document.createElement(i);c.innerHTML="&nbsp;","TEXTAREA"===i.toUpperCase()&&c.setAttribute("rows","1");var a=r(e,"font-size");c.style.fontSize=a,c.style.padding="0px",c.style.border="0px";var l=document.body;l.appendChild(c),n=c.offsetHeight,l.removeChild(c)}return n}},117: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()}))]}},118: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},119:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},12: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}))},120: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}},121:function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var c="object"==typeof r&&r;c.global!==c&&c.window!==c&&c.self;var a,l=2147483647,s=36,u=1,d=26,f=38,b=700,p=72,h=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=s-u,y=Math.floor,_=String.fromCharCode;function C(e){throw RangeError(k[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function S(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+E((e=e.replace(O,".")).split("."),t).join(".")}function w(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function I(e){return E(e,(function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function T(e,t,n){var r=0;for(e=n?y(e/b):e>>1,e+=y(e/t);e>j*d>>1;r+=s)e=y(e/j);return y(r+(j+1)*e/(e+f))}function x(e){var t,n,r,o,i,c,a,f,b,g,v,O=[],k=e.length,j=0,_=h,E=p;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&C("not-basic"),O.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<k;){for(i=j,c=1,a=s;o>=k&&C("invalid-input"),((f=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s)>=s||f>y((l-j)/c))&&C("overflow"),j+=f*c,!(f<(b=a<=E?u:a>=E+d?d:a-E));a+=s)c>y(l/(g=s-b))&&C("overflow"),c*=g;E=T(j-i,t=O.length+1,0==i),y(j/t)>l-_&&C("overflow"),_+=y(j/t),j%=t,O.splice(j++,0,_)}return I(O)}function N(e){var t,n,r,o,i,c,a,f,b,g,v,O,k,j,E,S=[];for(O=(e=w(e)).length,t=h,n=0,i=p,c=0;c<O;++c)(v=e[c])<128&&S.push(_(v));for(r=o=S.length,o&&S.push(m);r<O;){for(a=l,c=0;c<O;++c)(v=e[c])>=t&&v<a&&(a=v);for(a-t>y((l-n)/(k=r+1))&&C("overflow"),n+=(a-t)*k,t=a,c=0;c<O;++c)if((v=e[c])<t&&++n>l&&C("overflow"),v==t){for(f=n,b=s;!(f<(g=b<=i?u:b>=i+d?d:b-i));b+=s)E=f-g,j=s-g,S.push(_(B(g+E%j,0))),f=y(E/j);S.push(_(B(f,0))),i=T(n,k,r==o),n=0,++r}++n,++t}return S.join("")}a={version:"1.3.2",ucs2:{decode:w,encode:I},decode:x,encode:N,toASCII:function(e){return S(e,(function(e){return v.test(e)?"xn--"+N(e):e}))},toUnicode:function(e){return S(e,(function(e){return g.test(e)?x(e.slice(4).toLowerCase()):e}))}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(122)(e),n(63))},122:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},123:function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},124:function(e,t,n){"use strict";t.decode=t.parse=n(125),t.encode=t.stringify=n(126)},125:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var c={};if("string"!=typeof e||0===e.length)return c;var a=/\+/g;e=e.split(t);var l=1e3;i&&"number"==typeof i.maxKeys&&(l=i.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var u=0;u<s;++u){var d,f,b,p,h=e[u].replace(a,"%20"),m=h.indexOf(n);m>=0?(d=h.substr(0,m),f=h.substr(m+1)):(d=h,f=""),b=decodeURIComponent(d),p=decodeURIComponent(f),r(c,b)?o(c[b])?c[b].push(p):c[b]=[c[b],p]:c[b]=p}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},126:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(c(e),(function(c){var a=encodeURIComponent(r(c))+n;return o(e[c])?i(e[c],(function(e){return a+encodeURIComponent(r(e))})).join(t):a+encodeURIComponent(r(e[c]))})).join(t):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},13: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}))},14: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}))},144:function(e,t){!function(){e.exports=this.wp.tokenList}()},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(32),o=n(7);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},16: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}))},17: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}))},18:function(e,t,n){"use strict";var r=n(31);function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return o}))},19:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(40);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},21:function(e,t){!function(){e.exports=this.React}()},216: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)}}}},217:function(e,t,n){
  13  /*!
  14  
  15   diff v3.5.0
  16  
  17  Software License Agreement (BSD License)
  18  
  19  Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
  20  
  21  All rights reserved.
  22  
  23  Redistribution and use of this software in source and binary forms, with or without modification,
  24  are permitted provided that the following conditions are met:
  25  
  26  * Redistributions of source code must retain the above
  27    copyright notice, this list of conditions and the
  28    following disclaimer.
  29  
  30  * Redistributions in binary form must reproduce the above
  31    copyright notice, this list of conditions and the
  32    following disclaimer in the documentation and/or other
  33    materials provided with the distribution.
  34  
  35  * Neither the name of Kevin Decker nor the names of its
  36    contributors may be used to endorse or promote products
  37    derived from this software without specific prior
  38    written permission.
  39  
  40  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  41  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  42  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  43  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  44  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  45  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
  46  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  47  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  48  @license
  49  */
  50  var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.merge=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(2),a=n(3),l=n(5),s=n(6),u=n(7),d=n(8),f=n(9),b=n(10),p=n(11),h=n(13),m=n(14),g=n(16),v=n(17);t.Diff=i.default,t.diffChars=c.diffChars,t.diffWords=a.diffWords,t.diffWordsWithSpace=a.diffWordsWithSpace,t.diffLines=l.diffLines,t.diffTrimmedLines=l.diffTrimmedLines,t.diffSentences=s.diffSentences,t.diffCss=u.diffCss,t.diffJson=d.diffJson,t.diffArrays=f.diffArrays,t.structuredPatch=m.structuredPatch,t.createTwoFilesPatch=m.createTwoFilesPatch,t.createPatch=m.createPatch,t.applyPatch=b.applyPatch,t.applyPatches=b.applyPatches,t.parsePatch=p.parsePatch,t.merge=h.merge,t.convertChangesToDMP=g.convertChangesToDMP,t.convertChangesToXML=v.convertChangesToXML,t.canonicalize=d.canonicalize},function(e,t){"use strict";function n(){}function r(e,t,n,r,o){for(var i=0,c=t.length,a=0,l=0;i<c;i++){var s=t[i];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,i&&t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=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 f=t[c-1];return c>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[c-2].value+=f.value,t.pop()),t}function o(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.callback;"function"==typeof n&&(i=n,n={}),this.options=n;var c=this;function a(e){return i?(setTimeout((function(){i(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,f=[{newPos:-1,components:[]}],b=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&b+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],b=f[n+1],p=(b?b.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1<l,m=b&&0<=p&&p<s;if(h||m){if(!h||m&&d.newPos<b.newPos?(i=o(b),c.pushComponent(i.components,void 0,!0)):((i=d).newPos++,c.pushComponent(i.components,!0,void 0)),p=c.extractCommon(i,t,e,n),i.newPos+1>=l&&p+1>=s)return a(r(c,i.components,t,e,c.useLongestToken));f[n]=i}else f[n]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>d)return i();p()||e()}),0)}();else for(;u<=d;){var h=p();if(h)return h}},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,i=n.length,c=e.newPos,a=c-r,l=0;c+1<o&&a+1<i&&this.equals(t[c+1],n[a+1]);)c++,a++,l++;return l&&e.components.push({count:l}),e.newPos=c,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";t.__esModule=!0,t.characterDiff=void 0,t.diffChars=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.characterDiff=new i.default},function(e,t,n){"use strict";t.__esModule=!0,t.wordDiff=void 0,t.diffWords=function(e,t,n){return n=(0,c.generateOptions)(n,{ignoreWhitespace:!0}),s.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return s.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(4),a=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,s=t.wordDiff=new i.default;s.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},s.tokenize=function(e){for(var t=e.split(/(\s+|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&a.test(t[n])&&a.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},function(e,t){"use strict";t.__esModule=!0,t.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},function(e,t,n){"use strict";t.__esModule=!0,t.lineDiff=void 0,t.diffLines=function(e,t,n){return a.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var r=(0,c.generateOptions)(n,{ignoreWhitespace:!0});return a.diff(e,t,r)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=n(4),a=t.lineDiff=new i.default;a.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var o=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),t.push(o))}return t}},function(e,t,n){"use strict";t.__esModule=!0,t.sentenceDiff=void 0,t.diffSentences=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.sentenceDiff=new i.default;c.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},function(e,t,n){"use strict";t.__esModule=!0,t.cssDiff=void 0,t.diffCss=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.cssDiff=new i.default;c.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},function(e,t,n){"use strict";t.__esModule=!0,t.jsonDiff=void 0;var 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};t.diffJson=function(e,t,n){return s.diff(e,t,n)},t.canonicalize=u;var o,i=n(1),c=(o=i)&&o.__esModule?o:{default:o},a=n(5),l=Object.prototype.toString,s=t.jsonDiff=new c.default;function u(e,t,n,o,i){t=t||[],n=n||[],o&&(e=o(i,e));var c=void 0;for(c=0;c<t.length;c+=1)if(t[c]===e)return n[c];var a=void 0;if("[object Array]"===l.call(e)){for(t.push(e),a=new Array(e.length),n.push(a),c=0;c<e.length;c+=1)a[c]=u(e[c],t,n,o,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===(void 0===e?"undefined":r(e))&&null!==e){t.push(e),a={},n.push(a);var s=[],d=void 0;for(d in e)e.hasOwnProperty(d)&&s.push(d);for(s.sort(),c=0;c<s.length;c+=1)a[d=s[c]]=u(e[d],t,n,o,d);t.pop(),n.pop()}else a=e;return a}s.useLongestToken=!0,s.tokenize=a.lineDiff.tokenize,s.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,o=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(u(e,null,null,o),o,"  ")},s.equals=function(e,t){return c.default.prototype.equals.call(s,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=void 0,t.diffArrays=function(e,t,n){return c.diff(e,t,n)};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r},c=t.arrayDiff=new i.default;c.tokenize=function(e){return e.slice()},c.join=c.removeEmpty=function(e){return e}},function(e,t,n){"use strict";t.__esModule=!0,t.applyPatch=a,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,o.parsePatch)(e));var n=0;!function r(){var o=e[n++];if(!o)return t.complete();t.loadFile(o,(function(e,n){if(e)return t.complete(e);var i=a(n,o,t);t.patched(o,i,(function(e){if(e)return t.complete(e);r()}))}))}()};var r,o=n(11),i=n(12),c=(r=i)&&r.__esModule?r:{default:r};function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,o.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},s=0,u=n.fuzzFactor||0,d=0,f=0,b=void 0,p=void 0;function h(e,t){for(var n=0;n<e.lines.length;n++){var o=e.lines[n],i=o.length>0?o[0]:" ",c=o.length>0?o.substr(1):o;if(" "===i||"-"===i){if(!l(t+1,r[t],i,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m<a.length;m++){for(var g=a[m],v=r.length-g.oldLines,O=0,k=f+g.oldStart-1,j=(0,c.default)(k,d,v);void 0!==O;O=j())if(h(g,k+O)){g.offset=f+=O;break}if(void 0===O)return!1;d=g.offset+g.oldStart+g.oldLines}for(var y=0,_=0;_<a.length;_++){var C=a[_],E=C.oldStart+C.offset+y-1;y+=C.newLines-C.oldLines,E<0&&(E=0);for(var S=0;S<C.lines.length;S++){var w=C.lines[S],I=w.length>0?w[0]:" ",B=w.length>0?w.substr(1):w,T=C.linedelimiters[S];if(" "===I)E++;else if("-"===I)r.splice(E,1),i.splice(E,1);else if("+"===I)r.splice(E,0,B),i.splice(E,0,T),E++;else if("\\"===I){var x=C.lines[S-1]?C.lines[S-1][0]:null;"+"===x?b=!0:"-"===x&&(p=!0)}}}if(b)for(;!r[r.length-1];)r.pop(),i.pop();else p&&(r.push(""),i.push("\n"));for(var N=0;N<r.length-1;N++)r[N]=r[N]+i[N];return r.join("")}},function(e,t){"use strict";t.__esModule=!0,t.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],i=0;function c(){var e={};for(o.push(e);i<n.length;){var r=n[i];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var c=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);c&&(e.index=c[1]),i++}for(a(e),a(e),e.hunks=[];i<n.length;){var s=n[i];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(s))break;if(/^@@/.test(s))e.hunks.push(l());else{if(s&&t.strict)throw new Error("Unknown line "+(i+1)+" "+JSON.stringify(s));i++}}}function a(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[i]);if(t){var r="---"===t[1]?"old":"new",o=t[2].split("\t",2),c=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(c)&&(c=c.substr(1,c.length-2)),e[r+"FileName"]=c,e[r+"Header"]=(o[1]||"").trim(),i++}}function l(){for(var e=i,o=n[i++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),c={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},a=0,l=0;i<n.length&&!(0===n[i].indexOf("--- ")&&i+2<n.length&&0===n[i+1].indexOf("+++ ")&&0===n[i+2].indexOf("@@"));i++){var s=0==n[i].length&&i!=n.length-1?" ":n[i][0];if("+"!==s&&"-"!==s&&" "!==s&&"\\"!==s)break;c.lines.push(n[i]),c.linedelimiters.push(r[i]||"\n"),"+"===s?a++:"-"===s?l++:" "===s&&(a++,l++)}if(a||1!==c.newLines||(c.newLines=0),l||1!==c.oldLines||(c.oldLines=0),t.strict){if(a!==c.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==c.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return c}for(;i<n.length;)c();return o}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=!0,o=!1,i=!1,c=1;return function a(){if(r&&!i){if(o?c++:r=!1,e+c<=n)return c;i=!0}if(!o)return i||(r=!0),t<=e-c?-c++:(o=!0,a())}}},function(e,t,n){"use strict";t.__esModule=!0,t.calcLineCount=a,t.merge=function(e,t,n){e=l(e,n),t=l(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(s(e)?s(t)?(r.oldFileName=u(r,e.oldFileName,t.oldFileName),r.newFileName=u(r,e.newFileName,t.newFileName),r.oldHeader=u(r,e.oldHeader,t.oldHeader),r.newHeader=u(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var o=0,i=0,c=0,a=0;o<e.hunks.length||i<t.hunks.length;){var p=e.hunks[o]||{oldStart:1/0},h=t.hunks[i]||{oldStart:1/0};if(d(p,h))r.hunks.push(f(p,c)),o++,a+=p.newLines-p.oldLines;else if(d(h,p))r.hunks.push(f(h,a)),i++,c+=h.newLines-h.oldLines;else{var m={oldStart:Math.min(p.oldStart,h.oldStart),oldLines:0,newStart:Math.min(p.newStart+c,h.oldStart+a),newLines:0,lines:[]};b(m,p.oldStart,p.lines,h.oldStart,h.lines),i++,o++,r.hunks.push(m)}}return r};var r=n(14),o=n(11),i=n(15);function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){var t=function e(t){var n=0,r=0;return t.forEach((function(t){if("string"!=typeof t){var o=e(t.mine),i=e(t.theirs);void 0!==n&&(o.oldLines===i.oldLines?n+=o.oldLines:n=void 0),void 0!==r&&(o.newLines===i.newLines?r+=o.newLines:r=void 0)}else void 0===r||"+"!==t[0]&&" "!==t[0]||r++,void 0===n||"-"!==t[0]&&" "!==t[0]||n++})),{oldLines:n,newLines:r}}(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function l(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,o.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return((0,r.structuredPatch)(void 0,void 0,t,e))}return e}function s(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function d(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function f(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function b(e,t,n,r,o){var i={offset:t,lines:n,index:0},l={offset:r,lines:o,index:0};for(g(e,i,l),g(e,l,i);i.index<i.lines.length&&l.index<l.lines.length;){var s=i.lines[i.index],u=l.lines[l.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==u[0]&&"+"!==u[0])if("+"===s[0]&&" "===u[0]){var d;(d=e.lines).push.apply(d,c(O(i)))}else if("+"===u[0]&&" "===s[0]){var f;(f=e.lines).push.apply(f,c(O(l)))}else"-"===s[0]&&" "===u[0]?h(e,i,l):"-"===u[0]&&" "===s[0]?h(e,l,i,!0):s===u?(e.lines.push(s),i.index++,l.index++):m(e,O(i),O(l));else p(e,i,l)}v(e,i),v(e,l),a(e)}function p(e,t,n){var r=O(t),o=O(n);if(k(r)&&k(o)){var a,l;if((0,i.arrayStartsWith)(r,o)&&j(n,r,r.length-o.length))return void(a=e.lines).push.apply(a,c(r));if((0,i.arrayStartsWith)(o,r)&&j(t,o,o.length-r.length))return void(l=e.lines).push.apply(l,c(o))}else if((0,i.arrayEqual)(r,o)){var s;return void(s=e.lines).push.apply(s,c(r))}m(e,r,o)}function h(e,t,n,r){var o,i=O(t),a=function(e,t){for(var n=[],r=[],o=0,i=!1,c=!1;o<t.length&&e.index<e.lines.length;){var a=e.lines[e.index],l=t[o];if("+"===l[0])break;if(i=i||" "!==a[0],r.push(l),o++,"+"===a[0])for(c=!0;"+"===a[0];)n.push(a),a=e.lines[++e.index];l.substr(1)===a.substr(1)?(n.push(a),e.index++):c=!0}if("+"===(t[o]||"")[0]&&i&&(c=!0),c)return n;for(;o<t.length;)r.push(t[o++]);return{merged:r,changes:n}}(n,i);a.merged?(o=e.lines).push.apply(o,c(a.merged)):m(e,r?a:i,r?i:a)}function m(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function g(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function v(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function O(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function k(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function j(e,t,n){for(var r=0;r<n;r++){var o=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+o)return!1}return e.index+=n,!0}},function(e,t,n){"use strict";t.__esModule=!0,t.structuredPatch=i,t.createTwoFilesPatch=c,t.createPatch=function(e,t,n,r,o,i){return c(e,e,t,n,r,o,i)};var r=n(5);function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n,i,c,a,l){l||(l={}),void 0===l.context&&(l.context=4);var s=(0,r.diffLines)(n,i,l);function u(e){return e.map((function(e){return" "+e}))}s.push({value:"",lines:[]});for(var d=[],f=0,b=0,p=[],h=1,m=1,g=function(e){var t=s[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var c;if(!f){var a=s[e-1];f=h,b=m,a&&(p=l.context>0?u(a.lines.slice(-l.context)):[],f-=p.length,b-=p.length)}(c=p).push.apply(c,o(r.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=r.length:h+=r.length}else{if(f)if(r.length<=2*l.context&&e<s.length-2){var g;(g=p).push.apply(g,o(u(r)))}else{var v,O=Math.min(r.length,l.context);(v=p).push.apply(v,o(u(r.slice(0,O))));var k={oldStart:f,oldLines:h-f+O,newStart:b,newLines:m-b+O,lines:p};if(e>=s.length-2&&r.length<=l.context){var j=/\n$/.test(n),y=/\n$/.test(i);0!=r.length||j?j&&y||p.push("\\ No newline at end of file"):p.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),f=0,b=0,p=[]}h+=r.length,m+=r.length}},v=0;v<s.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:c,newHeader:a,hunks:d}}function c(e,t,n,r,o,c,a){var l=i(e,t,n,r,o,c,a),s=[];e==t&&s.push("Index: "+e),s.push("==================================================================="),s.push("--- "+l.oldFileName+(void 0===l.oldHeader?"":"\t"+l.oldHeader)),s.push("+++ "+l.newFileName+(void 0===l.newHeader?"":"\t"+l.newHeader));for(var u=0;u<l.hunks.length;u++){var d=l.hunks[u];s.push("@@ -"+d.oldStart+","+d.oldLines+" +"+d.newStart+","+d.newLines+" @@"),s.push.apply(s,d.lines)}return s.join("\n")+"\n"}},function(e,t){"use strict";function n(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}t.__esModule=!0,t.arrayEqual=function(e,t){return e.length===t.length&&n(e,t)},t.arrayStartsWith=n},function(e,t){"use strict";t.__esModule=!0,t.convertChangesToDMP=function(e){for(var t=[],n=void 0,r=void 0,o=0;o<e.length;o++)n=e[o],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}},function(e,t){"use strict";t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push((o=r.value,void 0,o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}var o;return t.join("")}}])},e.exports=r()},218: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 f=n?i(d):d,b={},p=!0,h={node:f,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){h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){l(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){b.before=e},after:function(e){b.after=e},pre:function(e){b.pre=e},post:function(e){b.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return h;function m(){if("object"==typeof h.node&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=c(h.node)),h.isLeaf=0==h.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){h.circular=o[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}m();var g=t.call(h,h.node);return void 0!==g&&h.update&&h.update(g),b.before&&b.before.call(h,h.node),p?("object"!=typeof h.node||null===h.node||h.circular||(o.push(h),m(),s(h.keys,(function(t,o){r.push(t),b.pre&&b.pre.call(h,h.node[t],t);var i=e(h.node[t]);n&&u.call(h.node,t)&&(h.node[t]=i.node),i.isLast=o==h.keys.length-1,i.isFirst=0==o,b.post&&b.post.call(h,i),r.pop()})),o.pop()),b.after&&b.after.call(h,h.node),h):h}(e).node}function i(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(c(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=i(r);return e.push(r),t.push(a),s(c(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var c=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(c(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}},22:function(e,t,n){"use strict";var r=n(35);var o=n(36);function i(e,t){return Object(r.a)(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)()}n.d(t,"a",(function(){return i}))},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},24:function(e,t){!function(){e.exports=this.wp.richText}()},25:function(e,t){!function(){e.exports=this.wp.url}()},27:function(e,t){!function(){e.exports=this.wp.dom}()},28:function(e,t,n){e.exports=n(89)()},29:function(e,t){!function(){e.exports=this.wp.hooks}()},3:function(e,t){!function(){e.exports=this.wp.components}()},31:function(e,t,n){"use strict";function r(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},32: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}))},33:function(e,t){!function(){e.exports=this.wp.deprecated}()},34:function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(){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:c()}function u(){var n,r,o,i,c,s=arguments.length;for(i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];for(c=t.apply(null,i),(n=l(c)).isUniqueByDependants||(n.lastDependants&&!a(c,n.lastDependants,0)&&n.clear(),n.lastDependants=c),r=n.head;r;){if(a(r.args,i,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=i),l=o?function(e){var t,o,i,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):(i=new WeakMap,s.set(o,i),s=i)}return s.has(r)||((a=c()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},35:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},36:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",(function(){return r}))},363:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"resetBlocks",(function(){return Kt})),n.d(r,"resetSelection",(function(){return Gt})),n.d(r,"receiveBlocks",(function(){return Wt})),n.d(r,"updateBlockAttributes",(function(){return qt})),n.d(r,"updateBlock",(function(){return $t})),n.d(r,"selectBlock",(function(){return Yt})),n.d(r,"selectPreviousBlock",(function(){return Xt})),n.d(r,"selectNextBlock",(function(){return Zt})),n.d(r,"startMultiSelect",(function(){return Jt})),n.d(r,"stopMultiSelect",(function(){return Qt})),n.d(r,"multiSelect",(function(){return en})),n.d(r,"clearSelectedBlock",(function(){return tn})),n.d(r,"toggleSelection",(function(){return nn})),n.d(r,"replaceBlocks",(function(){return on})),n.d(r,"replaceBlock",(function(){return cn})),n.d(r,"moveBlocksDown",(function(){return ln})),n.d(r,"moveBlocksUp",(function(){return sn})),n.d(r,"moveBlockToPosition",(function(){return un})),n.d(r,"insertBlock",(function(){return dn})),n.d(r,"insertBlocks",(function(){return fn})),n.d(r,"showInsertionPoint",(function(){return bn})),n.d(r,"hideInsertionPoint",(function(){return pn})),n.d(r,"setTemplateValidity",(function(){return hn})),n.d(r,"synchronizeTemplate",(function(){return mn})),n.d(r,"mergeBlocks",(function(){return gn})),n.d(r,"removeBlocks",(function(){return vn})),n.d(r,"removeBlock",(function(){return On})),n.d(r,"replaceInnerBlocks",(function(){return kn})),n.d(r,"toggleBlockMode",(function(){return jn})),n.d(r,"startTyping",(function(){return yn})),n.d(r,"stopTyping",(function(){return _n})),n.d(r,"startDraggingBlocks",(function(){return Cn})),n.d(r,"stopDraggingBlocks",(function(){return En})),n.d(r,"enterFormattedText",(function(){return Sn})),n.d(r,"exitFormattedText",(function(){return wn})),n.d(r,"selectionChange",(function(){return In})),n.d(r,"insertDefaultBlock",(function(){return Bn})),n.d(r,"updateBlockListSettings",(function(){return Tn})),n.d(r,"updateSettings",(function(){return xn})),n.d(r,"__unstableSaveReusableBlock",(function(){return Nn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Ln})),n.d(r,"__unstableMarkAutomaticChange",(function(){return An})),n.d(r,"setNavigationMode",(function(){return Rn})),n.d(r,"duplicateBlocks",(function(){return Pn})),n.d(r,"insertBeforeBlock",(function(){return Mn})),n.d(r,"insertAfterBlock",(function(){return Dn}));var o={};n.r(o),n.d(o,"INSERTER_UTILITY_HIGH",(function(){return Un})),n.d(o,"INSERTER_UTILITY_MEDIUM",(function(){return Hn})),n.d(o,"INSERTER_UTILITY_LOW",(function(){return Vn})),n.d(o,"INSERTER_UTILITY_NONE",(function(){return zn})),n.d(o,"getBlockName",(function(){return Wn})),n.d(o,"isBlockValid",(function(){return qn})),n.d(o,"getBlockAttributes",(function(){return $n})),n.d(o,"getBlock",(function(){return Yn})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Xn})),n.d(o,"getBlocks",(function(){return Zn})),n.d(o,"getClientIdsOfDescendants",(function(){return Jn})),n.d(o,"getClientIdsWithDescendants",(function(){return Qn})),n.d(o,"getGlobalBlockCount",(function(){return er})),n.d(o,"getBlocksByClientId",(function(){return tr})),n.d(o,"getBlockCount",(function(){return nr})),n.d(o,"getSelectionStart",(function(){return rr})),n.d(o,"getSelectionEnd",(function(){return or})),n.d(o,"getBlockSelectionStart",(function(){return ir})),n.d(o,"getBlockSelectionEnd",(function(){return cr})),n.d(o,"getSelectedBlockCount",(function(){return ar})),n.d(o,"hasSelectedBlock",(function(){return lr})),n.d(o,"getSelectedBlockClientId",(function(){return sr})),n.d(o,"getSelectedBlock",(function(){return ur})),n.d(o,"getBlockRootClientId",(function(){return dr})),n.d(o,"getBlockParents",(function(){return fr})),n.d(o,"getBlockHierarchyRootClientId",(function(){return br})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return pr})),n.d(o,"getAdjacentBlockClientId",(function(){return hr})),n.d(o,"getPreviousBlockClientId",(function(){return mr})),n.d(o,"getNextBlockClientId",(function(){return gr})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return vr})),n.d(o,"getSelectedBlockClientIds",(function(){return Or})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return kr})),n.d(o,"getMultiSelectedBlocks",(function(){return jr})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return yr})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return _r})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Cr})),n.d(o,"isBlockMultiSelected",(function(){return Er})),n.d(o,"isAncestorMultiSelected",(function(){return Sr})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return wr})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return Ir})),n.d(o,"getBlockOrder",(function(){return Br})),n.d(o,"getBlockIndex",(function(){return Tr})),n.d(o,"isBlockSelected",(function(){return xr})),n.d(o,"hasSelectedInnerBlock",(function(){return Nr})),n.d(o,"isBlockWithinSelection",(function(){return Lr})),n.d(o,"hasMultiSelection",(function(){return Ar})),n.d(o,"isMultiSelecting",(function(){return Rr})),n.d(o,"isSelectionEnabled",(function(){return Pr})),n.d(o,"getBlockMode",(function(){return Mr})),n.d(o,"isTyping",(function(){return Dr})),n.d(o,"isDraggingBlocks",(function(){return Fr})),n.d(o,"isCaretWithinFormattedText",(function(){return Ur})),n.d(o,"getBlockInsertionPoint",(function(){return Hr})),n.d(o,"isBlockInsertionPointVisible",(function(){return Vr})),n.d(o,"isValidTemplate",(function(){return zr})),n.d(o,"getTemplate",(function(){return Kr})),n.d(o,"getTemplateLock",(function(){return Gr})),n.d(o,"canInsertBlockType",(function(){return qr})),n.d(o,"getInserterItems",(function(){return Xr})),n.d(o,"hasInserterItems",(function(){return Zr})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return Jr})),n.d(o,"getBlockListSettings",(function(){return Qr})),n.d(o,"getSettings",(function(){return eo})),n.d(o,"isLastBlockChangePersistent",(function(){return to})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return no})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return ro})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return oo})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return io})),n.d(o,"isNavigationMode",(function(){return ao})),n.d(o,"didAutomaticChange",(function(){return lo}));var i=n(11),c=n(24),a=n(51),l=n(43),s=n(6),u=n(12),d=n(0),f=n(10),b=n.n(f),p=n(2),h=n(8),m=n(29),g=n(4),v=n(49),O=n.n(v),k=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},j=function(e,t){return Object(p.find)(e,{color:t})};function y(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var _=n(14),C=n(13),E=n(15),S=n(16),w=n(7),I=n(17),B=n(9),T=[],x=function(e){return Object(h.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(t,Object(u.a)({},n,{colors:e}))}}),"withCustomColorPalette")},N=function(){return Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],T)}}))};function L(e,t){var n=Object(p.reduce)(e,(function(e,t){return Object(s.a)({},e,Object(p.isString)(t)?Object(B.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(h.compose)([t,function(e){return function(t){function r(e){var t;return Object(_.a)(this,r),(t=Object(E.a)(this,Object(S.a)(r).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(w.a)(t))},t.state={},t}return Object(I.a)(r,t),Object(C.a)(r,[{key:"getMostReadableColor",value:function(e){return function(e,t){return O.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),i="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,i),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,i=j(n.props.colors,r);n.props.setAttributes((o={},Object(B.a)(o,e,i&&i.slug?i.slug:void 0),Object(B.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,Object(s.a)({},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,i){var c=k(o,r[i],r["custom".concat(Object(p.upperFirst)(i))]),a=t[i];return Object(p.get)(a,["color"])===c.color&&a?e[i]=a:e[i]=Object(s.a)({},c,{class:y(n,c.slug)}),e}),{})}}]),r}(d.Component)}])}function A(e){return function(){for(var t=x(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(h.createHigherOrderComponent)(L(r,t),"withCustomColors")}}function R(){for(var e=N(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(h.createHigherOrderComponent)(L(n,e),"withColors")}var P=n(18),M=n(20),D=n(42),F=n.n(D),U=n(1),H=n(3),V=n(22),z=Object(H.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(i.getBlockType)(r);if(!o)return null;var c=Object(i.hasBlockSupport)(o,"className",!0)?Object(i.getBlockDefaultClassName)(r):null,a=b()(c,n.className),l=o.edit||o.save;return Object(d.createElement)(l,Object(u.a)({},e,{className:a}))})),K=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),G=K.Provider,W=K.Consumer;function q(){return Object(d.useContext)(K)}var $=function(e){return Object(h.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(W,null,(function(r){return Object(d.createElement)(t,Object(u.a)({},n,e(r,n)))}))}}),"withBlockEditContext")},Y=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(d.createElement)(W,null,(function(n){return n.isSelected&&Object(d.createElement)(e,t)}))}}),"ifBlockEditSelected"),X=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).propsToContext=F()(e.propsToContext.bind(Object(w.a)(e)),{maxSize:1}),e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"propsToContext",value:function(e,t,n,r,o){return{name:e,isSelected:t,clientId:n,onFocus:r,onCaretVerticalPositionChange:o}}},{key:"render",value:function(){var e=this.props,t=e.name,n=e.isSelected,r=e.clientId,o=e.onFocus,i=e.onCaretVerticalPositionChange,c=this.propsToContext(t,n,r,o,i);return Object(d.createElement)(G,{value:c},Object(d.createElement)(z,this.props))}}]),t}(d.Component);function Z(e){if(e)return"has-".concat(e,"-gradient-background")}function J(e,t){return Object(p.find)(e,["gradient",t])}function Q(){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,i=q().clientId,c=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]),a=c.gradients,l=c.gradient,s=c.customGradient,u=Object(g.useDispatch)("core/block-editor").updateBlockAttributes,f=Object(d.useCallback)((function(e){var t,r,c=function(e,t){var n=J(e,t);return n&&n.slug}(a,e);c?u(i,(r={},Object(B.a)(r,n,c),Object(B.a)(r,o,void 0),r)):u(i,(t={},Object(B.a)(t,n,void 0),Object(B.a)(t,o,e),t))}),[a,i,u]);return{gradientClass:Z(l),gradientValue:l?function(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}(a,l):s,setGradient:f}}var ee=Object(U.__)("(Color: %s)"),te=Object(U.__)("(Gradient: %s)"),ne=["colors","disableCustomColors","gradients","disableCustomGradients"];function re(e){var t,n,r=e.colors,o=e.gradients,i=e.label,c=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===c){if(a){var s=j(r,t=a),u=s&&s.name;n=Object(U.sprintf)(ee,u||t)}}else if("gradient"===c&&l){var f=J(o,t=l),b=f&&f.name;n=Object(U.sprintf)(te,b||t)}return Object(d.createElement)(d.Fragment,null,i,!!t&&Object(d.createElement)(H.ColorIndicator,{colorValue:t,"aria-label":n}))}function oe(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,i=e.className,c=e.label,a=e.onColorChange,l=e.onGradientChange,s=e.colorValue,f=e.gradientValue,h=a&&(!Object(p.isEmpty)(t)||!r),m=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(f?"gradient":!!h&&"color"),v=Object(V.a)(g,2),O=v[0],k=v[1];return h||m?Object(d.createElement)(H.BaseControl,{className:b()("block-editor-color-gradient-control",i)},Object(d.createElement)(H.BaseControl.VisualLabel,null,Object(d.createElement)(re,{currentTab:O,label:c,colorValue:s,gradientValue:f})),h&&m&&Object(d.createElement)(H.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(H.Button,{isLarge:!0,isPrimary:"color"===O,isSecondary:"color"!==O,onClick:function(){return k("color")}},Object(U.__)("Solid Color")),Object(d.createElement)(H.Button,{isLarge:!0,isPrimary:"gradient"===O,isSecondary:"gradient"!==O,onClick:function(){return k("gradient")}},Object(U.__)("Gradient"))),"color"===O&&Object(d.createElement)(H.ColorPalette,Object(u.a)({value:s,onChange:m?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),"gradient"===O&&Object(d.createElement)(H.__experimentalGradientPicker,Object(u.a)({value:f,onChange:h?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o}))):null}function ie(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,ne)}));return Object(d.createElement)(oe,Object(s.a)({},t,e))}var ce=function(e){return Object(p.every)(ne,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(oe,e):Object(d.createElement)(ie,e)},ae=Object(U.__)("(%s: color %s)"),le=Object(U.__)("(%s: gradient %s)"),se=["colors","disableCustomColors","gradients","disableCustomGradients"],ue=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,i=e.colorValue,c=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!i&&!c)return null;if(i){var u=j(l||t,i);o=Object(U.sprintf)(ae,a.toLowerCase(),u&&u.name||i)}else{var f=J(s||n,i);o=Object(U.sprintf)(le,a.toLowerCase(),f&&f.name||c)}return Object(d.createElement)(H.ColorIndicator,{key:r,colorValue:i||c,"aria-label":o})}))},de=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,i=e.disableCustomGradients,c=e.children,a=e.settings,l=e.title,f=Object(M.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(p.isEmpty)(n)&&Object(p.isEmpty)(r)&&o&&i&&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 h=Object(d.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},l,Object(d.createElement)(ue,{colors:n,gradients:r,settings:a}));return Object(d.createElement)(H.PanelBody,Object(u.a)({className:b()("block-editor-panel-color-gradient-settings",t),title:h},f),a.map((function(e,t){return Object(d.createElement)(ce,Object(u.a)({key:t},Object(s.a)({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:i},e)))})),c)},fe=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,se)}));return Object(d.createElement)(de,Object(s.a)({},t,e))},be=function(e){return Object(p.every)(se,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(de,e):Object(d.createElement)(fe,e)},pe=function(e){var t=e.colorSettings,n=Object(M.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange,r=Object(M.a)(e,["value","onChange"]);return Object(s.a)({},r,{colorValue:t,onColorChange:n})}));return Object(d.createElement)(be,Object(u.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},he=n(45);function me(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()<n.getBrightness()?Object(U.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(U.__)("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(he.speak)(Object(U.__)("This color combination may be hard for people to read."))}),[r,o]),Object(d.createElement)("div",{className:"block-editor-contrast-checker"},Object(d.createElement)(H.Notice,{status:"warning",isDismissible:!1},i))}var ge=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,i=e.isLargeText,c=e.textColor;if(!t&&!n||!c&&!r)return null;var a=O()(t||n),l=O()(c||r);return 1!==a.getAlpha()||1!==l.getAlpha()||O.a.isReadable(a,l,{level:"AA",size:i||!1!==i&&o>=24?"large":"small"})?null:Object(d.createElement)(me,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},ve=Object(H.createSlotFill)("InspectorControls"),Oe=ve.Fill,ke=ve.Slot,je=Y(Oe);je.Slot=ke;var ye=je,_e=window,Ce=_e.getComputedStyle,Ee=_e.Node,Se=[],we=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e},Ie=function(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,i=e.detectedBackgroundColorRef,c=e.detectedColorRef,a=e.panelChildren;return Object(d.createElement)(pe,Object(u.a)({title:t,initialOpen:!1,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(M.a)(e,["backgroundColor","textColor"]);return t=we(t,n,i.current),r=we(r,n,c.current),Object(d.createElement)(ge,Object(u.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=we(r||t,n,i.current),a=we(a||t,n,c.current),Object(d.createElement)(ge,Object(u.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)},Be=function(e){return Object(d.createElement)(ye,null,Object(d.createElement)(Ie,e))};function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(U.__)("Color Settings")},n=t.panelTitle,r=void 0===n?Object(U.__)("Color Settings"):n,o=t.colorPanelProps,i=t.contrastCheckers,c=t.panelChildren,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=q().clientId,u=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(l),settingsColors:r&&!0!==r?r:Se}}),[l]),f=u.attributes,h=u.settingsColors,m=Object(g.useDispatch)("core/block-editor").updateBlockAttributes,v=Object(d.useCallback)((function(e){return m(l,e)}),[m,l]),O=Object(d.useMemo)((function(){return F()((function(e,t,n,r,o,i){return function(c){var a=c.children,l=c.className,u=void 0===l?"":l,f=c.style,h=void 0===f?{}:f;return(d.Children.map(a,(function(c){var a,l={};return r?l=Object(B.a)({},t,o):i&&(l=Object(B.a)({},t,i)),Object(d.cloneElement)(c,{className:b()(u,c.props.className,(a={},Object(B.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(B.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||i),a)),style:Object(s.a)({},l,h,c.props.style||{})})})))}}),{maxSize:e.length})}),[e.length]),k=Object(d.useMemo)((function(){return F()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));v(Object(B.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),v(Object(B.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[v,e.length]),j=Object(d.useRef)(),y=Object(d.useRef)(),_=Object(d.useMemo)((function(){if(i){var e=!1,t=!1,n=!0,r=!1,o=void 0;try{for(var c,a=Object(p.castArray)(i)[Symbol.iterator]();!(n=(c=a.next()).done);n=!0){var l=c.value,s=l.backgroundColor,u=l.textColor;if(e||(e=!0===s),t||(t=!0===u),e&&t)break}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return(e||t)&&Object(H.withFallbackStyles)((function(t,n){var r,o=n.querySelector,i=n.backgroundColorSelector,c=void 0===i?o:i,a=n.textColorSelector,l=void 0===a?o:a,s=t,u=t;c&&(s=t.parentNode.querySelector(c)),l&&(u=t.parentNode.querySelector(l));var d=Ce(u).color;if(e)for(r=Ce(s).backgroundColor;"rgba(0, 0, 0, 0)"===r&&s.parentNode&&s.parentNode===Ee.ELEMENT_NODE;)s=s.parentNode,r=Ce(s).backgroundColor;return j.current=r,y.current=d,{backgroundColor:r,color:d}}))((function(){return Object(d.createElement)(d.Fragment,null)}))}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(f[t.name]," | ").concat(f[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(P.a)(a)));return Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=Object(s.a)({},n,{color:f[n.name]}),o=r.name,i=r.property,c=void 0===i?o:i,a=r.className,l=r.panelLabel,u=void 0===l?Object(p.startCase)(o):l,d=r.componentName,b=void 0===d?u.replace(/\s/g,""):d,m=r.color,g=void 0===m?n.color:m,v=r.colors,j=void 0===v?h:v,y=f[Object(p.camelCase)("custom ".concat(o))],_=y?void 0:j.find((function(e){return e.slug===g}));return e[b]=O(o,c,a,g,_&&_.color,y),e[b].displayName=b,e[b].color=y||_&&_.color,e[b].slug=g,e[b].setColor=k(o,j),t[b]={value:_?_.color:f[Object(p.camelCase)("custom ".concat(o))],onChange:e[b].setColor,label:u,colors:j},j||delete t[b].colors,e}),{}),a={title:r,colorSettings:t,colorPanelProps:o,contrastCheckers:i,detectedBackgroundColorRef:j,detectedColorRef:y,panelChildren:c};return Object(s.a)({},n,{ColorPanel:Object(d.createElement)(Ie,a),InspectorControlsColorPanel:Object(d.createElement)(Be,a),ColorDetector:_})}),[f,v].concat(Object(P.a)(a)))}var xe=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function Ne(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Le=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(H.FontSizePicker),Ae=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(h.createHigherOrderComponent)(Object(h.compose)([Object(g.withSelect)((function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}})),function(e){return function(t){function n(e){var t;return Object(_.a)(this,n),(t=Object(E.a)(this,Object(S.a)(n).call(this,e))).setters=t.createSetters(),t.state={},t}return Object(I.a)(n,t),Object(C.a)(n,[{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,i=Object(p.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(B.a)(o,e,i&&i.slug?i.slug:void 0),Object(B.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,Object(s.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,i=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(p.some)(r,i))return null;var c=Object(p.reduce)(Object(p.pickBy)(r,i),(function(e,t,r){var i=n[r],c=xe(o,i,n[t]);return e[r]=Object(s.a)({},c,{class:Ne(i)}),e}),{});return Object(s.a)({},t,c)}}]),n}(d.Component)}]),"withFontSizes")},Re=[{icon:"editor-alignleft",title:Object(U.__)("Align text left"),align:"left"},{icon:"editor-aligncenter",title:Object(U.__)("Align text center"),align:"center"},{icon:"editor-alignright",title:Object(U.__)("Align text right"),align:"right"}];var Pe=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?Re:r,i=e.label,c=void 0===i?Object(U.__)("Change text alignment"):i,a=e.isCollapsed,l=void 0===a||a;function u(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)(H.Toolbar,{isCollapsed:l,icon:f?f.icon:"editor-alignleft",label:c,controls:o.map((function(e){var n=e.align,r=t===n;return Object(s.a)({},e,{isActive:r,role:l?"menuitemradio":void 0,onClick:u(n)})}))})};var Me=Object(h.compose)([$((function(e){return{blockName:e.name}})),function(e){return function(t){var n=t.completers,r=void 0===n?[]:n;return Object(m.hasFilter)("editor.Autocomplete.completers")&&(r=Object(m.applyFilters)("editor.Autocomplete.completers",r.map(p.clone),t.blockName)),Object(d.createElement)(e,Object(u.a)({},t,{completers:r}))}}])(H.Autocomplete),De={left:{icon:"align-left",title:Object(U.__)("Align left")},center:{icon:"align-center",title:Object(U.__)("Align center")},right:{icon:"align-right",title:Object(U.__)("Align right")},wide:{icon:"align-wide",title:Object(U.__)("Wide width")},full:{icon:"align-full-width",title:Object(U.__)("Full width")}},Fe=["left","center","right","wide","full"],Ue="center",He=["wide","full"];var Ve=Object(h.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?Fe:r,i=e.isCollapsed,c=void 0===i||i,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===He.indexOf(e)})),u=De[t],f=De[Ue];return Object(d.createElement)(H.Toolbar,{isCollapsed:c,icon:u?u.icon:f.icon,label:Object(U.__)("Change alignment"),controls:l.map((function(e){return Object(s.a)({},De[e],{isActive:t===e,role:c?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));var ze=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(i.getBlockType)(t);return n?n.title:null})),Ke=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,i=r();return{parents:o(i),clientId:i,hasSelection:!!n().clientId}}),[]),o=r.clientId,i=r.parents,c=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(U.__)("Block breadcrumb")},Object(d.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(d.createElement)(H.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(U.__)("Document")),!c&&Object(U.__)("Document")),i.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(H.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(ze,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(ze,{clientId:o})))},Ge=Object(H.createSlotFill)("BlockControls"),We=Ge.Fill,qe=Ge.Slot,$e=Y((function(e){var t=e.controls,n=e.children;return Object(d.createElement)(We,null,Object(d.createElement)(H.Toolbar,{controls:t}),n)}));$e.Slot=qe;var Ye=$e,Xe=Object(H.createSlotFill)("BlockFormatControls"),Ze=Xe.Fill,Je=Xe.Slot,Qe=Y(Ze);Qe.Slot=Je;var et=Qe;function tt(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:Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{d:"M19 7h-1V5h-4v2h-4V5H6v2H5c-1.1 0-2 .9-2 2v10h18V9c0-1.1-.9-2-2-2zm0 10H5V9h14v8z"}))});var i=Object(d.createElement)(H.Icon,{icon:t&&t.src?t.src:t}),c=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:c,className:b()("block-editor-block-icon",o,{"has-colors":r})},i)}var nt=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).onFilesDrop=e.onFilesDrop.bind(Object(w.a)(e)),e.onHTMLDrop=e.onHTMLDrop.bind(Object(w.a)(e)),e.onDrop=e.onDrop.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"getInsertIndex",value:function(e){var t=this.props,n=t.clientId,r=t.rootClientId,o=t.getBlockIndex;if(void 0!==n){var i=o(n,r);return e&&"top"===e.y?i:i+1}}},{key:"onFilesDrop",value:function(e,t){if(this.props.hasUploadPermissions){var n=Object(i.findTransform)(Object(i.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(n){var r=this.getInsertIndex(t),o=n.transform(e,this.props.updateBlockAttributes);this.props.insertBlocks(o,r)}}}},{key:"onHTMLDrop",value:function(e,t){var n=Object(i.pasteHandler)({HTML:e,mode:"BLOCKS"});n.length&&this.props.insertBlocks(n,this.getInsertIndex(t))}},{key:"onDrop",value:function(e,t){var n=this.props,r=n.rootClientId,o=n.clientId,i=n.getClientIdsOfDescendants,c=n.getBlockIndex,a=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),l=a.srcRootClientId,s=a.srcClientId,u=a.srcIndex,d=a.type;if("block"===d&&s!==o&&!function(e,t){return i([e]).some((function(e){return e===t}))}(s,o||r)){var f,b,p=o?c(o,r):void 0,h=this.getInsertIndex(t),m=p&&u<p&&((f=l)===(b=r)||1==!f&&1==!b)?h-1:h;this.props.moveBlockToPosition(s,l,m)}}},{key:"render",value:function(){var e=this.props,t=e.hasUploadPermissions;if(e.isLockedAll)return null;var n=void 0===this.getInsertIndex();return Object(d.createElement)(H.DropZone,{className:b()("block-editor-block-drop-zone",{"is-appender":n}),onHTMLDrop:this.onHTMLDrop,onDrop:this.onDrop,onFilesDrop:t?this.onFilesDrop:void 0})}}]),t}(d.Component),rt=Object(h.compose)(Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertBlocks,o=n.updateBlockAttributes,i=n.moveBlockToPosition;return{insertBlocks:function(e,n){var o=t.rootClientId;r(e,n,o)},updateBlockAttributes:function(){o.apply(void 0,arguments)},moveBlockToPosition:function(e,n,r){var o=t.rootClientId;i(e,n,o,r)}}})),Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockIndex,i=r.getClientIdsOfDescendants,c=r.getSettings,a=r.getTemplateLock;return{getBlockIndex:o,getClientIdsOfDescendants:i,hasUploadPermissions:!!c().mediaUpload,isLockedAll:"all"===a(n)}})),Object(H.withFilters)("editor.BlockDropZone"))(nt),ot=n(69),it=n.n(ot),ct=n(19),at=n(25),lt={insertUsage:{}},st={alignWide:!1,colors:[{name:Object(U.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(U.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(U.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(U.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(U.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(U.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(U.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(U.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(U.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"},{name:Object(U.__)("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:Object(U.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(U.__)("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],fontSizes:[{name:Object(U._x)("Small","font size name"),size:13,slug:"small"},{name:Object(U._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(U._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(U._x)("Large","font size name"),size:36,slug:"large"},{name:Object(U._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",label:Object(U.__)("Thumbnail")},{slug:"medium",label:Object(U.__)("Medium")},{slug:"large",label:Object(U.__)("Large")},{slug:"full",label:Object(U.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,showInserterHelpPanel:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__experimentalEnablePageTemplates:!1,gradients:[{name:Object(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("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(U.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(U.__)("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(U.__)("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(U.__)("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(U.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(U.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function ut(e,t,n){return[].concat(Object(P.a)(e.slice(0,n)),Object(P.a)(Object(p.castArray)(t)),Object(P.a)(e.slice(n)))}function dt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(P.a)(e);return o.splice(t,r),ut(o,e.slice(t,t+r),n)}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(B.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,ft(o,r))})),n}function bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(B.a)({},n.clientId,t),bt(n.innerBlocks,n.clientId))}),{})}function pt(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(P.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(M.a)(o,["innerBlocks"]);r.push.apply(r,Object(P.a)(i)),n[c.clientId]=t(c)}return n}function ht(e){return pt(e,(function(e){return Object(p.omit)(e,"attributes")}))}function mt(e){return pt(e,(function(e){return e.attributes}))}function gt(e,t){return e===t?Object(s.a)({},e):t}function vt(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 Ot=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var kt=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=Object(s.a)({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(s.a)({},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);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(pt(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(pt(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Object(s.a)({},r.cache,Ot(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Object(s.a)({},r.cache,Ot(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=Ot(o(n.replacedClientIds));r.cache=Object(s.a)({},Object(p.omit)(r.cache,n.replacedClientIds),Object(p.omit)(c,n.replacedClientIds),Ot(Object(p.keys)(pt(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Object(s.a)({},Object(p.omit)(r.cache,n.removedClientIds),Ot(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=Object(s.a)({},r.cache,Ot(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=Object(s.a)({},r.cache,Ot(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var u=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=Object(s.a)({},r.cache,Ot(o(u)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var n=e,r=0;r<n.length;r++){var o;t.order[n[r]]&&(n===e&&(n=Object(P.a)(n)),(o=n).push.apply(o,Object(P.a)(t.order[n[r]])))}return n};if(t)switch(n.type){case"REMOVE_BLOCKS":n=Object(s.a)({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=Object(s.a)({},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=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",clientIds:t.order[n.rootClientId]}));var o=r;return n.blocks.length&&(o=e(o,Object(s.a)({},n,{type:"INSERT_BLOCKS",index:0}))),o}}),(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]:"";return Object(p.reduce)(t[n],(function(n,r){return[].concat(Object(P.a)(n),[r],Object(P.a)(e(t,r)))}),[])}(t.order);return Object(s.a)({},t,{byClientId:Object(s.a)({},Object(p.omit)(t.byClientId,r),ht(n.blocks)),attributes:Object(s.a)({},Object(p.omit)(t.attributes,r),mt(n.blocks)),order:Object(s.a)({},Object(p.omit)(t.order,r),ft(n.blocks)),parents:Object(s.a)({},Object(p.omit)(t.parents,r),bt(n.blocks)),cache:Object(s.a)({},Object(p.omit)(t.cache,r),Object(p.mapValues)(pt(n.blocks),(function(){return{}})))})}return e(t,n)}}),(function(e){var t;return function(n,r){var o=e(n,r),i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type;if(n===o&&!i){var c=Object(p.get)(n,["isPersistentChange"],!0);return n.isPersistentChange===c?n:Object(s.a)({},o,{isPersistentChange:c})}return o=Object(s.a)({},o,{isPersistentChange:i||!vt(r,t)}),t=r,o}}),(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 ht(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(s.a)({},e,ht(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:Object(s.a)({},e,Object(B.a)({},t.clientId,Object(s.a)({},e[t.clientId],n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(s.a)({},Object(p.omit)(e,t.replacedClientIds),ht(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 mt(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(s.a)({},e,mt(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(s.a)({},e,Object(B.a)({},t.clientId,Object(s.a)({},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=gt(e[t.clientId],n))[o]=r),n}),e[t.clientId]);return n===e[t.clientId]?e:Object(s.a)({},e,Object(B.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(s.a)({},Object(p.omit)(e,t.replacedClientIds),mt(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 ft(t.blocks);case"RECEIVE_BLOCKS":return Object(s.a)({},e,Object(p.omit)(ft(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=ft(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Object(s.a)({},e,i,Object(B.a)({},r,ut(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,g=void 0===m?e[b].length:m;if(d===b){var v=e[b],O=v.indexOf(h);return Object(s.a)({},e,Object(B.a)({},b,dt(e[b],O,g)))}return Object(s.a)({},e,(l={},Object(B.a)(l,d,Object(p.without)(e[d],h)),Object(B.a)(l,b,ut(e[b],h,g)),l));case"MOVE_BLOCKS_UP":var k=t.clientIds,j=t.rootClientId,y=void 0===j?"":j,_=Object(p.first)(k),C=e[y];if(!C.length||_===Object(p.first)(C))return e;var E=C.indexOf(_);return Object(s.a)({},e,Object(B.a)({},y,dt(C,E,E-1,k.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,T=Object(p.first)(S),x=Object(p.last)(S),N=e[I];if(!N.length||x===Object(p.last)(N))return e;var L=N.indexOf(T);return Object(s.a)({},e,Object(B.a)({},I,dt(N,L,L+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var A=t.clientIds;if(!t.blocks)return e;var R=ft(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Object(s.a)({},e,Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===A[0]?[].concat(Object(P.a)(e),Object(P.a)(R[""])):(-1===A.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(P.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 bt(t.blocks);case"RECEIVE_BLOCKS":return Object(s.a)({},e,bt(t.blocks));case"INSERT_BLOCKS":return Object(s.a)({},e,bt(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Object(s.a)({},e,Object(B.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(s.a)({},Object(p.omit)(e,t.replacedClientIds),bt(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});function jt(){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?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];return r?r.clientId===e.clientId?e:{clientId:r.clientId}:{}}return e}var yt=Object(g.combineReducers)({blocks:kt,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).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];switch((arguments.length>1?arguments[1]:void 0).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];switch((arguments.length>1?arguments[1]:void 0).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 jt(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 jt(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).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"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===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 Object(s.a)({},e,Object(B.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:Object(s.a)({},e,Object(B.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":return{rootClientId:t.rootClientId,index:t.index};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 Object(s.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(s.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lt,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(i.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),Object(s.a)({},e,{insertUsage:Object(s.a)({},e.insertUsage,Object(B.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(B.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(B.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}}}),_t=n(72),Ct=n.n(_t),Et=n(216),St=n.n(Et),wt=n(32),It=n(23),Bt=n.n(It);function Tt(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 xt={SELECT:Object(g.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,i=t.args;return(n=e.select(r))[o].apply(n,Object(P.a)(i))}}))},Nt=Bt.a.mark(zt),Lt=Bt.a.mark(Xt),At=Bt.a.mark(Zt),Rt=Bt.a.mark(on),Pt=Bt.a.mark(un),Mt=Bt.a.mark(fn),Dt=Bt.a.mark(vn),Ft=Bt.a.mark(Rn),Ut=Bt.a.mark(Pn),Ht=Bt.a.mark(Mn),Vt=Bt.a.mark(Dn);function zt(){return Bt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Tt("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=6;break}return e.next=6,Bn();case 6:case"end":return e.stop()}}),Nt)}function Kt(e){return{type:"RESET_BLOCKS",blocks:e}}function Gt(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function Wt(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function qt(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function $t(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Yt(e){return{type:"SELECT_BLOCK",initialPosition:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function Xt(e){var t;return Bt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Tt("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Yt(t,-1);case 6:case"end":return n.stop()}}),Lt)}function Zt(e){var t;return Bt.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Tt("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,Yt(t);case 6:case"end":return n.stop()}}),At)}function Jt(){return{type:"START_MULTI_SELECT"}}function Qt(){return{type:"STOP_MULTI_SELECT"}}function en(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function tn(){return{type:"CLEAR_SELECTED_BLOCK"}}function nn(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function rn(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;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,c=n[t];return Object(s.a)({},e,{attributes:Object(s.a)({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})}))}function on(e,t,n){var r,o,i;return Bt.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=rn,c.t1=Object(p.castArray)(t),c.next=5,Tt("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,Tt("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:r=c.sent,o=0;case 11:if(!(o<t.length)){c.next=21;break}return i=t[o],c.next=15,Tt("core/block-editor","canInsertBlockType",i.name,r);case 15:if(c.sent){c.next=18;break}return c.abrupt("return");case 18:o++,c.next=11;break;case 21:return c.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n};case 23:return c.delegateYield(zt(),"t3",24);case 24:case"end":return c.stop()}}),Rt)}function cn(e,t){return on(e,t)}function an(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var ln=an("MOVE_BLOCKS_DOWN"),sn=an("MOVE_BLOCKS_UP");function un(e){var t,n,r,o,i,c,a=arguments;return Bt.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,Tt("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(i={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,i;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,Tt("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,Tt("core/block-editor","canInsertBlockType",c,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,i;case 24:case"end":return l.stop()}}),Pt)}function dn(e,t,n){return fn([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function fn(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return Bt.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return r=!(d.length>3&&void 0!==d[3])||d[3],f.t0=rn,f.t1=Object(p.castArray)(e),f.next=5,Tt("core/block-editor","getSettings");case 5:f.t2=f.sent,e=(0,f.t0)(f.t1,f.t2),o=[],i=!0,c=!1,a=void 0,f.prev=11,l=e[Symbol.iterator]();case 13:if(i=(s=l.next()).done){f.next=22;break}return u=s.value,f.next=17,Tt("core/block-editor","canInsertBlockType",u.name,n);case 17:f.sent&&o.push(u);case 19:i=!0,f.next=13;break;case 22:f.next=28;break;case 24:f.prev=24,f.t3=f.catch(11),c=!0,a=f.t3;case 28:f.prev=28,f.prev=29,i||null==l.return||l.return();case 31:if(f.prev=31,!c){f.next=34;break}throw a;case 34:return f.finish(31);case 35:return f.finish(28);case 36:if(!o.length){f.next=38;break}return f.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 38:case"end":return f.stop()}}),Mt,null,[[11,24,28,36],[29,,31,35]])}function bn(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function pn(){return{type:"HIDE_INSERTION_POINT"}}function hn(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function mn(){return{type:"SYNCHRONIZE_TEMPLATE"}}function gn(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function vn(e){var t,n,r=arguments;return Bt.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,Tt("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=o.sent,o.next=9,Tt("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,Xt(e[0]);case 15:return o.next=17,{type:"REMOVE_BLOCKS",clientIds:e};case 17:return o.delegateYield(zt(),"t0",18);case 18:case"end":return o.stop()}}),Dt)}function On(e,t){return vn([e],t)}function kn(e,t){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],time:Date.now()}}function jn(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function yn(){return{type:"START_TYPING"}}function _n(){return{type:"STOP_TYPING"}}function Cn(){return{type:"START_DRAGGING_BLOCKS"}}function En(){return{type:"STOP_DRAGGING_BLOCKS"}}function Sn(){return{type:"ENTER_FORMATTED_TEXT"}}function wn(){return{type:"EXIT_FORMATTED_TEXT"}}function In(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Bn(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return dn(Object(i.createBlock)(r,e),n,t)}function Tn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function xn(e){return{type:"UPDATE_SETTINGS",settings:e}}function Nn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Ln(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function An(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Rn(){var e,t=arguments;return Bt.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(he.speak)(Object(U.__)("You are currently in navigation mode. Navigate blocks using the Tab key. To exit navigation mode and edit the selected block, press Enter.")):Object(he.speak)(Object(U.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Ft)}function Pn(e){var t,n,r,o,c;return Bt.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,Tt("core/block-editor","getBlocksByClientId",e);case 4:return t=a.sent,a.next=7,Tt("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(i.hasBlockSupport)(e,"multiple",!0)}))){a.next=13;break}return a.abrupt("return");case 13:return a.next=15,Tt("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),n);case 15:return o=a.sent,c=t.map((function(e){return Object(i.cloneBlock)(e)})),a.next=19,fn(c,o+1,n);case 19:if(!(c.length>1)){a.next=22;break}return a.next=22,en(Object(p.first)(c).clientId,Object(p.last)(c).clientId);case 22:case"end":return a.stop()}}),Ut)}function Mn(e){var t,n;return Bt.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,Tt("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Tt("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Tt("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Bn({},t,n);case 15:case"end":return r.stop()}}),Ht)}function Dn(e){var t,n;return Bt.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,Tt("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,Tt("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,Tt("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Bn({},t,n+1);case 15:case"end":return r.stop()}}),Vt)}var Fn=n(34),Un=3,Hn=2,Vn=1,zn=0,Kn=Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(H.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(d.createElement)(H.G,null,Object(d.createElement)(H.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"}))),Gn=[];function Wn(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function qn(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function $n(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Yn=Object(Fn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(s.a)({},n,{attributes:$n(e,t),innerBlocks:Zn(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),Xn=Object(Fn.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Object(s.a)({},n,{attributes:$n(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),Zn=Object(Fn.a)((function(e,t){return Object(p.map)(Br(e,t),(function(t){return Yn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),Jn=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Br(t,n);return[].concat(Object(P.a)(r),Object(P.a)(e(t,r)))}))},Qn=Object(Fn.a)((function(e){var t=Br(e);return[].concat(Object(P.a)(t),Object(P.a)(Jn(e,t)))}),(function(e){return[e.blocks.order]})),er=Object(Fn.a)((function(e,t){var n=Qn(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]})),tr=Object(Fn.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return Yn(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function nr(e,t){return Br(e,t).length}function rr(e){return e.selectionStart}function or(e){return e.selectionEnd}function ir(e){return e.selectionStart.clientId}function cr(e){return e.selectionEnd.clientId}function ar(e){var t=kr(e).length;return t||(e.selectionStart.clientId?1:0)}function lr(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function sr(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function ur(e){var t=sr(e);return t?Yn(e,t):null}function dr(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var fr=Object(Fn.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]}));function br(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function pr(e,t){for(var n,r=sr(e),o=[].concat(Object(P.a)(fr(e,t)),[t]),i=[].concat(Object(P.a)(fr(e,r)),[r]),c=Math.min(o.length,i.length),a=0;a<c&&o[a]===i[a];a++)n=o[a];return n}function hr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=sr(e)),void 0===t&&(t=n<0?yr(e):_r(e)),!t)return null;var r=dr(e,t);if(null===r)return null;var o=e.blocks.order[r],i=o.indexOf(t)+1*n;return i<0?null:i===o.length?null:o[i]}function mr(e,t){return hr(e,t,-1)}function gr(e,t){return hr(e,t,1)}function vr(e){return e.initialPosition}var Or=Object(Fn.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return Gn;if(t.clientId===n.clientId)return[t.clientId];var r=dr(e,t.clientId);if(null===r)return Gn;var o=Br(e,r),i=o.indexOf(t.clientId),c=o.indexOf(n.clientId);return i>c?o.slice(c,i+1):o.slice(i,c+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function kr(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?Gn:Or(e)}var jr=Object(Fn.a)((function(e){var t=kr(e);return t.length?t.map((function(t){return Yn(e,t)})):Gn}),(function(e){return[].concat(Object(P.a)(Or.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function yr(e){return Object(p.first)(kr(e))||null}function _r(e){return Object(p.last)(kr(e))||null}function Cr(e,t){return yr(e)===t}function Er(e,t){return-1!==kr(e).indexOf(t)}var Sr=Object(Fn.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Er(e,n=dr(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function wr(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Ir(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Br(e,t){return e.blocks.order[t||""]||Gn}function Tr(e,t,n){return Br(e,n).indexOf(t)}function xr(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Nr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Br(e,t),(function(t){return xr(e,t)||Er(e,t)||n&&Nr(e,t,n)}))}function Lr(e,t){if(!t)return!1;var n=kr(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Ar(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function Rr(e){return e.isMultiSelecting}function Pr(e){return e.isSelectionEnabled}function Mr(e,t){return e.blocksMode[t]||"visual"}function Dr(e){return e.isTyping}function Fr(e){return e.isDraggingBlocks}function Ur(e){return e.isCaretWithinFormattedText}function Hr(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var i=o.clientId;return i?(t=dr(e,i)||void 0,n=Tr(e,o.clientId,t)+1):n=Br(e).length,{rootClientId:t,index:n}}function Vr(e){return null!==e.insertionPoint}function zr(e){return e.template.isValid}function Kr(e){return e.settings.template}function Gr(e,t){if(!t)return e.settings.templateLock;var n=Qr(e,t);return n?n.templateLock:null}var Wr=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(i.getBlockType)(t);if(!o)return!1;var c=eo(e),a=c.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!Gr(e,n);if(s)return!1;var u=Qr(e,n),d=Object(p.get)(u,["allowedBlocks"]),f=r(d,t),b=o.parent,h=Wn(e,n),m=r(b,h);return null!==f&&null!==m?f||m:null!==f?f:null===m||m},qr=Object(Fn.a)(Wr,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function $r(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Yr=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&Wr(e,t.name,n)},Xr=Object(Fn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?Un:t>0?Hn:"common"===e?Vn:zn},r=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}},o=function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(tr(e,Qn(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=$r(e,o)||{},s=l.time,u=l.count,d=void 0===u?0:u;return{id:o,name:t.name,initialAttributes:{},title:t.title,icon:t.icon,category:t.category,keywords:t.keywords,isDisabled:c,utility:n(t.category,d,a),frecency:r(s,d)}},c=function(t){var o,c="core/block/".concat(t.id),a=ro(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=$r(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),b=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:Kn,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:b}},a=Object(i.getBlockTypes)().filter((function(n){return Yr(e,n,t)})).map(o),l=Wr(e,"core/block",t)?co(e).map(c):[];return Object(p.orderBy)([].concat(Object(P.a)(a),Object(P.a)(l)),["utility","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,co(e),Object(i.getBlockTypes)()]})),Zr=Object(Fn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(i.getBlockTypes)(),(function(n){return Yr(e,n,t)}));if(n)return!0;var r=Wr(e,"core/block",t)&&co(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,co(e),Object(i.getBlockTypes)()]})),Jr=Object(Fn.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(i.getBlockTypes)(),(function(n){return Yr(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(i.getBlockTypes)()]}));function Qr(e,t){return e.blockListSettings[t]}function eo(e){return e.settings}function to(e){return e.blocks.isPersistentChange}var no=Object(Fn.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),ro=Object(Fn.a)((function(e,t){var n=Object(p.find)(co(e),(function(e){return e.id===t}));return n?Object(i.parse)(n.content):null}),(function(e){return[co(e)]}));function oo(e){return e.blocks.isIgnoredChange}function io(e){return e.lastBlockAttributesChange}function co(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],Gn)}function ao(e){return e.isNavigationMode}function lo(e){return!!e.automaticChangeStatus}var so={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(V.a)(e.blocks,2),a=o[0],l=o[1],u=Yn(r,a),d=Object(i.getBlockType)(u.name);if(d.merge){var f=Yn(r,l),b=Object(i.getBlockType)(f.name),h=rr(r),m=h.clientId,g=h.attributeKey,v=h.offset,O=(m===a?d:b).attributes[g],k=(m===a||m===l)&&void 0!==g&&void 0!==v&&!!O;O||("number"==typeof g?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(wt.a)(g))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(i.cloneBlock)(u),y=Object(i.cloneBlock)(f);if(k){var _=m===a?j:y,C=_.attributes[g],E=O.multiline,S=O.__unstableMultilineWrapperTags,w=O.__unstablePreserveWhiteSpace,I=Object(c.insert)(Object(c.create)({html:C,multilineTag:E,multilineWrapperTags:S,preserveWhiteSpace:w}),"†",v,v);_.attributes[g]=Object(c.toHTMLString)({value:I,multilineTag:E,preserveWhiteSpace:w})}var B=u.name===f.name?[y]:Object(i.switchToBlockType)(y,u.name);if(B&&B.length){var T=d.merge(j.attributes,B[0].attributes);if(k){var x=Object(p.findKey)(T,(function(e){return"string"==typeof e&&-1!==e.indexOf("†")})),N=T[x],L=d.attributes[x],A=L.multiline,R=L.__unstableMultilineWrapperTags,M=L.__unstablePreserveWhiteSpace,D=Object(c.create)({html:N,multilineTag:A,multilineWrapperTags:R,preserveWhiteSpace:M}),F=D.text.indexOf("†"),U=Object(c.remove)(D,F,F+1),H=Object(c.toHTMLString)({value:U,multilineTag:A,preserveWhiteSpace:M});T[x]=H,n(In(u.clientId,x,F,F))}n(on([u.clientId,f.clientId],[Object(s.a)({},u,{attributes:Object(s.a)({},u.attributes,T)})].concat(Object(P.a)(B.slice(1)))))}}else n(Yt(u.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=Kr(n),o=Gr(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==zr(n))return hn(c)}],MULTI_SELECT:function(e,t){var n=ar((0,t.getState)());Object(he.speak)(Object(U.sprintf)(Object(U._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Zn(n),o=Kr(n);return Kt(Object(i.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 uo=function(e){var t,n=[Ct()(so),St.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(P.a)(t))(e.dispatch),e.dispatch=r,e},fo={reducer:yt,selectors:o,actions:r,controls:xt},bo=Object(g.registerStore)("core/block-editor",Object(s.a)({},fo,{persist:["preferences"]}));uo(bo);var po=Object(h.createHigherOrderComponent)((function(e){return Object(g.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(M.a)(t,["useSubRegistry","registry"]);if(!r)return Object(d.createElement)(e,Object(u.a)({registry:o},i));var c=Object(d.useState)(null),a=Object(V.a)(c,2),l=a[0],s=a[1];return Object(d.useEffect)((function(){var e=Object(g.createRegistry)({},o),t=e.registerStore("core/block-editor",fo);uo(t),s(e)}),[o]),l?Object(d.createElement)(g.RegistryProvider,{value:l},Object(d.createElement)(e,Object(u.a)({registry:l},i))):null}))}),"withRegistryProvider"),ho=function(e){function t(){return Object(_.a)(this,t),Object(E.a)(this,Object(S.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(C.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry),this.isSyncingOutcomingValue=[]}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.selectionStart,a=t.selectionEnd,l=t.resetSelection,s=t.registry;n!==e.settings&&r(n),s!==e.registry&&this.attachChangeObserver(s),this.isSyncingOutcomingValue.includes(o)?Object(p.last)(this.isSyncingOutcomingValue)===o&&(this.isSyncingOutcomingValue=[]):o!==e.value&&(this.isSyncingOutcomingValue=[],this.isSyncingIncomingValue=o,i(o),c&&a&&l(c,a))}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"attachChangeObserver",value:function(e){var t=this;this.unsubscribe&&this.unsubscribe();var n=e.select("core/block-editor"),r=n.getBlocks,o=n.getSelectionStart,i=n.getSelectionEnd,c=n.isLastBlockChangePersistent,a=n.__unstableIsLastBlockChangeIgnored,l=r(),s=c();this.unsubscribe=e.subscribe((function(){var e=t.props,n=e.onChange,u=void 0===n?p.noop:n,d=e.onInput,f=void 0===d?p.noop:d,b=r(),h=c();if(b!==l&&(t.isSyncingIncomingValue||a()))return t.isSyncingIncomingValue=null,l=b,void(s=h);if(b!==l||h&&!s){b!==l&&t.isSyncingOutcomingValue.push(b),l=b,s=h;var m=o(),g=i();s?u(l,{selectionStart:m,selectionEnd:g}):f(l,{selectionStart:m,selectionEnd:g})}}))}},{key:"render",value:function(){return this.props.children}}]),t}(d.Component),mo=Object(h.compose)([po,Object(g.withDispatch)((function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks,resetSelection:t.resetSelection}}))])(ho),go=n(65),vo=n(27);var Oo=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:b()(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&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})))),o&&Object(d.createElement)(H.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(H.Button,{icon:"ellipsis",label:Object(U.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(H.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(H.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))},ko=n(217),jo=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(d.createElement)("div",{className:c},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)(H.Button,{isSecondary:!0,tabIndex:"0",onClick:o},i)))},yo=function(e){function t(){return Object(_.a)(this,t),Object(E.a)(this,Object(S.a)(t).apply(this,arguments))}return Object(I.a)(t,e),Object(C.a)(t,[{key:"getDifference",value:function(e,t){return Object(ko.diffChars)(e,t).map((function(e,t){var n=b()({"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(i.getSaveElement)(e.name,e.attributes)}}},{key:"getConvertedContent",value:function(e){var t=Object(p.castArray)(e),n=t.map((function(e){return Object(i.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),r=t.map((function(e){return Object(i.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,i=e.convertButtonText,c=this.getOriginalContent(t),a=this.getConvertedContent(o(t)),l=this.getDifference(c.rawContent,a.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(jo,{title:Object(U.__)("Current"),className:"block-editor-block-compare__current",action:n,actionText:Object(U.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(d.createElement)(jo,{title:Object(U.__)("After Conversion"),className:"block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(d.Component),_o=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(E.a)(this,Object(S.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(w.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(w.a)(n)),n}return Object(I.a)(t,e),Object(C.a)(t,[{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,c=e.block,a=!!Object(i.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(U.__)("Convert to Classic Block"),onClick:r},{title:Object(U.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Oo,{actions:[Object(d.createElement)(H.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(U._x)("Resolve","imperative verb")),a&&Object(d.createElement)(H.Button,{key:"edit",onClick:t,isPrimary:!0},Object(U.__)("Convert to HTML"))],secondaryActions:s},Object(U.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(H.Modal,{title:Object(U.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(yo,{block:c,onKeep:t,onConvert:n,convertor:Co,convertButtonText:Object(U.__)("Convert to Blocks")})))}}]),t}(d.Component),Co=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},Eo=Object(h.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(i.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(i.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Co(n))},attemptBlockRecovery:function(){var e,t,o,c;r(n.clientId,(t=(e=n).name,o=e.attributes,c=e.innerBlocks,Object(i.createBlock)(t,o,c)))}}}))])(_o),So=Object(d.createElement)(Oo,{className:"block-editor-block-list__block-crash-warning"},Object(U.__)("This block has encountered an error and cannot be previewed.")),wo=function(){return So},Io=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(I.a)(t,e),Object(C.a)(t,[{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}}]),t}(d.Component),Bo=n(62),To=n.n(Bo);var xo=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(V.a)(n,2),o=r[0],c=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(){c(Object(i.getBlockContent)(a))}),[a]),Object(d.createElement)(To.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(i.getBlockType)(a.name),n=Object(i.getBlockAttributes)(e,o,a.attributes),r=o||Object(i.getSaveContent)(e,n),s=!o||Object(i.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||c({content:r})},onChange:function(e){return c(e.target.value)}})},No=Object(d.forwardRef)((function(e,t){var n=e.clientId,r=Object(M.a)(e,["clientId"]),o=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",Object(u.a)({className:"block-editor-block-list__breadcrumb"},r),Object(d.createElement)(H.Toolbar,null,Object(d.createElement)(H.Button,{ref:t,onClick:function(){return o(!1)}},Object(d.createElement)(ze,{clientId:n}))))}));var Lo=function(e){var t=e.children,n=e.focusOnMount,r=Object(M.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),i=Object(d.useCallback)((function(){var e=vo.focus.tabbable.find(o.current);e.length&&e[0].focus()}),[]);return Object(l.useShortcut)("core/block-editor/focus-toolbar",i,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){n&&i()}),[]),Object(d.createElement)(H.NavigableMenu,Object(u.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)};var Ao=function(e){var t=e.focusOnMount,n=e.hasMovers,r=e.moverDirection,o=Object(M.a)(e,["focusOnMount","hasMovers","moverDirection"]);return Object(d.createElement)(Lo,Object(u.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(U.__)("Block tools")},o),Object(d.createElement)(qa,{moverDirection:r,hasMovers:n}))};function Ro(e){var t=e.rootClientId,n=e.clientId,r=Object(d.useState)(!1),o=Object(V.a)(r,2),i=o[0],c=o[1],a=Object(g.useSelect)((function(e){var r=e("core/block-editor"),o=r.getBlockIndex,i=r.getBlockInsertionPoint,c=r.isBlockInsertionPointVisible,a=o(n,t),l=i();return c()&&l.index===a&&l.rootClientId===t}),[n,t]);return Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point"},a&&Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}),Object(d.createElement)("div",{onFocus:function(e){e.stopPropagation(),c(!0)},onBlur:function(){c(!1)},tabIndex:-1,className:b()("block-editor-block-list__insertion-point-inserter",{"is-visible":i})},Object(d.createElement)(Bi,{rootClientId:t,clientId:n})))}var Po=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(w.a)(e)),e.eventMap={},e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"proxyEvent",value:function(e){if(!e.nativeEvent._blockHandled){e.nativeEvent._blockHandled=!0;var t=this.eventMap[e.type];this.props[t]&&this.props[t](e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.childHandledEvents,r=void 0===n?[]:n,o=t.forwardedRef,i=t.tagName,c=void 0===i?"div":i,a=Object(M.a)(t,["childHandledEvents","forwardedRef","tagName"]),l=Object(p.reduce)([].concat(Object(P.a)(r),Object(P.a)(Object.keys(a))),(function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+)$/);return r&&(t[n]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=n),t}),{});return Object(d.createElement)(c,Object(s.a)({ref:o},a,l))}}]),t}(d.Component),Mo=function(e,t){return Object(d.createElement)(Po,Object(u.a)({},e,{forwardedRef:t}))};Mo.displayName="IgnoreNestedEvents";var Do=Object(d.forwardRef)(Mo);function Fo(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-block="'+e+'"]')}function Uo(e){return Fo(e).closest(".block-editor-block-list__block")}function Ho(e,t){var n=e.querySelector(".block-editor-block-list__layout");return e.contains(t)&&(!n||!n.contains(t))}var Vo=function(e){return e+1},zo=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var Ko=function(e,t,n,r,o){var i=Object(h.useReducedMotion)()||!r,c=Object(d.useReducer)(Vo,0),a=Object(V.a)(c,2),l=a[0],s=a[1],u=Object(d.useReducer)(Vo,0),f=Object(V.a)(u,2),b=f[0],p=f[1],m=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(V.a)(m,2),v=g[0],O=g[1],k=e.current?zo(e.current):null,j=Object(d.useMemo)((function(){return!!n&&Object(vo.getScrollContainer)(e.current)}),[n]);Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(i){if(n&&j){e.current.style.transform="none";var t=zo(e.current);j.scrollTop=j.scrollTop-k.top+t.top}}else{e.current.style.transform="none";var r=zo(e.current),o={x:k?k.left-r.left:0,y:k?k.top-r.top:0,scrollTop:k&&j?j.scrollTop-k.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(),O(o)}}),[o]);var y=Object(go.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==b,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&j&&!i&&e.y&&(j.scrollTop=v.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(go.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(go.interpolate)([y.x,y.y],(function(e,n){return!t||0===e&&0===n?void 0:"1"}))}},Go=Object(H.createSlotFill)("ChildToolbar"),Wo=Go.Fill,qo=Go.Slot,$o=function(e){var t=e.children;return Object(d.createElement)(Wo,null,t)},Yo=function(){return Object(d.createElement)(qo,{bubblesVirtually:!0})},Xo=function(e){e.preventDefault()};var Zo=Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),a=c.isBlockSelected,l=c.isAncestorMultiSelected,s=c.isBlockMultiSelected,u=c.isFirstMultiSelectedBlock,d=c.isTyping,f=c.isCaretWithinFormattedText,b=c.getBlockMode,h=c.isSelectionEnabled,m=c.getSelectedBlocksInitialCaretPosition,g=c.getSettings,v=c.hasSelectedInnerBlock,O=c.getTemplateLock,k=c.getBlockIndex,j=c.getBlockOrder,y=c.__unstableGetBlockWithoutInnerBlocks,_=c.isNavigationMode,C=c.getBlockListSettings,E=c.__experimentalGetBlockListSettingsForBlocks,S=c.getBlockParents,w=y(n),I=a(n),B=g(),T=B.hasFixedToolbar,x=B.focusMode,N=B.isRTL,L=O(r),A=v(n,!0),R=k(n,r),P=j(r),M=S(n),D=C(n),F=E(M),U=-1!==Object(p.findIndex)(F,["__experimentalCaptureToolbars",!0]),H=A&&D&&D.__experimentalCaptureToolbars&&!U,V=w||{},z=V.name,K=V.attributes,G=V.isValid;return{isMultiSelected:s(n),isPartOfMultiSelection:s(n)||l(n),isFirstMultiSelected:u(n),isTypingWithinBlock:(I||A)&&d(),isCaretWithinFormattedText:f(),mode:b(n),isSelectionEnabled:h(),initialPosition:I?m():null,isEmptyDefaultBlock:z&&Object(i.isUnmodifiedDefaultBlock)({name:z,attributes:K}),isLocked:!!L,isFocusMode:x&&o,hasFixedToolbar:T&&o,isLast:R===P.length-1,isNavigationMode:_(),isRTL:N,block:w,name:z,attributes:K,isValid:G,isSelected:I,isAncestorOfSelectedBlock:A,isCapturingDescendantToolbars:H,hasAncestorCapturingToolbars:U}})),Jo=Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.updateBlockAttributes,a=o.selectBlock,l=o.multiSelect,s=o.insertBlocks,u=o.insertDefaultBlock,d=o.removeBlock,f=o.mergeBlocks,b=o.replaceBlocks,p=o.toggleSelection,h=o.setNavigationMode,m=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId;c(n,e)},onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.clientId,n=arguments.length>1?arguments[1]:void 0;a(e,n)},onInsertBlocks:function(e,n){var r=t.rootClientId;s(e,n,r)},onInsertDefaultBlockAfter:function(){var e=t.clientId,n=t.rootClientId,o=(0,r("core/block-editor").getBlockIndex)(e,n);u({},n,o+1)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,i=(0,r("core/block-editor").getBlockIndex)(n,o);s(e,i+1,o)},onRemove:function(e){d(e)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),i=o.getPreviousBlockClientId,c=o.getNextBlockClientId;if(e){var a=c(n);a&&f(n,a)}else{var l=i(n);l&&f(l,n)}},onReplace:function(e,n){e.length&&!Object(i.isUnmodifiedDefaultBlock)(e[e.length-1])&&m(),b([t.clientId],e,n)},onShiftSelection:function(){if(t.isSelectionEnabled){var e=r("core/block-editor").getBlockSelectionStart;e()?l(e(),t.clientId):a(t.clientId)}},toggleSelection:function(e){p(e)},setNavigationMode:h}})),Qo=Object(h.compose)(h.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),Zo,Jo,Object(h.ifCondition)((function(e){return!!e.block})),Object(H.withFilters)("editor.BlockListBlock"))((function(e){var t=e.mode,n=e.isFocusMode,r=e.hasFixedToolbar,o=e.moverDirection,c=e.isLocked,a=e.clientId,f=e.rootClientId,h=e.isSelected,m=e.isMultiSelected,v=e.isPartOfMultiSelection,O=e.isFirstMultiSelected,k=e.isTypingWithinBlock,j=e.isCaretWithinFormattedText,y=e.isEmptyDefaultBlock,_=e.isAncestorOfSelectedBlock,C=e.isCapturingDescendantToolbars,E=e.hasAncestorCapturingToolbars,S=e.isSelectionEnabled,w=e.className,I=e.name,B=e.isValid,T=e.isLast,x=e.attributes,N=e.initialPosition,L=e.wrapperProps,A=e.setAttributes,R=e.onReplace,P=e.onInsertBlocksAfter,M=e.onMerge,D=e.onSelect,F=e.onRemove,z=e.onInsertDefaultBlockAfter,K=e.toggleSelection,G=e.onShiftSelection,W=e.onSelectionStart,q=e.animateOnChange,$=e.enableAnimation,Y=e.isNavigationMode,Z=e.setNavigationMode,J=e.isMultiSelecting,Q=e.isLargeViewport,ee=e.hasSelectedUI,te=void 0===ee||ee,ne=e.hasMovers,re=void 0===ne||ne,oe=Object(g.useSelect)((function(e){return{isDraggingBlocks:e("core/block-editor").isDraggingBlocks()}}),[]).isDraggingBlocks,ie=Object(d.useState)({}),ce=Object(V.a)(ie,2)[1],ae=Object(d.useRef)(null),le=Object(d.useRef)(),se=Object(d.useRef)(),ue=Object(d.useState)(!1),de=Object(V.a)(ue,2),fe=de[0],be=de[1],pe=Object(d.useRef)(!1);Object(d.useEffect)((function(){pe.current&&(pe.current=!1)}));var he=function(e){var t=window.getSelection();if(t.rangeCount&&!t.isCollapsed){var n=t.getRangeAt(0),r=n.startContainer,o=n.endContainer;le.current.contains(r)&&le.current.contains(o)||t.removeAllRanges()}if(!ae.current.contains(document.activeElement))if(Y)se.current.focus();else{var i=vo.focus.tabbable.find(le.current).filter(vo.isTextField).filter((function(t){return!e||Ho(le.current,t)})),c=-1===N,a=(c?p.last:p.first)(i);a?Object(vo.placeCaretAtHorizontalEdge)(a,c):ae.current.focus()}},me=Object(d.useRef)(!0);Object(d.useEffect)((function(){h&&!J&&he(!me.current),me.current=!1}),[h,J]),Object(d.useEffect)((function(){O&&ae.current.focus()}),[O]);var ge=Ko(ae,h||v,h||O,$,q);Object(d.useLayoutEffect)((function(){h&&(Y?se.current.focus():he(!0))}),[h,Y]);var ve=!Y&&!Ee&&h&&!r&&!y;Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){pe.current=!0,ce({})}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!ve});var Oe=Object(i.getBlockType)(I),ke=Object(U.sprintf)(Object(U.__)("Block: %s"),Oe.title),je=I===Object(i.getUnregisteredTypeHandlerName)(),ye=!Y&&(h||T)&&y&&B,_e=!n&&!ye&&h&&!k,Ce=Y&&h,Ee=!Y&&!r&&Q&&!ye&&!J&&(h&&(!k||j)||O),Se=!J&&(v&&O||!v),we=Se,Ie=oe&&(h||v),Be=b()("wp-block block-editor-block-list__block",{"has-selected-ui":te,"has-warning":!B||!!fe||je,"is-selected":_e&&te,"is-navigate-mode":Y,"is-multi-selected":m,"is-reusable":Object(i.isReusableBlock)(Oe),"is-dragging":Ie,"is-typing":k,"is-focused":n&&(h||_),"is-focus-mode":n,"has-child-selected":_,"has-toolbar-captured":E},w);Oe.getEditWrapperProps&&(L=Object(s.a)({},L,Oe.getEditWrapperProps(x)));var Te="block-".concat(a),xe=Object(d.createElement)(X,{name:I,isSelected:h,attributes:x,setAttributes:A,insertBlocksAfter:c?void 0:P,onReplace:c?void 0:R,mergeBlocks:c?void 0:M,clientId:a,isSelectionEnabled:S,toggleSelection:K});"visual"!==t&&(xe=Object(d.createElement)("div",{style:{display:"none"}},xe));var Ne=function(){return Object(d.createElement)(Ao,{focusOnMount:pe.current,"data-type":I,"data-align":L?L["data-align"]:void 0,moverDirection:o,hasMovers:re})};return Object(d.createElement)(Do,Object(u.a)({id:Te,ref:ae,className:Be,"data-type":I,onFocus:function(){h||v||D()},onKeyDown:function(e){var t=e.keyCode,n=e.target,r=h&&!c&&(n===ae.current||n===se.current),o=!Y;switch(t){case ct.ENTER:r&&o&&(z(),e.preventDefault());break;case ct.BACKSPACE:case ct.DELETE:r&&(F(a),e.preventDefault());break;case ct.ESCAPE:h&&o&&(Z(!0),ae.current.focus())}},tabIndex:"0","aria-label":ke,role:"group",childHandledEvents:["onDragStart","onMouseDown"],tagName:go.animated.div},L,{style:L&&L.style?Object(s.a)({},L.style,ge):ge}),Se&&Object(d.createElement)(Ro,{clientId:a,rootClientId:f}),we&&Object(d.createElement)(rt,{clientId:a,rootClientId:f}),Object(d.createElement)("div",{className:"block-editor-block-list__block-edit"},C&&Object(d.createElement)(Yo,null),(Ce||Ee||pe.current)&&Object(d.createElement)(H.Popover,{noArrow:!0,animate:!1,position:"top right left",focusOnMount:!1,anchorRef:le.current,className:"block-editor-block-list__block-popover",__unstableSticky:!v||".wp-block.is-multi-selected",__unstableSlotName:"block-toolbar",__unstableAllowVerticalSubpixelPosition:"horizontal"!==o&&ae.current,__unstableAllowHorizontalSubpixelPosition:"horizontal"===o&&ae.current},!E&&(Ee||pe.current)&&Ne(),E&&(Ee||pe.current)&&Object(d.createElement)($o,null,Ne()),Ce&&Object(d.createElement)(No,{clientId:a,ref:se,"data-align":L?L["data-align"]:void 0})),Object(d.createElement)(Do,{ref:le,onDragStart:Xo,onMouseDown:function(e){0===e.button&&(Y&&h&&Ho(le.current,e.target)&&Z(!1),e.shiftKey?h||(G(),e.preventDefault()):v&&D())},onMouseLeave:function(e){var t=e.which,n=e.buttons;h&&1===(n||t)&&W(a)},"data-block":a},Object(d.createElement)(Io,{onError:function(){return be(!0)}},B&&xe,B&&"html"===t&&Object(d.createElement)(xo,{clientId:a}),!B&&[Object(d.createElement)(Eo,{key:"invalid-warning",clientId:a}),Object(d.createElement)("div",{key:"invalid-preview"},Object(i.getSaveElement)(Oe,x))]),!!fe&&Object(d.createElement)(wo,null))),ye&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(Bi,{position:"top right",onToggle:function(e){e&&!h&&D()},rootClientId:f,clientId:a})))})),ei=n(54);var ti=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,c=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(i.getDefaultBlockName)(),d=c(t.lastBlockClientId),f=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:f}})),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,i=e.placeholder,c=e.rootClientId;if(t||!n)return null;var a=Object(ei.decodeEntities)(i)||Object(U.__)("Start writing or type / to choose a block");return Object(d.createElement)("div",{"data-root-client-id":c||"",className:"wp-block block-editor-default-block-appender"},Object(d.createElement)(rt,{rootClientId:c}),Object(d.createElement)(To.a,{role:"button","aria-label":Object(U.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(d.createElement)(Bi,{rootClientId:c,position:"top right",isAppender:!0}))}));var ni=Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,c=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:c(Object(i.getDefaultBlockName)(),n)}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,i=e.isLocked,c=e.renderAppender;return i||!1===c?null:(t=c?Object(d.createElement)(c,null):o?Object(d.createElement)(ti,{rootClientId:r,lastBlockClientId:Object(p.last)(n)}):Object(d.createElement)(Ti,{rootClientId:r,className:"block-list-appender__toggle"}),Object(d.createElement)(Do,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(d.createElement)("div",{tabIndex:-1,className:"block-list-appender"},t)))})),ri=Object(H.createSlotFill)("__experimentalBlockListFooter"),oi=ri.Fill,ii=ri.Slot;oi.Slot=ii;var ci=oi;function ai(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}var li=200;var si,ui=(si=function(e){var t=e.className,n=e.rootClientId,r=e.__experimentalMoverDirection,o=void 0===r?"vertical":r,i=e.isDraggable,c=e.renderAppender,a=e.__experimentalUIParts,l=void 0===a?{}:a,u=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,o=t.isMultiSelecting,i=t.getSelectedBlockClientId,c=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getGlobalBlockCount,s=t.isTyping;return{blockClientIds:r(n),isMultiSelecting:o(),selectedBlockClientId:i(),multiSelectedBlockClientIds:c(),hasMultiSelection:a(),enableAnimation:!s()&&l()<=li}}),[n]),f=u.blockClientIds,p=u.isMultiSelecting,h=u.selectedBlockClientId,m=u.multiSelectedBlockClientIds,v=u.hasMultiSelection,O=u.enableAnimation,k=Object(d.useRef)(),j=function(e){var t=e.ref,n=e.rootClientId,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockOrder,o=t.isSelectionEnabled,i=t.isMultiSelecting,c=t.getMultiSelectedBlockClientIds,a=t.hasMultiSelection,l=t.getBlockParents;return{blockClientIds:r(n),isSelectionEnabled:o(),isMultiSelecting:i(),multiSelectedBlockClientIds:c(),hasMultiSelection:a(),getBlockParents:l}}),[n]),o=r.blockClientIds,i=r.isSelectionEnabled,c=r.isMultiSelecting,a=r.multiSelectedBlockClientIds,l=r.hasMultiSelection,s=r.getBlockParents,u=Object(g.useDispatch)("core/block-editor"),f=u.startMultiSelect,b=u.stopMultiSelect,p=u.multiSelect,h=u.selectBlock,m=Object(d.useRef)(),v=Object(d.useRef)();Object(d.useEffect)((function(){if(l&&!c){var e=a.length,n=a[0],r=a[e-1];if(-1!==o.indexOf(n)){var i=t.current.querySelector('[data-block="'.concat(n,'"]')),s=t.current.querySelector('[data-block="'.concat(r,'"]')),u=window.getSelection(),d=document.createRange();i=ai(i,"start"),s=ai(s,"end"),d.setStartBefore(i),d.setEndAfter(s),u.removeAllRanges(),u.addRange(d)}}}),[l,c,a,o,h]);var O=Object(d.useCallback)((function(){var e=window.getSelection();if(e.rangeCount&&!e.isCollapsed){var t,n=e.focusNode;do{n=n.parentElement}while(n&&!(t=n.getAttribute("data-block")));if(v.current===t)h(t);else{var r=[].concat(Object(P.a)(s(v.current)),[v.current]),o=[].concat(Object(P.a)(s(t)),[t]),i=Math.min(r.length,o.length)-1;p(r[i],o[i])}}}),[h,s,p]),k=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",O),window.removeEventListener("mouseup",k),m.current=window.requestAnimationFrame((function(){O(),b()}))}),[O,b]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",O),window.removeEventListener("mouseup",k),window.cancelAnimationFrame(m.current)}}),[O,k]),Object(d.useCallback)((function(e){i&&(v.current=e,f(),document.addEventListener("selectionchange",O),window.addEventListener("mouseup",k),Array.from(t.current.querySelectorAll(".rich-text")).forEach((function(e){return e.removeAttribute("contenteditable")})))}),[i,f,k])}({ref:k,rootClientId:n}),y=Object(s.a)({hasMovers:!0,hasSelectedUI:!0},l);return Object(d.createElement)("div",{ref:k,className:b()("block-editor-block-list__layout",t)},f.map((function(e,t){var r=v?m.includes(e):h===e;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!r},Object(d.createElement)(Qo,{rootClientId:n,clientId:e,onSelectionStart:j,isDraggable:i,moverDirection:o,isMultiSelecting:p,animateOnChange:t,enableAnimation:O,hasSelectedUI:y.hasSelectedUI,hasMovers:y.hasMovers}))})),Object(d.createElement)(ni,{rootClientId:n,renderAppender:c}),Object(d.createElement)(ci.Slot,null))},function(e){return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(si,e))});function di(e){var t=e.blocks,n=e.viewportWidth,r=e.padding,o=void 0===r?0:r,i=Object(d.useRef)(null),c=Object(d.useState)(!1),a=Object(V.a)(c,2),l=a[0],s=a[1],u=Object(d.useState)(1),f=Object(V.a)(u,2),p=f[0],h=f[1],m=Object(d.useState)({x:0,y:0}),g=Object(V.a)(m,2),v=g[0],O=v.x,k=v.y,j=g[1];if(Object(d.useLayoutEffect)((function(){var e=setTimeout((function(){var e=i.current;if(e){if(1===t.length){var r=function(e,t){var n=Fo(e,t);if(n)return n.firstChild||n}(t[0].clientId,e);if(!r)return;var c=e.getBoundingClientRect();c={width:c.width-2*o,height:c.height-2*o,left:c.left,top:c.top};var a=r.getBoundingClientRect(),l=c.width/a.width||1,u=-(a.left-c.left)*l+o,d=c.height>a.height*l?(c.height-a.height*l)/2+o:0;h(l),j({x:u,y:d}),r.style.marginTop="0"}else{var f=e.getBoundingClientRect();h(f.width/n)}s(!0)}}),100);return function(){e&&window.clearTimeout(e)}}),[]),!t||0===t.length)return null;var y={transform:"scale(".concat(p,")"),visibility:l?"visible":"hidden",left:O,top:k,width:n};return Object(d.createElement)("div",{ref:i,className:b()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":l}),"aria-hidden":!0},Object(d.createElement)(H.Disabled,{style:y,className:"block-editor-block-preview__content"},Object(d.createElement)(ui,null)))}var fi=Object(g.withSelect)((function(e){return{settings:e("core/block-editor").getSettings()}}))((function(e){var t=e.blocks,n=e.viewportWidth,r=void 0===n?700:n,o=e.padding,i=e.settings,c=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]),a=Object(d.useReducer)((function(e){return e+1}),0),l=Object(V.a)(a,2),s=l[0],u=l[1];return Object(d.useLayoutEffect)(u,[t]),Object(d.createElement)(mo,{value:c,settings:i},Object(d.createElement)(di,{key:s,blocks:c,viewportWidth:r,padding:o}))}));var bi=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(M.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)(H.Button,Object(u.a)({className:b()("block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(tt,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};var pi=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return(Object(d.createElement)("ul",{role:"list",className:"block-editor-block-types-list"},t&&t.map((function(e){return Object(d.createElement)(bi,{key:e.id,className:Object(i.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){n(e),o(null)},onFocus:function(){return o(e)},onMouseEnter:function(){return o(e)},onMouseLeave:function(){return o(null)},onBlur:function(){return o(null)},isDisabled:e.isDisabled,title:e.title})})),c))};var hi=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(tt,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var mi=Object(h.compose)(Object(h.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(M.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)(tt,{icon:t,showColors:!0}),n&&Object(d.createElement)("h2",null,n)),Object(d.createElement)(pi,Object(u.a)({items:r},o)))})),gi=Object(H.createSlotFill)("__experimentalInserterMenuExtension"),vi=gi.Fill,Oi=gi.Slot;vi.Slot=Oi;var ki=vi,ji=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)},yi=function(e,t){return Object(p.differenceWith)(e,ji(t),(function(e,t){return t.includes(e)}))},_i=function(e,t,n){var r=ji(n);return 0===r.length?e:e.filter((function(e){var n=e.title,o=e.category,i=e.keywords,c=void 0===i?[]:i,a=yi(r,n);return 0===a.length||(0===(a=yi(a,c.join(" "))).length||0===(a=yi(a,Object(p.get)(Object(p.find)(t,{slug:o}),["title"]))).length)}))},Ci=function(e){return e.stopPropagation()},Ei=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(w.a)(e)),e.onHover=e.onHover.bind(Object(w.a)(e)),e.panels={},e.inserterResults=Object(d.createRef)(),e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"componentDidMount",value:function(){this.props.fetchReusableBlocks&&this.props.fetchReusableBlocks(),this.filter()}},{key:"componentDidUpdate",value:function(e){e.items!==this.props.items&&this.filter(this.state.filterValue)}},{key:"onChangeSearchInput",value:function(e){this.filter(e.target.value)}},{key:"onHover",value:function(e){this.setState({hoveredItem:e});var t=this.props,n=t.showInsertionPoint,r=t.hideInsertionPoint;e?n():r()}},{key:"bindPanel",value:function(e){var t=this;return function(n){t.panels[e]=n}}},{key:"onTogglePanel",value:function(e){var t=this;return function(){-1!==t.state.openPanels.indexOf(e)?t.setState({openPanels:Object(p.without)(t.state.openPanels,e)}):(t.setState({openPanels:[].concat(Object(P.a)(t.state.openPanels),[e])}),t.props.setTimeout((function(){it()(t.panels[e],t.inserterResults.current,{alignWithTop:!0})})))}}},{key:"filterOpenPanels",value:function(e,t,n,r){if(e===this.state.filterValue)return this.state.openPanels;if(!e)return["suggested"];var o=[];return r.length>0&&o.push("reusable"),n.length>0&&(o=o.concat(Object.keys(t))),o}},{key:"filter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,n=t.categories,r=t.debouncedSpeak,o=t.items,i=t.rootChildBlocks,c=_i(o,n,e),a=Object(p.filter)(c,(function(e){var t=e.name;return Object(p.includes)(i,t)})),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(p.filter)(o,(function(e){return e.utility>0})).slice(0,s)}var u=Object(p.filter)(c,{category:"reusable"}),d=function(e){return Object(p.findIndex)(n,(function(t){return t.slug===e.category}))},f=Object(p.flow)((function(e){return Object(p.filter)(e,(function(e){return"reusable"!==e.category}))}),(function(e){return Object(p.sortBy)(e,d)}),(function(e){return Object(p.groupBy)(e,"category")}))(c);this.setState({hoveredItem:null,childItems:a,filterValue:e,suggestedItems:l,reusableItems:u,itemsPerCategory:f,openPanels:this.filterOpenPanels(e,f,c,u)});var b=Object.keys(f).reduce((function(e,t){return e+f[t].length}),0),h=Object(U.sprintf)(Object(U._n)("%d result found.","%d results found.",b),b);r(h)}},{key:"onKeyDown",value:function(e){Object(p.includes)([ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.categories,r=t.instanceId,o=t.onSelect,c=t.rootClientId,a=t.showInserterHelpPanel,l=this.state,s=l.childItems,u=l.hoveredItem,f=l.itemsPerCategory,h=l.openPanels,m=l.reusableItems,g=l.suggestedItems,v=l.filterValue,O=function(e){return-1!==h.indexOf(e)},k=!Object(p.isEmpty)(g)||!Object(p.isEmpty)(m)||!Object(p.isEmpty)(f),j=u?Object(i.getBlockType)(u.name):null,y=k&&a;return Object(d.createElement)("div",{className:b()("block-editor-inserter__menu",{"has-help-panel":y}),onKeyPress:Ci,onKeyDown:this.onKeyDown},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(r),className:"screen-reader-text"},Object(U.__)("Search for a block")),Object(d.createElement)("input",{id:"block-editor-inserter__search-".concat(r),type:"search",placeholder:Object(U.__)("Search for a block"),className:"block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(d.createElement)("div",{className:"block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(U.__)("Available block types")},Object(d.createElement)(mi,{rootClientId:c,items:s,onSelect:o,onHover:this.onHover}),!!g.length&&Object(d.createElement)(H.PanelBody,{title:Object(U._x)("Most used","blocks"),opened:O("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(d.createElement)(pi,{items:g,onSelect:o,onHover:this.onHover})),Object(p.map)(n,(function(t){var n=f[t.slug];return n&&n.length?Object(d.createElement)(H.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:O(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(d.createElement)(pi,{items:n,onSelect:o,onHover:e.onHover})):null})),!!m.length&&Object(d.createElement)(H.PanelBody,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(U.__)("Reusable"),opened:O("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(d.createElement)(pi,{items:m,onSelect:o,onHover:this.onHover}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(at.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(U.__)("Manage all reusable blocks"))),Object(d.createElement)(ki.Slot,{fillProps:{onSelect:o,onHover:this.onHover,filterValue:v,hasItems:k}},(function(e){return e.length?e:k?null:Object(d.createElement)("p",{className:"block-editor-inserter__no-results"},Object(U.__)("No blocks found."))})))),y&&Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},u&&Object(d.createElement)(d.Fragment,null,!Object(i.isReusableBlock)(u)&&Object(d.createElement)(hi,{blockType:j}),Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(i.isReusableBlock)(u)||j.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(fi,{padding:10,viewportWidth:500,blocks:j.example?Object(i.getBlockFromExample)(u.name,j.example):Object(i.createBlock)(u.name,u.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(U.__)("No Preview Available.")))),!u&&Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(d.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(U.__)("Content blocks")),Object(d.createElement)("p",null,Object(U.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(d.createElement)("p",null,Object(U.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(d.createElement)("p",null,Object(U.__)("Browse through the library to learn more about what each block does."))),Object(d.createElement)(H.Tip,null,Object(d.__experimentalCreateInterpolateElement)(Object(U.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)})))))}}]),t}(d.Component),Si=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.isAppender,o=t.rootClientId,i=t.showInserterHelpPanel,c=e("core/block-editor"),a=c.getInserterItems,l=c.getBlockName,s=c.getBlockRootClientId,u=c.getBlockSelectionEnd,d=c.getSettings,f=e("core/blocks"),b=f.getCategories,p=f.getChildBlockNames,h=o;if(!h&&!n&&!r){var m=u();m&&(h=s(m)||void 0)}var g=l(h),v=d(),O=v.showInserterHelpPanel,k=v.__experimentalFetchReusableBlocks;return{categories:b(),rootChildBlocks:p(g),items:a(h),showInserterHelpPanel:i&&O,destinationRootClientId:h,fetchReusableBlocks:k}})),Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint;function a(){var e=r("core/block-editor"),n=e.getBlockIndex,o=e.getBlockSelectionEnd,i=e.getBlockOrder,c=t.clientId,a=t.destinationRootClientId,l=t.isAppender;if(c)return n(c,a);var s=o();return!l&&s?n(s,a)+1:i(a).length}return{showInsertionPoint:function(){var e=a();c(t.destinationRootClientId,e)},hideInsertionPoint:o.hideInsertionPoint,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,l=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=t.onSelect,f=t.__experimentalSelectBlockOnInsert,b=n.name,p=n.title,h=n.initialAttributes,m=s(),g=Object(i.createBlock)(b,h);if(!u&&m&&Object(i.isUnmodifiedDefaultBlock)(m))c(m.clientId,g);else if(l(g,a(),t.destinationRootClientId,f),!f){var v=Object(U.sprintf)(Object(U.__)("%s block added"),p);Object(he.speak)(v)}return d(),g}}})),H.withSpokenMessages,h.withInstanceId,h.withSafeTimeout)(Ei),wi=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,i=e.blockTitle,c=e.hasSingleBlockType;return t=c?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),i):Object(U._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(H.Button,{icon:"insert",label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!c&&"true","aria-expanded":!c&&o,disabled:r})},Ii=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(w.a)(e)),e.renderToggle=e.renderToggle.bind(Object(w.a)(e)),e.renderContent=e.renderContent.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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,i=r.blockTitle,c=r.hasSingleBlockType,a=r.renderToggle,l=void 0===a?wi:a;return l({onToggle:t,isOpen:n,disabled:o,blockTitle:i,hasSingleBlockType:c})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(Si,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c,__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)(H.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(U.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(d.Component),Bi=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.hasInserterItems,i=(0,r.__experimentalGetAllowedBlocks)(n),c=i&&1===Object(p.get)(i,["length"],0),a=!1;return c&&(a=i[0]),{hasItems:o(n),hasSingleBlockType:c,blockTitle:a?a.title:"",allowedBlockType:a}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,c=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(i.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,i=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=i();return!c&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(U.sprintf)(Object(U.__)("%s block added"),l.title);Object(he.speak)(u)}}}})),Object(h.ifCondition)((function(e){return e.hasItems}))])(Ii);var Ti=function(e){var t=e.rootClientId,n=e.className,r=e.__experimentalSelectBlockOnInsert;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(rt,{rootClientId:t}),Object(d.createElement)(Bi,{rootClientId:t,__experimentalSelectBlockOnInsert:r,renderToggle:function(e){var t,r=e.onToggle,o=e.disabled,i=e.isOpen,c=e.blockTitle,a=e.hasSingleBlockType;t=a?Object(U.sprintf)(Object(U._x)("Add %s","directly add the only allowed block"),c):Object(U._x)("Add block","Generic label for block inserter button");var l=!a;return Object(d.createElement)(H.Tooltip,{text:t},Object(d.createElement)(H.Button,{className:b()(n,"block-editor-button-block-appender"),onClick:r,"aria-haspopup":l?"true":void 0,"aria-expanded":l?i:void 0,disabled:o,label:t},Object(d.createElement)("span",{className:"screen-reader-text"},t),Object(d.createElement)(H.Icon,{icon:"insert"})))},isAppender:!0}))};function xi(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showAppender,a=e.showNestedBlocks,l=e.parentBlockClientId,s=o&&!!l;return Object(d.createElement)("ul",{className:"block-editor-block-navigation__list",role:"list"},Object(p.map)(Object(p.omitBy)(t,p.isNil),(function(e){var t=Object(i.getBlockType)(e.name),l=e.clientId===n;return Object(d.createElement)("li",{key:e.clientId},Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(H.Button,{className:b()("block-editor-block-navigation__item-button",{"is-selected":l}),onClick:function(){return r(e.clientId)}},Object(d.createElement)(tt,{icon:t.icon,showColors:!0}),function(e,t){var n=e.__experimentalDisplayName;if(!n||!t[n])return e.title;var r=Object(c.create)({html:t[n]});return Object(c.getTextContent)(r)}(t,e.attributes),l&&Object(d.createElement)("span",{className:"screen-reader-text"},Object(U.__)("(selected block)")))),a&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(d.createElement)(xi,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,parentBlockClientId:e.clientId,showAppender:o,showNestedBlocks:!0}))})),s&&Object(d.createElement)("li",null,Object(d.createElement)("div",{className:"block-editor-block-navigation__item"},Object(d.createElement)(Ti,{rootClientId:l,__experimentalSelectBlockOnInsert:!1}))))}var Ni=Object(h.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,i=t.getBlocks,c=n();return{rootBlocks:i(),rootBlock:c?o(r(c)):null,selectedBlockClientId:c}})),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;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)(H.NavigableMenu,{role:"presentation",className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(U.__)("Block navigation")),i&&Object(d.createElement)(xi,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(d.createElement)(xi,{blocks:n,selectedBlockClientId:r,selectBlock:o}))})),Li=Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(d.createElement)(H.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));function Ai(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)(H.Button,{icon:Li,"aria-expanded":r,onClick:t?n:void 0,label:Object(U.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:o,"aria-disabled":!t})}var Ri=function(e){var t=e.isDisabled,n=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!t;return Object(d.createElement)(H.Dropdown,{contentClassName:"block-editor-block-navigation__popover",renderToggle:function(e){return Object(d.createElement)(Ai,Object(u.a)({},e,{isEnabled:n}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(Ni,{onSelect:t})}})};var Pi=function(e){var t=e.icon,n=void 0===t?"layout":t,r=e.label,o=void 0===r?Object(U.__)("Choose pattern"):r,i=e.instructions,c=void 0===i?Object(U.__)("Select a pattern to start with."):i,a=e.patterns,l=e.onSelect,s=e.allowSkip,u=b()("block-editor-block-pattern-picker",{"has-many-patterns":a.length>4});return Object(d.createElement)(H.Placeholder,{icon:n,label:o,instructions:c,className:u},Object(d.createElement)("ul",{className:"block-editor-block-pattern-picker__patterns",role:"list"},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(H.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-pattern-picker__pattern",label:e.label}))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-pattern-picker__skip"},Object(d.createElement)(H.Button,{isLink:!0,onClick:function(){return l()}},Object(U.__)("Skip"))))},Mi=Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(H.Path,{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"})),Di=Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(H.Path,{d:"M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"})),Fi={top:{icon:Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(H.Path,{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"})),title:Object(U._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Di,title:Object(U._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:Mi,title:Object(U._x)("Vertically Align Bottom","Block vertical alignment setting")}},Ui=["top","center","bottom"],Hi="top";var Vi=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?Ui:r,i=e.isCollapsed,c=void 0===i||i,a=Fi[t],l=Fi[Hi];return Object(d.createElement)(H.Toolbar,{isCollapsed:c,icon:a?a.icon:l.icon,label:Object(U._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return Object(s.a)({},Fi[e],{isActive:t===e,role:c?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})},zi=Object(h.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"),Ki=zi(H.ColorPalette);function Gi(e){var t=e.onChange,n=e.value,r=Object(M.a)(e,["onChange","value"]);return Object(d.createElement)(ce,Object(u.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}function Wi(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)(H.__experimentalGradientPicker,Object(u.a)({gradients:void 0!==e.gradients?e.gradient:n,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:r},e))}var qi=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?H.__experimentalGradientPicker:Wi;return Object(d.createElement)(t,e)},$i=function(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,i=void 0===o?Object(U.__)("Gradient Presets"):o,c=Object(M.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,s=void 0===l?[]:l,f=a.disableCustomGradients;return Object(p.isEmpty)(s)&&f?null:Object(d.createElement)(H.BaseControl,{className:b()("block-editor-gradient-picker-control",t)},Object(d.createElement)(H.BaseControl.VisualLabel,null,i),Object(d.createElement)(qi,Object(u.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:s,disableCustomGradients:f},c)))};function Yi(e){var t=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().gradients}),[]);return Object(p.isEmpty)(t)?null:Object(d.createElement)(H.PanelBody,{title:Object(U.__)("Gradient")},Object(d.createElement)($i,e))}var Xi=n(46),Zi=n.n(Xi),Ji=Object(h.createHigherOrderComponent)((function(e){return $((function(e){return Object(p.pick)(e,["clientId"])}))(e)}),"withClientId"),Qi=Ji((function(e){var t=e.clientId,n=e.showSeparator;return Object(d.createElement)(Ti,{rootClientId:t,showSeparator:n})})),ec=Object(h.compose)([Ji,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)(ti,{rootClientId:t,lastBlockClientId:n})})),tc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.templateLock;0!==e.block.innerBlocks.length&&"all"!==t||this.synchronizeBlocksWithTemplate(),this.state.templateInProcess&&this.setState({templateInProcess:!1})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.template,r=t.block,o=t.templateLock,i=r.innerBlocks;(this.updateNestedSettings(),0===i.length||"all"===o)&&(!Object(p.isEqual)(n,e.template)&&this.synchronizeBlocksWithTemplate())}},{key:"synchronizeBlocksWithTemplate",value:function(){var e=this.props,t=e.template,n=e.block,r=e.replaceInnerBlocks,o=n.innerBlocks,c=Object(i.synchronizeBlocksWithTemplate)(o,t);Object(p.isEqual)(c,o)||r(c)}},{key:"updateNestedSettings",value:function(){var e=this.props,t=e.blockListSettings,n=e.allowedBlocks,r=e.updateNestedSettings,o=e.templateLock,i=e.parentLock,c={allowedBlocks:n,templateLock:void 0===o?i:o,__experimentalCaptureToolbars:e.__experimentalCaptureToolbars||!1};Zi()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.enableClickThrough,n=e.clientId,r=e.hasOverlay,o=e.__experimentalCaptureToolbars,i=Object(M.a)(e,["enableClickThrough","clientId","hasOverlay","__experimentalCaptureToolbars"]),c=this.state.templateInProcess,a=b()("block-editor-inner-blocks",{"has-overlay":t&&r,"is-capturing-toolbar":o});return Object(d.createElement)("div",{className:a},!c&&Object(d.createElement)(ui,Object(u.a)({rootClientId:n},i)))}}]),t}(d.Component);(tc=Object(h.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),$((function(e){return Object(p.pick)(e,["clientId"])})),Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.isBlockSelected,o=n.hasSelectedInnerBlock,i=n.getBlock,c=n.getBlockListSettings,a=n.getBlockRootClientId,l=n.getTemplateLock,s=n.isNavigationMode,u=t.clientId,d=t.isSmallScreen,f=i(u),b=a(u);return{block:f,blockListSettings:c(u),hasOverlay:"core/template"!==f.name&&!r(u)&&!o(u,!0),parentLock:l(b),enableClickThrough:s()||d}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.replaceInnerBlocks,o=n.updateBlockListSettings,i=t.block,c=t.clientId,a=t.templateInsertUpdatesSelection,l=void 0===a||a;return{replaceInnerBlocks:function(e){r(c,e,0===i.innerBlocks.length&&l)},updateNestedSettings:function(t){e(o(c,t))}}}))])(tc)).DefaultBlockAppender=ec,tc.ButtonBlockAppender=Qi,tc.Content=Object(i.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var nc=tc,rc=Object(H.createSlotFill)("InspectorAdvancedControls"),oc=rc.Fill,ic=rc.Slot,cc=Y(oc);cc.slotName="InspectorAdvancedControls",cc.Slot=ic;var ac=cc,lc=n(44),sc=[{id:"newTab",title:Object(U.__)("Open in New Tab"),checked:!1}],uc=function(e){var t=e.settings,n=void 0===t?sc:t,r=e.onSettingChange,o=void 0===r?p.noop:r;if(!n||!n.length)return null;var i=function(e){return function(t){o(e.id,t,n)}},c=n.map((function(e){return Object(d.createElement)(H.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:e.checked})}));return Object(d.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(d.createElement)("legend",{className:"screen-reader-text"},Object(U.__)("Currently selected link settings")),c)},dc=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,i=e.onClick,c=e.isURL,a=void 0!==c&&c,l=e.searchTerm,s=void 0===l?"":l;return Object(d.createElement)(H.Button,Object(u.a)({type:"submit"},t,{onClick:i,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(H.Icon,{className:"block-editor-link-control__search-item-icon",icon:"admin-site-alt3"}),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)(H.TextHighlight,{text:n.title,highlight:s})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(at.safeDecodeURI)(n.url)||""),a&&Object(U.__)("Press ENTER to add this link"))),n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},n.type))},fc=function(e){var t=e.value,n=e.onChange,r=e.onSelect,o=e.renderSuggestions,i=e.fetchSuggestions,c=e.onReset,a=e.onKeyDown,l=e.onKeyPress;return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation()}},Object(d.createElement)(Oc,{className:"block-editor-link-control__search-input",value:t,onChange:function(e,t){n(e),t&&r(t)},onKeyDown:function(e){e.keyCode!==ct.ENTER&&a(e)},onKeyPress:l,placeholder:Object(U.__)("Search or type url"),__experimentalRenderSuggestions:o,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0}),Object(d.createElement)(H.Button,{disabled:!t.length,type:"reset",label:Object(U.__)("Reset"),icon:"no-alt",className:"block-editor-link-control__search-reset",onClick:c}))},bc="edit";var pc=Object(h.compose)(h.withInstanceId,Object(g.withSelect)((function(e,t){if(!t.fetchSearchSuggestions||!Object(p.isFunction)(t.fetchSearchSuggestions))return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))((function(e){var t=e.className,n=e.currentLink,r=e.currentSettings,o=e.fetchSearchSuggestions,i=e.instanceId,c=e.onClose,a=void 0===c?p.noop:c,l=e.onChangeMode,s=void 0===l?p.noop:l,f=e.onKeyDown,h=void 0===f?p.noop:f,m=e.onKeyPress,g=void 0===m?p.noop:m,v=e.onLinkChange,O=void 0===v?p.noop:v,k=e.onSettingsChange,j=void 0===k?p.noop:k,y=Object(d.useState)(""),_=Object(V.a)(y,2),C=_[0],E=_[1],S=Object(d.useState)(!1),w=Object(V.a)(S,2),I=w[0],B=w[1];Object(d.useEffect)((function(){B(!n)}),[n]);var T=function(){E("")},x=function(e){var t="URL",n=Object(at.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(p.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:"-1",title:e,url:"URL"===t?Object(at.prependHTTP)(e):e,type:t}])},N=function(){var e=Object(lc.a)(Bt.a.mark((function e(t){var n,r;return Bt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([o(t),x(t)]);case 2:return n=e.sent,r=!t.includes(" "),e.abrupt("return",r?n[0].concat(n[1]):n[0]);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=Object(d.useCallback)((function(e){var t=Object(at.getProtocol)(e)||"",n=t.includes("mailto"),r=Object(p.startsWith)(e,"#"),o=t.includes("tel");return r||n||o||Object(at.isURL)(e)||e&&e.includes("www.")?x(e):N(e)}),[x,o]);return Object(d.createElement)(H.Popover,{className:b()("block-editor-link-control",t),onClose:function(){T(),a()},position:"bottom center",focusOnMount:"firstElement"},Object(d.createElement)("div",{className:"block-editor-link-control__popover-inner"},Object(d.createElement)("div",{className:"block-editor-link-control__search"},!I&&n&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("p",{className:"screen-reader-text",id:"current-link-label-".concat(i)},Object(U.__)("Currently selected"),":"),Object(d.createElement)("div",{"aria-labelledby":"current-link-label-".concat(i),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(H.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n.title),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},Object(at.filterURLForDisplay)(Object(at.safeDecodeURI)(n.url))||"")),Object(d.createElement)(H.Button,{isSecondary:!0,onClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"show";return function(){B(bc===e),n&&n.title&&E(n.title),Object(p.isFunction)(s)&&s(e)}}(bc),className:"block-editor-link-control__search-item-action block-editor-link-control__search-item-action--edit"},Object(U.__)("Change")))),I&&Object(d.createElement)(fc,{value:C,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";E(e)},onSelect:O,renderSuggestions:function(e){var t=e.suggestionsListProps,n=e.buildSuggestionItemProps,r=e.suggestions,o=e.selectedSuggestion,i=e.isLoading,c=b()("block-editor-link-control__search-results",{"is-loading":i}),a=["url","mailto","tel","internal"];return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},Object(d.createElement)("div",Object(u.a)({},t,{className:c}),r.map((function(e,t){return Object(d.createElement)(dc,{key:"".concat(e.id,"-").concat(e.type),itemProps:n(e,t),suggestion:e,onClick:function(){return O(e)},isSelected:t===o,isURL:a.includes(e.type.toLowerCase()),searchTerm:C})}))))},fetchSuggestions:L,onReset:T,onKeyDown:h,onKeyPress:g}),!I&&Object(d.createElement)(uc,{settings:r,onSettingChange:j}))))})),hc=Object(H.withFilters)("editor.MediaUpload")((function(){return null}));var mc=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})),gc=function(e){return e.stopPropagation()},vc=function(e){function t(e){var n;return Object(_.a)(this,t),(n=Object(E.a)(this,Object(S.a)(t).call(this,e))).onChange=n.onChange.bind(Object(w.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(w.a)(n)),n.selectLink=n.selectLink.bind(Object(w.a)(n)),n.handleOnClick=n.handleOnClick.bind(Object(w.a)(n)),n.bindSuggestionNode=n.bindSuggestionNode.bind(Object(w.a)(n)),n.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),n.inputRef=Object(d.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(w.a)(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(I.a)(t,e),Object(C.a)(t,[{key:"componentDidUpdate",value:function(){var e=this,t=this.state,n=t.showSuggestions,r=t.selectedSuggestion;n&&null!==r&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,it()(this.suggestionNodes[r],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"updateSuggestions",value:function(e){var t=this,n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r)if(e.length<2||!o&&Object(at.isURL)(e))this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});else{this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var i=r(e);i.then((function(e){t.suggestionsRequest===i&&(t.setState({suggestions:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(U.sprintf)(Object(U._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):t.props.debouncedSpeak(Object(U.__)("No results."),"assertive"))})).catch((function(){t.suggestionsRequest===i&&t.setState({loading:!1})})),this.suggestionsRequest=i}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,i=t.loading;if(n&&o.length&&!i||!this.props.value){var c=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(c),this.props.speak(Object(U.__)("Link selected.")));break;case ct.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}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,i=t.isFullWidth,c=t.hasBorder,a=t.__experimentalRenderSuggestions,l=t.placeholder,s=void 0===l?Object(U.__)("Paste URL or type to search"):l,f=t.value,h=void 0===f?"":f,m=t.autoFocus,g=void 0===m||m,v=this.state,O=v.showSuggestions,k=v.suggestions,j=v.selectedSuggestion,y=v.loading,_="url-input-control-".concat(r),C="block-editor-url-input-suggestions-".concat(r),E="block-editor-url-input-suggestion-".concat(r),S={id:C,ref:this.autocompleteRef,role:"listbox"},w=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(E,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===j}};return Object(d.createElement)(H.BaseControl,{label:n,id:_,className:b()("block-editor-url-input",o,{"is-full-width":i,"has-border":c})},Object(d.createElement)("input",{autoFocus:g,type:"text","aria-label":Object(U.__)("URL"),required:!0,value:h,onChange:this.onChange,onInput:gc,placeholder:s,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":O,"aria-autocomplete":"list","aria-owns":C,"aria-activedescendant":null!==j?"".concat(E,"-").concat(j):void 0,ref:this.inputRef}),y&&Object(d.createElement)(H.Spinner,null),Object(p.isFunction)(a)&&O&&!!k.length&&a({suggestions:k,selectedSuggestion:j,suggestionsListProps:S,buildSuggestionItemProps:w,isLoading:y,handleSuggestionClick:this.handleOnClick}),!Object(p.isFunction)(a)&&O&&!!k.length&&Object(d.createElement)(H.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(u.a)({},S,{className:b()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),k.map((function(t,n){return Object(d.createElement)(H.Button,Object(u.a)({},w(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===j}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=t.showSuggestions,i=t.selectedSuggestion,c=o,a=n&&n.length;return a||(c=!1),!0===r&&(c=!1),{selectedSuggestion:a?i:null,showSuggestions:c}}}]),t}(d.Component),Oc=Object(h.compose)(h.withSafeTimeout,H.withSpokenMessages,h.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(vc);function kc(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(M.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(u.a)({className:b()("block-editor-url-popover__link-editor",n)},i),Object(d.createElement)(Oc,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(H.Button,{icon:"editor-break",label:Object(U.__)("Apply"),type:"submit"}))}function jc(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(H.ExternalLink,{className:o,href:t},n||Object(at.filterURLForDisplay)(Object(at.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function yc(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(M.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(u.a)({className:b()("block-editor-url-popover__link-viewer",t)},c),Object(d.createElement)(jc,{url:o,urlLabel:i,className:n}),r&&Object(d.createElement)(H.Button,{icon:"edit",label:Object(U.__)("Edit"),onClick:r}))}var _c=Object(h.compose)(H.withNotices)((function(e){var t,n=e.mediaURL,r=e.allowedTypes,o=e.accept,i=e.onSelect,c=e.onSelectURL,a=e.onError,l=e.name,s=void 0===l?Object(U.__)("Replace"):l,u=Object(d.useState)(!1),f=Object(V.a)(u,2),b=f[0],p=f[1],h=Object(d.useState)(!1),m=Object(V.a)(h,2),v=m[0],O=m[1],k=Object(d.useState)(n),j=Object(V.a)(k,2),y=j[0],_=j[1],C=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),E=Object(d.createRef)(),S=function(e){i(e),_(e.url),Object(he.speak)(Object(U.__)("The media file has been replaced"))},w=function(e){e.keyCode===ct.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return t=v?Object(d.createElement)(kc,{onKeyDown:function(e){[ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()},value:y,isFullWidthInput:!0,hasInputBorder:!0,onChangeInputValue:function(e){return _(e)},onSubmit:function(e){e.preventDefault(),c(y),O(!1),E.current.focus()}}):Object(d.createElement)(yc,{isFullWidth:!0,className:"block-editor-media-replace-flow__link-viewer",url:y,onEditLinkClick:function(){return O(!v)}}),Object(d.createElement)(H.Dropdown,{contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(H.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(H.Button,{ref:E,"aria-expanded":t,onClick:n,onKeyDown:w},s,Object(d.createElement)("span",{className:"block-editor-media-replace-flow__indicator"})))},renderContent:function(e){var n=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(H.NavigableMenu,null,Object(d.createElement)(hc,{onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(H.MenuItem,{icon:"admin-media",onClick:t},Object(U.__)("Open Media Library"))}}),Object(d.createElement)(mc,null,Object(d.createElement)(H.FormFileUpload,{onChange:function(e){!function(e,t){var n=e.target.files;C({allowedTypes:r,filesList:n,onFileChange:function(e){var n=Object(V.a)(e,1)[0];S(n),t()},onError:a})}(e,n)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(H.MenuItem,{icon:"upload",onClick:function(){t()}},Object(U.__)("Upload"))}})),c&&Object(d.createElement)(H.MenuItem,{icon:"admin-links",onClick:function(){return p(!b)},"aria-expanded":b},Object(d.createElement)("div",null," ",Object(U.__)("Insert from URL")," "))),b&&Object(d.createElement)("div",{className:"block-editor-media-flow__url-input"},t))}})})),Cc=n(33),Ec=n.n(Cc),Sc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(w.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(I.a)(t,e),Object(C.a)(t,[{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,i=void 0===o?"bottom center":o,c=e.focusOnMount,a=void 0===c?"firstElement":c,l=Object(M.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),s=this.state.isSettingsExpanded,f=!!r&&s;return Object(d.createElement)(H.Popover,Object(u.a)({className:"block-editor-url-popover",focusOnMount:a,position:i},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)(H.Button,{className:"block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(U.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":s})),f&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!f&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(d.Component);Sc.LinkEditor=kc,Sc.LinkViewer=yc;var wc=Sc,Ic=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(wc,{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(U.__)("URL"),placeholder:Object(U.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(H.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(U.__)("Apply"),type:"submit"})))},Bc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(w.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(w.a)(e)),e.onUpload=e.onUpload.bind(Object(w.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(w.a)(e)),e.openURLInput=e.openURLInput.bind(Object(w.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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.props,r=n.addToGallery,o=n.allowedTypes,i=n.mediaUpload,c=n.multiple,a=n.onError,l=n.onSelect,s=n.value;if(c)if(r){var u=void 0===s?[]:s;t=function(e){l(u.concat(e))}}else t=l;else t=function(e){var t=Object(V.a)(e,1)[0];return l(t)};i({allowedTypes:o,filesList:e,onFileChange:t,onError:a})}},{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,i=n.className,c=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,f=n.mediaPreview,p=n.notices,h=n.onSelectURL,m=n.mediaUpload,g=n.children,v=s.instructions,O=s.title;if(m||h||(v=Object(U.__)("To edit this block, you need permission to upload media.")),void 0===v||void 0===O){var k=1===o.length,j=k&&"audio"===o[0],y=k&&"image"===o[0],_=k&&"video"===o[0];void 0===v&&m&&(v=Object(U.__)("Upload a media file or pick one from your media library."),j?v=Object(U.__)("Upload an audio file, pick one from your media library, or add one with a URL."):y?v=Object(U.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(v=Object(U.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(U.__)("Media"),j?O=Object(U.__)("Audio"):y?O=Object(U.__)("Image"):_&&(O=Object(U.__)("Video")))}var C=b()("block-editor-media-placeholder",i,{"is-appender":a});return Object(d.createElement)(H.Placeholder,{icon:c,label:O,instructions:v,className:C,notices:p,onClick:t,onDoubleClick:u,preview:f},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)(H.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(H.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(U.__)("Cancel"),isLink:!0,onClick:e},Object(U.__)("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)(H.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isSecondary:!0},Object(U.__)("Insert from URL")),t&&Object(d.createElement)(Ic,{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,i=void 0===o?[]:o,c=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,f=t.value,h=void 0===f?{}:f,m=Object(d.createElement)(hc,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:i,value:Object(p.isArray)(h)?h.map((function(e){return e.id})):h.id,render:function(e){var t=e.open;return Object(d.createElement)(H.Button,{isSecondary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(U.__)("Media Library"))}});if(a&&c)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(H.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)(H.Button,{isSecondary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(U.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(H.FormFileUpload,{isSecondary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(U.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(m)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&Ec()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(mc,null,this.renderDropZone())):Object(d.createElement)(mc,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(d.Component),Tc=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),xc=Object(h.compose)(Tc,Object(H.withFilters)("editor.MediaPlaceholder"))(Bc),Nc=Object(d.forwardRef)((function(e,t){var n=e.onChange,r=e.className,o=Object(M.a)(e,["onChange","className"]);return Object(d.createElement)(To.a,Object(u.a)({ref:t,className:b()("block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))}));function Lc(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(h.useInstanceId)(Lc),i=r||Object(U.sprintf)(Object(U._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)("span",{className:"screen-reader-text",id:"rbc-desc-".concat(o)},i))}var Ac=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,i=e.renderDefaultControl,c=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(U.__)("All")}:s,f=e.viewports,b=void 0===f?[{id:"small",label:Object(U.__)("Small screens")},{id:"medium",label:Object(U.__)("Medium screens")},{id:"large",label:Object(U.__)("Large screens")}]:f;if(!t||!n||!i)return null;var p=r||Object(U.sprintf)(Object(U.__)("Use the same %s on all screensizes."),n),h=Object(U.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),m=i(Object(d.createElement)(Lc,{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)(H.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:p,checked:!l,onChange:o,help:h}),!l&&Object(d.createElement)("div",{className:"block-editor-responsive-block-control__group block-editor-responsive-block-control__group--default"},m),l&&Object(d.createElement)("div",{className:"block-editor-responsive-block-control__group block-editor-responsive-block-control__group--responsive",hidden:!l},c?c(b):b.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},i(Object(d.createElement)(Lc,{property:n,viewport:e}),e))})))))},Rc=[ct.rawShortcut.primary("z"),ct.rawShortcut.primaryShift("z"),ct.rawShortcut.primary("y")],Pc=Object(d.createElement)(H.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Rc.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),Mc=function(){return Pc},Dc=n(37);function Fc(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(Dc.createBlobURL)(e),'">')})).join("")}var Uc={position:"bottom left"},Hc=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(H.Toolbar,null,["bold","italic","link"].map((function(e){return Object(d.createElement)(H.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(H.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(H.DropdownMenu,{icon:!1,label:Object(U.__)("More rich text controls"),controls:Object(p.orderBy)(e.map((function(e){return Object(V.a)(e,1)[0].props})),"title"),popoverProps:Uc})}))))},Vc=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(H.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(Hc,null)):Object(d.createElement)(et,null,Object(d.createElement)(Hc,null))},zc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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)(H.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(B.a)({},ct.rawShortcut[n](t),this.onUse)})}}]),t}(d.Component);function Kc(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(M.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=ct.displayShortcut[r](o)),Object(d.createElement)(H.Fill,{name:c},Object(d.createElement)(H.ToolbarButton,Object(u.a)({},i,{shortcut:t})))}var Gc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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}}]),t}(d.Component);function Wc(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var qc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).ref=Object(d.createRef)(),e.onEnter=e.onEnter.bind(Object(w.a)(e)),e.onSplit=e.onSplit.bind(Object(w.a)(e)),e.onPaste=e.onPaste.bind(Object(w.a)(e)),e.onDelete=e.onDelete.bind(Object(w.a)(e)),e.inputRule=e.inputRule.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"onEnter",value:function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=this.props,a=o.onReplace,l=o.onSplit,s=o.multiline,u=o.markAutomaticChange,d=a&&l;if(a){var f=Object(i.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),b=Object(i.findTransform)(f,(function(e){return e.regExp.test(t.text)}));b&&(a([b.transform({content:t.text})]),u())}s?r?n(Object(c.insert)(t,"\n")):d&&Object(c.__unstableIsEmptyLine)(t)?this.onSplit(t):n(Object(c.__unstableInsertLineSeparator)(t)):r||!d?n(Object(c.insert)(t,"\n")):this.onSplit(t)}},{key:"onDelete",value:function(e){var t=e.value,n=e.isReverse,r=this.props,o=r.onMerge,i=r.onRemove;o&&o(!n),i&&Object(c.isEmpty)(t)&&n&&i(!n)}},{key:"onPaste",value:function(e){var t=e.value,n=e.onChange,r=e.html,o=e.plainText,a=e.files,l=e.activeFormats,s=this.props,u=s.onReplace,d=s.onSplit,f=s.tagName,b=s.canUserUseUnfilteredHTML,p=s.multiline,h=s.__unstableEmbedURLOnPaste;if(a&&a.length&&!r){var m=Object(i.pasteHandler)({HTML:Fc(a),mode:"BLOCKS",tagName:f});return window.console.log("Received items:\n\n",a),void(u&&Object(c.isEmpty)(t)?u(m):this.onSplit(t,m))}var g=u&&d?"AUTO":"INLINE";h&&Object(c.isEmpty)(t)&&Object(at.isURL)(o.trim())&&(g="BLOCKS");var v=Object(i.pasteHandler)({HTML:r,plainText:o,mode:g,tagName:f,canUserUseUnfilteredHTML:b});if("string"==typeof v){var O=Object(c.create)({html:v});if(l.length)for(var k=O.formats.length;k--;)O.formats[k]=[].concat(Object(P.a)(l),Object(P.a)(O.formats[k]||[]));p&&(O=Object(c.replace)(O,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,O))}else v.length>0&&(u&&Object(c.isEmpty)(t)?u(v):this.onSplit(t,v))}},{key:"onSplit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.props,r=n.onReplace,o=n.onSplit,i=n.__unstableOnSplitMiddle,a=n.multiline;if(r&&o){var l=[],s=Object(c.split)(e),u=Object(V.a)(s,2),d=u[0],f=u[1],b=t.length>0,p=Wc(a);b&&Object(c.isEmpty)(d)||l.push(o(Object(c.toHTMLString)({value:d,multilineTag:p}))),b?l.push.apply(l,Object(P.a)(t)):i&&l.push(i()),!b&&i&&Object(c.isEmpty)(f)||l.push(o(Object(c.toHTMLString)({value:f,multilineTag:p})));var h=b?l.length-1:1;r(l,h)}}},{key:"inputRule",value:function(e,t){var n=this.props,r=n.onReplace,o=n.markAutomaticChange;if(r){var a=e.start,l=e.text;if(" "===l.slice(a-1,a)){var s=l.slice(0,a).trim(),u=Object(i.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),d=Object(i.findTransform)(u,(function(e){var t=e.prefix;return s===t}));if(d){var f=t(Object(c.slice)(e,a,l.length));r([d.transform(f)]),o()}}}}},{key:"getAllowedFormats",value:function(){var e=this.props,t=e.allowedFormats,n=e.formattingControls;if(t||n)return t||(Ec()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.tagName,o=t.value,a=t.onChange,l=t.selectionStart,s=t.selectionEnd,f=t.onSelectionChange,p=t.multiline,h=t.inlineToolbar,m=t.wrapperClassName,g=t.className,v=t.autocompleters,O=t.onReplace,k=t.isCaretWithinFormattedText,j=t.onEnterFormattedText,y=t.onExitFormattedText,_=t.isSelected,C=t.onCreateUndoLevel,E=t.markAutomaticChange,S=t.didAutomaticChange,w=t.undo,I=t.placeholder,B=t.keepPlaceholderOnFocus,T=(t.allowedFormats,t.withoutInteractiveFormatting),x=(t.onRemove,t.onMerge,t.onSplit,t.canUserUseUnfilteredHTML,t.instanceId,t.start),N=t.reversed,L=t.style,A=t.preserveWhiteSpace,R=t.disabled,P=Object(M.a)(t,["children","tagName","value","onChange","selectionStart","selectionEnd","onSelectionChange","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","isCaretWithinFormattedText","onEnterFormattedText","onExitFormattedText","isSelected","onCreateUndoLevel","markAutomaticChange","didAutomaticChange","undo","placeholder","keepPlaceholderOnFocus","allowedFormats","withoutInteractiveFormatting","onRemove","onMerge","onSplit","canUserUseUnfilteredHTML","instanceId","start","reversed","style","preserveWhiteSpace","disabled"]),D=Wc(p),F=this.getAllowedFormats(),U=!F||F.length>0,H=o,V=a;Array.isArray(o)&&(H=i.children.toHTML(o),V=function(e){return a(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var z=Object(d.createElement)(c.__experimentalRichText,Object(u.a)({},P,{ref:this.ref,value:H,onChange:V,selectionStart:l,selectionEnd:s,onSelectionChange:f,tagName:r,className:b()("block-editor-rich-text__editable",g,{"is-selected":_,"keep-placeholder-on-focus":B}),placeholder:I,allowedFormats:F,withoutInteractiveFormatting:T,onEnter:this.onEnter,onDelete:this.onDelete,onPaste:this.onPaste,__unstableIsSelected:_,__unstableInputRule:this.inputRule,__unstableMultilineTag:D,__unstableIsCaretWithinFormattedText:k,__unstableOnEnterFormattedText:j,__unstableOnExitFormattedText:y,__unstableOnCreateUndoLevel:C,__unstableMarkAutomaticChange:E,__unstableDidAutomaticChange:S,__unstableUndo:w,style:L,preserveWhiteSpace:A,disabled:R,start:x,reversed:N}),(function(t){var r=t.isSelected,o=t.value,i=t.onChange,c=t.Editable;return Object(d.createElement)(d.Fragment,null,n&&n({value:o,onChange:i}),r&&U&&Object(d.createElement)(Vc,{inline:h,anchorRef:e.ref.current}),r&&Object(d.createElement)(Mc,null),Object(d.createElement)(Me,{onReplace:O,completers:v,record:o,onChange:i,isSelected:r},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(c,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:x,reversed:N,onKeyDown:r})})))}));return m?(Ec()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:b()("block-editor-rich-text",m)},z)):z}}]),t}(d.Component),$c=Object(h.compose)([h.withInstanceId,$((function(e,t){var n=e.clientId,r=e.onCaretVerticalPositionChange,o=e.isSelected;return"web"===d.Platform.OS?{clientId:n}:{clientId:n,blockIsSelected:void 0!==t.isSelected?t.isSelected:o,onCaretVerticalPositionChange:r}})),Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,c=void 0===o?r:o,a=t.isSelected,l=e("core/block-editor"),u=l.isCaretWithinFormattedText,f=l.getSelectionStart,b=l.getSelectionEnd,p=l.getSettings,h=l.didAutomaticChange,m=l.__unstableGetBlockWithoutInnerBlocks,g=l.isMultiSelecting,v=l.hasMultiSelection,O=f(),k=b(),j=p().__experimentalCanUserUseUnfilteredHTML;void 0===a?a=O.clientId===n&&O.attributeKey===c:a&&(a=O.clientId===n);var y={};if("native"===d.Platform.OS){var _=n&&m(n);y={shouldBlurOnUnmount:_&&a&&Object(i.isUnmodifiedDefaultBlock)(_)}}return Object(s.a)({canUserUseUnfilteredHTML:j,isCaretWithinFormattedText:u(),selectionStart:a?O.offset:void 0,selectionEnd:a?k.offset:void 0,isSelected:a,didAutomaticChange:h(),disabled:g()||v()},y)})),Object(g.withDispatch)((function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=e("core/block-editor"),a=c.__unstableMarkLastChangeAsPersistent,l=c.enterFormattedText,s=c.exitFormattedText,u=c.selectionChange;return{onCreateUndoLevel:a,onEnterFormattedText:l,onExitFormattedText:s,onSelectionChange:function(e,t){u(n,i,e,t)},markAutomaticChange:c.__unstableMarkAutomaticChange,undo:e("core/editor").undo}}))])(qc);$c.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(M.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=Wc(r);!t&&c&&(t="<".concat(c,"></").concat(c,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},$c.isEmpty=function(e){return!e||0===e.length},$c.Content.defaultProps={format:"string",value:""};var Yc=$c,Xc=Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(d.createElement)(H.Path,{d:"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"})),Zc=Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{d:"M6.5 1v21.5l6-6.5H21L6.5 1zm5.1 13l-3.1 3.4V5.9l7.8 8.1h-4.7z"}));var Jc=function(){var e=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),t=Object(g.useDispatch)("core/block-editor").setNavigationMode;if(!Object(h.useViewportMatch)("medium"))return null;var n=function(e){t("edit"!==e)};return Object(d.createElement)(H.Dropdown,{renderToggle:function(t){var n=t.isOpen,r=t.onToggle;return Object(d.createElement)(H.Button,{icon:e?Zc:Xc,"aria-expanded":n,onClick:r,label:Object(U.__)("Tools")})},renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(H.NavigableMenu,{role:"menu","aria-label":Object(U.__)("Tools")},Object(d.createElement)(H.MenuItemsChoice,{value:e?"select":"edit",onSelect:n,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Xc,Object(U.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Zc,Object(U.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(U.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})},Qc=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(w.a)(e)),e.submitLink=e.submitLink.bind(Object(w.a)(e)),e.state={expanded:!1},e}return Object(I.a)(t,e),Object(C.a)(t,[{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(U.__)("Edit link"):Object(U.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(H.Button,{icon:"admin-links",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)(H.Button,{className:"block-editor-url-input__back",icon:"arrow-left-alt",label:Object(U.__)("Close"),onClick:this.toggle}),Object(d.createElement)(Oc,{value:t||"",onChange:n}),Object(d.createElement)(H.Button,{icon:"editor-break",label:Object(U.__)("Submit"),type:"submit"}))))}}]),t}(d.Component),ea=["noreferrer","noopener"],ta=Object(d.createElement)(H.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(H.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(H.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)(H.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),na=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,i=void 0===o?"image":o,c=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,f=Object(d.useState)(!1),b=Object(V.a)(f,2),h=b[0],m=b[1],g=Object(d.useCallback)((function(){m(!0)})),v=Object(d.useState)(!1),O=Object(V.a)(v,2),k=O[0],j=O[1],y=Object(d.useState)(null),_=Object(V.a)(y,2),C=_[0],E=_[1],S=Object(d.useRef)(null),w=function(e){e.stopPropagation()},I=function(e){[ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},B=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||E(""),j(!0)})),T=Object(d.useCallback)((function(){j(!1)})),x=Object(d.useCallback)((function(){E(null),T(),m(!1)})),N=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(ea,(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},L=Object(d.useCallback)((function(){return function(e){var t=S.current;t&&t.contains(e.target)||(m(!1),E(null),T())}})),A=Object(d.useCallback)((function(){return function(e){C&&n({href:C}),T(),E(null),e.preventDefault()}})),R=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),P=function(){return[{linkDestination:"media",title:Object(U.__)("Media File"),url:"image"===i?c:void 0,icon:ta},{linkDestination:"attachment",title:Object(U.__)("Attachment Page"),url:"image"===i?a:void 0,icon:Object(d.createElement)(H.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(H.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(H.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"}))}]},M=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(H.ToggleControl,{label:Object(U.__)("Open in New Tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?N(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(H.TextControl,{label:Object(U.__)("Link Rel"),value:N(u)||"",onChange:function(e){n({rel:e})},onKeyPress:w,onKeyDown:I}),Object(d.createElement)(H.TextControl,{label:Object(U.__)("Link CSS Class"),value:s||"",onKeyPress:w,onKeyDown:I,onChange:function(e){n({linkClass:e})}})),D=null!==C?C:r,F=(Object(p.find)(P(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(H.Button,{icon:"admin-links",className:"components-toolbar__control",label:r?Object(U.__)("Edit link"):Object(U.__)("Insert link"),"aria-expanded":h,onClick:g}),h&&Object(d.createElement)(wc,{onFocusOutside:L(),onClose:x,renderSettings:function(){return M},additionalControls:!D&&Object(d.createElement)(H.NavigableMenu,null,Object(p.map)(P(),(function(e){return Object(d.createElement)(H.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;E(null),t=e.url,o=P(),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)(wc.LinkEditor,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",value:D,onChangeInputValue:E,onKeyDown:I,onKeyPress:w,onSubmit:A(),autocompleteRef:S}),r&&!k&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(wc.LinkViewer,{className:"editor-format-toolbar__link-container-content block-editor-format-toolbar__link-container-content",onKeyPress:w,url:r,onEditLinkClick:B,urlLabel:F}),Object(d.createElement)(H.Button,{icon:"no",label:Object(U.__)("Remove link"),onClick:R}))))},ra=Object(H.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),oa=ra.Fill,ia=ra.Slot;oa.Slot=ia;var ca=oa,aa=Object(H.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),la=aa.Fill,sa=aa.Slot;la.Slot=sa;var ua=la,da=function(e){var t=e.label,n=e.onPress;return Object(d.createElement)(H.Button,{onClick:n},t)},fa=function(e){var t=e.children;return Object(d.createElement)(d.Fragment,null,t)},ba=[{name:"About",content:'\x3c!-- wp:paragraph {"align":"left"} --\x3e<p class="has-text-align-left">Visitors will want to know who is on the other side of the page. Use this space to write about yourself, your site, your business, or anything you want. Use the testimonials below to quote others, talking about the same thing – in their own words.</p>\x3c!-- /wp:paragraph --\x3e'},{name:"Contact",content:'\x3c!-- wp:paragraph {"align":"left"} --\x3e<p class="has-text-align-left">Let\'s talk 👋 Don\'t hesitate to reach out with the contact information below, or send a message using the form.</p>\x3c!-- /wp:paragraph --\x3e'}],pa=Object(g.withDispatch)((function(e){var t=e("core/editor").resetEditorBlocks;return{resetContent:function(e){var n=Object(i.parse)(e);return t(n)}}}))((function(e){var t=e.templates,n=void 0===t?ba:t,r=e.resetContent;return Object(d.createElement)(ci,null,Object(d.createElement)(fa,{style:{flexDirection:"row"}},n.map((function(e){var t=e.name,n=e.content;return Object(d.createElement)(da,{key:t,onPress:function(){return r(n)},label:t})}))))})),ha=function(){return Object(g.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,n=e("core/block-editor"),r=n.getBlockOrder,o=n.getBlock,c=(0,n.getSettings)().__experimentalEnablePageTemplates,a=r(),l=0===a.length,s=!l&&o(a[0]),u=1===a.length&&Object(i.isUnmodifiedDefaultBlock)(s),d=l||u,f="page"===t();return c&&d&&f}),[])},ma=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=ha();return Object(d.createElement)(e,Object(u.a)({},t,{showPageTemplatePicker:n}))}}),"__experimentalWithPageTemplatePickerVisible"),ga=Object(g.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(d.createElement)(H.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){Uo(t).focus()}},Object(U.__)("Skip to the selected block"))})),va=n(144),Oa=n.n(va);function ka(e,t,n){var r=new Oa.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var ja=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock,o=e("core/blocks").getBlockStyles,c=r(n),a=Object(i.getBlockType)(c.name);return{block:c,className:c.attributes.className||"",styles:o(c.name),type:a}})),Object(g.withDispatch)((function(e,t){var n=t.clientId;return{onChangeClassName:function(t){e("core/block-editor").updateBlockAttributes(n,{className:t})}}}))])((function(e){var t=e.styles,n=e.className,r=e.onChangeClassName,o=e.type,c=e.block,a=e.onSwitch,l=void 0===a?p.noop:a,u=e.onHoverClassName,f=void 0===u?p.noop:u;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(U._x)("Default","block style"),isDefault:!0}].concat(Object(P.a)(t)));var h=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new Oa.a(t).values()[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var a=i.value;if(-1!==a.indexOf("is-style-")){var l=a.substring(9),s=Object(p.find)(e,{name:l});if(s)return s}}}catch(e){r=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return Object(p.find)(e,"isDefault")}(t,n);function m(e){var t=ka(n,h,e);r(t),f(null),l()}return Object(d.createElement)("div",{className:"block-editor-block-styles"},t.map((function(e){var t=ka(n,h,e);return Object(d.createElement)("div",{key:e.name,className:b()("block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return m(e)},onKeyDown:function(t){ct.ENTER!==t.keyCode&&ct.SPACE!==t.keyCode||(t.preventDefault(),m(e))},onMouseEnter:function(){return f(t)},onMouseLeave:function(){return f(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(d.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(d.createElement)(fi,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Object(s.a)({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(d.createElement)("div",{className:"block-editor-block-styles__item-label"},e.label||e.name))})))})),ya=n(97);var _a=Object(g.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(ya.count)(Object(i.serialize)(t),"words");return Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(d.createElement)(tt,{icon:Object(d.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(H.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(U.sprintf)(Object(U._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(U.sprintf)(Object(U._n)("%d word","%d words",n),n))))}));function Ca(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,i=n.styles,c=Object(d.useMemo)((function(){return[{label:Object(U.__)("Not set"),value:""}].concat(Object(P.a)(i.map((function(e){return{label:e.label,value:e.name}}))))}),[i]),a=Object(d.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(d.createElement)(H.SelectControl,{options:c,value:r||"",label:Object(U.__)("Default Style"),onChange:a})}var Ea=Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,c=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(i.getBlockType)(l),u=a&&c(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,c=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(d.createElement)(_a,null);var s=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(hi,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(H.PanelBody,{title:Object(U.__)("Styles"),initialOpen:!1},Object(d.createElement)(ja,{clientId:o}),Object(d.createElement)(Ca,{blockName:t.name}))),Object(d.createElement)(ye.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,Object(d.createElement)(H.__experimentalSlotFillConsumer,null,(function(e){return(0,e.hasFills)(ac.slotName)&&Object(d.createElement)(H.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(U.__)("Advanced"),initialOpen:!1},Object(d.createElement)(ac.Slot,{bubblesVirtually:!0}))}))),Object(d.createElement)(ga,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(U.__)("No block selected.")):null}));function Sa(e,t,n,r,o,i,c,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===c?a?"right":"left":"up":"down"===e?"horizontal"===c?a?"left":"right":"down":null};return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(U.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(U.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(U.sprintf)(Object(U._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,i);if(o>0&&!r)return Object(U.sprintf)(Object(U._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,i)}(e,n,r,o,i):r&&o?Object(U.sprintf)(Object(U.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d %3$s to position %4$d"),t,l,s("down"),l+1):i>0&&o?Object(U.sprintf)(Object(U.__)("Block %1$s is at the end of the content and can’t be moved %2$s"),t,s("down")):i<0&&!r?Object(U.sprintf)(Object(U.__)("Move %1$s block from position %2$d %3$s to position %4$d"),t,l,s("up"),l-1):i<0&&r?Object(U.sprintf)(Object(U.__)("Block %1$s is at the beginning of the content and can’t be moved %2$s"),t,s("up")):void 0}var wa=Object(d.createElement)(H.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(H.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Ia=Object(d.createElement)(H.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(H.Path,{d:"M4.5 9l5.6-5.7 1.4 1.5L7.3 9l4.2 4.2-1.4 1.5L4.5 9z"})),Ba=Object(d.createElement)(H.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(H.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Ta=Object(d.createElement)(H.SVG,{width:"18",height:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(H.Path,{d:"M13.5 9L7.9 3.3 6.5 4.8 10.7 9l-4.2 4.2 1.4 1.5L13.5 9z"})),xa=Object(d.createElement)(H.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(d.createElement)(H.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"})),Na=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,i=t.getTemplateLock,c=Object(p.castArray)(n),a=1===c.length?o(c[0]):null,l=a?i(a):null;return{index:r(c[0],a),srcRootClientId:a,isDraggable:1===c.length&&"all"!==l}}),[n]),o=r.srcRootClientId,i=r.index,c=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()}}),[]),!c)return null;var f=Object(p.castArray)(n),b="block-".concat(f[0]),h={type:"block",srcIndex:i,srcClientId:f[0],srcRootClientId:o};return Object(d.createElement)(H.Draggable,{elementId:b,transferData:h,onDragStart:function(){s(),a.current=!0},onDragEnd:function(){u(),a.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})}))},La=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(w.a)(e)),e.onBlur=e.onBlur.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.onMoveUp,n=e.onMoveDown,r=e.__experimentalOrientation,o=e.isRTL,i=e.isFirst,c=e.isLast,a=e.clientIds,l=e.blockType,s=e.firstIndex,u=e.isLocked,f=e.instanceId,h=e.isHidden,m=e.rootClientId,g=this.state.isFocused,v=Object(p.castArray)(a).length;if(u||i&&c&&!m)return null;var O=function(e){return"up"===e?"horizontal"===r?o?Ta:Ia:wa:"down"===e?"horizontal"===r?o?Ia:Ta:Ba:null},k=function(e){return"up"===e?"horizontal"===r?o?"right":"left":"up":"down"===e?"horizontal"===r?o?"left":"right":"down":null};return Object(d.createElement)(H.ToolbarGroup,{className:b()("block-editor-block-mover",{"is-visible":g||!h,"is-horizontal":"horizontal"===r})},Object(d.createElement)(H.Button,{className:"block-editor-block-mover__control",onClick:i?null:t,icon:O("up"),label:Object(U.sprintf)(Object(U.__)("Move %s"),k("up")),"aria-describedby":"block-editor-block-mover__up-description-".concat(f),"aria-disabled":i,onFocus:this.onFocus,onBlur:this.onBlur}),Object(d.createElement)(Na,{clientIds:a},(function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(d.createElement)(H.Button,{icon:xa,className:"block-editor-block-mover__control-drag-handle block-editor-block-mover__control","aria-hidden":"true",tabIndex:"-1",onDragStart:t,onDragEnd:n,draggable:!0})})),Object(d.createElement)(H.Button,{className:"block-editor-block-mover__control",onClick:c?null:n,icon:O("down"),label:Object(U.sprintf)(Object(U.__)("Move %s"),k("down")),"aria-describedby":"block-editor-block-mover__down-description-".concat(f),"aria-disabled":c,onFocus:this.onFocus,onBlur:this.onBlur}),Object(d.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(f),className:"block-editor-block-mover__description"},Sa(v,l&&l.title,s,i,c,-1,r,o)),Object(d.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(f),className:"block-editor-block-mover__description"},Sa(v,l&&l.title,s,i,c,1,r,o)))}}]),t}(d.Component),Aa=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockRootClientId,s=r.getBlockOrder,u=Object(p.castArray)(n),d=Object(p.first)(u),f=o(d),b=l(Object(p.first)(u)),h=s(b),m=c(d,b),g=c(Object(p.last)(u),b),v=(0,e("core/block-editor").getSettings)().isRTL;return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isRTL:v,isFirst:0===m,isLast:g===h.length-1}})),Object(g.withDispatch)((function(e,t){var n=t.clientIds,r=t.rootClientId,o=e("core/block-editor"),i=o.moveBlocksDown,c=o.moveBlocksUp;return{onMoveDown:Object(p.partial)(i,n,r),onMoveUp:Object(p.partial)(c,n,r)}})),h.withInstanceId)(La),Ra=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(w.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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,i=n||r;e.target===this.container&&i&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(u.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(d.Component),Pa=Object(h.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}}))])(Ra);var Ma=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.canInsertBlockType,o=n.getBlockRootClientId,c=n.getBlocksByClientId,a=n.getTemplateLock,l=e("core/blocks").getDefaultBlockName,s=c(t.clientIds),u=o(t.clientIds[0]);return{blocks:s,canDuplicate:Object(p.every)(s,(function(e){return!!e&&Object(i.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,c=t.blocks,a=e("core/block-editor"),l=a.removeBlocks,s=a.replaceBlocks,u=a.duplicateBlocks,d=a.insertAfterBlock,f=a.insertBeforeBlock;return{onDuplicate:function(){return u(o)},onRemove:function(){l(o)},onInsertBefore:function(){f(Object(p.first)(Object(p.castArray)(o)))},onInsertAfter:function(){d(Object(p.last)(Object(p.castArray)(o)))},onGroup:function(){if(c.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(c,e);t&&s(o,t)}},onUngroup:function(){if(c.length){var e=c[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})}));var Da=Object(h.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,c=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:c(n),blockType:l?Object(i.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,c=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(i.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(U.__)("Edit as HTML"):Object(U.__)("Edit visually");return Object(d.createElement)(H.MenuItem,{className:"block-editor-block-settings-menu__control",onClick:r,icon:"html"},!c&&s)}));function Fa(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(U.__)("Convert to Blocks");return Object(d.createElement)(H.MenuItem,{className:"block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions"},!r&&o)}var Ua=Object(h.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(i.rawHandler)({HTML:Object(i.getBlockContent)(n)}))}}})))(Fa),Ha=Object(h.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(i.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(i.rawHandler)({HTML:Object(i.serialize)(n)}))}}})))(Fa),Va={className:"block-editor-block-settings-menu__popover",position:"bottom right"};var za=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0],i=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")}}),[]);return Object(d.createElement)(Ma,{clientIds:t},(function(e){var n=e.canDuplicate,c=e.canInsertDefaultBlock,a=e.isLocked,l=e.onDuplicate,s=e.onInsertAfter,u=e.onInsertBefore,f=e.onRemove;return Object(d.createElement)(H.Toolbar,null,Object(d.createElement)(H.DropdownMenu,{icon:"ellipsis",label:Object(U.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:Va},(function(e){var b=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(H.MenuGroup,null,Object(d.createElement)(ca.Slot,{fillProps:{onClose:b}}),1===r&&Object(d.createElement)(Ha,{clientId:o}),1===r&&Object(d.createElement)(Ua,{clientId:o}),n&&Object(d.createElement)(H.MenuItem,{className:"block-editor-block-settings-menu__control",onClick:Object(p.flow)(b,l),icon:"admin-page",shortcut:i.duplicate},Object(U.__)("Duplicate")),c&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(H.MenuItem,{className:"block-editor-block-settings-menu__control",onClick:Object(p.flow)(b,u),icon:"insert-before",shortcut:i.insertBefore},Object(U.__)("Insert Before")),Object(d.createElement)(H.MenuItem,{className:"block-editor-block-settings-menu__control",onClick:Object(p.flow)(b,s),icon:"insert-after",shortcut:i.insertAfter},Object(U.__)("Insert After"))),1===r&&Object(d.createElement)(Da,{clientId:o,onToggle:b}),Object(d.createElement)(ua.Slot,{fillProps:{clientIds:t,onClose:b}})),Object(d.createElement)(H.MenuGroup,null,!a&&Object(d.createElement)(H.MenuItem,{className:"block-editor-block-settings-menu__control",onClick:Object(p.flow)(b,f),icon:"trash",shortcut:i.remove},Object(U._n)("Remove Block","Remove Blocks",r))))})))}))},Ka=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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,c=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var l,u=a?n[0]:null,f=a?Object(i.getBlockType)(u.name):null,b=Object(p.mapKeys)(o,(function(e){return e.name})),h=Object(p.orderBy)(Object(p.filter)(Object(i.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,g=Object(i.getBlockType)(m);l=g.icon}else l="layout";return c||h.length?Object(d.createElement)(H.Dropdown,{position:"bottom right",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(U.__)("Change block type or style"):Object(U.sprintf)(Object(U._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(d.createElement)(H.Toolbar,null,Object(d.createElement)(H.Button,{className:"block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,onKeyDown:function(e){r||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0,icon:Object(d.createElement)(d.Fragment,null,Object(d.createElement)(tt,{icon:l,showColors:!0}),Object(d.createElement)(H.SVG,{className:"block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(H.Path,{d:"M6.5 8.9c.6-.6 1.4-.9 2.2-.9h6.9l-1.3 1.3 1.4 1.4L19.4 7l-3.7-3.7-1.4 1.4L15.6 6H8.7c-1.4 0-2.6.5-3.6 1.5l-2.8 2.8 1.4 1.4 2.8-2.8zm13.8 2.4l-2.8 2.8c-.6.6-1.3.9-2.1.9h-7l1.3-1.3-1.4-1.4L4.6 16l3.7 3.7 1.4-1.4L8.4 17h6.9c1.3 0 2.6-.5 3.5-1.5l2.8-2.8-1.3-1.4z"})))}))},renderContent:function(t){var o=t.onClose;return Object(d.createElement)(d.Fragment,null,(c||0!==h.length)&&Object(d.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(d.createElement)(H.PanelBody,{title:Object(U.__)("Block Styles"),initialOpen:!0},Object(d.createElement)(ja,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==h.length&&Object(d.createElement)(H.PanelBody,{title:Object(U.__)("Transform To:"),initialOpen:!0},Object(d.createElement)(pi,{items:h.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(U.__)("Preview")),Object(d.createElement)(fi,{viewportWidth:500,blocks:f.example?Object(i.getBlockFromExample)(u.name,{attributes:Object(s.a)({},f.example.attributes,{className:a}),innerBlocks:f.example.innerBlocks}):Object(i.cloneBlock)(u,{className:a})})))}}):Object(d.createElement)(H.Toolbar,null,Object(d.createElement)(H.Button,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",label:Object(U.__)("Block icon"),icon:Object(d.createElement)(tt,{icon:l,showColors:!0})}))}}]),t}(d.Component),Ga=Object(h.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,i=r.getBlockRootClientId,c=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=i(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:c(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(i.switchToBlockType)(n,r))}}})))(Ka);var Wa=Object(g.withSelect)((function(e){var t=e("core/block-editor").getMultiSelectedBlockClientIds();return{isMultiBlockSelection:t.length>1,selectedBlockClientIds:t}}))((function(e){var t=e.isMultiBlockSelection,n=e.selectedBlockClientIds;return t?Object(d.createElement)(Ga,{key:"switcher",clientIds:n}):null}));function qa(e){var t=e.moverDirection,n=e.hasMovers,r=void 0===n||n,o=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockMode,r=t.getSelectedBlockClientIds,o=t.isBlockValid,i=r();return{blockClientIds:i,isValid:1===i.length?o(i[0]):null,mode:1===i.length?n(i[0]):null}}),[]),i=o.blockClientIds,c=o.isValid,a=o.mode;return 0===i.length?null:i.length>1?Object(d.createElement)("div",{className:"block-editor-block-toolbar"},r&&Object(d.createElement)(Aa,{clientIds:i,__experimentalOrientation:t}),Object(d.createElement)(Wa,null),Object(d.createElement)(za,{clientIds:i})):Object(d.createElement)("div",{className:"block-editor-block-toolbar"},r&&Object(d.createElement)(Aa,{clientIds:i,__experimentalOrientation:t}),"visual"===a&&c&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Ga,{clientIds:i}),Object(d.createElement)(Ye.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(et.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(za,{clientIds:i}))}var $a=Object(h.compose)([Object(g.withDispatch)((function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=e("core/block-editor"),u=s.removeBlocks,d=s.replaceBlocks,f=l().__experimentalCanUserUseUnfilteredHTML;return{handler:function(e){var t=c();if(0!==t.length&&(a()||!Object(vo.documentHasSelection)())){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){var n=o(t),r=Object(i.serialize)(n);e.clipboardData.setData("text/plain",r),e.clipboardData.setData("text/html",r)}if("cut"===e.type)u(t);else if("paste"===e.type){var l=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="",i="";try{o=t.getData("text/plain"),i=t.getData("text/html")}catch(e){try{i=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,i=t.size;Object(p.find)(r,{name:n,type:o,size:i})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!i&&(i=r.map((function(e){return'<img src="'.concat(Object(Dc.createBlobURL)(e),'">')})).join(""),o=""),{html:i,plainText:o}}(e),s=l.plainText,b=l.html,h=Object(i.pasteHandler)({HTML:b,plainText:s,mode:"BLOCKS",canUserUseUnfilteredHTML:f});d(t,h)}}}}}))])((function(e){var t=e.children,n=e.handler;return Object(d.createElement)("div",{onCopy:n,onCut:n,onPaste:n},t)}));function Ya(){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,i=r.removeBlocks,c=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(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),c(Object(p.last)(t))}),[t,c]),{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(),i(t)}),[t,i]),{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}Ya.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(U.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(U.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(U.__)("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(U.__)("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(U.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(U.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selections",description:Object(U.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(U.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var Xa=Ya;function Za(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelecting:r()}}),[]),t=e.selectionEnd,n=e.isMultiSelecting;return Object(d.useEffect)((function(){if(t&&!n){var e=Fo(t);if(e){var r=Object(vo.getScrollContainer)(e);r&&it()(e,r,{onlyScrollIfNeeded:!0})}}}),[t,n]),null}var Ja=[ct.UP,ct.RIGHT,ct.DOWN,ct.LEFT,ct.ENTER,ct.BACKSPACE];var Qa=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(w.a)(e)),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(w.a)(e)),e.startTypingInTextField=e.startTypingInTextField.bind(Object(w.a)(e)),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(w.a)(e)),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(w.a)(e)),e.onKeyDown=Object(p.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(I.a)(t,e),Object(C.a)(t,[{key:"componentDidMount",value:function(){this.toggleEventBindings(this.props.isTyping)}},{key:"componentDidUpdate",value:function(e){this.props.isTyping!==e.isTyping&&this.toggleEventBindings(this.props.isTyping)}},{key:"componentWillUnmount",value:function(){this.toggleEventBindings(!1)}},{key:"toggleEventBindings",value:function(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",this.stopTypingOnSelectionUncollapse),document[t]("mousemove",this.stopTypingOnMouseMove)}},{key:"stopTypingOnMouseMove",value:function(e){var t=e.clientX,n=e.clientY;if(this.lastMouseMove){var r=this.lastMouseMove,o=r.clientX,i=r.clientY;o===t&&i===n||this.props.onStopTyping()}this.lastMouseMove={clientX:t,clientY:n}}},{key:"stopTypingOnSelectionUncollapse",value:function(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||this.props.onStopTyping()}},{key:"stopTypingOnEscapeKey",value:function(e){this.props.isTyping&&e.keyCode===ct.ESCAPE&&this.props.onStopTyping()}},{key:"startTypingInTextField",value:function(e){var t=this.props,n=t.isTyping,r=t.onStartTyping,o=e.type,i=e.target;n||!Object(vo.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(Ja,t)}(e))&&r()}},{key:"stopTypingOnNonTextField",value:function(e){var t=this;e.persist(),this.props.setTimeout((function(){var n=t.props,r=n.isTyping,o=n.onStopTyping,i=e.target;r&&!Object(vo.isTextField)(i)&&o()}))}},{key:"render",value:function(){var e=this.props.children;return Object(d.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(d.Component),el=Object(h.compose)([Object(g.withSelect)((function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}})),Object(g.withDispatch)((function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}})),h.withSafeTimeout])(Qa);function tl(){return Ec()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var nl=-1!==window.navigator.userAgent.indexOf("Trident"),rl=new Set([ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT]),ol=function(e){function t(){var e;return Object(_.a)(this,t),(e=Object(E.a)(this,Object(S.a)(t).apply(this,arguments))).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(w.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(w.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(w.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(w.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(w.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(w.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(w.a)(e)),e}return Object(I.a)(t,e),Object(C.a)(t,[{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(vo.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(vo.computeCaretRect)();if(n)if(this.caretRect)if(rl.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(vo.getScrollContainer)(this.ref.current);if(o){var i=o===document.body,c=i?window.scrollY:o.scrollTop,a=i?0:o.getBoundingClientRect().top,l=i?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===c&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=i?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:i?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 nl?this.props.children: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)}}]),t}(d.Component),il=Object(g.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(ol),cl=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,i=e.noCapture,c=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),a=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:c?void 0:"0",onFocus:function(){if(i.current)delete i.current;else if(n){var e=Uo(n);if(r){var t=vo.focus.tabbable.find(e);Object(p.last)(t).focus()}else e.focus()}else{a(!0);var c=vo.focus.tabbable.find(o.current);c.length&&(r?Object(p.last)(c).focus():Object(p.first)(c).focus())}},style:{position:"fixed"}})})),al=window,ll=al.getSelection,sl=al.getComputedStyle,ul=Object(p.overEvery)([vo.isTextField,vo.focus.tabbable.isTabbableIndex]);function dl(e,t,n){var r=vo.focus.focusable.find(n);return t&&(r=Object(p.reverse)(r)),r=r.slice(r.indexOf(e)+1),Object(p.find)(r,(function t(n,r,o){if(!vo.focus.tabbable.isTabbableIndex(n))return!1;if(Object(vo.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var i,c=1;(i=o[r+c])&&n.contains(i);c++)if(t(i,r+c,o))return!1;return!0}))}function fl(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,i=t.getPreviousBlockClientId,c=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,f=n(),b=r(),p=o();return{selectedBlockClientId:f,selectionStartClientId:b,selectionBeforeEndClientId:i(p||f),selectionAfterEndClientId:c(p||f),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d()}}function bl(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),i=Object(d.useRef)(),c=Object(d.useRef)(),a=Object(d.useRef)();var l=Object(g.useSelect)(fl),s=l.selectedBlockClientId,u=l.selectionStartClientId,f=l.selectionBeforeEndClientId,b=l.selectionAfterEndClientId,h=l.selectedFirstClientId,m=l.selectedLastClientId,v=l.hasMultiSelection,O=l.blocks,k=l.isNavigationMode,j=Object(g.useDispatch)("core/block-editor"),y=j.multiSelect,_=j.selectBlock,C=j.clearSelectedBlock;var E=s||u;return Object(d.createElement)("div",{className:"block-editor-writing-flow"},Object(d.createElement)(cl,{ref:r,selectedClientId:E,containerRef:n,noCapture:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,l=e.target,d=t===ct.UP,g=t===ct.DOWN,j=t===ct.LEFT,E=t===ct.RIGHT,S=t===ct.TAB,w=d||j,I=j||E,B=d||g,T=I||B,x=e.shiftKey,N=x||e.ctrlKey||e.altKey||e.metaKey,L=B?vo.isVerticalEdge:vo.isHorizontalEdge;if(k){var A=S&&x||d,R=S&&!x||g,P=A?f:b;if(R||A)if(P)e.preventDefault(),_(P);else if(S&&s){var M,D=Uo(s);(M=R?vo.focus.tabbable.findNext(D):vo.focus.tabbable.findPrevious(D))&&(e.preventDefault(),M.focus(),C())}}else{var F=s||u;if(S&&F){var U=Uo(F);if(x){if(l===U)return c.current=!0,void r.current.focus()}else{var H=vo.focus.tabbable.find(U);if(l===Object(p.last)(H))return c.current=!0,void o.current.focus()}}if(B?a.current||(a.current=Object(vo.computeCaretRect)()):a.current=null,!T)return ct.isKeyboardEvent.primary(e)&&(i.current=Object(vo.isEntirelySelected)(l)),void(ct.isKeyboardEvent.primary(e,"a")&&((l.isContentEditable?i.current:Object(vo.isEntirelySelected)(l))&&(y(Object(p.first)(O),Object(p.last)(O)),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}(l,t,N)){var V="rtl"===sl(l).direction?!w:w;if(x)(w&&f||!w&&b)&&(v||function(e,t){var r,o,i=dl(e,t,n.current);return!(i&&(r=e,o=i,r.closest("[data-block]")===o.closest("[data-block]")))}(l,w)&&L(l,w))&&(!function(e){var t=e?f:b;t&&y(u||s,t)}(w),e.preventDefault());else if(v)!function(e){var t=e?h:m;t&&_(t)}(w),e.preventDefault();else if(B&&Object(vo.isVerticalEdge)(l,w)){var z=dl(l,w,n.current);z&&(Object(vo.placeCaretAtVerticalEdge)(z,w,a.current),e.preventDefault())}else if(I&&ll().isCollapsed&&Object(vo.isHorizontalEdge)(l,V)){var K=dl(l,V,n.current);Object(vo.placeCaretAtHorizontalEdge)(K,V),e.preventDefault()}}}},onMouseDown:function(){a.current=null}},t),Object(d.createElement)(cl,{ref:o,selectedClientId:E,containerRef:n,noCapture:c,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=vo.focus.focusable.find(n.current),t=Object(p.findLast)(e,ul);t&&Object(vo.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}var pl=["left","center","right","wide","full"],hl=["wide","full"];function ml(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?pl:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(hl)):t}var gl=Object(h.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=ml(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(d.createElement)(Ye,{key:"align-controls"},Object(d.createElement)(Ve,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(i.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:r})),Object(d.createElement)(e,Object(u.a)({key:"edit"},t))]}}),"withToolbarControls"),vl=Object(h.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 c=ml(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(c,r)&&(a=Object(s.a)({},a,{"data-align":r})),Object(d.createElement)(e,Object(u.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])?e:(Object(i.hasBlockSupport)(e,"align")&&(e.attributes=Object(p.assign)(e.attributes,{align:{type:"string"}})),e)})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",vl),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",gl),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(i.getBlockSupport)(t,"align"),c=Object(i.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(ml(o,c),r)&&(e.className=b()("align".concat(r),e.className)),e}));var Ol=/[\s#]/g;var kl=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(ac,null,Object(d.createElement)(H.TextControl,{className:"html-anchor-control",label:Object(U.__)("HTML Anchor"),help:Object(d.createElement)(d.Fragment,null,Object(U.__)("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)(H.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(U.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Ol,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");Object(m.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])?e:(Object(i.hasBlockSupport)(e,"anchor")&&(e.attributes=Object(p.assign)(e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e)})),Object(m.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",kl),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var jl=Object(h.createHigherOrderComponent)((function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(ac,null,Object(d.createElement)(H.TextControl,{label:Object(U.__)("Additional CSS Class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(U.__)("Separate multiple classes with spaces.")}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function yl(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(i.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(i.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=Object(p.assign)(e.attributes,{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",jl),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(i.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(i.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(i.getSaveContent)(t,r),c=yl(o),a=yl(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(i.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(i.getBlockDefaultClassName)(t.name)].concat(Object(P.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e}));var _l=n(218),Cl=n.n(_l),El=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sl=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 i(){var e={line:n,column:r};return function(t){return t.position=new c(e),b(),t}}function c(e){this.start=e,this.end={line:n,column:r},this.source=t.source}c.prototype.content=e;var a=[];function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i;a.push(i)}function s(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){var t,n=[];for(b(),p(n);e.length&&"}"!==e.charAt(0)&&(t=E()||S());)!1!==t&&(n.push(t),p(n));return n}function f(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function b(){f(/^\s*/)}function p(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=i();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 c=e.slice(2,n-2);return r+=2,o(c),e=e.slice(n),r+=2,t({type:"comment",comment:c})}}function m(){var e=f(/^([^{]+)/);if(e)return wl(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=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=wl(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(El,""),value:n?wl(n[0]).replace(El,""):""});return f(/^[;\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 O(){for(var e,t=[],n=i();e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var k,j=C("import"),y=C("charset"),_=C("namespace");function C(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=i(),r=f(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function E(){if("@"===e[0])return function(){var e=i(),t=f(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=f(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var c=p();r=O();)c.push(r),c=c.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:c}):l("@keyframes missing '}'")}}()||function(){var e=i(),t=f(/^@media *([^{]+)/);if(t){var n=wl(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=i(),t=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:wl(t[1]),media:wl(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=wl(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 '}'")}}()||j()||y()||_()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=wl(t[1]),r=wl(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=i();if(f(/^@page */)){var t=m()||[];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=i();if(f(/^@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=i();if(f(/^@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 S(){var e=i(),t=m();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;var o=r?t:n;for(var i in t){var c=t[i];Array.isArray(c)?c.forEach((function(t){e(t,o)})):c&&"object"===Object(wt.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((k=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:k,parsingErrors:a}}))};function wl(e){return e?e.replace(/^\s+|\s+$/g,""):""}var Il=n(110),Bl=n.n(Il),Tl=xl;function xl(e){this.options=e||{}}xl.prototype.emit=function(e){return e},xl.prototype.visit=function(e){return this[e.type](e)},xl.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 Nl=Ll;function Ll(e){Tl.call(this,e)}Bl()(Ll,Tl),Ll.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Ll.prototype.comment=function(e){return this.emit("",e.position)},Ll.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Ll.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ll.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("}")},Ll.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Ll.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Ll.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ll.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Ll.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Ll.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("}")},Ll.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Ll.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ll.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Ll.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("}"):""},Ll.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Al=Rl;function Rl(e){e=e||{},Tl.call(this,e),this.indentation=e.indent}Bl()(Rl,Tl),Rl.prototype.compile=function(e){return this.stylesheet(e)},Rl.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},Rl.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},Rl.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Rl.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}")},Rl.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}")},Rl.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Rl.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Rl.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}")},Rl.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)+"}")},Rl.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")},Rl.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}")},Rl.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}")},Rl.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}")},Rl.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Rl.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()+"}"):""},Rl.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},Rl.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||"  ")};var Pl=function(e,t){return((t=t||{}).compress?new Nl(t):new Al(t)).compile(e)};var Ml=function(e,t){try{var n=Sl(e),r=Cl.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return Pl(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}},Dl=n(85);function Fl(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 Ul(e){return function(t){var n=function(e,t){var n=Object(Dl.parse)(e).pathname;return Object(Dl.resolve)(t,n)}(t.value,e);return Object(s.a)({},t,{newUrl:"url("+t.before+t.quote+n+t.quote+t.after+")"})}}var Hl=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]};Fl(o)&&r.push(o)}return r}(t.value).map(Ul(e));return Object(s.a)({},t,{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o;return t}},Vl=/^(body|html|:root).*$/,zl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(s.a)({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Vl)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Kl=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(zl(t)),r&&o.push(Hl(r)),o.length?Ml(n,Object(h.compose)(o)):n}))};n.d(t,"AlignmentToolbar",(function(){return Pe})),n.d(t,"Autocomplete",(function(){return Me})),n.d(t,"BlockAlignmentToolbar",(function(){return Ve})),n.d(t,"BlockBreadcrumb",(function(){return Ke})),n.d(t,"BlockControls",(function(){return Ye})),n.d(t,"BlockEdit",(function(){return X})),n.d(t,"useBlockEditContext",(function(){return q})),n.d(t,"BlockFormatControls",(function(){return et})),n.d(t,"BlockIcon",(function(){return tt})),n.d(t,"BlockNavigationDropdown",(function(){return Ri})),n.d(t,"__experimentalBlockNavigationList",(function(){return xi})),n.d(t,"__experimentalBlockPatternPicker",(function(){return Pi})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Vi})),n.d(t,"ButtonBlockerAppender",(function(){return Ti})),n.d(t,"ColorPalette",(function(){return Ki})),n.d(t,"ColorPaletteControl",(function(){return Gi})),n.d(t,"ContrastChecker",(function(){return ge})),n.d(t,"__experimentalGradientPicker",(function(){return qi})),n.d(t,"__experimentalGradientPickerControl",(function(){return $i})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Yi})),n.d(t,"__experimentalColorGradientControl",(function(){return ce})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return be})),n.d(t,"InnerBlocks",(function(){return nc})),n.d(t,"InspectorAdvancedControls",(function(){return ac})),n.d(t,"InspectorControls",(function(){return ye})),n.d(t,"__experimentalLinkControl",(function(){return pc})),n.d(t,"MediaReplaceFlow",(function(){return _c})),n.d(t,"MediaPlaceholder",(function(){return xc})),n.d(t,"MediaUpload",(function(){return hc})),n.d(t,"MediaUploadCheck",(function(){return mc})),n.d(t,"PanelColorSettings",(function(){return pe})),n.d(t,"PlainText",(function(){return Nc})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Ac})),n.d(t,"RichText",(function(){return Yc})),n.d(t,"RichTextShortcut",(function(){return zc})),n.d(t,"RichTextToolbarButton",(function(){return Kc})),n.d(t,"__unstableRichTextInputEvent",(function(){return Gc})),n.d(t,"ToolSelector",(function(){return Jc})),n.d(t,"URLInput",(function(){return Oc})),n.d(t,"URLInputButton",(function(){return Qc})),n.d(t,"URLPopover",(function(){return wc})),n.d(t,"__experimentalImageURLInputUI",(function(){return na})),n.d(t,"withColorContext",(function(){return zi})),n.d(t,"__experimentalBlockListFooter",(function(){return ci})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return ca})),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",(function(){return ua})),n.d(t,"__experimentalInserterMenuExtension",(function(){return ki})),n.d(t,"__experimentalPageTemplatePicker",(function(){return pa})),n.d(t,"__experimentalWithPageTemplatePickerVisible",(function(){return ma})),n.d(t,"__experimentalUsePageTemplatePickerVisible",(function(){return ha})),n.d(t,"BlockInspector",(function(){return Ea})),n.d(t,"BlockList",(function(){return ui})),n.d(t,"BlockMover",(function(){return Aa})),n.d(t,"BlockPreview",(function(){return fi})),n.d(t,"BlockSelectionClearer",(function(){return Pa})),n.d(t,"BlockSettingsMenu",(function(){return za})),n.d(t,"BlockTitle",(function(){return ze})),n.d(t,"BlockToolbar",(function(){return qa})),n.d(t,"CopyHandler",(function(){return $a})),n.d(t,"DefaultBlockAppender",(function(){return ti})),n.d(t,"Inserter",(function(){return Bi})),n.d(t,"MultiBlocksSwitcher",(function(){return Wa})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Xa})),n.d(t,"MultiSelectScrollIntoView",(function(){return Za})),n.d(t,"NavigableToolbar",(function(){return Lo})),n.d(t,"ObserveTyping",(function(){return el})),n.d(t,"PreserveScrollInReorder",(function(){return tl})),n.d(t,"SkipToSelectedBlock",(function(){return ga})),n.d(t,"Typewriter",(function(){return il})),n.d(t,"Warning",(function(){return Oo})),n.d(t,"WritingFlow",(function(){return bl})),n.d(t,"BlockEditorProvider",(function(){return mo})),n.d(t,"getColorClassName",(function(){return y})),n.d(t,"getColorObjectByAttributeValues",(function(){return k})),n.d(t,"getColorObjectByColorValue",(function(){return j})),n.d(t,"createCustomColorsHOC",(function(){return A})),n.d(t,"withColors",(function(){return R})),n.d(t,"__experimentalUseColors",(function(){return Te})),n.d(t,"__experimentalGetGradientClass",(function(){return Z})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return J})),n.d(t,"__experimentalUseGradient",(function(){return Q})),n.d(t,"getFontSize",(function(){return xe})),n.d(t,"getFontSizeClass",(function(){return Ne})),n.d(t,"FontSizePicker",(function(){return Le})),n.d(t,"withFontSizes",(function(){return Ae})),n.d(t,"transformStyles",(function(){return Kl})),n.d(t,"storeConfig",(function(){return fo})),n.d(t,"SETTINGS_DEFAULTS",(function(){return st}))},37:function(e,t){!function(){e.exports=this.wp.blob}()},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},42:function(e,t,n){e.exports=function(e,t){var n,r,o,i=0;function c(){var t,c,a=r,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c<l;c++)if(a.args[c]!==arguments[c]){a=a.next;continue e}return a!==r&&(a===o&&(o=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=r,a.prev=null,r.prev=a,r=a),a.val}a=a.next}for(t=new Array(l),c=0;c<l;c++)t[c]=arguments[c];return a={args:t,val:e.apply(null,t)},r?(r.prev=a,a.next=r):o=a,i===n?(o=o.prev).next=null:i++,r=a,a.val}return t&&t.maxSize&&(n=t.maxSize),c.clear=function(){r=null,o=null,i=0},c}},43:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},44:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),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,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,l,"next",e)}function l(e){r(c,o,i,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},45:function(e,t){!function(){e.exports=this.wp.a11y}()},46:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},49:function(e,t,n){var r;!function(o){var i=/^\s+/,c=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(c,"").toLowerCase();var t,n=!1;if(T[e])e=T[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=z.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:n?"name":"hex"};if(t=z.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=z.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(b=e.r,p=e.g,h=e.b,t={r:255*L(b,255),g:255*L(p,255),b:255*L(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=M(e.s),a=M(e.v),t=function(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var r=o.floor(e),i=e-r,c=n*(1-t),a=n*(1-i*t),l=n*(1-(1-i)*t),s=r%6;return{r:255*[n,a,c,c,l,n][s],g:255*[l,n,n,a,c,c][s],b:255*[c,c,l,n,n,a][s]}}(e.h,r,a),d=!0,f="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=M(e.s),l=M(e.l),t=function(e,t,n){var r,o,i;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=o=i=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=c(l,a,e+1/3),o=c(l,a,e),i=c(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var b,p,h;return n=N(n),{ok:d,format:e.format||f,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 b(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=(i+c)/2;if(i==c)r=o=0;else{var l=i-c;switch(o=a>.5?l/(2-i-c):l/(i+c),i){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=L(e,255),t=L(t,255),n=L(n,255);var r,o,i=u(e,t,n),c=s(e,t,n),a=i,l=i-c;if(o=0===i?0:l/i,i==c)r=0;else{switch(i){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 h(e,t,n,r){var o=[P(l(e).toString(16)),P(l(t).toString(16)),P(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 m(e,t,n,r){return[P(D(r)),P(l(e).toString(16)),P(l(t).toString(16)),P(l(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=A(n.s),f(n)}function v(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=A(n.s),f(n)}function O(e){return f(e).desaturate(100)}function k(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=A(n.l),f(n)}function j(e,t){t=0===t?0:t||10;var n=f(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))),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=A(n.l),f(n)}function _(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function C(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function E(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function I(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),o=360/n,i=[f(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function B(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,c=[],a=1/t;t--;)c.push(f({h:r,s:o,v:i})),i=(i+a)%1;return c}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,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=N(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=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=b(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 h(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 i=[P(l(e).toString(16)),P(l(t).toString(16)),P(l(n).toString(16)),P(D(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r: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*L(this._r,255))+"%",g:l(100*L(this._g,255))+"%",b:l(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*L(this._r,255))+"%, "+l(100*L(this._g,255))+"%, "+l(100*L(this._b,255))+"%)":"rgba("+l(100*L(this._r,255))+"%, "+l(100*L(this._g,255))+"%, "+l(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+m(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 f(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(k,arguments)},brighten:function(){return this._applyModification(j,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(O,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(C,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},f.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 f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.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=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,c,a=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,c=n.size;for(var s=0;s<t.length;s++)(r=f.readability(e,t[s]))>l&&(l=r,a=f(t[s]));return f.isReadable(e,a,{level:i,size:c})||!o?a:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var T=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(T);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function P(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var U,H,V,z=(H="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",V="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),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 K(e){return!!z.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},51:function(e,t){!function(){e.exports=this.wp.viewport}()},54:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},6:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Object(r.a)(e,t,n[t])}))}return e}},62:function(e,t,n){"use strict";t.__esModule=!0;var r=n(114);t.default=r.default},63:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},65: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(118)),i=r(n(119)),c=n(21),a=r(c),l=r(n(96)),s=r(n(120)),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=c.useState(!1)[1];return c.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return u.und(e)||u.nul(e)?t:e}function b(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 h(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,i(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 i;return u.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var m,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}(),O=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),k=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 j(e,t){m={fn:e,transform:t}}function y(e){g=e}var _,C=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},E=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function S(e){_=e}var w,I=function(){return Date.now()};function B(e){w=e}var T,x,N=function(e){return e.current};function L(e){T=e}var A=Object.freeze({get applyAnimatedValues(){return m},injectApplyAnimatedValues:j,get colorNames(){return g},injectColorNames:y,get requestFrame(){return C},get cancelFrame(){return E},injectFrame:function(e,t){C=e,E=t},get interpolation(){return _},injectStringInterpolator:S,get now(){return I},injectNow:function(e){I=e},get defaultElement(){return w},injectDefaultElement:B,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return T},injectCreateAnimatedStyle:L,get manualFrameloop(){return x},injectManualFrameloop:function(e){x=e}}),R=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:T(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(k),P=!1,M=new Set,D=function e(){if(!P)return!1;var t=I(),n=M,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var c=i,a=!1,l=0;l<c.configs.length;l++){for(var s=c.configs[l],u=void 0,d=void 0,f=0;f<s.animatedValues.length;f++){var b=s.animatedValues[f];if(!b.done){var p=s.fromValues[f],h=s.toValues[f],m=b.lastPosition,g=h instanceof v,O=Array.isArray(s.initialVelocity)?s.initialVelocity[f]:s.initialVelocity;if(g&&(h=h.getValue()),s.immediate)b.setValue(h),b.done=!0;else if("string"!=typeof p&&"string"!=typeof h){if(void 0!==s.duration)m=p+s.easing((t-b.startTime)/s.duration)*(h-p),u=t>=b.startTime+s.duration;else if(s.decay)m=p+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-b.startTime))),(u=Math.abs(b.lastPosition-m)<.1)&&(h=m);else{d=void 0!==b.lastTime?b.lastTime:t,O=void 0!==b.lastVelocity?b.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var k=Math.floor(t-d),j=0;j<k;++j){m+=1*(O+=1*((-s.tension*(m-h)+-s.friction*O)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<h?m>h:m<h),_=Math.abs(O)<=s.precision,E=0===s.tension||Math.abs(h-m)<=s.precision;u=y||_&&E,b.lastVelocity=O,b.lastTime=t}g&&!s.toValues[f].done&&(u=!1),u?(b.value!==h&&(m=h),b.done=!0):a=!0,b.setValue(m),b.lastPosition=m}else b.setValue(h),b.done=!0}}c.props.onFrame&&(c.values[s.name]=s.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),a||(M.delete(c),c.stop(!0))}return M.size?x?x():C(e):P=!1,P};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,i=r.range||[0,1],c=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,i);return function(e,t,n,r,o,i,c,a,l){var s=l?l(e):e;if(s<t){if("identity"===c)return s;"clamp"===c&&(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=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],l,c,a,r.map)}}var U=function(e){function t(n,r,o,i){var c;return(c=e.call(this)||this).calc=void 0,c.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],c.calc=F(r,o,i),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,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(O);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,n){return new U(this,e,t,n)},t}(v),V=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 U(this,e,t)},t}(O),z=0,K=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=z++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,c=t.to,a=i(t,["delay","to"]);if(u.arr(c)||u.fun(c))this.queue.push(o({},a,{delay:r,to:c}));else if(c){var l={};Object.entries(c).forEach((function(e){var t,n=e[0],i=e[1],c=o({to:(t={},t[n]=i,t),delay:p(r,n)},a),s=l[c.delay]&&l[c.delay].to;l[c.delay]=o({},l[c.delay],c,{to:o({},s,c.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,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(c)&&(n.merged=o({},n.merged,c))}));var r=this.local=++this.guid,c=this.localQueue=this.queue;this.queue=[],c.forEach((function(t,o){var a=t.delay,l=i(t,["delay"]),s=function(t){o===c.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),P||(P=!0,C(x||D));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,i(e,["delay"])),c=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,i=o({},r,h(r.to[t]));u.arr(i.config)&&(i.config=i.config[t]),a=a.then((function(){if(c===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,f=0;a=a.then((function(){return r.to((function(e){var t=o({},r,h(e));if(u.arr(t.config)&&(t.config=t.config[f]),f++,c===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,i=void 0===r?{}:r,c=n.to,a=void 0===c?{}:c,l=n.config,s=void 0===l?{}:l,d=n.reverse,h=n.attach,m=n.reset,v=n.immediate;if(d){var O=[a,i];i=O[0],a=O[1]}this.merged=o({},i,this.merged,a),this.hasChanged=!1;var k=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],c=n[1],a=e[r]||{},l=u.num(c),d=u.str(c)&&!c.startsWith("#")&&!/\d/.test(c)&&!g[c],h=u.arr(c),O=!l&&!h&&!d,j=u.und(i[r])?c:i[r],y=l||h?c:d?c:1,C=p(s,r);k&&(y=k.animations[r].parent);var E,S=a.parent,w=a.interpolation,B=b(k?y.getPayload():y),T=c;O&&(T=_({range:[0,1],output:[c,c]})(1));var x,N=w&&w.getValue(),L=!u.und(S)&&a.animatedValues.some((function(e){return!e.done})),A=!u.equ(T,N),R=!u.equ(T,a.previous),P=!u.equ(C,a.config);if(m||R&&A||P){var M;if(l||d)S=w=a.parent||new H(j);else if(h)S=w=a.parent||new V(j);else if(O){var D=a.interpolation&&a.interpolation.calc(a.parent.value);D=void 0===D||m?j:D,a.parent?(S=a.parent).setValue(0,!1):S=new H(0);var F={output:[D,c]};a.interpolation?(w=a.interpolation,a.interpolation.updateConfig(F)):w=S.interpolate(F)}return B=b(k?y.getPayload():y),E=b(S.getPayload()),m&&!O&&S.setValue(j,!1),t.hasChanged=!0,E.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=L?e.lastVelocity:void 0,e.lastTime=L?e.lastTime:void 0,e.startTime=I(),e.done=!1,e.animatedStyles.clear()})),p(v,r)&&S.setValue(O?y:c,!1),o({},e,((M={})[r]=o({},a,{name:r,parent:S,interpolation:w,animatedValues:E,toValues:B,previous:T,config:C,fromValues:b(S.getValue()),immediate:p(v,r),initialVelocity:f(C.velocity,0),clamp:f(C.clamp,!1),precision:f(C.precision,.01),tension:f(C.tension,170),friction:f(C.friction,26),mass:f(C.mass,1),duration:C.duration,easing:f(C.easing,(function(e){return e})),decay:C.decay}),M))}return A?e:(O&&(S.setValue(1,!1),w.updateConfig({output:[T,T]})),S.done=!0,t.hasChanged=!0,o({},e,((x={})[r]=o({},e[r],{previous:T}),x)))}),this.animations),this.hasChanged)for(var j in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[j]=this.animations[j].interpolation,this.values[j]=this.animations[j].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}(),G=function(e,t){var n=c.useRef(!1),r=c.useRef(),o=u.fun(t),i=c.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 i=new K,c=o?p(t,r,i):t[r];return 0===r&&(n=c.ref),i.update(c),n||i.start(),i})),n])}),[e]),a=i[0],l=i[1];r.current=a;c.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=c.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]);c.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),c.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="enter",$="leave",Y="update",X=function(e,t){return("function"==typeof t?e.map(t):b(t)).map(String)},Z=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,c=i(e,["items","keys"]);return t=b(void 0!==t?t:null),o({items:t,keys:X(t,r)},c)};function J(e,t){var n=function(){if(o){if(i>=r.length)return"break";c=r[i++]}else{if((i=r.next()).done)return"break";c=i.value}var n=c.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),i=0;for(r=o?r:r[Symbol.iterator]();;){var c;if("break"===n())break}e.current.forceUpdate()}var Q=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(k),ee={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},te="[-+]?\\d*\\.?\\d+",ne=te+"%";function re(){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 oe=new RegExp("rgb"+re(te,te,te)),ie=new RegExp("rgba"+re(te,te,te,te)),ce=new RegExp("hsl"+re(te,ne,ne)),ae=new RegExp("hsla"+re(te,ne,ne,te)),le=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ue=/^#([0-9a-fA-F]{6})$/,de=/^#([0-9a-fA-F]{8})$/;function fe(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 be(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=fe(o,r,e+1/3),c=fe(o,r,e),a=fe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*c)<<16|Math.round(255*a)<<8}function pe(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function he(e){return(parseFloat(e)%360+360)%360/360}function me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ge(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ve(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ue.exec(t))?parseInt(n[1]+"ff",16)>>>0:ee.hasOwnProperty(t)?ee[t]:(n=oe.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|255)>>>0:(n=ie.exec(t))?(pe(n[1])<<24|pe(n[2])<<16|pe(n[3])<<8|me(n[4]))>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=de.exec(t))?parseInt(n[1],16)>>>0:(n=se.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ce.exec(t))?(255|be(he(n[1]),ge(n[2]),ge(n[3])))>>>0:(n=ae.exec(t))?(be(he(n[1]),ge(n[2]),ge(n[3]))|me(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,ke=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,je=new RegExp("("+Object.keys(ee).join("|")+")","g"),ye={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},_e=["Webkit","Ms","Moz","O"];function Ce(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return _e.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var Ee={};L((function(e){return new Q(e)})),B("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ke,ve)})).map((function(e){return e.replace(je,ve)})),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(ee),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,c=t.scrollLeft,a=i(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!==c&&(e.scrollLeft=c),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=Ce(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var b=l?f:Ee[f]||(Ee[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(b)&&e.setAttribute(b,a[f])}}),(function(e){return e}));var Se,we,Ie=(Se=function(e){return c.forwardRef((function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),b=c.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;f.current&&(e=m.fn(f.current,s.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);c.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),c.useImperativeHandle(n,(function(){return N(f,l,r)})),b(t);var p,h=s.current.getValue(),g=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),v=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},g,{ref:v}))}))},void 0===(we=!1)&&(we=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=we?t[0].toLowerCase()+t.substring(1):t;return e[n]=Se(n),e}),Se)}),Be=Ie(["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=Ie,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Be,t.a=Be,t.interpolate=function(e,t,n){return e&&new U(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=u.fun(e),n=G(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=c.useRef(!1),r=u.fun(t),i=p(t),a=c.useRef(),l=G(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:p(i.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],f=l[2],b=c.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,c=a.current[r];return o({},e,{config:p(e.config||i.config,t),attach:c&&function(){return c}})}))}}),[e,i.reverse]);return c.useEffect((function(){n.current&&!r&&b(t)})),c.useEffect((function(){n.current=!0}),[]),r?[s,b,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=Z(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,b=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,g=a.onStart,v=a.ref,O=i(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),k=d(),j=c.useRef(!1),y=c.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:k});return c.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,c=i(e,["first","prevProps"]),a=Z(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,b=a.leave,h=a.update,m=a.trail,g=void 0===m?0:m,v=a.unique,O=a.config,k=a.order,j=void 0===k?[q,$,Y]:k,y=Z(r),_=y.keys,C=y.items,E=o({},c.current),S=[].concat(c.deleted),w=Object.keys(E),I=new Set(w),B=new Set(s),T=s.filter((function(e){return!I.has(e)})),x=c.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return I.has(e)})),L=-g;for(;j.length;){switch(j.shift()){case q:T.forEach((function(e,t){v&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":q;E[e]={slot:i,originalKey:e,key:v?String(e):W++,item:o,trail:L+=g,config:p(O,o,i),from:p(n&&void 0!==u?u||{}:d,o),to:p(f,o)}}));break;case $:x.forEach((function(e){var t=_.indexOf(e),n=C[t],r=$;S.unshift(o({},E[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:L+=g,config:p(O,n,r),to:p(b,n)})),delete E[e]}));break;case Y:N.forEach((function(e){var t=s.indexOf(e),n=l[t],r=Y;E[e]=o({},E[e],{item:n,slot:r,trail:L+=g,config:p(O,n,r),to:p(h,n)})}))}}var A=s.map((function(e){return E[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=A.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),A=[].concat(A.slice(0,t),[r],A.slice(t))})),o({},c,{changed:T.length||x.length||N.length,first:n&&0===T.length,transitions:A,current:E,deleted:S,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,c=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new K);var u=y.current.instances.get(a),d=o({},O,{to:r,from:n,config:i,ref:v,onRest:function(n){y.current.mounted&&(e.destroyed&&(v||s||J(y,a),b&&b(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&y.current.deleted.length>0&&J(y),m&&m(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&t===q});u.update(d),y.current.paused||u.start()})),c.useEffect((function(){return y.current.mounted=j.current=!0,function(){y.current.mounted=j.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=c.useRef();c.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 i=e.current;if(i){var c=i.controllers;if(c.length){var a=n*t[r];c.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=G},69:function(e,t,n){"use strict";e.exports=n(112)},7: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}))},72:function(e,t,n){"use strict";e.exports=function(e){var t,n={};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])}(n,e),(t=function(e){return function(t){return function(r){var o,i,c=n[r.type],a=t(r);if(c)for(o=0;o<c.length;o++)(i=c[o](r,e))&&e.dispatch(i);return a}}}).effects=n,t}},8:function(e,t){!function(){e.exports=this.wp.compose}()},85:function(e,t,n){"use strict";var r=n(121),o=n(123);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=O,t.resolve=function(e,t){return O(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?O(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=O(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var c=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(124);function O(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",s=e.split(a);s[0]=s[0].replace(/\\/g,"/");var O=e=s.join(a);if(O=O.trim(),!n&&1===e.split("#").length){var k=l.exec(O);if(k)return this.path=O,this.href=O,this.pathname=k[1],k[2]?(this.search=k[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var j=c.exec(O);if(j){var y=(j=j[0]).toLowerCase();this.protocol=y,O=O.substr(j.length)}if(n||j||O.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===O.substr(0,2);!_||j&&m[j]||(O=O.substr(2),this.slashes=!0)}if(!m[j]&&(_||j&&!g[j])){for(var C,E,S=-1,w=0;w<f.length;w++){-1!==(I=O.indexOf(f[w]))&&(-1===S||I<S)&&(S=I)}-1!==(E=-1===S?O.lastIndexOf("@"):O.lastIndexOf("@",S))&&(C=O.slice(0,E),O=O.slice(E+1),this.auth=decodeURIComponent(C)),S=-1;for(w=0;w<d.length;w++){var I;-1!==(I=O.indexOf(d[w]))&&(-1===S||I<S)&&(S=I)}-1===S&&(S=O.length),this.host=O.slice(0,S),O=O.slice(S),this.parseHost(),this.hostname=this.hostname||"";var B="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!B)for(var T=this.hostname.split(/\./),x=(w=0,T.length);w<x;w++){var N=T[w];if(N&&!N.match(b)){for(var L="",A=0,R=N.length;A<R;A++)N.charCodeAt(A)>127?L+="x":L+=N[A];if(!L.match(b)){var P=T.slice(0,w),M=T.slice(w+1),D=N.match(p);D&&(P.push(D[1]),M.unshift(D[2])),M.length&&(O="/"+M.join(".")+O),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!h[y])for(w=0,x=u.length;w<x;w++){var H=u[w];if(-1!==O.indexOf(H)){var V=encodeURIComponent(H);V===H&&(V=escape(H)),O=O.split(H).join(V)}}var z=O.indexOf("#");-1!==z&&(this.hash=O.substr(z),O=O.slice(0,z));var K=O.indexOf("?");if(-1!==K?(this.search=O.substr(K),this.query=O.substr(K+1),t&&(this.query=v.parse(this.query)),O=O.slice(0,K)):t&&(this.search="",this.query={}),O&&(this.pathname=O),g[y]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var G=this.search||"";this.path=F+G}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,c="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(c=v.stringify(this.query));var a=this.search||c&&"?"+c||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(O(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),c=0;c<r.length;c++){var a=r[c];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),s=0;s<l.length;s++){var u=l[s];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var b=d[f];n[b]=e[b]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",v=n.search||"";n.path=h+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var O=n.pathname&&"/"===n.pathname.charAt(0),k=e.host||e.pathname&&"/"===e.pathname.charAt(0),j=k||O||n.host&&e.pathname,y=j,_=n.pathname&&n.pathname.split("/")||[],C=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),j=j&&(""===p[0]||""===_[0])),k)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,_=p;else if(p.length)_||(_=[]),_.pop(),_=_.concat(p),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=_.shift(),(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=_.slice(-1)[0],S=(n.host||e.host||_.length>1)&&("."===E||".."===E)||""===E,w=0,I=_.length;I>=0;I--)"."===(E=_[I])?_.splice(I,1):".."===E?(_.splice(I,1),w++):w&&(_.splice(I,1),w--);if(!j&&!y)for(;w--;w)_.unshift("..");!j||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),S&&"/"!==_.join("/").substr(-1)&&_.push("");var B,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);C&&(n.hostname=n.host=T?"":_.length?_.shift():"",(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift()));return(j=j||n.host&&_.length)&&!T&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},89:function(e,t,n){"use strict";var r=n(90);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==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:i,resetWarningCache:o};return n.PropTypes=n,n}},9: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}))},90:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},97:function(e,t){!function(){e.exports=this.wp.wordcount}()}});