mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
7d19adab35
Improve the shape of package-lock.json file to make it stable. The main change is that both dependencies of WordPress packages that use npm aliases are listed as development dependencies: puppeteer and prettier. This patch includes also block.json files for dynamic blocks copied from WordPress packages. Props ellatrix. Fixes #50420. Built from https://develop.svn.wordpress.org/trunk@48213 git-svn-id: http://core.svn.wordpress.org/trunk@47982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
12 lines
400 KiB
JavaScript
12 lines
400 KiB
JavaScript
/*! This file is auto-generated */
|
||
this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=435)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,n){"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}))},103:function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,c,i=n[r.type],a=t(r);if(i)for(o=0;o<i.length;o++)(c=i[o](r,e))&&e.dispatch(c);return a}}}).effects=n,t}},107:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(161)),c=r(n(162)),i=n(17),a=r(i),l=r(n(139)),s=r(n(163)),u={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(u.str(e)||u.num(e))return e===t;if(u.obj(e)&&u.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!u.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function b(e,t){return u.und(e)||u.nul(e)?t:e}function f(e){return u.und(e)?[]:u.arr(e)?e:[e]}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return u.fun(e)?e.apply(void 0,n):e}function m(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,c(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(u.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var c;return u.und(t[r])?o({},n,((c={})[r]=e[r],c)):n}),{});return o({to:t},n)}var O,g,v=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}return l(t,e),t}(v),j=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof v&&e.removeChild(s(t))}))},t}l(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof v)&&(t[n]=r instanceof v?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(v);function k(e,t){O={fn:e,transform:t}}function y(e){g=e}var _,E=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},S=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function C(e){_=e}var w,I=function(){return Date.now()};function B(e){w=e}var x,P,T=function(e){return e.current};function N(e){x=e}var R=Object.freeze({get applyAnimatedValues(){return O},injectApplyAnimatedValues:k,get colorNames(){return g},injectColorNames:y,get requestFrame(){return E},get cancelFrame(){return S},injectFrame:function(e,t){E=e,S=t},get interpolation(){return _},injectStringInterpolator:C,get now(){return I},injectNow:function(e){I=e},get defaultElement(){return w},injectDefaultElement:B,get animatedApi(){return T},injectAnimatedApi:function(e){T=e},get createAnimatedStyle(){return x},injectCreateAnimatedStyle:N,get manualFrameloop(){return P},injectManualFrameloop:function(e){P=e}}),D=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:x(t.style)}):t,r.update=n,r.attach(),r}return l(t,e),t}(j),L=!1,A=new Set,M=function e(){if(!L)return!1;var t=I(),n=A,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var c;if(r){if(o>=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l<i.configs.length;l++){for(var s=i.configs[l],u=void 0,d=void 0,b=0;b<s.animatedValues.length;b++){var f=s.animatedValues[b];if(!f.done){var p=s.fromValues[b],m=s.toValues[b],O=f.lastPosition,g=m instanceof v,h=Array.isArray(s.initialVelocity)?s.initialVelocity[b]:s.initialVelocity;if(g&&(m=m.getValue()),s.immediate)f.setValue(m),f.done=!0;else if("string"!=typeof p&&"string"!=typeof m){if(void 0!==s.duration)O=p+s.easing((t-f.startTime)/s.duration)*(m-p),u=t>=f.startTime+s.duration;else if(s.decay)O=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-O)<.1)&&(m=O);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;k<j;++k){O+=1*(h+=1*((-s.tension*(O-m)+-s.friction*h)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<m?O>m:O<m),_=Math.abs(h)<=s.precision,S=0===s.tension||Math.abs(m-O)<=s.precision;u=y||_&&S,f.lastVelocity=h,f.lastTime=t}g&&!s.toValues[b].done&&(u=!1),u?(f.value!==m&&(O=m),f.done=!0):a=!0,f.setValue(O),f.lastPosition=O}else f.setValue(m),f.done=!0}}i.props.onFrame&&(i.values[s.name]=s.interpolation.getValue())}i.props.onFrame&&i.props.onFrame(i.values),a||(A.delete(i),i.stop(!0))}return A.size?P?P():E(e):L=!1,L};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(_&&"string"==typeof e.output[0])return _(e);var r=e,o=r.output,c=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),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,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(v),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),U=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,A.has(t)||A.add(t),L||(L=!0,E(P||M));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,A.has(t)&&A.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s<r.to.length;s++)l(s);else if(u.fun(r.to)){var d,b=0;a=a.then((function(){return r.to((function(e){var t=o({},r,m(e));if(u.arr(t.config)&&(t.config=t.config[b]),b++,i===n.guid)return d=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return d}))}))}a.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,c=void 0===r?{}:r,i=n.to,a=void 0===i?{}:i,l=n.config,s=void 0===l?{}:l,d=n.reverse,m=n.attach,O=n.reset,v=n.immediate;if(d){var h=[a,c];c=h[0],a=h[1]}this.merged=o({},c,this.merged,a),this.hasChanged=!1;var j=m&&m(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],i=n[1],a=e[r]||{},l=u.num(i),d=u.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!g[i],m=u.arr(i),h=!l&&!m&&!d,k=u.und(c[r])?i:c[r],y=l||m||d?i:1,E=p(s,r);j&&(y=j.animations[r].parent);var S,C=a.parent,w=a.interpolation,B=f(j?y.getPayload():y),x=i;h&&(x=_({range:[0,1],output:[i,i]})(1));var P,T=w&&w.getValue(),N=!u.und(C)&&a.animatedValues.some((function(e){return!e.done})),R=!u.equ(x,T),D=!u.equ(x,a.previous),L=!u.equ(E,a.config);if(O||D&&R||L){var A;if(l||d)C=w=a.parent||new H(k);else if(m)C=w=a.parent||new z(k);else if(h){var M=a.interpolation&&a.interpolation.calc(a.parent.value);M=void 0===M||O?k:M,a.parent?(C=a.parent).setValue(0,!1):C=new H(0);var F={output:[M,i]};a.interpolation?(w=a.interpolation,a.interpolation.updateConfig(F)):w=C.interpolate(F)}return B=f(j?y.getPayload():y),S=f(C.getPayload()),O&&!h&&C.setValue(k,!1),t.hasChanged=!0,S.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=N?e.lastVelocity:void 0,e.lastTime=N?e.lastTime:void 0,e.startTime=I(),e.done=!1,e.animatedStyles.clear()})),p(v,r)&&C.setValue(h?y:i,!1),o({},e,((A={})[r]=o({},a,{name:r,parent:C,interpolation:w,animatedValues:S,toValues:B,previous:x,config:E,fromValues:f(C.getValue()),immediate:p(v,r),initialVelocity:b(E.velocity,0),clamp:b(E.clamp,!1),precision:b(E.precision,.01),tension:b(E.tension,170),friction:b(E.friction,26),mass:b(E.mass,1),duration:E.duration,easing:b(E.easing,(function(e){return e})),decay:E.decay}),A))}return R?e:(h&&(C.setValue(1,!1),w.updateConfig({output:[x,x]})),C.done=!0,t.hasChanged=!0,o({},e,((P={})[r]=o({},e[r],{previous:x}),P)))}),this.animations),this.hasChanged)for(var k in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[k]=this.animations[k].interpolation,this.values[k]=this.animations[k].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),K=function(e,t){var n=i.useRef(!1),r=i.useRef(),o=u.fun(t),c=i.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var c=new G,i=o?p(t,r,c):t[r];return 0===r&&(n=i.ref),c.update(i),n||c.start(),c})),n]}),[e]),a=c[0],l=c[1];r.current=a;i.useImperativeHandle(l,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=i.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?p(e,n,t):e[n]),l||t.start()}))}}),[e]);i.useEffect((function(){n.current?o||s(t):l||r.current.forEach((function(e){return e.start()}))})),i.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var d=r.current.map((function(e){return e.getValues()}));return o?[d,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:d},W=0,q=function(e,t){return("function"==typeof t?e.map(t):f(t)).map(String)},$=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,i=c(e,["items","keys"]);return t=f(void 0!==t?t:null),o({items:t,keys:q(t,r)},i)};function Y(e,t){var n=function(){if(o){if(c>=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof v||(t=O.transform(t)),n.payload=t,n}return l(t,e),t}(j),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(Q,Q,Q)),te=new RegExp("rgba"+J(Q,Q,Q,Q)),ne=new RegExp("hsl"+J(Q,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(Q,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",Q)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function le(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?: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,ge=new RegExp("("+Object.keys(Z).join("|")+")","g"),ve={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},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}ve=Object.keys(ve).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ve);var ke={};N((function(e){return new X(e)})),B("div"),C((function(e){var t=e.output.map((function(e){return e.replace(Oe,pe)})).map((function(e){return e.replace(ge,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Z),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new D(e,(function(){var e=!1;b.current&&(e=O.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),g=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),v=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},g,{ref:v}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Se=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=M,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),O=a.onRest,g=a.onStart,v=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,O=a.trail,g=void 0===O?0:O,v=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,S=o({},i.current),C=[].concat(i.deleted),w=Object.keys(S),I=new Set(w),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-g;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){v&&C.find((function(t){return t.originalKey===e}))&&(C=C.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";S[e]={slot:c,originalKey:e,key:v?String(e):W++,item:o,trail:N+=g,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];C.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=g,config:p(h,n,"leave"),to:p(f,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];S[e]=o({},S[e],{item:n,slot:"update",trail:N+=g,config:p(h,n,"update"),to:p(m,n)})}))}}var R=s.map((function(e){return S[e]}));return C.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:R,current:S,deleted:C,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:v,onRest:function(n){y.current.mounted&&(e.destroyed&&(v||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(v||s)&&y.current.deleted.length>0&&Y(y),O&&O(l,t,n))},onStart:g&&function(){return g(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},11:function(e,t,n){var r;
|
||
/*!
|
||
Copyright (c) 2017 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 c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},114:function(e,t,n){"use strict";e.exports=n(168)},117:function(e,t){!function(){e.exports=this.wp.shortcode}()},12:function(e,t){!function(){e.exports=this.wp.blocks}()},13: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}))},130:function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:a,height:a},l))}},131:function(e,t,n){"use strict";var r=n(132);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},132:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},133:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=c},139:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(42);function o(e,t){if(null==e)return{};var n,o,c=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),o=n(35),c=n(28),i=n(39);function a(e){return Object(r.a)(e)||Object(o.a)(e)||Object(c.a)(e)||Object(i.a)()}},141:function(e,t){!function(){e.exports=this.wp.wordcount}()},145:function(e,t){!function(){e.exports=this.wp.tokenList}()},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(38);var o=n(28),c=n(39);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(e,t)||Object(o.a)(e,t)||Object(c.a)()}},156:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},16:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);var o=n(35),c=n(28);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},161: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},162:function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},163: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}},164:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(17),l=n(33),s=n(165),u=n(166),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.dispatchEvent=function(e){var n=document.createEvent("Event");n.initEvent(e,!0,!1),t.textarea.dispatchEvent(n)},t.updateLineHeight=function(){t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t.saveDOMNodeRef=function(e){var n=t.props.innerRef;n&&n(e),t.textarea=e},t.getLocals=function(){var e=t,n=e.props,r=(n.onResize,n.maxRows),o=(n.onChange,n.style),a=(n.innerRef,i(n,["onResize","maxRows","onChange","style","innerRef"])),l=e.state.lineHeight,s=e.saveDOMNodeRef,u=r&&l?l*r:null;return c({},a,{saveDOMNodeRef:s,style:u?c({},o,{maxHeight:u}):o,onChange:t.onChange})},t}return o(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.onResize;"number"==typeof t.maxRows&&this.updateLineHeight(),setTimeout((function(){return s(e.textarea)})),n&&this.textarea.addEventListener("autosize:resized",n)},t.prototype.componentWillUnmount=function(){var e=this.props.onResize;e&&this.textarea.removeEventListener("autosize:resized",e),this.dispatchEvent("autosize:destroy")},t.prototype.render=function(){var e=this.getLocals(),t=e.children,n=e.saveDOMNodeRef,r=i(e,["children","saveDOMNodeRef"]);return a.createElement("textarea",c({},r,{ref:n}),t)},t.prototype.componentDidUpdate=function(e){this.props.value===this.currentValue&&this.props.rows===e.rows||this.dispatchEvent("autosize:update")},t.defaultProps={rows:1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.func},t}(a.Component);t.default=d},165:function(e,t,n){var r,o,c;
|
||
/*!
|
||
autosize 4.0.2
|
||
license: MIT
|
||
http://www.jacklmoore.com/autosize
|
||
*/o=[e,t],void 0===(c="function"==typeof(r=function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==r){i=r;var o=c("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function a(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var s=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((s=function(e){return e}).destroy=function(e){return e},s.update=function(e){return e}):((s=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=s,e.exports=t.default})?r.apply(t,o):r)||(e.exports=c)},166:function(e,t,n){var r=n(167);e.exports=function(e){var t=r(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var o=e.style.lineHeight;e.style.lineHeight=t+"em",t=r(e,"line-height"),n=parseFloat(t,10),o?e.style.lineHeight=o:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML=" ","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var a=r(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},167: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()}))]}},168:function(e,t,n){"use strict";var r=n(169);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,a=n.alignWithLeft,l=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var b=r.isWindow(t),f=r.offset(e),p=r.outerHeight(e),m=r.outerWidth(e),O=void 0,g=void 0,v=void 0,h=void 0,j=void 0,k=void 0,y=void 0,_=void 0,E=void 0,S=void 0;b?(y=t,S=r.height(y),E=r.width(y),_={left:r.scrollLeft(y),top:r.scrollTop(y)},j={left:f.left-_.left-s,top:f.top-_.top-l},k={left:f.left+m-(_.left+E)+d,top:f.top+p-(_.top+S)+u},h=_):(O=r.offset(t),g=t.clientHeight,v=t.clientWidth,h={left:t.scrollLeft,top:t.scrollTop},j={left:f.left-(O.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-s,top:f.top-(O.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-l},k={left:f.left+m-(O.left+v+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:f.top+p-(O.top+g+(parseFloat(r.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},169:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function c(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function i(e){return c(e)}function a(e){return c(e,!0)}function l(e){var t=function(e){var t,n=void 0,r=void 0,o=e.ownerDocument,c=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:r-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=i(r),t.top+=a(r),t}var s=new RegExp("^("+/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source+")(?!px)[a-z%]+$","i"),u=/^(top|right|bottom|left)$/,d="left";var b=void 0;function f(e,t){for(var n=0;n<e.length;n++)t(e[n])}function p(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var r="",o=e.ownerDocument,c=n||o.defaultView.getComputedStyle(e,null);return c&&(r=c.getPropertyValue(t)||c[t]),r}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var r=e.style,o=r[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],r[d]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[d]=o,e.runtimeStyle[d]=c}return""===n?"auto":n});var m=["margin","border","padding"];function O(e,t,n){var r={},o=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r[c]=o[c],o[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(o[c]=r[c])}function g(e,t,n){var r=0,o=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(o=t[c])for(i=0;i<n.length;i++){var a=void 0;a="border"===o?o+n[i]+"Width":o+n[i],r+=parseFloat(b(e,a))||0}return r}function v(e){return null!=e&&e==e.window}var h={};function j(e,t,n){if(v(e))return"width"===t?h.viewportWidth(e):h.viewportHeight(e);if(9===e.nodeType)return"width"===t?h.docWidth(e):h.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),p(e)),i=0;(null==o||o<=0)&&(o=void 0,(null==(i=b(e,t))||Number(i)<0)&&(i=e.style[t]||0),i=parseFloat(i)||0),void 0===n&&(n=c?1:-1);var a=void 0!==o||c,l=o||i;if(-1===n)return a?l-g(e,["border","padding"],r):i;if(a){var s=2===n?-g(e,["border"],r):g(e,["margin"],r);return l+(1===n?0:s)}return i+g(e,m.slice(n),r)}f(["Width","Height"],(function(e){h["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],h["viewport"+e](n))},h["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,c=r.documentElement[n];return"CSS1Compat"===r.compatMode&&c||o&&o[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function y(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):O(e,k,(function(){t=j.apply(void 0,n)})),t}function _(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)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&_(e,c,t[c])}f(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);h["outer"+t]=function(t,n){return t&&y(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];h[e]=function(t,r){if(void 0===r)return t&&y(t,e,-1);if(t){b(t);return p(t)&&(r+=g(t,["padding","border"],n)),_(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"===_(e,"position")&&(e.style.position="relative");var n=l(e),r={},o=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o=parseFloat(_(e,c))||0,r[c]=o+t[c]-n[c]);_(e,r)}(e,t)},isWindow:v,each:f,css:_,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(v(e)){if(void 0===t)return i(e);window.scrollTo(t,a(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(v(e)){if(void 0===t)return a(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},h)},17:function(e,t){!function(){e.exports=this.React}()},170:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=c},171:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"}));t.a=c},18: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}))},19: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}))},195:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=c},196:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},2:function(e,t){!function(){e.exports=this.lodash}()},20: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}))},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(40),o=n(10);function c(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},22:function(e,t){!function(){e.exports=this.wp.keycodes}()},23:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},25:function(e,t){!function(){e.exports=this.wp.richText}()},256: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)}}}},257:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(293))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},258:function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},259:function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function O(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===d){m.circular=o[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}O();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),f.before&&f.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(o.push(m),O(),s(m.keys,(function(t,o){r.push(t),f.pre&&f.pre.call(m,m.node[t],t);var c=e(m.node[t]);n&&u.call(m.node,t)&&(m.node[t]=c.node),c.isLast=o==m.keys.length-1,c.isFirst=0==o,f.post&&f.post.call(m,c),r.pop()})),o.pop()),f.after&&f.after.call(m,m.node),m):m}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(l(e))t=[];else if("[object Date]"===a(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===a(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===a(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===a(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===a(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===a(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return s(i(e),(function(n){t[n]=e[n]})),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(r=e.call(this,r,t))})),r},r.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},r.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var a=c(r);return e.push(r),t.push(a),s(i(r),(function(e){a[e]=n(r[e])})),e.pop(),t.pop(),a}return r}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function a(e){return Object.prototype.toString.call(e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};s(i(r.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},26:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(26);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},283:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},284:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=c},285:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=c},286:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},287:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=c},288:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"}));t.a=c},289:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},29:function(e,t){!function(){e.exports=this.wp.dom}()},290:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},291:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M12 8l-6 5.4 1 1.2 5-4.6 5 4.6 1-1.2z"}));t.a=c},292:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"}));t.a=c},293:function(e,t,n){"use strict";function r(){}function o(e,t,n,r,o){for(var c=0,i=t.length,a=0,l=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(r.slice(l,l+s.count)),l+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&o){var d=n.slice(a,a+s.count);d=d.map((function(e,t){var n=r[l+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1<l,O=f&&0<=p&&p<s;if(m||O){if(!m||O&&d.newPos<f.newPos?(r=c(f),i.pushComponent(r.components,void 0,!0)):((r=d).newPos++,i.pushComponent(r.components,!0,void 0)),p=i.extractCommon(r,t,e,n),r.newPos+1>=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+1<o&&a+1<c&&this.equals(t[i+1],n[a+1]);)i++,a++,l++;return l&&e.components.push({count:l}),e.newPos=i,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},294:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},295:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-5.7-5.3-.6.6-.5-.5-5.2 5.2 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},296:function(e,t,n){"use strict";var r=n(0),o=n(6),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6zM13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"}));t.a=c},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.wp.url}()},31:function(e,t){!function(){e.exports=this.wp.hooks}()},33:function(e,t,n){e.exports=n(131)()},35:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},37:function(e,t){!function(){e.exports=this.wp.deprecated}()},38:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},39:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},41:function(e,t,n){"use strict";var r,o;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function a(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r={},o="undefined"!=typeof WeakMap,t.a=function(e,t){var n,l;function s(){n=o?new WeakMap:i()}function u(){var n,r,o,c,i,s=arguments.length;for(c=new Array(s),o=0;o<s;o++)c[o]=arguments[o];for(i=t.apply(null,c),(n=l(i)).isUniqueByDependants||(n.lastDependants&&!a(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(a(r.args,c,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,c)},c[0]=null,r.args=c,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=c),l=o?function(e){var t,o,c,a,l,s=n,u=!0;for(t=0;t<e.length;t++){if(o=e[t],!(l=o)||"object"!=typeof l){u=!1;break}s.has(o)?s=s.get(o):(c=new WeakMap,s.set(o,c),s=c)}return s.has(r)||((a=i()).isUniqueByDependants=u,s.set(r,a)),s.get(r)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},42:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},435:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalAlignmentHookSettingsProvider",(function(){return q})),n.d(t,"getColorClassName",(function(){return pe})),n.d(t,"getColorObjectByAttributeValues",(function(){return be})),n.d(t,"getColorObjectByColorValue",(function(){return fe})),n.d(t,"createCustomColorsHOC",(function(){return Jt})),n.d(t,"withColors",(function(){return en})),n.d(t,"__experimentalUseColors",(function(){return vn})),n.d(t,"__experimentalGetGradientClass",(function(){return me})),n.d(t,"getGradientValueBySlug",(function(){return Oe})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return ge})),n.d(t,"getGradientSlugByValue",(function(){return ve})),n.d(t,"__experimentalUseGradient",(function(){return he})),n.d(t,"getFontSize",(function(){return ft})),n.d(t,"getFontSizeClass",(function(){return mt})),n.d(t,"getFontSizeObjectByValue",(function(){return pt})),n.d(t,"FontSizePicker",(function(){return Ot})),n.d(t,"withFontSizes",(function(){return _n})),n.d(t,"AlignmentToolbar",(function(){return xn})),n.d(t,"Autocomplete",(function(){return Fn})),n.d(t,"BlockAlignmentToolbar",(function(){return V})),n.d(t,"__experimentalBlockAlignmentMatrixToolbar",(function(){return Vn})),n.d(t,"BlockBreadcrumb",(function(){return zn})),n.d(t,"BlockContextProvider",(function(){return Kn})),n.d(t,"BlockControls",(function(){return w})),n.d(t,"BlockColorsStyleSelector",(function(){return Yn})),n.d(t,"BlockEdit",(function(){return er})),n.d(t,"useBlockEditContext",(function(){return k})),n.d(t,"BlockFormatControls",(function(){return cr})),n.d(t,"BlockIcon",(function(){return Tn})),n.d(t,"BlockNavigationDropdown",(function(){return au})),n.d(t,"__experimentalBlockNavigationBlockFill",(function(){return Qs})),n.d(t,"__experimentalBlockNavigationEditor",(function(){return ku})),n.d(t,"__experimentalBlockNavigationTree",(function(){return ru})),n.d(t,"__experimentalBlockVariationPicker",(function(){return yu})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Bu})),n.d(t,"ButtonBlockerAppender",(function(){return Ea})),n.d(t,"ColorPalette",(function(){return Pu})),n.d(t,"ColorPaletteControl",(function(){return Tu})),n.d(t,"ContrastChecker",(function(){return He})),n.d(t,"__experimentalGradientPicker",(function(){return Ru})),n.d(t,"__experimentalGradientPickerControl",(function(){return Du})),n.d(t,"__experimentalGradientPickerPanel",(function(){return Lu})),n.d(t,"__experimentalColorGradientControl",(function(){return Be})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Me})),n.d(t,"__experimentalImageSizeControl",(function(){return Mu})),n.d(t,"InnerBlocks",(function(){return Yu})),n.d(t,"InspectorAdvancedControls",(function(){return ee})),n.d(t,"InspectorControls",(function(){return We})),n.d(t,"__experimentalLinkControl",(function(){return gd})),n.d(t,"__experimentalLineHeightControl",(function(){return it})),n.d(t,"MediaReplaceFlow",(function(){return yd})),n.d(t,"MediaPlaceholder",(function(){return Td})),n.d(t,"MediaUpload",(function(){return jd})),n.d(t,"MediaUploadCheck",(function(){return kd})),n.d(t,"PanelColorSettings",(function(){return on})),n.d(t,"PlainText",(function(){return Dd})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Ad})),n.d(t,"RichText",(function(){return ju})),n.d(t,"RichTextShortcut",(function(){return Fd})),n.d(t,"RichTextToolbarButton",(function(){return Vd})),n.d(t,"__unstableRichTextInputEvent",(function(){return zd})),n.d(t,"ToolSelector",(function(){return Kd})),n.d(t,"__experimentalUnitControl",(function(){return Ct})),n.d(t,"URLInput",(function(){return ad})),n.d(t,"URLInputButton",(function(){return Yd})),n.d(t,"URLPopover",(function(){return wd})),n.d(t,"__experimentalImageURLInputUI",(function(){return Jd})),n.d(t,"withColorContext",(function(){return xu})),n.d(t,"__experimentalBlockSettingsMenuFirstItem",(function(){return as})),n.d(t,"__experimentalInserterMenuExtension",(function(){return qa})),n.d(t,"__experimentalPreviewOptions",(function(){return tb})),n.d(t,"__experimentalUseResizeCanvas",(function(){return lb})),n.d(t,"BlockInspector",(function(){return pb})),n.d(t,"BlockList",(function(){return xa})),n.d(t,"__experimentalBlock",(function(){return Hs})),n.d(t,"BlockMover",(function(){return Dl})),n.d(t,"BlockPreview",(function(){return Na})),n.d(t,"BlockSelectionClearer",(function(){return gb})),n.d(t,"BlockSettingsMenu",(function(){return gs})),n.d(t,"BlockSettingsMenuControls",(function(){return fs})),n.d(t,"BlockTitle",(function(){return Hn})),n.d(t,"BlockToolbar",(function(){return Ss})),n.d(t,"CopyHandler",(function(){return Ql})),n.d(t,"DefaultBlockAppender",(function(){return _a})),n.d(t,"__unstableEditorStyles",(function(){return zb})),n.d(t,"Inserter",(function(){return vl})),n.d(t,"__experimentalLibrary",(function(){return Ub})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Kb})),n.d(t,"MultiSelectScrollIntoView",(function(){return Wb})),n.d(t,"NavigableToolbar",(function(){return Tl})),n.d(t,"ObserveTyping",(function(){return $b})),n.d(t,"PreserveScrollInReorder",(function(){return Yb})),n.d(t,"SkipToSelectedBlock",(function(){return sb})),n.d(t,"Typewriter",(function(){return ef})),n.d(t,"Warning",(function(){return Pr})),n.d(t,"WritingFlow",(function(){return Cl})),n.d(t,"BlockEditorProvider",(function(){return ka})),n.d(t,"useSimulatedMediaQuery",(function(){return ab})),n.d(t,"__experimentalUseEditorFeature",(function(){return St})),n.d(t,"transformStyles",(function(){return Hb})),n.d(t,"storeConfig",(function(){return va})),n.d(t,"SETTINGS_DEFAULTS",(function(){return ro}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return Go})),n.d(r,"resetSelection",(function(){return Ko})),n.d(r,"receiveBlocks",(function(){return Wo})),n.d(r,"updateBlockAttributes",(function(){return qo})),n.d(r,"updateBlock",(function(){return $o})),n.d(r,"selectBlock",(function(){return Yo})),n.d(r,"selectPreviousBlock",(function(){return Xo})),n.d(r,"selectNextBlock",(function(){return Zo})),n.d(r,"startMultiSelect",(function(){return Qo})),n.d(r,"stopMultiSelect",(function(){return Jo})),n.d(r,"multiSelect",(function(){return ec})),n.d(r,"clearSelectedBlock",(function(){return tc})),n.d(r,"toggleSelection",(function(){return nc})),n.d(r,"replaceBlocks",(function(){return oc})),n.d(r,"replaceBlock",(function(){return cc})),n.d(r,"moveBlocksDown",(function(){return ac})),n.d(r,"moveBlocksUp",(function(){return lc})),n.d(r,"moveBlockToPosition",(function(){return sc})),n.d(r,"insertBlock",(function(){return uc})),n.d(r,"insertBlocks",(function(){return dc})),n.d(r,"showInsertionPoint",(function(){return bc})),n.d(r,"hideInsertionPoint",(function(){return fc})),n.d(r,"setTemplateValidity",(function(){return pc})),n.d(r,"synchronizeTemplate",(function(){return mc})),n.d(r,"mergeBlocks",(function(){return Oc})),n.d(r,"removeBlocks",(function(){return gc})),n.d(r,"removeBlock",(function(){return vc})),n.d(r,"replaceInnerBlocks",(function(){return hc})),n.d(r,"toggleBlockMode",(function(){return jc})),n.d(r,"startTyping",(function(){return kc})),n.d(r,"stopTyping",(function(){return yc})),n.d(r,"startDraggingBlocks",(function(){return _c})),n.d(r,"stopDraggingBlocks",(function(){return Ec})),n.d(r,"enterFormattedText",(function(){return Sc})),n.d(r,"exitFormattedText",(function(){return Cc})),n.d(r,"selectionChange",(function(){return wc})),n.d(r,"insertDefaultBlock",(function(){return Ic})),n.d(r,"updateBlockListSettings",(function(){return Bc})),n.d(r,"updateSettings",(function(){return xc})),n.d(r,"__unstableSaveReusableBlock",(function(){return Pc})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return Tc})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return Nc})),n.d(r,"__unstableMarkAutomaticChange",(function(){return Rc})),n.d(r,"setNavigationMode",(function(){return Dc})),n.d(r,"duplicateBlocks",(function(){return Lc})),n.d(r,"insertBeforeBlock",(function(){return Ac})),n.d(r,"insertAfterBlock",(function(){return Mc})),n.d(r,"toggleBlockHighlight",(function(){return Fc})),n.d(r,"flashBlock",(function(){return Vc})),n.d(r,"setHasControlledInnerBlocks",(function(){return Hc}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return qc})),n.d(o,"isBlockValid",(function(){return $c})),n.d(o,"getBlockAttributes",(function(){return Yc})),n.d(o,"getBlock",(function(){return Xc})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return Zc})),n.d(o,"getBlocks",(function(){return Qc})),n.d(o,"getClientIdsOfDescendants",(function(){return Jc})),n.d(o,"getClientIdsWithDescendants",(function(){return ei})),n.d(o,"getGlobalBlockCount",(function(){return ti})),n.d(o,"getBlocksByClientId",(function(){return ni})),n.d(o,"getBlockCount",(function(){return ri})),n.d(o,"getSelectionStart",(function(){return oi})),n.d(o,"getSelectionEnd",(function(){return ci})),n.d(o,"getBlockSelectionStart",(function(){return ii})),n.d(o,"getBlockSelectionEnd",(function(){return ai})),n.d(o,"getSelectedBlockCount",(function(){return li})),n.d(o,"hasSelectedBlock",(function(){return si})),n.d(o,"getSelectedBlockClientId",(function(){return ui})),n.d(o,"getSelectedBlock",(function(){return di})),n.d(o,"getBlockRootClientId",(function(){return bi})),n.d(o,"getBlockParents",(function(){return fi})),n.d(o,"getBlockParentsByBlockName",(function(){return pi})),n.d(o,"getBlockHierarchyRootClientId",(function(){return mi})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Oi})),n.d(o,"getAdjacentBlockClientId",(function(){return gi})),n.d(o,"getPreviousBlockClientId",(function(){return vi})),n.d(o,"getNextBlockClientId",(function(){return hi})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return ji})),n.d(o,"getSelectedBlockClientIds",(function(){return ki})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return yi})),n.d(o,"getMultiSelectedBlocks",(function(){return _i})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return Ei})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return Si})),n.d(o,"isFirstMultiSelectedBlock",(function(){return Ci})),n.d(o,"isBlockMultiSelected",(function(){return wi})),n.d(o,"isAncestorMultiSelected",(function(){return Ii})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return Bi})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return xi})),n.d(o,"getBlockOrder",(function(){return Pi})),n.d(o,"getBlockIndex",(function(){return Ti})),n.d(o,"isBlockSelected",(function(){return Ni})),n.d(o,"hasSelectedInnerBlock",(function(){return Ri})),n.d(o,"isBlockWithinSelection",(function(){return Di})),n.d(o,"hasMultiSelection",(function(){return Li})),n.d(o,"isMultiSelecting",(function(){return Ai})),n.d(o,"isSelectionEnabled",(function(){return Mi})),n.d(o,"getBlockMode",(function(){return Fi})),n.d(o,"isTyping",(function(){return Vi})),n.d(o,"isDraggingBlocks",(function(){return Hi})),n.d(o,"isCaretWithinFormattedText",(function(){return zi})),n.d(o,"getBlockInsertionPoint",(function(){return Ui})),n.d(o,"isBlockInsertionPointVisible",(function(){return Gi})),n.d(o,"isValidTemplate",(function(){return Ki})),n.d(o,"getTemplate",(function(){return Wi})),n.d(o,"getTemplateLock",(function(){return qi})),n.d(o,"canInsertBlockType",(function(){return Yi})),n.d(o,"getInserterItems",(function(){return Qi})),n.d(o,"hasInserterItems",(function(){return Ji})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return ea})),n.d(o,"getBlockListSettings",(function(){return ta})),n.d(o,"getSettings",(function(){return na})),n.d(o,"isLastBlockChangePersistent",(function(){return ra})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return oa})),n.d(o,"__experimentalGetParsedReusableBlock",(function(){return ca})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return ia})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return aa})),n.d(o,"isNavigationMode",(function(){return sa})),n.d(o,"didAutomaticChange",(function(){return ua})),n.d(o,"isBlockHighlighted",(function(){return da})),n.d(o,"areInnerBlocksControlled",(function(){return ba}));var c=n(12),i=n(25),a=n(72),l=n(47),s=n(8),u=n(5),d=n(0),b=n(11),f=n.n(b),p=n(2),m=n(9),O=n(31),g=n(4),v=n(3),h=Object(d.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:p.noop,clientId:null}),j=h.Provider;function k(){return Object(d.useContext)(h)}function y(){var e=k(),t=e.isSelected,n=e.clientId,r=e.name,o=Object(g.useSelect)((function(e){if(!t){var o=e("core/block-editor"),c=o.getBlockName,i=o.isFirstMultiSelectedBlock,a=o.getMultiSelectedBlockClientIds;return!!i(n)&&a().every((function(e){return c(e)===r}))}}),[n,r]);return t||o}var _=Object(v.createSlotFill)("BlockControls"),E=_.Fill,S=_.Slot;var C=function(e){var t=e.controls,n=e.children;return y()?Object(d.createElement)(E,null,(function(e){var r=Object(p.isEmpty)(e)?null:e;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:r},Object(d.createElement)(v.ToolbarGroup,{controls:t}),n)})):null};C.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(S,Object(s.a)({},e,{fillProps:t}))};var w=C,I=n(1),B=n(6),x=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),P=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"})),T=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),N=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),R=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var L={left:{icon:x,title:Object(I.__)("Align left")},center:{icon:P,title:Object(I.__)("Align center")},right:{icon:T,title:Object(I.__)("Align right")},wide:{icon:N,title:Object(I.__)("Wide width")},full:{icon:R,title:Object(I.__)("Full width")}},A=["left","center","right","wide","full"],M=["wide","full"],F={isAlternate:!0};var V=Object(m.compose)(Object(g.withSelect)((function(e){return{wideControlsEnabled:(0,e("core/block-editor").getSettings)().alignWide}})))((function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?A:r,c=e.isCollapsed,i=void 0===c||c,a=e.wideControlsEnabled,l=void 0!==a&&a?o:o.filter((function(e){return-1===M.indexOf(e)})),s=L[t],b=L.center;return Object(d.createElement)(v.ToolbarGroup,{popoverProps:F,isCollapsed:i,icon:s?s.icon:b.icon,label:Object(I.__)("Change alignment"),controls:l.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},L[e],{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})}));function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var U=["left","center","right","wide","full"],G=["wide","full"];function K(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?U:[],!r||!0===e&&!n?p.without.apply(void 0,[t].concat(G)):t}var W=Object(d.createContext)({}),q=W.Provider,$=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=Object(d.useContext)(W).isEmbedButton,r=t.name,o=n?[]:K(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(d.createElement)(w,{key:"align-controls"},Object(d.createElement)(V,{value:t.attributes.align,onChange:function(e){if(!e){var n=Object(c.getBlockType)(t.name);Object(p.get)(n,["attributes","align","default"])&&(e="")}t.setAttributes({align:e})},controls:o})),Object(d.createElement)(e,Object(s.a)({key:"edit"},t))]}}),"withToolbarControls"),Y=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(g.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(d.createElement)(e,t);var i=K(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return Object(p.includes)(i,r)&&(a=z({},a,{"data-align":r})),Object(d.createElement)(e,Object(s.a)({},t,{wrapperProps:a}))}}));Object(O.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(p.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=z({},e.attributes,{align:{type:"string"}})),e})),Object(O.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Y),Object(O.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",$),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align,o=Object(c.getBlockSupport)(t,"align"),i=Object(c.hasBlockSupport)(t,"alignWide",!0);return Object(p.includes)(K(o,i),r)&&(e.className=f()("align".concat(r),e.className)),e}));var X=Object(v.createSlotFill)("InspectorAdvancedControls"),Z=X.Fill,Q=X.Slot;function J(e){var t=e.children;return k().isSelected?Object(d.createElement)(Z,null,t):null}J.slotName="InspectorAdvancedControls",J.Slot=Q;var ee=J;function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ne=/[\s#]/g;var re=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"anchor")&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(ee,null,Object(d.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(I.__)("HTML anchor"),help:Object(d.createElement)(d.Fragment,null,Object(I.__)("Enter a word or two — without spaces — to make a unique web address just for this heading, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),Object(d.createElement)(v.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},Object(I.__)("Learn more about anchors"))),value:t.attributes.anchor||"",onChange:function(e){e=e.replace(ne,"-"),t.setAttributes({anchor:e})}}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(O.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(p.has)(e.attributes,["anchor","type"])||Object(c.hasBlockSupport)(e,"anchor")&&(e.attributes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.attributes,{anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}})),e})),Object(O.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",re),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));var ce=Object(m.createHigherOrderComponent)((function(e){return function(t){return Object(c.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(d.createElement)(d.Fragment,null,Object(d.createElement)(e,t),Object(d.createElement)(ee,null,Object(d.createElement)(v.TextControl,{autoComplete:"off",label:Object(I.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:function(e){t.setAttributes({className:""!==e?e:void 0})},help:Object(I.__)("Separate multiple classes with spaces.")}))):Object(d.createElement)(e,t)}}),"withInspectorControl");function ie(e){e="<div data-custom-class-name>".concat(e,"</div>");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(O.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.attributes,{className:{type:"string"}})),e})),Object(O.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ce),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=f()(e.className,n.className)),e})),Object(O.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(p.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=ie(o),a=ie(n),l=Object(p.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ae=n(16);Object(O.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(p.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ae.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var le=n(15),se=n(140),ue=n(56),de=n.n(ue),be=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{color:n}},fe=function(e,t){return Object(p.find)(e,{color:t})};function pe(e,t){if(e&&t)return"has-".concat(Object(p.kebabCase)(t),"-").concat(e)}function me(e){if(e)return"has-".concat(e,"-gradient-background")}function Oe(e,t){var n=Object(p.find)(e,["slug",t]);return n&&n.gradient}function ge(e,t){return Object(p.find)(e,["gradient",t])}function ve(e,t){var n=ge(e,t);return n&&n.slug}function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=k(),i=c.clientId,a=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockAttributes,c=t.getSettings,a=r(i);return{gradient:a[n],customGradient:a[o],gradients:c().gradients}}),[i,n,o]),l=a.gradients,s=a.gradient,b=a.customGradient,f=Object(g.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(d.useCallback)((function(e){var t,r,c=ve(l,e);c?p(i,(r={},Object(u.a)(r,n,c),Object(u.a)(r,o,void 0),r)):p(i,(t={},Object(u.a)(t,n,void 0),Object(u.a)(t,o,e),t))}),[l,i,p]),O=me(s);return{gradientClass:O,gradientValue:s?Oe(l,s):b,setGradient:m}}var je=function e(t){if(!Object(p.isObject)(t))return t;var n=Object(p.pickBy)(Object(p.mapValues)(t,e),p.identity);return Object(p.isEqual)(n,{})?void 0:n},ke=n(14);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _e=Object(I.__)("(Color: %s)"),Ee=Object(I.__)("(Gradient: %s)"),Se=["colors","disableCustomColors","gradients","disableCustomGradients"];function Ce(e){var t,n,r=e.colors,o=e.gradients,c=e.label,i=e.currentTab,a=e.colorValue,l=e.gradientValue;if("color"===i){if(a){var s=fe(r,t=a),u=s&&s.name;n=Object(I.sprintf)(_e,u||t)}}else if("gradient"===i&&l){var b=ge(o,t=l),f=b&&b.name;n=Object(I.sprintf)(Ee,f||t)}return Object(d.createElement)(d.Fragment,null,c,!!t&&Object(d.createElement)(v.ColorIndicator,{colorValue:t,"aria-label":n}))}function we(e){var t=e.colors,n=e.gradients,r=e.disableCustomColors,o=e.disableCustomGradients,c=e.className,i=e.label,a=e.onColorChange,l=e.onGradientChange,u=e.colorValue,b=e.gradientValue,m=a&&(!Object(p.isEmpty)(t)||!r),O=l&&(!Object(p.isEmpty)(n)||!o),g=Object(d.useState)(b?"gradient":!!m&&"color"),h=Object(le.a)(g,2),j=h[0],k=h[1];return m||O?Object(d.createElement)(v.BaseControl,{className:f()("block-editor-color-gradient-control",c)},Object(d.createElement)("fieldset",null,Object(d.createElement)("legend",null,Object(d.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(d.createElement)(v.BaseControl.VisualLabel,null,Object(d.createElement)(Ce,{currentTab:j,label:i,colorValue:u,gradientValue:b})))),m&&O&&Object(d.createElement)(v.ButtonGroup,{className:"block-editor-color-gradient-control__button-tabs"},Object(d.createElement)(v.Button,{isSmall:!0,isPressed:"color"===j,onClick:function(){return k("color")}},Object(I.__)("Solid")),Object(d.createElement)(v.Button,{isSmall:!0,isPressed:"gradient"===j,onClick:function(){return k("gradient")}},Object(I.__)("Gradient"))),("color"===j||!O)&&Object(d.createElement)(v.ColorPalette,Object(s.a)({value:u,onChange:O?function(e){a(e),l()}:a},{colors:t,disableCustomColors:r})),("gradient"===j||!m)&&Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({value:b,onChange:m?function(e){l(e),a()}:l},{gradients:n,disableCustomGradients:o})))):null}function Ie(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Se)}));return Object(d.createElement)(we,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{},e))}var Be=function(e){return Object(p.every)(Se,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(we,e):Object(d.createElement)(Ie,e)};function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Te=Object(I.__)("(%s: color %s)"),Ne=Object(I.__)("(%s: gradient %s)"),Re=["colors","disableCustomColors","gradients","disableCustomGradients"],De=function(e){var t=e.colors,n=e.gradients;return e.settings.map((function(e,r){var o,c=e.colorValue,i=e.gradientValue,a=e.label,l=e.colors,s=e.gradients;if(!c&&!i)return null;if(c){var u=fe(l||t,c);o=Object(I.sprintf)(Te,a.toLowerCase(),u&&u.name||c)}else{var b=ge(s||n,c);o=Object(I.sprintf)(Ne,a.toLowerCase(),b&&b.name||i)}return Object(d.createElement)(v.ColorIndicator,{key:r,colorValue:c||i,"aria-label":o})}))},Le=function(e){var t=e.className,n=e.colors,r=e.gradients,o=e.disableCustomColors,c=e.disableCustomGradients,i=e.children,a=e.settings,l=e.title,u=Object(ke.a)(e,["className","colors","gradients","disableCustomColors","disableCustomGradients","children","settings","title"]);if(Object(p.isEmpty)(n)&&Object(p.isEmpty)(r)&&o&&c&&Object(p.every)(a,(function(e){return Object(p.isEmpty)(e.colors)&&Object(p.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)})))return null;var b=Object(d.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},l,Object(d.createElement)(De,{colors:n,gradients:r,settings:a}));return Object(d.createElement)(v.PanelBody,Object(s.a)({className:f()("block-editor-panel-color-gradient-settings",t),title:b},u),a.map((function(e,t){return Object(d.createElement)(Be,Object(s.a)({key:t},Pe({colors:n,gradients:r,disableCustomColors:o,disableCustomGradients:c},e)))})),i)},Ae=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return Object(p.pick)(t,Re)}));return Object(d.createElement)(Le,Pe({},t,{},e))},Me=function(e){return Object(p.every)(Re,(function(t){return e.hasOwnProperty(t)}))?Object(d.createElement)(Le,e):Object(d.createElement)(Ae,e)},Fe=n(49);function Ve(e){var t=e.tinyBackgroundColor,n=e.tinyTextColor,r=e.backgroundColor,o=e.textColor,c=t.getBrightness()<n.getBrightness()?Object(I.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(I.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(d.useEffect)((function(){Object(Fe.speak)(Object(I.__)("This color combination may be hard for people to read."))}),[r,o]),Object(d.createElement)("div",{className:"block-editor-contrast-checker"},Object(d.createElement)(v.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}var He=function(e){var t=e.backgroundColor,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.fontSize,c=e.isLargeText,i=e.textColor;if(!t&&!n||!i&&!r)return null;var a=de()(t||n),l=de()(i||r);return 1!==a.getAlpha()||1!==l.getAlpha()||de.a.isReadable(a,l,{level:"AA",size:c||!1!==c&&o>=24?"large":"small"})?null:Object(d.createElement)(Ve,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},ze=Object(v.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return y()?Object(d.createElement)(Ue,null,t):null}Ke.Slot=Ge;var We=Ke;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==window.Node.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=window,i=c.getComputedStyle,a=c.Node,l=Object(d.useState)(),s=Object(le.a)(l,2),u=s[0],b=s[1],f=Object(d.useState)(),p=Object(le.a)(f,2),m=p[0],O=p[1];return Object(d.useEffect)((function(){if(o){var e=qe(n);if(e){O(i(e).color);for(var t=e,r=i(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===a.ELEMENT_NODE;)t=t.parentNode,r=i(t).backgroundColor;b(r)}}})),Object(d.createElement)(We,null,Object(d.createElement)(Me,{title:Object(I.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(d.createElement)(He,{backgroundColor:u,textColor:m})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){return"web"===d.Platform.OS&&Object(c.hasBlockSupport)(e,"__experimentalColor")},et=function(e){if("web"!==d.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"__experimentalColor");return Object(p.isObject)(t)&&!!t.linkColor},tt=function(e){if("web"!==d.Platform.OS)return!1;var t=Object(c.getBlockSupport)(e,"__experimentalColor");return Object(p.isObject)(t)&&!!t.gradients};function nt(e,t,n){var r,o,c,i,a,l;if(!Je(t))return e;var s=tt(t),d=n.backgroundColor,b=n.textColor,p=n.gradient,m=n.style,O=pe("background-color",d),g=me(p),v=pe("color",b),h=f()(e.className,v,g,(l={},Object(u.a)(l,O,!(s&&(null==m||null===(r=m.color)||void 0===r?void 0:r.gradient)||!O)),Object(u.a)(l,"has-text-color",b||(null==m||null===(o=m.color)||void 0===o?void 0:o.text)),Object(u.a)(l,"has-background",d||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||s&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient))),Object(u.a)(l,"has-link-color",null==m||null===(a=m.color)||void 0===a?void 0:a.link),l));return e.className=h||void 0,e}var rt=function(e,t){var n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?be(e,n[1]).color:t};function ot(e){var t,n,r,o,c,i,a=e.name,l=e.attributes,s=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()}),[]),b=s.colors,f=s.gradients,p=s.__experimentalEnableLinkColor,m=Object(d.useRef)(l);if(Object(d.useEffect)((function(){m.current=l}),[l]),!Je(a))return null;var O,v=tt(a),h=l.style,j=l.textColor,k=l.backgroundColor,y=l.gradient;if(v&&y)O=Oe(f,y);else if(v){var _;O=null==h||null===(_=h.color)||void 0===_?void 0:_.gradient}var E=function(t){return function(n){var r,o,c=fe(b,n),i=t+"Color",a=Qe({},m.current.style,{color:Qe({},null===(r=m.current)||void 0===r||null===(o=r.style)||void 0===o?void 0:o.color,Object(u.a)({},t,(null==c?void 0:c.slug)?void 0:n))}),l=(null==c?void 0:c.slug)?c.slug:void 0,s=Object(u.a)({style:je(a)},i,l);e.setAttributes(s),m.current=Qe({},m.current,{},s)}};return Object(d.createElement)(Xe,{enableContrastChecking:"web"===d.Platform.OS&&!y&&!(null==h||null===(t=h.color)||void 0===t?void 0:t.gradient),clientId:e.clientId,settings:[{label:Object(I.__)("Text Color"),onColorChange:E("text"),colorValue:be(b,j,null==h||null===(n=h.color)||void 0===n?void 0:n.text).color},{label:Object(I.__)("Background Color"),onColorChange:E("background"),colorValue:be(b,k,null==h||null===(r=h.color)||void 0===r?void 0:r.background).color,gradientValue:O,onGradientChange:v?function(t){var n,r=ve(f,t);if(r){var o,c,i,a=Qe({},null===(o=m.current)||void 0===o?void 0:o.style,{color:Qe({},null===(c=m.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color,{gradient:void 0})});n={style:je(a),gradient:r}}else{var l,s,u,d=Qe({},null===(l=m.current)||void 0===l?void 0:l.style,{color:Qe({},null===(s=m.current)||void 0===s||null===(u=s.style)||void 0===u?void 0:u.color,{gradient:t})});n={style:je(d),gradient:void 0}}e.setAttributes(n),m.current=Qe({},m.current,{},n)}:void 0}].concat(Object(ae.a)(p&&et(a)?[{label:Object(I.__)("Link Color"),onColorChange:function(t){var n,r=fe(b,t);e.setAttributes({style:Qe({},e.attributes.style,{color:Qe({},null===(n=e.attributes.style)||void 0===n?void 0:n.color,{link:(null==r?void 0:r.slug)?"var:preset|color|".concat(r.slug):t})})})},colorValue:rt(b,null==h||null===(o=h.color)||void 0===o?void 0:o.link),clearable:!!(null===(c=e.attributes.style)||void 0===c||null===(i=c.color)||void 0===i?void 0:i.link)}]:[]))})}Object(O.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return Je(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),tt(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",nt),Object(O.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!Je(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),nt(r,e,n)},e}));var ct=n(22);function it(e){var t=e.value,n=e.onChange,r=function(e){return void 0!==e&&""!==e}(t),o=r?t:"";return Object(d.createElement)("div",{className:"block-editor-line-height-control"},Object(d.createElement)(v.TextControl,{autoComplete:"off",onKeyDown:function(e){e.keyCode!==ct.ZERO||r||(e.preventDefault(),n("0"))},onChange:function(e){if(r)n(e);else{var t=e;switch(e){case"".concat(.1):t=1.6;break;case"0":t=1.4}n(t)}},label:Object(I.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:o,min:0}))}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e){var t,n=e.attributes.style;if(ut(e))return null;return Object(d.createElement)(it,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:function(t){var r=lt({},n,{typography:lt({},null==n?void 0:n.typography,{lineHeight:t})});e.setAttributes({style:je(r)})}})}function ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().__experimentalDisableCustomLineHeight}));return!Object(c.hasBlockSupport)(t,"__experimentalLineHeight")||n}var dt=n(145),bt=n.n(dt),ft=function(e,t,n){if(t){var r=Object(p.find)(e,{slug:t});if(r)return r}return{size:n}};function pt(e,t){var n=Object(p.find)(e,{size:t});return n||{size:t}}function mt(e){if(e)return"has-".concat(Object(p.kebabCase)(e),"-font-size")}var Ot=Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{disableCustomFontSizes:t.disableCustomFontSizes,fontSizes:t.fontSizes}}))(v.FontSizePicker);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){if(!Object(c.hasBlockSupport)(t,"__experimentalFontSize"))return e;var r=new bt.a(e.className);r.add(mt(n.fontSize));var o=r.value;return e.className=o||void 0,e}function jt(e){var t,n=e.attributes,r=n.fontSize,o=n.style,c=e.setAttributes,i=kt(e),a=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})).fontSizes;if(i)return null;var l=ft(a,r,null==o||null===(t=o.typography)||void 0===t?void 0:t.fontSize);return Object(d.createElement)(Ot,{value:l.size,onChange:function(e){var t=pt(a,e).slug;c({style:je(vt({},o,{typography:vt({},null==o?void 0:o.typography,{fontSize:t?void 0:e})})),fontSize:t})}})}function kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),r=n.fontSizes,o=r.length;return!Object(c.hasBlockSupport)(t,"__experimentalFontSize")||!o}Object(O.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"__experimentalFontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",ht),Object(O.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"__experimentalFontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),ht(r,e,n)},e}));var yt=["__experimentalLineHeight","__experimentalFontSize"];function _t(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[kt(e),ut(e)];return t.filter(Boolean).length===t.length}(e),n=Et(e.name);return t||!n?null:Object(d.createElement)(We,null,Object(d.createElement)(v.PanelBody,{title:Object(I.__)("Typography")},Object(d.createElement)(jt,e),Object(d.createElement)(st,e)))}var Et=function(e){return"web"===d.Platform.OS&&yt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function St(e){var t=k().name,n="__experimentalFeatures.".concat(e);return Object(g.useSelect)((function(e){var r=(0,e("core/blocks").getBlockSupport)(t,n);if(void 0!==r)return r;var o=e("core/block-editor").getSettings;return Object(p.get)(o(),n)}),[t,n])}function Ct(e){var t=e.units,n=Object(ke.a)(e,["units"]),r=wt(t);return Object(d.createElement)(v.__experimentalUnitControl,Object(s.a)({units:r},n))}function wt(e){var t=St("__experimentalDisableCustomUnits"),n=!!t;return Array.isArray(t)?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t,e):!n&&e}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e){var t,n=e.name,r=e.attributes.style,o=e.setAttributes,i=wt();if(!Object(c.hasBlockSupport)(n,"__experimentalPadding"))return null;return d.Platform.select({web:Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.__experimentalBoxControl,{values:null==r||null===(t=r.spacing)||void 0===t?void 0:t.padding,onChange:function(e){var t=Bt({},r,{spacing:{padding:e}});o({style:je(t)})},onChangeShowVisualizer:function(e){var t=Bt({},r,{visualizers:{padding:e}});o({style:je(t)})},label:Object(I.__)("Padding"),units:i})),native:null})}var Pt={paddingTop:["spacing","padding","top"],paddingRight:["spacing","padding","right"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"]};function Tt(e){var t=e.children,n=Object(ke.a)(e,["children"]);return Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(p.get)(t(),"__experimentalEnableCustomSpacing")}))?Object(d.createElement)(We,n,Object(d.createElement)(v.PanelBody,{title:Object(I.__)("Spacing")},t)):null}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dt=[].concat(Object(ae.a)(yt),["__experimentalColor","__experimentalPadding"]),Lt=function(e){return Dt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function At(e){if(Object(p.startsWith)(e,"var:")){var t=e.slice("var:".length).split("|").join("--");return"var(--wp--".concat(t,")")}return e}function Mt(e,t,n){if(!Lt(t))return e;var r=n.style;return e.style=Rt({},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Rt({},Pt,{lineHeight:["typography","lineHeight"],fontSize:["typography","fontSize"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],"--wp--style--color--link":["color","link"]}),n={};return Object.entries(t).forEach((function(t){var r=Object(se.a)(t),o=r[0],c=r.slice(1),i=Object(le.a)(c,1)[0];Object(p.has)(e,i)&&(n[o]=At(Object(p.get)(e,i)))})),n}(r),{},e.style),e}var Ft=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"__experimentalPadding");return[Object(d.createElement)(_t,Object(s.a)({key:"typography"},t)),Object(d.createElement)(ot,Object(s.a)({key:"colors"},t)),Object(d.createElement)(e,Object(s.a)({key:"edit"},t)),r&&Object(d.createElement)(Tt,{key:"spacing"},Object(d.createElement)(xt,t))]}}),"withToolbarControls");Object(O.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Lt(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(O.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Mt),Object(O.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Lt(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Mt(r,e,n)},e})),Object(O.addFilter)("editor.BlockEdit","core/style/with-block-controls",Ft);var Vt=n(19),Ht=n(18),zt=n(10),Ut=n(21),Gt=n(13),Kt=n(20);function Wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yt=[],Xt=function(e){return Object(m.createHigherOrderComponent)((function(t){return function(n){return Object(d.createElement)(t,Object(s.a)({},n,{colors:e}))}}),"withCustomColorPalette")},Zt=function(){return Object(g.withSelect)((function(e){var t=e("core/block-editor").getSettings();return{colors:Object(p.get)(t,["colors"],Yt)}}))};function Qt(e,t){var n=Object(p.reduce)(e,(function(e,t){return $t({},e,{},Object(p.isString)(t)?Object(u.a)({},t,Object(p.kebabCase)(t)):t)}),{});return Object(m.compose)([t,function(e){return function(t){Object(Kt.a)(c,t);var r,o=(r=c,function(){var e,t=Object(Gt.a)(r);if(Wt()){var n=Object(Gt.a)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Object(Ut.a)(this,e)});function c(e){var t;return Object(Vt.a)(this,c),(t=o.call(this,e)).setters=t.createSetters(),t.colorUtils={getMostReadableColor:t.getMostReadableColor.bind(Object(zt.a)(t))},t.state={},t}return Object(Ht.a)(c,[{key:"getMostReadableColor",value:function(e){return function(e,t){return de.a.mostReadable(t,Object(p.map)(e,"color")).toHexString()}(this.props.colors,e)}},{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(n,(function(t,n,r){var o=Object(p.upperFirst)(r),c="custom".concat(o);return t["set".concat(o)]=e.createSetColor(r,c),t}),{})}},{key:"createSetColor",value:function(e,t){var n=this;return function(r){var o,c=fe(n.props.colors,r);n.props.setAttributes((o={},Object(u.a)(o,e,c&&c.slug?c.slug:void 0),Object(u.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,$t({},this.props,{colors:void 0},this.state,{},this.setters,{colorUtils:this.colorUtils}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.attributes,o=e.colors;return Object(p.reduce)(n,(function(e,n,c){var i=be(o,r[c],r["custom".concat(Object(p.upperFirst)(c))]),a=t[c];return Object(p.get)(a,["color"])===i.color&&a?e[c]=a:e[c]=$t({},i,{class:pe(n,i.slug)}),e}),{})}}]),c}(d.Component)}])}function Jt(e){return function(){for(var t=Xt(e),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object(m.createHigherOrderComponent)(Qt(r,t),"withCustomColors")}}function en(){for(var e=Zt(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Object(m.createHigherOrderComponent)(Qt(n,e),"withColors")}var tn=n(50),nn=n.n(tn);function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var on=function(e){var t=e.colorSettings,n=Object(ke.a)(e,["colorSettings"]),r=t.map((function(e){var t=e.value,n=e.onChange;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(ke.a)(e,["value","onChange"]),{colorValue:t,onColorChange:n})}));return Object(d.createElement)(Me,Object(s.a)({settings:r,gradients:[],disableCustomGradients:!0},n))},cn=function(e,t,n){return"function"==typeof e?e(t):!0===e?n:e};function an(e){var t=e.title,n=e.colorSettings,r=e.colorPanelProps,o=e.contrastCheckers,c=e.detectedBackgroundColor,i=e.detectedColor,a=e.panelChildren,l=e.initialOpen;return Object(d.createElement)(on,Object(s.a)({title:t,initialOpen:l,colorSettings:Object.values(n)},r),o&&(Array.isArray(o)?o.map((function(e){var t=e.backgroundColor,r=e.textColor,o=Object(ke.a)(e,["backgroundColor","textColor"]);return t=cn(t,n,c),r=cn(r,n,i),Object(d.createElement)(He,Object(s.a)({key:"".concat(t,"-").concat(r),backgroundColor:t,textColor:r},o))})):Object(p.map)(n,(function(e){var t=e.value,r=o.backgroundColor,a=o.textColor;return r=cn(r||t,n,c),a=cn(a||t,n,i),Object(d.createElement)(He,Object(s.a)({},o,{key:"".concat(r,"-").concat(a),backgroundColor:r,textColor:a}))}))),"function"==typeof a?a(n):a)}function ln(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bn=window,fn=bn.getComputedStyle,pn=bn.Node,mn=[],On={textColor:Object(I.__)("Text Color"),backgroundColor:Object(I.__)("Background Color")},gn=function(e){return Object(d.createElement)(We,null,Object(d.createElement)(an,e))};function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(I.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(I.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,s=a.backgroundColorTargetRef,b=void 0===s?l:s,m=a.textColorTargetRef,O=void 0===m?l:m,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],h=k(),j=h.clientId,y=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockAttributes,r=(0,t.getSettings)().colors;return{attributes:n(j),settingsColors:r&&!0!==r?r:mn}}),[j]),_=y.attributes,E=y.settingsColors,S=Object(g.useDispatch)("core/block-editor"),C=S.updateBlockAttributes,w=Object(d.useCallback)((function(e){return C(j,e)}),[C,j]),B=Object(d.useMemo)((function(){return nn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,s=i.className,b=void 0===s?"":s,m=i.style,O=void 0===m?{}:m,g={};r?g=Object(u.a)({},t,o):c&&(g=Object(u.a)({},t,c));var v={className:f()(b,(a={},Object(u.a)(a,"has-".concat(Object(p.kebabCase)(r),"-").concat(Object(p.kebabCase)(t)),r),Object(u.a)(a,n||"has-".concat(Object(p.kebabCase)(e)),r||c),a)),style:dn({},g,{},O)};return Object(p.isFunction)(l)?l(v):d.Children.map(l,(function(e){return Object(d.cloneElement)(e,{className:f()(e.props.className,v.className),style:dn({},v.style,{},e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),x=Object(d.useMemo)((function(){return nn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(u.a)({},r?Object(p.camelCase)("custom ".concat(e)):e,void 0)),w(Object(u.a)({},r?e:Object(p.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),P=Object(d.useState)(),T=Object(le.a)(P,2),N=T[0],R=T[1],D=Object(d.useState)(),L=Object(le.a)(D,2),A=L[0],M=L[1];return Object(d.useEffect)((function(){if(c){var e,t=!1,n=!1,r=ln(Object(p.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(fn(O.current).color),t){for(var l=b.current,s=fn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===pn.ELEMENT_NODE;)l=l.parentNode,s=fn(l).backgroundColor;R(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(_[t.name]," | ").concat(_[Object(p.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ae.a)(v))),Object(d.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=dn({},n,{color:_[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||On[o]||Object(p.startCase)(o):l,u=r.componentName,d=void 0===u?Object(p.startCase)(o).replace(/\s/g,""):u,b=r.color,f=void 0===b?n.color:b,m=r.colors,O=void 0===m?E:m,g=_[Object(p.camelCase)("custom ".concat(o))],v=g?void 0:O.find((function(e){return e.slug===f}));return e[d]=B(o,i,a,f,v&&v.color,g),e[d].displayName=d,e[d].color=g||v&&v.color,e[d].slug=f,e[d].setColor=x(o,O),t[d]={value:v?v.color:_[Object(p.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:O},O||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:N,detectedColor:A,panelChildren:i};return dn({},n,{ColorPanel:Object(d.createElement)(an,a),InspectorControlsColorPanel:Object(d.createElement)(gn,a)})}),[_,w,A,N].concat(Object(ae.a)(v)))}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e){return function(){var t,n=Object(Gt.a)(e);if(yn()){var r=Object(Gt.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(Ut.a)(this,t)}}function yn(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var _n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Object(p.reduce)(t,(function(e,t){return e[t]="custom".concat(Object(p.upperFirst)(t)),e}),{});return Object(m.createHigherOrderComponent)(Object(m.compose)([Object(g.withSelect)((function(e){return{fontSizes:e("core/block-editor").getSettings().fontSizes}})),function(e){return function(t){Object(Kt.a)(o,t);var n=kn(o);function o(e){var t;return Object(Vt.a)(this,o),(t=n.call(this,e)).setters=t.createSetters(),t.state={},t}return Object(Ht.a)(o,[{key:"createSetters",value:function(){var e=this;return Object(p.reduce)(r,(function(t,n,r){var o=Object(p.upperFirst)(r);return t["set".concat(o)]=e.createSetFontSize(r,n),t}),{})}},{key:"createSetFontSize",value:function(e,t){var n=this;return function(r){var o,c=Object(p.find)(n.props.fontSizes,{size:Number(r)});n.props.setAttributes((o={},Object(u.a)(o,e,c&&c.slug?c.slug:void 0),Object(u.a)(o,t,c&&c.slug?void 0:r),o))}}},{key:"render",value:function(){return Object(d.createElement)(e,jn({},this.props,{fontSizes:void 0},this.state,{},this.setters))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.attributes,o=e.fontSizes,c=function(e,r){return!t[r]||(n[r]?n[r]!==t[r].slug:t[r].size!==n[e])};if(!Object(p.some)(r,c))return null;var i=Object(p.reduce)(Object(p.pickBy)(r,c),(function(e,t,r){var c=n[r],i=ft(o,c,n[t]);return e[r]=jn({},i,{class:mt(c)}),e}),{});return jn({},t,{},i)}}]),o}(d.Component)}]),"withFontSizes")},En=n(283),Sn=n(284),Cn=n(285);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var In=[{icon:En.a,title:Object(I.__)("Align text left"),align:"left"},{icon:Sn.a,title:Object(I.__)("Align text center"),align:"center"},{icon:Cn.a,title:Object(I.__)("Align text right"),align:"right"}],Bn={position:"bottom right",isAlternate:!0};var xn=function(e){var t=e.value,n=e.onChange,r=e.alignmentControls,o=void 0===r?In:r,c=e.label,i=void 0===c?Object(I.__)("Change text alignment"):c,a=e.isCollapsed,l=void 0===a||a,s=e.isRTL;function b(e){return function(){return n(t===e?void 0:e)}}var f=Object(p.find)(o,(function(e){return e.align===t}));return Object(d.createElement)(v.ToolbarGroup,{isCollapsed:l,icon:f?f.icon:s?Cn.a:En.a,label:i,popoverProps:Bn,controls:o.map((function(e){var n=e.align;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:t===n,role:l?"menuitemradio":void 0,onClick:b(n)})}))})},Pn=n(195);function Tn(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:Pn.a});var c=Object(d.createElement)(v.Icon,{icon:t&&t.src?t.src:t}),i=r?{backgroundColor:t&&t.background,color:t&&t.foreground}:{};return Object(d.createElement)("span",{style:i,className:f()("block-editor-block-icon",o,{"has-colors":r})},c)}function Nn(){return Object(g.select)("core/block-editor").getBlockInsertionPoint().rootClientId}function Rn(e){return Object(g.select)("core/block-editor").getInserterItems(e)}function Dn(){var e=Object(g.select)("core/block-editor"),t=e.getSelectedBlockClientId,n=e.getBlockName,r=t();return r?n(r):null}var Ln=Object(p.once)((function(){var e=Object(g.select)("core/block-editor").getSettings().__experimentalFetchReusableBlocks;e&&e()}));var An=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getBlockInsertionParentClientId,n=void 0===t?Nn:t,r=e.getInserterItems,o=void 0===r?Rn:r,i=e.getSelectedBlockName,a=void 0===i?Dn:i;return{name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",options:function(){Ln();var e=a();return o(n()).filter((function(t){return e!==t.name}))},getOptionKeywords:function(e){var t=e.title,n=e.keywords,r=void 0===n?[]:n;return[e.category].concat(Object(ae.a)(r),[t])},getOptionLabel:function(e){var t=e.icon,n=e.title;return[Object(d.createElement)(Tn,{key:"icon",icon:t,showColors:!0}),n]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes;return{action:"replace",value:Object(c.createBlock)(t,n)}},isOptionDisabled:function(e){return e.isDisabled}}}(),Mn=[];var Fn=function(e){var t=k().name,n=e.completers,r=void 0===n?Mn:n;return r=Object(d.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([An])),Object(O.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(p.clone)),e=Object(O.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(d.createElement)(v.Autocomplete,Object(s.a)({},e,{completers:r}))};var Vn=function(e){var t=e.label,n=void 0===t?Object(I.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?p.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(d.createElement)(v.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(d.createElement)(v.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Hn(e){var t=e.clientId,n=Object(g.useSelect)((function(e){return t?(0,e("core/block-editor").getBlockName)(t):null}),[t]);if(!n)return null;var r=Object(c.getBlockType)(n);return r?r.title:null}var zn=function(){var e=Object(g.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(d.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(I.__)("Block breadcrumb")},Object(d.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(I.__)("Document")),!i&&Object(I.__)("Document")),c.map((function(e){return Object(d.createElement)("li",{key:e},Object(d.createElement)(v.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(d.createElement)(Hn,{clientId:e})))})),!!o&&Object(d.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(d.createElement)(Hn,{clientId:o})))};function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gn=Object(d.createContext)({});function Kn(e){var t=e.value,n=e.children,r=Object(d.useContext)(Gn),o=Object(d.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{},t)}),[r,t]);return Object(d.createElement)(Gn.Provider,{value:o,children:n})}var Wn=Gn,qn=function(){return Object(d.createElement)(v.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(d.createElement)(v.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"}))},$n=function(e){var t=e.style,n=e.className;return Object(d.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(d.createElement)("div",{className:"".concat(n," block-library-colors-selector__state-selection"),style:t},Object(d.createElement)(qn,null)))},Yn=function(e){var t,n,r,o=e.children,c=Object(ke.a)(e,["children"]);return Object(d.createElement)(v.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:(t=c,n=t.TextColor,r=t.BackgroundColor,function(e){var t=e.onToggle,o=e.isOpen;return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.Button,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(I.__)("Open Colors Selector"),onClick:t,onKeyDown:function(e){o||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},icon:Object(d.createElement)(r,null,Object(d.createElement)(n,null,Object(d.createElement)($n,null)))}))}),renderContent:function(){return o}})},Xn=n(37),Zn=n.n(Xn),Qn={},Jn=Object(v.withFilters)("editor.BlockEdit")((function(e){var t=e.attributes,n=void 0===t?{}:t,r=e.name,o=Object(c.getBlockType)(r),i=Object(d.useContext)(Wn),a=Object(d.useMemo)((function(){return o&&o.context?(Zn()('Block type "context" option',{alternative:'"usesContext"',version:"8.6.0",hint:'Block "'.concat(r,'".'),link:"https://developer.wordpress.org/block-editor/developers/block-api/block-context/"}),Object(p.pick)(i,o.context)):o&&o.usesContext?Object(p.pick)(i,o.usesContext):Qn}),[o,i]);if(!o)return null;var l=o.edit||o.save;if(Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(d.createElement)(l,Object(s.a)({},e,{context:a}));var u=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,b=f()(u,n.className);return Object(d.createElement)(l,Object(s.a)({},e,{context:a,className:b}))}));function er(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(d.createElement)(j,{value:Object(d.useMemo)((function(){return t}),Object.values(t))},Object(d.createElement)(Jn,e))}var tr=Object(v.createSlotFill)("BlockFormatControls"),nr=tr.Fill,rr=tr.Slot;var or=function(e){return k().isSelected?Object(d.createElement)(nr,null,(function(t){var n=Object(p.isEmpty)(t)?null:t;return Object(d.createElement)(v.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};or.Slot=function(e){var t=Object(d.useContext)(v.__experimentalToolbarContext);return Object(d.createElement)(rr,Object(s.a)({},e,{fillProps:t}))};var cr=or,ir=n(23),ar=n.n(ir),lr=n(46),sr=n(294),ur=n(107),dr=n(29),br=function(e){return e+1},fr=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var pr=function(e,t,n,r,o){var c=Object(m.useReducedMotion)()||!r,i=Object(d.useReducer)(br,0),a=Object(le.a)(i,2),l=a[0],s=a[1],u=Object(d.useReducer)(br,0),b=Object(le.a)(u,2),f=b[0],p=b[1],O=Object(d.useState)({x:0,y:0,scrollTop:0}),g=Object(le.a)(O,2),v=g[0],h=g[1],j=e.current?fr(e.current):null,k=Object(d.useRef)();Object(d.useLayoutEffect)((function(){l&&p()}),[l]),Object(d.useLayoutEffect)((function(){if(j)if(k.current=Object(dr.getScrollContainer)(e.current),c){if(n&&k.current){e.current.style.transform="none";var t=fr(e.current);k.current.scrollTop=k.current.scrollTop-j.top+t.top}}else{e.current.style.transform="none";var r=fr(e.current),o={x:j.left-r.left,y:j.top-r.top,scrollTop:k.current?k.current.scrollTop-j.top+r.top:0};e.current.style.transform=0===o.x&&0===o.y?void 0:"translate3d(".concat(o.x,"px,").concat(o.y,"px,0)"),s(),h(o)}}),[o]),Object(ur.useSpring)({from:{x:v.x,y:v.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:function(r){var o=r.x,i=r.y;n&&k.current&&!c&&i&&(k.current.scrollTop=v.scrollTop+i),e.current&&(e.current.style.transformOrigin="center",e.current.style.transform=0===o&&0===i?null:"translate3d(".concat(o,"px,").concat(i,"px,0)"),e.current.style.zIndex=!t||0===o&&0===i?null:"1")}})},mr=Object(ur.animated)(v.__experimentalTreeGridRow);function Or(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,l=Object(ke.a)(e,["isSelected","position","level","rowCount","children","className","path"]),u=Object(d.useRef)(null),b=a.join("_"),p=pr(u,t,!1,!0,b);return Object(d.createElement)(mr,Object(s.a)({ref:u,style:p,className:f()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},l),c)}var gr=n(289),vr=n(290),hr=n(291),jr=n(292);function kr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(I.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(I.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(I.sprintf)(Object(I._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(I.sprintf)(Object(I._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(I.sprintf)(Object(I.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(I.sprintf)(Object(I.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(I.sprintf)(Object(I.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var yr=function(e,t,n){return"up"===e?"horizontal"===t?n?gr.a:vr.a:hr.a:"down"===e?"horizontal"===t?n?vr.a:gr.a:jr.a:null},_r=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(I.__)("Move right"):Object(I.__)("Move left"):Object(I.__)("Move up"):"down"===e?"horizontal"===t?n?Object(I.__)("Move left"):Object(I.__)("Move right"):Object(I.__)("Move down"):null},Er=Object(d.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.__experimentalOrientation,i=Object(ke.a)(e,["clientIds","direction","__experimentalOrientation"]),a=Object(m.useInstanceId)(Er),l=Object(p.castArray)(n).length,u=Object(g.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(p.castArray)(n),f=Object(p.first)(b),m=a(f),O=i(f,m),g=i(Object(p.last)(b),m),v=l(m),h=s(f),j=0===O,k=g===v.length-1,y=(d(m)||{}).__experimentalMoverDirection,_=void 0===y?"vertical":y;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:O,isFirst:j,isLast:k,isRTL:u().isRTL,moverOrientation:o||_}}),[n,r]),b=u.blockType,O=u.isDisabled,h=u.rootClientId,j=u.isFirst,k=u.isLast,y=u.firstIndex,_=u.isRTL,E=u.moverOrientation,S=Object(g.useDispatch)("core/block-editor"),C=S.moveBlocksDown,w=S.moveBlocksUp,I="up"===r?w:C,B="block-editor-block-mover-button__description-".concat(a);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,Object(s.a)({ref:t,className:f()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:yr(r,E,_),label:_r(r,E,_),"aria-describedby":B},i,{onClick:O?null:function(e){I(n,h),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(d.createElement)("span",{id:B,className:"block-editor-block-mover-button__description"},kr(l,b&&b.title,y,j,k,"up"===r?-1:1,E,_)))})),Sr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Er,Object(s.a)({direction:"up",ref:t},e))})),Cr=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(Er,Object(s.a)({direction:"down",ref:t},e))}));function wr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(p.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(d.createElement)("div",{key:e,"aria-hidden":"true",className:f()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Ir=Object(d.createContext)({__experimentalFeatures:!1}),Br=function(){return Object(d.useContext)(Ir)},xr=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Pr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(d.createElement)("div",{className:f()(t,"block-editor-warning")},Object(d.createElement)("div",{className:"block-editor-warning__contents"},Object(d.createElement)("p",{className:"block-editor-warning__message"},r),(d.Children.count(n)>0||o)&&Object(d.createElement)("div",{className:"block-editor-warning__actions"},d.Children.count(n)>0&&d.Children.map(n,(function(e,t){return Object(d.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(d.createElement)(v.Dropdown,{className:"block-editor-warning__secondary",position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{icon:xr,label:Object(I.__)("More options"),onClick:n,"aria-expanded":t})},renderContent:function(){return Object(d.createElement)(v.MenuGroup,null,o.map((function(e,t){return Object(d.createElement)(v.MenuItem,{onClick:e.onClick,key:t},e.title)})))}}))))},Tr=n(257),Nr=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(d.createElement)("div",{className:i},Object(d.createElement)("div",{className:"block-editor-block-compare__content"},Object(d.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(d.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(d.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(d.createElement)("div",{className:"block-editor-block-compare__action"},Object(d.createElement)(v.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Rr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,u=e.convertButtonText,b={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(p.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),O=function(e,t){return Object(Tr.diffChars)(e,t).map((function(e,t){var n=f()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(d.createElement)("span",{key:t,className:n},e.value)}))}(b.rawContent,m.rawContent);return Object(d.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(d.createElement)(Nr,{title:Object(I.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(I.__)("Convert to HTML"),rawContent:b.rawContent,renderedContent:b.renderedContent}),Object(d.createElement)(Nr,{title:Object(I.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:u,rawContent:O,renderedContent:m.renderedContent}))};function Dr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Lr=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Dr()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(e){var t;return Object(Vt.a)(this,r),(t=n.call(this,e)).state={compare:!1},t.onCompare=t.onCompare.bind(Object(zt.a)(t)),t.onCompareClose=t.onCompareClose.bind(Object(zt.a)(t)),t}return Object(Ht.a)(r,[{key:"onCompare",value:function(){this.setState({compare:!0})}},{key:"onCompareClose",value:function(){this.setState({compare:!1})}},{key:"render",value:function(){var e=this.props,t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=this.state.compare,s=[{title:Object(I.__)("Convert to Classic Block"),onClick:r},{title:Object(I.__)("Attempt Block Recovery"),onClick:o}];return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Pr,{actions:[Object(d.createElement)(v.Button,{key:"convert",onClick:this.onCompare,isSecondary:a,isPrimary:!a},Object(I._x)("Resolve","imperative verb")),a&&Object(d.createElement)(v.Button,{key:"edit",onClick:t,isPrimary:!0},Object(I.__)("Convert to HTML"))],secondaryActions:s},Object(I.__)("This block contains unexpected or invalid content.")),l&&Object(d.createElement)(v.Modal,{title:Object(I.__)("Resolve Block"),onRequestClose:this.onCompareClose,className:"block-editor-block-compare"},Object(d.createElement)(Rr,{block:i,onKeep:t,onConvert:n,convertor:Ar,convertButtonText:Object(I.__)("Convert to Blocks")})))}}]),r}(d.Component),Ar=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Mr=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(g.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Ar(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])(Lr),Fr=Object(d.createElement)(Pr,{className:"block-editor-block-list__block-crash-warning"},Object(I.__)("This block has encountered an error and cannot be previewed.")),Vr=function(){return Fr};function Hr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zr=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Hr()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).state={hasError:!1},e}return Object(Ht.a)(r,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),r}(d.Component),Ur=n(88),Gr=n.n(Ur);var Kr=function(e){var t=e.clientId,n=Object(d.useState)(""),r=Object(le.a)(n,2),o=r[0],i=r[1],a=Object(g.useSelect)((function(e){return{block:e("core/block-editor").getBlock(t)}}),[t]).block,l=Object(g.useDispatch)("core/block-editor").updateBlock;return Object(d.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(d.createElement)(Gr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})};function Wr(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function qr(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function $r(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var Yr=n(286),Xr=[Object(d.createInterpolateElement)(Object(I.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(I.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(d.createInterpolateElement)(Object(I.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(d.createElement)("kbd",null)}),Object(I.__)("Drag files into the editor to automatically insert media blocks."),Object(I.__)("Change a block's type by pressing the block icon on the toolbar.")];var Zr=function(){var e=Object(d.useState)(Math.floor(Math.random()*Xr.length)),t=Object(le.a)(e,1)[0];return Object(d.createElement)(v.Tip,null,Xr[t])},Qr=n(130),Jr=n(287);var eo=function e(t){var n=t.onChange,r=Object(m.useInstanceId)(e);return Object(d.createElement)("div",{className:"block-editor-inserter__search"},Object(d.createElement)(v.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(r)},Object(I.__)("Search for a block")),Object(d.createElement)("input",{className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(r),type:"search",placeholder:Object(I.__)("Search for a block"),autoFocus:!0,onChange:function(e){return n(e.target.value)},autoComplete:"off"}),Object(d.createElement)(Qr.a,{className:"block-editor-inserter__search-icon",icon:Jr.a}))};var to=function(e){var t=e.blockType;return Object(d.createElement)("div",{className:"block-editor-block-card"},Object(d.createElement)(Tn,{icon:t.icon,showColors:!0}),Object(d.createElement)("div",{className:"block-editor-block-card__content"},Object(d.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(d.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},no={insertUsage:{}},ro={alignWide:!1,colors:[{name:Object(I.__)("Black"),slug:"black",color:"#000000"},{name:Object(I.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(I.__)("White"),slug:"white",color:"#ffffff"},{name:Object(I.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(I.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(I.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(I.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(I.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(I.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(I.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(I.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(I.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(I._x)("Small","font size name"),size:13,slug:"small"},{name:Object(I._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(I._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(I._x)("Large","font size name"),size:36,slug:"large"},{name:Object(I._x)("Huge","font size name"),size:48,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(I.__)("Thumbnail")},{slug:"medium",name:Object(I.__)("Medium")},{slug:"large",name:Object(I.__)("Large")},{slug:"full",name:Object(I.__)("Full Size")}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},hasPermissionsToManageWidgets:!1,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalEnableLegacyWidgetBlock:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,gradients:[{name:Object(I.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(I.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(I.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(I.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(I.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(I.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(I.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(I.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(I.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(I.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(I.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(I.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function oo(e,t,n){return[].concat(Object(ae.a)(e.slice(0,n)),Object(ae.a)(Object(p.castArray)(t)),Object(ae.a)(e.slice(n)))}function co(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ae.a)(e);return o.splice(t,r),oo(o,e.slice(t,t+r),n)}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,lo(o,r))})),n}function so(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(u.a)({},n.clientId,t),so(n.innerBlocks,n.clientId))}),{})}function uo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.identity,n={},r=Object(ae.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(ke.a)(o,["innerBlocks"]);r.push.apply(r,Object(ae.a)(c)),n[i.clientId]=t(i)}return n}function bo(e){return uo(e,(function(e){return Object(p.omit)(e,"attributes")}))}function fo(e){return uo(e,(function(e){return e.attributes}))}function po(e,t){return e===t?ao({},e):t}function mo(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(p.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(p.isEqual)(Object(p.keys)(n),Object(p.keys)(r)));var n,r}var Oo=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var go=Object(p.flow)(g.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=ao({},t)).attributes=Object(p.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ao({},e,{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(p.mapValues)(uo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(p.keys)(uo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ao({},r.cache,{},Oo(o(c)));break;case"UPDATE_BLOCK":r.cache=ao({},r.cache,{},Oo(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ao({},r.cache,{},Oo(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=Oo(o(n.replacedClientIds));r.cache=ao({},Object(p.omit)(r.cache,n.replacedClientIds),{},Object(p.omit)(i,n.replacedClientIds),{},Oo(Object(p.keys)(uo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ao({},Object(p.omit)(r.cache,n.removedClientIds),{},Oo(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=ao({},r.cache,{},Oo(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ao({},r.cache,{},Oo(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(p.keys)(Object(p.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ao({},r.cache,{},Oo(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o<r.length;o++){var c;!t.order[r[o]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[r[o]]||(r===e&&(r=Object(ae.a)(r)),(c=r).push.apply(c,Object(ae.a)(t.order[r[o]])))}return r};if(t)switch(n.type){case"REMOVE_BLOCKS":n=ao({},n,{type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:r(n.clientIds)});break;case"REPLACE_BLOCKS":n=ao({},n,{type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:r(n.clientIds)})}return e(t,n)}}),(function(e){return function(t,n){if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);var r={};if(Object.keys(t.controlledInnerBlocks).length)for(var o=Object(ae.a)(n.blocks);o.length;){var c=o.shift(),i=c.innerBlocks,a=Object(ke.a)(c,["innerBlocks"]);o.push.apply(o,Object(ae.a)(i)),t.controlledInnerBlocks[a.clientId]&&(r[a.clientId]=!0)}var l=t;t.order[n.rootClientId]&&(l=e(l,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:r,clientIds:t.order[n.rootClientId]}));var s=l;return n.blocks.length&&((s=e(s,ao({},n,{type:"INSERT_BLOCKS",index:0}))).order=ao({},s.order,{},Object(p.reduce)(r,(function(e,n,r){return t.order[r]&&(e[r]=t.order[r]),e}),{}))),s}}),(function(e){return function(t,n){if(t&&"RESET_BLOCKS"===n.type){var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(p.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ae.a)(n),[o],Object(ae.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(p.pickBy)(t.controlledInnerBlocks));return ao({},t,{byClientId:ao({},Object(p.omit)(t.byClientId,r),{},bo(n.blocks)),attributes:ao({},Object(p.omit)(t.attributes,r),{},fo(n.blocks)),order:ao({},Object(p.omit)(t.order,r),{},Object(p.omit)(lo(n.blocks),o)),parents:ao({},Object(p.omit)(t.parents,r),{},so(n.blocks)),cache:ao({},Object(p.omit)(t.cache,r),{},Object(p.omit)(Object(p.mapValues)(uo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var a=Object(p.get)(r,["isPersistentChange"],!0);return r.isPersistentChange===a?r:ao({},c,{isPersistentChange:a})}return c=ao({},c,{isPersistentChange:i?!n:!mo(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return bo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ao({},e,{},bo(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:ao({},e,Object(u.a)({},t.clientId,ao({},e[t.clientId],{},n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ao({},Object(p.omit)(e,t.replacedClientIds),{},bo(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 fo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ao({},e,{},fo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ao({},e,Object(u.a)({},t.clientId,ao({},e[t.clientId],{},t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ao({},n,Object(u.a)({},r,Object(p.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=po(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ao({},e,{},n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ao({},Object(p.omit)(e,t.replacedClientIds),{},fo(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 lo(t.blocks);case"RECEIVE_BLOCKS":return ao({},e,{},Object(p.omit)(lo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=lo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ao({},e,{},c,Object(u.a)({},r,oo(o,c[r],a)));case"MOVE_BLOCK_TO_POSITION":var l,s=t.fromRootClientId,d=void 0===s?"":s,b=t.toRootClientId,f=void 0===b?"":b,m=t.clientId,O=t.index,g=void 0===O?e[f].length:O;if(d===f){var v=e[f],h=v.indexOf(m);return ao({},e,Object(u.a)({},f,co(e[f],h,g)))}return ao({},e,(l={},Object(u.a)(l,d,Object(p.without)(e[d],m)),Object(u.a)(l,f,oo(e[f],m,g)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(p.first)(j),E=e[y];if(!E.length||_===Object(p.first)(E))return e;var S=E.indexOf(_);return ao({},e,Object(u.a)({},y,co(E,S,S-1,j.length)));case"MOVE_BLOCKS_DOWN":var C=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(p.first)(C),x=Object(p.last)(C),P=e[I];if(!P.length||x===Object(p.last)(P))return e;var T=P.indexOf(B);return ao({},e,Object(u.a)({},I,co(P,T,T+1,C.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var R=lo(t.blocks);return Object(p.flow)([function(e){return Object(p.omit)(e,t.replacedClientIds)},function(e){return ao({},e,{},Object(p.omit)(R,""))},function(e){return Object(p.mapValues)(e,(function(e){return Object(p.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ae.a)(e),Object(ae.a)(R[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.flow)([function(e){return Object(p.omit)(e,t.removedClientIds)},function(e){return Object(p.mapValues)(e,(function(e){return p.without.apply(void 0,[e].concat(Object(ae.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 so(t.blocks);case"RECEIVE_BLOCKS":return ao({},e,{},so(t.blocks));case"INSERT_BLOCKS":return ao({},e,{},so(t.blocks,t.rootClientId||""));case"MOVE_BLOCK_TO_POSITION":return ao({},e,Object(u.a)({},t.clientId,t.toRootClientId||""));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ao({},Object(p.omit)(e,t.replacedClientIds),{},so(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(p.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ao({},e,Object(u.a)({},r,o)):e}});function vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}var ho=Object(g.combineReducers)({blocks:go,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isDraggingBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return!0;case"STOP_DRAGGING_BLOCKS":return!1}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return vo(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 vo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return ao({},e,Object(u.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(p.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(p.isEqual)(e[n],t.settings)?e:ao({},e,Object(u.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(p.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r};case"HIDE_INSERTION_POINT":return null}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return ao({},e,{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ro,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ao({},e,{},t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:no,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ao({},e,{insertUsage:ao({},e.insertUsage,Object(u.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(u.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ao({},e,Object(u.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){var n=t.clientId,r=t.isHighlighted;if("TOGGLE_BLOCK_HIGHLIGHT"===t.type){if(r)return n;if(e===n)return null}return e}}),jo=n(103),ko=n.n(jo),yo=n(256),_o=n.n(yo),Eo=n(40);function So(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 Co={SELECT:Object(g.createRegistryControl)((function(e){return function(t){var n,r=t.storeName,o=t.selectorName,c=t.args;return(n=e.select(r))[o].apply(n,Object(ae.a)(c))}})),SLEEP:function(e){var t=e.duration;return new Promise((function(e){setTimeout(e,t)}))}};function wo(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Io(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Io(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Po=ar.a.mark(Uo),To=ar.a.mark(Xo),No=ar.a.mark(Zo),Ro=ar.a.mark(oc),Do=ar.a.mark(sc),Lo=ar.a.mark(dc),Ao=ar.a.mark(gc),Mo=ar.a.mark(Dc),Fo=ar.a.mark(Lc),Vo=ar.a.mark(Ac),Ho=ar.a.mark(Mc),zo=ar.a.mark(Vc);function Uo(){return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,So("core/block-editor","getBlockCount");case 2:if(0!==e.sent){e.next=7;break}return e.next=6,Ic();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),Po)}function Go(e){return{type:"RESET_BLOCKS",blocks:e}}function Ko(e,t){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t}}function Wo(e){return{type:"RECEIVE_BLOCKS",blocks:e}}function qo(e,t){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(p.castArray)(e),attributes:t}}function $o(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function Yo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function Xo(e){var t;return ar.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,So("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Yo(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),To)}function Zo(e){var t;return ar.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,So("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,Yo(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),No)}function Qo(){return{type:"START_MULTI_SELECT"}}function Jo(){return{type:"STOP_MULTI_SELECT"}}function ec(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function tc(){return{type:"CLEAR_SELECTED_BLOCK"}}function nc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function rc(e,t){var n=Object(p.get)(t,["__experimentalPreferredStyleVariations","value"],{});return e.map((function(e){var t=e.name;if(!Object(c.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!n[t])return e;var r=Object(p.get)(e,["attributes","className"]);if(Object(p.includes)(r,"is-style-"))return e;var o=e.attributes,i=void 0===o?{}:o,a=n[t];return xo({},e,{attributes:xo({},i,{className:"".concat(r||""," is-style-").concat(a).trim()})})}))}function oc(e,t,n,r){var o,c,i;return ar.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=Object(p.castArray)(e),a.t0=rc,a.t1=Object(p.castArray)(t),a.next=5,So("core/block-editor","getSettings");case 5:return a.t2=a.sent,t=(0,a.t0)(a.t1,a.t2),a.next=9,So("core/block-editor","getBlockRootClientId",Object(p.first)(e));case 9:o=a.sent,c=0;case 11:if(!(c<t.length)){a.next=21;break}return i=t[c],a.next=15,So("core/block-editor","canInsertBlockType",i.name,o);case 15:if(a.sent){a.next=18;break}return a.abrupt("return");case 18:c++,a.next=11;break;case 21:return a.next=23,{type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:r};case 23:return a.delegateYield(Uo(),"t3",24);case 24:case"end":return a.stop()}}),Ro)}function cc(e,t){return oc(e,t)}function ic(e){return function(t,n){return{clientIds:Object(p.castArray)(t),type:e,rootClientId:n}}}var ac=ic("MOVE_BLOCKS_DOWN"),lc=ic("MOVE_BLOCKS_UP");function sc(e){var t,n,r,o,c,i,a=arguments;return ar.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,So("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=l.sent)){l.next=8;break}return l.abrupt("return");case 8:if(c={type:"MOVE_BLOCK_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientId:e,index:r},t!==n){l.next=13;break}return l.next=12,c;case 12:return l.abrupt("return");case 13:if("insert"!==o){l.next=15;break}return l.abrupt("return");case 15:return l.next=17,So("core/block-editor","getBlockName",e);case 17:return i=l.sent,l.next=20,So("core/block-editor","canInsertBlockType",i,n);case 20:if(!l.sent){l.next=24;break}return l.next=24,c;case 24:case"end":return l.stop()}}),Do)}function uc(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return dc([e],t,n,r)}function dc(e,t,n){var r,o,c,i,a,l=arguments;return ar.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=!(l.length>3&&void 0!==l[3])||l[3],s.t0=rc,s.t1=Object(p.castArray)(e),s.next=5,So("core/block-editor","getSettings");case 5:s.t2=s.sent,e=(0,s.t0)(s.t1,s.t2),o=[],c=wo(e),s.prev=9,c.s();case 11:if((i=c.n()).done){s.next=19;break}return a=i.value,s.next=15,So("core/block-editor","canInsertBlockType",a.name,n);case 15:s.sent&&o.push(a);case 17:s.next=11;break;case 19:s.next=24;break;case 21:s.prev=21,s.t3=s.catch(9),c.e(s.t3);case 24:return s.prev=24,c.f(),s.finish(24);case 27:if(!o.length){s.next=29;break}return s.abrupt("return",{type:"INSERT_BLOCKS",blocks:o,index:t,rootClientId:n,time:Date.now(),updateSelection:r});case 29:case"end":return s.stop()}}),Lo,null,[[9,21,24,27]])}function bc(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function fc(){return{type:"HIDE_INSERTION_POINT"}}function pc(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function mc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function Oc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function gc(e){var t,n,r,o,c=arguments;return ar.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(p.castArray)(e),i.next=6,So("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,So("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,Xo(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,So("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(Uo(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),Ao)}function vc(e,t){return gc([e],t)}function hc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function jc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function kc(){return{type:"START_TYPING"}}function yc(){return{type:"STOP_TYPING"}}function _c(){return{type:"START_DRAGGING_BLOCKS"}}function Ec(){return{type:"STOP_DRAGGING_BLOCKS"}}function Sc(){return{type:"ENTER_FORMATTED_TEXT"}}function Cc(){return{type:"EXIT_FORMATTED_TEXT"}}function wc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function Ic(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return uc(Object(c.createBlock)(r,e),n,t)}function Bc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function xc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Pc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Tc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function Nc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function Rc(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Dc(){var e,t=arguments;return ar.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Fe.speak)(Object(I.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Fe.speak)(Object(I.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Mo)}function Lc(e){var t,n,r,o,i,a,l=arguments;return ar.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,So("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,So("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(p.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(p.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,So("core/block-editor","getBlockIndex",Object(p.last)(Object(p.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,dc(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,ec(Object(p.first)(a).clientId,Object(p.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Fo)}function Ac(e){var t,n;return ar.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,So("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,So("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,So("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Ic({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Vo)}function Mc(e){var t,n;return ar.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,So("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,So("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,So("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,Ic({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Ho)}function Fc(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function Vc(e){return ar.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Fc(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,Fc(e,!1);case 6:case"end":return t.stop()}}),zo)}function Hc(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var zc=n(41);function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kc=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(d.createElement)(v.G,null,Object(d.createElement)(v.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"}))),Wc=[];function qc(e,t){var n=e.blocks.byClientId[t];return n?n.name:null}function $c(e,t){var n=e.blocks.byClientId[t];return!!n&&n.isValid}function Yc(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}var Xc=Object(zc.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Gc({},n,{attributes:Yc(e,t),innerBlocks:ba(e,t)?Wc:Qc(e,t)}):null}),(function(e,t){return[e.blocks.cache[t]]})),Zc=Object(zc.a)((function(e,t){var n=e.blocks.byClientId[t];return n?Gc({},n,{attributes:Yc(e,t)}):null}),(function(e,t){return[e.blocks.byClientId[t],e.blocks.attributes[t]]})),Qc=Object(zc.a)((function(e,t){return Object(p.map)(Pi(e,t),(function(t){return Xc(e,t)}))}),(function(e,t){return Object(p.map)(e.blocks.order[t||""],(function(t){return e.blocks.cache[t]}))})),Jc=function e(t,n){return Object(p.flatMap)(n,(function(n){var r=Pi(t,n);return[].concat(Object(ae.a)(r),Object(ae.a)(e(t,r)))}))},ei=Object(zc.a)((function(e){var t=Pi(e);return[].concat(Object(ae.a)(t),Object(ae.a)(Jc(e,t)))}),(function(e){return[e.blocks.order]})),ti=Object(zc.a)((function(e,t){var n=ei(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]})),ni=Object(zc.a)((function(e,t){return Object(p.map)(Object(p.castArray)(t),(function(t){return Xc(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function ri(e,t){return Pi(e,t).length}function oi(e){return e.selectionStart}function ci(e){return e.selectionEnd}function ii(e){return e.selectionStart.clientId}function ai(e){return e.selectionEnd.clientId}function li(e){var t=yi(e).length;return t||(e.selectionStart.clientId?1:0)}function si(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function ui(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function di(e){var t=ui(e);return t?Xc(e,t):null}function bi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var fi=Object(zc.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),pi=Object(zc.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=fi(e,t,r);return Object(p.map)(Object(p.filter)(Object(p.map)(o,(function(t){return{id:t,name:qc(e,t)}})),{name:n}),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function mi(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Oi(e,t){for(var n,r=ui(e),o=[].concat(Object(ae.a)(fi(e,t)),[t]),c=[].concat(Object(ae.a)(fi(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a<i&&o[a]===c[a];a++)n=o[a];return n}function gi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=ui(e)),void 0===t&&(t=n<0?Ei(e):Si(e)),!t)return null;var r=bi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function vi(e,t){return gi(e,t,-1)}function hi(e,t){return gi(e,t,1)}function ji(e){return e.initialPosition}var ki=Object(zc.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return Wc;if(t.clientId===n.clientId)return[t.clientId];var r=bi(e,t.clientId);if(null===r)return Wc;var o=Pi(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function yi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?Wc:ki(e)}var _i=Object(zc.a)((function(e){var t=yi(e);return t.length?t.map((function(t){return Xc(e,t)})):Wc}),(function(e){return[].concat(Object(ae.a)(ki.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Ei(e){return Object(p.first)(yi(e))||null}function Si(e){return Object(p.last)(yi(e))||null}function Ci(e,t){return Ei(e)===t}function wi(e,t){return-1!==yi(e).indexOf(t)}var Ii=Object(zc.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=wi(e,n=bi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Bi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function xi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Pi(e,t){return e.blocks.order[t||""]||Wc}function Ti(e,t,n){return Pi(e,n).indexOf(t)}function Ni(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Ri(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(p.some)(Pi(e,t),(function(t){return Ni(e,t)||wi(e,t)||n&&Ri(e,t,n)}))}function Di(e,t){if(!t)return!1;var n=yi(e),r=n.indexOf(t);return r>-1&&r<n.length-1}function Li(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId!==n.clientId}function Ai(e){return e.isMultiSelecting}function Mi(e){return e.isSelectionEnabled}function Fi(e,t){return e.blocksMode[t]||"visual"}function Vi(e){return e.isTyping}function Hi(e){return e.isDraggingBlocks}function zi(e){return e.isCaretWithinFormattedText}function Ui(e){var t,n,r=e.insertionPoint,o=e.selectionEnd;if(null!==r)return r;var c=o.clientId;return c?(t=bi(e,c)||void 0,n=Ti(e,o.clientId,t)+1):n=Pi(e).length,{rootClientId:t,index:n}}function Gi(e){return null!==e.insertionPoint}function Ki(e){return e.template.isValid}function Wi(e){return e.settings.template}function qi(e,t){if(!t)return e.settings.templateLock;var n=ta(e,t);return n?n.templateLock:null}var $i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(p.isBoolean)(e)?e:Object(p.isArray)(e)?!(!Object(p.includes)(e,"core/post-content")||null!==t)||Object(p.includes)(e,t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=na(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!qi(e,n);if(s)return!1;var u=ta(e,n),d=Object(p.get)(u,["allowedBlocks"]),b=r(d,t),f=o.parent,m=qc(e,n),O=r(f,m);return null!==b&&null!==O?b||O:null!==b?b:null===O||O},Yi=Object(zc.a)($i,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function Xi(e,t){return Object(p.get)(e.preferences.insertUsage,[t],null)}var Zi=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&$i(e,t.name,n)},Qi=Object(zc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},r=function(t){var r=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(p.some)(ni(e,ei(e)),{name:t.name}));var i=Xi(e,r)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:r,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:n(a,s)}},o=function(t){var r,o="core/block/".concat(t.id),i=ca(e,t.id);1===i.length&&(r=Object(c.getBlockType)(i[0].name));var a=Xi(e,o)||{},l=a.time,s=a.count,u=n(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title,icon:r?r.icon:Kc,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},i=Object(c.getBlockTypes)().filter((function(n){return Zi(e,n,t)})).map(r),a=$i(e,"core/block",t)?la(e).map(o):[];return Object(p.orderBy)([].concat(Object(ae.a)(i),Object(ae.a)(a)),["frecency"],["desc","desc"])}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,la(e),Object(c.getBlockTypes)()]})),Ji=Object(zc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(p.some)(Object(c.getBlockTypes)(),(function(n){return Zi(e,n,t)}));if(n)return!0;var r=$i(e,"core/block",t)&&la(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,la(e),Object(c.getBlockTypes)()]})),ea=Object(zc.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(p.filter)(Object(c.getBlockTypes)(),(function(n){return Zi(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function ta(e,t){return e.blockListSettings[t]}function na(e){return e.settings}function ra(e){return e.blocks.isPersistentChange}var oa=Object(zc.a)((function(e,t){return Object(p.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),ca=Object(zc.a)((function(e,t){var n=Object(p.find)(la(e),(function(e){return e.id===t}));return n?Object(c.parse)(n.content):null}),(function(e){return[la(e)]}));function ia(e){return e.blocks.isIgnoredChange}function aa(e){return e.lastBlockAttributesChange}function la(e){return Object(p.get)(e,["settings","__experimentalReusableBlocks"],Wc)}function sa(e){return e.isNavigationMode}function ua(e){return!!e.automaticChangeStatus}function da(e,t){return e.highlightedBlock===t}function ba(e,t){return!!e.blocks.controlledInnerBlocks[t]}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ma={MERGE_BLOCKS:function(e,t){var n=t.dispatch,r=t.getState(),o=Object(le.a)(e.blocks,2),a=o[0],l=o[1],s=Xc(r,a),u=Object(c.getBlockType)(s.name);if(u.merge){var d=Xc(r,l),b=Object(c.getBlockType)(d.name),f=oi(r),m=f.clientId,O=f.attributeKey,g=f.offset,v=(m===a?u:b).attributes[O],h=(m===a||m===l)&&void 0!==O&&void 0!==g&&!!v;v||("number"==typeof O?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was ".concat(Object(Eo.a)(O))):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));var j=Object(c.cloneBlock)(s),k=Object(c.cloneBlock)(d);if(h){var y=m===a?j:k,_=y.attributes[O],E=v.multiline,S=v.__unstableMultilineWrapperTags,C=v.__unstablePreserveWhiteSpace,w=Object(i.insert)(Object(i.create)({html:_,multilineTag:E,multilineWrapperTags:S,preserveWhiteSpace:C}),"",g,g);y.attributes[O]=Object(i.toHTMLString)({value:w,multilineTag:E,preserveWhiteSpace:C})}var I=s.name===d.name?[k]:Object(c.switchToBlockType)(k,s.name);if(I&&I.length){var B=u.merge(j.attributes,I[0].attributes);if(h){var x=Object(p.findKey)(B,(function(e){return"string"==typeof e&&-1!==e.indexOf("")})),P=B[x],T=u.attributes[x],N=T.multiline,R=T.__unstableMultilineWrapperTags,D=T.__unstablePreserveWhiteSpace,L=Object(i.create)({html:P,multilineTag:N,multilineWrapperTags:R,preserveWhiteSpace:D}),A=L.text.indexOf(""),M=Object(i.remove)(L,A,A+1),F=Object(i.toHTMLString)({value:M,multilineTag:N,preserveWhiteSpace:D});B[x]=F,n(wc(s.clientId,x,A,A))}n(oc([s.clientId,d.clientId],[pa({},s,{attributes:pa({},s.attributes,{},B)})].concat(Object(ae.a)(I.slice(1)))))}}else n(Yo(s.clientId))},RESET_BLOCKS:[function(e,t){var n=t.getState(),r=Wi(n),o=qi(n),i=!r||"all"!==o||Object(c.doBlocksMatchTemplate)(e.blocks,r);if(i!==Ki(n))return pc(i)}],MULTI_SELECT:function(e,t){var n=li((0,t.getState)());Object(Fe.speak)(Object(I.sprintf)(Object(I._n)("%s block selected.","%s blocks selected.",n),n),"assertive")},SYNCHRONIZE_TEMPLATE:function(e,t){var n=(0,t.getState)(),r=Qc(n),o=Wi(n);return Go(Object(c.synchronizeBlocksWithTemplate)(r,o))},MARK_AUTOMATIC_CHANGE:function(e,t){var n=window,r=n.setTimeout,o=n.requestIdleCallback;(void 0===o?function(e){return r(e,100)}:o)((function(){t.dispatch({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))}};var Oa=function(e){var t,n=[ko()(ma),_o.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(ae.a)(t))(e.dispatch),e.dispatch=r,e};function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var va={reducer:ho,selectors:o,actions:r,controls:Co},ha=Object(g.registerStore)("core/block-editor",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},va,{persist:["preferences"]}));Oa(ha);function ja(e){var t=e.clientId,n=void 0===t?null:t,r=e.value,o=e.selectionStart,c=e.selectionEnd,i=e.onChange,a=void 0===i?p.noop:i,l=e.onInput,s=void 0===l?p.noop:l,u=Object(g.useRegistry)(),b=u.dispatch("core/block-editor"),f=b.resetBlocks,m=b.resetSelection,O=b.replaceInnerBlocks,v=b.setHasControlledInnerBlocks,h=b.__unstableMarkNextChangeAsNotPersistent,j=u.select("core/block-editor"),k=j.getBlockName,y=j.getBlocks,_=Object(d.useRef)({incoming:null,outgoing:[]}),E=Object(d.useRef)(s),S=Object(d.useRef)(a);Object(d.useEffect)((function(){E.current=s,S.current=a}),[s,a]),Object(d.useEffect)((function(){var e,t=u.select("core/block-editor"),r=t.getSelectionStart,o=t.getSelectionEnd,c=t.isLastBlockChangePersistent,i=t.__unstableIsLastBlockChangeIgnored,l=c(),d=!1,b=u.subscribe((function(){if(null===n||null!==k(n)){var t=c(),u=y(n),b=u!==e;if(e=u,b&&(_.current.incoming||i()))return _.current.incoming=null,void(l=t);if(b||d&&!b&&t&&!l)l=t,_.current.outgoing.push(e),(l?a:s)(e,{selectionStart:r(),selectionEnd:o()});d=b}}));return function(){return b()}}),[u,n]),Object(d.useEffect)((function(){_.current.outgoing.includes(r)?Object(p.last)(_.current.outgoing)===r&&(_.current.outgoing=[]):y(n)!==r&&(_.current.outgoing=[],_.current.incoming=r,r&&(h(),n?(v(n,!0),h(),O(n,r,!1)):f(r)),o&&c&&m(o,c))}),[r,n])}var ka=Object(m.createHigherOrderComponent)((function(e){return Object(g.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object(ke.a)(t,["useSubRegistry","registry"]);if(!r)return Object(d.createElement)(e,Object(s.a)({registry:o},c));var i=Object(d.useState)(null),a=Object(le.a)(i,2),l=a[0],u=a[1];return Object(d.useEffect)((function(){var e=Object(g.createRegistry)({},o),t=e.registerStore("core/block-editor",va);Oa(t),u(e)}),[o]),l?Object(d.createElement)(g.RegistryProvider,{value:l},Object(d.createElement)(e,Object(s.a)({registry:l},c))):null}))}),"withRegistryProvider")((function(e){var t=e.children,n=e.settings,r=Object(g.useDispatch)("core/block-editor").updateSettings;return Object(d.useEffect)((function(){r(n)}),[n]),ja(e),t})),ya=n(62);var _a=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor"),r=n.getBlockCount,o=n.getBlockName,i=n.isBlockValid,a=n.getSettings,l=n.getTemplateLock,s=!r(t.rootClientId),u=o(t.lastBlockClientId)===Object(c.getDefaultBlockName)(),d=i(t.lastBlockClientId),b=a().bodyPlaceholder;return{isVisible:s||!u||!d,showPrompt:s,isLocked:!!l(t.rootClientId),placeholder:b}})),Object(g.withDispatch)((function(e,t){var n=e("core/block-editor"),r=n.insertDefaultBlock,o=n.startTyping;return{onAppend:function(){var e=t.rootClientId;r(void 0,e),o()}}})))((function(e){var t=e.isLocked,n=e.isVisible,r=e.onAppend,o=e.showPrompt,c=e.placeholder,i=e.rootClientId;if(t||!n)return null;var a=Object(ya.decodeEntities)(c)||Object(I.__)("Start writing or type / to choose a block");return Object(d.createElement)("div",{"data-root-client-id":i||"",className:"wp-block block-editor-default-block-appender"},Object(d.createElement)(Gr.a,{role:"button","aria-label":Object(I.__)("Add block"),className:"block-editor-default-block-appender__content",readOnly:!0,onFocus:r,value:o?a:""}),Object(d.createElement)(vl,{rootClientId:i,position:"top right",isAppender:!0}))}));var Ea=Object(d.forwardRef)((function(e,t){var n=e.rootClientId,r=e.className,o=e.__experimentalSelectBlockOnInsert,c=e.onFocus,i=e.tabIndex;return Object(d.createElement)(vl,{position:"bottom center",rootClientId:n,__experimentalSelectBlockOnInsert:o,renderToggle:function(e){var n,o=e.onToggle,a=e.disabled,l=e.isOpen,s=e.blockTitle,u=e.hasSingleBlockType;n=u?Object(I.sprintf)(Object(I._x)("Add %s","directly add the only allowed block"),s):Object(I._x)("Add block","Generic label for block inserter button");var b=!u,p=Object(d.createElement)(v.Button,{ref:t,onFocus:c,tabIndex:i,className:f()(r,"block-editor-button-block-appender"),onClick:o,"aria-haspopup":b?"true":void 0,"aria-expanded":b?l:void 0,disabled:a,label:n},!u&&Object(d.createElement)(v.VisuallyHidden,{as:"span"},n),Object(d.createElement)(Qr.a,{icon:Yr.a}),u&&Object(d.createElement)("span",{className:"block-editor-button-block-appender__label"},n," "));return b&&(p=Object(d.createElement)(v.Tooltip,{text:n},p)),p},isAppender:!0})}));function Sa(e){e.stopPropagation()}var Ca=Object(g.withSelect)((function(e,t){var n=t.rootClientId,r=e("core/block-editor"),o=r.getBlockOrder,i=r.canInsertBlockType;return{isLocked:!!(0,r.getTemplateLock)(n),blockClientIds:o(n),canInsertDefaultBlock:i(Object(c.getDefaultBlockName)(),n)}}))((function(e){var t,n=e.blockClientIds,r=e.rootClientId,o=e.canInsertDefaultBlock,c=e.isLocked,i=e.renderAppender,a=e.className,l=e.tagName,s=void 0===l?"div":l;return c||!1===i?null:(t=i?Object(d.createElement)(i,null):o?Object(d.createElement)(_a,{rootClientId:r,lastBlockClientId:Object(p.last)(n)}):Object(d.createElement)(Ea,{rootClientId:r,className:"block-list-appender__toggle"}),Object(d.createElement)(s,{tabIndex:-1,onFocus:Sa,className:f()("block-list-appender",a)},t))}));function wa(e){var t=e.element,n=e.rootClientId,r=Object(d.useState)(null),o=Object(le.a)(r,2),i=o[0],a=o[1];var l=Object(g.useSelect)((function(e){var t,r=e("core/block-editor"),o=r.getBlockIndex,c=r.getBlockListSettings,i=r.getClientIdsOfDescendants,a=r.getSettings,l=r.getTemplateLock;return{getBlockIndex:o,moverDirection:null===(t=c(n))||void 0===t?void 0:t.__experimentalMoverDirection,getClientIdsOfDescendants:i,hasUploadPermissions:!!a().mediaUpload,isLockedAll:"all"===l(n)}}),[n]),s=l.getBlockIndex,u=l.getClientIdsOfDescendants,b=l.hasUploadPermissions,f=l.isLockedAll,p=l.moverDirection,m=Object(g.useDispatch)("core/block-editor"),O=m.insertBlocks,h=m.updateBlockAttributes,j=m.moveBlockToPosition,k=Object(d.useCallback)((function(e){if(b){var t=Object(c.findTransform)(Object(c.getBlockTransforms)("from"),(function(t){return"files"===t.type&&t.isMatch(e)}));if(t){var r=t.transform(e,h);O(r,i,n)}}}),[b,h,O,i,n]),y=Object(d.useCallback)((function(e){var t=Object(c.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&O(t,i,n)}),[O,i,n]),_=Object(d.useCallback)((function(e){var t=function(e){var t={srcRootClientId:null,srcClientId:null,srcIndex:null,type:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("text")))}catch(e){return t}return t}(e),r=t.srcRootClientId,o=t.srcClientId,c=t.srcIndex;"block"===t.type&&(r===n&&c===i||n===o||u([o]).some((function(e){return e===n}))||j(o,r,n,(r===n||""===r&&void 0===n)&&c<i?i-1:i))}),[u,s,i,j,n]),E=Object(v.__unstableUseDropZone)({element:t,onFilesDrop:k,onHTMLDrop:y,onDrop:_,isDisabled:f,withPosition:!0}).position;if(Object(d.useEffect)((function(){if(E){var e=function(e,t,n){var r,o,c=t.x,i=t.y,a="horizontal"===n;return e.forEach((function(e,t){if(e.dataset.block){var n,l=e.getBoundingClientRect(),s=a?i:c,u=a?c:i,d=a?l.top:l.left,b=a?l.bottom:l.right;n=s>=d&&s<=b?s:s<d?d:b;var f=a?l.left:l.top,p=a?l.right:l.bottom,m=Math.sqrt(Math.pow(s-n,2)+Math.pow(u-f,2));(void 0===o||Math.abs(m)<o)&&(o=m,r=t);var O=Math.sqrt(Math.pow(s-n,2)+Math.pow(u-p,2));Math.abs(O)<o&&(o=O,r=t+1)}})),r}(Array.from(t.current.children),E,p);if(void 0===e)return;a(e)}}),[E]),E)return i}var Ia,Ba=Object(d.forwardRef)((function(e,t){var n=e.className,r=e.rootClientId,o=e.renderAppender,c=e.__experimentalTagName,i=void 0===c?"div":c,a=e.__experimentalAppenderTagName,l=e.__experimentalPassedProps,u=void 0===l?{}:l,b=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),o=n.getBlockOrder,c=n.getBlockListSettings,i=n.getSelectedBlockClientId,a=n.getMultiSelectedBlockClientIds,l=n.hasMultiSelection,s=n.getGlobalBlockCount,u=n.isTyping;return{blockClientIds:o(r),selectedBlockClientId:i(),multiSelectedBlockClientIds:a(),moverDirection:null===(t=c(r))||void 0===t?void 0:t.__experimentalMoverDirection,hasMultiSelection:l(),enableAnimation:!u()&&s()<=200}}),[r]),p=b.blockClientIds,m=b.selectedBlockClientId,O=b.multiSelectedBlockClientIds,v=b.moverDirection,h=b.hasMultiSelection,j=b.enableAnimation,k=r?i:Ls,y=wa({element:t,rootClientId:r}),_=y===p.length;return Object(d.createElement)(k,Object(s.a)({},u,{ref:t,className:f()("block-editor-block-list__layout",n,u.className)}),p.map((function(e,t){var n=h?O.includes(e):m===e,o=y===t;return Object(d.createElement)(g.AsyncModeProvider,{key:e,value:!n},Object(d.createElement)(Ws,{rootClientId:r,clientId:e,index:t,enableAnimation:j,className:f()({"is-drop-target":o,"is-dropping-horizontally":o&&"horizontal"===v})}))})),Object(d.createElement)(Ca,{tagName:a,rootClientId:r,renderAppender:o,className:f()({"is-drop-target":_,"is-dropping-horizontally":_&&"horizontal"===v})}))})),xa=Object(d.forwardRef)((function(e,t){var n=Object(d.useRef)();return Object(d.createElement)(g.AsyncModeProvider,{value:!1},Object(d.createElement)(Ba,Object(s.a)({ref:t||n},e)))}));function Pa(e){var t=e.onClick;return Object(d.createElement)("div",{tabIndex:0,role:"button",onClick:t,onKeyPress:t},Object(d.createElement)(v.Disabled,null,Object(d.createElement)(xa,null)))}var Ta=function(e){var t=e.viewportWidth,n=e.__experimentalPadding,r=Object(m.useResizeObserver)(),o=Object(le.a)(r,2),c=o[0],i=o[1].width,a=Object(m.useResizeObserver)(),l=Object(le.a)(a,2),s=l[0],u=l[1].height;Ia=Ia||Object(m.pure)(xa);var b=(i-2*n)/t;return Object(d.createElement)("div",{className:"block-editor-block-preview__container editor-styles-wrapper","aria-hidden":!0,style:{height:u*b+2*n}},c,Object(d.createElement)(v.Disabled,{style:{transform:"scale(".concat(b,")"),width:t,left:n,right:n,top:n},className:"block-editor-block-preview__content"},s,Object(d.createElement)(Ia,null)))};var Na=Object(d.memo)((function(e){var t=e.blocks,n=e.__experimentalPadding,r=void 0===n?0:n,o=e.viewportWidth,c=void 0===o?700:o,i=e.__experimentalLive,a=void 0!==i&&i,l=e.__experimentalOnClick,s=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings()})),u=Object(d.useMemo)((function(){return Object(p.castArray)(t)}),[t]);return t&&0!==t.length?Object(d.createElement)(ka,{value:u,settings:s},a?Object(d.createElement)(Pa,{onClick:l}):Object(d.createElement)(Ta,{viewportWidth:c,__experimentalPadding:r})):null}));function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var La=function(e){var t=e.item,n=Object(c.getBlockType)(t.name);return Object(d.createElement)("div",{className:"block-editor-inserter__menu-preview-panel"},Object(d.createElement)("div",{className:"block-editor-inserter__preview"},Object(c.isReusableBlock)(t)||n.example?Object(d.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(d.createElement)(Na,{__experimentalPadding:16,viewportWidth:500,blocks:n.example?Object(c.getBlockFromExample)(t.name,{attributes:Da({},n.example.attributes,{},t.initialAttributes),innerBlocks:n.example.innerBlocks}):Object(c.createBlock)(t.name,t.initialAttributes)})):Object(d.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(I.__)("No Preview Available."))),!Object(c.isReusableBlock)(t)&&Object(d.createElement)(to,{blockType:t}))},Aa=n(30),Ma=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(B.Path,{d:"M5 7v3l-2 1.5V5h11V3l4 3.01L14 9V7H5zm10 6v-3l2-1.5V15H6v2l-4-3.01L6 11v2h9z"}));var Fa=function(e){var t=e.icon,n=e.onClick,r=e.isDisabled,o=e.title,c=e.className,i=Object(ke.a)(e,["icon","onClick","isDisabled","title","className"]),a=t?{backgroundColor:t.background,color:t.foreground}:{};return Object(d.createElement)("li",{className:"block-editor-block-types-list__list-item"},Object(d.createElement)(v.Button,Object(s.a)({className:f()("block-editor-block-types-list__item",c),onClick:function(e){e.preventDefault(),n()},disabled:r},i),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:a},Object(d.createElement)(Tn,{icon:t,showColors:!0})),Object(d.createElement)("span",{className:"block-editor-block-types-list__item-title"},o)))};function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var za=function(e){var t=e.items,n=void 0===t?[]:t,r=e.onSelect,o=e.onHover,i=void 0===o?function(){}:o,a=e.children,l=n.reduce((function(e,t){var n=t.variations,r=void 0===n?[]:n;return r.some((function(e){return e.isDefault}))||e.push(t),r.length&&(e=e.concat(r.map((function(e){return Ha({},t,{id:"".concat(t.id,"-").concat(e.name),icon:e.icon||t.icon,title:e.title||t.title,description:e.description||t.description,example:e.hasOwnProperty("example")?e.example:t.example,initialAttributes:Ha({},t.initialAttributes,{},e.attributes),innerBlocks:e.innerBlocks})})))),e}),[]);return Object(d.createElement)("ul",{role:"list",className:"block-editor-block-types-list"},l.map((function(e){return Object(d.createElement)(Fa,{key:e.id,className:Object(c.getBlockMenuDefaultClassName)(e.id),icon:e.icon,onClick:function(){r(e),i(null)},onFocus:function(){return i(e)},onMouseEnter:function(){return i(e)},onMouseLeave:function(){return i(null)},onBlur:function(){return i(null)},isDisabled:e.isDisabled,title:e.title})})),a)};function Ua(e){var t=e.rootClientId,n=e.children,r=Object(g.useSelect)((function(e){var n=(0,e("core/blocks").getBlockType)((0,e("core/block-editor").getBlockName)(t));return{rootBlockTitle:n&&n.title,rootBlockIcon:n&&n.icon}})),o=r.rootBlockTitle,c=r.rootBlockIcon;return Object(d.createElement)("div",{className:"block-editor-inserter__child-blocks"},(c||o)&&Object(d.createElement)("div",{className:"block-editor-inserter__parent-block-header"},Object(d.createElement)(Tn,{icon:c,showColors:!0}),o&&Object(d.createElement)("h2",null,o)),n)}var Ga=Object(v.createSlotFill)("__experimentalInserterMenuExtension"),Ka=Ga.Fill,Wa=Ga.Slot;Ka.Slot=Wa;var qa=Ka;function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ya=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(p.deburr)(e)).replace(/^\//,"")).toLowerCase(),Object(p.words)(e)},Xa=function(e,t){return Object(p.differenceWith)(e,Ya(t),(function(e,t){return t.includes(e)}))},Za=function(e,t,n,r){var o=Ya(r);return 0===o.length?e:Qa(e,r,{getCategory:function(e){var n;return null===(n=Object(p.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){return(e.variations||[]).map((function(e){return e.title}))}}).map((function(e){if(Object(p.isEmpty)(e.variations))return e;var t=e.variations.filter((function(e){return Object(p.intersectionWith)(o,Ya(e.title),(function(e,t){return t.includes(e)})).length>0}));return Object(p.isEmpty)(t)?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{variations:t})}))},Qa=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ya(t);if(0===r.length)return e;var o=function(e){return e.title},c=function(e){return e.keywords||[]},i=function(e){return e.category},a=function(){return null},l=function(){return[]},s=n.getTitle,u=void 0===s?o:s,d=n.getKeywords,b=void 0===d?c:d,f=n.getCategory,p=void 0===f?i:f,m=n.getCollection,O=void 0===m?a:m,g=n.getVariations,v=void 0===g?l:g;return e.filter((function(e){var t=u(e),n=b(e),o=p(e),c=O(e),i=v(e),a=[t].concat(Object(ae.a)(n),[o,c],Object(ae.a)(i)).join(" ");return 0===Xa(r,a).length}))};var Ja=function(e){var t=e.title,n=e.icon,r=e.children;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(d.createElement)("h2",{className:"block-editor-inserter__panel-title"},t),Object(d.createElement)(v.Icon,{icon:n})),Object(d.createElement)("div",{className:"block-editor-inserter__panel-content"},r))};var el=function(){return Object(d.createElement)("div",{className:"block-editor-inserter__no-results"},Object(d.createElement)(Qr.a,{className:"block-editor-inserter__no-results-icon",icon:Pn.a}),Object(d.createElement)("p",null,Object(I.__)("No results found.")))},tl=function(e,t){var n=Object(g.useSelect)((function(t){var n=t("core/block-editor"),r=n.getInserterItems,o=n.getSettings,c=t("core/blocks"),i=c.getCategories,a=c.getCollections,l=o().__experimentalFetchReusableBlocks;return{categories:i(),collections:a(),items:r(e),fetchReusableBlocks:l}}),[e]),r=n.categories,o=n.collections,i=n.items,a=n.fetchReusableBlocks;Object(d.useEffect)((function(){a&&a()}),[]);return[i,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,function e(t){return Object(p.map)(t,(function(t){var n=Object(le.a)(t,3),r=n[0],o=n[1],i=n[2],a=void 0===i?[]:i;return Object(c.createBlock)(r,o,e(a))}))}(o));t(i)}]};function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var rl=Object(m.compose)(v.withSpokenMessages)((function(e){var t=e.rootClientId,n=e.onInsert,r=e.onHover,o=e.filterValue,c=e.debouncedSpeak,i=tl(t,n),a=Object(le.a)(i,4),l=a[0],s=a[1],b=a[2],f=a[3],m=Object(g.useSelect)((function(e){var n=e("core/block-editor").getBlockName;return!!(0,e("core/blocks").getChildBlockNames)(n(t)).length}),[t]),O=Object(d.useMemo)((function(){return Za(l,s,b,o)}),[o,l,s,b]),v=Object(d.useMemo)((function(){return l.slice(0,6)}),[l]),h=Object(d.useMemo)((function(){return O.filter((function(e){return"reusable"===e.category}))}),[O]),j=Object(d.useMemo)((function(){return O.filter((function(e){return!e.category}))}),[O]),k=Object(d.useMemo)((function(){var e=function(e){return Object(p.findIndex)(s,(function(t){return t.slug===e.category}))};return Object(p.flow)((function(e){return e.filter((function(e){return e.category&&"reusable"!==e.category}))}),(function(t){return Object(p.sortBy)(t,e)}),(function(e){return Object(p.groupBy)(e,"category")}))(O)}),[O,s]),y=Object(d.useMemo)((function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nl(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b);return Object.keys(b).forEach((function(t){e[t]=O.filter((function(e){return function(e){return e.name.split("/")[0]}(e)===t})),0===e[t].length&&delete e[t]})),e}),[O,b]);Object(d.useEffect)((function(){var e=Object(I.sprintf)(Object(I._n)("%d result found.","%d results found.",O.length),O.length);c(e)}),[o,c]);var _=!Object(p.isEmpty)(O);return Object(d.createElement)("div",null,m&&Object(d.createElement)(Ua,{rootClientId:t},Object(d.createElement)(za,{items:O,onSelect:f,onHover:r})),!m&&!!v.length&&!o&&Object(d.createElement)(Ja,{title:Object(I._x)("Most used","blocks")},Object(d.createElement)(za,{items:v,onSelect:f,onHover:r})),!m&&Object(p.map)(s,(function(e){var t=k[e.slug];return t&&t.length?Object(d.createElement)(Ja,{key:e.slug,title:e.title,icon:e.icon},Object(d.createElement)(za,{items:t,onSelect:f,onHover:r})):null})),!m&&!!j.length&&Object(d.createElement)(Ja,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(I.__)("Uncategorized")},Object(d.createElement)(za,{items:j,onSelect:f,onHover:r})),!m&&Object(p.map)(b,(function(e,t){var n=y[t];return n&&n.length?Object(d.createElement)(Ja,{key:t,title:e.title,icon:e.icon},Object(d.createElement)(za,{items:n,onSelect:f,onHover:r})):null})),!m&&!!h.length&&Object(d.createElement)(Ja,{className:"block-editor-inserter__reusable-blocks-panel",title:Object(I.__)("Reusable"),icon:Ma},Object(d.createElement)(za,{items:h,onSelect:f,onHover:r}),Object(d.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(Aa.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(I.__)("Manage all reusable blocks"))),Object(d.createElement)(qa.Slot,{fillProps:{onSelect:f,onHover:r,filterValue:o,hasItems:_}},(function(e){return e.length?e:_?null:Object(d.createElement)(el,null)})))})),ol=function(e){var t=Object(g.useSelect)((function(e){var t=e("core/block-editor").getSettings();return{patterns:t.__experimentalBlockPatterns,patternCategories:t.__experimentalBlockPatternCategories}}),[]),n=t.patternCategories,r=t.patterns,o=Object(g.useDispatch)("core/notices").createSuccessNotice;return[r,n,Object(d.useCallback)((function(t,n){e(Object(p.map)(n,(function(e){return Object(c.cloneBlock)(e)}))),o(Object(I.sprintf)(Object(I.__)('Pattern "%s" inserted.'),t.title),{type:"snackbar"})}),[])]};function cl(e){var t=e.pattern,n=e.onClick,r=t.content,o=t.viewportWidth,i=Object(d.useMemo)((function(){return Object(c.parse)(r)}),[r]);return Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item",role:"button",onClick:function(){return n(t,i)},onKeyDown:function(e){ct.ENTER!==e.keyCode&&ct.SPACE!==e.keyCode||n(t,i)},tabIndex:0,"aria-label":t.title},Object(d.createElement)(Na,{blocks:i,viewportWidth:o}),Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item-title"},t.title))}function il(){return Object(d.createElement)("div",{className:"block-editor-inserter__patterns-item is-placeholder"})}function al(e){var t=e.patterns,n=e.shownPatterns,r=e.onClickPattern;return t.map((function(e){return n.includes(e)?Object(d.createElement)(cl,{key:e.name,pattern:e,onClick:r}):Object(d.createElement)(il,{key:e.name})}))}function ll(e){var t=e.filterValue,n=e.onInsert,r=ol(n),o=Object(le.a)(r,3),c=o[0],i=o[2],a=Object(m.useAsyncList)(c),l=Object(d.useMemo)((function(){return Qa(c,t)}),[t,c]);if(t)return l.length?Object(d.createElement)(Ja,{title:Object(I.__)("Search Results")},Object(d.createElement)(al,{shownPatterns:a,patterns:l,onClickPattern:i})):Object(d.createElement)(el,null)}function sl(e){var t=e.onInsert,n=ol(t),r=Object(le.a)(n,3),o=r[0],c=r[1],i=r[2],a=Object(d.useCallback)((function(e){if(!e.categories||!e.categories.length)return 1/0;var t=Object(p.fromPairs)(c.map((function(e,t){return[e.name,t]})));return Math.min.apply(Math,Object(ae.a)(e.categories.map((function(e){return void 0!==t[e]?t[e]:1/0}))))}),[c]),l=Object(d.useMemo)((function(){return o.sort((function(e,t){return a(e)-a(t)}))}),[o,a]),s=Object(m.useAsyncList)(l),u=Object(d.useMemo)((function(){return o.filter((function(e){return a(e)===1/0}))}),[o,a]);return Object(d.createElement)(d.Fragment,null,c.map((function(e){var t=o.filter((function(t){return t.categories&&t.categories.includes(e.name)}));return!!t.length&&Object(d.createElement)(Ja,{key:e.name,title:e.label},Object(d.createElement)(al,{shownPatterns:s,patterns:t,onClickPattern:i}))})),!!u.length&&Object(d.createElement)(Ja,{title:Object(I._x)("Uncategorized")},Object(d.createElement)(al,{shownPatterns:s,patterns:u,onClickPattern:i})))}var ul=function(e){var t=e.onInsert,n=e.filterValue;return n?Object(d.createElement)(ll,{onInsert:t,filterValue:n}):Object(d.createElement)(sl,{onInsert:t})};function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var bl=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.selectBlockOnInsert,i=Object(g.useSelect)((function(e){var o,c=e("core/block-editor"),i=c.getSettings,a=c.getBlockRootClientId,l=c.getBlockSelectionEnd,s=t;if(!s&&!n&&!r){var d=l();d&&(s=a(d))}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hasPatterns:!!(null===(o=i().__experimentalBlockPatterns)||void 0===o?void 0:o.length),destinationRootClientId:s},Object(p.pick)(e("core/block-editor"),["getSelectedBlock","getBlockIndex","getBlockSelectionEnd","getBlockOrder"]))}),[r,n,t]),a=i.destinationRootClientId,l=i.getSelectedBlock,s=i.getBlockIndex,d=i.getBlockSelectionEnd,b=i.getBlockOrder,f=Object(g.useDispatch)("core/block-editor"),m=f.replaceBlocks,O=f.insertBlocks,v=f.showInsertionPoint,h=f.hideInsertionPoint;function j(){if(n)return s(n,a);var e=d();return!r&&e?s(e,a)+1:b(a).length}return[a,function(e){var t=l();if(!r&&t&&Object(c.isUnmodifiedDefaultBlock)(t)?m(t.clientId,e):O(e,j(),a,o),!o){var n=Object(I._n)("%d block added.","%d blocks added",e.length);Object(Fe.speak)(n)}},function(e){if(e){var t=j();v(a,t)}else h()}]},fl=function(e){return e.stopPropagation()};var pl=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.__experimentalSelectBlockOnInsert,c=e.onSelect,i=e.showInserterHelpPanel,a=Object(d.useState)(""),l=Object(le.a)(a,2),s=l[0],u=l[1],b=Object(d.useState)(null),f=Object(le.a)(b,2),m=f[0],O=f[1],h=bl({rootClientId:t,clientId:n,isAppender:r,selectBlockOnInsert:o}),j=Object(le.a)(h,3),k=j[0],y=j[1],_=j[2],E=Object(g.useSelect)((function(e){var t;return{hasPatterns:!!(null===(t=(0,e("core/block-editor").getSettings)().__experimentalBlockPatterns)||void 0===t?void 0:t.length)}}),[r,n,t]).hasPatterns,S=!k&&E,C=function(e){y(e),c()},w=Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:"block-editor-inserter__block-list"},Object(d.createElement)(rl,{rootClientId:k,onInsert:C,onHover:function(e){_(!!e),O(e)},filterValue:s})),i&&Object(d.createElement)("div",{className:"block-editor-inserter__tips"},Object(d.createElement)(v.VisuallyHidden,{as:"h2"},Object(I.__)("A tip for using the block editor")),Object(d.createElement)(Zr,null))),B=Object(d.createElement)(ul,{onInsert:C,filterValue:s});return Object(d.createElement)("div",{className:"block-editor-inserter__menu",onKeyPress:fl,onKeyDown:function(e){Object(p.includes)([ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER],e.keyCode)&&e.stopPropagation()}},Object(d.createElement)("div",{className:"block-editor-inserter__main-area"},Object(d.createElement)(eo,{onChange:u}),S&&Object(d.createElement)(v.TabPanel,{className:"block-editor-inserter__tabs",tabs:[{name:"blocks",title:Object(I.__)("Blocks")},{name:"patterns",title:Object(I.__)("Patterns")}]},(function(e){return"blocks"===e.name?w:B})),!S&&w),i&&m&&Object(d.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(d.createElement)(La,{item:m})))};function ml(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ol=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps;return t=i?Object(I.sprintf)(Object(I._x)("Add %s","directly add the only allowed block"),c):Object(I._x)("Add block","Generic label for block inserter button"),Object(d.createElement)(v.Button,Object(s.a)({icon:Yr.a,label:t,tooltipPosition:"bottom",onClick:n,className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},a))},gl=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(ml()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).onToggle=e.onToggle.bind(Object(zt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(zt.a)(e)),e.renderContent=e.renderContent.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?Ol:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return Object(d.createElement)(pl,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock;return n?this.renderToggle({onToggle:r}):Object(d.createElement)(v.Dropdown,{className:"block-editor-inserter",contentClassName:"block-editor-inserter__popover",position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(I.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),r}(d.Component),vl=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=o.getBlockSelectionEnd,s=e("core/blocks").getBlockVariations,u=a(r=r||c(n||l())||void 0),d=1===Object(p.size)(u)&&0===Object(p.size)(s(u[0].name,"inserter")),b=!1;return d&&(b=u[0]),{hasItems:i(r),hasSingleBlockType:d,blockTitle:b?b.title:"",allowedBlockType:b,rootClientId:r}})),Object(g.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(I.sprintf)(Object(I.__)("%s block added"),l.title);Object(Fe.speak)(u)}}}})),Object(m.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(gl),hl=Object(d.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(g.useDispatch)("core/block-editor").setNavigationMode;return Object(d.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=dr.focus.tabbable.find(e);(Object(p.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=dr.focus.tabbable.find(o.current);l.length&&(r?Object(p.last)(l).focus():Object(p.first)(l).focus())}},style:{position:"fixed"}})})),jl=window,kl=jl.getSelection,yl=jl.getComputedStyle,_l=Object(p.overEvery)([dr.isTextField,dr.focus.tabbable.isTabbableIndex]);function El(e,t,n,r){var o,c=dr.focus.focusable.find(n);return t&&(c=Object(p.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(p.find)(c,(function t(n,c,i){if(!dr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(dr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function Sl(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.getBlockRootClientId,f=t.getClientIdsOfDescendants,p=t.isSelectionEnabled,m=t.getBlockSelectionStart,O=t.isMultiSelecting,g=n(),v=r(),h=o();return{selectedBlockClientId:g,selectionStartClientId:v,selectionBeforeEndClientId:c(h||g),selectionAfterEndClientId:i(h||g),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),getBlockRootClientId:b,getClientIdsOfDescendants:f,isSelectionEnabled:p(),blockSelectionStart:m(),isMultiSelecting:O()}}function Cl(e){var t=e.children,n=Object(d.useRef)(),r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(),l=Object(d.useRef)(),s=Object(g.useSelect)(Sl,[]),u=s.selectedBlockClientId,b=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,v=s.selectedFirstClientId,h=s.selectedLastClientId,j=s.hasMultiSelection,k=s.blocks,y=s.isNavigationMode,_=s.isSelectionEnabled,E=s.blockSelectionStart,S=s.isMultiSelecting,C=s.getBlockRootClientId,w=s.getClientIdsOfDescendants,B=Object(g.useDispatch)("core/block-editor"),x=B.multiSelect,P=B.selectBlock,T=B.clearSelectedBlock,N=B.setNavigationMode;Object(d.useEffect)((function(){j&&!S&&c.current.focus()}),[j,S]);var R=f()("block-editor-writing-flow",{"is-navigate-mode":y});return Object(d.createElement)("div",{className:R},Object(d.createElement)(hl,{ref:r,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c}),Object(d.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,d=t===ct.UP,f=t===ct.DOWN,g=t===ct.LEFT,_=t===ct.RIGHT,E=t===ct.TAB,S=t===ct.ESCAPE,I=d||g,B=g||_,R=d||f,D=B||R,L=e.shiftKey,A=L||e.ctrlKey||e.altKey||e.metaKey,M=R?dr.isVerticalEdge:dr.isHorizontalEdge;if(y){var F,V=E&&L||d,H=E&&!L||f,z=g,U=_;if(V)F=m;else if(H)F=O;else if(z){var G;F=null!==(G=C(u))&&void 0!==G?G:u}else if(U){var K;F=null!==(K=w([u])[0])&&void 0!==K?K:u}if(H||V||z||U)if(F)e.preventDefault(),P(F);else if(E&&u){var W,q=qe(u);(W=H?dr.focus.tabbable.findNext(q):dr.focus.tabbable.findPrevious(q))&&(e.preventDefault(),W.focus(),T())}}else{if(u)if(E){var $=qe(u);if(L){if(s===$)return a.current=!0,void r.current.focus()}else{var Y=dr.focus.tabbable.find($);if(s===(Object(p.last)(Y)||$))return a.current=!0,void o.current.focus()}}else S&&N(!0);else if(j&&E&&s===c.current)return a.current=!0,void(L?r.current.focus():o.current.focus());if(R?l.current||(l.current=Object(dr.computeCaretRect)()):l.current=null,!D)return ct.isKeyboardEvent.primary(e)&&(i.current=Object(dr.isEntirelySelected)(s)),void(ct.isKeyboardEvent.primary(e,"a")&&((s.isContentEditable?i.current:Object(dr.isEntirelySelected)(s))&&(x(Object(p.first)(k),Object(p.last)(k)),e.preventDefault()),i.current=!0));if(!e.nativeEvent.defaultPrevented&&function(e,t,n){if((t===ct.UP||t===ct.DOWN)&&!n)return!0;var r=e.tagName;return"INPUT"!==r&&"TEXTAREA"!==r}(s,t,A)){var X="rtl"===yl(s).direction?!I:I;if(L)(I&&m||!I&&O)&&(j||function(e,t){var r,o,c=El(e,t,n.current);return!(c&&(r=e,o=c,r.closest(".block-editor-block-list__block")===o.closest(".block-editor-block-list__block")))}(s,I)&&M(s,I))&&(!function(e){var t=e?m:O;t&&x(b||u,t)}(I),e.preventDefault());else if(j)!function(e){var t=e?v:h;t&&P(t)}(I),e.preventDefault();else if(R&&Object(dr.isVerticalEdge)(s,I)){var Z=El(s,I,n.current,!0);Z&&(Object(dr.placeCaretAtVerticalEdge)(Z,I,l.current),e.preventDefault())}else if(B&&kl().isCollapsed&&Object(dr.isHorizontalEdge)(s,X)){var Q=El(s,X,n.current);Object(dr.placeCaretAtHorizontalEdge)(Q,X),e.preventDefault()}}}},onMouseDown:function(e){if(l.current=null,y&&u&&$e(qe(u),e.target)&&N(!1),_&&0===e.button){var t=Ye(e.target);t&&(e.shiftKey?E!==t&&(x(E,t),e.preventDefault()):j&&P(t))}}},Object(d.createElement)("div",{ref:c,tabIndex:j?"0":void 0,"aria-label":j?Object(I.__)("Multiple selected blocks"):void 0,style:{position:"fixed"}}),t),Object(d.createElement)(hl,{ref:o,selectedClientId:u,containerRef:n,noCapture:a,hasMultiSelection:j,multiSelectionContainer:c,isReverse:!0}),Object(d.createElement)("div",{"aria-hidden":!0,tabIndex:-1,onClick:function(){var e=dr.focus.focusable.find(n.current),t=Object(p.findLast)(e,_l);t&&Object(dr.placeCaretAtHorizontalEdge)(t,!0)},className:"block-editor-writing-flow__click-redirect"}))}function wl(e){var t=e.clientId;return Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlockIndex,o=n.getBlockInsertionPoint,c=n.isBlockInsertionPointVisible,i=(0,n.getBlockRootClientId)(t),a=r(t,i),l=o();return c()&&l.index===a&&l.rootClientId===i}),[t])?Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point-indicator"}):null}function Il(e){var t=e.hasMultiSelection,n=e.selectedBlockClientId,r=e.children,o=e.containerRef,c=Object(d.useState)(!1),i=Object(le.a)(c,2),a=i[0],l=i[1],s=Object(d.useState)(!1),u=Object(le.a)(s,2),b=u[0],p=u[1],m=Object(d.useState)(null),O=Object(le.a)(m,2),h=O[0],j=O[1],k=Object(d.useState)(null),y=Object(le.a)(k,2),_=y[0],E=y[1],S=Object(d.useRef)(),C=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getMultiSelectedBlockClientIds;return{isMultiSelecting:(0,t.isMultiSelecting)(),multiSelectedBlockClientIds:n()}}),[]),w=C.multiSelectedBlockClientIds,I=C.isMultiSelecting;var B=t?w.includes(_):_===n;return Object(d.createElement)(d.Fragment,null,!I&&(a||b)&&Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,anchorRef:h,position:"top right left",focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:"block-toolbar",__unstableFixedPosition:!1},Object(d.createElement)("div",{className:"block-editor-block-list__insertion-point",style:{width:h.offsetWidth}},Object(d.createElement)(wl,{clientId:_}),Object(d.createElement)("div",{ref:S,onFocus:function(){return p(!0)},onBlur:function(){return p(!1)},onClick:function(e){var t=e.clientX,n=e.clientY,r=e.target;if(r===S.current){var c=r.getBoundingClientRect(),i=n<c.top+c.height/2,a=qe(_),l=El(a,!0,i?o.current:a)||a,s=new window.DOMRect(t,n,0,16);Object(dr.placeCaretAtVerticalEdge)(l,i,s,!1)}},tabIndex:-1,className:f()("block-editor-block-list__insertion-point-inserter",{"is-inserter-hidden":B})},Object(d.createElement)(vl,{position:"bottom center",clientId:_})))),Object(d.createElement)("div",{onMouseMove:b||I?void 0:function(e){if(e.target.classList.contains("block-editor-block-list__layout")){var t=e.target.getBoundingClientRect(),n=e.clientY-t.top,r=Array.from(e.target.children).find((function(e){return e.offsetTop>n}));if(r){var o=r.id.slice("block-".length);if(o){var c=r.getBoundingClientRect();e.clientX>c.right||e.clientX<c.left?a&&l(!1):(l(!0),j(r),E(o))}}}else a&&l(!1)}},r))}var Bl=function(e){var t=e.clientId,n=e.rootClientId,r=e.moverDirection,o=Object(ke.a)(e,["clientId","rootClientId","moverDirection"]),i=Object(g.useSelect)((function(e){var r=e("core/block-editor"),o=r.__unstableGetBlockWithoutInnerBlocks,c=(0,r.getBlockIndex)(t,n),i=o(t);return{index:c,name:i.name,attributes:i.attributes}}),[t,n]),a=i.index,l=i.name,u=i.attributes,b=Object(g.useDispatch)("core/block-editor"),f=b.setNavigationMode,p=b.removeBlock,m=Object(d.useRef)();Object(d.useEffect)((function(){m.current.focus()}));var O=Object(c.getBlockType)(l),h=Object(c.__experimentalGetAccessibleBlockLabel)(O,u,a+1,r);return Object(d.createElement)("div",Object(s.a)({className:"block-editor-block-list__block-selection-button"},o),Object(d.createElement)(v.Button,{ref:m,onClick:function(){return f(!1)},onKeyDown:function(e){var n=e.keyCode;n!==ct.BACKSPACE&&n!==ct.DELETE||(p(t),e.preventDefault())},label:h},Object(d.createElement)(Hn,{clientId:t})))};function xl(e){var t,n,r,o=Object(d.useState)(!1),c=Object(le.a)(o,2),i=c[0],a=c[1],l=Object(d.useCallback)((function(){var t=dr.focus.tabbable.find(e.current);a(!t.some((function(e){return!("experimentalToolbarItem"in e.dataset)})))}),[]);return Object(d.useLayoutEffect)(l,[]),t=function(){var t=new window.MutationObserver(l);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}},n=[i],r=Object(d.useRef)(!1),Object(d.useLayoutEffect)((function(){if(r.current)return t();r.current=!0}),n),i}function Pl(e,t,n){var r=Object(d.useState)(t),o=Object(le.a)(r,1)[0],c=Object(d.useCallback)((function(){var t,n,r;t=e.current,n=dr.focus.tabbable.find(t),(r=Object(le.a)(n,1)[0])&&r.focus()}),[]);Object(l.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(d.useEffect)((function(){o&&c()}),[n,o,c])}var Tl=function(e){var t=e.children,n=e.focusOnMount,r=Object(ke.a)(e,["children","focusOnMount"]),o=Object(d.useRef)(),c=xl(o);return Pl(o,n,c),c?Object(d.createElement)(v.Toolbar,Object(s.a)({__experimentalAccessibilityLabel:r["aria-label"],ref:o},r),t):Object(d.createElement)(v.NavigableMenu,Object(s.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)};function Nl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Rl=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Nl()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).state={isFocused:!1},e.onFocus=e.onFocus.bind(Object(zt.a)(e)),e.onBlur=e.onBlur.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onFocus",value:function(){this.setState({isFocused:!0})}},{key:"onBlur",value:function(){this.setState({isFocused:!1})}},{key:"render",value:function(){var e=this.props,t=e.isFirst,n=e.isLast,r=e.clientIds,o=e.isLocked,c=e.isHidden,i=e.rootClientId,a=e.__experimentalOrientation,l=this.state.isFocused;return o||t&&n&&!i?null:Object(d.createElement)("div",{className:f()("block-editor-block-mover",{"is-visible":l||!c,"is-horizontal":"horizontal"===a})},Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.__experimentalToolbarItem,{onFocus:this.onFocus,onBlur:this.onBlur},(function(e){return Object(d.createElement)(Sr,Object(s.a)({clientIds:r},e))})),Object(d.createElement)(v.__experimentalToolbarItem,{onFocus:this.onFocus,onBlur:this.onBlur},(function(e){return Object(d.createElement)(Cr,Object(s.a)({clientIds:r},e))}))))}}]),r}(d.Component),Dl=Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockIndex,a=r.getTemplateLock,l=r.getBlockOrder,s=r.getBlockRootClientId,u=Object(p.castArray)(n),d=Object(p.first)(u),b=o(d),f=s(Object(p.first)(u)),m=i(d,f),O=0===m,g=i(Object(p.last)(u),f)===l(f).length-1;return{blockType:b?Object(c.getBlockType)(b.name):null,isLocked:"all"===a(f),rootClientId:f,firstIndex:m,isFirst:O,isLast:g}}))(Rl);function Ll(){var e=Object(g.useDispatch)("core/block-editor").selectBlock,t=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=(0,t.getBlockParents)((0,t.getSelectedBlockClientId)()),o=r[r.length-1],i=n(o);return{parentBlockType:Object(c.getBlockType)(i),firstParentClientId:o}}),[]),n=t.parentBlockType,r=t.firstParentClientId;return void 0!==r?Object(d.createElement)("div",{className:"block-editor-block-parent-selector",key:r},Object(d.createElement)(v.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:function(){return e(r)},label:Object(I.sprintf)(Object(I.__)("Select parent (%s)"),n.title),showTooltip:!0,icon:Object(d.createElement)(Tn,{icon:n.icon})})):null}var Al=n(288);function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vl(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Hl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hl(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,c=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){i=!0,o=e},f:function(){try{c||null==r.return||r.return()}finally{if(i)throw o}}}}function Hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zl(e){var t=e.genericPreviewBlock,n=e.style,r=e.isActive,o=e.onBlur,c=e.onHover,i=e.onSelect,a=e.styleClassName,l=Object(d.useMemo)((function(){return Fl({},t,{attributes:Fl({},t.attributes,{className:a})})}),[t,a]);return Object(d.createElement)("div",{key:n.name,className:f()("block-editor-block-styles__item",{"is-active":r}),onClick:function(){return i()},onKeyDown:function(e){ct.ENTER!==e.keyCode&&ct.SPACE!==e.keyCode||(e.preventDefault(),i())},onMouseEnter:c,onMouseLeave:o,role:"button",tabIndex:"0","aria-label":n.label||n.name},Object(d.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(d.createElement)(Na,{viewportWidth:500,blocks:l})),Object(d.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}var Ul=function(e){var t=e.clientId,n=e.onSwitch,r=void 0===n?p.noop:n,o=e.onHoverClassName,i=void 0===o?p.noop:o,a=Object(g.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core/blocks").getBlockStyles,o=n(t);return{block:o,type:Object(c.getBlockType)(o.name),styles:r(o.name),className:o.attributes.className||""}}),[t]),l=a.styles,s=a.block,u=a.type,b=a.className,f=Object(g.useDispatch)("core/block-editor").updateBlockAttributes,m=function(e,t){return Object(d.useMemo)((function(){return t.example?Object(c.getBlockFromExample)(e.name,{attributes:t.example.attributes,innerBlocks:t.example.innerBlocks}):Object(c.cloneBlock)(e)}),[t.example?e.name:e,t])}(s,u);if(!l||0===l.length)return null;u.styles||Object(p.find)(l,"isDefault")||l.unshift({name:"default",label:Object(I._x)("Default","block style"),isDefault:!0});var O=function(e,t){var n,r=Vl(new bt.a(t).values());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(-1!==o.indexOf("is-style-")){var c=o.substring(9),i=Object(p.find)(e,{name:c});if(i)return i}}}catch(e){r.e(e)}finally{r.f()}return Object(p.find)(e,"isDefault")}(l,b);return Object(d.createElement)("div",{className:"block-editor-block-styles"},l.map((function(e){var n=function(e,t,n){var r=new bt.a(e);return t&&r.remove("is-style-"+t.name),n.isDefault||r.add("is-style-"+n.name),r.value}(b,O,e);return Object(d.createElement)(zl,{genericPreviewBlock:m,className:b,isActive:O===e,key:e.name,onSelect:function(){f(t,{className:n}),i(null),r()},onBlur:function(){return i(null)},onHover:function(){return i(n)},style:e,styleClassName:n})})))};function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wl(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var ql={position:"bottom right",isAlternate:!0},$l=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Wl()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).state={hoveredClassName:null},e.onHoverClassName=e.onHoverClassName.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onHoverClassName",value:function(e){this.setState({hoveredClassName:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.blocks,r=t.onTransform,o=t.inserterItems,i=t.hasBlockStyles,a=this.state.hoveredClassName;if(!n||!n.length)return null;var l,s=n[0],u=Object(c.getBlockType)(s.name),b=Object(p.mapKeys)(o,(function(e){return e.name})),f=Object(p.orderBy)(Object(p.filter)(Object(c.getPossibleBlockTransformations)(n),(function(e){return e&&!!b[e.name]})),(function(e){return b[e.name].frecency}),"desc");if(1===Object(p.uniq)(Object(p.map)(n,"name")).length){var m=n[0].name,O=Object(c.getBlockType)(m);l=O.icon}else l=Al.a;return i||f.length?Object(d.createElement)(v.Dropdown,{popoverProps:ql,className:"block-editor-block-switcher",contentClassName:"block-editor-block-switcher__popover",renderToggle:function(e){var t=e.onToggle,r=e.isOpen,o=1===n.length?Object(I.__)("Change block type or style"):Object(I.sprintf)(Object(I._n)("Change type of %d block","Change type of %d blocks",n.length),n.length);return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{className:"block-editor-block-switcher__toggle",onClick:t,"aria-haspopup":"true","aria-expanded":r,title:o,onKeyDown:function(e){r||e.keyCode!==ct.DOWN||(e.preventDefault(),e.stopPropagation(),t())},showTooltip:!0,icon:Object(d.createElement)(Tn,{icon:l,showColors:!0})}))},renderContent:function(t){var o=t.onClose;return Object(d.createElement)(d.Fragment,null,(i||0!==f.length)&&Object(d.createElement)("div",{className:"block-editor-block-switcher__container"},i&&Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(I.__)("Styles")),Object(d.createElement)(Ul,{clientId:n[0].clientId,onSwitch:o,onHoverClassName:e.onHoverClassName})),0!==f.length&&Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)("div",{className:"block-editor-block-switcher__label"},Object(I.__)("Transform to")),Object(d.createElement)(za,{items:f.map((function(e){return{id:e.name,icon:e.icon,title:e.title}})),onSelect:function(e){r(n,e.id),o()}}))),null!==a&&Object(d.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(d.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(I.__)("Preview")),Object(d.createElement)(Na,{viewportWidth:500,blocks:u.example?Object(c.getBlockFromExample)(s.name,{attributes:Kl({},u.example.attributes,{className:a}),innerBlocks:u.example.innerBlocks}):Object(c.cloneBlock)(s,{className:a})})))}}):Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:Object(I.__)("Block icon"),icon:Object(d.createElement)(Tn,{icon:l,showColors:!0})}))}}]),r}(d.Component),Yl=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientIds,r=e("core/block-editor"),o=r.getBlocksByClientId,c=r.getBlockRootClientId,i=r.getInserterItems,a=e("core/blocks").getBlockStyles,l=c(Object(p.first)(Object(p.castArray)(n))),s=o(n),u=s&&1===s.length?s[0]:null,d=u&&a(u.name);return{blocks:s,inserterItems:i(l),hasBlockStyles:d&&d.length>0}})),Object(g.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))($l),Xl=n(44);function Zl(){var e=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(g.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(g.useDispatch)("core/notices").createSuccessNotice;return Object(d.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(I.sprintf)(Object(I.__)('Copied "%s" to clipboard.'),a):Object(I.sprintf)(Object(I.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(I.sprintf)(Object(I.__)("Copied %d blocks to clipboard."),o.length):Object(I.sprintf)(Object(I.__)("Moved %d blocks to clipboard."),o.length);n(c,{type:"snackbar"})}),[])}var Ql=function(e){var t=e.children,n=Object(d.useRef)(),r=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(g.useDispatch)("core/block-editor"),u=s.flashBlock,b=s.removeBlocks,f=s.replaceBlocks,m=Zl(),O=l().__experimentalCanUserUseUnfilteredHTML,v=function(e){var t=i();if(0!==t.length){if(!a())if("copy"===e.type||"cut"===e.type?Object(dr.documentHasUncollapsedSelection)():Object(dr.documentHasSelection)())return;if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&u(t[0]),m(e.type,t);var r=o(t),l=Object(c.serialize)(r);e.clipboardData.setData("text/plain",l),e.clipboardData.setData("text/html",l)}if("cut"===e.type)b(t);else if("paste"===e.type){var s=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(p.isNil)(n)?[]:n,r=Object(p.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(p.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'<img src="'.concat(Object(Xl.createBlobURL)(e),'">')})).join(""),o=""),{html:c,plainText:o}}(e),d=s.plainText,g=s.html,v=Object(c.pasteHandler)({HTML:g,plainText:d,mode:"BLOCKS",canUserUseUnfilteredHTML:O});f(t,v,v.length-1,-1)}}}};return Object(d.createElement)("div",{ref:n,onCopy:v,onCut:v,onPaste:v},t)};function Jl(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(g.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(g.useSelect)((function(e){return e("core/blocks")})),d=u.getDefaultBlockName,b=u.getGroupingBlockName,f=l(t),m=a(t[0]),O=Object(p.every)(f,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),v=i(d(),m),h=Object(g.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,S=h.flashBlock,C=Zl();return n({canDuplicate:O,canInsertDefaultBlock:v,isLocked:!!s(m),rootClientId:m,blocks:f,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(p.first)(Object(p.castArray)(t)))},onInsertAfter:function(){_(Object(p.last)(Object(p.castArray)(t)))},onGroup:function(){if(f.length){var e=b(),n=Object(c.switchToBlockType)(f,e);n&&k(t,n)}},onUngroup:function(){if(f.length){var e=f[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=f.map((function(e){return e.clientId}));1===f.length&&S(e[0]),C("copy",e)}})}var es=Object(m.compose)([Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(g.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?p.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(I.__)("Edit as HTML"):Object(I.__)("Edit visually");return Object(d.createElement)(v.MenuItem,{onClick:r},!i&&s)}));function ts(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(I.__)("Convert to Blocks");return Object(d.createElement)(v.MenuItem,{onClick:n},!r&&o)}var ns=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))(ts),rs=Object(m.compose)(Object(g.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&r.name===Object(c.getFreeformContentHandlerName)()}})),Object(g.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.serialize)(n)}))}}})))(ts),os=Object(v.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),cs=os.Fill,is=os.Slot;cs.Slot=is;var as=cs;function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var us=Object(v.createSlotFill)("BlockSettingsMenuControls"),ds=us.Fill,bs=us.Slot;ds.Slot=function(e){var t=e.fillProps,n=e.clientIds,r=void 0===n?null:n,o=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlocksByClientId,o=t.getSelectedBlockClientIds,c=null!==r?r:o();return{selectedBlocks:Object(p.map)(n(c),(function(e){return e.name}))}}),[]).selectedBlocks;return Object(d.createElement)(bs,{fillProps:ss({},t,{selectedBlocks:o})},(function(e){return!Object(p.isEmpty)(e)&&Object(d.createElement)(v.MenuGroup,null,e)}))};var fs=ds,ps={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};var ms=function(e){var t=e.clientIds,n=e.__experimentalSelectBlock,r=e.children,o=Object(ke.a)(e,["clientIds","__experimentalSelectBlock","children"]),i=Object(p.castArray)(t),a=i.length,l=i[0],u=Object(g.useSelect)((function(e){var t=e("core/keyboard-shortcuts").getShortcutRepresentation;return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),b=Object(d.useCallback)(n?function(){var e=Object(lr.a)(ar.a.mark((function e(t){var r;return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:(r=e.sent)&&r[0]&&n(r[0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():p.noop,[n]);return Object(d.createElement)(Jl,{clientIds:t,__experimentalUpdateSelection:!n},(function(e){var n=e.canDuplicate,i=e.canInsertDefaultBlock,f=e.isLocked,m=e.onDuplicate,O=e.onInsertAfter,g=e.onInsertBefore,h=e.onRemove,j=e.onCopy,k=e.blocks;return Object(d.createElement)(v.DropdownMenu,Object(s.a)({icon:xr,label:Object(I.__)("More options"),className:"block-editor-block-settings-menu",popoverProps:ps,noIcons:!0},o),(function(e){var o=e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(as.Slot,{fillProps:{onClose:o}}),1===a&&Object(d.createElement)(rs,{clientId:l}),1===a&&Object(d.createElement)(ns,{clientId:l}),Object(d.createElement)(v.ClipboardButton,{text:function(){return Object(c.serialize)(k)},role:"menuitem",className:"components-menu-item__button",onCopy:j},Object(I.__)("Copy")),n&&Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(o,m,b),shortcut:u.duplicate},Object(I.__)("Duplicate")),i&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(o,g),shortcut:u.insertBefore},Object(I.__)("Insert Before")),Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(o,O),shortcut:u.insertAfter},Object(I.__)("Insert After"))),1===a&&Object(d.createElement)(es,{clientId:l,onToggle:o})),Object(d.createElement)(fs.Slot,{fillProps:{onClose:o},clientIds:t}),"function"==typeof r?r({onClose:o}):d.Children.map((function(e){return Object(d.cloneElement)(e,{onClose:o})})),Object(d.createElement)(v.MenuGroup,null,!f&&Object(d.createElement)(v.MenuItem,{onClick:Object(p.flow)(o,h,b),shortcut:u.remove},Object(I._n)("Remove Block","Remove Blocks",a))))}))}))};var Os,gs=function(e){var t=e.clientIds,n=Object(ke.a)(e,["clientIds"]);return Object(d.createElement)(v.ToolbarGroup,null,Object(d.createElement)(v.__experimentalToolbarItem,null,(function(e){return Object(d.createElement)(ms,Object(s.a)({clientIds:t,toggleProps:e},n))})))},vs=function(e){var t=e.children,n=e.clientIds,r=e.cloneClassname,o=Object(g.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockIndex,o=t.getBlockRootClientId,c=t.getTemplateLock,i=1===n.length?o(n[0]):null,a=i?c(i):null;return{index:r(n[0],i),srcRootClientId:i,isDraggable:1===n.length&&"all"!==a}}),[n]),c=o.srcRootClientId,i=o.index,a=o.isDraggable,l=Object(d.useRef)(!1),s=Object(g.useDispatch)("core/block-editor"),u=s.startDraggingBlocks,b=s.stopDraggingBlocks;if(Object(d.useEffect)((function(){return function(){l.current&&b()}}),[]),!a)return t({isDraggable:!1});var f="block-".concat(n[0]),p={type:"block",srcIndex:i,srcClientId:n[0],srcRootClientId:c};return Object(d.createElement)(v.Draggable,{cloneClassname:r,elementId:f,transferData:p,onDragStart:function(){u(),l.current=!0},onDragEnd:function(){b(),l.current=!1}},(function(e){var n=e.onDraggableStart,r=e.onDraggableEnd;return t({isDraggable:!0,onDraggableStart:n,onDraggableEnd:r})}))},hs=window,js=hs.clearTimeout,ks=hs.requestAnimationFrame,ys=hs.cancelAnimationFrame,_s=hs.setTimeout;function Es(e){var t=e.ref,n=e.isFocused,r=e.debounceTimeout,o=void 0===r?250:r,c=e.onChange,i=void 0===c?p.noop:c,a=Object(d.useState)(!1),l=Object(le.a)(a,2),s=l[0],u=l[1],b=Object(d.useRef)(),f=function(e){u(e),i(e)},m=function(){var e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e},O=function(){var e=b.current;e&&js&&js(e)};return Object(d.useEffect)((function(){return function(){return O()}}),[]),{showMovers:s,debouncedShowMovers:function(e){e&&e.stopPropagation(),O(),s||f(!0)},debouncedHideMovers:function(e){e&&e.stopPropagation(),O(),b.current=_s((function(){m()&&f(!1)}),o)}}}function Ss(e){var t=e.hideDragHandle,n=Object(g.useSelect)((function(e){var t=e("core/blocks").getBlockType,n=e("core/block-editor"),r=n.getBlockName,o=n.getBlockMode,c=n.getSelectedBlockClientIds,i=n.isBlockValid,a=n.getBlockRootClientId,l=n.getBlockListSettings,s=n.getSettings,u=c(),d=u[0],b=a(d),f=(l(b)||{}).__experimentalMoverDirection;return{blockClientIds:u,blockClientId:d,blockType:d&&t(r(d)),hasFixedToolbar:s().hasFixedToolbar,rootClientId:b,isValid:u.every((function(e){return i(e)})),isVisual:u.every((function(e){return"visual"===o(e)})),moverDirection:f}}),[]),r=n.blockClientIds,o=n.blockClientId,i=n.blockType,a=n.hasFixedToolbar,l=n.isValid,u=n.isVisual,b=n.moverDirection,O=function(e){var t=Object(g.useDispatch)("core/block-editor").toggleBlockHighlight,n=Object(d.useCallback)((function(n){t(e,n)}),[e]);return Object(d.useEffect)((function(){return Os&&ys(Os),function(){Os=ks((function(){n(!1)}))}}),[]),n}(o),v=Object(d.useRef)(),h=function(e){var t=e.ref,n=e.debounceTimeout,r=void 0===n?250:n,o=e.onChange,c=void 0===o?p.noop:o,i=Object(d.useState)(!1),a=Object(le.a)(i,2),l=a[0],s=a[1],u=Es({ref:t,debounceTimeout:r,isFocused:l,onChange:c}),b=u.showMovers,f=u.debouncedShowMovers,m=u.debouncedHideMovers,O=Object(d.useRef)(!1),g=function(){return(null==t?void 0:t.current)&&t.current.contains(document.activeElement)};return Object(d.useEffect)((function(){var e=t.current,n=function(){g()&&(s(!0),f())},r=function(){g()||(s(!1),m())};return e&&!O.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",r,!0),O.current=!0),function(){e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",r))}}),[t,O,s,f,m]),{showMovers:b,gestures:{onMouseMove:f,onMouseLeave:m}}}({ref:v,onChange:O}),j=h.showMovers,k=h.gestures,y=Object(m.useViewportMatch)("medium","<")||a;if(i&&!Object(c.hasBlockSupport)(i,"__experimentalToolbar",!0))return null;var _=y||j;if(0===r.length)return null;var E=l&&u,S=r.length>1,C=f()("block-editor-block-toolbar",_&&"is-showing-movers");return Object(d.createElement)("div",{className:C},Object(d.createElement)("div",{className:"block-editor-block-toolbar__mover-switcher-container",ref:v},!S&&Object(d.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(d.createElement)(Ll,{clientIds:r})),(E||S)&&Object(d.createElement)(vs,{clientIds:r,cloneClassname:"block-editor-block-toolbar__drag-clone"},(function(e){var n=e.isDraggable,o=e.onDraggableStart,c=e.onDraggableEnd;return Object(d.createElement)("div",Object(s.a)({},k,{className:"block-editor-block-toolbar__block-switcher-wrapper",draggable:n&&!t,onDragStart:o,onDragEnd:c}),Object(d.createElement)(Yl,{clientIds:r}),Object(d.createElement)(Dl,{clientIds:r,__experimentalOrientation:b}))}))),E&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(w.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(d.createElement)(cr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(d.createElement)(gs,{clientIds:r}))}var Cs=function(e){var t=e.focusOnMount,n=Object(ke.a)(e,["focusOnMount"]),r=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}})).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(d.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(d.createElement)(Tl,Object(s.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(I.__)("Block tools")},n),Object(d.createElement)(Ss,null)))};function ws(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function Is(e){var t=e.clientId,n=e.rootClientId,r=e.align,o=e.isValid,c=e.moverDirection,i=e.isEmptyDefaultBlock,a=e.capturingClientId,s=Object(g.useSelect)(ws,[]),u=s.isNavigationMode,b=s.isMultiSelecting,p=s.isTyping,O=s.isCaretWithinFormattedText,h=s.hasMultiSelection,j=s.hasFixedToolbar,k=s.lastClientId,y=Object(m.useViewportMatch)("medium"),_=Object(d.useState)(!1),E=Object(le.a)(_,2),S=E[0],C=E[1],w=Object(d.useState)(!1),I=Object(le.a)(w,2),B=I[0],x=I[1],P=Object(d.useContext)(Ts),T=!u&&i&&o,N=u,R=!u&&!j&&y&&!T&&!b&&(!p||O),D=!(u||R||j||i);if(Object(l.useShortcut)("core/block-editor/focus-toolbar",Object(d.useCallback)((function(){return C(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!D}),!(N||R||S||T))return null;var L=P[t];if(a&&(L=document.getElementById("block-"+a)),!L)return null;var A=L;if(h){var M=P[k];if(!M)return null;A={top:L,bottom:M}}var F=T?"top left right":"top right left";return Object(d.createElement)(v.Popover,{noArrow:!0,animate:!1,position:F,focusOnMount:!1,anchorRef:A,className:"block-editor-block-list__block-popover",__unstableSticky:!T,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableAllowVerticalSubpixelPosition:"horizontal"!==c&&L,__unstableAllowHorizontalSubpixelPosition:"horizontal"===c&&L,onBlur:function(){return C(!1)},shouldAnchorIncludePadding:!0,key:R},(R||S)&&Object(d.createElement)("div",{onFocus:function(){x(!0)},onBlur:function(){x(!1)},tabIndex:-1,className:f()("block-editor-block-list__block-popover-inserter",{"is-visible":B})},Object(d.createElement)(vl,{clientId:t,rootClientId:n})),(R||S)&&Object(d.createElement)(Cs,{focusOnMount:S,"data-align":r}),N&&Object(d.createElement)(Bl,{clientId:t,rootClientId:n,moverDirection:c,"data-align":r}),T&&Object(d.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(d.createElement)(vl,{position:"top right",rootClientId:n,clientId:t})))}function Bs(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.getBlockListSettings,s=t.__experimentalGetBlockListSettingsForBlocks,u=n()||r();if(u){var d,b=o(u),f=i(u)||{},m=f.name,O=f.attributes,g=void 0===O?{}:O,v=f.isValid,h=a(u),j=(l(b)||{}).__experimentalMoverDirection,k=s(h),y=Object(p.findIndex)(k,["__experimentalCaptureToolbars",!0]);return-1!==y&&(d=h[y]),{clientId:u,rootClientId:o(u),name:m,align:g.align,isValid:v,moverDirection:j,isEmptyDefaultBlock:m&&Object(c.isUnmodifiedDefaultBlock)({name:m,attributes:g}),capturingClientId:d}}}function xs(){var e=Object(g.useSelect)(Bs,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.align,c=e.isValid,i=e.moverDirection,a=e.isEmptyDefaultBlock,l=e.capturingClientId;return r?Object(d.createElement)(Is,{clientId:t,rootClientId:n,align:o,isValid:c,moverDirection:i,isEmptyDefaultBlock:a,capturingClientId:l}):null}var Ps=Object(d.createContext)(),Ts=Object(d.createContext)(),Ns=Object(d.createContext)();function Rs(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function Ds(e){Ye(e.target)&&e.preventDefault()}var Ls=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(g.useSelect)(Rs,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(g.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(g.useSelect)(qr,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(g.useDispatch)("core/block-editor"),s=l.startMultiSelect,u=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(d.useRef)(),m=Object(d.useRef)(),O=Object(d.useRef)();Object(d.useEffect)((function(){if(c&&!r){var e=o.length;if(!(e<2)){var t=o[0],n=o[e-1],i=qe(t),l=qe(n),s=window.getSelection(),u=document.createRange();i=Wr(i,"start"),l=Wr(l,"end"),u.setStartBefore(i),u.setEndAfter(l),s.removeAllRanges(),s.addRange(u)}}else{if(!a||r)return;var d=window.getSelection();if(d.rangeCount&&!d.isCollapsed){var b=qe(a),f=d.getRangeAt(0),p=f.startContainer,m=f.endContainer;!b||b.contains(p)&&b.contains(m)||d.removeAllRanges()}}}),[c,r,o,f,a]);var v=Object(d.useCallback)((function(t){var n=t.isSelectionEnd,r=window.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&($r(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ae.a)(i(m.current)),[m.current]),l=[].concat(Object(ae.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else $r(e.current,!0)}),[f,i,b]),h=Object(d.useCallback)((function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),p.current=window.requestAnimationFrame((function(){v({isSelectionEnd:!0}),u()}))}),[v,u]);return Object(d.useEffect)((function(){return function(){document.removeEventListener("selectionchange",v),window.removeEventListener("mouseup",h),window.cancelAnimationFrame(p.current)}}),[v,h]),Object(d.useCallback)((function(t){n&&(m.current=t,O.current=document.activeElement,s(),document.addEventListener("selectionchange",v),window.addEventListener("mouseup",h),$r(e.current,!1))}),[n,s,h])}(t),s=Object(d.useState)({}),u=Object(le.a)(s,2),b=u[0],p=u[1];return Object(d.createElement)(Il,{hasMultiSelection:i,selectedBlockClientId:c,containerRef:t},Object(d.createElement)(Ts.Provider,{value:b},Object(d.createElement)(xs,null),Object(d.createElement)("div",{ref:t,className:f()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:Ds},Object(d.createElement)(Ns.Provider,{value:p},Object(d.createElement)(Ps.Provider,{value:l},n)))))})),As=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vs=Object(d.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=e.__unstableIsHtml,i=Object(ke.a)(e,["children","tagName","__unstableIsHtml"]),a=Object(d.useContext)(Ps),l=Object(d.useContext)(Ns),b=Object(d.useContext)(Us),m=b.clientId,O=b.rootClientId,v=b.isSelected,h=b.isFirstMultiSelected,j=b.isLastMultiSelected,k=b.isPartOfMultiSelection,y=b.enableAnimation,_=b.index,E=b.className,S=b.isLocked,C=b.name,w=b.mode,B=b.blockTitle,x=b.wrapperProps,P=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:v&&!r()&&!o(),initialPosition:v?n():void 0}}),[v]),T=P.initialPosition,N=P.shouldFocusFirstElement,R=P.isNavigationMode,D=Object(g.useDispatch)("core/block-editor"),L=D.removeBlock,A=D.insertDefaultBlock,M=Object(d.useRef)(),F=x&&!!x["data-align"];t=t||M;var V=Object(d.useState)(!1),H=Object(le.a)(V,2),z=H[0],U=H[1];Object(d.useEffect)((function(){if(v||h||j){var e=t.current;return l((function(t){return Fs({},t,Object(u.a)({},m,e))})),function(){l((function(e){return Object(p.omit)(e,m)}))}}}),[v,h,j]);var G=Object(I.sprintf)(Object(I.__)("Block: %s"),B);Object(d.useEffect)((function(){N&&function(){if(!document.activeElement||!$e(t.current,document.activeElement)){var e=dr.focus.tabbable.find(t.current).filter(dr.isTextField).filter((function(e){return $e(t.current,e)&&!e.closest(".block-list-appender")})),n=-1===T,r=(n?p.last:p.first)(e)||t.current;Object(dr.placeCaretAtHorizontalEdge)(r,n)}}()}),[N]),pr(t,v||k,v||h,y,_);var K="html"!==w||c?"":"-visual",W="block-".concat(m).concat(K);return Object(d.createElement)(o,Object(s.a)({"aria-label":G,role:"group"},Object(p.omit)(x,["data-align"]),i,{id:W,ref:t,className:f()(E,i.className,x&&x.className,{"is-hovered":z,"wp-block":!F}),"data-block":m,"data-type":C,"data-title":B,onKeyDown:v&&!S?function(e){var n=e.keyCode,r=e.target;i.onKeyDown&&i.onKeyDown(e),n!==ct.ENTER&&n!==ct.BACKSPACE&&n!==ct.DELETE||r!==t.current||Object(dr.isTextField)(r)||(e.preventDefault(),n===ct.ENTER?A({},O,_+1):L(m))}:void 0,onMouseLeave:v?function(e){var t=e.which;1===(e.buttons||t)&&a(m)}:void 0,onMouseOver:R?function(e){e.defaultPrevented||(e.preventDefault(),z||U(!0))}:void 0,onMouseOut:R?function(e){e.defaultPrevented||(e.preventDefault(),z&&U(!1))}:void 0,tabIndex:"0",style:Fs({},x?x.style:{},{},i.style||{})}),n)})),Hs=As.reduce((function(e,t){return e[t]=Object(d.forwardRef)((function(e,n){return Object(d.createElement)(Vs,Object(s.a)({},e,{ref:n,tagName:t}))})),e}),Vs);function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Us=Object(d.createContext)();var Gs=Object(g.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=t.isLargeViewport,c=e("core/block-editor"),i=c.isBlockSelected,a=c.isAncestorMultiSelected,l=c.isBlockMultiSelected,s=c.isFirstMultiSelectedBlock,u=c.getLastMultiSelectedBlockClientId,d=c.isTyping,b=c.getBlockMode,f=c.isSelectionEnabled,p=c.getSettings,m=c.hasSelectedInnerBlock,O=c.getTemplateLock,g=c.__unstableGetBlockWithoutInnerBlocks,v=c.getMultiSelectedBlockClientIds,h=g(n),j=i(n),k=p(),y=k.focusMode,_=k.isRTL,E=O(r),S=m(n,!0),C=h||{},w=C.name,I=C.attributes,B=C.isValid,x=s(n);return{isMultiSelected:l(n),isPartOfMultiSelection:l(n)||a(n),isFirstMultiSelected:x,isLastMultiSelected:u()===n,multiSelectedClientIds:x?v():void 0,isTypingWithinBlock:(j||S)&&d(),mode:b(n),isSelectionEnabled:f(),isLocked:!!E,isFocusMode:y&&o,isRTL:_,block:h,name:w,attributes:I,isValid:B,isSelected:j,isAncestorOfSelectedBlock:S}})),Ks=Object(g.withDispatch)((function(e,t,n){var r=n.select,o=e("core/block-editor"),i=o.updateBlockAttributes,a=o.insertBlocks,l=o.mergeBlocks,s=o.replaceBlocks,u=o.toggleSelection,d=o.__unstableMarkLastChangeAsPersistent;return{setAttributes:function(e){var n=t.clientId,r=t.isFirstMultiSelected,o=t.multiSelectedClientIds;i(r?o:[n],e)},onInsertBlocks:function(e,n){var r=t.rootClientId;a(e,n,r)},onInsertBlocksAfter:function(e){var n=t.clientId,o=t.rootClientId,c=(0,r("core/block-editor").getBlockIndex)(n,o);a(e,c+1,o)},onMerge:function(e){var n=t.clientId,o=r("core/block-editor"),c=o.getPreviousBlockClientId,i=o.getNextBlockClientId;if(e){var a=i(n);a&&l(n,a)}else{var s=c(n);s&&l(s,n)}},onReplace:function(e,n,r){e.length&&!Object(c.isUnmodifiedDefaultBlock)(e[e.length-1])&&d(),s([t.clientId],e,n,r)},toggleSelection:function(e){u(e)}}})),Ws=Object(m.compose)(m.pure,Object(a.withViewportMatch)({isLargeViewport:"medium"}),Gs,Ks,Object(m.ifCondition)((function(e){return!!e.block})),Object(v.withFilters)("editor.BlockListBlock"))((function(e){var t=e.mode,n=e.isFocusMode,r=e.isLocked,o=e.clientId,i=e.rootClientId,a=e.isSelected,l=e.isMultiSelected,b=e.isPartOfMultiSelection,p=e.isFirstMultiSelected,m=e.isLastMultiSelected,O=e.isTypingWithinBlock,v=e.isAncestorOfSelectedBlock,h=e.isSelectionEnabled,j=e.className,k=e.name,y=e.isValid,_=e.attributes,E=e.wrapperProps,S=e.setAttributes,C=e.onReplace,w=e.onInsertBlocksAfter,I=e.onMerge,B=e.toggleSelection,x=e.index,P=e.enableAnimation,T=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.isDraggingBlocks,r=t.isBlockHighlighted;return{isDragging:n(),isHighlighted:r(o)}}),[]),N=T.isDragging,R=T.isHighlighted,D=Object(g.useDispatch)("core/block-editor").removeBlock,L=Object(d.useState)(!1),A=Object(le.a)(L,2),M=A[0],F=A[1],V=Object(c.getBlockType)(k),H=Object(c.hasBlockSupport)(V,"lightBlockWrapper",!1),z=k===Object(c.getUnregisteredTypeHandlerName)();V.getEditWrapperProps&&(E=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},E,{},V.getEditWrapperProps(_)));var U=H&&Object(c.hasBlockSupport)(V,"className",!0)?Object(c.getBlockDefaultClassName)(k):null,G=H?_.className:null,K=E&&!!E["data-align"],W=f()(U,G,"block-editor-block-list__block",{"wp-block":!K,"has-warning":!y||!!M||z,"is-selected":a,"is-highlighted":R,"is-multi-selected":l,"is-reusable":Object(c.isReusableBlock)(V),"is-dragging":N&&(a||b),"is-typing":O,"is-focused":n&&(a||v),"is-focus-mode":n,"has-child-selected":v},j),q=Object(d.createElement)(er,{name:k,isSelected:a,attributes:_,setAttributes:S,insertBlocksAfter:r?void 0:w,onReplace:r?void 0:C,onRemove:r?void 0:function(){return D(o)},mergeBlocks:r?void 0:I,clientId:o,isSelectionEnabled:h,toggleSelection:B});if(K){var $={"data-align":E["data-align"]};q=Object(d.createElement)("div",Object(s.a)({className:"wp-block"},$),q)}"visual"!==t&&(q=Object(d.createElement)("div",{style:{display:"none"}},q));var Y={clientId:o,rootClientId:i,isSelected:a,isFirstMultiSelected:p,isLastMultiSelected:m,isPartOfMultiSelection:b,enableAnimation:P,index:x,className:W,isLocked:r,name:k,mode:t,blockTitle:V.title,wrapperProps:E},X=Object(d.useMemo)((function(){return Y}),Object.values(Y));return Object(d.createElement)(Us.Provider,{value:X},Object(d.createElement)(zr,{onError:function(){return F(!0)}},y&&H&&Object(d.createElement)(d.Fragment,null,q,"html"===t&&Object(d.createElement)(Hs.div,{__unstableIsHtml:!0},Object(d.createElement)(Kr,{clientId:o}))),y&&!H&&Object(d.createElement)(Hs.div,E,q,"html"===t&&Object(d.createElement)(Kr,{clientId:o})),!y&&Object(d.createElement)(Hs.div,null,Object(d.createElement)(Mr,{clientId:o}),Object(d.createElement)("div",null,Object(c.getSaveElement)(V,_)))),!!M&&Object(d.createElement)(Hs.div,null,Object(d.createElement)(Vr,null)))})),qs=function(e,t,n){return Object(I.sprintf)(Object(I.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var $s=Object(d.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingCount,u=t.level,b=t.tabIndex,p=t.onFocus,O=o.name,g=o.attributes,h=Object(c.getBlockType)(O),j=Object(c.__experimentalGetBlockLabel)(h,g),k=Object(m.useInstanceId)(e),y="block-navigation-block-select-button__".concat(k),_=qs(l,s,u);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{className:f()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":y,ref:n,tabIndex:b,onFocus:p},Object(d.createElement)(Tn,{icon:h.icon,showColors:!0}),j,i&&Object(d.createElement)(v.VisuallyHidden,null,Object(I.__)("(selected block)"))),Object(d.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:y},_))}));function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Xs=function(e){return"BlockNavigationBlock-".concat(e)};var Zs=Object(d.forwardRef)((function e(t,n){var r=Object(m.useInstanceId)(e),o=t.block.clientId;return Object(d.createElement)(v.Slot,{name:Xs(o)},(function(e){if(!e.length)return Object(d.createElement)($s,Object(s.a)({ref:n},t));var o=t.className,i=t.block,a=t.isSelected,l=t.position,b=t.siblingCount,p=t.level,m=t.tabIndex,O=t.onFocus,g=i.name,h=Object(c.getBlockType)(g),j="block-navigation-block-slot__".concat(r),k=qs(l,b,p),y={tabIndex:m,onFocus:O,ref:n,"aria-describedby":j};return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{className:f()("block-editor-block-navigation-block-slot",o)},Object(d.createElement)(Tn,{icon:h.icon,showColors:!0}),d.Children.map(e,(function(e){return Object(d.cloneElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props,{},y))})),a&&Object(d.createElement)(v.VisuallyHidden,null,Object(I.__)("(selected block)")),Object(d.createElement)("div",{className:"block-editor-block-navigation-block-slot__description",id:j},k)))}))})),Qs=function(e){var t=Object(d.useContext)(Us).clientId;return Object(d.createElement)(v.Fill,Object(s.a)({},e,{name:Xs(t)}))},Js=Object(d.forwardRef)((function(e,t){var n=e.onClick,r=e.block,o=e.isSelected,c=e.position,i=e.siblingCount,a=e.level,l=Object(ke.a)(e,["onClick","block","isSelected","position","siblingCount","level"]);return Br().__experimentalFeatures?Object(d.createElement)(Zs,Object(s.a)({ref:t,className:"block-editor-block-navigation-block-contents",block:r,onClick:n,isSelected:o,position:c,siblingCount:i,level:a},l)):Object(d.createElement)($s,Object(s.a)({ref:t,className:"block-editor-block-navigation-block-contents",block:r,onClick:n,isSelected:o,position:c,siblingCount:i,level:a},l))}));function eu(e){var t=e.block,n=e.isSelected,r=e.onClick,o=e.position,c=e.level,i=e.rowCount,a=e.showBlockMovers,l=e.terminatedLevels,s=e.path,u=Object(d.useRef)(null),b=Object(d.useState)(!1),p=Object(le.a)(b,2),m=p[0],O=p[1],h=Object(d.useState)(!1),j=Object(le.a)(h,2),k=j[0],y=j[1],_=Object(g.useDispatch)("core/block-editor").selectBlock,E=t.clientId,S=i-1,C=a&&S>1,w=m||k,B=f()("block-editor-block-navigation-block__mover-cell",{"is-visible":w}),x=Br().__experimentalFeatures,P=f()("block-editor-block-navigation-block__menu-cell",{"is-visible":w});return Object(d.useEffect)((function(){x&&n&&u.current.focus()}),[x,n]),Object(d.createElement)(Or,{className:f()({"is-selected":n}),onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},level:c,position:o,rowCount:i,path:s},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:C?void 0:2,ref:u},(function(e){var a=e.ref,s=e.tabIndex,u=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(d.createElement)(wr,{level:c,isLastRow:o===i,terminatedLevels:l}),Object(d.createElement)(Js,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingCount:S,level:c,ref:a,tabIndex:s,onFocus:u}))})),C&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(d.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Sr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})),Object(d.createElement)(v.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(d.createElement)(Cr,{__experimentalOrientation:"vertical",clientIds:[E],ref:t,tabIndex:n,onFocus:r})})))),x&&Object(d.createElement)(v.__experimentalTreeGridCell,{className:P},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(d.createElement)(ms,{clientIds:[E],icon:sr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(v.MenuItem,{onClick:Object(lr.a)(ar.a.mark((function e(){return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(null);case 2:return e.next=4,_(E);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(I.__)("Go to block")))}))})))}function tu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(m.useInstanceId)(tu),l="block-navigation-appender-row__description_".concat(a),s=Object(I.sprintf)(Object(I.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(d.createElement)(Or,{level:r,position:n,rowCount:o,path:i},Object(d.createElement)(v.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,u=e.onFocus;return Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(d.createElement)(wr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(d.createElement)(vl,{rootClientId:t,__experimentalSelectBlockOnInsert:!1,"aria-describedby":l,toggleProps:{ref:i,tabIndex:a,onFocus:u}}),Object(d.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:l},s))})))}function nu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,u=e.terminatedLevels,b=void 0===u?[]:u,f=e.path,m=void 0===f?[]:f,O=!a,g=Object(p.compact)(t),v=function(e){return o&&!O&&r===e},h=v(a),j=h?g.length+1:g.length,k=j;return Object(d.createElement)(d.Fragment,null,Object(p.map)(g,(function(e,t){var a=e.clientId,l=e.innerBlocks,u=t+1,f=j===u?[].concat(Object(ae.a)(b),[s]):b,p=[].concat(Object(ae.a)(m),[u]),O=i&&!!l&&!!l.length,g=v(a);return Object(d.createElement)(d.Fragment,{key:a},Object(d.createElement)(eu,{block:e,onClick:n,isSelected:r===a,level:s,position:u,rowCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(O||g)&&Object(d.createElement)(nu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(d.createElement)(tu,{parentBlockClientId:a,position:j,rowCount:k,level:s,terminatedLevels:b,path:[].concat(Object(ae.a)(m),[k])}))}function ru(e){var t=e.__experimentalFeatures,n=Object(ke.a)(e,["__experimentalFeatures"]),r=Object(d.useMemo)((function(){return{__experimentalFeatures:t}}),[t]);return Object(d.createElement)(v.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(I.__)("Block navigation structure")},Object(d.createElement)(Ir.Provider,{value:r},Object(d.createElement)(nu,n)))}nu.defaultProps={selectBlock:function(){}};var ou=Object(m.compose)(Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.getBlock,c=t.getBlocks,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(g.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?p.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(d.createElement)("div",{className:"block-editor-block-navigation__container"},Object(d.createElement)("p",{className:"block-editor-block-navigation__label"},Object(I.__)("Block navigation")),i&&Object(d.createElement)(ru,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(d.createElement)(ru,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),cu=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(d.createElement)(v.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function iu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(ke.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(l.useShortcut)("core/edit-post/toggle-block-navigation",Object(d.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(g.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(d.createElement)(v.Button,Object(s.a)({},c,{ref:o,icon:cu,"aria-expanded":r,onClick:t?n:void 0,label:Object(I.__)("Block navigation"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var au=Object(d.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(ke.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(g.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(d.createElement)(v.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(d.createElement)(iu,Object(s.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(d.createElement)(ou,{onSelect:t,__experimentalFeatures:r})}})})),lu=n(117),su=[ct.rawShortcut.primary("z"),ct.rawShortcut.primaryShift("z"),ct.rawShortcut.primary("y")],uu=Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(p.fromPairs)(su.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),du=function(){return uu};function bu(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'<img src="'.concat(Object(Xl.createBlobURL)(e),'">')})).join("")}var fu={position:"bottom right",isAlternate:!0},pu=function(){return Object(d.createElement)("div",{className:"block-editor-format-toolbar"},Object(d.createElement)(v.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(d.createElement)(v.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(d.createElement)(v.__experimentalToolbarItem,null,(function(t){return Object(d.createElement)(v.DropdownMenu,{icon:jr.a,label:Object(I.__)("More rich text controls"),toggleProps:t,controls:Object(p.orderBy)(e.map((function(e){return Object(le.a)(e,1)[0].props})),"title"),popoverProps:fu})}))}))))},mu=function(e){var t=e.inline,n=e.anchorRef;return t?Object(d.createElement)(v.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(d.createElement)(pu,null)):Object(d.createElement)(cr,null,Object(d.createElement)(pu,null))};function Ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gu(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function vu(e){var t=e.allowedFormats,n=e.formattingControls;return e.disableFormats?vu.EMPTY_ARRAY:t||n?t||(Zn()("wp.blockEditor.RichText formattingControls prop",{alternative:"allowedFormats"}),n.map((function(e){return"core/".concat(e)}))):void 0}vu.EMPTY_ARRAY=[];var hu=Object(d.forwardRef)((function e(t,n){var r=t.children,o=t.tagName,a=t.value,l=t.onChange,b=t.isSelected,p=t.multiline,O=t.inlineToolbar,v=t.wrapperClassName,h=t.className,j=t.autocompleters,y=t.onReplace,_=t.placeholder,E=t.keepPlaceholderOnFocus,S=t.allowedFormats,C=t.formattingControls,w=t.withoutInteractiveFormatting,I=t.onRemove,B=t.onMerge,x=t.onSplit,P=t.__unstableOnSplitAtEnd,T=t.__unstableOnSplitMiddle,N=t.identifier,R=t.start,D=t.reversed,L=t.style,A=t.preserveWhiteSpace,M=t.__unstableEmbedURLOnPaste,F=t.__unstableDisableFormats,V=t.disableLineBreaks,H=Object(ke.a)(t,["children","tagName","value","onChange","isSelected","multiline","inlineToolbar","wrapperClassName","className","autocompleters","onReplace","placeholder","keepPlaceholderOnFocus","allowedFormats","formattingControls","withoutInteractiveFormatting","onRemove","onMerge","onSplit","__unstableOnSplitAtEnd","__unstableOnSplitMiddle","identifier","start","reversed","style","preserveWhiteSpace","__unstableEmbedURLOnPaste","__unstableDisableFormats","disableLineBreaks"]),z=Object(m.useInstanceId)(e);N=N||z;var U=Object(d.useRef)(),G=n||U,K=k(),W=K.clientId,q=K.onCaretVerticalPositionChange,$=K.isSelected,Y=Object(g.useSelect)((function(e){var t,n=e("core/block-editor"),r=n.isCaretWithinFormattedText,o=n.getSelectionStart,i=n.getSelectionEnd,a=n.getSettings,l=n.didAutomaticChange,s=n.__unstableGetBlockWithoutInnerBlocks,f=n.isMultiSelecting,p=n.hasMultiSelection,m=o(),O=i(),g=a().__experimentalUndo;void 0===b?t=m.clientId===W&&m.attributeKey===N:b&&(t=m.clientId===W);var v={};if("native"===d.Platform.OS){var h=W&&s(W);v={shouldBlurOnUnmount:h&&t&&Object(c.isUnmodifiedDefaultBlock)(h)}}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isCaretWithinFormattedText:r(),selectionStart:t?m.offset:void 0,selectionEnd:t?O.offset:void 0,isSelected:t,didAutomaticChange:l(),disabled:f()||p(),undo:g},v)})),X=Y.isCaretWithinFormattedText,Z=Y.selectionStart,Q=Y.selectionEnd,J=Y.isSelected,ee=Y.didAutomaticChange,te=Y.disabled,ne=Y.undo,re=Y.shouldBlurOnUnmount,oe=Object(g.useDispatch)("core/block-editor"),ce=oe.__unstableMarkLastChangeAsPersistent,ie=oe.enterFormattedText,se=oe.exitFormattedText,ue=oe.selectionChange,de=oe.__unstableMarkAutomaticChange,be=gu(p),fe=vu({allowedFormats:S,formattingControls:C,disableFormats:F}),pe=!fe||fe.length>0,me=a,Oe=l;Array.isArray(a)&&(me=c.children.toHTML(a),Oe=function(e){return l(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var ge=Object(d.useCallback)((function(e,t){ue(W,N,e,t)}),[W,N]),ve=Object(d.useCallback)((function(e){var t=e.value,n=e.isReverse;B&&B(!n),I&&Object(i.isEmpty)(t)&&n&&I(!n)}),[B,I]),he=Object(d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(y&&x){var n=[],r=Object(i.split)(e),o=Object(le.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(x(Object(i.toHTMLString)({value:c,multilineTag:be}))),s+=1),l?(n.push.apply(n,Object(ae.a)(t)),s+=t.length):T&&n.push(T()),(l||T)&&Object(i.isEmpty)(a)||n.push(x(Object(i.toHTMLString)({value:a,multilineTag:be})));var u=l?s:1,d=l?-1:null;y(n,u,d)}}),[y,x,be,T]),je=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=y&&x;if(y){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(y([l.transform({content:t.text})]),de())}if(p)r?V||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?he(t):n(Object(i.__unstableInsertLineSeparator)(t));else if(r||!o&&!P)V||n(Object(i.insert)(t,"\n"));else if(P&&!o){var s=t.text,u=t.start,d=t.end;u===d&&d===s.length&&P()}else o&&he(t)}),[y,x,de,p,he,P]),ye=Object(d.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:bu(l),mode:"BLOCKS",tagName:o});return window.console.log("Received items:\n\n",l),void(y&&Object(i.isEmpty)(t)?y(u):he(t,u))}var d,b=y&&x?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(lu.regexp)(".*").test(d))&&(b="BLOCKS"),M&&Object(i.isEmpty)(t)&&Object(Aa.isURL)(a.trim())&&(b="BLOCKS");var f=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o});if("string"==typeof f){var m=Object(i.create)({html:f});if(s.length)for(var O=m.formats.length;O--;)m.formats[O]=[].concat(Object(ae.a)(s),Object(ae.a)(m.formats[O]||[]));p&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else f.length>0&&(y&&Object(i.isEmpty)(t)?y(f,f.length-1,-1):he(t,f))}),[o,y,x,he,M,p]),_e=Object(d.useCallback)((function(e,t){if(y){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);y([u]),de()}}}}),[y,de]),Ee=Object(d.createElement)(i.__experimentalRichText,Object(s.a)({},H,{clientId:W,identifier:N,ref:G,value:me,onChange:Oe,selectionStart:Z,selectionEnd:Q,onSelectionChange:ge,tagName:o,className:f()("block-editor-rich-text__editable",h,{"keep-placeholder-on-focus":E}),placeholder:_,allowedFormats:fe,withoutInteractiveFormatting:w,onEnter:je,onDelete:ve,onPaste:ye,__unstableIsSelected:J,__unstableInputRule:_e,__unstableMultilineTag:be,__unstableIsCaretWithinFormattedText:X,__unstableOnEnterFormattedText:ie,__unstableOnExitFormattedText:se,__unstableOnCreateUndoLevel:ce,__unstableMarkAutomaticChange:de,__unstableDidAutomaticChange:ee,__unstableUndo:ne,__unstableDisableFormats:F,style:L,preserveWhiteSpace:A,disabled:te,start:R,reversed:D,onCaretVerticalPositionChange:q,blockIsSelected:void 0!==b?b:$,shouldBlurOnUnmount:re}),(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(d.createElement)(d.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&pe&&Object(d.createElement)(mu,{inline:O,anchorRef:G.current}),t&&Object(d.createElement)(du,null),Object(d.createElement)(Fn,{onReplace:y,completers:j,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(d.createElement)(a,Object(s.a)({},i,{"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,start:R,reversed:D,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return v?(Zn()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(d.createElement)("div",{className:f()("block-editor-rich-text",v)},Ee)):Ee}));hu.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(ke.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=gu(r);!t&&i&&(t="<".concat(i,"></").concat(i,">"));var a=Object(d.createElement)(d.RawHTML,null,t);return n?Object(d.createElement)(n,Object(p.omit)(o,["format"]),a):a},hu.isEmpty=function(e){return!e||0===e.length},hu.Content.defaultProps={format:"string",value:""};var ju=hu;function ku(e){var t=e.value,n=e.onChange;return Object(d.createElement)(Qs,null,Object(d.createElement)(ju,{value:t,onChange:n,placeholder:Object(I.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var yu=function(e){var t=e.icon,n=void 0===t?Al.a:t,r=e.label,o=void 0===r?Object(I.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(I.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,u=f()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(d.createElement)(v.Placeholder,{icon:n,label:o,instructions:i,className:u},Object(d.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(I.__)("Block variations")},a.map((function(e){return Object(d.createElement)("li",{key:e.name},Object(d.createElement)(v.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(d.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(d.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(d.createElement)(v.Button,{isLink:!0,onClick:function(){return l()}},Object(I.__)("Skip"))))},_u=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Eu=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function Su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cu={top:{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(I._x)("Vertically Align Top","Block vertical alignment setting")},center:{icon:Eu,title:Object(I._x)("Vertically Align Middle","Block vertical alignment setting")},bottom:{icon:_u,title:Object(I._x)("Vertically Align Bottom","Block vertical alignment setting")}},wu=["top","center","bottom"],Iu={isAlternate:!0};var Bu=function(e){var t=e.value,n=e.onChange,r=e.controls,o=void 0===r?wu:r,c=e.isCollapsed,i=void 0===c||c,a=Cu[t],l=Cu.top;return Object(d.createElement)(v.ToolbarGroup,{popoverProps:Iu,isCollapsed:i,icon:a?a.icon:l.icon,label:Object(I._x)("Change vertical alignment","Block vertical alignment setting label"),controls:o.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Cu[e],{isActive:t===e,role:i?"menuitemradio":void 0,onClick:(r=e,function(){return n(t===r?void 0:r)})});var r}))})},xu=Object(m.createHigherOrderComponent)(Object(g.withSelect)((function(e,t){var n=e("core/block-editor").getSettings(),r=void 0===t.colors?n.colors:t.colors,o=void 0===t.disableCustomColors?n.disableCustomColors:t.disableCustomColors;return{colors:r,disableCustomColors:o,hasColorsToChoose:!Object(p.isEmpty)(r)||!o}})),"withColorContext"),Pu=xu(v.ColorPalette);function Tu(e){var t=e.onChange,n=e.value,r=Object(ke.a)(e,["onChange","value"]);return Object(d.createElement)(Be,Object(s.a)({},r,{onColorChange:t,colorValue:n,gradients:[],disableCustomGradients:!0}))}function Nu(e){var t=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),n=t.gradients,r=t.disableCustomGradients;return Object(d.createElement)(v.__experimentalGradientPicker,Object(s.a)({gradients:void 0!==e.gradients?e.gradient:n,disableCustomGradients:void 0!==e.disableCustomGradients?e.disableCustomGradients:r},e))}var Ru=function(e){var t=void 0!==e.gradients&&void 0!==e.disableCustomGradients?v.__experimentalGradientPicker:Nu;return Object(d.createElement)(t,e)};function Du(e){var t=e.className,n=e.value,r=e.onChange,o=e.label,c=void 0===o?Object(I.__)("Gradient Presets"):o,i=Object(ke.a)(e,["className","value","onChange","label"]),a=Object(g.useSelect)((function(e){return Object(p.pick)(e("core/block-editor").getSettings(),["gradients","disableCustomGradients"])}),[]),l=a.gradients,u=void 0===l?[]:l,b=a.disableCustomGradients;return Object(p.isEmpty)(u)&&b?null:Object(d.createElement)(v.BaseControl,{className:f()("block-editor-gradient-picker-control",t)},Object(d.createElement)(v.BaseControl.VisualLabel,null,c),Object(d.createElement)(Ru,Object(s.a)({value:n,onChange:r,className:"block-editor-gradient-picker-control__gradient-picker-presets",gradients:u,disableCustomGradients:b},i)))}function Lu(e){var t=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().gradients}),[]);return Object(p.isEmpty)(t)?null:Object(d.createElement)(v.PanelBody,{title:Object(I.__)("Gradient")},Object(d.createElement)(Du,e))}var Au=[25,50,75,100];function Mu(e){var t,n,r=e.imageWidth,o=e.imageHeight,c=e.imageSizeOptions,i=void 0===c?[]:c,a=e.isResizable,l=void 0===a||a,s=e.slug,u=e.width,b=e.height,f=e.onChange,m=e.onChangeImage,O=void 0===m?p.noop:m;function g(e,t){return function(){f({width:e,height:t})}}return Object(d.createElement)(d.Fragment,null,!Object(p.isEmpty)(i)&&Object(d.createElement)(v.SelectControl,{label:Object(I.__)("Image size"),value:s,options:i,onChange:O}),l&&Object(d.createElement)("div",{className:"block-editor-image-size-control"},Object(d.createElement)("p",{className:"block-editor-image-size-control__row"},Object(I.__)("Image dimensions")),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(v.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(I.__)("Width"),value:null!==(t=null!=u?u:r)&&void 0!==t?t:"",min:1,onChange:function(e){return f({width:parseInt(e,10)})}}),Object(d.createElement)(v.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(I.__)("Height"),value:null!==(n=null!=b?b:o)&&void 0!==n?n:"",min:1,onChange:function(e){return f({height:parseInt(e,10)})}})),Object(d.createElement)("div",{className:"block-editor-image-size-control__row"},Object(d.createElement)(v.ButtonGroup,{"aria-label":Object(I.__)("Image size presets")},Au.map((function(e){var t=Math.round(r*(e/100)),n=Math.round(o*(e/100)),c=u===t&&b===n;return Object(d.createElement)(v.Button,{key:e,isSmall:!0,isPrimary:c,isPressed:c,onClick:g(t,n)},e,"%")}))),Object(d.createElement)(v.Button,{isSmall:!0,onClick:g()},Object(I.__)("Reset")))))}var Fu=Object(m.createHigherOrderComponent)((function(e){return function(t){var n=k().clientId;return Object(d.createElement)(e,Object(s.a)({},t,{clientId:n}))}}),"withClientId"),Vu=Fu((function(e){var t=e.clientId,n=e.showSeparator,r=e.isFloating,o=e.onAddBlock;return Object(d.createElement)(Ea,{rootClientId:t,showSeparator:n,isFloating:r,onAddBlock:o})})),Hu=Object(m.compose)([Fu,Object(g.withSelect)((function(e,t){var n=t.clientId,r=(0,e("core/block-editor").getBlockOrder)(n);return{lastBlockClientId:Object(p.last)(r)}}))])((function(e){var t=e.clientId,n=e.lastBlockClientId;return Object(d.createElement)(_a,{rootClientId:t,lastBlockClientId:n})})),zu=n(55),Uu=n.n(zu);var Gu=new WeakMap;function Ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wu(e){var t=e.clientId,n=e.allowedBlocks,r=e.template,o=e.templateLock,i=e.forwardedRef,a=e.templateInsertUpdatesSelection,l=e.__experimentalCaptureToolbars,u=e.__experimentalMoverDirection,b=Object(m.useViewportMatch)("medium","<"),O=Object(g.useSelect)((function(e){var n=e("core/block-editor"),r=n.getBlock,o=n.isBlockSelected,c=n.hasSelectedInnerBlock,i=n.isNavigationMode,a=r(t);return{block:a,hasOverlay:"core/template"!==a.name&&!o(t)&&!c(t,!0),enableClickThrough:i()||b}})),v=O.hasOverlay,h=O.block,j=O.enableClickThrough;!function(e,t,n,r,o){var c=Object(g.useDispatch)("core/block-editor").updateBlockListSettings,i=Object(g.useSelect)((function(t){var n=t("core/block-editor").getBlockRootClientId(e);return{blockListSettings:t("core/block-editor").getBlockListSettings(e),parentLock:t("core/block-editor").getTemplateLock(n)}}),[e]),a=i.blockListSettings,l=i.parentLock;Object(d.useLayoutEffect)((function(){var i={allowedBlocks:t,templateLock:void 0===n?l:n};void 0!==r&&(i.__experimentalCaptureToolbars=r),void 0!==o&&(i.__experimentalMoverDirection=o),Uu()(a,i)||c(e,i)}),[e,a,t,n,l,r,o,c])}(t,n,o,l,u),function(e,t,n,r){var o=Object(g.useDispatch)("core/block-editor").replaceInnerBlocks,i=Object(g.useSelect)((function(t){return t("core/block-editor").getBlocks(e)}),[e]),a=Object(d.useRef)(null);Object(d.useLayoutEffect)((function(){if((0===i.length||"all"===n)&&!Object(p.isEqual)(t,a.current)){a.current=t;var l=Object(c.synchronizeBlocksWithTemplate)(i,t);Object(p.isEqual)(l,i)||o(e,l,0===i.length&&r&&0!==l.length)}}),[i,n,e])}(t,r,o,a);var k=f()({"has-overlay":j&&v,"is-capturing-toolbar":l}),y=Object(d.createElement)(xa,Object(s.a)({},e,{ref:i,rootClientId:t,className:k})),_=Object(c.getBlockType)(h.name);if(_&&_.providesContext){var E=function(e,t){Gu.has(t)||Gu.set(t,new WeakMap);var n=Gu.get(t);if(!n.has(e)){var r=Object(p.mapValues)(t.providesContext,(function(t){return e[t]}));n.set(e,r)}return n.get(e)}(h.attributes,_);y=Object(d.createElement)(Kn,{value:E},y)}return e.__experimentalTagName?y:Object(d.createElement)("div",{className:"block-editor-inner-blocks"},y)}function qu(e){return ja(e),Object(d.createElement)(Wu,e)}var $u=Object(d.forwardRef)((function(e,t){var n=k().clientId,r=Object(d.useRef)(),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({clientId:n,forwardedRef:t||r},e);return e.value&&e.onChange?Object(d.createElement)(qu,o):Object(d.createElement)(Wu,o)}));$u.DefaultBlockAppender=Hu,$u.ButtonBlockAppender=Vu,$u.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(d.createElement)(t,null)}));var Yu=$u;function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Zu=[{id:"opensInNewTab",title:Object(I.__)("Open in new tab")}],Qu=function(e){var t=e.value,n=e.onChange,r=void 0===n?p.noop:n,o=e.settings,c=void 0===o?Zu:o;if(!c||!c.length)return null;var i=function(e){return function(n){r(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,Object(u.a)({},e.id,n)))}},a=c.map((function(e){return Object(d.createElement)(v.ToggleControl,{className:"block-editor-link-control__setting",key:e.id,label:e.title,onChange:i(e),checked:!!t&&!!t[e.id]})}));return Object(d.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(d.createElement)(v.VisuallyHidden,{as:"legend"},Object(I.__)("Currently selected link settings")),a)},Ju=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(B.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),ed=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,l=e.searchTerm,u=void 0===l?"":l;return Object(d.createElement)(v.Button,Object(s.a)({},t,{onClick:c,className:f()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(d.createElement)(Qr.a,{className:"block-editor-link-control__search-item-icon",icon:Ju}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createElement)(v.TextHighlight,{text:n.title,highlight:u})),Object(d.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(Aa.filterURLForDisplay)(Object(Aa.safeDecodeURI)(n.url))||""),a&&Object(I.__)("Press ENTER to add this link"))),n.type&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-type"},n.type))},td=n(196),nd=n(114),rd=n.n(nd);function od(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var cd=function(e){return e.stopPropagation()},id=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(od()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(e){var t;return Object(Vt.a)(this,r),(t=n.call(this,e)).onChange=t.onChange.bind(Object(zt.a)(t)),t.onFocus=t.onFocus.bind(Object(zt.a)(t)),t.onKeyDown=t.onKeyDown.bind(Object(zt.a)(t)),t.selectLink=t.selectLink.bind(Object(zt.a)(t)),t.handleOnClick=t.handleOnClick.bind(Object(zt.a)(t)),t.bindSuggestionNode=t.bindSuggestionNode.bind(Object(zt.a)(t)),t.autocompleteRef=e.autocompleteRef||Object(d.createRef)(),t.inputRef=Object(d.createRef)(),t.updateSuggestions=Object(p.throttle)(t.updateSuggestions.bind(Object(zt.a)(t)),200),t.suggestionNodes=[],t.isUpdatingSuggestions=!1,t.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null},t}return Object(Ht.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this,n=this.state,r=n.showSuggestions,o=n.selectedSuggestion,c=this.props.value;r&&null!==o&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,rd()(this.suggestionNodes[o],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){t.scrollingIntoView=!1}),100)),e.value!==c&&this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentDidMount",value:function(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}},{key:"componentWillUnmount",value:function(){delete this.suggestionsRequest}},{key:"bindSuggestionNode",value:function(e){var t=this;return function(n){t.suggestionNodes[e]=n}}},{key:"shouldShowInitialSuggestions",value:function(){var e=this.state.suggestions,t=this.props,n=t.__experimentalShowInitialSuggestions,r=void 0!==n&&n,o=t.value;return!this.isUpdatingSuggestions&&r&&!(o&&o.length)&&!(e&&e.length)}},{key:"updateSuggestions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(Aa.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(I.sprintf)(Object(I._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(I.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case ct.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case ct.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case ct.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(I.__)("Link selected.")));break;case ct.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case ct.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case ct.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.instanceId,o=t.className,c=t.isFullWidth,i=t.__experimentalRenderSuggestions,a=t.placeholder,l=void 0===a?Object(I.__)("Paste URL or type to search"):a,u=t.value,b=void 0===u?"":u,m=t.autoFocus,O=void 0===m||m,g=t.__experimentalShowInitialSuggestions,h=void 0!==g&&g,j=this.state,k=j.showSuggestions,y=j.suggestions,_=j.selectedSuggestion,E=j.loading,S="url-input-control-".concat(r),C="block-editor-url-input-suggestions-".concat(r),w="block-editor-url-input-suggestion-".concat(r),B={id:C,ref:this.autocompleteRef,role:"listbox"},x=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(w,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===_}};return Object(d.createElement)(v.BaseControl,{label:n,id:S,className:f()("block-editor-url-input",o,{"is-full-width":c})},Object(d.createElement)("input",{className:"block-editor-url-input__input",autoFocus:O,type:"text","aria-label":Object(I.__)("URL"),required:!0,value:b,onChange:this.onChange,onFocus:this.onFocus,onInput:cd,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-expanded":k,"aria-autocomplete":"list","aria-owns":C,"aria-activedescendant":null!==_?"".concat(w,"-").concat(_):void 0,ref:this.inputRef}),E&&Object(d.createElement)(v.Spinner,null),Object(p.isFunction)(i)&&k&&!!y.length&&i({suggestions:y,selectedSuggestion:_,suggestionsListProps:B,buildSuggestionItemProps:x,isLoading:E,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:h&&!(b&&b.length)}),!Object(p.isFunction)(i)&&k&&!!y.length&&Object(d.createElement)(v.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(d.createElement)("div",Object(s.a)({},B,{className:f()("block-editor-url-input__suggestions","".concat(o,"__suggestions"))}),y.map((function(t,n){return Object(d.createElement)(v.Button,Object(s.a)({},x(0,n),{key:t.id,className:f()("block-editor-url-input__suggestion",{"is-selected":n===_}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.disableSuggestions,o=e.__experimentalShowInitialSuggestions,c=void 0!==o&&o,i=t.showSuggestions,a=n&&n.length;return c||a||(i=!1),!0===r&&(i=!1),{showSuggestions:i}}}]),r}(d.Component),ad=Object(m.compose)(m.withSafeTimeout,v.withSpokenMessages,m.withInstanceId,Object(g.withSelect)((function(e,t){if(!Object(p.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(id),ld=function(e){var t=e.placeholder,n=e.value,r=e.onChange,o=e.onSelect,c=e.renderSuggestions,i=e.fetchSuggestions,a=e.showInitialSuggestions,l=e.errorMessage,s=Object(d.useState)(),u=Object(le.a)(s,2),b=u[0],f=u[1];return Object(d.createElement)("form",{onSubmit:function(e){e.preventDefault(),o(b||{url:n})}},Object(d.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(d.createElement)(ad,{className:"block-editor-link-control__search-input",value:n,onChange:function(e,t){r(e),f(t)},placeholder:null!=t?t:Object(I.__)("Search or type url"),__experimentalRenderSuggestions:c,__experimentalFetchLinkSuggestions:i,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:a}),Object(d.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(d.createElement)(v.Button,{type:"submit",label:Object(I.__)("Submit"),icon:td.a,className:"block-editor-link-control__search-submit"}))),l&&Object(d.createElement)(v.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},l))},sd=function(e){var t=e.searchTerm,n=e.onClick,r=e.itemProps,o=e.isSelected;return t?Object(d.createElement)(v.Button,Object(s.a)({},r,{className:f()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:n}),Object(d.createElement)(v.Icon,{className:"block-editor-link-control__search-item-icon",icon:"insert"}),Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(d.createInterpolateElement)(Object(I.sprintf)(Object(I.__)("New page: <mark>%s</mark>"),t),{mark:Object(d.createElement)("mark",null)})))):null};function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ud(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bd=Object(v.createSlotFill)("BlockEditorLinkControlViewer"),fd=bd.Slot,pd=bd.Fill,md=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function Od(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?p.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,u=void 0===l||l,b=e.showInitialSuggestions,O=e.forceIsEditingLink,h=e.createSuggestion,j=Object(d.useRef)(),k=Object(d.useRef)(),y=Object(d.useRef)(),_=Object(m.useInstanceId)(Od),E=Object(d.useState)(n&&n.url||""),S=Object(le.a)(E,2),C=S[0],w=S[1],B=Object(d.useState)(void 0!==O?O:!n||!n.url),x=Object(le.a)(B,2),P=x[0],T=x[1],N=Object(d.useState)(!1),R=Object(le.a)(N,2),D=R[0],L=R[1],A=Object(d.useState)(null),M=Object(le.a)(A,2),F=M[0],V=M[1],H=Object(d.useRef)(!1),z=Object(g.useSelect)((function(e){return{fetchSearchSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}}),[]).fetchSearchSuggestions,U=n&&Object(Aa.filterURLForDisplay)(Object(Aa.safeDecodeURI)(n.url))||"";Object(d.useEffect)((function(){void 0!==O&&O!==P&&T(O)}),[O]),Object(d.useEffect)((function(){H.current&&y.current&&!y.current.contains(document.activeElement)&&(dr.focus.focusable.find(y.current)[0]||y.current).focus();H.current=!1}),[P]),Object(d.useEffect)((function(){return function(){j.current&&j.current.cancel(),k.current&&k.current.cancel()}}),[]);var G=a?function(){return Promise.resolve([])}:function(e){var t="URL",n=Object(Aa.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(p.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(Aa.prependHTTP)(e):e,type:t}])},K=function(){var e=Object(lr.a)(ar.a.mark((function e(t,n){var r,o;return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([z(t,dd({},n.isInitialSuggestions?{perPage:3}:{})),G(t)]);case 2:if(r=e.sent,o=!t.includes(" "),r=o&&!n.isInitialSuggestions?r[0].concat(r[1]):r[0],!n.isInitialSuggestions){e.next=7;break}return e.abrupt("return",r);case 7:return e.abrupt("return",q(t)?r:r.concat({title:t,url:t,type:"__CREATE__"}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function W(){var e;H.current=!!(null===(e=y.current)||void 0===e?void 0:e.contains(document.activeElement)),T(!1)}function q(e){var t=Object(p.startsWith)(e,"#");return Object(Aa.isURL)(e)||e&&e.includes("www.")||t}var $=Object(d.useCallback)((function(e,t){return u?q(e)?G(e,t):K(e,t):Promise.resolve([])}),[G,z]),Y=function(){var e=Object(lr.a)(ar.a.mark((function e(t){var n;return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),V(null),e.prev=2,k.current=md(Promise.resolve(h(t))),e.next=6,k.current.promise;case 6:n=e.sent,L(!1),n?(c(n),W()):T(!0),e.next=18;break;case 11:if(e.prev=11,e.t0=e.catch(2),!e.t0||!e.t0.isCanceled){e.next=15;break}return e.abrupt("return");case 15:V(e.t0.message||Object(I.__)("An unknown error occurred during creation. Please try again.")),L(!1),T(!0);case 18:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};T(!1);var n=dd({},t);delete n.type,delete n.id,c(dd({},n,{},e))};return Object(d.createElement)("div",{tabIndex:-1,ref:y,className:"block-editor-link-control"},D&&Object(d.createElement)("div",{className:"block-editor-link-control__loading"},Object(d.createElement)(v.Spinner,null)," ",Object(I.__)("Creating"),"…"),(P||!n)&&!D&&Object(d.createElement)(ld,{placeholder:t,value:C,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";w(e)},onSelect:function(){var e=Object(lr.a)(ar.a.mark((function e(t){return ar.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("__CREATE__"!==t.type){e.next=5;break}return e.next=3,Y(C);case 3:e.next=6;break;case 5:(!a||Object.keys(t).length>1)&&(X(t,n),W());case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),renderSuggestions:u?function(e){var t=e.suggestionsListProps,r=e.buildSuggestionItemProps,o=e.suggestions,i=e.selectedSuggestion,a=e.isLoading,l=e.isInitialSuggestions,u=f()("block-editor-link-control__search-results",{"is-loading":a}),b=["url","mailto","tel","internal"],p=1===o.length&&b.includes(o[0].type.toLowerCase()),m=h&&!p&&!l,O="block-editor-link-control-search-results-label-".concat(_),g=l?Object(I.__)("Recently updated"):Object(I.sprintf)(Object(I.__)('Search results for "%s"'),C),j=Object(d.createElement)(l?d.Fragment:v.VisuallyHidden,{},Object(d.createElement)("span",{className:"block-editor-link-control__search-results-label",id:O},g));return Object(d.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},j,Object(d.createElement)("div",Object(s.a)({},t,{className:u,"aria-labelledby":O}),o.map((function(e,t){return m&&"__CREATE__"===e.type?Object(d.createElement)(sd,{searchTerm:C,onClick:Object(lr.a)(ar.a.mark((function t(){return ar.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Y(e.title);case 2:case"end":return t.stop()}}),t)}))),key:e.type,itemProps:r(e,t),isSelected:t===i}):"__CREATE__"===e.type?null:Object(d.createElement)(ed,{key:"".concat(e.id,"-").concat(e.type),itemProps:r(e,t),suggestion:e,index:t,onClick:function(){W(),c(dd({},n,{},e))},isSelected:t===i,isURL:b.includes(e.type.toLowerCase()),searchTerm:C})}))))}:null,fetchSuggestions:$,showInitialSuggestions:b,errorMessage:F}),n&&!P&&!D&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)("div",{"aria-label":Object(I.__)("Currently selected"),"aria-selected":"true",className:f()("block-editor-link-control__search-item",{"is-current":!0})},Object(d.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(d.createElement)(v.ExternalLink,{className:"block-editor-link-control__search-item-title",href:n.url},n&&n.title||U),n&&n.title&&Object(d.createElement)("span",{className:"block-editor-link-control__search-item-info"},U)),Object(d.createElement)(v.Button,{isSecondary:!0,onClick:function(){return T(!0)},className:"block-editor-link-control__search-item-action"},Object(I.__)("Edit")),Object(d.createElement)(fd,{fillProps:n}))),Object(d.createElement)(Qu,{value:n,settings:r,onChange:c}))}Od.ViewerFill=pd;var gd=Od,vd=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(d.createElement)(B.Path,{d:"M13 11V4c0-.55-.45-1-1-1h-1.67L9 1H5L3.67 3H2c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h10c.55 0 1-.45 1-1zM7 4.5c1.38 0 2.5 1.12 2.5 2.5S8.38 9.5 7 9.5 4.5 8.38 4.5 7 5.62 4.5 7 4.5zM14 6h5v10.5c0 1.38-1.12 2.5-2.5 2.5S14 17.88 14 16.5s1.12-2.5 2.5-2.5c.17 0 .34.02.5.05V9h-3V6zm-4 8.05V13h2v3.5c0 1.38-1.12 2.5-2.5 2.5S7 17.88 7 16.5 8.12 14 9.5 14c.17 0 .34.02.5.05z"})),hd=n(295),jd=Object(v.withFilters)("editor.MediaUpload")((function(){return null}));var kd=Object(g.withSelect)((function(e){return{hasUploadPermissions:!!(0,e("core/block-editor").getSettings)().mediaUpload}}))((function(e){var t=e.hasUploadPermissions,n=e.fallback,r=void 0===n?null:n,o=e.children;return t?o:r})),yd=Object(m.compose)([Object(g.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(v.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?p.noop:a,s=e.name,u=void 0===s?Object(I.__)("Replace"):s,b=e.createNotice,f=e.removeNotice,m=Object(d.useState)(t),O=Object(le.a)(m,2),h=O[0],j=O[1],k=Object(g.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),y=Object(d.createRef)(),_=Object(p.uniqueId)("block-editor/media-replace-flow/error-notice/"),E=function(e){var t=document.createElement("div");t.innerHTML=Object(d.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:_,isDismissible:!0})}),1e3)},S=function(e){c(e),j(e.url),Object(Fe.speak)(Object(I.__)("The media file has been replaced")),f(_)},C=function(e){e.keyCode===ct.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(d.createElement)(v.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.ToolbarGroup,{className:"media-replace-flow"},Object(d.createElement)(v.ToolbarButton,{ref:y,"aria-expanded":t,onClick:n,onKeyDown:C},u))},renderContent:function(e){e.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(d.createElement)(jd,{value:n,onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(d.createElement)(v.MenuItem,{icon:vd,onClick:t},Object(I.__)("Open Media Library"))}}),Object(d.createElement)(kd,null,Object(d.createElement)(v.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);k({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(le.a)(e,1)[0];S(t)},onError:E})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(d.createElement)(v.MenuItem,{icon:hd.a,onClick:function(){t()}},Object(I.__)("Upload"))}}))),i&&Object(d.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(d.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(I.__)("Current media URL:")),Object(d.createElement)(gd,{value:{url:h},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;j(t),i(t),y.current.focus()}})))}})})),_d=n(296);function Ed(e){var t=e.url,n=e.urlLabel,r=e.className,o=f()(r,"block-editor-url-popover__link-viewer-url");return t?Object(d.createElement)(v.ExternalLink,{className:o,href:t},n||Object(Aa.filterURLForDisplay)(Object(Aa.safeDecodeURI)(t))):Object(d.createElement)("span",{className:o})}function Sd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Cd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Sd()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).toggleSettingsVisibility=e.toggleSettingsVisibility.bind(Object(zt.a)(e)),e.state={isSettingsExpanded:!1},e}return Object(Ht.a)(r,[{key:"toggleSettingsVisibility",value:function(){this.setState({isSettingsExpanded:!this.state.isSettingsExpanded})}},{key:"render",value:function(){var e=this.props,t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,l=Object(ke.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),u=this.state.isSettingsExpanded,b=!!r&&u;return Object(d.createElement)(v.Popover,Object(s.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},l),Object(d.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(d.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(d.createElement)(v.Button,{className:"block-editor-url-popover__settings-toggle",icon:jr.a,label:Object(I.__)("Link settings"),onClick:this.toggleSettingsVisibility,"aria-expanded":u})),b&&Object(d.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!b&&Object(d.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}}]),r}(d.Component);Cd.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(ke.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(d.createElement)("form",Object(s.a)({className:f()("block-editor-url-popover__link-editor",n)},c),Object(d.createElement)(ad,{value:o,onChange:r,autocompleteRef:t}),Object(d.createElement)(v.Button,{icon:td.a,label:Object(I.__)("Apply"),type:"submit"}))},Cd.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(ke.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(d.createElement)("div",Object(s.a)({className:f()("block-editor-url-popover__link-viewer",t)},i),Object(d.createElement)(Ed,{url:o,urlLabel:c,className:n}),r&&Object(d.createElement)(v.Button,{icon:_d.a,label:Object(I.__)("Edit"),onClick:r}))};var wd=Cd;function Id(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Bd=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(d.createElement)(wd,{onClose:o},Object(d.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(d.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(I.__)("URL"),placeholder:Object(I.__)("Paste or type URL"),onChange:n,value:t}),Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:td.a,label:Object(I.__)("Apply"),type:"submit"})))},xd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Id()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).state={src:"",isURLInputVisible:!1},e.onChangeSrc=e.onChangeSrc.bind(Object(zt.a)(e)),e.onSubmitSrc=e.onSubmitSrc.bind(Object(zt.a)(e)),e.onUpload=e.onUpload.bind(Object(zt.a)(e)),e.onFilesUpload=e.onFilesUpload.bind(Object(zt.a)(e)),e.openURLInput=e.openURLInput.bind(Object(zt.a)(e)),e.closeURLInput=e.closeURLInput.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onlyAllowsImages",value:function(){var e=this.props.allowedTypes;return!!e&&Object(p.every)(e,(function(e){return"image"===e||Object(p.startsWith)(e,"image/")}))}},{key:"componentDidMount",value:function(){this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"componentDidUpdate",value:function(e){Object(p.get)(e.value,["src"],"")!==Object(p.get)(this.props.value,["src"],"")&&this.setState({src:Object(p.get)(this.props.value,["src"],"")})}},{key:"onChangeSrc",value:function(e){this.setState({src:e.target.value})}},{key:"onSubmitSrc",value:function(e){e.preventDefault(),this.state.src&&this.props.onSelectURL&&(this.props.onSelectURL(this.state.src),this.closeURLInput())}},{key:"onUpload",value:function(e){this.onFilesUpload(e.target.files)}},{key:"onFilesUpload",value:function(e){var t,n=this,r=this.props,o=r.addToGallery,c=r.allowedTypes,i=r.mediaUpload,a=r.multiple,l=r.onError,s=r.onSelect,u=r.onFilesPreUpload;if((void 0===u?p.noop:u)(e),a)if(o){var d=[];t=function(e){var t=(n.props.value||[]).filter((function(e){return e.id?!d.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!d.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));s(t.concat(e)),d=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=s;else t=function(e){var t=Object(le.a)(e,1)[0];return s(t)};i({allowedTypes:c,filesList:e,onFileChange:t,onError:l})}},{key:"openURLInput",value:function(){this.setState({isURLInputVisible:!0})}},{key:"closeURLInput",value:function(){this.setState({isURLInputVisible:!1})}},{key:"renderPlaceholder",value:function(e,t){var n=this.props,r=n.allowedTypes,o=void 0===r?[]:r,c=n.className,i=n.icon,a=n.isAppender,l=n.labels,s=void 0===l?{}:l,u=n.onDoubleClick,b=n.mediaPreview,p=n.notices,m=n.onSelectURL,O=n.mediaUpload,g=n.children,h=s.instructions,j=s.title;if(O||m||(h=Object(I.__)("To edit this block, you need permission to upload media.")),void 0===h||void 0===j){var k=1===o.length,y=k&&"audio"===o[0],_=k&&"image"===o[0],E=k&&"video"===o[0];void 0===h&&O&&(h=Object(I.__)("Upload a media file or pick one from your media library."),y?h=Object(I.__)("Upload an audio file, pick one from your media library, or add one with a URL."):_?h=Object(I.__)("Upload an image file, pick one from your media library, or add one with a URL."):E&&(h=Object(I.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===j&&(j=Object(I.__)("Media"),y?j=Object(I.__)("Audio"):_?j=Object(I.__)("Image"):E&&(j=Object(I.__)("Video")))}var S=f()("block-editor-media-placeholder",c,{"is-appender":a});return Object(d.createElement)(v.Placeholder,{icon:i,label:j,instructions:h,className:S,notices:p,onClick:t,onDoubleClick:u,preview:b},e,g)}},{key:"renderDropZone",value:function(){var e=this.props,t=e.disableDropZone,n=e.onHTMLDrop,r=void 0===n?p.noop:n;return t?null:Object(d.createElement)(v.DropZone,{onFilesDrop:this.onFilesUpload,onHTMLDrop:r})}},{key:"renderCancelLink",value:function(){var e=this.props.onCancel;return e&&Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(I.__)("Cancel"),isLink:!0,onClick:e},Object(I.__)("Cancel"))}},{key:"renderUrlSelectionUI",value:function(){if(!this.props.onSelectURL)return null;var e=this.state,t=e.isURLInputVisible,n=e.src;return Object(d.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(d.createElement)(v.Button,{className:"block-editor-media-placeholder__button",onClick:this.openURLInput,isPressed:t,isTertiary:!0},Object(I.__)("Insert from URL")),t&&Object(d.createElement)(Bd,{src:n,onChange:this.onChangeSrc,onSubmit:this.onSubmitSrc,onClose:this.closeURLInput}))}},{key:"renderMediaUploadChecked",value:function(){var e=this,t=this.props,n=t.accept,r=t.addToGallery,o=t.allowedTypes,c=void 0===o?[]:o,i=t.isAppender,a=t.mediaUpload,l=t.multiple,s=void 0!==l&&l,u=t.onSelect,b=t.value,m=void 0===b?{}:b,O=Object(d.createElement)(jd,{addToGallery:r,gallery:s&&this.onlyAllowsImages(),multiple:s,onSelect:u,allowedTypes:c,value:Object(p.isArray)(m)?m.map((function(e){return e.id})):m.id,render:function(e){var t=e.open;return Object(d.createElement)(v.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(I.__)("Media Library"))}});if(a&&i)return Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{onChange:this.onUpload,accept:n,multiple:s,render:function(t){var n=t.openFileDialog,r=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.Button,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(I.__)("Upload")),O,e.renderUrlSelectionUI(),e.renderCancelLink());return e.renderPlaceholder(r,n)}}));if(a){var g=Object(d.createElement)(d.Fragment,null,this.renderDropZone(),Object(d.createElement)(v.FormFileUpload,{isPrimary:!0,className:f()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:this.onUpload,accept:n,multiple:s},Object(I.__)("Upload")),O,this.renderUrlSelectionUI(),this.renderCancelLink());return this.renderPlaceholder(g)}return this.renderPlaceholder(O)}},{key:"render",value:function(){var e=this.props,t=e.disableMediaButtons,n=e.dropZoneUIOnly;return n||t?(n&&Zn()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(d.createElement)(kd,null,this.renderDropZone())):Object(d.createElement)(kd,{fallback:this.renderPlaceholder(this.renderUrlSelectionUI())},this.renderMediaUploadChecked())}}]),r}(d.Component),Pd=Object(g.withSelect)((function(e){return{mediaUpload:(0,e("core/block-editor").getSettings)().mediaUpload}})),Td=Object(m.compose)(Pd,Object(v.withFilters)("editor.MediaPlaceholder"))(xd),Nd=Object(d.forwardRef)((function(e,t){return Object(d.createElement)(ju,Object(s.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Nd.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(ke.a)(e,["value","tagName"]);return Object(d.createElement)(o,c,n)};var Rd=Nd,Dd=Object(d.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(ke.a)(e,["__experimentalVersion"]);if(2===n)return Object(d.createElement)(Rd,Object(s.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(ke.a)(r,["className","onChange"]);return Object(d.createElement)(Gr.a,Object(s.a)({ref:t,className:f()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Ld(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(m.useInstanceId)(Ld),c=r||Object(I.sprintf)(Object(I._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(d.createElement)(d.Fragment,null,Object(d.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(d.createElement)(v.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Ad=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,u=void 0===s?{id:"all",label:Object(I.__)("All")}:s,b=e.viewports,p=void 0===b?[{id:"small",label:Object(I.__)("Small screens")},{id:"medium",label:Object(I.__)("Medium screens")},{id:"large",label:Object(I.__)("Large screens")}]:b;if(!t||!n||!c)return null;var m=r||Object(I.sprintf)(Object(I.__)("Use the same %s on all screensizes."),n),O=Object(I.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=c(Object(d.createElement)(Ld,{property:n,viewport:u}),u);return Object(d.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(d.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(d.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(d.createElement)(v.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:O}),Object(d.createElement)("div",{className:f()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&g,l&&(i?i(p):p.map((function(e){return Object(d.createElement)(d.Fragment,{key:e.id},c(Object(d.createElement)(Ld,{property:n,viewport:e}),e))}))))))};function Md(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Md()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).onUse=e.onUse.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onUse",value:function(){return this.props.onUse(),!1}},{key:"render",value:function(){var e=this.props,t=e.character,n=e.type;return Object(d.createElement)(v.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(u.a)({},ct.rawShortcut[n](t),this.onUse)})}}]),r}(d.Component);function Vd(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(ke.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=ct.displayShortcut[r](o)),Object(d.createElement)(v.Fill,{name:i},Object(d.createElement)(v.ToolbarButton,Object(s.a)({},c,{shortcut:t})))}function Hd(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var zd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Hd()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).onInput=e.onInput.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),r}(d.Component),Ud=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),Gd=Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Kd=Object(d.forwardRef)((function(e,t){var n=Object(g.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(g.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(d.createElement)(v.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(d.createElement)(v.Button,Object(s.a)({},e,{ref:t,icon:n?Gd:Ud,"aria-expanded":o,onClick:c,label:Object(I.__)("Tools")}))},position:"bottom right",renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.NavigableMenu,{role:"menu","aria-label":Object(I.__)("Tools")},Object(d.createElement)(v.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(d.createElement)(d.Fragment,null,Ud,Object(I.__)("Edit"))},{value:"select",label:Object(d.createElement)(d.Fragment,null,Gd,Object(I.__)("Select"))}]})),Object(d.createElement)("div",{className:"block-editor-tool-selector__help"},Object(I.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Wd=n(170),qd=Object(d.createElement)(B.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(B.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function $d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Yd=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if($d()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).toggle=e.toggle.bind(Object(zt.a)(e)),e.submitLink=e.submitLink.bind(Object(zt.a)(e)),e.state={expanded:!1},e}return Object(Ht.a)(r,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(I.__)("Edit link"):Object(I.__)("Insert link");return Object(d.createElement)("div",{className:"block-editor-url-input__button"},Object(d.createElement)(v.Button,{icon:Wd.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(d.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(d.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(d.createElement)(v.Button,{className:"block-editor-url-input__back",icon:qd,label:Object(I.__)("Close"),onClick:this.toggle}),Object(d.createElement)(ad,{value:t||"",onChange:n}),Object(d.createElement)(v.Button,{icon:td.a,label:Object(I.__)("Submit"),type:"submit"}))))}}]),r}(d.Component),Xd=n(133),Zd=["noreferrer","noopener"],Qd=Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(d.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Jd=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,u=e.rel,b=Object(d.useState)(!1),f=Object(le.a)(b,2),m=f[0],O=f[1],g=Object(d.useCallback)((function(){O(!0)})),h=Object(d.useState)(!1),j=Object(le.a)(h,2),k=j[0],y=j[1],_=Object(d.useState)(null),E=Object(le.a)(_,2),S=E[0],C=E[1],w=Object(d.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[ct.LEFT,ct.DOWN,ct.RIGHT,ct.UP,ct.BACKSPACE,ct.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(d.useCallback)((function(){"media"!==t&&"attachment"!==t||C(""),y(!0)})),T=Object(d.useCallback)((function(){y(!1)})),N=Object(d.useCallback)((function(){C(null),T(),O(!1)})),R=function(e){var t=e;return void 0===e||Object(p.isEmpty)(t)||Object(p.isEmpty)(t)||(Object(p.each)(Zd,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(p.isEmpty)(t)&&(t=void 0)),t},D=Object(d.useCallback)((function(){return function(e){var t=w.current;t&&t.contains(e.target)||(O(!1),C(null),T())}})),L=Object(d.useCallback)((function(){return function(e){S&&n({href:S}),T(),C(null),e.preventDefault()}})),A=Object(d.useCallback)((function(){n({linkDestination:"none",href:""})})),M=function(){return[{linkDestination:"media",title:Object(I.__)("Media File"),url:"image"===c?i:void 0,icon:Qd},{linkDestination:"attachment",title:Object(I.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(d.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)(v.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(d.createElement)(v.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}]},F=Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToggleControl,{label:Object(I.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||u?R(u):void 0}}(e);n(t)},checked:"_blank"===l}),Object(d.createElement)(v.TextControl,{label:Object(I.__)("Link Rel"),value:R(u)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(d.createElement)(v.TextControl,{label:Object(I.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(p.find)(M(),["linkDestination",t])||{}).title;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.ToolbarButton,{icon:Wd.a,className:"components-toolbar__control",label:r?Object(I.__)("Edit link"):Object(I.__)("Insert link"),"aria-expanded":m,onClick:g}),m&&Object(d.createElement)(wd,{onFocusOutside:D(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(d.createElement)(v.NavigableMenu,null,Object(p.map)(M(),(function(e){return Object(d.createElement)(v.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;C(null),t=e.url,o=M(),r=t?(Object(p.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||k)&&Object(d.createElement)(wd.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:C,onKeyDown:x,onKeyPress:B,onSubmit:L(),autocompleteRef:w}),r&&!k&&Object(d.createElement)(d.Fragment,null,Object(d.createElement)(wd.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(d.createElement)(v.Button,{icon:Xd.a,label:Object(I.__)("Remove link"),onClick:A}))))},eb=n(171);function tb(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;return Object(d.createElement)(v.Dropdown,{className:"block-editor-post-preview__dropdown",contentClassName:f()(n,"block-editor-post-preview__dropdown-content"),popoverProps:{role:"menu"},position:"bottom left",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(d.createElement)(v.Button,{onClick:n,className:"block-editor-post-preview__button-toggle","aria-expanded":t,disabled:!o},Object(I.__)("Preview"),Object(d.createElement)(Qr.a,{icon:jr.a}))},renderContent:function(){return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(v.MenuGroup,null,Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&eb.a},Object(I.__)("Desktop")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&eb.a},Object(I.__)("Tablet")),Object(d.createElement)(v.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&eb.a},Object(I.__)("Mobile"))),t)}})}var nb=n(258),rb=/\((min|max)-width:[^\(]*?\)/g;function ob(e){return!!e.media&&!!e.media.mediaText.match(rb)}function cb(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function ib(e,t){return e.replace(rb,(function(e){return Object(nb.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function ab(e,t){Object(d.useEffect)((function(){if(t){var n="undefined"==typeof window?[]:Object(p.filter)(Object(p.get)(window,["document","styleSheets"],[]),(function(e){return!!e.href&&Object(Aa.getProtocol)(e.href)===window.location.protocol&&Object(Aa.getAuthority)(e.href)===window.location.host})),r=[];return n.forEach((function(n,o){for(var c=!1,i=0;i<n.cssRules.length;++i){var a=n.cssRules[i];if((a.type===window.CSSRule.STYLE_RULE||a.type===window.CSSRule.MEDIA_RULE)&&(!c&&a.cssText.match(new RegExp("#start-".concat(e)))&&(c=!0),c&&a.cssText.match(new RegExp("#end-".concat(e)))&&(c=!1),c&&ob(a))){var l=a.cssText;r[o]||(r[o]=[]),r[o][i]=l,cb(n,ib(l,t),i)}}})),function(){r.forEach((function(e,t){if(e)for(var r=0;r<e.length;++r){var o=e[r];o&&cb(n[t],o,r)}}))}}}),[t])}function lb(e){var t=Object(d.useState)(window.innerWidth),n=Object(le.a)(t,2),r=n[0],o=n[1];Object(d.useEffect)((function(){if("Desktop"!==e){var t=function(){return o(window.innerWidth)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]);var c=function(e){var t;switch(e){case"Tablet":t=780;break;case"Mobile":t=360;break;default:return null}return t<r?t:r};return ab("resizable-editor-section",c(e)),function(e){switch(e){case"Tablet":case"Mobile":return{width:c(e),margin:(window.innerHeight<800?36:72)+"px auto",flexGrow:0,maxHeight:"Mobile"===e?"768px":"1024px",overflowY:"auto"};default:return null}}(e)}var sb=Object(g.withSelect)((function(e){return{selectedBlockClientId:e("core/block-editor").getBlockSelectionStart()}}))((function(e){var t=e.selectedBlockClientId;return t&&Object(d.createElement)(v.Button,{isSecondary:!0,className:"block-editor-skip-to-selected-block",onClick:function(){qe(t).focus()}},Object(I.__)("Skip to the selected block"))})),ub=n(141);var db=Object(g.withSelect)((function(e){return{blocks:(0,e("core/block-editor").getMultiSelectedBlocks)()}}))((function(e){var t=e.blocks,n=Object(ub.count)(Object(c.serialize)(t),"words");return Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(d.createElement)(Tn,{icon:Object(d.createElement)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(d.createElement)(v.Path,{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"})),showColors:!0}),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(I.sprintf)(Object(I._n)("%d block","%d blocks",t.length),t.length)),Object(d.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(I.sprintf)(Object(I._n)("%d word","%d words",n),n))))}));function bb(e){var t=e.blockName,n=Object(g.useSelect)((function(e){var n=e("core/block-editor").getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:Object(p.get)(n,["value",t]),onUpdatePreferredStyleVariations:Object(p.get)(n,["onChange"],null),styles:e("core/blocks").getBlockStyles(t)}}),[t]),r=n.preferredStyle,o=n.onUpdatePreferredStyleVariations,c=n.styles,i=Object(d.useMemo)((function(){return[{label:Object(I.__)("Not set"),value:""}].concat(Object(ae.a)(c.map((function(e){return{label:e.label,value:e.name}}))))}),[c]),a=Object(d.useCallback)((function(e){o(t,e)}),[t,o]);return o&&Object(d.createElement)(v.SelectControl,{options:i,value:r||"",label:Object(I.__)("Default Style"),onChange:a})}var fb=function(e){var t=e.slotName,n=Object(v.__experimentalUseSlot)(t);return Boolean(n.fills&&n.fills.length)?Object(d.createElement)(v.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(I.__)("Advanced"),initialOpen:!1},Object(d.createElement)(ee.Slot,{bubblesVirtually:!0})):null},pb=Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getSelectedBlockCount,o=t.getBlockName,i=e("core/blocks").getBlockStyles,a=n(),l=a&&o(a),s=a&&Object(c.getBlockType)(l),u=a&&i(l);return{count:r(),hasBlockStyles:u&&u.length>0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a;if(n>1)return Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(db,null),Object(d.createElement)(We.Slot,{bubblesVirtually:!0}));var s=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!s?Object(d.createElement)("div",{className:"block-editor-block-inspector"},Object(d.createElement)(to,{blockType:t}),r&&Object(d.createElement)("div",null,Object(d.createElement)(v.PanelBody,{title:Object(I.__)("Styles")},Object(d.createElement)(Ul,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(d.createElement)(bb,{blockName:t.name}))),Object(d.createElement)(We.Slot,{bubblesVirtually:!0}),Object(d.createElement)("div",null,Object(d.createElement)(fb,{slotName:ee.slotName})),Object(d.createElement)(sb,{key:"back"})):l?Object(d.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(I.__)("No block selected.")):null}));function mb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Ob=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(mb()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).bindContainer=e.bindContainer.bind(Object(zt.a)(e)),e.clearSelectionIfFocusTarget=e.clearSelectionIfFocusTarget.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"clearSelectionIfFocusTarget",value:function(e){var t=this.props,n=t.hasSelectedBlock,r=t.hasMultiSelection,o=t.clearSelectedBlock,c=n||r;e.target===this.container&&c&&o()}},{key:"render",value:function(){return Object(d.createElement)("div",Object(s.a)({tabIndex:-1,onFocus:this.clearSelectionIfFocusTarget,ref:this.bindContainer},Object(p.omit)(this.props,["clearSelectedBlock","hasSelectedBlock","hasMultiSelection"])))}}]),r}(d.Component),gb=Object(m.compose)([Object(g.withSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return{hasSelectedBlock:n(),hasMultiSelection:r()}})),Object(g.withDispatch)((function(e){return{clearSelectedBlock:e("core/block-editor").clearSelectedBlock}}))])(Ob),vb=n(259),hb=n.n(vb),jb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kb=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=S()||C());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function O(){var e=b(/^([^{]+)/);if(e)return yb(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function g(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=yb(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(jb,""),value:n?yb(n[0]).replace(jb,""):""});return b(/^[;\s]*/),r}}function v(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=g();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function S(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=yb(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:yb(t[1]),media:yb(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=yb(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=yb(t[1]),r=yb(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=O()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=g();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=g();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function C(){var e=c(),t=O();return t?(p(),e({type:"rule",selectors:t,declarations:v()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Eo.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function yb(e){return e?e.replace(/^\s+|\s+$/g,""):""}var _b=n(156),Eb=n.n(_b),Sb=Cb;function Cb(e){this.options=e||{}}Cb.prototype.emit=function(e){return e},Cb.prototype.visit=function(e){return this[e.type](e)},Cb.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 wb=Ib;function Ib(e){Sb.call(this,e)}Eb()(Ib,Sb),Ib.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},Ib.prototype.comment=function(e){return this.emit("",e.position)},Ib.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},Ib.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ib.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("}")},Ib.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},Ib.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},Ib.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ib.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},Ib.prototype.keyframe=function(e){var t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},Ib.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("}")},Ib.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},Ib.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},Ib.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},Ib.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("}"):""},Ib.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var Bb=xb;function xb(e){e=e||{},Sb.call(this,e),this.indentation=e.indent}Eb()(xb,Sb),xb.prototype.compile=function(e){return this.stylesheet(e)},xb.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},xb.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},xb.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},xb.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}")},xb.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}")},xb.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},xb.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},xb.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}")},xb.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)+"}")},xb.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")},xb.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}")},xb.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}")},xb.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}")},xb.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},xb.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()+"}"):""},xb.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},xb.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var Pb=function(e,t){try{var n=kb(e),r=hb.a.map(n,(function(e){if(!e)return e;var n=t(e);return this.update(n)}));return o=r,((c=c||{}).compress?new wb(c):new Bb(c)).compile(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var o,c};function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rb(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function Db(e,t){return new URL(e,t).toString()}var Lb=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]};Rb(o)&&r.push(o)}return r}(t.value).map((c=e,function(e){return Nb({},e,{newUrl:"url("+e.before+e.quote+Db(e.value,c)+e.quote+e.after+")"})}));return Nb({},t,{value:(r=t.value,o=n,o.forEach((function(e){r=r.replace(e.source,e.newUrl)})),r)})}var r,o,c;return t}};function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ab(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fb=/^(body|html|:root).*$/,Vb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?Mb({},n,{selectors:n.selectors.map((function(n){return Object(p.includes)(t,n.trim())?n:n.match(Fb)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Hb=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(Vb(t)),r&&o.push(Lb(r)),o.length?Pb(n,Object(m.compose)(o)):n}))};var zb=function(e){var t=e.styles;return Object(d.useEffect)((function(){var e=Hb(t,".editor-styles-wrapper"),n=Object(p.map)(Object(p.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var Ub=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.__experimentalSelectBlockOnInsert,i=e.onSelect,a=void 0===i?p.noop:i,l=Object(g.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return{rootClientId:t=t||r(n)||void 0}})).destinationRootClientId;return Object(d.createElement)(pl,{onSelect:a,rootClientId:l,clientId:n,isAppender:r,showInserterHelpPanel:o,__experimentalSelectBlockOnInsert:c})};function Gb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder;return{clientIds:n(),rootBlocksClientIds:r()}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=Object(g.useDispatch)("core/block-editor"),o=r.duplicateBlocks,c=r.removeBlocks,i=r.insertAfterBlock,a=r.insertBeforeBlock,s=r.multiSelect,u=r.clearSelectedBlock;return Object(l.useShortcut)("core/block-editor/duplicate",Object(d.useCallback)((function(e){e.preventDefault(),o(t)}),[t,o]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/remove",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-after",Object(d.useCallback)((function(e){e.preventDefault(),i(Object(p.last)(t))}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/insert-before",Object(d.useCallback)((function(e){e.preventDefault(),a(Object(p.first)(t))}),[t,a]),{bindGlobal:!0,isDisabled:0===t.length}),Object(l.useShortcut)("core/block-editor/delete-multi-selection",Object(d.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{isDisabled:t.length<1}),Object(l.useShortcut)("core/block-editor/select-all",Object(d.useCallback)((function(e){e.preventDefault(),s(Object(p.first)(n),Object(p.last)(n))}),[n,s])),Object(l.useShortcut)("core/block-editor/unselect",Object(d.useCallback)((function(e){e.preventDefault(),u(),window.getSelection().removeAllRanges()}),[t,u]),{isDisabled:t.length<2}),null}Gb.Register=function(){var e=Object(g.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(d.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(I.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(I.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(I.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(I.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(I.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(I.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(I.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(I.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}})}),[e]),null};var Kb=Gb;function Wb(){var e=Object(g.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(d.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(dr.getScrollContainer)(e);o&&rd()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var qb=[ct.UP,ct.RIGHT,ct.DOWN,ct.LEFT,ct.ENTER,ct.BACKSPACE];var $b=Object(m.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(d.useRef)(),o=Object(d.useRef)(),c=Object(g.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(g.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";document[t]("selectionchange",b),document[t]("mousemove",u)}function u(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(){var e=window.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||l()}function f(e){var t=e.type,n=e.target;!c&&Object(dr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Object(p.includes)(qb,t)}(e))&&a()}return Object(d.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(d.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(dr.isTextField)(t)&&l()}))},onKeyPress:f,onKeyDown:Object(p.over)([f,function(e){!c||e.keyCode!==ct.ESCAPE&&e.keyCode!==ct.TAB||l()}])},t)}));function Yb(){return Zn()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function Xb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Zb=-1!==window.navigator.userAgent.indexOf("Trident"),Qb=new Set([ct.UP,ct.DOWN,ct.LEFT,ct.RIGHT]),Jb=function(e){Object(Kt.a)(r,e);var t,n=(t=r,function(){var e,n=Object(Gt.a)(t);if(Xb()){var r=Object(Gt.a)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Object(Ut.a)(this,e)});function r(){var e;return Object(Vt.a)(this,r),(e=n.apply(this,arguments)).ref=Object(d.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(zt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(zt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(zt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(zt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(zt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(zt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(zt.a)(e)),e}return Object(Ht.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScrollResize,!0),window.addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScrollResize,!0),window.removeEventListener("resize",this.onScrollResize,!0),document.removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&window.cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(dr.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(dr.computeCaretRect)();if(n)if(this.caretRect)if(Qb.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(dr.getScrollContainer)(this.ref.current);if(o){var c=o===document.body,i=c?window.scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/window.innerHeight:(this.caretRect.top-a)/(window.innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?window.innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top<a?this.caretRect=n:c?window.scrollBy(0,r):o.scrollTop+=r}}}}else this.caretRect=n}}},{key:"addSelectionChangeListener",value:function(){document.addEventListener("selectionchange",this.computeCaretRectOnSelectionChange)}},{key:"onKeyDown",value:function(e){var t=this;e.persist(),this.onKeyDown.rafId&&window.cancelAnimationFrame(this.onKeyDown.rafId),this.onKeyDown.rafId=window.requestAnimationFrame((function(){t.maintainCaretPosition(e),delete t.onKeyDown.rafId}))}},{key:"render",value:function(){return Object(d.createElement)("div",{ref:this.ref,onKeyDown:this.onKeyDown,onKeyUp:this.maintainCaretPosition,onMouseDown:this.addSelectionChangeListener,onTouchStart:this.addSelectionChangeListener,className:"block-editor__typewriter"},this.props.children)}}]),r}(d.Component),ef=Zb?function(e){return e.children}:Object(g.withSelect)((function(e){return{selectedBlockClientId:(0,e("core/block-editor").getSelectedBlockClientId)()}}))(Jb)},44:function(e,t){!function(){e.exports=this.wp.blob}()},46:function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},47:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},49:function(e,t){!function(){e.exports=this.wp.a11y}()},5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},50:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function c(){var c,i,a=n,l=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<l;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(c=new Array(l),i=0;i<l;i++)c[i]=arguments[i];return a={args:c,val:e.apply(null,c)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},c.clear=function(){n=null,r=null,o=0},c}},55:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},56:function(e,t,n){var r;!function(o){var c=/^\s+/,i=/\s+$/,a=0,l=o.round,s=o.min,u=o.max,d=o.random;function b(e,t){if(t=t||{},(e=e||"")instanceof b)return e;if(!(this instanceof b))return new b(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,l=null,d=!1,b=!1;"string"==typeof e&&(e=function(e){e=e.replace(c,"").replace(i,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(f=e.r,p=e.g,m=e.b,t={r:255*N(f,255),g:255*N(p,255),b:255*N(m,255)},d=!0,b="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=A(e.s),a=A(e.v),t=function(e,t,n){e=6*N(e,360),t=N(t,100),n=N(n,100);var r=o.floor(e),c=e-r,i=n*(1-t),a=n*(1-c*t),l=n*(1-(1-c)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,r,a),d=!0,b="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=A(e.s),l=A(e.l),t=function(e,t,n){var r,o,c;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:a}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=c,l=c-i;if(o=0===c?0:l/c,c==i)r=0;else{switch(c){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:a}}function m(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function O(e,t,n,r){return[L(M(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s-=t/100,n.s=R(n.s),b(n)}function v(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.s+=t/100,n.s=R(n.s),b(n)}function h(e){return b(e).desaturate(100)}function j(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l+=t/100,n.l=R(n.l),b(n)}function k(e,t){t=0===t?0:t||10;var n=b(e).toRgb();return n.r=u(0,s(255,n.r-l(-t/100*255))),n.g=u(0,s(255,n.g-l(-t/100*255))),n.b=u(0,s(255,n.b-l(-t/100*255))),b(n)}function y(e,t){t=0===t?0:t||10;var n=b(e).toHsl();return n.l-=t/100,n.l=R(n.l),b(n)}function _(e,t){var n=b(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,b(n)}function E(e){var t=b(e).toHsl();return t.h=(t.h+180)%360,b(t)}function S(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+120)%360,s:t.s,l:t.l}),b({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+90)%360,s:t.s,l:t.l}),b({h:(n+180)%360,s:t.s,l:t.l}),b({h:(n+270)%360,s:t.s,l:t.l})]}function w(e){var t=b(e).toHsl(),n=t.h;return[b(e),b({h:(n+72)%360,s:t.s,l:t.l}),b({h:(n+216)%360,s:t.s,l:t.l})]}function I(e,t,n){t=t||6,n=n||30;var r=b(e).toHsl(),o=360/n,c=[b(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(M(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+O(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+O(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:A(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;s<t.length;s++)(r=b.readability(e,t[s]))>l&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return s(1,u(0,e))}function D(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function M(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},6:function(e,t){!function(){e.exports=this.wp.primitives}()},62:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},72:function(e,t){!function(){e.exports=this.wp.viewport}()},8: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}))},88:function(e,t,n){"use strict";t.__esModule=!0;var r=n(164);t.default=r.default},9:function(e,t){!function(){e.exports=this.wp.compose}()}}); |