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,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=231)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},,function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(10);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?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}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(30),o=n(5);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},function(e,t,n){var r;
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!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))e.push(o.apply(null,r));else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",function(){return r})},function(e,t,n){"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})},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return r})},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){"use strict";var r=n(38);var o=n(37);function i(e,t){return Object(r.a)(e)||function(e,t){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})},function(e,t){!function(){e.exports=this.wp.hooks}()},,function(e,t){!function(){e.exports=this.wp.dom}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.React}()},,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)}function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}n.d(t,"a",function(){return o})},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})},,function(e,t,n){e.exports=n(91)()},function(e,t){!function(){e.exports=this.wp.blob}()},function(e,t){!function(){e.exports=this.wp.deprecated}()},function(e,t,n){"use strict";var r,o;function i(e){return[e]}function c(e){return!!e&&"object"==typeof e}function a(){var e={clear:function(){e.head=null}};return e}function l(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,s;function u(){n=o?new WeakMap:a()}function d(){var n,r,o,i,c,a=arguments.length;for(i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];for(c=t.apply(null,i),(n=s(c)).isUniqueByDependants||(n.lastDependants&&!l(c,n.lastDependants,0)&&n.clear(),n.lastDependants=c),r=n.head;r;){if(l(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),s=o?function(e){var t,o,i,l,s=n,u=!0;for(t=0;t<e.length;t++){if(!c(o=e[t])){u=!1;break}s.has(o)?s=s.get(o):(i=new WeakMap,s.set(o,i),s=i)}return s.has(r)||((l=a()).isUniqueByDependants=u,s.set(r,l)),s.get(r)}:function(){return n},d.getDependants=t,d.clear=u,u(),d}},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})},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},,,function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t){!function(){e.exports=this.wp.viewport}()},,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}},function(e,t){!function(){e.exports=this.wp.a11y}()},,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(e=e||"",t=t||{},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=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=H.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:n?"name":"hex"};if(t=H.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=H.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(t=function(e,t,n){return{r:255*N(e,255),g:255*N(t,255),b:255*N(n,255)}}(e.r,e.g,e.b),d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=P(e.s),a=P(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),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"):U(e.h)&&U(e.s)&&U(e.l)&&(r=P(e.s),l=P(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=N(e,360),t=N(t,100),n=N(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));return n=L(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 p(e,t,n){e=N(e,255),t=N(t,255),n=N(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 b(e,t,n){e=N(e,255),t=N(t,255),n=N(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=[R(l(e).toString(16)),R(l(t).toString(16)),R(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[R(D(r)),R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16))].join("")}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 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 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 S(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 C(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=L(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(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=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(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=[R(l(e).toString(16)),R(l(t).toString(16)),R(l(n).toString(16)),R(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*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(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(v,arguments)},saturate:function(){return this._applyModification(g,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(S,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(C,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]:P(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 L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return s(1,u(0,e))}function M(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return M(e)/255}var H=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function U(e){return!!H.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},,,,,function(e,t){!function(){e.exports=this.wp.htmlEntities}()},,,,,,function(e,t,n){"use strict";t.__esModule=!0;var r=n(129);t.default=r.default},,,,,function(e,t,n){"use strict";e.exports=n(131)},,,,,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=function(){"use strict";return function(e){var t={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(t,e),function(e){return function(n){return function(r){var o,i,c=t[r.type],a=n(r);if(c)for(o=0;o<c.length;o++)(i=c[o](r,e))&&e.dispatch(i);return a}}}}}()},,,,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(125)),i=r(n(124)),c=n(28),a=r(c),l=r(n(123)),s=r(n(122)),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 p(e){return u.und(e)?[]:u.arr(e)?e:[e]}function b(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,v,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),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 g&&e.addChild(s(t))})},t.detach=function(){return t.payload.forEach(function(e){return e instanceof g&&e.removeChild(s(t))})},t}return l(t,e),t}(g),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 g&&e.addChild(s(t))})},t.detach=function(){return Object.values(t.payload).forEach(function(e){return e instanceof g&&e.removeChild(s(t))})},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function j(e,t){m={fn:e,transform:t}}function y(e){v=e}var _,S=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},E=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function C(e){_=e}var w,I=function(){return Date.now()};function B(e){w=e}var T,x,L=function(e){return e.current};function N(e){T=e}var A=Object.freeze({get applyAnimatedValues(){return m},injectApplyAnimatedValues:j,get colorNames(){return v},injectColorNames:y,get requestFrame(){return S},get cancelFrame(){return E},injectFrame:function(e,t){S=e,E=t},get interpolation(){return _},injectStringInterpolator:C,get now(){return I},injectNow:function(e){I=e},get defaultElement(){return w},injectDefaultElement:B,get animatedApi(){return L},injectAnimatedApi:function(e){L=e},get createAnimatedStyle(){return T},injectCreateAnimatedStyle:N,get manualFrameloop(){return x},injectManualFrameloop:function(e){x=e}}),M=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),R=!1,P=new Set,D=function e(){if(!R)return!1;var t=I(),n=P,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 p=s.animatedValues[f];if(!p.done){var b=s.fromValues[f],h=s.toValues[f],m=p.lastPosition,v=h instanceof g,O=Array.isArray(s.initialVelocity)?s.initialVelocity[f]:s.initialVelocity;if(v&&(h=h.getValue()),s.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof b&&"string"!=typeof h){if(void 0!==s.duration)m=b+s.easing((t-p.startTime)/s.duration)*(h-b),u=t>=p.startTime+s.duration;else if(s.decay)m=b+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(u=Math.abs(p.lastPosition-m)<.1)&&(h=m);else{d=void 0!==p.lastTime?p.lastTime:t,O=void 0!==p.lastVelocity?p.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)&&(b<h?m>h:m<h),_=Math.abs(O)<=s.precision,E=0===s.tension||Math.abs(h-m)<=s.precision;u=y||_&&E,p.lastVelocity=O,p.lastTime=t}v&&!s.toValues[f].done&&(u=!1),u?(p.value!==h&&(m=h),p.done=!0):a=!0,p.setValue(m),p.lastPosition=m}else p.setValue(h),p.done=!0}}c.props.onFrame&&(c.values[s.name]=s.interpolation.getValue())}c.props.onFrame&&c.props.onFrame(c.values),a||(P.delete(c),c.stop(!0))}return P.size?x?x():S(e):R=!1,R};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 H=function(e){function t(n,r,o){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof O&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o),i}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map(function(e){return e.getValue()}))},n.updateConfig=function(e,t){this.calc=F(e,t)},n.interpolate=function(e,n){return new t(this,e,n)},t}(O);var U=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach(function(t){return e(t,n)})}(this,this.animatedStyles),this.animatedStyles.forEach(function(e){return e.update()})},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t){return new H(this,e,t)},t}(g),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map(function(e){return new U(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 H(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:b(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=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach(function(e){var n=e.from,r=void 0===n?{}:n,i=e.to,c=void 0===i?{}:i;u.obj(r)&&(t.merged=o({},r,t.merged)),u.obj(c)&&(t.merged=o({},t.merged,c))});var n=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach(function(o,c){var a=o.delay,l=i(o,["delay"]),s=function(o){c===r.length-1&&n===t.guid&&o&&(t.idle=!0,t.props.onRest&&t.props.onRest(t.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout(function(){n===t.guid&&(d?t.runAsync(l,s):t.diff(l).start(s))},a):d?t.runAsync(l,s):t.diff(l).start(s)})}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),function(e){P.has(e)||P.add(e),R||(R=!0,S(x||D))}(this);return this},t.stop=function(e){return this.listeners.forEach(function(t){return t(e)}),this.listeners=[],this},t.pause=function(e){return this.stop(!0),e&&function(e){P.has(e)&&P.delete(e)}(this),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,g=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)&&!v[c],h=u.arr(c),O=!l&&!h&&!d,j=u.und(i[r])?c:i[r],y=l||h?c:d?c:1,S=b(s,r);k&&(y=k.animations[r].parent);var E,C=a.parent,w=a.interpolation,B=p(k?y.getPayload():y),T=c;O&&(T=_({range:[0,1],output:[c,c]})(1));var x,L=w&&w.getValue(),N=!u.und(C)&&a.animatedValues.some(function(e){return!e.done}),A=!u.equ(T,L),M=!u.equ(T,a.previous),R=!u.equ(S,a.config);if(m||M&&A||R){var P;if(l||d)C=w=a.parent||new U(j);else if(h)C=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?(C=a.parent).setValue(0,!1):C=new U(0);var F={output:[D,c]};a.interpolation?(w=a.interpolation,a.interpolation.updateConfig(F)):w=C.interpolate(F)}return B=p(k?y.getPayload():y),E=p(C.getPayload()),m&&!O&&C.setValue(j,!1),t.hasChanged=!0,E.forEach(function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=I(),e.done=!1,e.animatedStyles.clear()}),b(g,r)&&C.setValue(O?y:c,!1),o({},e,((P={})[r]=o({},a,{name:r,parent:C,interpolation:w,animatedValues:E,toValues:B,previous:T,config:S,fromValues:p(C.getValue()),immediate:b(g,r),initialVelocity:f(S.velocity,0),clamp:f(S.clamp,!1),precision:f(S.precision,.01),tension:f(S.tension,170),friction:f(S.friction,26),mass:f(S.mass,1),duration:S.duration,easing:f(S.easing,function(e){return e}),decay:S.decay}),P))}return A?e:(O&&(C.setValue(1,!1),w.updateConfig({output:[T,T]})),C.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}(),W=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?b(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?b(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},q=0,G="enter",$="leave",Y="update",X=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=p(void 0!==t?t:null),o({items:t,keys:function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)}(t,r)},c)};function Z(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 J=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=m.transform(t)),n.payload=t,n}return l(t,e),t}(k),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ee="[-+]?\\d*\\.?\\d+",te=ee+"%";function ne(){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 re=new RegExp("rgb"+ne(ee,ee,ee)),oe=new RegExp("rgba"+ne(ee,ee,ee,ee)),ie=new RegExp("hsl"+ne(ee,te,te)),ce=new RegExp("hsla"+ne(ee,te,te,ee)),ae=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,le=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([0-9a-fA-F]{6})$/,ue=/^#([0-9a-fA-F]{8})$/;function de(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 fe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=de(o,r,e+1/3),c=de(o,r,e),a=de(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 be(e){return(parseFloat(e)%360+360)%360/360}function he(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function me(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function ve(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=se.exec(e))?parseInt(t[1]+"ff",16)>>>0:Q.hasOwnProperty(e)?Q[e]:(t=re.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|255)>>>0:(t=oe.exec(e))?(pe(t[1])<<24|pe(t[2])<<16|pe(t[3])<<8|he(t[4]))>>>0:(t=ae.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ue.exec(e))?parseInt(t[1],16)>>>0:(t=le.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ie.exec(e))?(255|fe(be(t[1]),me(t[2]),me(t[3])))>>>0:(t=ce.exec(e))?(fe(be(t[1]),me(t[2]),me(t[3]))|he(t[4]))>>>0:null}(e);return null===t?e:"rgba("+((4278190080&(t=t||0))>>>24)+", "+((16711680&t)>>>16)+", "+((65280&t)>>>8)+", "+(255&t)/255+")"}var ge=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ke=new RegExp("("+Object.keys(Q).join("|")+")","g"),je={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},ye=["Webkit","Ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||je.hasOwnProperty(e)&&je[e]?(""+t).trim():t+"px"}je=Object.keys(je).reduce(function(e,t){return ye.forEach(function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]}),e},je);var Se={};N(function(e){return new J(e)}),B("div"),C(function(e){var t=e.output.map(function(e){return e.replace(Oe,ve)}).map(function(e){return e.replace(ke,ve)}),n=t[0].match(ge).map(function(){return[]});t.forEach(function(e){e.match(ge).forEach(function(e,t){return n[t].push(+e)})});var r=t[0].match(ge).map(function(t,r){return F(o({},e,{output:n[r]}))});return function(e){var n=0;return t[0].replace(ge,function(){return r[n++](e)}).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"})}}),y(Q),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=_e(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var f in a){var p=l?f:Se[f]||(Se[f]=f.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}));void 0!==e.getAttribute(p)&&e.setAttribute(p,a[f])}},function(e){return e});var Ee=function(e,t){return void 0===t&&(t=!0),function(n){return(u.arr(n)?n:Object.keys(n)).reduce(function(n,r){var o=t?r[0].toLowerCase()+r.substring(1):r;return n[o]=e(o),n},e)}}(function(e){return c.forwardRef(function(t,n){var r=d(),l=c.useRef(!0),s=c.useRef(null),f=c.useRef(null),p=c.useCallback(function(e){var t=s.current;s.current=new M(e,function(){f.current&&!1===m.fn(f.current,s.current.getAnimatedValue())&&r()}),t&&t.detach()},[]);c.useEffect(function(){return function(){l.current=!1,s.current&&s.current.detach()}},[]),c.useImperativeHandle(n,function(){return L(f,l,r)}),p(t);var b=s.current.getValue(),h=(b.scrollTop,b.scrollLeft,i(b,["scrollTop","scrollLeft"]));return a.createElement(e,o({},h,{ref:function(e){return f.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}}))})},!1),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=D,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=A,t.useSpring=function(e){var t=u.fun(e),n=W(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=b(t),a=c.useRef(),l=W(e,function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return a.current[e-1]}})}),s=l[0],d=l[1],f=l[2],p=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:b(e.config||i.config,t),attach:c&&function(){return c}})})}},[e,i.reverse]);return c.useEffect(function(){n.current&&!r&&p(t)}),c.useEffect(function(){n.current=!0},[]),r?[s,p,f]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=X(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),f=void 0!==u&&u,p=(a.enter,a.leave,a.update,a.onDestroyed),h=(a.keys,a.items,a.onFrame),m=a.onRest,v=a.onStart,g=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){for(var n=e.first,r=e.prevProps,c=i(e,["first","prevProps"]),a=X(t),l=a.items,s=a.keys,u=a.initial,d=a.from,f=a.enter,p=a.leave,h=a.update,m=a.trail,v=void 0===m?0:m,g=a.unique,O=a.config,k=a.order,j=void 0===k?[G,$,Y]:k,y=X(r),_=y.keys,S=y.items,E=o({},c.current),C=[].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}),L=s.filter(function(e){return I.has(e)}),N=-v;j.length;){var A=j.shift();switch(A){case G:T.forEach(function(e,t){g&&C.find(function(t){return t.originalKey===e})&&(C=C.filter(function(t){return t.originalKey!==e}));var r=s.indexOf(e),o=l[r],i=n&&void 0!==u?"initial":G;E[e]={slot:i,originalKey:e,key:g?String(e):q++,item:o,trail:N+=v,config:b(O,o,i),from:b(n&&void 0!==u?u||{}:d,o),to:b(f,o)}});break;case $:x.forEach(function(e){var t=_.indexOf(e),n=S[t],r=$;C.unshift(o({},E[e],{slot:r,destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=v,config:b(O,n,r),to:b(p,n)})),delete E[e]});break;case Y:L.forEach(function(e){var t=s.indexOf(e),n=l[t],r=Y;E[e]=o({},E[e],{item:n,slot:r,trail:N+=v,config:b(O,n,r),to:b(h,n)})})}}var M=s.map(function(e){return E[e]});return C.forEach(function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=M.findIndex(function(e){return e.originalKey===n}))&&(t+=1),t=Math.max(0,t),M=[].concat(M.slice(0,t),[r],M.slice(t))}),o({},c,{changed:T.length||x.length||L.length,first:n&&0===T.length,transitions:M,current:E,deleted:C,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach(function(e){var t=e.slot,n=e.from,r=e.to,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:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Z(y,a),p&&p(l)),!Array.from(y.current.instances).some(function(e){return!e[1].idle})&&(g||s)&&y.current.deleted.length>0&&Z(y),m&&m(l,t,n))},onStart:v&&function(){return v(l,t)},onFrame:h&&function(e){return h(l,t,e)},delay:c,reset:f&&t===G});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=W},,,,,,,,function(e,t,n){"use strict";var r=n(121),o=n(119);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=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(118);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?g.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&&!v[j])){for(var S,E,C=-1,w=0;w<f.length;w++){-1!==(I=O.indexOf(f[w]))&&(-1===C||I<C)&&(C=I)}-1!==(E=-1===C?O.lastIndexOf("@"):O.lastIndexOf("@",C))&&(S=O.slice(0,E),O=O.slice(E+1),this.auth=decodeURIComponent(S)),C=-1;for(w=0;w<d.length;w++){var I;-1!==(I=O.indexOf(d[w]))&&(-1===C||I<C)&&(C=I)}-1===C&&(C=O.length),this.host=O.slice(0,C),O=O.slice(C),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 L=T[w];if(L&&!L.match(p)){for(var N="",A=0,M=L.length;A<M;A++)L.charCodeAt(A)>127?N+="x":N+=L[A];if(!N.match(p)){var R=T.slice(0,w),P=T.slice(w+1),D=L.match(b);D&&(R.push(D[1]),P.unshift(D[2])),P.length&&(O="/"+P.join(".")+O),this.hostname=R.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:"",H=this.hostname||"";this.host=H+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 U=u[w];if(-1!==O.indexOf(U)){var V=encodeURIComponent(U);V===U&&(V=escape(U)),O=O.split(U).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=g.parse(this.query)),O=O.slice(0,K)):t&&(this.search="",this.query={}),O&&(this.pathname=O),v[y]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}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=g.stringify(this.query));var a=this.search||c&&"?"+c||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[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 v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var b=(e.pathname||"").split("/");b.length&&!(e.host=b.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==b[0]&&b.unshift(""),b.length<2&&b.unshift(""),n.pathname=b.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||"",g=n.search||"";n.path=h+g}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("/")||[],S=(b=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(S&&(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&&(""===b[0]?b[0]=e.host:b.unshift(e.host)),e.host=null),j=j&&(""===b[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,_=b;else if(b.length)_||(_=[]),_.pop(),_=_.concat(b),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(S)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],C=(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(""),C&&"/"!==_.join("/").substr(-1)&&_.push("");var B,T=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(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)}},,,,,,,,,function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(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}},,,,function(e,t){!function(){e.exports=this.wp.wordcount}()},,,,,,,,,,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},,,,,,,,,,,function(e,t,n){"use strict";var r=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}},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,p,b,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=""),p=decodeURIComponent(d),b=decodeURIComponent(f),r(c,p)?o(c[p])?c[p].push(b):c[p]=[c[p],b]:c[p]=b}return c};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(117),t.encode=t.stringify=n(116)},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}}},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}},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&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,p=700,b=72,h=128,m="-",v=/^xn--/,g=/[^\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 S(e){throw new RangeError(k[e])}function E(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function C(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){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var r=0;for(e=n?y(e/p):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 L(e){var t,n,r,o,i,c,a,f,p,v,g=[],O=e.length,k=0,j=h,_=b;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&S("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<O;){for(i=k,c=1,a=s;o>=O&&S("invalid-input"),((f=B(e.charCodeAt(o++)))>=s||f>y((l-k)/c))&&S("overflow"),k+=f*c,!(f<(p=a<=_?u:a>=_+d?d:a-_));a+=s)c>y(l/(v=s-p))&&S("overflow"),c*=v;_=x(k-i,t=g.length+1,0==i),y(k/t)>l-j&&S("overflow"),j+=y(k/t),k%=t,g.splice(k++,0,j)}return I(g)}function N(e){var t,n,r,o,i,c,a,f,p,v,g,O,k,j,E,C=[];for(O=(e=w(e)).length,t=h,n=0,i=b,c=0;c<O;++c)(g=e[c])<128&&C.push(_(g));for(r=o=C.length,o&&C.push(m);r<O;){for(a=l,c=0;c<O;++c)(g=e[c])>=t&&g<a&&(a=g);for(a-t>y((l-n)/(k=r+1))&&S("overflow"),n+=(a-t)*k,t=a,c=0;c<O;++c)if((g=e[c])<t&&++n>l&&S("overflow"),g==t){for(f=n,p=s;!(f<(v=p<=i?u:p>=i+d?d:p-i));p+=s)E=f-v,j=s-v,C.push(_(T(v+E%j,0))),f=y(E/j);C.push(_(T(f,0))),i=x(n,k,r==o),n=0,++r}++n,++t}return C.join("")}a={version:"1.4.1",ucs2:{decode:w,encode:I},decode:L,encode:N,toASCII:function(e){return C(e,function(e){return g.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return C(e,function(e){return v.test(e)?L(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return a}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(120)(e),n(68))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},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}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},function(e,t,n){var r=n(126);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}},function(e,t,n){var r,o,i;
/*!
	autosize 4.0.2
	license: MIT
	http://www.jacklmoore.com/autosize
*/o=[e,t],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n="function"==typeof Map?new Map:function(){var e=[],t=[];return{has:function(t){return e.indexOf(t)>-1},get:function(n){return t[e.indexOf(n)]},set:function(n,r){-1===e.indexOf(n)&&(e.push(n),t.push(r))},delete:function(n){var r=e.indexOf(n);r>-1&&(e.splice(r,1),t.splice(r,1))}}}(),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function o(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!n.has(e)){var t=null,o=null,i=null,c=function(){e.clientWidth!==o&&u()},a=function(t){window.removeEventListener("resize",c,!1),e.removeEventListener("input",u,!1),e.removeEventListener("keyup",u,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",u,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),n.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",u,!1),window.addEventListener("resize",c,!1),e.addEventListener("input",u,!1),e.addEventListener("autosize:update",u,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",n.set(e,{destroy:a,update:u}),function(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),u()}()}function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function s(){if(0!==e.scrollHeight){var n=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",o=e.clientWidth,n.forEach(function(e){e.node.scrollTop=e.scrollTop}),r&&(document.documentElement.scrollTop=r)}}function u(){s();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(l("scroll"),s(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(l("hidden"),s(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==o){i=o;var c=r("autosize:resized");try{e.dispatchEvent(c)}catch(e){}}}}function i(e){var t=n.get(e);t&&t.destroy()}function c(e){var t=n.get(e);t&&t.update()}var a=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((a=function(e){return e}).destroy=function(e){return e},a.update=function(e){return e}):((a=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return o(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],i),e},a.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],c),e}),t.default=a,e.exports=t.default})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=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])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var c=n(28),a=n(33),l=n(128),s=n(127),u=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:s(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),c=(n.onChange,n.style),a=(n.innerRef,i(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return o({},a,{saveDOMNodeRef:s,style:u?o({},c,{maxHeight:u}):c,onChange:t.onChange})},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout(function(){return l(e.textarea)}),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=i(e,["children","saveDOMNodeRef"]);return c.createElement("textarea",o({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(){this.props.value!==this.currentValue&&this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.func},t}(c.Component);t.default=u},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",p="left",b="px";var h=void 0;function m(e,t){for(var n=0;n<e.length;n++)t(e[n])}function v(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[p],i=e[f][p];e[f][p]=e[d][p],r[p]="fontSize"===t?"1em":n||0,n=r.pixelLeft+b,r[p]=o,e[f][p]=i}return""===n?"auto":n});var g=["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 S={};function E(e,t,n){if(_(e))return"width"===t?S.viewportWidth(e):S.viewportHeight(e);if(9===e.nodeType)return"width"===t?S.docWidth(e):S.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,i=(h(e),v(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,g.slice(n),r)}m(["Width","Height"],function(e){S["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],S["viewport"+e](n))},S["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 C={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,C,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);S["outer"+t]=function(t,n){return t&&w(t,e,n?0:j)};var n="width"===e?["Left","Right"]:["Top","Bottom"];S[e]=function(t,r){if(void 0===r)return t&&w(t,e,O);if(t){h(t);return v(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},S)},function(e,t,n){"use strict";var r=n(130);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),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),m=void 0,v=void 0,g=void 0,O=void 0,k=void 0,j=void 0,y=void 0,_=void 0,S=void 0,E=void 0;f?(y=t,E=r.height(y),S=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},k={left:p.left-_.left-s,top:p.top-_.top-l},j={left:p.left+h-(_.left+S)+d,top:p.top+b-(_.top+E)+u},O=_):(m=r.offset(t),v=t.clientHeight,g=t.clientWidth,O={left:t.scrollLeft,top:t.scrollTop},k={left:p.left-(m.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:p.top-(m.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},j={left:p.left+h-(m.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(m.top+v+(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)))}},,,,function(e,t){!function(){e.exports=this.wp.tokenList}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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={},p=!0,b={node:n?i(d):d,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){b.isRoot||(b.parent.node[b.key]=e),b.node=e,t&&(p=!1)},delete:function(e){delete b.parent.node[b.key],e&&(p=!1)},remove:function(e){l(b.parent.node)?b.parent.node.splice(b.key,1):delete b.parent.node[b.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return b;function h(){if("object"==typeof b.node&&null!==b.node){b.keys&&b.node_===b.node||(b.keys=c(b.node)),b.isLeaf=0==b.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){b.circular=o[e];break}}else b.isLeaf=!0,b.keys=null;b.notLeaf=!b.isLeaf,b.notRoot=!b.isRoot}h();var m=t.call(b,b.node);return void 0!==m&&b.update&&b.update(m),f.before&&f.before.call(b,b.node),p?("object"!=typeof b.node||null===b.node||b.circular||(o.push(b),h(),s(b.keys,function(t,o){r.push(t),f.pre&&f.pre.call(b,b.node[t],t);var i=e(b.node[t]);n&&u.call(b.node,t)&&(b.node[t]=i.node),i.isLast=o==b.keys.length-1,i.isFirst=0==o,f.post&&f.post.call(b,i),r.pop()}),o.pop()),f.after&&f.after.call(b,b.node),b):b}(e).node}function i(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if(function(e){return"[object Date]"===a(e)}(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}},function(e,t,n){
/*!

 diff v3.5.0

Software License Agreement (BSD License)

Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>

All rights reserved.

Redistribution and use of this software in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above
  copyright notice, this list of conditions and the
  following disclaimer.

* Redistributions in binary form must reproduce the above
  copyright notice, this list of conditions and the
  following disclaimer in the documentation and/or other
  materials provided with the distribution.

* Neither the name of Kevin Decker nor the names of its
  contributors may be used to endorse or promote products
  derived from this software without specific prior
  written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@license
*/
!function(t,n){e.exports=n()}(0,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=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(2),i=n(3),c=n(5),a=n(6),l=n(7),s=n(8),u=n(9),d=n(10),f=n(11),p=n(13),b=n(14),h=n(16),m=n(17);t.Diff=r.default,t.diffChars=o.diffChars,t.diffWords=i.diffWords,t.diffWordsWithSpace=i.diffWordsWithSpace,t.diffLines=c.diffLines,t.diffTrimmedLines=c.diffTrimmedLines,t.diffSentences=a.diffSentences,t.diffCss=l.diffCss,t.diffJson=s.diffJson,t.diffArrays=u.diffArrays,t.structuredPatch=b.structuredPatch,t.createTwoFilesPatch=b.createTwoFilesPatch,t.createPatch=b.createPatch,t.applyPatch=d.applyPatch,t.applyPatches=d.applyPatches,t.parsePatch=f.parsePatch,t.merge=p.merge,t.convertChangesToDMP=h.convertChangesToDMP,t.convertChangesToXML=m.convertChangesToXML,t.canonicalize=s.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:[]}],p=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=l&&p+1>=s)return a([{value:this.join(t),count:t.length}]);function b(){for(var n=-1*u;n<=u;n+=2){var i=void 0,d=f[n-1],p=f[n+1],b=(p?p.newPos:0)-n;d&&(f[n-1]=void 0);var h=d&&d.newPos+1<l,m=p&&0<=b&&b<s;if(h||m){if(!h||m&&d.newPos<p.newPos?(i=o(p),c.pushComponent(i.components,void 0,!0)):((i=d).newPos++,c.pushComponent(i.components,!0,void 0)),b=c.extractCommon(i,t,e,n),i.newPos+1>=l&&b+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();b()||e()},0)}();else for(;u<=d;){var h=b();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 o.diff(e,t,n)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=t.characterDiff=new r.default},function(e,t,n){"use strict";t.__esModule=!0,t.wordDiff=void 0,t.diffWords=function(e,t,n){return n=(0,o.generateOptions)(n,{ignoreWhitespace:!0}),a.diff(e,t,n)},t.diffWordsWithSpace=function(e,t,n){return a.diff(e,t,n)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(4);var i=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,c=/\S/,a=t.wordDiff=new r.default;a.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!c.test(e)&&!c.test(t)},a.tokenize=function(e){for(var t=e.split(/(\s+|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&i.test(t[n])&&i.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 i.diff(e,t,n)},t.diffTrimmedLines=function(e,t,n){var r=(0,o.generateOptions)(n,{ignoreWhitespace:!0});return i.diff(e,t,r)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),o=n(4);var i=t.lineDiff=new r.default;i.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 o.diff(e,t,n)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=t.sentenceDiff=new r.default;o.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 o.diff(e,t,n)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=t.cssDiff=new r.default;o.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 a.diff(e,t,n)},t.canonicalize=l;var o=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),i=n(5);var c=Object.prototype.toString,a=t.jsonDiff=new o.default;function l(e,t,n,o,i){t=t||[],n=n||[],o&&(e=o(i,e));var a=void 0;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var s=void 0;if("[object Array]"===c.call(e)){for(t.push(e),s=new Array(e.length),n.push(s),a=0;a<e.length;a+=1)s[a]=l(e[a],t,n,o,i);return t.pop(),n.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),"object"===(void 0===e?"undefined":r(e))&&null!==e){t.push(e),s={},n.push(s);var u=[],d=void 0;for(d in e)e.hasOwnProperty(d)&&u.push(d);for(u.sort(),a=0;a<u.length;a+=1)s[d=u[a]]=l(e[d],t,n,o,d);t.pop(),n.pop()}else s=e;return s}a.useLongestToken=!0,a.tokenize=i.lineDiff.tokenize,a.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(l(e,null,null,o),o,"  ")},a.equals=function(e,t){return o.default.prototype.equals.call(a,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 o.diff(e,t,n)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));var o=t.arrayDiff=new r.default;o.tokenize=function(e){return e.slice()},o.join=o.removeEmpty=function(e){return e}},function(e,t,n){"use strict";t.__esModule=!0,t.applyPatch=i,t.applyPatches=function(e,t){"string"==typeof e&&(e=(0,r.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 c=i(n,o,t);t.patched(o,c,function(e){if(e)return t.complete(e);r()})})}()};var r=n(11),o=function(e){return e&&e.__esModule?e:{default:e}}(n(12));function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var i=e.split(/\r\n|[\n\v\f\r\x85]/),c=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,p=void 0,b=void 0;function h(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],o=r.length>0?r[0]:" ",c=r.length>0?r.substr(1):r;if(" "===o||"-"===o){if(!l(t+1,i[t],o,c)&&++s>u)return!1;t++}}return!0}for(var m=0;m<a.length;m++){for(var v=a[m],g=i.length-v.oldLines,O=0,k=f+v.oldStart-1,j=(0,o.default)(k,d,g);void 0!==O;O=j())if(h(v,k+O)){v.offset=f+=O;break}if(void 0===O)return!1;d=v.offset+v.oldStart+v.oldLines}for(var y=0,_=0;_<a.length;_++){var S=a[_],E=S.oldStart+S.offset+y-1;y+=S.newLines-S.oldLines,E<0&&(E=0);for(var C=0;C<S.lines.length;C++){var w=S.lines[C],I=w.length>0?w[0]:" ",B=w.length>0?w.substr(1):w,T=S.linedelimiters[C];if(" "===I)E++;else if("-"===I)i.splice(E,1),c.splice(E,1);else if("+"===I)i.splice(E,0,B),c.splice(E,0,T),E++;else if("\\"===I){var x=S.lines[C-1]?S.lines[C-1][0]:null;"+"===x?p=!0:"-"===x&&(b=!0)}}}if(p)for(;!i[i.length-1];)i.pop(),c.pop();else b&&(i.push(""),c.push("\n"));for(var L=0;L<i.length-1;L++)i[L]=i[L]+c[L];return i.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++],c=o.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),a={oldStart:+c[1],oldLines:+c[2]||1,newStart:+c[3],newLines:+c[4]||1,lines:[],linedelimiters:[]},l=0,s=0;i<n.length&&!(0===n[i].indexOf("--- ")&&i+2<n.length&&0===n[i+1].indexOf("+++ ")&&0===n[i+2].indexOf("@@"));i++){var u=0==n[i].length&&i!=n.length-1?" ":n[i][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;a.lines.push(n[i]),a.linedelimiters.push(r[i]||"\n"),"+"===u?l++:"-"===u?s++:" "===u&&(l++,s++)}if(l||1!==a.newLines||(a.newLines=0),s||1!==a.oldLines||(a.oldLines=0),t.strict){if(l!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return a}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=[];var o=0,i=0,c=0,a=0;for(;o<e.hunks.length||i<t.hunks.length;){var b=e.hunks[o]||{oldStart:1/0},h=t.hunks[i]||{oldStart:1/0};if(d(b,h))r.hunks.push(f(b,c)),o++,a+=b.newLines-b.oldLines;else if(d(h,b))r.hunks.push(f(h,a)),i++,c+=h.newLines-h.oldLines;else{var m={oldStart:Math.min(b.oldStart,h.oldStart),oldLines:0,newStart:Math.min(b.newStart+c,h.oldStart+a),newLines:0,lines:[]};p(m,b.oldStart,b.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;var r=0;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++});return{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 p(e,t,n,r,o){var i={offset:t,lines:n,index:0},l={offset:r,lines:o,index:0};for(v(e,i,l),v(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 b(e,i,l)}g(e,i),g(e,l),a(e)}function b(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){var n=[],r=[],o=0,i=!1,c=!1;for(;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}"+"===(t[o]||"")[0]&&i&&(c=!0);if(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 v(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 g(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,p=0,b=[],h=1,m=1,v=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,p=m,a&&(b=l.context>0?u(a.lines.slice(-l.context)):[],f-=b.length,p-=b.length)}(c=b).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 v;(v=b).push.apply(v,o(u(r)))}else{var g,O=Math.min(r.length,l.context);(g=b).push.apply(g,o(u(r.slice(0,O))));var k={oldStart:f,oldLines:h-f+O,newStart:p,newLines:m-p+O,lines:b};if(e>=s.length-2&&r.length<=l.context){var j=/\n$/.test(n),y=/\n$/.test(i);0!=r.length||j?j&&y||b.push("\\ No newline at end of file"):b.splice(k.oldLines,0,"\\ No newline at end of file")}d.push(k),f=0,p=0,b=[]}h+=r.length,m+=r.length}},g=0;g<s.length;g++)v(g);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){if(e.length!==t.length)return!1;return 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";function n(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&amp;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;")).replace(/"/g,"&quot;")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],r=0;r<e.length;r++){var o=e[r];o.added?t.push("<ins>"):o.removed&&t.push("<del>"),t.push(n(o.value)),o.added?t.push("</ins>"):o.removed&&t.push("</del>")}return t.join("")}}])})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r={};n.d(r,"resetBlocks",function(){return ft}),n.d(r,"receiveBlocks",function(){return pt}),n.d(r,"updateBlockAttributes",function(){return bt}),n.d(r,"updateBlock",function(){return ht}),n.d(r,"selectBlock",function(){return mt}),n.d(r,"selectPreviousBlock",function(){return vt}),n.d(r,"selectNextBlock",function(){return gt}),n.d(r,"startMultiSelect",function(){return Ot}),n.d(r,"stopMultiSelect",function(){return kt}),n.d(r,"multiSelect",function(){return jt}),n.d(r,"clearSelectedBlock",function(){return yt}),n.d(r,"toggleSelection",function(){return _t}),n.d(r,"replaceBlocks",function(){return Et}),n.d(r,"replaceBlock",function(){return Ct}),n.d(r,"moveBlocksDown",function(){return It}),n.d(r,"moveBlocksUp",function(){return Bt}),n.d(r,"moveBlockToPosition",function(){return Tt}),n.d(r,"insertBlock",function(){return xt}),n.d(r,"insertBlocks",function(){return Lt}),n.d(r,"showInsertionPoint",function(){return Nt}),n.d(r,"hideInsertionPoint",function(){return At}),n.d(r,"setTemplateValidity",function(){return Mt}),n.d(r,"synchronizeTemplate",function(){return Rt}),n.d(r,"mergeBlocks",function(){return Pt}),n.d(r,"removeBlocks",function(){return Dt}),n.d(r,"removeBlock",function(){return Ft}),n.d(r,"replaceInnerBlocks",function(){return Ht}),n.d(r,"toggleBlockMode",function(){return Ut}),n.d(r,"startTyping",function(){return Vt}),n.d(r,"stopTyping",function(){return zt}),n.d(r,"enterFormattedText",function(){return Kt}),n.d(r,"exitFormattedText",function(){return Wt}),n.d(r,"selectionChange",function(){return qt}),n.d(r,"insertDefaultBlock",function(){return Gt}),n.d(r,"updateBlockListSettings",function(){return $t}),n.d(r,"updateSettings",function(){return Yt}),n.d(r,"__unstableSaveReusableBlock",function(){return Xt}),n.d(r,"__unstableMarkLastChangeAsPersistent",function(){return Zt}),n.d(r,"__unstableMarkAutomaticChange",function(){return Jt}),n.d(r,"setNavigationMode",function(){return Qt});var o={};n.d(o,"INSERTER_UTILITY_HIGH",function(){return tn}),n.d(o,"INSERTER_UTILITY_MEDIUM",function(){return nn}),n.d(o,"INSERTER_UTILITY_LOW",function(){return rn}),n.d(o,"INSERTER_UTILITY_NONE",function(){return on}),n.d(o,"getBlockName",function(){return ln}),n.d(o,"isBlockValid",function(){return sn}),n.d(o,"getBlockAttributes",function(){return un}),n.d(o,"getBlock",function(){return dn}),n.d(o,"__unstableGetBlockWithoutInnerBlocks",function(){return fn}),n.d(o,"getBlocks",function(){return pn}),n.d(o,"getClientIdsOfDescendants",function(){return bn}),n.d(o,"getClientIdsWithDescendants",function(){return hn}),n.d(o,"getGlobalBlockCount",function(){return mn}),n.d(o,"getBlocksByClientId",function(){return vn}),n.d(o,"getBlockCount",function(){return gn}),n.d(o,"getSelectionStart",function(){return On}),n.d(o,"getSelectionEnd",function(){return kn}),n.d(o,"getBlockSelectionStart",function(){return jn}),n.d(o,"getBlockSelectionEnd",function(){return yn}),n.d(o,"getSelectedBlockCount",function(){return _n}),n.d(o,"hasSelectedBlock",function(){return Sn}),n.d(o,"getSelectedBlockClientId",function(){return En}),n.d(o,"getSelectedBlock",function(){return Cn}),n.d(o,"getBlockRootClientId",function(){return wn}),n.d(o,"getBlockHierarchyRootClientId",function(){return In}),n.d(o,"getAdjacentBlockClientId",function(){return Bn}),n.d(o,"getPreviousBlockClientId",function(){return Tn}),n.d(o,"getNextBlockClientId",function(){return xn}),n.d(o,"getSelectedBlocksInitialCaretPosition",function(){return Ln}),n.d(o,"getSelectedBlockClientIds",function(){return Nn}),n.d(o,"getMultiSelectedBlockClientIds",function(){return An}),n.d(o,"getMultiSelectedBlocks",function(){return Mn}),n.d(o,"getFirstMultiSelectedBlockClientId",function(){return Rn}),n.d(o,"getLastMultiSelectedBlockClientId",function(){return Pn}),n.d(o,"isFirstMultiSelectedBlock",function(){return Dn}),n.d(o,"isBlockMultiSelected",function(){return Fn}),n.d(o,"isAncestorMultiSelected",function(){return Hn}),n.d(o,"getMultiSelectedBlocksStartClientId",function(){return Un}),n.d(o,"getMultiSelectedBlocksEndClientId",function(){return Vn}),n.d(o,"getBlockOrder",function(){return zn}),n.d(o,"getBlockIndex",function(){return Kn}),n.d(o,"isBlockSelected",function(){return Wn}),n.d(o,"hasSelectedInnerBlock",function(){return qn}),n.d(o,"isBlockWithinSelection",function(){return Gn}),n.d(o,"hasMultiSelection",function(){return $n}),n.d(o,"isMultiSelecting",function(){return Yn}),n.d(o,"isSelectionEnabled",function(){return Xn}),n.d(o,"getBlockMode",function(){return Zn}),n.d(o,"isTyping",function(){return Jn}),n.d(o,"isCaretWithinFormattedText",function(){return Qn}),n.d(o,"getBlockInsertionPoint",function(){return er}),n.d(o,"isBlockInsertionPointVisible",function(){return tr}),n.d(o,"isValidTemplate",function(){return nr}),n.d(o,"getTemplate",function(){return rr}),n.d(o,"getTemplateLock",function(){return or}),n.d(o,"canInsertBlockType",function(){return cr}),n.d(o,"getInserterItems",function(){return sr}),n.d(o,"hasInserterItems",function(){return ur}),n.d(o,"getBlockListSettings",function(){return dr}),n.d(o,"getSettings",function(){return fr}),n.d(o,"isLastBlockChangePersistent",function(){return pr}),n.d(o,"__experimentalGetParsedReusableBlock",function(){return br}),n.d(o,"__unstableIsLastBlockChangeIgnored",function(){return hr}),n.d(o,"__experimentalGetLastBlockAttributeChanges",function(){return mr}),n.d(o,"isNavigationMode",function(){return gr}),n.d(o,"didAutomaticChange",function(){return Or});var i=n(9),c=n(22),a=n(42),l=n(8),s=n(17),u=n(0),d=n(16),f=n.n(d),p=n(2),b=n(7),h=n(24),m=n(4),v=n(47),g=n.n(v),O=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},k=function(e,t){return Object(p.find)(e,{color:t})};function j(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}var y=n(12),_=n(11),S=n(13),E=n(15),C=n(5),w=n(14),I=n(10),B=[],T=function(e){return Object(b.createHigherOrderComponent)(function(t){return function(n){return Object(u.createElement)(t,Object(s.a)({},n,{colors:e}))}},"withCustomColorPalette")},x=function(){return Object(m.withSelect)(function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],B)}})};function L(e,t){var n=Object(p.reduce)(e,function(e,t){return Object(l.a)({},e,Object(p.isString)(t)?Object(I.a)({},t,Object(p.kebabCase)(t)):t)},{});return Object(b.compose)([t,function(e){return function(t){function r(e){var t;return Object(y.a)(this,r),(t=Object(S.a)(this,Object(E.a)(r).call(this,e))).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(C.a)(t))},t.state={},t}return Object(w.a)(r,t),Object(_.a)(r,[{key:"getMostReadableColor",value:function(e){return function(e,t){return g.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=k(n.props.colors,r);n.props.setAttributes((o={},Object(I.a)(o,e,i&&i.slug?i.slug:void 0),Object(I.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,Object(l.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=O(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(l.a)({},c,{class:j(n,c.slug)}),e},{})}}]),r}(u.Component)}])}function N(e){return function(){for(var t=T(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(b.createHigherOrderComponent)(L(r,t),"withCustomColors")}}function A(){for(var e=x(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(b.createHigherOrderComponent)(L(n,e),"withColors")}var M=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function R(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var P=n(3),D=Object(m.withSelect)(function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}})(P.FontSizePicker),F=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(b.createHigherOrderComponent)(Object(b.compose)([Object(m.withSelect)(function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}}),function(e){return function(t){function n(e){var t;return Object(y.a)(this,n),(t=Object(S.a)(this,Object(E.a)(n).call(this,e))).setters=t.createSetters(),t.state={},t}return Object(w.a)(n,t),Object(_.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(I.a)(o,e,i&&i.slug?i.slug:void 0),Object(I.a)(o,t,i&&i.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(u.createElement)(e,Object(l.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=M(o,i,n[t]);return e[r]=Object(l.a)({},c,{class:R(i)}),e},{});return Object(l.a)({},t,c)}}]),n}(u.Component)}]),"withFontSizes")},H=n(1),U=[{icon:"editor-alignleft",title:Object(H.__)("Align Text Left"),align:"left"},{icon:"editor-aligncenter",title:Object(H.__)("Align Text Center"),align:"center"},{icon:"editor-alignright",title:Object(H.__)("Align Text Right"),align:"right"}];var V=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?U:r,i=e.label,c=void 0===i?Object(H.__)("Change text alignment"):i,a=e.isCollapsed,s=void 0===a||a,d=Object(p.find)(o,function(e){return e.align===t});return Object(u.createElement)(P.Toolbar,{isCollapsed:s,icon:d?d.icon:"editor-alignleft",label:c,controls:o.map(function(e){var r=e.align,o=t===r;return Object(l.a)({},e,{isActive:o,onClick:function(e){return function(){return n(t===e?void 0:e)}}(r)})})})},z=Object(u.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),K=z.Consumer,W=z.Provider,q=function(e){return Object(b.createHigherOrderComponent)(function(t){return function(n){return Object(u.createElement)(K,null,function(r){return Object(u.createElement)(t,Object(s.a)({},n,e(r,n)))})}},"withBlockEditContext")},G=Object(b.createHigherOrderComponent)(function(e){return function(t){return Object(u.createElement)(K,null,function(n){return n.isSelected&&Object(u.createElement)(e,t)})}},"ifBlockEditSelected");var $=Object(b.compose)([q(function(e){return{blockName:e.name}}),function(e){return function(t){var n=t.completers,r=void 0===n?[]:n;return Object(h.hasFilter)("editor.Autocomplete.completers")&&(r=Object(h.applyFilters)("editor.Autocomplete.completers",r.map(p.clone),t.blockName)),Object(u.createElement)(e,Object(s.a)({},t,{completers:r}))}}])(P.Autocomplete),Y={left:{icon:"align-left",title:Object(H.__)("Align Left")},center:{icon:"align-center",title:Object(H.__)("Align Center")},right:{icon:"align-right",title:Object(H.__)("Align Right")},wide:{icon:"align-wide",title:Object(H.__)("Wide Width")},full:{icon:"align-full-width",title:Object(H.__)("Full Width")}},X=["left","center","right","wide","full"],Z="center",J=["wide","full"];var Q=Object(b.compose)(q(function(e){return{clientId:e.clientId}}),Object(m.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?X:r,i=e.isCollapsed,c=void 0===i||i,a=e.wideControlsEnabled,s=void 0!==a&&a?o:o.filter(function(e){return-1===J.indexOf(e)}),d=Y[t],f=Y[Z];return Object(u.createElement)(P.Toolbar,{isCollapsed:c,icon:d?d.icon:f.icon,label:Object(H.__)("Change alignment"),controls:s.map(function(e){return Object(l.a)({},Y[e],{isActive:t===e,onClick:function(e){return function(){return n(t===e?void 0:e)}}(e)})})})}),ee=Object(P.createSlotFill)("BlockControls"),te=ee.Fill,ne=ee.Slot,re=G(function(e){var t=e.controls,n=e.children;return Object(u.createElement)(te,null,Object(u.createElement)(P.Toolbar,{controls:t}),n)});re.Slot=ne;var oe=re,ie=n(44),ce=n.n(ie),ae=Object(P.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=f()(c,n.className),l=o.edit||o.save;return Object(u.createElement)(l,Object(s.a)({},e,{className:a}))}),le=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).propsToContext=ce()(e.propsToContext.bind(Object(C.a)(e)),{maxSize:1}),e}return Object(w.a)(t,e),Object(_.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(u.createElement)(W,{value:c},Object(u.createElement)(ae,this.props))}}]),t}(u.Component),se=Object(P.createSlotFill)("BlockFormatControls"),ue=se.Fill,de=se.Slot,fe=G(ue);fe.Slot=de;var pe=fe;function be(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(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{d:"M19 7h-1V5h-4v2h-4V5H6v2H5c-1.1 0-2 .9-2 2v10h18V9c0-1.1-.9-2-2-2zm0 10H5V9h14v8z"}))});var i=Object(u.createElement)(P.Icon,{icon:t&&t.src?t.src:t}),c=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(u.createElement)("span",{style:c,className:f()("editor-block-icon block-editor-block-icon",o,{"has-colors":r})},i)}var he=n(19);function me(e){var t=e.blocks,n=e.selectedBlockClientId,r=e.selectBlock,o=e.showNestedBlocks;return Object(u.createElement)("ul",{className:"editor-block-navigation__list block-editor-block-navigation__list",role:"list"},Object(p.map)(t,function(e){var t=Object(i.getBlockType)(e.name),c=e.clientId===n;return Object(u.createElement)("li",{key:e.clientId},Object(u.createElement)("div",{className:"editor-block-navigation__item block-editor-block-navigation__item"},Object(u.createElement)(P.Button,{className:f()("editor-block-navigation__item-button block-editor-block-navigation__item-button",{"is-selected":c}),onClick:function(){return r(e.clientId)}},Object(u.createElement)(be,{icon:t.icon,showColors:!0}),t.title,c&&Object(u.createElement)("span",{className:"screen-reader-text"},Object(H.__)("(selected block)")))),o&&!!e.innerBlocks&&!!e.innerBlocks.length&&Object(u.createElement)(me,{blocks:e.innerBlocks,selectedBlockClientId:n,selectBlock:r,showNestedBlocks:!0}))}))}var ve=Object(b.compose)(Object(m.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(m.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(u.createElement)(P.NavigableMenu,{role:"presentation",className:"editor-block-navigation__container block-editor-block-navigation__container"},Object(u.createElement)("p",{className:"editor-block-navigation__label block-editor-block-navigation__label"},Object(H.__)("Block navigation")),i&&Object(u.createElement)(me,{blocks:[t],selectedBlockClientId:r,selectBlock:o,showNestedBlocks:!0}),!i&&Object(u.createElement)(me,{blocks:n,selectedBlockClientId:r,selectBlock:o}))}),ge=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20"},Object(u.createElement)(P.Path,{d:"M5 5H3v2h2V5zm3 8h11v-2H8v2zm9-8H6v2h11V5zM7 11H5v2h2v-2zm0 8h2v-2H7v2zm3-2v2h11v-2H10z"}));var Oe=Object(m.withSelect)(function(e){return{hasBlocks:!!e("core/block-editor").getBlockCount()}})(function(e){var t=e.hasBlocks,n=e.isDisabled,r=t&&!n;return Object(u.createElement)(P.Dropdown,{renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(u.Fragment,null,r&&Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},he.rawShortcut.access("o"),n)}),Object(u.createElement)(P.IconButton,{icon:ge,"aria-expanded":t,onClick:r?n:void 0,label:Object(H.__)("Block navigation"),className:"editor-block-navigation block-editor-block-navigation",shortcut:he.displayShortcut.access("o"),"aria-disabled":!r}))},renderContent:function(e){var t=e.onClose;return Object(u.createElement)(ve,{onSelect:t})}})}),ke=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(P.Path,{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"})),je=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(P.Path,{d:"M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"})),ye={top:{icon:Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},Object(u.createElement)(P.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(u.createElement)(P.Path,{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"})),title:Object(H._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:je,title:Object(H._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:ke,title:Object(H._x)("Vertically Align Bottom","Block vertical alignment setting")}},_e=["top","center","bottom"],Se="top";var Ee=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?_e:r,i=e.isCollapsed,c=void 0===i||i,a=ye[t],s=ye[Se];return Object(u.createElement)(P.Toolbar,{isCollapsed:c,icon:a?a.icon:s.icon,label:Object(H._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map(function(e){return Object(l.a)({},ye[e],{isActive:t===e,onClick:function(e){return function(){return n(t===e?void 0:e)}}(e)})})})};var Ce=Object(m.withSelect)(function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}})(function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r}),we=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onFilesDrop=e.onFilesDrop.bind(Object(C.a)(e)),e.onHTMLDrop=e.onHTMLDrop.bind(Object(C.a)(e)),e.onDrop=e.onDrop.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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){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;if(function(e){return"block"===e}(a.type)&&!function(e,t){return e===t}(s,o)&&!function(e,t){return i([e]).some(function(e){return e===t})}(s,o||r)){var d=o?c(o,r):void 0,f=this.getInsertIndex(t),p=d&&u<d&&function(e,t){return e===t||1==!e&&1==!t}(l,r)?f-1:f;this.props.moveBlockToPosition(s,l,p)}}},{key:"render",value:function(){if(this.props.isLockedAll)return null;var e=void 0===this.getInsertIndex();return Object(u.createElement)(Ce,null,Object(u.createElement)(P.DropZone,{className:f()("editor-block-drop-zone block-editor-block-drop-zone",{"is-appender":e}),onFilesDrop:this.onFilesDrop,onHTMLDrop:this.onHTMLDrop,onDrop:this.onDrop}))}}]),t}(u.Component),Ie=Object(b.compose)(Object(m.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(m.withSelect)(function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getClientIdsOfDescendants,i=r.getTemplateLock,c=r.getBlockIndex;return{isLockedAll:"all"===i(n),getClientIdsOfDescendants:o,getBlockIndex:c}}),Object(P.withFilters)("editor.BlockDropZone"))(we),Be=n(18),Te=n(63),xe=n.n(Te),Le=n(27),Ne=n(23),Ae=n(20),Me={insertUsage:{}},Re={alignWide:!1,colors:[{name:Object(H.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(H.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(H.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(H.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(H.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(H.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(H.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(H.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(H.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"},{name:Object(H.__)("Very light gray"),slug:"very-light-gray",color:"#eeeeee"},{name:Object(H.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(H.__)("Very dark gray"),slug:"very-dark-gray",color:"#313131"}],fontSizes:[{name:Object(H._x)("Small","font size name"),size:13,slug:"small"},{name:Object(H._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(H._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(H._x)("Large","font size name"),size:36,slug:"large"},{name:Object(H._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",label:Object(H.__)("Thumbnail")},{slug:"medium",label:Object(H.__)("Medium")},{slug:"large",label:Object(H.__)("Large")},{slug:"full",label:Object(H.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,showInserterHelpPanel:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalEnableMenuBlock:!1,__experimentalBlockDirectory:!1};function Pe(e,t,n){return[].concat(Object(Be.a)(e.slice(0,n)),Object(Be.a)(Object(p.castArray)(t)),Object(Be.a)(e.slice(n)))}function De(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(Be.a)(e);return o.splice(t,r),Pe(o,e.slice(t,t+r),n)}function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(I.a)({},t,[]);return e.forEach(function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,Fe(o,r))}),n}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce(function(e,n){return Object.assign(e,Object(I.a)({},n.clientId,t),He(n.innerBlocks,n.clientId))},{})}function Ue(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(Be.a)(e);r.length;){var o=r.shift(),i=o.innerBlocks,c=Object(Ae.a)(o,["innerBlocks"]);r.push.apply(r,Object(Be.a)(i)),n[c.clientId]=t(c)}return n}function Ve(e){return Ue(e,function(e){return Object(p.omit)(e,"attributes")})}function ze(e){return Ue(e,function(e){return e.attributes})}function Ke(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&e.clientId===t.clientId&&function(e,t){return Object(p.isEqual)(Object(p.keys)(e),Object(p.keys)(t))}(e.attributes,t.attributes)}var We=function(e){return e.reduce(function(e,t){return e[t]={},e},{})};var qe=Object(p.flow)(m.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(l.a)({},t)).attributes=Object(p.mapValues)(t.attributes,function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?Object(l.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)(Ue(n.blocks),function(){return{}});break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var i=Object(p.keys)(Ue(n.blocks));n.rootClientId&&i.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,We(o(i)));break;case"UPDATE_BLOCK":case"UPDATE_BLOCK_ATTRIBUTES":r.cache=Object(l.a)({},r.cache,We(o([n.clientId])));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var c=We(o(n.replacedClientIds));r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.replacedClientIds),Object(p.omit)(c,n.replacedClientIds),We(Object(p.keys)(Ue(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=Object(l.a)({},Object(p.omit)(r.cache,n.removedClientIds),We(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(l.a)({},r.cache,We(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var s=[];n.rootClientId&&s.push(n.rootClientId),r.cache=Object(l.a)({},r.cache,We(o(s)));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(l.a)({},r.cache,We(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(Be.a)(n)),(o=n).push.apply(o,Object(Be.a)(t.order[n[r]])))}return n};if(t)switch(n.type){case"REMOVE_BLOCKS":n=Object(l.a)({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=Object(l.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(l.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(Be.a)(n),[r],Object(Be.a)(e(t,r)))},[])}(t.order);return Object(l.a)({},t,{byClientId:Object(l.a)({},Object(p.omit)(t.byClientId,r),Ve(n.blocks)),attributes:Object(l.a)({},Object(p.omit)(t.attributes,r),ze(n.blocks)),order:Object(l.a)({},Object(p.omit)(t.order,r),Fe(n.blocks)),parents:Object(l.a)({},Object(p.omit)(t.parents,r),He(n.blocks)),cache:Object(l.a)({},Object(p.omit)(t.cache,r),Object(p.mapValues)(Ue(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(l.a)({},o,{isPersistentChange:c})}return o=Object(l.a)({},o,{isPersistentChange:i||!Ke(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 Ve(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,Ve(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(l.a)({},e,Object(I.a)({},t.clientId,Object(l.a)({},e[t.clientId],n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),Ve(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 ze(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return Object(l.a)({},e,ze(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?Object(l.a)({},e,Object(I.a)({},t.clientId,Object(l.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=function(e,t){return e===t?Object(l.a)({},e):t}(e[t.clientId],n))[o]=r),n},e[t.clientId]);return n===e[t.clientId]?e:Object(l.a)({},e,Object(I.a)({},t.clientId,n));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),ze(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 Fe(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,Object(p.omit)(Fe(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],i=Fe(t.blocks,r),c=t.index,a=void 0===c?o.length:c;return Object(l.a)({},e,i,Object(I.a)({},r,Pe(o,i[r],a)));case"MOVE_BLOCK_TO_POSITION":var s,u=t.fromRootClientId,d=void 0===u?"":u,f=t.toRootClientId,b=void 0===f?"":f,h=t.clientId,m=t.index,v=void 0===m?e[b].length:m;if(d===b){var g=e[b].indexOf(h);return Object(l.a)({},e,Object(I.a)({},b,De(e[b],g,v)))}return Object(l.a)({},e,(s={},Object(I.a)(s,d,Object(p.without)(e[d],h)),Object(I.a)(s,b,Pe(e[b],h,v)),s));case"MOVE_BLOCKS_UP":var O=t.clientIds,k=t.rootClientId,j=void 0===k?"":k,y=Object(p.first)(O),_=e[j];if(!_.length||y===Object(p.first)(_))return e;var S=_.indexOf(y);return Object(l.a)({},e,Object(I.a)({},j,De(_,S,S-1,O.length)));case"MOVE_BLOCKS_DOWN":var E=t.clientIds,C=t.rootClientId,w=void 0===C?"":C,B=Object(p.first)(E),T=Object(p.last)(E),x=e[w];if(!x.length||T===Object(p.last)(x))return e;var L=x.indexOf(B);return Object(l.a)({},e,Object(I.a)({},w,De(x,L,L+1,E.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var A=Fe(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return Object(l.a)({},e,Object(p.omit)(A,""))},function(e){return Object(p.mapValues)(e,function(e){return Object(p.reduce)(e,function(e,t){return t===N[0]?[].concat(Object(Be.a)(e),Object(Be.a)(A[""])):(-1===N.indexOf(t)&&e.push(t),e)},[])})}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,function(e){return p.without.apply(void 0,[e].concat(Object(Be.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 He(t.blocks);case"RECEIVE_BLOCKS":return Object(l.a)({},e,He(t.blocks));case"INSERT_BLOCKS":return Object(l.a)({},e,He(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return Object(l.a)({},e,Object(I.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(l.a)({},Object(p.omit)(e,t.replacedClientIds),He(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e}});function Ge(){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 $e=Object(m.combineReducers)({blocks:qe,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},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 Ge(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 Ge(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(l.a)({},e,Object(I.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(l.a)({},e,Object(I.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(l.a)({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return Object(l.a)({},e,t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Me,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(l.a)({},e,{insertUsage:Object(l.a)({},e.insertUsage,Object(I.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(I.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return Object(I.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"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":if("final"!==e)return e}}}),Ye=n(69),Xe=n.n(Ye),Ze=n(200),Je=n.n(Ze),Qe=n(45),et=n(21),tt=n.n(et);function nt(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 rt={SELECT:Object(m.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(Be.a)(i))}})},ot=tt.a.mark(dt),it=tt.a.mark(vt),ct=tt.a.mark(gt),at=tt.a.mark(Et),lt=tt.a.mark(Tt),st=tt.a.mark(Lt),ut=tt.a.mark(Dt);function dt(){return tt.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=6;break}return e.next=6,Gt();case 6:case"end":return e.stop()}},ot)}function ft(e){return{type:"RESET_BLOCKS",blocks:e}}function pt(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function bt(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientId:e,attributes:t}}function ht(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function mt(e){return{type:"SELECT_BLOCK",initialPosition:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,clientId:e}}function vt(e){var t;return tt.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,nt("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,mt(t,-1);case 6:case"end":return n.stop()}},it)}function gt(e){var t;return tt.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,nt("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=6;break}return n.next=6,mt(t);case 6:case"end":return n.stop()}},ct)}function Ot(){return{type:"START_MULTI_SELECT"}}function kt(){return{type:"STOP_MULTI_SELECT"}}function jt(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function yt(){return{type:"CLEAR_SELECTED_BLOCK"}}function _t(){return{type:"TOGGLE_SELECTION",isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}function St(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(l.a)({},e,{attributes:Object(l.a)({},i,{className:"".concat(r||""," is-style-").concat(c).trim()})})})}function Et(e,t,n){var r,o,i;return tt.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return e=Object(p.castArray)(e),c.t0=St,c.t1=Object(p.castArray)(t),c.next=5,nt("core/block-editor","getSettings");case 5:return c.t2=c.sent,t=(0,c.t0)(c.t1,c.t2),c.next=9,nt("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,nt("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(dt(),"t3",24);case 24:case"end":return c.stop()}},at)}function Ct(e,t){return Et(e,t)}function wt(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var It=wt("MOVE_BLOCKS_DOWN"),Bt=wt("MOVE_BLOCKS_UP");function Tt(e){var t,n,r,o,i,c,a=arguments;return tt.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,nt("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,nt("core/block-editor","getBlockName",e);case 17:return c=l.sent,l.next=20,nt("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()}},lt)}function xt(e,t,n){return Lt([e],t,n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function Lt(e,t,n){var r,o,i,c,a,l,s,u,d=arguments;return tt.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=St,f.t1=Object(p.castArray)(e),f.next=5,nt("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,nt("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()}},st,null,[[11,24,28,36],[29,,31,35]])}function Nt(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function At(){return{type:"HIDE_INSERTION_POINT"}}function Mt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Rt(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Pt(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Dt(e){var t,n=arguments;return tt.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(t=!(n.length>1&&void 0!==n[1])||n[1],e=Object(p.castArray)(e),!t){r.next=5;break}return r.next=5,vt(e[0]);case 5:return r.next=7,{type:"REMOVE_BLOCKS",clientIds:e};case 7:return r.delegateYield(dt(),"t0",8);case 8:case"end":return r.stop()}},ut)}function Ft(e,t){return Dt([e],t)}function Ht(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 Ut(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Vt(){return{type:"START_TYPING"}}function zt(){return{type:"STOP_TYPING"}}function Kt(){return{type:"ENTER_FORMATTED_TEXT"}}function Wt(){return{type:"EXIT_FORMATTED_TEXT"}}function qt(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Gt(e,t,n){var r=Object(i.getDefaultBlockName)();if(r)return xt(Object(i.createBlock)(r,e),n,t)}function $t(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Yt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Xt(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Zt(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Jt(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Qt(){return{type:"SET_NAVIGATION_MODE",isNavigationMode:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}}var en=n(36),tn=3,nn=2,rn=1,on=0,cn=Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(u.createElement)(P.G,null,Object(u.createElement)(P.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"}))),an=[];function ln(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function sn(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function un(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var dn=Object(en.a)(function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:un(e,t),innerBlocks:pn(e,t)}):null},function(e,t){return[e.blocks.cache[t]]}),fn=Object(en.a)(function(e,t){var n=e.blocks.byClientId[t];return n?Object(l.a)({},n,{attributes:un(e,t)}):null},function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]}),pn=Object(en.a)(function(e,t){return Object(p.map)(zn(e,t),function(t){return dn(e,t)})},function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}),bn=function e(t,n){return Object(p.flatMap)(n,function(n){var r=zn(t,n);return[].concat(Object(Be.a)(r),Object(Be.a)(e(t,r)))})},hn=Object(en.a)(function(e){var t=zn(e);return[].concat(Object(Be.a)(t),Object(Be.a)(bn(e,t)))},function(e){return[e.blocks.order]}),mn=Object(en.a)(function(e,t){var n=hn(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]}),vn=Object(en.a)(function(e,t){return Object(p.map)(Object(p.castArray)(t),function(t){return dn(e,t)})},function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]});function gn(e,t){return zn(e,t).length}function On(e){return e.selectionStart}function kn(e){return e.selectionEnd}function jn(e){return e.selectionStart.clientId}function yn(e){return e.selectionEnd.clientId}function _n(e){var t=An(e).length;return t||(e.selectionStart.clientId?1:0)}function Sn(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function En(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function Cn(e){var t=En(e);return t?dn(e,t):null}function wn(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}function In(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Bn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=En(e)),void 0===t&&(t=n<0?Rn(e):Pn(e)),!t)return null;var r=wn(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 Tn(e,t){return Bn(e,t,-1)}function xn(e,t){return Bn(e,t,1)}function Ln(e){return e.initialPosition}var Nn=Object(en.a)(function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return an;if(t.clientId===n.clientId)return[t.clientId];var r=wn(e,t.clientId);if(null===r)return an;var o=zn(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 An(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?an:Nn(e)}var Mn=Object(en.a)(function(e){var t=An(e);return t.length?t.map(function(t){return dn(e,t)}):an},function(e){return[].concat(Object(Be.a)(Nn.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])});function Rn(e){return Object(p.first)(An(e))||null}function Pn(e){return Object(p.last)(An(e))||null}function Dn(e,t){return Rn(e)===t}function Fn(e,t){return-1!==An(e).indexOf(t)}var Hn=Object(en.a)(function(e,t){for(var n=t,r=!1;n&&!r;)r=Fn(e,n=wn(e,n));return r},function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]});function Un(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Vn(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function zn(e,t){return e.blocks.order[t||""]||an}function Kn(e,t,n){return zn(e,n).indexOf(t)}function Wn(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function qn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(zn(e,t),function(t){return Wn(e,t)||Fn(e,t)||n&&qn(e,t,n)})}function Gn(e,t){if(!t)return!1;var n=An(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function $n(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function Yn(e){return e.isMultiSelecting}function Xn(e){return e.isSelectionEnabled}function Zn(e,t){return e.blocksMode[t]||"visual"}function Jn(e){return e.isTyping}function Qn(e){return e.isCaretWithinFormattedText}function er(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var i=o.clientId;return i?(t=wn(e,i)||void 0,n=Kn(e,o.clientId,t)+1):n=zn(e).length,{rootClientId:t,index:n}}function tr(e){return null!==e.insertionPoint}function nr(e){return e.template.isValid}function rr(e){return e.settings.template}function or(e,t){if(!t)return e.settings.templateLock;var n=dr(e,t);return n?n.templateLock:null}var ir=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,t):n},o=Object(i.getBlockType)(t);if(!o)return!1;if(!r(fr(e).allowedBlockTypes,t,!0))return!1;if(!!or(e,n))return!1;var c=dr(e,n),a=r(Object(p.get)(c,["allowedBlocks"]),t),l=r(o.parent,ln(e,n));return null!==a&&null!==l?a||l:null!==a?a:null===l||l},cr=Object(en.a)(ir,function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]});function ar(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var lr=function(e,t,n){return!!Object(i.hasBlockSupport)(t,"inserter",!0)&&ir(e,t.name,n)},sr=Object(en.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t,n){return n?tn:t>0?nn:"common"===e?rn:on},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=Object(i.getBlockTypes)().filter(function(n){return lr(e,n,t)}).map(function(t){var o=t.name,c=!1;Object(i.hasBlockSupport)(t.name,"multiple",!0)||(c=Object(p.some)(vn(e,hn(e)),{name:t.name}));var a=Object(p.isArray)(t.parent),l=ar(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=ir(e,"core/block",t)?vr(e).map(function(t){var o,c="core/block/".concat(t.id),a=br(e,t.id);1===a.length&&(o=Object(i.getBlockType)(a[0].name));var l=ar(e,c)||{},s=l.time,u=l.count,d=void 0===u?0:u,f=n("reusable",d,!1),p=r(s,d);return{id:c,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:o?o.icon:cn,category:"reusable",keywords:[],isDisabled:!1,utility:f,frecency:p}}):[];return Object(p.orderBy)([].concat(Object(Be.a)(o),Object(Be.a)(c)),["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,vr(e),Object(i.getBlockTypes)()]}),ur=Object(en.a)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!Object(p.some)(Object(i.getBlockTypes)(),function(n){return lr(e,n,t)})||ir(e,"core/block",t)&&vr(e).length>0},function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,vr(e),Object(i.getBlockTypes)()]});function dr(e,t){return e.blockListSettings[t]}function fr(e){return e.settings}function pr(e){return e.blocks.isPersistentChange}var br=Object(en.a)(function(e,t){var n=Object(p.find)(vr(e),function(e){return e.id===t});return n?Object(i.parse)(n.content):null},function(e){return[vr(e)]});function hr(e){return e.blocks.isIgnoredChange}function mr(e){return e.lastBlockAttributesChange}function vr(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],an)}function gr(e){return e.isNavigationMode}function Or(e){return!!e.automaticChangeStatus}var kr={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(Ne.a)(e.blocks,2),a=o[0],s=o[1],u=dn(r,a),d=Object(i.getBlockType)(u.name);if(d.merge){var f=dn(r,s),b=Object(i.getBlockType)(f.name),h=On(r),m=h.clientId,v=h.attributeKey,g=h.offset,O=(m===a||m===s)&&void 0!==v&&void 0!==g,k=Object(i.cloneBlock)(u),j=Object(i.cloneBlock)(f);if(O){var y=m===a?k:j,_=y.attributes[v],S=(m===a?d:b).attributes[v].multiline,E=Object(c.insert)(Object(c.create)({html:_,multilineTag:S}),"",g,g);y.attributes[v]=Object(c.toHTMLString)({value:E,multilineTag:S})}var C=u.name===f.name?[j]:Object(i.switchToBlockType)(j,u.name);if(C&&C.length){var w=d.merge(k.attributes,C[0].attributes);if(O){var I=Object(p.findKey)(w,function(e){return"string"==typeof e&&-1!==e.indexOf("")}),B=w[I],T=d.attributes[I].multiline,x=Object(c.create)({html:B,multilineTag:T}),L=x.text.indexOf(""),N=Object(c.remove)(x,L,L+1),A=Object(c.toHTMLString)({value:N,multilineTag:T});w[I]=A,n(qt(u.clientId,I,L,L))}n(Et([u.clientId,f.clientId],[Object(l.a)({},u,{attributes:Object(l.a)({},u.attributes,w)})].concat(Object(Be.a)(C.slice(1)))))}}else n(mt(u.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=rr(n),o=or(n),c=!r||"all"!==o||Object(i.doBlocksMatchTemplate)(e.blocks,r);if(c!==nr(n))return Mt(c)}],MULTI_SELECT:function(e,t){var n=_n((0,t.getState)());Object(Qe.speak)(Object(H.sprintf)(Object(H._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=pn(n),o=rr(n);return ft(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 jr=function(e){var t,n=[Xe()(kr),Je.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(Be.a)(t))(e.dispatch),e.dispatch=r,e},yr={reducer:$e,selectors:o,actions:r,controls:rt},_r=Object(m.registerStore)("core/block-editor",Object(l.a)({},yr,{persist:["preferences"]}));jr(_r);var Sr=Object(b.createHigherOrderComponent)(function(e){return Object(m.withRegistry)(function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,i=Object(Ae.a)(t,["useSubRegistry","registry"]);if(!r)return Object(u.createElement)(e,Object(s.a)({registry:o},i));var c=Object(u.useState)(null),a=Object(Ne.a)(c,2),l=a[0],d=a[1];return Object(u.useEffect)(function(){var e=Object(m.createRegistry)({},o),t=e.registerStore("core/block-editor",yr);jr(t),d(e)},[o]),l?Object(u.createElement)(m.RegistryProvider,{value:l},Object(u.createElement)(e,Object(s.a)({registry:l},i))):null})},"withRegistryProvider"),Er=function(e){function t(){return Object(y.a)(this,t),Object(S.a)(this,Object(E.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){this.props.updateSettings(this.props.settings),this.props.resetBlocks(this.props.value),this.attachChangeObserver(this.props.registry)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.settings,r=t.updateSettings,o=t.value,i=t.resetBlocks,c=t.registry;n!==e.settings&&r(n),c!==e.registry&&this.attachChangeObserver(c),null!==this.isSyncingOutcomingValue&&this.isSyncingOutcomingValue===o?this.isSyncingOutcomingValue=null:o!==e.value&&(this.isSyncingOutcomingValue=null,this.isSyncingIncomingValue=o,i(o))}},{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.isLastBlockChangePersistent,i=n.__unstableIsLastBlockChangeIgnored,c=r(),a=o();this.unsubscribe=e.subscribe(function(){var e=t.props,n=e.onChange,l=void 0===n?p.noop:n,s=e.onInput,u=void 0===s?p.noop:s,d=r(),f=o();if(d!==c&&(t.isSyncingIncomingValue||i()))return t.isSyncingIncomingValue=null,c=d,void(a=f);(d!==c||f&&!a)&&(d!==c&&(t.isSyncingOutcomingValue=d),c=d,(a=f)?l(c):u(c))})}},{key:"render",value:function(){return this.props.children}}]),t}(u.Component),Cr=Object(b.compose)([Sr,Object(m.withDispatch)(function(e){var t=e("core/block-editor");return{updateSettings:t.updateSettings,resetBlocks:t.resetBlocks}})])(Er),wr=function(e){var t=e.children,n=e.clientId,r=e.isBlockInSelection,o=Object(m.useSelect)(function(e){return e("core/block-editor").hasSelectedInnerBlock(n,!0)}),i=r||o;return Object(u.createElement)(m.__experimentalAsyncModeProvider,{value:!i},t)},Ir=n(73),Br=n(26);function Tr(e,t,n,r,o,i){var c=n+1;return e>1?function(e,t,n,r,o){var i=t+1;if(o<0&&n)return Object(H.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(H.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(H.sprintf)(Object(H._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(H.sprintf)(Object(H._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(H.sprintf)(Object(H.__)("Block %s is the only block, and cannot be moved"),t):i>0&&!o?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d down to position %3$d"),t,c,c+1):i>0&&o?Object(H.sprintf)(Object(H.__)("Block %s is at the end of the content and can’t be moved down"),t):i<0&&!r?Object(H.sprintf)(Object(H.__)("Move %1$s block from position %2$d up to position %3$d"),t,c,c-1):i<0&&r?Object(H.sprintf)(Object(H.__)("Block %s is at the beginning of the content and can’t be moved up"),t):void 0}var xr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "})),Lr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.Polygon,{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "})),Nr=Object(u.createElement)(P.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(P.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"})),Ar=Object(m.withSelect)(function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlockIndex,i=(0,r.getBlockRootClientId)(n);return{index:o(n,i),rootClientId:i}})(function(e){var t=e.children,n=e.clientId,r=e.rootClientId,o=e.blockElementId,i=e.index,c=e.onDragStart,a=e.onDragEnd,l={type:"block",srcIndex:i,srcRootClientId:r,srcClientId:n};return Object(u.createElement)(P.Draggable,{elementId:o,transferData:l,onDragStart:c,onDragEnd:a},function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({onDraggableStart:n,onDraggableEnd:r})})}),Mr=function(e){var t=e.isVisible,n=e.className,r=e.icon,o=e.onDragStart,i=e.onDragEnd,c=e.blockElementId,a=e.clientId;if(!t)return null;var l=f()("editor-block-mover__control-drag-handle block-editor-block-mover__control-drag-handle",n);return Object(u.createElement)(Ar,{clientId:a,blockElementId:c,onDragStart:o,onDragEnd:i},function(e){var t=e.onDraggableStart,n=e.onDraggableEnd;return Object(u.createElement)("div",{className:l,"aria-hidden":"true",onDragStart:t,onDragEnd:n,draggable:!0},r)})},Rr=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(C.a)(e)),e.onBlur=e.onBlur.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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.isFirst,o=e.isLast,i=e.isDraggable,c=e.onDragStart,a=e.onDragEnd,l=e.clientIds,s=e.blockElementId,d=e.blockType,b=e.firstIndex,h=e.isLocked,m=e.instanceId,v=e.isHidden,g=e.rootClientId,O=this.state.isFocused,k=Object(p.castArray)(l).length;return h||r&&o&&!g?null:Object(u.createElement)("div",{className:f()("editor-block-mover block-editor-block-mover",{"is-visible":O||!v})},Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:r?null:t,icon:xr,label:Object(H.__)("Move up"),"aria-describedby":"block-editor-block-mover__up-description-".concat(m),"aria-disabled":r,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)(Mr,{className:"editor-block-mover__control block-editor-block-mover__control",icon:Nr,clientId:l,blockElementId:s,isVisible:i,onDragStart:c,onDragEnd:a}),Object(u.createElement)(P.IconButton,{className:"editor-block-mover__control block-editor-block-mover__control",onClick:o?null:n,icon:Lr,label:Object(H.__)("Move down"),"aria-describedby":"block-editor-block-mover__down-description-".concat(m),"aria-disabled":o,onFocus:this.onFocus,onBlur:this.onBlur}),Object(u.createElement)("span",{id:"block-editor-block-mover__up-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Tr(k,d&&d.title,b,r,o,-1)),Object(u.createElement)("span",{id:"block-editor-block-mover__down-description-".concat(m),className:"editor-block-mover__description block-editor-block-mover__description"},Tr(k,d&&d.title,b,r,o,1)))}}]),t}(u.Component),Pr=Object(b.compose)(Object(m.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),v=c(Object(p.last)(u),b);return{blockType:f?Object(i.getBlockType)(f.name):null,isLocked:"all"===a(b),rootClientId:b,firstIndex:m,isFirst:0===m,isLast:v===h.length-1}}),Object(m.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)}}),b.withInstanceId)(Rr);var Dr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:f()(t,"editor-warning block-editor-warning")},Object(u.createElement)("div",{className:"editor-warning__contents block-editor-warning__contents"},Object(u.createElement)("p",{className:"editor-warning__message block-editor-warning__message"},r),u.Children.count(n)>0&&Object(u.createElement)("div",{className:"editor-warning__actions block-editor-warning__actions"},u.Children.map(n,function(e,t){return Object(u.createElement)("span",{key:t,className:"editor-warning__action block-editor-warning__action"},e)}))),o&&Object(u.createElement)(P.Dropdown,{className:"editor-warning__secondary block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(P.IconButton,{icon:"ellipsis",label:Object(H.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(u.createElement)(P.MenuGroup,null,o.map(function(e,t){return Object(u.createElement)(P.MenuItem,{onClick:e.onClick,key:t},e.title)}))}}))},Fr=n(199),Hr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,i=e.actionText,c=e.className;return Object(u.createElement)("div",{className:c},Object(u.createElement)("div",{className:"editor-block-compare__content block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"editor-block-compare__heading block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"editor-block-compare__html block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"editor-block-compare__preview block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"editor-block-compare__action block-editor-block-compare__action"},Object(u.createElement)(P.Button,{isLarge:!0,tabIndex:"0",onClick:o},i)))},Ur=function(e){function t(){return Object(y.a)(this,t),Object(S.a)(this,Object(E.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"getDifference",value:function(e,t){return Object(Fr.diffChars)(e,t).map(function(e,t){var n=f()({"editor-block-compare__added block-editor-block-compare__added":e.added,"editor-block-compare__removed block-editor-block-compare__removed":e.removed});return Object(u.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(u.createElement)("div",{className:"editor-block-compare__wrapper block-editor-block-compare__wrapper"},Object(u.createElement)(Hr,{title:Object(H.__)("Current"),className:"editor-block-compare__current block-editor-block-compare__current",action:n,actionText:Object(H.__)("Convert to HTML"),rawContent:c.rawContent,renderedContent:c.renderedContent}),Object(u.createElement)(Hr,{title:Object(H.__)("After Conversion"),className:"editor-block-compare__converted block-editor-block-compare__converted",action:r,actionText:i,rawContent:l,renderedContent:a.renderedContent}))}}]),t}(u.Component),Vr=function(e){function t(e){var n;return Object(y.a)(this,t),(n=Object(S.a)(this,Object(E.a)(t).call(this,e))).state={compare:!1},n.onCompare=n.onCompare.bind(Object(C.a)(n)),n.onCompareClose=n.onCompareClose.bind(Object(C.a)(n)),n}return Object(w.a)(t,e),Object(_.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(H.__)("Convert to Classic Block"),onClick:r},{title:Object(H.__)("Attempt Block Recovery"),onClick:o}];return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Dr,{actions:[Object(u.createElement)(P.Button,{key:"convert",onClick:this.onCompare,isLarge:!0,isPrimary:!a},Object(H._x)("Resolve","imperative verb")),a&&Object(u.createElement)(P.Button,{key:"edit",onClick:t,isLarge:!0,isPrimary:!0},Object(H.__)("Convert to HTML"))],secondaryActions:s},Object(H.__)("This block contains unexpected or invalid content.")),l&&Object(u.createElement)(P.Modal,{title:Object(H.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"editor-block-compare block-editor-block-compare"},Object(u.createElement)(Ur,{block:c,onKeep:t,onConvert:n,convertor:zr,convertButtonText:Object(H.__)("Convert to Blocks")})))}}]),t}(u.Component),zr=function(e){return Object(i.rawHandler)({HTML:e.originalContent})},Kr=Object(b.compose)([Object(m.withSelect)(function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}}),Object(m.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,zr(n))},attemptBlockRecovery:function(){r(n.clientId,function(e){var t=e.name,n=e.attributes,r=e.innerBlocks;return Object(i.createBlock)(t,n,r)}(n))}}})])(Vr),Wr=Object(u.createElement)(Dr,{className:"block-editor-block-list__block-crash-warning"},Object(H.__)("This block has encountered an error and cannot be previewed.")),qr=function(){return Wr},Gr=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={hasError:!1},e}return Object(w.a)(t,e),Object(_.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}(u.Component),$r=n(58),Yr=n.n($r),Xr=function(e){function t(e){var n;return Object(y.a)(this,t),(n=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(C.a)(n)),n.onBlur=n.onBlur.bind(Object(C.a)(n)),n.state={html:e.block.isValid?Object(i.getBlockContent)(e.block):e.block.originalContent},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(e){Object(p.isEqual)(this.props.block.attributes,e.block.attributes)||this.setState({html:Object(i.getBlockContent)(this.props.block)})}},{key:"onBlur",value:function(){var e=this.state.html,t=Object(i.getBlockType)(this.props.block.name),n=Object(i.getBlockAttributes)(t,e,this.props.block.attributes),r=e||Object(i.getSaveContent)(t,n),o=!e||Object(i.isValidBlockContent)(t,n,r);this.props.onChange(this.props.clientId,n,r,o),e||this.setState({html:r})}},{key:"onChange",value:function(e){this.setState({html:e.target.value})}},{key:"render",value:function(){var e=this.state.html;return Object(u.createElement)(Yr.a,{className:"editor-block-list__block-html-textarea block-editor-block-list__block-html-textarea",value:e,onBlur:this.onBlur,onChange:this.onChange})}}]),t}(u.Component),Zr=Object(b.compose)([Object(m.withSelect)(function(e,t){return{block:e("core/block-editor").getBlock(t.clientId)}}),Object(m.withDispatch)(function(e){return{onChange:function(t,n,r,o){e("core/block-editor").updateBlock(t,{attributes:n,originalContent:r,isValid:o})}}})])(Xr);var Jr=Object(m.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}),Qr=Object(u.forwardRef)(function(e,t){var n=e.clientId,r=Object(m.useDispatch)("core/block-editor").setNavigationMode,o=Object(m.useSelect)(function(e){return{rootClientId:e("core/block-editor").getBlockRootClientId(n)}}).rootClientId;return Object(u.createElement)("div",{className:"editor-block-list__breadcrumb block-editor-block-list__breadcrumb"},Object(u.createElement)(P.Toolbar,null,o&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Jr,{clientId:o}),Object(u.createElement)("span",{className:"editor-block-list__descendant-arrow block-editor-block-list__descendant-arrow"})),Object(u.createElement)(P.Button,{ref:t,onClick:function(){return r(!1)}},Object(u.createElement)(Jr,{clientId:n}))))}),eo=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).focusToolbar=e.focusToolbar.bind(Object(C.a)(e)),e.toolbar=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"focusToolbar",value:function(){var e=Br.focus.tabbable.find(this.toolbar.current);e.length&&e[0].focus()}},{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.focusToolbar(),this.toolbar.current.addEventListener("keydown",this.switchOnKeyDown)}},{key:"componentwillUnmount",value:function(){this.toolbar.current.removeEventListener("keydown",this.switchOnKeyDown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(Ae.a)(e,["children"]);return Object(u.createElement)(P.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:this.toolbar},Object(p.omit)(n,["focusOnMount"])),Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":this.focusToolbar}}),t)}}]),t}(u.Component);var to=function(e){var t=e.focusOnMount;return Object(u.createElement)(eo,{focusOnMount:t,className:"editor-block-contextual-toolbar block-editor-block-contextual-toolbar","aria-label":Object(H.__)("Block tools")},Object(u.createElement)(yc,null))};var no=Object(m.withSelect)(function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds,r=t.isMultiSelecting;return{multiSelectedBlockClientIds:n(),isSelecting:r()}})(function(e){var t=e.multiSelectedBlockClientIds;return e.isSelecting?null:Object(u.createElement)(Pr,{clientIds:t})});var ro=Object(a.ifViewportMatches)("< small")(function(e){var t=e.clientId;return Object(u.createElement)("div",{className:"editor-block-list__block-mobile-toolbar block-editor-block-list__block-mobile-toolbar"},Object(u.createElement)(Ho,null),Object(u.createElement)(Pr,{clientIds:[t]}))}),oo=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={isInserterFocused:!1},e.onBlurInserter=e.onBlurInserter.bind(Object(C.a)(e)),e.onFocusInserter=e.onFocusInserter.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"onFocusInserter",value:function(e){e.stopPropagation(),this.setState({isInserterFocused:!0})}},{key:"onBlurInserter",value:function(){this.setState({isInserterFocused:!1})}},{key:"render",value:function(){var e=this.state.isInserterFocused,t=this.props,n=t.showInsertionPoint,r=t.rootClientId,o=t.clientId;return Object(u.createElement)("div",{className:"editor-block-list__insertion-point block-editor-block-list__insertion-point"},n&&Object(u.createElement)("div",{className:"editor-block-list__insertion-point-indicator block-editor-block-list__insertion-point-indicator"}),Object(u.createElement)("div",{onFocus:this.onFocusInserter,onBlur:this.onBlurInserter,tabIndex:-1,className:f()("editor-block-list__insertion-point-inserter block-editor-block-list__insertion-point-inserter",{"is-visible":e})},Object(u.createElement)(Ho,{rootClientId:r,clientId:o})))}}]),t}(u.Component),io=Object(m.withSelect)(function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),i=o.getBlockIndex,c=o.getBlockInsertionPoint,a=o.isBlockInsertionPointVisible,l=i(n,r),s=c();return{showInsertionPoint:a()&&s.index===l&&s.rootClientId===r}})(oo),co=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).proxyEvent=e.proxyEvent.bind(Object(C.a)(e)),e.eventMap={},e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"proxyEvent",value:function(e){var t=!!e.nativeEvent._blockHandled;e.nativeEvent._blockHandled=!0;var n=this.eventMap[e.type];t&&(n+="Handled"),this.props[n]&&this.props[n](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(Ae.a)(t,["childHandledEvents","forwardedRef","tagName"]),s=Object(p.reduce)([].concat(Object(Be.a)(r),Object(Be.a)(Object.keys(a))),function(t,n){var r=n.match(/^on([A-Z][a-zA-Z]+?)(Handled)?$/);if(r){!!r[2]&&delete a[n];var o="on"+r[1];t[o]=e.proxyEvent,e.eventMap[r[1].toLowerCase()]=o}return t},{});return Object(u.createElement)(c,Object(l.a)({ref:o},a,s))}}]),t}(u.Component),ao=function(e,t){return Object(u.createElement)(co,Object(s.a)({},e,{forwardedRef:t}))};ao.displayName="IgnoreNestedEvents";var lo=Object(u.forwardRef)(ao);var so=Object(b.compose)(Object(m.withSelect)(function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getInserterItems,i=r.getTemplateLock;return{items:o(n),isLocked:!!i(n)}}),Object(m.withDispatch)(function(e,t){var n=t.clientId,r=t.rootClientId;return{onInsert:function(t){var o=t.name,c=t.initialAttributes,a=Object(i.createBlock)(o,c);n?e("core/block-editor").replaceBlocks(n,a):e("core/block-editor").insertBlock(a,void 0,r)}}}))(function(e){var t=e.items,n=e.isLocked,r=e.onInsert;if(n)return null;var o=Object(p.filter)(t,function(e){return!(e.isDisabled||e.name===Object(i.getDefaultBlockName)()&&Object(p.isEmpty)(e.initialAttributes))}).slice(0,3);return Object(u.createElement)("div",{className:"editor-inserter-with-shortcuts block-editor-inserter-with-shortcuts"},o.map(function(e){return Object(u.createElement)(P.IconButton,{key:e.id,className:"editor-inserter-with-shortcuts__block block-editor-inserter-with-shortcuts__block",onClick:function(){return r(e)},label:Object(H.sprintf)(Object(H.__)("Add %s"),e.title),icon:Object(u.createElement)(be,{icon:e.icon})})}))});function uo(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-block="'+e+'"]')}var fo=function(e){return e+1},po=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var bo=function(e,t,n,r,o){var i=Object(b.useReducedMotion)()||!r,c=Object(u.useReducer)(fo,0),a=Object(Ne.a)(c,2),l=a[0],s=a[1],d=Object(u.useReducer)(fo,0),f=Object(Ne.a)(d,2),p=f[0],h=f[1],m=Object(u.useState)({x:0,y:0,scrollTop:0}),v=Object(Ne.a)(m,2),g=v[0],O=v[1],k=e.current?po(e.current):null,j=Object(u.useMemo)(function(){return!!n&&Object(Br.getScrollContainer)(e.current)},[n]);Object(u.useLayoutEffect)(function(){l&&h()},[l]),Object(u.useLayoutEffect)(function(){if(i){if(n&&j){e.current.style.transform="none";var t=po(e.current);j.scrollTop=j.scrollTop-k.top+t.top}}else{e.current.style.transform="none";var r=po(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(Ir.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==p,config:{mass:5,tension:2e3,friction:200},immediate:i,onFrame:function(e){n&&j&&!i&&e.y&&(j.scrollTop=g.scrollTop+e.y)}});return i?{}:{transformOrigin:"center",transform:Object(Ir.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(Ir.interpolate)([y.x,y.y],function(e,n){return!t||0===e&&0===n?void 0:"1"})}},ho=function(e){e.preventDefault()};var mo=Object(m.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,p=c.getBlockMode,b=c.isSelectionEnabled,h=c.getSelectedBlocksInitialCaretPosition,m=c.getSettings,v=c.hasSelectedInnerBlock,g=c.getTemplateLock,O=c.getBlockIndex,k=c.getBlockOrder,j=c.__unstableGetBlockWithoutInnerBlocks,y=c.isNavigationMode,_=j(n),S=a(n),E=m(),C=E.hasFixedToolbar,w=E.focusMode,I=E.isRTL,B=g(r),T=v(n,!0),x=O(n,r),L=k(r),N=_||{},A=N.name,M=N.attributes,R=N.isValid;return{isPartOfMultiSelection:s(n)||l(n),isFirstMultiSelected:u(n),isTypingWithinBlock:(S||T)&&d(),isCaretWithinFormattedText:f(),mode:p(n),isSelectionEnabled:b(),initialPosition:S?h():null,isEmptyDefaultBlock:A&&Object(i.isUnmodifiedDefaultBlock)({name:A,attributes:M}),isMovable:"all"!==B,isLocked:!!B,isFocusMode:w&&o,hasFixedToolbar:C&&o,isLast:x===L.length-1,isNavigationMode:y(),isRTL:I,block:_,name:A,attributes:M,isValid:R,isSelected:S,isParentOfSelectedBlock:T}}),vo=Object(m.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,p=o.replaceBlocks,b=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(),p([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){b(e)},enableNavigationMode:function(){h(!0)}}}),go=Object(b.compose)(b.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),mo,vo,Object(b.ifCondition)(function(e){return!!e.block}),Object(P.withFilters)("editor.BlockListBlock"))(function(e){var t=e.blockRef,n=e.mode,r=e.isFocusMode,o=e.hasFixedToolbar,c=e.isLocked,a=e.clientId,d=e.rootClientId,b=e.isSelected,h=e.isPartOfMultiSelection,m=e.isFirstMultiSelected,v=e.isTypingWithinBlock,g=e.isCaretWithinFormattedText,O=e.isEmptyDefaultBlock,k=e.isMovable,j=e.isParentOfSelectedBlock,y=e.isDraggable,_=e.isSelectionEnabled,S=e.className,E=e.name,C=e.isValid,w=e.isLast,I=e.attributes,B=e.initialPosition,T=e.wrapperProps,x=e.setAttributes,L=e.onReplace,N=e.onInsertBlocksAfter,A=e.onMerge,M=e.onSelect,R=e.onRemove,D=e.onInsertDefaultBlockAfter,F=e.toggleSelection,U=e.onShiftSelection,V=e.onSelectionStart,z=e.animateOnChange,K=e.enableAnimation,W=e.isNavigationMode,q=e.enableNavigationMode,G=Object(u.useState)({}),$=Object(Ne.a)(G,2)[1],Y=Object(u.useRef)(null);Object(u.useEffect)(function(){t(Y.current,a)},[]);var X=Object(u.useRef)(),Z=Object(u.useRef)(),J=Object(u.useRef)(!1),Q=Object(u.useState)(!1),ee=Object(Ne.a)(Q,2),te=ee[0],ne=ee[1],re=function(){te&&ne(!1)};Object(u.useEffect)(function(){(v||b)&&re()});var oe=Object(u.useState)(!1),ie=Object(Ne.a)(oe,2),ce=ie[0],ae=ie[1],se=Object(u.useState)(!1),ue=Object(Ne.a)(se,2),de=ue[0],fe=ue[1],pe=Object(u.useRef)(!1);Object(u.useEffect)(function(){pe.current&&(pe.current=!1)});var be=function(e){if(!Y.current.contains(document.activeElement))if(W)Z.current.focus();else{var t=Br.focus.tabbable.find(X.current).filter(Br.isTextField).filter(function(t){return!e||function(e,t){var n=e.querySelector(".block-editor-block-list__layout");return e.contains(t)&&(!n||!n.contains(t))}(X.current,t)}),n=-1===B,r=(n?p.last:p.first)(t);r?Object(Br.placeCaretAtHorizontalEdge)(r,n):Y.current.focus()}},me=Object(u.useRef)(!0);Object(u.useEffect)(function(){b&&be(!me.current),me.current=!1},[b]),Object(u.useEffect)(function(){m&&Y.current.focus()},[m]);var ve=bo(Y,b||h,b||m,K,z);Object(u.useLayoutEffect)(function(){b&&(W?Z.current.focus():be(!0))},[b,W]);var ge=function(e){e&&!b&&M()},Oe=te&&!h,ke=Object(i.getBlockType)(E),je=Object(H.sprintf)(Object(H.__)("Block: %s"),ke.title),ye=E===Object(i.getUnregisteredTypeHandlerName)(),_e=!W&&(b||Oe)&&O&&C,Se=!W&&(b||Oe||w)&&O&&C,Ee=!r&&!Se&&b&&!v,Ce=!r&&!o&&Oe&&!O,we=!W&&b&&!Se&&!h&&!v,Be=b&&W||!W&&!r&&Oe&&!O,Te=!W&&!o&&!Se&&(b&&(!v||g)||m),xe=!W&&Ee,Le=h&&m||!h,Ae=f()("wp-block editor-block-list__block block-editor-block-list__block",{"has-warning":!C||!!de||ye,"is-selected":Ee,"is-navigate-mode":W,"is-multi-selected":h,"is-hovered":Ce,"is-reusable":Object(i.isReusableBlock)(ke),"is-dragging":ce,"is-typing":v,"is-focused":r&&(b||j),"is-focus-mode":r,"has-child-selected":j},S);ke.getEditWrapperProps&&(T=Object(l.a)({},T,ke.getEditWrapperProps(I)));var Me="block-".concat(a),Re=Object(u.createElement)(le,{name:E,isSelected:b,attributes:I,setAttributes:x,insertBlocksAfter:c?void 0:N,onReplace:c?void 0:L,mergeBlocks:c?void 0:A,clientId:a,isSelectionEnabled:_,toggleSelection:F});return"visual"!==n&&(Re=Object(u.createElement)("div",{style:{display:"none"}},Re)),Object(u.createElement)(lo,Object(s.a)({id:Me,ref:Y,onMouseOver:function(){te||h||b||J.current||ne(!0)},onMouseOverHandled:re,onMouseLeave:re,className:Ae,"data-type":E,onTouchStart:function(){J.current=!0},onFocus:function(){b||h||M()},onClick:function(){J.current=!1},onKeyDown:function(e){var t=e.keyCode,n=e.target,r=b&&!c&&(n===Y.current||n===Z.current),o=!W;switch(t){case he.ENTER:r&&o&&(D(),e.preventDefault());break;case he.BACKSPACE:case he.DELETE:r&&(R(a),e.preventDefault());break;case he.ESCAPE:b&&o&&(q(),Y.current.focus())}},tabIndex:"0","aria-label":je,childHandledEvents:["onDragStart","onMouseDown"],tagName:Ir.animated.div},T,{style:T&&T.style?Object(l.a)({},T.style,ve):ve}),Le&&Object(u.createElement)(io,{clientId:a,rootClientId:d}),Object(u.createElement)(Ie,{clientId:a,rootClientId:d}),m&&Object(u.createElement)(no,{rootClientId:d}),Object(u.createElement)("div",{className:"editor-block-list__block-edit block-editor-block-list__block-edit"},we&&Object(u.createElement)(Pr,{clientIds:a,blockElementId:Me,isHidden:!b,isDraggable:!1!==y&&!h&&k,onDragStart:function(){ae(!0)},onDragEnd:function(){ae(!1)}}),Be&&Object(u.createElement)(Qr,{clientId:a,ref:Z}),(Te||pe.current)&&Object(u.createElement)(to,{focusOnMount:pe.current}),!W&&!Te&&b&&!o&&!O&&Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,eventName:"keydown",shortcuts:{"alt+f10":function(){pe.current=!0,$({})}}}),Object(u.createElement)(lo,{ref:X,onDragStart:ho,onMouseDown:function(e){0===e.button&&(e.shiftKey?b||(U(),e.preventDefault()):X.current.contains(e.target)&&(V(a),h&&M()))},"data-block":a},Object(u.createElement)(Gr,{onError:function(){return fe(!0)}},C&&Re,C&&"html"===n&&Object(u.createElement)(Zr,{clientId:a}),!C&&[Object(u.createElement)(Kr,{key:"invalid-warning",clientId:a}),Object(u.createElement)("div",{key:"invalid-preview"},Object(i.getSaveElement)(ke,I))]),!!de&&Object(u.createElement)(qr,null),xe&&Object(u.createElement)(ro,{clientId:a}))),_e&&Object(u.createElement)("div",{className:"editor-block-list__side-inserter block-editor-block-list__side-inserter"},Object(u.createElement)(so,{clientId:a,rootClientId:d,onToggle:ge})),Se&&Object(u.createElement)("div",{className:"editor-block-list__empty-block-inserter block-editor-block-list__empty-block-inserter"},Object(u.createElement)(Ho,{position:"top right",onToggle:ge,rootClientId:d,clientId:a})))}),Oo=n(52);var ko=Object(b.compose)(Object(b.withState)({hovered:!1}),Object(m.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(m.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,a=e.hovered,l=e.setState;if(t||!n)return null;var s=Object(Oo.decodeEntities)(i)||Object(H.__)("Start writing or type / to choose a block");return Object(u.createElement)("div",{"data-root-client-id":c||"",className:"wp-block editor-default-block-appender block-editor-default-block-appender",onMouseEnter:function(){return l({hovered:!0})},onMouseLeave:function(){return l({hovered:!1})}},Object(u.createElement)(Ie,{rootClientId:c}),Object(u.createElement)(Yr.a,{role:"button","aria-label":Object(H.__)("Add block"),className:"editor-default-block-appender__content block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?s:""}),a&&Object(u.createElement)(so,{rootClientId:c}),Object(u.createElement)(Ho,{rootClientId:c,position:"top right",isAppender:!0}))});var jo=Object(m.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=e.blockClientIds,n=e.rootClientId,r=e.canInsertDefaultBlock,o=e.isLocked,i=e.renderAppender;return o?null:i?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(i,null)):!1===i?null:r?Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(lo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(ko,{rootClientId:n,lastBlockClientId:Object(p.last)(t)}))):Object(u.createElement)("div",{className:"block-list-appender"},Object(u.createElement)(Uo,{rootClientId:n,className:"block-list-appender__toggle"}))}),yo=function(e){function t(e){var n;return Object(y.a)(this,t),(n=Object(S.a)(this,Object(E.a)(t).call(this,e))).onSelectionStart=n.onSelectionStart.bind(Object(C.a)(n)),n.onSelectionEnd=n.onSelectionEnd.bind(Object(C.a)(n)),n.setBlockRef=n.setBlockRef.bind(Object(C.a)(n)),n.setLastClientY=n.setLastClientY.bind(Object(C.a)(n)),n.onPointerMove=Object(p.throttle)(n.onPointerMove.bind(Object(C.a)(n)),100),n.onScroll=function(){return n.onPointerMove({clientY:n.lastClientY})},n.lastClientY=0,n.nodes={},n}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("mousemove",this.setLastClientY)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("mousemove",this.setLastClientY)}},{key:"setLastClientY",value:function(e){var t=e.clientY;this.lastClientY=t}},{key:"setBlockRef",value:function(e,t){null===e?delete this.nodes[t]:this.nodes=Object(l.a)({},this.nodes,Object(I.a)({},t,e))}},{key:"onPointerMove",value:function(e){var t=e.clientY;this.props.isMultiSelecting||this.props.onStartMultiSelect();var n=uo(this.selectionAtStart).getBoundingClientRect();if(!(t>=n.top&&t<=n.bottom)){var r=t-n.top,o=Object(p.findLast)(this.coordMapKeys,function(e){return e<r});this.onSelectionChange(this.coordMap[o])}}},{key:"onSelectionStart",value:function(e){if(this.props.isSelectionEnabled){var t=this.nodes[e].getBoundingClientRect(),n=Object(p.mapValues)(this.nodes,function(e){return e.getBoundingClientRect().top-t.top});this.coordMap=Object(p.invert)(n),this.coordMapKeys=Object(p.sortBy)(Object.values(n)),this.selectionAtStart=e,window.addEventListener("mousemove",this.onPointerMove),window.addEventListener("scroll",this.onScroll,!0),window.addEventListener("mouseup",this.onSelectionEnd)}}},{key:"onSelectionChange",value:function(e){var t=this.props,n=t.onMultiSelect,r=t.selectionStart,o=t.selectionEnd,i=this.selectionAtStart,c=i===e;i&&this.props.isSelectionEnabled&&(c&&r&&n(null,null),c||o===e||n(i,e))}},{key:"onSelectionEnd",value:function(){this.onPointerMove.cancel(),delete this.coordMap,delete this.coordMapKeys,delete this.selectionAtStart,window.removeEventListener("mousemove",this.onPointerMove),window.removeEventListener("scroll",this.onScroll,!0),window.removeEventListener("mouseup",this.onSelectionEnd),this.props.isMultiSelecting&&this.props.onStopMultiSelect()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.blockClientIds,o=t.rootClientId,i=t.isDraggable,c=t.selectedBlockClientId,a=t.multiSelectedBlockClientIds,l=t.hasMultiSelection,s=t.renderAppender,d=t.enableAnimation;return Object(u.createElement)("div",{className:f()("editor-block-list__layout block-editor-block-list__layout",n)},r.map(function(t,n){var r=l?a.includes(t):c===t;return Object(u.createElement)(wr,{key:"block-"+t,clientId:t,isBlockInSelection:r},Object(u.createElement)(go,{rootClientId:o,clientId:t,blockRef:e.setBlockRef,onSelectionStart:e.onSelectionStart,isDraggable:i,animateOnChange:n,enableAnimation:d}))}),Object(u.createElement)(jo,{rootClientId:o,renderAppender:s}))}}]),t}(u.Component),_o=Object(b.compose)([function(e){return function(t){return Object(u.createElement)(m.__experimentalAsyncModeProvider,{value:!1},Object(u.createElement)(e,t))}},Object(m.withSelect)(function(e,t){var n=e("core/block-editor"),r=n.getBlockOrder,o=n.isSelectionEnabled,i=n.isMultiSelecting,c=n.getMultiSelectedBlocksStartClientId,a=n.getMultiSelectedBlocksEndClientId,l=n.getSelectedBlockClientId,s=n.getMultiSelectedBlockClientIds,u=n.hasMultiSelection,d=n.getGlobalBlockCount,f=n.isTyping;return{blockClientIds:r(t.rootClientId),selectionStart:c(),selectionEnd:a(),isSelectionEnabled:o(),isMultiSelecting:i(),selectedBlockClientId:l(),multiSelectedBlockClientIds:s(),hasMultiSelection:u(),enableAnimation:!f()&&d()<=200}}),Object(m.withDispatch)(function(e){var t=e("core/block-editor");return{onStartMultiSelect:t.startMultiSelect,onStopMultiSelect:t.stopMultiSelect,onMultiSelect:t.multiSelect}})])(yo);function So(e){var t=e.blocks,n=e.viewportWidth,r=Object(u.useRef)(null),o=Object(u.useState)(!1),i=Object(Ne.a)(o,2),c=i[0],a=i[1],l=Object(u.useState)(1),s=Object(Ne.a)(l,2),d=s[0],p=s[1],b=Object(u.useState)({x:0,y:0}),h=Object(Ne.a)(b,2),m=h[0],v=m.x,g=m.y,O=h[1];if(Object(u.useLayoutEffect)(function(){var e=setTimeout(function(){var e=r.current;if(e){if(1===t.length){var o=function(e,t){var n=uo(e,t);if(n)return n.firstChild||n}(t[0].clientId,e);if(!o)return;var i=e.getBoundingClientRect(),c=o.getBoundingClientRect(),l=i.width/c.width||1,s=c.left-i.left,u=i.height>c.height*l?(i.height-c.height*l)/2:0;p(l),O({x:s*l,y:u}),o.style.marginTop="0"}else{var d=e.getBoundingClientRect();p(d.width/n)}a(!0)}},100);return function(){e&&window.clearTimeout(e)}},[]),!t||0===t.length)return null;var k={transform:"scale(".concat(d,")"),visibility:c?"visible":"hidden",left:-v,top:g,width:n};return Object(u.createElement)("div",{ref:r,className:f()("block-editor-block-preview__container editor-styles-wrapper",{"is-ready":c}),"aria-hidden":!0},Object(u.createElement)(P.Disabled,{style:k,className:"block-editor-block-preview__content"},Object(u.createElement)(_o,null)))}var Eo=Object(m.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.settings,i=Object(u.useMemo)(function(){return Object(p.castArray)(t)},[t]),c=Object(u.useReducer)(function(e){return e+1},0),a=Object(Ne.a)(c,2),l=a[0],s=a[1];return Object(u.useLayoutEffect)(s,[t]),Object(u.createElement)(Cr,{value:i,settings:o},Object(u.createElement)(So,{key:l,blocks:i,viewportWidth:r}))});var Co=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,i=e.className,c=Object(Ae.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(u.createElement)("li",{className:"editor-block-types-list__list-item block-editor-block-types-list__list-item"},Object(u.createElement)("button",Object(s.a)({className:f()("editor-block-types-list__item block-editor-block-types-list__item",i),onClick:function(e){e.preventDefault(),n()},disabled:r},c),Object(u.createElement)("span",{className:"editor-block-types-list__item-icon block-editor-block-types-list__item-icon",style:a},Object(u.createElement)(be,{icon:t,showColors:!0})),Object(u.createElement)("span",{className:"editor-block-types-list__item-title block-editor-block-types-list__item-title"},o)))};var wo=function(e){var t=e.items,n=e.onSelect,r=e.onHover,o=void 0===r?function(){}:r,c=e.children;return Object(u.createElement)("ul",{role:"list",className:"editor-block-types-list block-editor-block-types-list"},t&&t.map(function(e){return Object(u.createElement)(Co,{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 Io=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(be,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("div",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("div",{className:"block-editor-block-card__description"},t.description)))};var Bo=Object(b.compose)(Object(b.ifCondition)(function(e){var t=e.items;return t&&t.length>0}),Object(m.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(Ae.a)(e,["rootBlockIcon","rootBlockTitle","items"]);return Object(u.createElement)("div",{className:"editor-inserter__child-blocks block-editor-inserter__child-blocks"},(t||n)&&Object(u.createElement)("div",{className:"editor-inserter__parent-block-header block-editor-inserter__parent-block-header"},Object(u.createElement)(be,{icon:t,showColors:!0}),n&&Object(u.createElement)("h2",null,n)),Object(u.createElement)(wo,Object(s.a)({items:r},o)))}),To=Object(P.createSlotFill)("__experimentalInserterMenuExtension"),xo=To.Fill,Lo=To.Slot;xo.Slot=Lo;var No=xo,Ao=function(e){return e.stopPropagation()},Mo=function(e){return e=(e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase()).trim()},Ro=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={childItems:[],filterValue:"",hoveredItem:null,suggestedItems:[],reusableItems:[],itemsPerCategory:{},openPanels:["suggested"]},e.onChangeSearchInput=e.onChangeSearchInput.bind(Object(C.a)(e)),e.onHover=e.onHover.bind(Object(C.a)(e)),e.panels={},e.inserterResults=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidMount",value:function(){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(Be.a)(t.state.openPanels),[e])}),t.props.setTimeout(function(){xe()(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.debouncedSpeak,r=t.items,o=t.rootChildBlocks,c=function(e,t){var n=Mo(t),r=function(e){return-1!==Mo(e).indexOf(n)},o=Object(i.getCategories)();return e.filter(function(e){var t=Object(p.find)(o,{slug:e.category});return r(e.title)||Object(p.some)(e.keywords,r)||t&&r(t.title)})}(r,e),a=Object(p.filter)(c,function(e){var t=e.name;return Object(p.includes)(o,t)}),l=[];if(!e){var s=this.props.maxSuggestedItems||9;l=Object(p.filter)(r,function(e){return e.utility>0}).slice(0,s)}var u=Object(p.filter)(c,{category:"reusable"}),d=function(e){return Object(p.findIndex)(Object(i.getCategories)(),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);n(Object(H.sprintf)(Object(H._n)("%d result found.","%d results found.",b),b))}},{key:"onKeyDown",value:function(e){Object(p.includes)([he.LEFT,he.DOWN,he.RIGHT,he.UP,he.BACKSPACE,he.ENTER],e.keyCode)&&e.stopPropagation()}},{key:"render",value:function(){var e=this,t=this.props,n=t.instanceId,r=t.onSelect,o=t.rootClientId,c=t.showInserterHelpPanel,a=this.state,l=a.childItems,s=a.hoveredItem,d=a.itemsPerCategory,b=a.openPanels,h=a.reusableItems,m=a.suggestedItems,v=a.filterValue,g=function(e){return-1!==b.indexOf(e)},O=!Object(p.isEmpty)(m)||!Object(p.isEmpty)(h)||!Object(p.isEmpty)(d),k=s?Object(i.getBlockType)(s.name):null,j=O&&c;return Object(u.createElement)("div",{className:f()("editor-inserter__menu block-editor-inserter__menu",{"has-help-panel":j}),onKeyPress:Ao,onKeyDown:this.onKeyDown},Object(u.createElement)("div",{className:"block-editor-inserter__main-area"},Object(u.createElement)("label",{htmlFor:"block-editor-inserter__search-".concat(n),className:"screen-reader-text"},Object(H.__)("Search for a block")),Object(u.createElement)("input",{id:"block-editor-inserter__search-".concat(n),type:"search",placeholder:Object(H.__)("Search for a block"),className:"editor-inserter__search block-editor-inserter__search",autoFocus:!0,onChange:this.onChangeSearchInput}),Object(u.createElement)("div",{className:"editor-inserter__results block-editor-inserter__results",ref:this.inserterResults,tabIndex:"0",role:"region","aria-label":Object(H.__)("Available block types")},Object(u.createElement)(Bo,{rootClientId:o,items:l,onSelect:r,onHover:this.onHover}),!!m.length&&Object(u.createElement)(P.PanelBody,{title:Object(H._x)("Most Used","blocks"),opened:g("suggested"),onToggle:this.onTogglePanel("suggested"),ref:this.bindPanel("suggested")},Object(u.createElement)(wo,{items:m,onSelect:r,onHover:this.onHover})),Object(p.map)(Object(i.getCategories)(),function(t){var n=d[t.slug];return n&&n.length?Object(u.createElement)(P.PanelBody,{key:t.slug,title:t.title,icon:t.icon,opened:g(t.slug),onToggle:e.onTogglePanel(t.slug),ref:e.bindPanel(t.slug)},Object(u.createElement)(wo,{items:n,onSelect:r,onHover:e.onHover})):null}),!!h.length&&Object(u.createElement)(P.PanelBody,{className:"editor-inserter__reusable-blocks-panel block-editor-inserter__reusable-blocks-panel",title:Object(H.__)("Reusable"),opened:g("reusable"),onToggle:this.onTogglePanel("reusable"),icon:"controls-repeat",ref:this.bindPanel("reusable")},Object(u.createElement)(wo,{items:h,onSelect:r,onHover:this.onHover}),Object(u.createElement)("a",{className:"editor-inserter__manage-reusable-blocks block-editor-inserter__manage-reusable-blocks",href:Object(Le.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(H.__)("Manage All Reusable Blocks"))),Object(u.createElement)(No.Slot,{fillProps:{onSelect:r,onHover:this.onHover,filterValue:v,hasItems:O}},function(e){return e.length?e:O?null:Object(u.createElement)("p",{className:"editor-inserter__no-results block-editor-inserter__no-results"},Object(H.__)("No blocks found."))}))),j&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel"},s&&Object(u.createElement)(u.Fragment,null,!Object(i.isReusableBlock)(s)&&Object(u.createElement)(Io,{blockType:k}),(Object(i.isReusableBlock)(s)||k.example)&&Object(u.createElement)("div",{className:"block-editor-inserter__preview"},Object(u.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(u.createElement)(Eo,{viewportWidth:500,blocks:k.example?Object(i.getBlockFromExample)(s.name,k.example):Object(i.createBlock)(s.name,s.initialAttributes)})))),!s&&Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-no-block-text"},Object(u.createElement)("div",{className:"block-editor-inserter__menu-help-panel-title"},Object(H.__)("Content Blocks")),Object(u.createElement)("p",null,Object(H.__)("Welcome to the wonderful world of blocks! Blocks are the basis of all content within the editor.")),Object(u.createElement)("p",null,Object(H.__)("There are blocks available for all kinds of content: insert text, headings, images, lists, videos, tables, and lots more.")),Object(u.createElement)("p",null,Object(H.__)("Browse through the library to learn more about what each block does."))),Object(u.createElement)(P.Tip,null,Object(H.__)('While writing, you can press "/" to quickly insert new blocks.')))))}}]),t}(u.Component),Po=Object(b.compose)(Object(m.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").getChildBlockNames,p=o;if(!p&&!n&&!r){var b=u();b&&(p=s(b)||void 0)}return{rootChildBlocks:f(l(p)),items:a(p),showInserterHelpPanel:i&&d().showInserterHelpPanel,destinationRootClientId:p}}),Object(m.withDispatch)(function(e,t,n){var r=n.select,o=e("core/block-editor"),c=o.showInsertionPoint,a=o.hideInsertionPoint;function l(){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{fetchReusableBlocks:e("core/editor").__experimentalFetchReusableBlocks,showInsertionPoint:function(){var e=l();c(t.destinationRootClientId,e)},hideInsertionPoint:a,onSelect:function(n){var o=e("core/block-editor"),c=o.replaceBlocks,a=o.insertBlock,s=r("core/block-editor").getSelectedBlock,u=t.isAppender,d=n.name,f=n.initialAttributes,p=s(),b=Object(i.createBlock)(d,f);return!u&&p&&Object(i.isUnmodifiedDefaultBlock)(p)?c(p.clientId,b):a(b,l(),t.destinationRootClientId),t.onSelect(),b}}}),P.withSpokenMessages,b.withInstanceId,b.withSafeTimeout)(Ro),Do=function(e){var t=e.onToggle,n=e.disabled,r=e.isOpen;return Object(u.createElement)(P.IconButton,{icon:"insert",label:Object(H.__)("Add block"),labelPosition:"bottom",onClick:t,className:"editor-inserter__toggle block-editor-inserter__toggle","aria-haspopup":"true","aria-expanded":r,disabled:n})},Fo=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onToggle=e.onToggle.bind(Object(C.a)(e)),e.renderToggle=e.renderToggle.bind(Object(C.a)(e)),e.renderContent=e.renderContent.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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.renderToggle,c=void 0===i?Do:i;return c({onToggle:t,isOpen:n,disabled:o})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,i=n.isAppender,c=n.showInserterHelpPanel;return Object(u.createElement)(Po,{onSelect:t,rootClientId:r,clientId:o,isAppender:i,showInserterHelpPanel:c})}},{key:"render",value:function(){var e=this.props.position;return Object(u.createElement)(P.Dropdown,{className:"editor-inserter block-editor-inserter",contentClassName:"editor-inserter__popover block-editor-inserter__popover",position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(H.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),t}(u.Component),Ho=Object(b.compose)([Object(m.withSelect)(function(e,t){var n=t.rootClientId;return{hasItems:(0,e("core/block-editor").hasInserterItems)(n)}}),Object(b.ifCondition)(function(e){return e.hasItems})])(Fo);var Uo=function(e){var t=e.rootClientId,n=e.className;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Ie,{rootClientId:t}),Object(u.createElement)(Ho,{rootClientId:t,renderToggle:function(e){var t=e.onToggle,r=e.disabled,o=e.isOpen;return Object(u.createElement)(P.Button,{className:f()(n,"block-editor-button-block-appender"),onClick:t,"aria-expanded":o,disabled:r},Object(u.createElement)("span",{className:"screen-reader-text"},Object(H.__)("Add Block")),Object(u.createElement)(P.Icon,{icon:"insert"}))},isAppender:!0}))},Vo=Object(b.createHigherOrderComponent)(Object(m.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"),zo=Vo(P.ColorPalette);function Ko(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,i=t.getBrightness()<n.getBrightness()?Object(H.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(H.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(u.useEffect)(function(){Object(Qe.speak)(Object(H.__)("This color combination may be hard for people to read."))},[r,o]),Object(u.createElement)("div",{className:"editor-contrast-checker block-editor-contrast-checker"},Object(u.createElement)(P.Notice,{status:"warning",isDismissible:!1},i))}var Wo=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=g()(t||n),l=g()(c||r);return 1!==a.getAlpha()||1!==l.getAlpha()||g.a.isReadable(a,l,{level:"AA",size:i||!1!==i&&o>=24?"large":"small"})?null:Object(u.createElement)(Ko,{backgroundColor:t,textColor:c,tinyBackgroundColor:a,tinyTextColor:l})},qo=n(41),Go=n.n(qo),$o=Object(b.createHigherOrderComponent)(function(e){return q(function(e){return Object(p.pick)(e,["clientId"])})(e)},"withClientId"),Yo=$o(function(e){var t=e.clientId;return Object(u.createElement)(Uo,{rootClientId:t})}),Xo=Object(b.compose)([$o,Object(m.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(u.createElement)(lo,{childHandledEvents:["onFocus","onClick","onKeyDown"]},Object(u.createElement)(ko,{rootClientId:t,lastBlockClientId:n}))});var Zo=function(e){var t=e.options,n=e.onSelect,r=e.allowSkip,o=f()("block-editor-inner-blocks__template-picker",{"has-many-options":t.length>4}),i=r?Object(H.__)("Select a layout to start with, or make one yourself."):Object(H.__)("Select a layout to start with.");return Object(u.createElement)(P.Placeholder,{icon:"layout",label:Object(H.__)("Choose Layout"),instructions:i,className:o},Object(u.createElement)("ul",{className:"block-editor-inner-blocks__template-picker-options",role:"list"},t.map(function(e,t){return Object(u.createElement)("li",{key:t},Object(u.createElement)(P.IconButton,{isLarge:!0,icon:e.icon,onClick:function(){return n(e.template)},className:"block-editor-inner-blocks__template-picker-option",label:e.title}))})),r&&Object(u.createElement)("div",{className:"block-editor-inner-blocks__template-picker-skip"},Object(u.createElement)(P.Button,{isLink:!0,onClick:function(){return n(void 0)}},Object(H.__)("Skip"))))},Jo=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={templateInProcess:!!e.props.template},e.updateNestedSettings(),e}return Object(w.a)(t,e),Object(_.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};Go()(t,c)||r(c)}},{key:"render",value:function(){var e=this.props,t=e.isSmallScreen,n=e.clientId,r=e.hasOverlay,o=e.renderAppender,i=e.template,c=e.__experimentalTemplateOptions,a=e.__experimentalOnSelectTemplateOption,l=e.__experimentalAllowTemplateOptionSkip,s=this.state.templateInProcess,d=null===i&&!!c,p=f()("editor-inner-blocks block-editor-inner-blocks",{"has-overlay":t&&r&&!d});return Object(u.createElement)("div",{className:p},!s&&(d?Object(u.createElement)(Zo,{options:c,onSelect:a,allowSkip:l}):Object(u.createElement)(_o,{rootClientId:n,renderAppender:o})))}}]),t}(u.Component);(Jo=Object(b.compose)([Object(a.withViewportMatch)({isSmallScreen:"< medium"}),q(function(e){return Object(p.pick)(e,["clientId"])}),Object(m.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=t.clientId,u=i(s),d=a(s);return{block:u,blockListSettings:c(s),hasOverlay:"core/template"!==u.name&&!r(s)&&!o(s,!0),parentLock:l(d)}}),Object(m.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))}}})])(Jo)).DefaultBlockAppender=Xo,Jo.ButtonBlockAppender=Yo,Jo.Content=Object(i.withBlockContentContext)(function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)});var Qo=Jo,ei=Object(P.createSlotFill)("InspectorAdvancedControls"),ti=ei.Fill,ni=ei.Slot,ri=G(ti);ri.Slot=ni;var oi=ri,ii=Object(P.createSlotFill)("InspectorControls"),ci=ii.Fill,ai=ii.Slot,li=G(ci);li.Slot=ai;var si=li,ui=n(35),di=n.n(ui),fi=Object(P.withFilters)("editor.MediaUpload")(function(){return null});function pi(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(P.ExternalLink,{className:o,href:t},n||Object(Le.filterURLForDisplay)(Object(Le.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}var bi=function(e){return e.stopPropagation()},hi=function(e){function t(e){var n,r=e.autocompleteRef;return Object(y.a)(this,t),(n=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onChange=n.onChange.bind(Object(C.a)(n)),n.onKeyDown=n.onKeyDown.bind(Object(C.a)(n)),n.autocompleteRef=r||Object(u.createRef)(),n.inputRef=Object(u.createRef)(),n.updateSuggestions=Object(p.throttle)(n.updateSuggestions.bind(Object(C.a)(n)),200),n.suggestionNodes=[],n.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},n}return Object(w.a)(t,e),Object(_.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,xe()(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.fetchLinkSuggestions;if(n)if(e.length<2||/^https?:/.test(e))this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});else{this.setState({showSuggestions:!0,selectedSuggestion:null,loading:!0});var r=n(e);r.then(function(e){t.suggestionsRequest===r&&(t.setState({suggestions:e,loading:!1}),e.length?t.props.debouncedSpeak(Object(H.sprintf)(Object(H._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(H.__)("No results."),"assertive"))}).catch(function(){t.suggestionsRequest===r&&t.setState({loading:!1})}),this.suggestionsRequest=r}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),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){var c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case he.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case he.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case he.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(H.__)("Link selected.")));break;case he.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(c))}}else switch(e.keyCode){case he.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case he.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.value,r=void 0===n?"":n,o=t.autoFocus,i=void 0===o||o,c=t.instanceId,a=t.className,l=t.id,s=t.isFullWidth,d=t.hasBorder,p=this.state,b=p.showSuggestions,h=p.suggestions,m=p.selectedSuggestion,v=p.loading,g="block-editor-url-input-suggestions-".concat(c),O="block-editor-url-input-suggestion-".concat(c);return Object(u.createElement)("div",{className:f()("editor-url-input block-editor-url-input",a,{"is-full-width":s,"has-border":d})},Object(u.createElement)("input",{id:l,autoFocus:i,type:"text","aria-label":Object(H.__)("URL"),required:!0,value:r,onChange:this.onChange,onInput:bi,placeholder:Object(H.__)("Paste URL or type to search"),onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":b,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==m?"".concat(O,"-").concat(m):void 0,ref:this.inputRef}),v&&Object(u.createElement)(P.Spinner,null),b&&!!h.length&&Object(u.createElement)(P.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",{className:f()("editor-url-input__suggestions","block-editor-url-input__suggestions","".concat(a,"__suggestions")),id:g,ref:this.autocompleteRef,role:"listbox"},h.map(function(t,n){return Object(u.createElement)("button",{key:t.id,role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),className:f()("editor-url-input__suggestion block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)},"aria-selected":n===m},t.title)}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.disableSuggestions,r=t.showSuggestions;return{showSuggestions:!0!==n&&r}}}]),t}(u.Component),mi=Object(b.compose)(b.withSafeTimeout,P.withSpokenMessages,b.withInstanceId,Object(m.withSelect)(function(e){return{fetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}))(hi);var vi=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(C.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(w.a)(t,e),Object(_.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(Ae.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=this.state.isSettingsExpanded,f=!!r&&d;return Object(u.createElement)(P.Popover,Object(s.a)({className:"editor-url-popover block-editor-url-popover",focusOnMount:a,position:i},l),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(P.IconButton,{className:"editor-url-popover__settings-toggle block-editor-url-popover__settings-toggle",icon:"arrow-down-alt2",label:Object(H.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":d})),f&&Object(u.createElement)("div",{className:"editor-url-popover__row block-editor-url-popover__row editor-url-popover__settings block-editor-url-popover__settings"},r())),t&&!f&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),t}(u.Component);vi.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,i=Object(Ae.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},i),Object(u.createElement)(mi,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"}))},vi.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,i=e.urlLabel,c=Object(Ae.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},c),Object(u.createElement)(pi,{url:o,urlLabel:i,className:n}),r&&Object(u.createElement)(P.IconButton,{icon:"edit",label:Object(H.__)("Edit"),onClick:r}))};var gi=vi,Oi=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(gi,{onClose:o},Object(u.createElement)("form",{className:"editor-media-placeholder__url-input-form block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"editor-media-placeholder__url-input-field block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(H.__)("URL"),placeholder:Object(H.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(P.IconButton,{className:"editor-media-placeholder__url-input-submit-button block-editor-media-placeholder__url-input-submit-button",icon:"editor-break",label:Object(H.__)("Apply"),type:"submit"})))},ki=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(C.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(C.a)(e)),e.onUpload=e.onUpload.bind(Object(C.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(C.a)(e)),e.openURLInput=e.openURLInput.bind(Object(C.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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(Ne.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,d=n.onDoubleClick,p=n.mediaPreview,b=n.notices,h=n.onSelectURL,m=n.mediaUpload,v=n.children,g=s.instructions,O=s.title;if(m||h||(g=Object(H.__)("To edit this block, you need permission to upload media.")),void 0===g||void 0===O){var k=1===o.length,j=k&&"audio"===o[0],y=k&&"image"===o[0],_=k&&"video"===o[0];void 0===g&&m&&(g=Object(H.__)("Upload a media file or pick one from your media library."),j?g=Object(H.__)("Upload an audio file, pick one from your media library, or add one with a URL."):y?g=Object(H.__)("Upload an image file, pick one from your media library, or add one with a URL."):_&&(g=Object(H.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===O&&(O=Object(H.__)("Media"),j?O=Object(H.__)("Audio"):y?O=Object(H.__)("Image"):_&&(O=Object(H.__)("Video")))}var S=f()("block-editor-media-placeholder","editor-media-placeholder",i,{"is-appender":a});return Object(u.createElement)(P.Placeholder,{icon:c,label:O,instructions:g,className:S,notices:b,onClick:t,onDoubleClick:d,preview:p},e,v)}},{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(u.createElement)(P.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(u.createElement)(P.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(H.__)("Cancel"),isLink:!0,onClick:e},Object(H.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(u.createElement)("div",{className:"editor-media-placeholder__url-input-container block-editor-media-placeholder__url-input-container"},Object(u.createElement)(P.Button,{className:"editor-media-placeholder__button block-editor-media-placeholder__button",onClick:this.openURLInput,isToggled:t,isLarge:!0},Object(H.__)("Insert from URL")),t&&Object(u.createElement)(Oi,{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,d=t.onSelect,b=t.value,h=void 0===b?{}:b,m=Object(u.createElement)(fi,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:d,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(u.createElement)(P.Button,{isLarge:!0,className:f()("editor-media-placeholder__button","editor-media-placeholder__media-library-button"),onClick:function(e){e.stopPropagation(),t()}},Object(H.__)("Media Library"))}});if(a&&c)return Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.IconButton,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),icon:"upload"},Object(H.__)("Upload")),m,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var v=Object(u.createElement)(u.Fragment,null,this.renderDropZone(),Object(u.createElement)(P.FormFileUpload,{isLarge:!0,className:f()("block-editor-media-placeholder__button","editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(H.__)("Upload")),m,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(v)}return this.renderPlaceholder(m)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&di()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(u.createElement)(Ce,null,this.renderDropZone())):Object(u.createElement)(Ce,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),t}(u.Component),ji=Object(m.withSelect)(function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().__experimentalMediaUpload}}),yi=Object(b.compose)(ji,Object(P.withFilters)("editor.MediaPlaceholder"))(ki),_i=Object(H.__)("(current %s: %s)");var Si=Object(b.compose)([Vo,Object(b.ifCondition)(function(e){return e.hasColorsToChoose})])(function(e){var t=e.colors,n=e.disableCustomColors,r=e.label,o=e.onChange,i=e.value,c=k(t,i),a=c&&c.name,l=Object(H.sprintf)(_i,r.toLowerCase(),a||i);return Object(u.createElement)(P.BaseControl,{className:"editor-color-palette-control block-editor-color-palette-control"},Object(u.createElement)(P.BaseControl.VisualLabel,null,r,i&&Object(u.createElement)(P.ColorIndicator,{colorValue:i,"aria-label":l})),Object(u.createElement)(zo,Object(s.a)({className:"editor-color-palette-control__color-palette block-editor-color-palette-control__color-palette",value:i,onChange:o},{colors:t,disableCustomColors:n})))}),Ei=Object(H.__)("(%s: %s)"),Ci=Object(b.ifCondition)(function(e){var t=e.colors,n=e.disableCustomColors,r=e.colorSettings;return Object(p.some)(r,function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return!function(e,t){return void 0!==t.disableCustomColors?t.disableCustomColors:e}(t,n)||(n.colors||e).length>0}(t,n,e)})})(function(e){var t=e.children,n=e.colors,r=e.colorSettings,o=e.disableCustomColors,i=e.title,c=Object(Ae.a)(e,["children","colors","colorSettings","disableCustomColors","title"]),a=Object(u.createElement)("span",{className:"editor-panel-color-settings__panel-title block-editor-panel-color-settings__panel-title"},i,function(e,t){return e.map(function(e,n){var r=e.value,o=e.label,i=e.colors;if(!r)return null;var c=k(i||t,r),a=c&&c.name,l=Object(H.sprintf)(Ei,o.toLowerCase(),a||r);return Object(u.createElement)(P.ColorIndicator,{key:n,colorValue:r,"aria-label":l})})}(r,n));return Object(u.createElement)(P.PanelBody,Object(s.a)({className:"editor-panel-color-settings block-editor-panel-color-settings",title:a},c),r.map(function(e,t){return Object(u.createElement)(Si,Object(s.a)({key:t},Object(l.a)({colors:n,disableCustomColors:o},e)))}),t)}),wi=Vo(Ci),Ii=Object(u.forwardRef)(function(e,t){var n=e.onChange,r=e.className,o=Object(Ae.a)(e,["onChange","className"]);return Object(u.createElement)(Yr.a,Object(s.a)({ref:t,className:f()("editor-plain-text block-editor-plain-text",r),onChange:function(e){return n(e.target.value)}},o))}),Bi=n(34),Ti={position:"bottom left"},xi=function(){return Object(u.createElement)("div",{className:"editor-format-toolbar block-editor-format-toolbar"},Object(u.createElement)(P.Toolbar,null,["bold","italic","link"].map(function(e){return Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})}),Object(u.createElement)(P.Slot,{name:"RichText.ToolbarControls"},function(e){return 0!==e.length&&Object(u.createElement)(P.DropdownMenu,{icon:!1,label:Object(H.__)("More rich text controls"),controls:Object(p.orderBy)(e.map(function(e){return Object(Ne.a)(e,1)[0].props}),"title"),popoverProps:Ti})})))},Li=[he.rawShortcut.primary("z"),he.rawShortcut.primaryShift("z"),he.rawShortcut.primary("y")],Ni=Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(Li.map(function(e){return[e,function(e){return e.preventDefault()}]}))}),Ai=function(){return Ni},Mi=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onUse=e.onUse.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(I.a)({},he.rawShortcut[n](t),this.onUse)})}}]),t}(u.Component);function Ri(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,i=Object(Ae.a)(e,["name","shortcutType","shortcutCharacter"]),c="RichText.ToolbarControls";return n&&(c+=".".concat(n)),r&&o&&(t=he.displayShortcut[r](o)),Object(u.createElement)(P.Fill,{name:c},Object(u.createElement)(P.ToolbarButton,Object(s.a)({},i,{shortcut:t})))}var Pi=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onInput=e.onInput.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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}(u.Component);function Di(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}var Fi=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onEnter=e.onEnter.bind(Object(C.a)(e)),e.onSplit=e.onSplit.bind(Object(C.a)(e)),e.onPaste=e.onPaste.bind(Object(C.a)(e)),e.onDelete=e.onDelete.bind(Object(C.a)(e)),e.inputRule=e.inputRule.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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}),p=Object(i.findTransform)(f,function(e){return e.regExp.test(t.text)});p&&(a([p.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.image,l=this.props,s=l.onReplace,u=l.onSplit,d=l.tagName,f=l.canUserUseUnfilteredHTML,p=l.multiline,b=l.__unstableEmbedURLOnPaste;if(a&&!r){var h=a.getAsFile?a.getAsFile():a,m=Object(i.pasteHandler)({HTML:'<img src="'.concat(Object(Bi.createBlobURL)(h),'">'),mode:"BLOCKS",tagName:d});return window.console.log("Received item:\n\n",h),void(s&&Object(c.isEmpty)(t)?s(m):this.onSplit(t,m))}var v=s&&u?"AUTO":"INLINE";b&&Object(c.isEmpty)(t)&&Object(Le.isURL)(o.trim())&&(v="BLOCKS");var g=Object(i.pasteHandler)({HTML:r,plainText:o,mode:v,tagName:d,canUserUseUnfilteredHTML:f});if("string"==typeof g){var O=Object(c.create)({html:g});p&&(O=Object(c.replace)(O,/\n+/g,c.__UNSTABLE_LINE_SEPARATOR)),n(Object(c.insert)(t,O))}else g.length>0&&(s&&Object(c.isEmpty)(t)?s(g):this.onSplit(t,g))}},{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(Ne.a)(s,2),d=u[0],f=u[1],p=t.length>0,b=Di(a);p&&Object(c.isEmpty)(d)||l.push(o(Object(c.toHTMLString)({value:d,multilineTag:b}))),p?l.push.apply(l,Object(Be.a)(t)):i&&l.push(i()),!p&&i&&Object(c.isEmpty)(f)||l.push(o(Object(c.toHTMLString)({value:f,multilineTag:b}))),r(l,p?l.length-1:1)}}},{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||(di()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map(function(e){return"core/".concat(e)}))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.tagName,r=e.value,o=e.onChange,a=e.selectionStart,l=e.selectionEnd,d=e.onSelectionChange,p=e.multiline,b=e.inlineToolbar,h=e.wrapperClassName,m=e.className,v=e.autocompleters,g=e.onReplace,O=e.isCaretWithinFormattedText,k=e.onEnterFormattedText,j=e.onExitFormattedText,y=e.isSelected,_=e.onCreateUndoLevel,S=e.markAutomaticChange,E=e.didAutomaticChange,C=e.undo,w=e.placeholder,I=e.keepPlaceholderOnFocus,B=(e.allowedFormats,e.withoutInteractiveFormatting),T=(e.onRemove,e.onMerge,e.onSplit,e.canUserUseUnfilteredHTML,e.clientId,e.identifier,e.instanceId,e.start),x=e.reversed,L=Object(Ae.a)(e,["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","clientId","identifier","instanceId","start","reversed"]),N=Di(p),A=this.getAllowedFormats(),M=!A||A.length>0,R=r,D=o;Array.isArray(r)&&(R=i.children.toHTML(r),D=function(e){return o(i.children.fromDOM(Object(c.__unstableCreateElement)(document,e).childNodes))});var F=Object(u.createElement)(c.__experimentalRichText,Object(s.a)({},L,{value:R,onChange:D,selectionStart:a,selectionEnd:l,onSelectionChange:d,tagName:n,className:f()("editor-rich-text__editable block-editor-rich-text__editable",m,{"is-selected":y,"keep-placeholder-on-focus":I}),placeholder:w,allowedFormats:A,withoutInteractiveFormatting:B,onEnter:this.onEnter,onDelete:this.onDelete,onPaste:this.onPaste,__unstableIsSelected:y,__unstableInputRule:this.inputRule,__unstableMultilineTag:N,__unstableIsCaretWithinFormattedText:O,__unstableOnEnterFormattedText:k,__unstableOnExitFormattedText:j,__unstableOnCreateUndoLevel:_,__unstableMarkAutomaticChange:S,__unstableDidAutomaticChange:E,__unstableUndo:C}),function(e){var n=e.isSelected,r=e.value,o=e.onChange,i=e.Editable;return Object(u.createElement)(u.Fragment,null,t&&t({value:r,onChange:o}),n&&!b&&M&&Object(u.createElement)(pe,null,Object(u.createElement)(xi,null)),n&&b&&M&&Object(u.createElement)(P.IsolatedEventContainer,{className:"editor-rich-text__inline-toolbar block-editor-rich-text__inline-toolbar"},Object(u.createElement)(xi,null)),n&&Object(u.createElement)(Ai,null),Object(u.createElement)($,{onReplace:g,completers:v,record:r,onChange:o,isSelected:n},function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:T,reversed:x,onKeyDown:r})}))});return Object(u.createElement)("div",{className:f()("editor-rich-text block-editor-rich-text",h)},F)}}]),t}(u.Component),Hi=Object(b.compose)([b.withInstanceId,q(function(e){return{clientId:e.clientId}}),Object(m.withSelect)(function(e,t){var n=t.clientId,r=t.instanceId,o=t.identifier,i=void 0===o?r:o,c=t.isSelected,a=e("core/block-editor"),l=a.isCaretWithinFormattedText,s=a.getSelectionStart,u=a.getSelectionEnd,d=a.getSettings,f=a.didAutomaticChange,p=s(),b=u(),h=d().__experimentalCanUserUseUnfilteredHTML;return void 0===c?c=p.clientId===n&&p.attributeKey===i:c&&(c=p.clientId===n),{canUserUseUnfilteredHTML:h,isCaretWithinFormattedText:l(),selectionStart:c?p.offset:void 0,selectionEnd:c?b.offset:void 0,isSelected:c,didAutomaticChange:f()}}),Object(m.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}}),Object(P.withFilters)("experimentalRichText")])(Fi);Hi.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(Ae.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=i.children.toHTML(t));var c=Di(r);!t&&c&&(t="<".concat(c,"></").concat(c,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(p.omit)(o,["format"]),a):a},Hi.isEmpty=function(e){return!e||0===e.length},Hi.Content.defaultProps={format:"string",value:""};var Ui=Hi,Vi=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).toggle=e.toggle.bind(Object(C.a)(e)),e.submitLink=e.submitLink.bind(Object(C.a)(e)),e.state={expanded:!1},e}return Object(w.a)(t,e),Object(_.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(H.__)("Edit link"):Object(H.__)("Insert link");return Object(u.createElement)("div",{className:"editor-url-input__button block-editor-url-input__button"},Object(u.createElement)(P.IconButton,{icon:"admin-links",label:o,onClick:this.toggle,className:f()("components-toolbar__control",{"is-active":t})}),r&&Object(u.createElement)("form",{className:"editor-url-input__button-modal block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"editor-url-input__button-modal-line block-editor-url-input__button-modal-line"},Object(u.createElement)(P.IconButton,{className:"editor-url-input__back block-editor-url-input__back",icon:"arrow-left-alt",label:Object(H.__)("Close"),onClick:this.toggle}),Object(u.createElement)(mi,{value:t||"",onChange:n}),Object(u.createElement)(P.IconButton,{icon:"editor-break",label:Object(H.__)("Submit"),type:"submit"}))))}}]),t}(u.Component),zi=Object(P.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Ki=zi.Fill,Wi=zi.Slot;Ki.Slot=Wi;var qi=Ki,Gi=Object(P.createSlotFill)("__experimentalBlockSettingsMenuPluginsExtension"),$i=Gi.Fill,Yi=Gi.Slot;$i.Slot=Yi;var Xi=$i;var Zi=Object(b.compose)([Object(m.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(m.withDispatch)(function(e,t,n){var r=n.select,o=t.clientIds,c=t.rootClientId,a=t.blocks,l=t.isLocked,s=t.canDuplicate,u=e("core/block-editor"),d=u.insertBlocks,f=u.multiSelect,b=u.removeBlocks,h=u.insertDefaultBlock,m=u.replaceBlocks;return{onDuplicate:function(){if(s){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c),t=a.map(function(e){return Object(i.cloneBlock)(e)});d(t,e+1,c),t.length>1&&f(Object(p.first)(t).clientId,Object(p.last)(t).clientId)}},onRemove:function(){l||b(o)},onInsertBefore:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.first)(Object(p.castArray)(o)),c);h({},c,e)}},onInsertAfter:function(){if(!l){var e=(0,r("core/block-editor").getBlockIndex)(Object(p.last)(Object(p.castArray)(o)),c);h({},c,e+1)}},onGroup:function(){if(a.length){var e=(0,r("core/blocks").getGroupingBlockName)(),t=Object(i.switchToBlockType)(a,e);t&&m(o,t)}},onUngroup:function(){if(a.length){var e=a[0].innerBlocks;e.length&&m(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})}),Ji=function(e){return e.preventDefault(),e},Qi={duplicate:{raw:he.rawShortcut.primaryShift("d"),display:he.displayShortcut.primaryShift("d")},removeBlock:{raw:he.rawShortcut.access("z"),display:he.displayShortcut.access("z")},insertBefore:{raw:he.rawShortcut.primaryAlt("t"),display:he.displayShortcut.primaryAlt("t")},insertAfter:{raw:he.rawShortcut.primaryAlt("y"),display:he.displayShortcut.primaryAlt("y")}},ec=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).selectAll=e.selectAll.bind(Object(C.a)(e)),e.deleteSelectedBlocks=e.deleteSelectedBlocks.bind(Object(C.a)(e)),e.clearMultiSelection=e.clearMultiSelection.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"selectAll",value:function(e){var t=this.props,n=t.rootBlocksClientIds,r=t.onMultiSelect;e.preventDefault(),r(Object(p.first)(n),Object(p.last)(n))}},{key:"deleteSelectedBlocks",value:function(e){var t=this.props,n=t.selectedBlockClientIds,r=t.hasMultiSelection,o=t.onRemove,i=t.isLocked;r&&(e.preventDefault(),i||o(n))}},{key:"clearMultiSelection",value:function(){var e=this.props,t=e.hasMultiSelection,n=e.clearSelectedBlock;t&&(n(),window.getSelection().removeAllRanges())}},{key:"render",value:function(){var e,t=this.props.selectedBlockClientIds;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.KeyboardShortcuts,{shortcuts:(e={},Object(I.a)(e,he.rawShortcut.primary("a"),this.selectAll),Object(I.a)(e,"backspace",this.deleteSelectedBlocks),Object(I.a)(e,"del",this.deleteSelectedBlocks),Object(I.a)(e,"escape",this.clearMultiSelection),e)}),t.length>0&&Object(u.createElement)(Zi,{clientIds:t},function(e){var t,n=e.onDuplicate,r=e.onRemove,o=e.onInsertAfter,i=e.onInsertBefore;return Object(u.createElement)(P.KeyboardShortcuts,{bindGlobal:!0,shortcuts:(t={},Object(I.a)(t,Qi.duplicate.raw,Object(p.flow)(Ji,n)),Object(I.a)(t,Qi.removeBlock.raw,Object(p.flow)(Ji,r)),Object(I.a)(t,Qi.insertBefore.raw,Object(p.flow)(Ji,i)),Object(I.a)(t,Qi.insertAfter.raw,Object(p.flow)(Ji,o)),t)})}))}}]),t}(u.Component),tc=Object(b.compose)([Object(m.withSelect)(function(e){var t=e("core/block-editor"),n=t.getBlockOrder,r=t.getSelectedBlockClientIds,o=t.hasMultiSelection,i=t.getBlockRootClientId,c=t.getTemplateLock,a=r();return{rootBlocksClientIds:n(),hasMultiSelection:o(),isLocked:Object(p.some)(a,function(e){return!!c(i(e))}),selectedBlockClientIds:a}}),Object(m.withDispatch)(function(e){var t=e("core/block-editor");return{clearSelectedBlock:t.clearSelectedBlock,onMultiSelect:t.multiSelect,onRemove:t.removeBlocks}})])(ec),nc=Object(m.withSelect)(function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}})(function(e){var t=e.selectedBlockClientId;return t&&Object(u.createElement)(P.Button,{isDefault:!0,type:"button",className:"editor-skip-to-selected-block block-editor-skip-to-selected-block",onClick:function(){(function(e){return uo(e).closest(".block-editor-block-list__block")})(t).focus()}},Object(H.__)("Skip to the selected block"))}),rc=n(135),oc=n.n(rc);function ic(e,t,n){var r=new oc.a(e);return t&&r.remove("is-style-"+t.name),r.add("is-style-"+n.name),r.value}var cc=Object(b.compose)([Object(m.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(m.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,s=void 0===a?p.noop:a,d=e.onHoverClassName,b=void 0===d?p.noop:d;if(!t||0===t.length)return null;o.styles||Object(p.find)(t,"isDefault")||(t=[{name:"default",label:Object(H._x)("Default","block style"),isDefault:!0}].concat(Object(Be.a)(t)));var h=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,c=new oc.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=ic(n,h,e);r(t),b(null),s()}return Object(u.createElement)("div",{className:"editor-block-styles block-editor-block-styles"},t.map(function(e){var t=ic(n,h,e);return Object(u.createElement)("div",{key:e.name,className:f()("editor-block-styles__item block-editor-block-styles__item",{"is-active":h===e}),onClick:function(){return m(e)},onKeyDown:function(t){he.ENTER!==t.keyCode&&he.SPACE!==t.keyCode||(t.preventDefault(),m(e))},onMouseEnter:function(){return b(t)},onMouseLeave:function(){return b(null)},role:"button",tabIndex:"0","aria-label":e.label||e.name},Object(u.createElement)("div",{className:"editor-block-styles__item-preview block-editor-block-styles__item-preview"},Object(u.createElement)(Eo,{viewportWidth:500,blocks:o.example?Object(i.getBlockFromExample)(c.name,{attributes:Object(l.a)({},o.example.attributes,{className:t}),innerBlocks:o.example.innerBlocks}):Object(i.cloneBlock)(c,{className:t})})),Object(u.createElement)("div",{className:"editor-block-styles__item-label block-editor-block-styles__item-label"},e.label||e.name))}))}),ac=n(95);var lc=Object(m.withSelect)(function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}})(function(e){var t=e.blocks,n=Object(ac.count)(Object(i.serialize)(t),"words");return Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card block-editor-multi-selection-inspector__card"},Object(u.createElement)(be,{icon:Object(u.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.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(u.createElement)("div",{className:"editor-multi-selection-inspector__card-content block-editor-multi-selection-inspector__card-content"},Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-title block-editor-multi-selection-inspector__card-title"},Object(H.sprintf)(Object(H._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)("div",{className:"editor-multi-selection-inspector__card-description block-editor-multi-selection-inspector__card-description"},Object(H.sprintf)(Object(H._n)("%d word","%d words",n),n))))});function sc(e){var t=e.blockName,n=Object(m.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(u.useMemo)(function(){return[{label:Object(H.__)("Not set"),value:""}].concat(Object(Be.a)(i.map(function(e){return{label:e.label,value:e.name}})))},[i]),a=Object(u.useCallback)(function(e){o(t,e)},[t,o]);return o&&Object(u.createElement)(P.SelectControl,{options:c,value:r||"",label:Object(H.__)("Default Style"),onChange:a})}var uc=Object(m.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(u.createElement)(lc,null);var s=c===Object(i.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Io,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Styles"),initialOpen:!1},Object(u.createElement)(cc,{clientId:o}),Object(u.createElement)(sc,{blockName:t.name}))),Object(u.createElement)("div",null,Object(u.createElement)(si.Slot,null)),Object(u.createElement)("div",null,Object(u.createElement)(oi.Slot,null,function(e){return!Object(p.isEmpty)(e)&&Object(u.createElement)(P.PanelBody,{className:"editor-block-inspector__advanced block-editor-block-inspector__advanced",title:Object(H.__)("Advanced"),initialOpen:!1},e)})),Object(u.createElement)(nc,{key:"back"})):l?Object(u.createElement)("span",{className:"editor-block-inspector__no-blocks block-editor-block-inspector__no-blocks"},Object(H.__)("No block selected.")):null}),dc=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).bindContainer=e.bindContainer.bind(Object(C.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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(u.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),t}(u.Component),fc=Object(b.compose)([Object(m.withSelect)(function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}}),Object(m.withDispatch)(function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}})])(dc);var pc=Object(b.compose)([Object(m.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(m.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(H.__)("Edit as HTML"):Object(H.__)("Edit visually");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:r,icon:"html"},!c&&s)});function bc(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(H.__)("Convert to Blocks");return Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:n,icon:"screenoptions"},!r&&o)}var hc=Object(b.compose)(Object(m.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(m.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)}))}}}))(bc),mc=Object(b.compose)(Object(m.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(m.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)}))}}}))(bc),vc={className:"block-editor-block-settings-menu__popover editor-block-settings-menu__popover",position:"bottom right"};var gc=function(e){var t=e.clientIds,n=Object(p.castArray)(t),r=n.length,o=n[0];return Object(u.createElement)(Zi,{clientIds:t},function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,c=e.isLocked,a=e.onDuplicate,l=e.onInsertAfter,s=e.onInsertBefore,d=e.onRemove;return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.DropdownMenu,{icon:"ellipsis",label:Object(H.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:vc},function(e){var f=e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuGroup,null,Object(u.createElement)(qi.Slot,{fillProps:{onClose:f}}),1===r&&Object(u.createElement)(mc,{clientId:o}),1===r&&Object(u.createElement)(hc,{clientId:o}),n&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,a),icon:"admin-page",shortcut:Qi.duplicate.display},Object(H.__)("Duplicate")),i&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,s),icon:"insert-before",shortcut:Qi.insertBefore.display},Object(H.__)("Insert Before")),Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,l),icon:"insert-after",shortcut:Qi.insertAfter.display},Object(H.__)("Insert After"))),1===r&&Object(u.createElement)(pc,{clientId:o,onToggle:f}),Object(u.createElement)(Xi.Slot,{fillProps:{clientIds:t,onClose:f}})),Object(u.createElement)(P.MenuGroup,null,!c&&Object(u.createElement)(P.MenuItem,{className:"editor-block-settings-menu__control block-editor-block-settings-menu__control",onClick:Object(p.flow)(f,d),icon:"trash",shortcut:Qi.removeBlock.display},Object(H.__)("Remove Block"))))}))})},Oc=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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 s,d=a?n[0]:null,f=a?Object(i.getBlockType)(d.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,v=Object(i.getBlockType)(m);s=v.icon}else s="layout";return c||h.length?Object(u.createElement)(P.Dropdown,{position:"bottom right",className:"editor-block-switcher block-editor-block-switcher",contentClassName:"editor-block-switcher__popover block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(H.__)("Change block type or style"):Object(H.sprintf)(Object(H._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{className:"editor-block-switcher__toggle block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,label:o,tooltip:o,onKeyDown:function(e){r||e.keyCode!==he.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(be,{icon:s,showColors:!0}),Object(u.createElement)(P.SVG,{className:"editor-block-switcher__transform block-editor-block-switcher__transform",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(P.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(u.createElement)(u.Fragment,null,(c||0!==h.length)&&Object(u.createElement)("div",{className:"block-editor-block-switcher__container"},c&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Block Styles"),initialOpen:!0},Object(u.createElement)(cc,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==h.length&&Object(u.createElement)(P.PanelBody,{title:Object(H.__)("Transform To:"),initialOpen:!0},Object(u.createElement)(wo,{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(u.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(u.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(H.__)("Preview")),Object(u.createElement)(Eo,{viewportWidth:500,blocks:f.example?Object(i.getBlockFromExample)(d.name,{attributes:Object(l.a)({},f.example.attributes,{className:a}),innerBlocks:f.example.innerBlocks}):Object(i.cloneBlock)(d,{className:a})})))}}):Object(u.createElement)(P.Toolbar,null,Object(u.createElement)(P.IconButton,{disabled:!0,className:"editor-block-switcher__no-switcher-icon block-editor-block-switcher__no-switcher-icon",label:Object(H.__)("Block icon"),icon:Object(u.createElement)(be,{icon:s,showColors:!0})}))}}]),t}(u.Component),kc=Object(b.compose)(Object(m.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(m.withDispatch)(function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(i.switchToBlockType)(n,r))}}}))(Oc);var jc=Object(m.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(u.createElement)(kc,{key:"switcher",clientIds:n}):null});var yc=Object(m.withSelect)(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}})(function(e){var t=e.blockClientIds,n=e.isValid,r=e.mode;return 0===t.length?null:t.length>1?Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},Object(u.createElement)(jc,null),Object(u.createElement)(gc,{clientIds:t})):Object(u.createElement)("div",{className:"editor-block-toolbar block-editor-block-toolbar"},"visual"===r&&n&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(kc,{clientIds:t}),Object(u.createElement)(oe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(pe.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(gc,{clientIds:t}))});var _c=Object(b.compose)([Object(m.withDispatch)(function(e,t,n){var r=(0,n.select)("core/block-editor"),o=r.getBlocksByClientId,c=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=e("core/block-editor").removeBlocks,s=function(e){var t=c();if(0!==t.length&&(a()||!Object(Br.documentHasSelection)())){var n=Object(i.serialize)(o(t));e.clipboardData.setData("text/plain",n),e.clipboardData.setData("text/html",n),e.preventDefault()}};return{onCopy:s,onCut:function(e){if(s(e),a()){var t=c();l(t)}}}})])(function(e){var t=e.children,n=e.onCopy,r=e.onCut;return Object(u.createElement)("div",{onCopy:n,onCut:r},t)}),Sc=function(e){function t(){return Object(y.a)(this,t),Object(S.a)(this,Object(E.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(_.a)(t,[{key:"componentDidUpdate",value:function(){this.scrollIntoView()}},{key:"scrollIntoView",value:function(){var e=this.props.extentClientId;if(e){var t=uo(e);if(t){var n=Object(Br.getScrollContainer)(t);n&&xe()(t,n,{onlyScrollIfNeeded:!0})}}}},{key:"render",value:function(){return null}}]),t}(u.Component),Ec=Object(m.withSelect)(function(e){return{extentClientId:(0,e("core/block-editor").getLastMultiSelectedBlockClientId)()}})(Sc),Cc=[he.UP,he.RIGHT,he.DOWN,he.LEFT,he.ENTER,he.BACKSPACE];var wc=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).stopTypingOnSelectionUncollapse=e.stopTypingOnSelectionUncollapse.bind(Object(C.a)(e)),e.stopTypingOnMouseMove=e.stopTypingOnMouseMove.bind(Object(C.a)(e)),e.startTypingInTextField=e.startTypingInTextField.bind(Object(C.a)(e)),e.stopTypingOnNonTextField=e.stopTypingOnNonTextField.bind(Object(C.a)(e)),e.stopTypingOnEscapeKey=e.stopTypingOnEscapeKey.bind(Object(C.a)(e)),e.onKeyDown=Object(p.over)([e.startTypingInTextField,e.stopTypingOnEscapeKey]),e.lastMouseMove=null,e}return Object(w.a)(t,e),Object(_.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===he.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(Br.isTextField)(i)||i.closest(".block-editor-block-toolbar")||("keydown"!==o||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(Cc,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(Br.isTextField)(i)&&o()})}},{key:"render",value:function(){var e=this.props.children;return Object(u.createElement)("div",{onFocus:this.stopTypingOnNonTextField,onKeyPress:this.startTypingInTextField,onKeyDown:this.onKeyDown},e)}}]),t}(u.Component),Ic=Object(b.compose)([Object(m.withSelect)(function(e){return{isTyping:(0,e("core/block-editor").isTyping)()}}),Object(m.withDispatch)(function(e){var t=e("core/block-editor");return{onStartTyping:t.startTyping,onStopTyping:t.stopTyping}}),b.withSafeTimeout])(wc);function Bc(){return di()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}var Tc=-1!==window.navigator.userAgent.indexOf("Trident"),xc=new Set([he.UP,he.DOWN,he.LEFT,he.RIGHT]),Lc=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(C.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(C.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(C.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(C.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(C.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(C.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(C.a)(e)),e}return Object(w.a)(t,e),Object(_.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(Br.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(Br.computeCaretRect)();if(n)if(this.caretRect)if(xc.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(Br.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 Tc?this.props.children:Object(u.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener},this.props.children)}}]),t}(u.Component),Nc=Object(m.withSelect)(function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}})(Lc),Ac=window,Mc=Ac.getSelection,Rc=Ac.getComputedStyle,Pc=Object(p.overEvery)([Br.isTextField,Br.focus.tabbable.isTabbableIndex]);var Dc=function(e){function t(){var e;return Object(y.a)(this,t),(e=Object(S.a)(this,Object(E.a)(t).apply(this,arguments))).onKeyDown=e.onKeyDown.bind(Object(C.a)(e)),e.bindContainer=e.bindContainer.bind(Object(C.a)(e)),e.onMouseDown=e.onMouseDown.bind(Object(C.a)(e)),e.focusLastTextField=e.focusLastTextField.bind(Object(C.a)(e)),e.verticalRect=null,e.appender=Object(u.createRef)(),e}return Object(w.a)(t,e),Object(_.a)(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onMouseDown",value:function(){this.verticalRect=null,this.disableNavigationMode()}},{key:"disableNavigationMode",value:function(){this.props.isNavigationMode&&this.props.disableNavigationMode()}},{key:"getClosestTabbable",value:function(e,t){var n=Br.focus.focusable.find(this.container);return t&&(n=Object(p.reverse)(n)),n=n.slice(n.indexOf(e)+1),Object(p.find)(n,function t(n,r,o){if(!Br.focus.tabbable.isTabbableIndex(n))return!1;if(Object(Br.isTextField)(n))return!0;if(!function(e){return e.classList.contains("block-editor-block-list__block")}(n))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})}},{key:"expandSelection",value:function(e){var t=this.props,n=t.selectedBlockClientId,r=t.selectionStartClientId,o=t.selectionBeforeEndClientId,i=t.selectionAfterEndClientId,c=e?o:i;c&&this.props.onMultiSelect(r||n,c)}},{key:"moveSelection",value:function(e){var t=this.props,n=t.selectedFirstClientId,r=t.selectedLastClientId,o=e?n:r;o&&this.props.onSelectBlock(o)}},{key:"isTabbableEdge",value:function(e,t){var n=this.getClosestTabbable(e,t);return!n||!function(e,t){return e.closest("[data-block]")===t.closest("[data-block]")}(e,n)}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.hasMultiSelection,r=t.onMultiSelect,o=t.blocks,i=t.selectedBlockClientId,c=t.selectionBeforeEndClientId,a=t.selectionAfterEndClientId,l=t.isNavigationMode,s=e.keyCode,u=e.target,d=s===he.UP,f=s===he.DOWN,b=s===he.LEFT,h=s===he.RIGHT,m=s===he.TAB,v=d||b,g=b||h,O=d||f,k=g||O,j=e.shiftKey,y=j||e.ctrlKey||e.altKey||e.metaKey,_=O?Br.isVerticalEdge:Br.isHorizontalEdge;if(l){var S=m&&j||d,E=m&&!j||f,C=S?c:a;return(E||S)&&C&&(e.preventDefault(),this.props.onSelectBlock(C)),void(E&&i&&!a&&-1===[he.UP,he.DOWN].indexOf(s)&&(this.props.clearSelectedBlock(),this.appender.current.focus()))}if(O?this.verticalRect||(this.verticalRect=Object(Br.computeCaretRect)()):this.verticalRect=null,!k)return he.isKeyboardEvent.primary(e)&&(this.isEntirelySelected=Object(Br.isEntirelySelected)(u)),void(he.isKeyboardEvent.primary(e,"a")&&((u.isContentEditable?this.isEntirelySelected:Object(Br.isEntirelySelected)(u))&&(r(Object(p.first)(o),Object(p.last)(o)),e.preventDefault()),this.isEntirelySelected=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===he.UP||t===he.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(u,s,y)){var w="rtl"===Rc(u).direction?!v:v;if(j)(v&&c||!v&&a)&&(n||this.isTabbableEdge(u,v)&&_(u,v))&&(this.expandSelection(v),e.preventDefault());else if(n)this.moveSelection(v),e.preventDefault();else if(O&&Object(Br.isVerticalEdge)(u,v)){var I=this.getClosestTabbable(u,v);I&&(Object(Br.placeCaretAtVerticalEdge)(I,v,this.verticalRect),e.preventDefault())}else if(g&&Mc().isCollapsed&&Object(Br.isHorizontalEdge)(u,w)){var B=this.getClosestTabbable(u,w);Object(Br.placeCaretAtHorizontalEdge)(B,w),e.preventDefault()}}}},{key:"focusLastTextField",value:function(){var e=Br.focus.focusable.find(this.container),t=Object(p.findLast)(e,Pc);t&&Object(Br.placeCaretAtHorizontalEdge)(t,!0)}},{key:"render",value:function(){var e=this.props.children;return Object(u.createElement)("div",{className:"editor-writing-flow block-editor-writing-flow"},Object(u.createElement)("div",{ref:this.bindContainer,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown},e),Object(u.createElement)("div",{ref:this.appender,"aria-hidden":!0,tabIndex:-1,onClick:this.focusLastTextField,className:"editor-writing-flow__click-redirect block-editor-writing-flow__click-redirect"}))}}]),t}(u.Component),Fc=Object(b.compose)([Object(m.withSelect)(function(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(),p=r(),b=o();return{selectedBlockClientId:f,selectionStartClientId:p,selectionBeforeEndClientId:i(b||f),selectionAfterEndClientId:c(b||f),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d()}}),Object(m.withDispatch)(function(e){var t=e("core/block-editor"),n=t.multiSelect,r=t.selectBlock,o=t.setNavigationMode;return{onMultiSelect:n,onSelectBlock:r,disableNavigationMode:function(){return o(!1)},clearSelectedBlock:t.clearSelectedBlock}})])(Dc),Hc=["left","center","right","wide","full"],Uc=["wide","full"];function Vc(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?Hc:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(Uc)):t}var zc=Object(b.createHigherOrderComponent)(function(e){return function(t){var n=t.name,r=Vc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0));return[r.length>0&&t.isSelected&&Object(u.createElement)(oe,{key:"align-controls"},Object(u.createElement)(Q,{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(u.createElement)(e,Object(s.a)({key:"edit"},t))]}},"withToolbarControls"),Kc=Object(b.createHigherOrderComponent)(Object(b.compose)([Object(m.withSelect)(function(e){return{hasWideEnabled:!!(0,e("core/block-editor").getSettings)().alignWide}}),function(e){return function(t){var n=t.name,r=t.attributes,o=t.hasWideEnabled,c=r.align,a=Vc(Object(i.getBlockSupport)(n,"align"),Object(i.hasBlockSupport)(n,"alignWide",!0),o),d=t.wrapperProps;return Object(p.includes)(a,c)&&(d=Object(l.a)({},d,{"data-align":c})),Object(u.createElement)(e,Object(s.a)({},t,{wrapperProps:d}))}}]));Object(h.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(h.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Kc),Object(h.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",zc),Object(h.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)(Vc(o,c),r)&&(e.className=f()("align".concat(r),e.className)),e});var Wc=/[\s#]/g;var qc=Object(b.createHigherOrderComponent)(function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(oi,null,Object(u.createElement)(P.TextControl,{className:"html-anchor-control",label:Object(H.__)("HTML Anchor"),help:Object(u.createElement)(u.Fragment,null,Object(H.__)("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(u.createElement)(P.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(H.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(Wc,"-"),t.setAttributes({anchor:e})}}))):Object(u.createElement)(e,t)}},"withInspectorControl");Object(h.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(h.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",qc),Object(h.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 Gc=Object(b.createHigherOrderComponent)(function(e){return function(t){return Object(i.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(u.createElement)(u.Fragment,null,Object(u.createElement)(e,t),Object(u.createElement)(oi,null,Object(u.createElement)(P.TextControl,{label:Object(H.__)("Additional CSS Class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(H.__)("Separate multiple classes with spaces.")}))):Object(u.createElement)(e,t)}},"withInspectorControl");function $c(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(h.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(h.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Gc),Object(h.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=f()(e.className,n.className)),e}),Object(h.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=$c(o),a=$c(n),l=Object(p.difference)(a,c);l.length?e.className=l.join(" "):o&&delete e.className}return e}),Object(h.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(Be.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(i.getBlockDefaultClassName)(t.name)),e});var Yc=n(198),Xc=n.n(Yc),Zc=n(30),Jc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qc=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),p(),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(p(),b(n);e.length&&"}"!==e.charAt(0)&&(t=S()||E());)!1!==t&&(n.push(t),b(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 p(){f(/^\s*/)}function b(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 ea(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(e){return e.replace(/\u200C/g,",")})}function v(){var e=i(),t=f(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=ea(t[0]),!f(/^:\s*/))return l("property missing ':'");var n=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Jc,""),value:n?ea(n[0]).replace(Jc,""):""});return f(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(b(t);e=v();)!1!==e&&(t.push(e),b(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:g()})}var k=_("import"),j=_("charset"),y=_("namespace");function _(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 S(){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=b();r=O();)c.push(r),c=c.concat(b());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=ea(t[1]);if(!s())return l("@media missing '{'");var r=b().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:ea(t[1]),media:ea(t[2])})}()||function(){var e=i(),t=f(/^@supports *([^{]+)/);if(t){var n=ea(t[1]);if(!s())return l("@supports missing '{'");var r=b().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||j()||y()||function(){var e=i(),t=f(/^@([-\w]+)?document *([^{]+)/);if(t){var n=ea(t[1]),r=ea(t[2]);if(!s())return l("@document missing '{'");var o=b().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=b();n=v();)r.push(n),r=r.concat(b());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=b().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=b();t=v();)n.push(t),n=n.concat(b());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function E(){var e=i(),t=m();return t?(b(),e({type:"rule",selectors:t,declarations:g()})):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(Zc.a)(c)&&e(c,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}(function(){var e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())};function ea(e){return e?e.replace(/^\s+|\s+$/g,""):""}var ta=n(105),na=n.n(ta),ra=oa;function oa(e){this.options=e||{}}oa.prototype.emit=function(e){return e},oa.prototype.visit=function(e){return this[e.type](e)},oa.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 ia=ca;function ca(e){ra.call(this,e)}na()(ca,ra),ca.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},ca.prototype.comment=function(e){return this.emit("",e.position)},ca.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},ca.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},ca.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("}")},ca.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},ca.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},ca.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},ca.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},ca.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},ca.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("}")},ca.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},ca.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},ca.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},ca.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("}"):""},ca.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var aa=la;function la(e){e=e||{},ra.call(this,e),this.indentation=e.indent}na()(la,ra),la.prototype.compile=function(e){return this.stylesheet(e)},la.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},la.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},la.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},la.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}")},la.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}")},la.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},la.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},la.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}")},la.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)+"}")},la.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")},la.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}")},la.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}")},la.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}")},la.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},la.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()+"}"):""},la.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},la.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||"  ")};var sa=function(e,t){return((t=t||{}).compress?new ia(t):new aa(t)).compile(e)};var ua=function(e,t){try{var n=Qc(e),r=Xc.a.map(n,function(e){if(!e)return e;var n=t(e);return this.update(n)});return sa(r)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}},da=n(81);function fa(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(!function(e){return/^\/(?!\/)/.test(e)}(e.value)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value))}function pa(e){return function(t){var n=function(e,t){var n=Object(da.parse)(e).pathname;return Object(da.resolve)(t,n)}(t.value,e);return Object(l.a)({},t,{newUrl:"url("+t.before+t.quote+n+t.quote+t.after+")"})}}var ba=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]};fa(o)&&r.push(o)}return r}(t.value).map(pa(e));return Object(l.a)({},t,{value:function(e,t){return t.forEach(function(t){e=e.replace(t.source,t.newUrl)}),e}(t.value,n)})}return t}},ha=/^(body|html|:root).*$/,ma=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Object(l.a)({},n,{selectors:n.selectors.map(function(n){return Object(p.includes)(t,n.trim())?n:n.match(ha)?n.replace(/^(body|html|:root)/,e):e+" "+n})}):n}},va=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(ma(t)),r&&o.push(ba(r)),o.length?ua(n,Object(b.compose)(o)):n})};n.d(t,"AlignmentToolbar",function(){return V}),n.d(t,"Autocomplete",function(){return $}),n.d(t,"BlockAlignmentToolbar",function(){return Q}),n.d(t,"BlockControls",function(){return oe}),n.d(t,"BlockEdit",function(){return le}),n.d(t,"BlockFormatControls",function(){return pe}),n.d(t,"BlockIcon",function(){return be}),n.d(t,"BlockNavigationDropdown",function(){return Oe}),n.d(t,"__experimentalBlockNavigationList",function(){return me}),n.d(t,"BlockVerticalAlignmentToolbar",function(){return Ee}),n.d(t,"ButtonBlockerAppender",function(){return Uo}),n.d(t,"ColorPalette",function(){return zo}),n.d(t,"ContrastChecker",function(){return Wo}),n.d(t,"InnerBlocks",function(){return Qo}),n.d(t,"InspectorAdvancedControls",function(){return oi}),n.d(t,"InspectorControls",function(){return si}),n.d(t,"MediaPlaceholder",function(){return yi}),n.d(t,"MediaUpload",function(){return fi}),n.d(t,"MediaUploadCheck",function(){return Ce}),n.d(t,"PanelColorSettings",function(){return wi}),n.d(t,"PlainText",function(){return Ii}),n.d(t,"RichText",function(){return Ui}),n.d(t,"RichTextShortcut",function(){return Mi}),n.d(t,"RichTextToolbarButton",function(){return Ri}),n.d(t,"__unstableRichTextInputEvent",function(){return Pi}),n.d(t,"URLInput",function(){return mi}),n.d(t,"URLInputButton",function(){return Vi}),n.d(t,"URLPopover",function(){return gi}),n.d(t,"withColorContext",function(){return Vo}),n.d(t,"__experimentalBlockSettingsMenuFirstItem",function(){return qi}),n.d(t,"__experimentalBlockSettingsMenuPluginsExtension",function(){return Xi}),n.d(t,"__experimentalInserterMenuExtension",function(){return No}),n.d(t,"BlockEditorKeyboardShortcuts",function(){return tc}),n.d(t,"BlockInspector",function(){return uc}),n.d(t,"BlockList",function(){return _o}),n.d(t,"BlockMover",function(){return Pr}),n.d(t,"BlockPreview",function(){return Eo}),n.d(t,"BlockSelectionClearer",function(){return fc}),n.d(t,"BlockSettingsMenu",function(){return gc}),n.d(t,"BlockTitle",function(){return Jr}),n.d(t,"BlockToolbar",function(){return yc}),n.d(t,"CopyHandler",function(){return _c}),n.d(t,"DefaultBlockAppender",function(){return ko}),n.d(t,"Inserter",function(){return Ho}),n.d(t,"MultiBlocksSwitcher",function(){return jc}),n.d(t,"MultiSelectScrollIntoView",function(){return Ec}),n.d(t,"NavigableToolbar",function(){return eo}),n.d(t,"ObserveTyping",function(){return Ic}),n.d(t,"PreserveScrollInReorder",function(){return Bc}),n.d(t,"SkipToSelectedBlock",function(){return nc}),n.d(t,"Typewriter",function(){return Nc}),n.d(t,"Warning",function(){return Dr}),n.d(t,"WritingFlow",function(){return Fc}),n.d(t,"BlockEditorProvider",function(){return Cr}),n.d(t,"getColorClassName",function(){return j}),n.d(t,"getColorObjectByAttributeValues",function(){return O}),n.d(t,"getColorObjectByColorValue",function(){return k}),n.d(t,"createCustomColorsHOC",function(){return N}),n.d(t,"withColors",function(){return A}),n.d(t,"getFontSize",function(){return M}),n.d(t,"getFontSizeClass",function(){return R}),n.d(t,"FontSizePicker",function(){return D}),n.d(t,"withFontSizes",function(){return F}),n.d(t,"transformStyles",function(){return va}),n.d(t,"storeConfig",function(){return yr}),n.d(t,"SETTINGS_DEFAULTS",function(){return Re})}]);