WordPress/wp-includes/js/dist/block-editor.min.js
youknowriad ebca9841e8 Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1.
This brings the JS packages up to date and is the first step that will allow us 
to include the other block editor updates for WordPress 5.9:
FSE infrastrucutre, site editor and global styles.

Props noisysocks.
See #54337.

Built from https://develop.svn.wordpress.org/trunk@52042


git-svn-id: http://core.svn.wordpress.org/trunk@51634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-08 14:29:21 +00:00

26 lines
506 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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="tr0p")}({"+0ps":function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var o=n("GRId"),r=n("HSyU"),c=n("1CF3"),i=n("1ZqX"),l=n("l3Sj"),a=n("onLe"),s=n("K9lf"),u=n("xTGt");var d=n("BhPs");function b(){const{getBlockName:e}=Object(i.useSelect)(d.a),{getBlockType:t}=Object(i.useSelect)(r.store),{createSuccessNotice:n}=Object(i.useDispatch)(a.store);return Object(o.useCallback)((o,r)=>{let c="";if(1===r.length){var i;const n=r[0],a=null===(i=t(e(n)))||void 0===i?void 0:i.title;c="copy"===o?Object(l.sprintf)(Object(l.__)('Copied "%s" to clipboard.'),a):Object(l.sprintf)(Object(l.__)('Moved "%s" to clipboard.'),a)}else c="copy"===o?Object(l.sprintf)(Object(l._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):Object(l.sprintf)(Object(l._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(c,{type:"snackbar"})},[])}function p(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o}=Object(i.useSelect)(d.a),{flashBlock:l,removeBlocks:a,replaceBlocks:p}=Object(i.useDispatch)(d.a),m=b();return Object(s.useRefEffect)(i=>{function s(s){const d=t();if(0===d.length)return;if(!n()){const{target:e}=s,{ownerDocument:t}=e;if("copy"===s.type||"cut"===s.type?Object(c.documentHasUncollapsedSelection)(t):Object(c.documentHasSelection)(t))return}if(!i.contains(s.target.ownerDocument.activeElement))return;const b=s.defaultPrevented;if(s.preventDefault(),"copy"===s.type||"cut"===s.type){1===d.length&&l(d[0]),m(s.type,d);const t=e(d),n=Object(r.serialize)(t);s.clipboardData.setData("text/plain",n),s.clipboardData.setData("text/html",n)}if("cut"===s.type)a(d);else if("paste"===s.type){if(b)return;const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=Object(c.getFilesFromDataTransfer)(e).filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e));return o.length&&!n&&(n=o.map(e=>`<img src="${Object(u.createBlobURL)(e)}">`).join(""),t=""),{html:n,plainText:t}}(s),i=Object(r.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});p(d,i,i.length-1,-1)}}return i.ownerDocument.addEventListener("copy",s),i.ownerDocument.addEventListener("cut",s),i.ownerDocument.addEventListener("paste",s),()=>{i.ownerDocument.removeEventListener("copy",s),i.ownerDocument.removeEventListener("cut",s),i.ownerDocument.removeEventListener("paste",s)}},[])}t.a=function({children:e}){return Object(o.createElement)("div",{ref:p()},e)}},"+6d5":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("TSYQ"),r=n.n(o),c=n("1ZqX"),i=n("BhPs");function l(e){return Object(c.useSelect)(t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:c,getBlockRootClientId:l,isBlockSelected:a}=t(i.a);if(!a(e))return;const s=n();return s?r()("is-block-moving-mode",{"can-insert-moving-block":o(c(s),l(e))}):void 0},[e])}},"+DUQ":function(e,t,n){"use strict";n.d(t,"animated",(function(){return y}));var o=n("kmrn");n.o(o,"useSpring")&&n.d(t,"useSpring",(function(){return o.useSpring}));var r=n("faye"),c=n("nEW0"),i=n("dfZa");function l(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const a=["style","children","scrollTop","scrollLeft"],s=/^--/;function u(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||s.test(e)||b.hasOwnProperty(e)&&b[e]?(""+t).trim():t+"px"}const d={};let b={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const p=["Webkit","Ms","Moz","O"];b=Object.keys(b).reduce((e,t)=>(p.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),b);const m=["x","y","z"],f=/^(matrix|translate|scale|rotate|skew)/,h=/^(translate)/,g=/^(rotate|skew)/,O=(e,t)=>c.s.num(e)&&0!==e?e+t:e,v=(e,t)=>c.s.arr(e)?e.every(e=>v(e,t)):c.s.num(e)?e===t:parseFloat(e)===t;class j extends i.a{constructor(e){let{x:t,y:n,z:o}=e,r=l(e,m);const i=[],a=[];(t||n||o)&&(i.push([t||0,n||0,o||0]),a.push(e=>[`translate3d(${e.map(e=>O(e,"px")).join(",")})`,v(e,0)])),Object(c.l)(r,(e,t)=>{if("transform"===t)i.push([e||""]),a.push(e=>[e,""===e]);else if(f.test(t)){if(delete r[t],c.s.und(e))return;const n=h.test(t)?"px":g.test(t)?"deg":"";i.push(Object(c.y)(e)),a.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${O(r,n)})`,v(r,0)]:e=>[`${t}(${e.map(e=>O(e,n)).join(",")})`,v(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new k(i,a)),super(r)}}class k extends c.a{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Object(c.k)(this.inputs,(n,o)=>{const r=Object(c.q)(n[0]),[i,l]=this.transforms[o](c.s.arr(r)?r:n.map(c.q));e+=" "+i,t=t&&l}),t?"none":e}observerAdded(e){1==e&&Object(c.k)(this.inputs,e=>Object(c.k)(e,e=>Object(c.r)(e)&&Object(c.c)(e,this)))}observerRemoved(e){0==e&&Object(c.k)(this.inputs,e=>Object(c.k)(e,e=>Object(c.r)(e)&&Object(c.x)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Object(c.d)(this,e)}}const _=["scrollTop","scrollLeft"];o.Globals.assign({batchedUpdates:r.unstable_batchedUpdates,createStringInterpolator:c.g,colors:c.e});const y=Object(i.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,o=t,{style:r,children:c,scrollTop:i,scrollLeft:b}=o,p=l(o,a),m=Object.values(p),f=Object.keys(p).map(t=>n||e.hasAttribute(t)?t:d[t]||(d[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==c&&(e.textContent=c);for(let t in r)if(r.hasOwnProperty(t)){const n=u(t,r[t]);s.test(t)?e.style.setProperty(t,n):e.style[t]=n}f.forEach((t,n)=>{e.setAttribute(t,m[n])}),void 0!==i&&(e.scrollTop=i),void 0!==b&&(e.scrollLeft=b)},createAnimatedStyle:e=>new j(e),getComponentProps:e=>l(e,_)}).animated},"+G0a":function(e,t,n){"use strict";var o=n("HSyU"),r=n("1ZqX"),c=n("GRId"),i=n("BhPs");t.a=(e,t)=>{const{categories:n,collections:l,items:a}=Object(r.useSelect)(t=>{const{getInserterItems:n}=t(i.a),{getCategories:r,getCollections:c}=t(o.store);return{categories:r(),collections:c(),items:n(e)}},[e]);return[a,n,l,Object(c.useCallback)(({name:e,initialAttributes:n,innerBlocks:r},c)=>{const i=Object(o.createBlock)(e,n,Object(o.createBlocksFromInnerBlocksTemplate)(r));t(i,void 0,c)},[t])]}},"+WrK":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));t.a=c},"+gtr":function(e,t,n){"use strict";n.d(t,"a",(function(){return H}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("1ZqX"),a=n("K9lf"),s=n("HSyU"),u=n("tI+e"),d=n("JygI"),b=n("l3Sj"),p=n("wC17"),m=n("7SSY"),f=n("YLtl");const{clearTimeout:h,setTimeout:g}=window;function O({ref:e,isFocused:t,debounceTimeout:n=200,onChange:o=f.noop}){const[c,i]=Object(r.useState)(!1),l=Object(r.useRef)(),a=t=>{null!=e&&e.current&&i(t),o(t)},s=()=>{const n=(null==e?void 0:e.current)&&e.current.matches(":hover");return!t&&!n},u=()=>{const e=l.current;e&&h&&h(e)};return Object(r.useEffect)(()=>()=>u(),[]),{showMovers:c,debouncedShowMovers:e=>{e&&e.stopPropagation(),u(),c||a(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),u(),l.current=g(()=>{s()&&a(!1)},n)}}}function v({ref:e,debounceTimeout:t=200,onChange:n=f.noop}){const[o,c]=Object(r.useState)(!1),{showMovers:i,debouncedShowMovers:l,debouncedHideMovers:a}=O({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),s=Object(r.useRef)(!1),u=()=>(null==e?void 0:e.current)&&e.current.contains(e.current.ownerDocument.activeElement);return Object(r.useEffect)(()=>{const t=e.current,n=()=>{u()&&(c(!0),l())},o=()=>{u()||(c(!1),a())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}},[e,s,c,l,a]),{showMovers:i,gestures:{onMouseMove:l,onMouseLeave:a}}}var j=n("BhPs");function k(){const{selectBlock:e,toggleBlockHighlight:t}=Object(l.useDispatch)(j.a),{firstParentClientId:n,shouldHide:c,hasReducedUI:i}=Object(l.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r}=e(j.a),{hasBlockSupport:c}=e(s.store),i=n(o()),l=i[i.length-1],a=t(l),u=Object(s.getBlockType)(a),d=r();return{firstParentClientId:l,shouldHide:!c(u,"__experimentalParentSelector",!0),hasReducedUI:d.hasReducedUI}},[]),a=Object(p.a)(n),d=Object(r.useRef)(),{gestures:f}=v({ref:d,onChange(e){e&&i||t(n,e)}});return c||void 0===n?null:Object(r.createElement)("div",Object(o.a)({className:"block-editor-block-parent-selector",key:n,ref:d},f),Object(r.createElement)(u.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:Object(b.sprintf)(Object(b.__)("Select %s"),a.title),showTooltip:!0,icon:Object(r.createElement)(m.a,{icon:a.icon})}))}var _=n("wzfx"),y=n("f8JO"),E=n("REKd");function C({blocks:e}){return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right",focusOnMount:!1},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(E.a,{viewportWidth:500,blocks:e})))))}var S=({className:e,possibleBlockTransformations:t,onSelect:n,blocks:o})=>{const[c,i]=Object(r.useState)();return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Transform to"),className:e},c&&Object(r.createElement)(C,{blocks:Object(s.switchToBlockType)(o,c)}),t.map(e=>{const{name:t,icon:o,title:c,isDisabled:l}=e;return Object(r.createElement)(u.MenuItem,{key:t,className:Object(s.getBlockMenuDefaultClassName)(t),onClick:e=>{e.preventDefault(),n(t)},disabled:l,onMouseLeave:()=>i(null),onMouseEnter:()=>i(t)},Object(r.createElement)(m.a,{icon:o,showColors:!0}),c)}))},w=n("7NR9");function B({hoveredBlock:e,onSwitch:t}){const{name:n,clientId:o}=e,[c,i]=Object(r.useState)(),a=Object(l.useSelect)(e=>e(s.store).getBlockType(n),[n]);return Object(r.createElement)(u.MenuGroup,{label:Object(b.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},c&&Object(r.createElement)(C,{blocks:a&&a.example?Object(s.getBlockFromExample)(a.name,{attributes:{...a.example.attributes,className:c},innerBlocks:a.example.innerBlocks}):Object(s.cloneBlock)(e,{className:c})}),Object(r.createElement)(w.a,{clientId:o,onSwitch:t,onHoverClassName:i,itemRole:"menuitem"}))}var I=n("1iEr");const x=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:c=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of c){const o=x(e,t,n);if(o)return o}}},T=(e,t)=>{const n=((e,t)=>{const n=Object(s.__experimentalGetBlockAttributesNamesByRole)(e,"content");return null!=n&&n.length?n.reduce((e,n)=>(t[n]&&(e[n]=t[n]),e),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var P=(e,t)=>Object(r.useMemo)(()=>e.reduce((e,n)=>{const o=((e,t)=>{const n=t.map(e=>Object(s.cloneBlock)(e)),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=x(r,t.name,o);if(n){e=!0,o.add(n.clientId),T(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e},[]),[e,t]);function R({patterns:e,onSelect:t}){return Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},Object(r.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},Object(r.createElement)(u.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview"},Object(r.createElement)("div",{className:"block-editor-block-switcher__preview-title"},Object(b.__)("Preview")),Object(r.createElement)(N,{patterns:e,onSelect:t})))))}function N({patterns:e,onSelect:t}){const n=Object(u.__unstableUseCompositeState)();return Object(r.createElement)(u.__unstableComposite,Object(o.a)({},n,{role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":Object(b.__)("Patterns list")}),e.map(e=>Object(r.createElement)(L,{key:e.name,pattern:e,onSelect:t,composite:n})))}function L({pattern:e,onSelect:t,composite:n}){const c="block-editor-block-switcher__preview-patterns-container",i=Object(a.useInstanceId)(L,c+"-list__item-description");return Object(r.createElement)("div",{className:c+"-list__list-item","aria-label":e.title,"aria-describedby":e.description?i:void 0},Object(r.createElement)(u.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},n,{className:c+"-list__item",onClick:()=>t(e.transformedBlocks)}),Object(r.createElement)(E.a,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),Object(r.createElement)("div",{className:c+"-list__item-title"},e.title)),!!e.description&&Object(r.createElement)(u.VisuallyHidden,{id:i},e.description))}var M=function({blocks:e,patterns:t,onSelect:n}){const[o,c]=Object(r.useState)(!1),i=P(t,e);return i.length?Object(r.createElement)(u.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&Object(r.createElement)(R,{patterns:i,onSelect:n}),Object(r.createElement)(u.MenuItem,{onClick:e=>{e.preventDefault(),c(!o)},icon:I.a},Object(b.__)("Patterns"))):null};const A=({clientIds:e,blocks:t})=>{const{replaceBlocks:n}=Object(l.useDispatch)(j.a),o=Object(p.a)(t[0].clientId),{possibleBlockTransformations:c,canRemove:i,hasBlockStyles:a,icon:d,blockTitle:h,patterns:g}=Object(l.useSelect)(n=>{var r;const{getBlockRootClientId:c,getBlockTransformItems:i,__experimentalGetPatternTransformItems:l}=n(j.a),{getBlockStyles:a,getBlockType:u}=n(s.store),{canRemoveBlocks:d}=n(j.a),b=c(Object(f.castArray)(e)[0]),[{name:p}]=t,m=1===t.length,h=m&&a(p);let g;if(m)g=null==o?void 0:o.icon;else{var O;g=1===Object(f.uniq)(t.map(({name:e})=>e)).length?null===(O=u(p))||void 0===O?void 0:O.icon:_.a}return{possibleBlockTransformations:i(t,b),canRemove:d(e,b),hasBlockStyles:!(null==h||!h.length),icon:g,blockTitle:null===(r=u(p))||void 0===r?void 0:r.title,patterns:l(t,b)}},[e,t,null==o?void 0:o.icon]),O=1===t.length&&Object(s.isReusableBlock)(t[0]),v=1===t.length&&Object(s.isTemplatePart)(t[0]),k=!!c.length&&i,E=!(null==g||!g.length)&&i;if(!a&&!k)return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:h,icon:Object(r.createElement)(m.a,{icon:d,showColors:!0})}));const C=h,w=1===t.length?Object(b.sprintf)(Object(b.__)("%s: Change block type or style"),h):Object(b.sprintf)(Object(b._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),I=a||k||E;return Object(r.createElement)(u.ToolbarGroup,null,Object(r.createElement)(u.ToolbarItem,null,o=>Object(r.createElement)(u.DropdownMenu,{className:"block-editor-block-switcher",label:C,popoverProps:{position:"bottom right",isAlternate:!0,className:"block-editor-block-switcher__popover"},icon:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m.a,{icon:d,className:"block-editor-block-switcher__toggle",showColors:!0}),(O||v)&&Object(r.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},Object(r.createElement)(y.a,{clientId:e}))),toggleProps:{describedBy:w,...o},menuProps:{orientation:"both"}},({onClose:o})=>I&&Object(r.createElement)("div",{className:"block-editor-block-switcher__container"},E&&Object(r.createElement)(M,{blocks:t,patterns:g,onSelect:t=>{(t=>{n(e,t)})(t),o()}}),k&&Object(r.createElement)(S,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:c,blocks:t,onSelect:r=>{(o=>{n(e,Object(s.switchToBlockType)(t,o))})(r),o()}}),a&&Object(r.createElement)(B,{hoveredBlock:t[0],onSwitch:o})))))};var D=({clientIds:e})=>{const t=Object(l.useSelect)(t=>t(j.a).getBlocksByClientId(e),[e]);return!t.length||t.some(e=>!e)?null:Object(r.createElement)(A,{clientIds:e,blocks:t})},F=n("fOYa"),z=n("U1WI");function H({hideDragHandle:e}){const{blockClientIds:t,blockClientId:n,blockType:c,hasFixedToolbar:b,hasReducedUI:p,isValid:m,isVisual:f}=Object(l.useSelect)(e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:c,getSettings:i}=e(j.a),l=o(),a=l[0],u=c(a),d=i();return{blockClientIds:l,blockClientId:a,blockType:a&&Object(s.getBlockType)(t(a)),hasFixedToolbar:d.hasFixedToolbar,hasReducedUI:d.hasReducedUI,rootClientId:u,isValid:l.every(e=>r(e)),isVisual:l.every(e=>"visual"===n(e))}},[]),{toggleBlockHighlight:h}=Object(l.useDispatch)(j.a),g=Object(r.useRef)(),{showMovers:O,gestures:_}=v({ref:g,onChange(e){e&&p||h(n,e)}}),y=Object(a.useViewportMatch)("medium","<")||b;if(c&&!Object(s.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;const E=y||O;if(0===t.length)return null;const C=m&&f,S=t.length>1,w=i()("block-editor-block-toolbar",E&&"is-showing-movers");return Object(r.createElement)("div",{className:w},!S&&!y&&Object(r.createElement)(k,{clientIds:t}),Object(r.createElement)("div",Object(o.a)({ref:g},_),(C||S)&&Object(r.createElement)(u.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(r.createElement)(D,{clientIds:t}),Object(r.createElement)(d.a,{clientIds:t,hideDragHandle:e||p}))),C&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(F.b.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),Object(r.createElement)(F.b.Slot,{group:"other",className:"block-editor-block-toolbar__slot"})),Object(r.createElement)(z.a,{clientIds:t}))}},"//Lo":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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},"/Hvg":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),i=n("Tqx9");var l=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"}));var a=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"}));var s=Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const u=[{name:Object(c.__)("Uppercase"),value:"uppercase",icon:l},{name:Object(c.__)("Lowercase"),value:"lowercase",icon:a},{name:Object(c.__)("Capitalize"),value:"capitalize",icon:s}];function d({value:e,onChange:t}){return Object(o.createElement)("fieldset",{className:"block-editor-text-transform-control"},Object(o.createElement)("legend",null,Object(c.__)("Letter case")),Object(o.createElement)("div",{className:"block-editor-text-transform-control__buttons"},u.map(n=>Object(o.createElement)(r.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:e===n.value,"aria-label":n.name,onClick:()=>t(e===n.value?void 0:n.value)}))))}},"/QNa":function(e,t,n){"use strict";var o=n("GRId"),r=n("1ZqX"),c=n("wx14"),i=n("K9lf"),l=n("BhPs"),a=n("AHN3");var s=Object(i.createHigherOrderComponent)(e=>Object(r.withRegistry)(({useSubRegistry:t=!0,registry:n,...i})=>{if(!t)return Object(o.createElement)(e,Object(c.a)({registry:n},i));const[s,u]=Object(o.useState)(null);return Object(o.useEffect)(()=>{const e=Object(r.createRegistry)({},n);e.registerStore(a.a,l.b),u(e)},[n]),s?Object(o.createElement)(r.RegistryProvider,{value:s},Object(o.createElement)(e,Object(c.a)({registry:s},i))):null}),"withRegistryProvider"),u=n("JGYp"),d=n("cDhi");t.a=s((function(e){const{children:t,settings:n}=e,{updateSettings:c}=Object(r.useDispatch)(l.a);return Object(o.useEffect)(()=>{c(n)},[n]),Object(u.a)(e),Object(o.createElement)(d.b,null,t)}))},"/lNF":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("HSyU"),r=n("1ZqX"),c=n("1CF3"),i=n("BhPs");function l(e,t,n,r,c,i,l){return a=>{const{srcRootClientId:s,srcClientIds:u,type:d,blocks:b}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(a);if("inserter"===d){l();const n=b.map(e=>Object(o.cloneBlock)(e));i(n,t,e,!0,null)}if("block"===d){const o=n(u[0],s);if(s===e&&o===t)return;if(u.includes(e)||r(u).some(t=>t===e))return;const i=s===e,l=u.length;c(u,s,e,i&&o<t?t-l:t)}}}function a(e,t){const n=Object(r.useSelect)(e=>e(i.a).getSettings().mediaUpload,[]),{canInsertBlockType:a,getBlockIndex:s,getClientIdsOfDescendants:u}=Object(r.useSelect)(i.a),{insertBlocks:d,moveBlocksToPosition:b,updateBlockAttributes:p,clearSelectedBlock:m}=Object(r.useDispatch)(i.a),f=l(e,t,s,u,b,d,m),h=function(e,t,n,r,c,i){return l=>{if(!n)return;const a=Object(o.findTransform)(Object(o.getBlockTransforms)("from"),t=>"files"===t.type&&c(t.blockName,e)&&t.isMatch(l));if(a){const n=a.transform(l,r);i(n,t,e)}}}(e,t,n,p,a,d),g=function(e,t,n){return r=>{const c=Object(o.pasteHandler)({HTML:r,mode:"BLOCKS"});c.length&&n(c,t,e)}}(e,t,d);return e=>{const t=Object(c.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");t.length?h(t):n?g(n):f(e)}}},"0E5u":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("kWXm"),l=n("DmX/"),a=n("suLj"),s=n("bTSr"),u=n("l3Sj");const d={left:i.a,center:l.a,right:a.a,"space-between":s.a};var b=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:b,popoverProps:p,isToolbar:m}){const f=e=>{n(e===b?void 0:e)},h=b?d[b]:d.left,g=[{name:"left",icon:i.a,title:Object(u.__)("Justify items left"),isActive:"left"===b,onClick:()=>f("left")},{name:"center",icon:l.a,title:Object(u.__)("Justify items center"),isActive:"center"===b,onClick:()=>f("center")},{name:"right",icon:a.a,title:Object(u.__)("Justify items right"),isActive:"right"===b,onClick:()=>f("right")},{name:"space-between",icon:s.a,title:Object(u.__)("Space between items"),isActive:"space-between"===b,onClick:()=>f("space-between")}],O=m?c.ToolbarGroup:c.ToolbarDropdownMenu,v=m?{isCollapsed:t}:{};return Object(r.createElement)(O,Object(o.a)({icon:h,popoverProps:p,label:Object(u.__)("Change items justification"),controls:g.filter(t=>e.includes(t.name))},v))};function p(e){return Object(r.createElement)(b,Object(o.a)({},e,{isToolbar:!1}))}function m(e){return Object(r.createElement)(b,Object(o.a)({},e,{isToolbar:!0}))}},"14PQ":function(e,t,n){"use strict";n.d(t,"gc",(function(){return o.b})),n.d(t,"hc",(function(){return o.c})),n.d(t,"ic",(function(){return o.d})),n.d(t,"fc",(function(){return o.a})),n.d(t,"uc",(function(){return o.e})),n.d(t,"xb",(function(){return r.a})),n.d(t,"nc",(function(){return r.e})),n.d(t,"yb",(function(){return r.b})),n.d(t,"mc",(function(){return r.d})),n.d(t,"Rb",(function(){return r.c})),n.d(t,"jc",(function(){return c.b})),n.d(t,"kc",(function(){return c.c})),n.d(t,"lc",(function(){return c.d})),n.d(t,"I",(function(){return c.a})),n.d(t,"vc",(function(){return c.e})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return T.a})),n.d(t,"e",(function(){return T.b})),n.d(t,"nb",(function(){return N})),n.d(t,"lb",(function(){return M})),n.d(t,"f",(function(){return z})),n.d(t,"mb",(function(){return G})),n.d(t,"h",(function(){return U.a})),n.d(t,"i",(function(){return W.b})),n.d(t,"m",(function(){return W.a})),n.d(t,"g",(function(){return Y})),n.d(t,"j",(function(){return X.a})),n.d(t,"pc",(function(){return k.c})),n.d(t,"n",(function(){return C.a})),n.d(t,"r",(function(){return Be})),n.d(t,"pb",(function(){return xe})),n.d(t,"ob",(function(){return We})),n.d(t,"qb",(function(){return $e})),n.d(t,"A",(function(){return nt})),n.d(t,"z",(function(){return tt})),n.d(t,"rb",(function(){return ot.a})),n.d(t,"sb",(function(){return rt.a})),n.d(t,"C",(function(){return ct.a})),n.d(t,"B",(function(){return ct.b})),n.d(t,"D",(function(){return at})),n.d(t,"E",(function(){return ut})),n.d(t,"F",(function(){return dt.a})),n.d(t,"ub",(function(){return bt.a})),n.d(t,"vb",(function(){return pt.a})),n.d(t,"wb",(function(){return mt.a})),n.d(t,"Eb",(function(){return ft.a})),n.d(t,"Ob",(function(){return ht.a})),n.d(t,"Pb",(function(){return gt.a})),n.d(t,"tb",(function(){return st.a})),n.d(t,"Lb",(function(){return Ot.a})),n.d(t,"Ab",(function(){return on})),n.d(t,"zb",(function(){return qt})),n.d(t,"Bb",(function(){return cn})),n.d(t,"J",(function(){return ln.a})),n.d(t,"rc",(function(){return ln.b})),n.d(t,"M",(function(){return an.b})),n.d(t,"L",(function(){return an.a})),n.d(t,"O",(function(){return sn.b})),n.d(t,"N",(function(){return sn.a})),n.d(t,"Gb",(function(){return Hn})),n.d(t,"Hb",(function(){return xn})),n.d(t,"Jb",(function(){return yn})),n.d(t,"Ib",(function(){return kn})),n.d(t,"P",(function(){return Vn.a})),n.d(t,"Kb",(function(){return Se})),n.d(t,"R",(function(){return $n})),n.d(t,"Q",(function(){return to})),n.d(t,"S",(function(){return qn})),n.d(t,"T",(function(){return Kn})),n.d(t,"X",(function(){return no})),n.d(t,"Y",(function(){return Ro})),n.d(t,"Nb",(function(){return Lo})),n.d(t,"ab",(function(){return xo})),n.d(t,"bb",(function(){return Mo})),n.d(t,"cb",(function(){return Ao})),n.d(t,"Yb",(function(){return Do})),n.d(t,"eb",(function(){return zo})),n.d(t,"Qb",(function(){return Ho})),n.d(t,"gb",(function(){return gn})),n.d(t,"hb",(function(){return Wo})),n.d(t,"ib",(function(){return Jn})),n.d(t,"Cb",(function(){return Yo})),n.d(t,"tc",(function(){return lt})),n.d(t,"Ub",(function(){return Xo.a})),n.d(t,"Xb",(function(){return Zo.a})),n.d(t,"Mb",(function(){return Qo})),n.d(t,"Tb",(function(){return Jo})),n.d(t,"o",(function(){return ur})),n.d(t,"p",(function(){return dr.c})),n.d(t,"qc",(function(){return br.a})),n.d(t,"Db",(function(){return pr.b})),n.d(t,"q",(function(){return mr.a})),n.d(t,"s",(function(){return Te.a})),n.d(t,"t",(function(){return fr.a})),n.d(t,"Zb",(function(){return fr.b})),n.d(t,"u",(function(){return hr.a})),n.d(t,"v",(function(){return gr.a})),n.d(t,"w",(function(){return F.a})),n.d(t,"x",(function(){return Or.a})),n.d(t,"y",(function(){return Er})),n.d(t,"G",(function(){return Cr.a})),n.d(t,"bc",(function(){return Cr.b})),n.d(t,"H",(function(){return Sr.a})),n.d(t,"Vb",(function(){return wr.a})),n.d(t,"K",(function(){return Br.a})),n.d(t,"Fb",(function(){return xr})),n.d(t,"k",(function(){return Pr})),n.d(t,"U",(function(){return Rr})),n.d(t,"V",(function(){return Nr.a})),n.d(t,"W",(function(){return Dr})),n.d(t,"ec",(function(){return Ar})),n.d(t,"cc",(function(){return Mr})),n.d(t,"Z",(function(){return Fr})),n.d(t,"db",(function(){return tr})),n.d(t,"fb",(function(){return Gr})),n.d(t,"dc",(function(){return Vr})),n.d(t,"jb",(function(){return Ur.a})),n.d(t,"kb",(function(){return Wr.a})),n.d(t,"ac",(function(){return Kr})),n.d(t,"oc",(function(){return ce.a})),n.d(t,"Wb",(function(){return $r.a})),n.d(t,"Sb",(function(){return Xr})),n.d(t,"l",(function(){return Zr.a})),n.d(t,"sc",(function(){return it.a}));var o=n("5gPN"),r=n("zmSX"),c=n("9XVa"),i=n("wx14"),l=n("GRId"),a=n("YLtl"),s=n("l3Sj"),u=n("tI+e"),d=n("fPbg"),b=n("plpT"),p=n("ziDm");const m=[{icon:d.a,title:Object(s.__)("Align text left"),align:"left"},{icon:b.a,title:Object(s.__)("Align text center"),align:"center"},{icon:p.a,title:Object(s.__)("Align text right"),align:"right"}],f={position:"bottom right",isAlternate:!0};var h=function({value:e,onChange:t,alignmentControls:n=m,label:o=Object(s.__)("Align"),describedBy:r=Object(s.__)("Change text alignment"),isCollapsed:c=!0,isToolbar:b}){function h(n){return()=>t(e===n?void 0:n)}const g=Object(a.find)(n,t=>t.align===e),O=b?u.ToolbarGroup:u.ToolbarDropdownMenu,v=b?{isCollapsed:c}:{};return Object(l.createElement)(O,Object(i.a)({icon:g?g.icon:Object(s.isRTL)()?p.a:d.a,label:o,toggleProps:{describedBy:r},popoverProps:f,controls:n.map(t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:c?"menuitemradio":void 0,onClick:h(n)}})},v))};function g(e){return Object(l.createElement)(h,Object(i.a)({},e,{isToolbar:!1}))}function O(e){return Object(l.createElement)(h,Object(i.a)({},e,{isToolbar:!0}))}var v=n("g56x"),j=n("HSyU"),k=n("ur0x"),_=n("1ZqX"),y=n("pOGT"),E=n("+G0a"),C=n("7SSY"),S=n("BhPs");var w={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=Object(_.useSelect)(e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e(S.a),r=t();return{selectedBlockName:r?n(r):null,rootClientId:o().rootClientId}},[]),[o,r,c]=Object(E.a)(t,a.noop),i=Object(l.useMemo)(()=>(e.trim()?Object(y.a)(o,r,c,e):Object(a.orderBy)(o,["frecency"],["desc"])).filter(e=>e.name!==n).slice(0,9),[e,n,o,r,c]);return[Object(l.useMemo)(()=>i.map(e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:"block-"+e.id,value:e,label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.a,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}),[i])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:Object(j.createBlock)(t,n,Object(j.createBlocksFromInnerBlocksTemplate)(o))}}};const B=[];function I({completers:e=B}){const{name:t}=Object(k.c)();return Object(l.useMemo)(()=>{let n=e;return(t===Object(j.getDefaultBlockName)()||Object(j.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=n.concat([w])),Object(v.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map(a.clone)),n=Object(v.applyFilters)("editor.Autocomplete.completers",n,t)),n},[e,t])}var x=function(e){return Object(l.createElement)(u.Autocomplete,Object(i.a)({},e,{completers:I(e)}))},T=n("vtO0"),P=n("Tqx9");var R=Object(l.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(P.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var N=function({isActive:e,label:t=Object(s.__)("Toggle full height"),onToggle:n,isDisabled:o}){return Object(l.createElement)(u.ToolbarButton,{isActive:e,icon:R,label:t,onClick:()=>n(!e),disabled:o})},L=n("RxS6");var M=function(e){const{label:t=Object(s.__)("Change matrix alignment"),onChange:n=a.noop,value:o="center",isDisabled:r}=e,c=Object(l.createElement)(u.__experimentalAlignmentMatrixControl.Icon,{value:o}),i="block-editor-block-alignment-matrix-control";return Object(l.createElement)(u.Dropdown,{position:"bottom right",className:i,popoverProps:{className:"block-editor-block-alignment-matrix-control__popover",isAlternate:!0},renderToggle:({onToggle:e,isOpen:n})=>Object(l.createElement)(u.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==L.DOWN||(t.preventDefault(),e())},label:t,icon:c,showTooltip:!0,disabled:r}),renderContent:()=>Object(l.createElement)(u.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})},A=n("iClF");var D=Object(l.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(P.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),F=n("f8JO");var z=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=Object(_.useDispatch)(S.a),{clientId:o,parents:r,hasSelection:c}=Object(_.useSelect)(e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getBlockParents:o}=e(S.a),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}},[]),i=e||Object(s.__)("Document");return Object(l.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(s.__)("Block breadcrumb")},Object(l.createElement)("li",{className:c?void 0:"block-editor-block-breadcrumb__current","aria-current":c?void 0:"true"},c&&Object(l.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},i),!c&&i,!!o&&Object(l.createElement)(A.a,{icon:D,className:"block-editor-block-breadcrumb__separator"})),r.map(e=>Object(l.createElement)("li",{key:e},Object(l.createElement)(u.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},Object(l.createElement)(F.a,{clientId:e})),Object(l.createElement)(A.a,{icon:D,className:"block-editor-block-breadcrumb__separator"}))),!!o&&Object(l.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(l.createElement)(F.a,{clientId:o})))},H=n("TSYQ"),V=n.n(H);function G({clientId:e,tagName:t="div",wrapperProps:n,className:o}){const[r,c]=Object(l.useState)(!0),[a,s]=Object(l.useState)(!1),{isParentSelected:u,hasChildSelected:d,isDraggingBlocks:b,isParentHighlighted:p}=Object(_.useSelect)(t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o,isDraggingBlocks:r,isBlockHighlighted:c}=t(S.a);return{isParentSelected:n(e),hasChildSelected:o(e,!0),isDraggingBlocks:r(),isParentHighlighted:c(e)}},[e]),m=V()("block-editor-block-content-overlay",null==n?void 0:n.className,o,{"overlay-active":r,"parent-highlighted":p,"is-dragging-blocks":b});return Object(l.useEffect)(()=>{u||d||r||c(!0),u&&!a&&r&&c(!1),d&&r&&c(!1)},[u,d,r,a]),Object(l.createElement)(t,Object(i.a)({},n,{className:m,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onMouseUp:r?()=>c(!1):void 0}),null==n?void 0:n.children)}var U=n("uoCR"),W=n("fOYa");const q=()=>Object(l.createElement)(u.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Object(l.createElement)(u.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"})),K=({style:e,className:t})=>Object(l.createElement)("div",{className:"block-library-colors-selector__icon-container"},Object(l.createElement)("div",{className:t+" block-library-colors-selector__state-selection",style:e},Object(l.createElement)(q,null))),$=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>Object(l.createElement)(u.ToolbarGroup,null,Object(l.createElement)(u.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:Object(s.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==L.DOWN||(e.preventDefault(),n())},icon:Object(l.createElement)(t,null,Object(l.createElement)(e,null,Object(l.createElement)(K,null)))}));var Y=({children:e,...t})=>Object(l.createElement)(u.Dropdown,{position:"bottom right",className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:$(t),renderContent:()=>e}),X=n("JRTi"),Z=n("OzlF"),Q=n("K9lf"),J=n("VKE3"),ee=n("+DUQ"),te=n("Xkls");const ne=Object(ee.animated)(u.__experimentalTreeGridRow);function oe({isSelected:e,position:t,level:n,rowCount:o,children:r,className:c,path:a,...s}){const u=Object(te.a)({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:a});return Object(l.createElement)(ne,Object(i.a)({ref:u,className:V()("block-editor-list-view-leaf",c),level:n,positionInSet:t,setSize:o},s),r)}var re=n("9Ma0"),ce=n("wC17");function ie({onClick:e}){return Object(l.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true"},Object(l.createElement)(A.a,{icon:D}))}var le=Object(l.forwardRef)((function e({className:t,block:{clientId:n},isSelected:o,onClick:r,onToggleExpanded:c,position:i,siblingBlockCount:a,level:d,tabIndex:b,onFocus:p,onDragStart:m,onDragEnd:f,draggable:h},g){const O=Object(ce.a)(n),v="list-view-block-select-button__"+Object(Q.useInstanceId)(e),j=((e,t,n)=>Object(s.sprintf)(Object(s.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(i,a,d);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.Button,{className:V()("block-editor-list-view-block-select-button",t),onClick:r,"aria-describedby":v,ref:g,tabIndex:b,onFocus:p,onDragStart:m,onDragEnd:f,draggable:h},Object(l.createElement)(ie,{onClick:c}),Object(l.createElement)(C.a,{icon:null==O?void 0:O.icon,showColors:!0}),Object(l.createElement)(F.a,{clientId:n}),(null==O?void 0:O.anchor)&&Object(l.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor"},O.anchor),o&&Object(l.createElement)(u.VisuallyHidden,null,Object(s.__)("(selected block)"))),Object(l.createElement)("div",{className:"block-editor-list-view-block-select-button__description",id:v},j))})),ae=n("ZAjO");var se=Object(l.forwardRef)(({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:c,level:a,...s},u)=>{const{clientId:d}=n,{blockMovingClientId:b,selectedBlockInBlockEditor:p}=Object(_.useSelect)(e=>{const{getBlockRootClientId:t,hasBlockMovingClientId:n,getSelectedBlockClientId:o}=e(S.a);return{rootClientId:t(d)||"",blockMovingClientId:n(),selectedBlockInBlockEditor:o()}},[d]),m=b&&p===d,f=V()("block-editor-list-view-block-contents",{"is-dropping-before":m});return Object(l.createElement)(ae.a,{clientIds:[n.clientId]},({draggable:d,onDragStart:b,onDragEnd:p})=>Object(l.createElement)(le,Object(i.a)({ref:u,className:f,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:c,level:a,draggable:d,onDragStart:b,onDragEnd:p},s)))}),ue=n("1eGn");const de=Object(l.createContext)({__experimentalFeatures:!1,__experimentalPersistentListViewFeatures:!1}),be=()=>Object(l.useContext)(de);var pe=Object(l.memo)((function({block:e,isDragged:t,isSelected:n,isBranchSelected:o,selectBlock:r,position:c,level:i,rowCount:a,siblingBlockCount:s,showBlockMovers:d,path:b,isExpanded:p}){const m=Object(l.useRef)(null),[f,h]=Object(l.useState)(!1),{clientId:g}=e,{toggleBlockHighlight:O}=Object(_.useDispatch)(S.a),{__experimentalFeatures:v,__experimentalPersistentListViewFeatures:j,__experimentalHideContainerBlockActions:k,isTreeGridMounted:y,expand:E,collapse:C}=be(),w=d&&s>0,B=V()("block-editor-list-view-block__mover-cell",{"is-visible":f||n}),I=V()("block-editor-list-view-block__menu-cell",{"is-visible":f||n});Object(l.useEffect)(()=>{j&&!y&&n&&m.current.focus()},[]);const x=j?O:()=>{},T=Object(l.useCallback)(()=>{h(!0),x(g,!0)},[g,h,x]),P=Object(l.useCallback)(()=>{h(!1),x(g,!1)},[g,h,x]),R=Object(l.useCallback)(e=>{e.stopPropagation(),r(g)},[g,r]),N=Object(l.useCallback)(e=>{e.stopPropagation(),!0===p?C(g):!1===p&&E(g)},[g,E,C,p]),L=v&&(!k||k&&i>1),M=v&&!L;let A;w?A=2:M&&(A=3);const D=V()({"is-selected":n,"is-branch-selected":j&&o,"is-dragging":t,"has-single-cell":M});return Object(l.createElement)(oe,{className:D,onMouseEnter:T,onMouseLeave:P,onFocus:T,onBlur:P,level:i,position:c,rowCount:a,path:b,id:"list-view-block-"+g,"data-block":g,isExpanded:p},Object(l.createElement)(u.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:A,ref:m},({ref:t,tabIndex:o,onFocus:r})=>Object(l.createElement)("div",{className:"block-editor-list-view-block__contents-container"},Object(l.createElement)(se,{block:e,onClick:R,onToggleExpanded:N,isSelected:n,position:c,siblingBlockCount:s,level:i,ref:t,tabIndex:o,onFocus:r}))),w&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.__experimentalTreeGridCell,{className:B,withoutGridItem:!0},Object(l.createElement)(u.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(l.createElement)(re.b,{orientation:"vertical",clientIds:[g],ref:e,tabIndex:t,onFocus:n})),Object(l.createElement)(u.__experimentalTreeGridItem,null,({ref:e,tabIndex:t,onFocus:n})=>Object(l.createElement)(re.a,{orientation:"vertical",clientIds:[g],ref:e,tabIndex:t,onFocus:n})))),L&&Object(l.createElement)(u.__experimentalTreeGridCell,{className:I},({ref:e,tabIndex:t,onFocus:n})=>Object(l.createElement)(ue.a,{clientIds:[g],icon:J.a,toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,__experimentalSelectBlock:R})))}));function me(e,t,n){var o;if(null==n?void 0:n.includes(e.clientId))return 0;return null===(o=t[e.clientId])||void 0===o||o?1+e.innerBlocks.reduce(fe(t,n),0):1}const fe=(e,t)=>(n,o)=>{var r;if(null==t?void 0:t.includes(o.clientId))return n;return(null===(r=e[o.clientId])||void 0===r||r)&&o.innerBlocks.length>0?n+me(o,e,t):n+1};function he(e){const{blocks:t,selectBlock:n,showBlockMovers:o,showNestedBlocks:r,selectedClientIds:c,level:i=1,path:s="",isBranchSelected:u=!1,listPosition:d=0,fixedListWindow:b}=e,{expandedState:p,draggedClientIds:m,__experimentalPersistentListViewFeatures:f}=be(),h=Object(a.compact)(t),g=h.length;let O=d;return Object(l.createElement)(l.Fragment,null,h.map((e,t)=>{var d;const{clientId:v,innerBlocks:j}=e;t>0&&(O+=me(h[t-1],p,m));const k=f,{itemInView:y}=b,E=!k||y(O),C=t+1,S=s.length>0?`${s}_${C}`:""+C,w=r&&!!j&&!!j.length,B=w?null===(d=p[v])||void 0===d||d:void 0,I=!(null==m||!m.includes(v)),x=I||E,T=((e,t)=>Object(a.isArray)(t)&&t.length?-1!==t.indexOf(e):t===e)(v,c),P=u||T&&w;return Object(l.createElement)(_.AsyncModeProvider,{key:v,value:!T},x&&Object(l.createElement)(pe,{block:e,selectBlock:n,isSelected:T,isBranchSelected:P,isDragged:I,level:i,position:C,rowCount:g,siblingBlockCount:g,showBlockMovers:o,path:S,isExpanded:B,listPosition:O}),!x&&Object(l.createElement)("tr",null,Object(l.createElement)("td",{className:"block-editor-list-view-placeholder"})),w&&B&&!I&&Object(l.createElement)(he,{blocks:j,selectBlock:n,showBlockMovers:o,showNestedBlocks:r,level:i+1,path:S,listPosition:O+1,fixedListWindow:b,isBranchSelected:P,selectedClientIds:c}))}))}he.defaultProps={selectBlock:()=>{}};var ge=Object(l.memo)(he);function Oe({listViewRef:e,blockDropTarget:t}){const{rootClientId:n,clientId:o,dropPosition:r}=t||{},[c,i]=Object(l.useMemo)(()=>{if(!e.current)return[];return[n?e.current.querySelector(`[data-block="${n}"]`):void 0,o?e.current.querySelector(`[data-block="${o}"]`):void 0]},[n,o]),a=i||c,s=Object(l.useCallback)(()=>{if(!c)return 0;const e=a.getBoundingClientRect();return c.querySelector(".block-editor-block-icon").getBoundingClientRect().right-e.left},[c,a]),d=Object(l.useMemo)(()=>{if(!a)return{};const e=s();return{width:a.offsetWidth-e}},[s,a]),b=Object(l.useCallback)(()=>{if(!a)return{};const e=a.ownerDocument,t=a.getBoundingClientRect(),n=s(),o={left:t.left+n,right:t.right,width:0,height:t.height,ownerDocument:e};return"top"===r?{...o,top:t.top,bottom:t.top}:"bottom"===r||"inside"===r?{...o,top:t.bottom,bottom:t.bottom}:{}},[a,r,s]);return a?Object(l.createElement)(u.Popover,{noArrow:!0,animate:!1,getAnchorRect:b,focusOnMount:!1,className:"block-editor-list-view-drop-indicator"},Object(l.createElement)("div",{style:d,className:"block-editor-list-view-drop-indicator__line"})):null}var ve=n("vIlp"),je=n("/lNF");function ke(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}const _e=["top","bottom"];function ye(){const{getBlockRootClientId:e,getBlockIndex:t,getBlockCount:n,getDraggedBlockClientIds:o,canInsertBlocks:r}=Object(_.useSelect)(S.a),[c,i]=Object(l.useState)(),{rootClientId:a,blockIndex:s}=c||{},u=Object(je.a)(a,s),d=o(),b=Object(Q.useThrottle)(Object(l.useCallback)((o,c)=>{const l={x:o.clientX,y:o.clientY},a=!(null==d||!d.length),s=function(e,t){let n,o,r,c;for(const i of e){if(i.isDraggedBlock)continue;const l=i.element.getBoundingClientRect(),[a,s]=Object(ve.a)(t,l,_e),u=ke(t,l);if(void 0===r||a<r||u){r=a;const t=e.indexOf(i),d=e[t-1];if("top"===s&&d&&d.rootClientId===i.rootClientId&&!d.isDraggedBlock?(o=d,n="bottom",c=d.element.getBoundingClientRect()):(o=i,n=s,c=l),u)break}}if(!o)return;const i="bottom"===n;if(i&&o.canInsertDraggedBlocksAsChild&&(o.innerBlockCount>0||function(e,t){const n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:o.clientId,blockIndex:0,dropPosition:"inside"};if(!o.canInsertDraggedBlocksAsSibling)return;const l=i?1:0;return{rootClientId:o.rootClientId,clientId:o.clientId,blockIndex:o.blockIndex+l,dropPosition:n}}(Array.from(c.querySelectorAll("[data-block]")).map(o=>{const c=o.dataset.block,i=e(c);return{clientId:c,rootClientId:i,blockIndex:t(c,i),element:o,isDraggedBlock:!!a&&d.includes(c),innerBlockCount:n(c),canInsertDraggedBlocksAsSibling:!a||r(d,i),canInsertDraggedBlocksAsChild:!a||r(d,c)}}),l);s&&i(s)},[d]),200);return{ref:Object(Q.__experimentalUseDropZone)({onDrop:u,onDragOver(e){b(e,e.currentTarget)},onDragEnd(){b.cancel(),i(null)}}),target:c}}const Ee=()=>{},Ce=(e,t)=>{switch(t.type){case"expand":return{...e,[t.clientId]:!0};case"collapse":return{...e,[t.clientId]:!1};default:return e}};var Se=Object(l.forwardRef)((function({blocks:e,onSelect:t=Ee,__experimentalFeatures:n,__experimentalPersistentListViewFeatures:o,__experimentalHideContainerBlockActions:r,showNestedBlocks:c,showBlockMovers:a,...d},b){const{clientIdsTree:p,draggedClientIds:m,selectedClientIds:f}=function(e){return Object(_.useSelect)(t=>{const{getDraggedBlockClientIds:n,getSelectedBlockClientIds:o,__unstableGetClientIdsTree:r}=t(S.a);return{selectedClientIds:o(),draggedClientIds:n(),clientIdsTree:e||r()}},[e])}(e),{selectBlock:h}=Object(_.useDispatch)(S.a),{visibleBlockCount:g}=Object(_.useSelect)(e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(S.a),o=(null==m?void 0:m.length)>0?n(m).length+1:0;return{visibleBlockCount:t()-o}},[m]),O=Object(l.useCallback)(e=>{h(e),t(e)},[h,t]),[v,j]=Object(l.useReducer)(Ce,{}),{ref:k,target:y}=ye(),E=Object(l.useRef)(),C=Object(Q.useMergeRefs)([E,k,b]),w=Object(l.useRef)(!1);Object(l.useEffect)(()=>{w.current=!0},[]);const[B]=Object(Q.__experimentalUseFixedWindowList)(E,36,g,{useWindowing:o,windowOverscan:40}),I=Object(l.useCallback)(e=>{e&&j({type:"expand",clientId:e})},[j]),x=Object(l.useCallback)(e=>{e&&j({type:"collapse",clientId:e})},[j]),T=Object(l.useCallback)(e=>{var t;I(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},[I]),P=Object(l.useCallback)(e=>{var t;x(null==e||null===(t=e.dataset)||void 0===t?void 0:t.block)},[x]),R=Object(l.useMemo)(()=>({__experimentalFeatures:n,__experimentalPersistentListViewFeatures:o,__experimentalHideContainerBlockActions:r,isTreeGridMounted:w.current,draggedClientIds:m,expandedState:v,expand:I,collapse:x}),[n,o,r,w.current,m,v,I,x]);return Object(l.createElement)(_.AsyncModeProvider,{value:!0},Object(l.createElement)(Oe,{listViewRef:E,blockDropTarget:y}),Object(l.createElement)(u.__experimentalTreeGrid,{className:"block-editor-list-view-tree","aria-label":Object(s.__)("Block navigation structure"),ref:C,onCollapseRow:P,onExpandRow:T},Object(l.createElement)(de.Provider,{value:R},Object(l.createElement)(ge,Object(i.a)({blocks:p,selectBlock:O,showNestedBlocks:c,showBlockMovers:a,fixedListWindow:B,selectedClientIds:f},d)))))}));function we({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return Object(l.createElement)(u.Button,Object(i.a)({},r,{ref:o,icon:Z.a,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:Object(s.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e}))}var Be=Object(l.forwardRef)((function({isDisabled:e,__experimentalFeatures:t,...n},o){const r=Object(_.useSelect)(e=>!!e(S.a).getBlockCount(),[])&&!e;return Object(l.createElement)(u.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:({isOpen:e,onToggle:t})=>Object(l.createElement)(we,Object(i.a)({},n,{innerRef:o,isOpen:e,onToggle:t,isEnabled:r})),renderContent:()=>Object(l.createElement)("div",{className:"block-editor-block-navigation__container"},Object(l.createElement)("p",{className:"block-editor-block-navigation__label"},Object(s.__)("List view")),Object(l.createElement)(Se,{showNestedBlocks:!0,__experimentalFeatures:t}))})})),Ie=n("Civd");var xe=function({icon:e=Ie.a,label:t=Object(s.__)("Choose variation"),instructions:n=Object(s.__)("Select a variation to start with."),variations:o,onSelect:r,allowSkip:c}){const i=V()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return Object(l.createElement)(u.Placeholder,{icon:e,label:t,instructions:n,className:i},Object(l.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(s.__)("Block variations")},o.map(e=>Object(l.createElement)("li",{key:e.name},Object(l.createElement)(u.Button,{variant:"secondary",icon:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(l.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title)))),c&&Object(l.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(l.createElement)(u.Button,{variant:"link",onClick:()=>r()},Object(s.__)("Skip"))))},Te=n("REKd"),Pe=n("2gm7"),Re=n("1iEr"),Ne=n("XNw2"),Le=n("b2RC");const Me="carousel",Ae="grid",De=({onStartBlank:e,onBlockPatternSelect:t})=>Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},Object(l.createElement)(u.Button,{onClick:e},Object(s.__)("Start blank")),Object(l.createElement)(u.Button,{variant:"primary",onClick:t},Object(s.__)("Choose"))),Fe=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},Object(l.createElement)(u.Button,{icon:Pe.a,label:Object(s.__)("Previous pattern"),onClick:e,disabled:0===n}),Object(l.createElement)(u.Button,{icon:Re.a,label:Object(s.__)("Next pattern"),onClick:t,disabled:n===o-1}));var ze=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:c,onBlockPatternSelect:i,onStartBlank:a})=>{const d=e===Me,b=Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},Object(l.createElement)(u.Button,{icon:Ne.a,label:Object(s.__)("Carousel view"),onClick:()=>t(Me),isPressed:d}),Object(l.createElement)(u.Button,{icon:Le.a,label:Object(s.__)("Grid view"),onClick:()=>t(Ae),isPressed:e===Ae}));return Object(l.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},d&&Object(l.createElement)(Fe,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:c}),b,d&&Object(l.createElement)(De,{onBlockPatternSelect:i,onStartBlank:a}))};var He=function(e,t,n){return Object(_.useSelect)(o=>{const{getBlockRootClientId:r,__experimentalGetPatternsByBlockTypes:c,__experimentalGetAllowedPatterns:i}=o(S.a),l=r(e);return n?i(l).filter(n):c(t,l)},[e,t,n])};const Ve=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o})=>{const r=Object(u.__unstableUseCompositeState)(),c="block-editor-block-pattern-setup__container";if(e===Me){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return Object(l.createElement)("div",{className:c},Object(l.createElement)("ul",{className:"carousel-container"},n.map((t,n)=>Object(l.createElement)(Ue,{className:e.get(n)||"",key:t.name,pattern:t}))))}return Object(l.createElement)(u.__unstableComposite,Object(i.a)({},r,{role:"listbox",className:c,"aria-label":Object(s.__)("Patterns list")}),n.map(e=>Object(l.createElement)(Ge,{key:e.name,pattern:e,onSelect:o,composite:r})))};function Ge({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-pattern-setup-list",{blocks:r,title:c,description:a,viewportWidth:s=700}=e,d=Object(Q.useInstanceId)(Ge,o+"__item-description");return Object(l.createElement)("div",{className:o+"__list-item","aria-label":e.title,"aria-describedby":e.description?d:void 0},Object(l.createElement)(u.__unstableCompositeItem,Object(i.a)({role:"option",as:"div"},n,{className:o+"__item",onClick:()=>t(r)}),Object(l.createElement)(Te.a,{blocks:r,viewportWidth:s}),Object(l.createElement)("div",{className:o+"__item-title"},c)),!!a&&Object(l.createElement)(u.VisuallyHidden,{id:d},a))}function Ue({className:e,pattern:t}){const{blocks:n,title:o,description:r}=t,c=Object(Q.useInstanceId)(Ue,"block-editor-block-pattern-setup-list__item-description");return Object(l.createElement)("li",{className:"pattern-slide "+e,"aria-label":o,"aria-describedby":r?c:void 0},Object(l.createElement)(Te.a,{blocks:n,__experimentalLive:!0}),!!r&&Object(l.createElement)(u.VisuallyHidden,{id:c},r))}var We=({clientId:e,blockName:t,filterPatternsFn:n,startBlankComponent:o,onBlockPatternSelect:r})=>{const[c,i]=Object(l.useState)(Me),[a,s]=Object(l.useState)(0),[u,d]=Object(l.useState)(!1),{replaceBlock:b}=Object(_.useDispatch)(S.a),p=He(e,t,n);if(null==p||!p.length||u)return o;const m=r||(t=>{const n=t.map(e=>Object(j.cloneBlock)(e));b(e,n)});return Object(l.createElement)("div",{className:"block-editor-block-pattern-setup view-mode-"+c},Object(l.createElement)(ze,{viewMode:c,setViewMode:i,activeSlide:a,totalSlides:p.length,handleNext:()=>{s(e=>e+1)},handlePrevious:()=>{s(e=>e-1)},onBlockPatternSelect:()=>{m(p[a].blocks)},onStartBlank:()=>{d(!0)}}),Object(l.createElement)(Ve,{viewMode:c,activeSlide:a,patterns:p,onBlockPatternSelect:m}))},qe=n("NWDH"),Ke=n("Btt3");var $e=function({blockClientId:e}){const[t,n]=Object(l.useState)(),{updateBlockAttributes:o}=Object(_.useDispatch)(S.a),{variations:r,blockAttributes:c}=Object(_.useSelect)(t=>{const{getBlockVariations:n}=t(j.store),{getBlockName:o,getBlockAttributes:r}=t(S.a),c=e&&o(e);return{variations:c&&n(c,"transform"),blockAttributes:r(e)}},[e]);if(Object(l.useEffect)(()=>{var e;n(null===(e=Object(Ke.a)(c,r))||void 0===e?void 0:e.name)},[c,r]),null==r||!r.length)return null;const i=r.map(({name:e,title:t,description:n})=>({value:e,label:t,info:n})),a=t=>{o(e,{...r.find(({name:e})=>e===t).attributes})},d="block-editor-block-variation-transforms";return Object(l.createElement)(u.DropdownMenu,{className:d,label:Object(s.__)("Transform to variation"),text:Object(s.__)("Transform to variation"),popoverProps:{position:"bottom center",className:d+"__popover"},icon:qe.a,toggleProps:{iconPosition:"right"}},()=>Object(l.createElement)("div",{className:d+"__container"},Object(l.createElement)(u.MenuGroup,null,Object(l.createElement)(u.MenuItemsChoice,{choices:i,value:t,onSelect:a}))))};const Ye=Object(l.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(u.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Xe=Object(l.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(u.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Ze={top:{icon:Object(l.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(u.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),title:Object(s._x)("Align top","Block vertical alignment setting")},center:{icon:Xe,title:Object(s._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Ye,title:Object(s._x)("Align bottom","Block vertical alignment setting")}},Qe=["top","center","bottom"],Je={isAlternate:!0};var et=function({value:e,onChange:t,controls:n=Qe,isCollapsed:o=!0,isToolbar:r}){const c=Ze[e],a=Ze.top,d=r?u.ToolbarGroup:u.ToolbarDropdownMenu,b=r?{isCollapsed:o}:{};return Object(l.createElement)(d,Object(i.a)({popoverProps:Je,icon:c?c.icon:a.icon,label:Object(s._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map(n=>{return{...Ze[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})},b))};function tt(e){return Object(l.createElement)(et,Object(i.a)({},e,{isToolbar:!1}))}function nt(e){return Object(l.createElement)(et,Object(i.a)({},e,{isToolbar:!0}))}var ot=n("Wy3j"),rt=n("2YCo"),ct=n("I5Hl"),it=n("v5LD"),lt=Object(Q.createHigherOrderComponent)(e=>t=>{const n=Object(it.a)("color.palette"),o=!Object(it.a)("color.custom"),r=void 0===t.colors?n:t.colors,c=void 0===t.disableCustomColors?o:t.disableCustomColors,s=!Object(a.isEmpty)(r)||!c;return Object(l.createElement)(e,Object(i.a)({},t,{colors:r,disableCustomColors:c,hasColorsToChoose:s}))},"withColorContext"),at=lt(u.ColorPalette),st=n("hMaJ");function ut({onChange:e,value:t,...n}){return Object(l.createElement)(st.a,Object(i.a)({},n,{onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0}))}var dt=n("6c9H"),bt=n("1uGa"),pt=n("Bo0k"),mt=n("GKUk"),ft=n("xBDm"),ht=n("kVRd"),gt=n("/Hvg"),Ot=n("yU1v"),vt=function(e,t){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var jt=function(){return(jt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.create;Object.create;var kt=n("cDcd"),_t=n.n(kt),yt=n("wJiJ"),Et=n.n(yt);function Ct(e,t,n,o,r,c){void 0===c&&(c=0);var i=Mt(e,t,c),l=i.width,a=i.height,s=Math.min(l,n),u=Math.min(a,o);return s>u*r?{width:u*r,height:u}:{width:s,height:s/r}}function St(e,t,n,o,r){void 0===r&&(r=0);var c=Mt(t.width,t.height,r),i=c.width,l=c.height;return{x:wt(e.x,i,n.width,o),y:wt(e.y,l,n.height,o)}}function wt(e,t,n,o){var r=t*o/2-n/2;return Math.min(r,Math.max(e,-r))}function Bt(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function It(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function xt(e,t,n,o,r,c,i){void 0===c&&(c=0),void 0===i&&(i=!0);var l=i&&0===c?Tt:Pt,a={x:l(100,((t.width-n.width/r)/2-e.x/r)/t.width*100),y:l(100,((t.height-n.height/r)/2-e.y/r)/t.height*100),width:l(100,n.width/t.width*100/r),height:l(100,n.height/t.height*100/r)},s=Math.round(l(t.naturalWidth,a.width*t.naturalWidth/100)),u=Math.round(l(t.naturalHeight,a.height*t.naturalHeight/100)),d=t.naturalWidth>=t.naturalHeight*o?{width:Math.round(u*o),height:u}:{width:s,height:Math.round(s/o)};return{croppedAreaPercentages:a,croppedAreaPixels:jt(jt({},d),{x:Math.round(l(t.naturalWidth-d.width,a.x*t.naturalWidth/100)),y:Math.round(l(t.naturalHeight-d.height,a.y*t.naturalHeight/100))})}}function Tt(e,t){return Math.min(e,Math.max(0,t))}function Pt(e,t){return t}function Rt(e,t,n){var o=t.width/t.naturalWidth,r=function(e,t,n){var o=t.width/t.naturalWidth;if(n)return n.height>n.width?n.height/o/e.height:n.width/o/e.width;var r=e.width/e.height;return t.naturalWidth>=t.naturalHeight*r?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,n),c=o*r;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*c,y:((t.naturalHeight-e.height)/2-e.y)*c},zoom:r}}function Nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Lt(e,t,n,o,r){var c=Math.cos,i=Math.sin,l=r*Math.PI/180;return[(e-n)*c(l)-(t-o)*i(l)+n,(e-n)*i(l)+(t-o)*c(l)+o]}function Mt(e,t,n){var o=e/2,r=t/2,c=[Lt(0,0,o,r,n),Lt(e,0,o,r,n),Lt(e,t,o,r,n),Lt(0,t,o,r,n)],i=Math.min.apply(Math,c.map((function(e){return e[0]}))),l=Math.max.apply(Math,c.map((function(e){return e[0]}))),a=Math.min.apply(Math,c.map((function(e){return e[1]})));return{width:l-i,height:Math.max.apply(Math,c.map((function(e){return e[1]})))-a}}function At(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var Dt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=null,n.videoRef=null,n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){document.removeEventListener("mousemove",n.onMouseMove),document.removeEventListener("mouseup",n.onDragStopped),document.removeEventListener("touchmove",n.onTouchMove),document.removeEventListener("touchend",n.onDragStopped)},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){n.computeSizes(),n.emitCropData(),n.setInitialCrop(),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(){var e=n.props,t=e.initialCroppedAreaPixels,o=e.cropSize;if(t){var r=Rt(t,n.mediaSize,o),c=r.crop,i=r.zoom;n.props.onCropChange(c),n.props.onZoomChange&&n.props.onZoomChange(i)}},n.computeSizes=function(){var e,t,o,r,c,i,l=n.imageRef||n.videoRef;if(l&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.mediaSize={width:l.offsetWidth,height:l.offsetHeight,naturalWidth:(null===(e=n.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(o=n.imageRef)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef)||void 0===r?void 0:r.videoHeight)||0};var a=n.props.cropSize?n.props.cropSize:Ct(l.offsetWidth,l.offsetHeight,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);(null===(c=n.state.cropSize)||void 0===c?void 0:c.height)===a.height&&(null===(i=n.state.cropSize)||void 0===i?void 0:i.width)===a.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(a),n.setState({cropSize:a},n.recomputeCropPosition)}},n.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",n.onMouseMove),document.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){document.addEventListener("touchmove",n.onTouchMove,{passive:!1}),document.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onDragStart=function(e){var t,o,r=e.x,c=e.y;n.dragStartPosition={x:r,y:c},n.dragStartCrop=jt({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.rafDragTimeout&&window.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=window.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,c={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},i=n.props.restrictPosition?St(c,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):c;n.props.onCropChange(i)}}))},n.onDragStopped=function(){var e,t;n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){e.preventDefault();var o=t.getMousePoint(e),r=Et()(e).pixelY,c=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(c,o),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=window.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,c=r.crop,i=r.zoom;return{x:(t+c.x)/i,y:(o+c.y)/i}},n.setNewZoom=function(e,t){if(n.state.cropSize&&n.props.onZoomChange){var o=n.getPointOnContainer(t),r=n.getPointOnMedia(o),c=Math.min(n.props.maxZoom,Math.max(e,n.props.minZoom)),i={x:r.x*c-o.x,y:r.y*c-o.y},l=n.props.restrictPosition?St(i,n.mediaSize,n.state.cropSize,c,n.props.rotation):i;n.props.onCropChange(l),n.props.onZoomChange(c)}},n.getCropData=function(){return n.state.cropSize?xt(n.props.restrictPosition?St(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?St(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}vt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){var e;window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&(null===(e=this.styleRef.parentNode)||void 0===e||e.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,n,o,r,c,i,l,a,s;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(c=e.crop)||void 0===c?void 0:c.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(s=this.videoRef)||void 0===s||s.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Bt(n,o),this.lastPinchRotation=It(n,o),this.onDragStart(Nt(n,o))},t.prototype.onPinchMove=function(e){var n=this,o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),c=Nt(o,r);this.onDrag(c),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Bt(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,c),n.lastPinchDistance=e;var i=It(o,r),l=n.props.rotation+(i-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(l),n.lastPinchRotation=i}))},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,c=t.transform,i=t.crop,l=i.x,a=i.y,s=t.rotation,u=t.zoom,d=t.cropShape,b=t.showGrid,p=t.style,m=p.containerStyle,f=p.cropAreaStyle,h=p.mediaStyle,g=t.classes,O=g.containerClassName,v=g.cropAreaClassName,j=g.mediaClassName,k=t.objectFit;return _t.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:At("reactEasyCrop_Container",O)},n?_t.a.createElement("img",jt({alt:"",className:At("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{src:n,ref:function(t){return e.imageRef=t},style:jt(jt({},h),{transform:c||"translate("+l+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):o&&_t.a.createElement("video",jt({autoPlay:!0,loop:!0,muted:!0,className:At("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:jt(jt({},h),{transform:c||"translate("+l+"px, "+a+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return _t.a.createElement("source",jt({key:e.src},e))}))),this.state.cropSize&&_t.a.createElement("div",{style:jt(jt({},f),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:At("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",b&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(_t.a.Component);const Ft={position:"bottom right",isAlternate:!0};var zt=n("ywyh"),Ht=n.n(zt),Vt=n("onLe");function Gt(e,t){const n=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=Object(l.useState)(),[c,i]=Object(l.useState)(),[a,s]=Object(l.useState)({x:0,y:0}),[u,d]=Object(l.useState)(),[b,p]=Object(l.useState)(),[m,f]=Object(l.useState)(),[h,g]=Object(l.useState)(),O=Object(l.useCallback)(()=>{s({x:0,y:0}),d(100),p(0),f(t/n),g(t/n)},[t,n,s,d,p,f,g]),j=Object(l.useCallback)(()=>{const o=(b+90)%360;let c=t/n;if(b%180==90&&(c=n/t),0===o)return r(),p(o),f(1/m),void s({x:-a.y*c,y:a.x*c});const i=new window.Image;i.src=e,i.onload=function(e){const t=document.createElement("canvas");let n=0,i=0;o%180?(t.width=e.target.height,t.height=e.target.width):(t.width=e.target.width,t.height=e.target.height),90!==o&&180!==o||(n=t.width),270!==o&&180!==o||(i=t.height);const l=t.getContext("2d");l.translate(n,i),l.rotate(o*Math.PI/180),l.drawImage(e.target,0,0),t.toBlob(e=>{r(URL.createObjectURL(e)),p(o),f(1/m),s({x:-a.y*c,y:a.x*c})})};const l=Object(v.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof l&&(i.crossOrigin=l)},[b,t,n,r,p,f,s]);return Object(l.useMemo)(()=>({editedUrl:o,setEditedUrl:r,crop:c,setCrop:i,position:a,setPosition:s,zoom:u,setZoom:d,rotation:b,setRotation:p,rotateClockwise:j,aspect:m,setAspect:f,defaultAspect:h,initializeTransformValues:O}),[o,r,c,i,a,s,u,d,b,p,j,m,f,h,O])}(e),{initializeTransformValues:o}=n;return Object(l.useEffect)(()=>{t&&o()},[t,o]),n}const Ut=Object(l.createContext)({}),Wt=()=>Object(l.useContext)(Ut);function qt({id:e,url:t,naturalWidth:n,naturalHeight:o,isEditing:r,onFinishEditing:c,onSaveImage:i,children:a}){const u=Gt({url:t,naturalWidth:n,naturalHeight:o},r),d=function({crop:e,rotation:t,height:n,width:o,aspect:r,url:c,id:i,onSaveImage:a,onFinishEditing:u}){const{createErrorNotice:d}=Object(_.useDispatch)(Vt.store),[b,p]=Object(l.useState)(!1),m=Object(l.useCallback)(()=>{p(!1),u()},[p,u]),f=Object(l.useCallback)(()=>{p(!0);let l={};(e.width<99.9||e.height<99.9)&&(l=e),t>0&&(l.rotation=t),l.src=c,Ht()({path:`/wp/v2/media/${i}/edit`,method:"POST",data:l}).then(e=>{a({id:e.id,url:e.source_url,height:n&&o?o/r:void 0})}).catch(e=>{d(Object(s.sprintf)(Object(s.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})}).finally(()=>{p(!1),u()})},[p,e,t,n,o,r,c,a,d,p,u]);return Object(l.useMemo)(()=>({isInProgress:b,apply:f,cancel:m}),[b,f,m])}({id:e,url:t,onSaveImage:i,onFinishEditing:c,...u}),b=Object(l.useMemo)(()=>({...u,...d}),[u,d]);return Object(l.createElement)(Ut.Provider,{value:b},a)}function Kt({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:c}){const{isInProgress:i,editedUrl:a,position:s,zoom:d,aspect:b,setPosition:p,setCrop:m,setZoom:f,rotation:h}=Wt();let g=n||o*r/c;return h%180==90&&(g=o*c/r),Object(l.createElement)("div",{className:V()("wp-block-image__crop-area",{"is-applying":i}),style:{width:t||o,height:g}},Object(l.createElement)(Dt,{image:a||e,disabled:i,minZoom:1,maxZoom:3,crop:s,zoom:d/100,aspect:b,onCropChange:p,onCropComplete:e=>{m(e)},onZoomChange:e=>{f(100*e)}}),i&&Object(l.createElement)(u.Spinner,null))}var $t=n("cGtP");function Yt(){const{isInProgress:e,zoom:t,setZoom:n}=Wt();return Object(l.createElement)(u.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:Ft,renderToggle:({isOpen:t,onToggle:n})=>Object(l.createElement)(u.ToolbarButton,{icon:$t.a,label:Object(s.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>Object(l.createElement)(u.RangeControl,{label:Object(s.__)("Zoom"),min:100,max:300,value:Math.round(t),onChange:n})})}var Xt=n("RMJe");var Zt=Object(l.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(P.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function Qt({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return Object(l.createElement)(u.MenuGroup,{label:n},e.map(({title:e,aspect:n})=>Object(l.createElement)(u.MenuItem,{key:n,disabled:t,onClick:()=>{o(n)},role:"menuitemradio",isSelected:n===r,icon:n===r?Xt.a:void 0},e)))}function Jt({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=Wt();return Object(l.createElement)(u.DropdownMenu,{icon:Zt,label:Object(s.__)("Aspect Ratio"),popoverProps:Ft,toggleProps:e,className:"wp-block-image__aspect-ratio"},({onClose:e})=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Qt,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:Object(s.__)("Original"),aspect:r},{title:Object(s.__)("Square"),aspect:1}]}),Object(l.createElement)(Qt,{label:Object(s.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:Object(s.__)("16:10"),aspect:1.6},{title:Object(s.__)("16:9"),aspect:16/9},{title:Object(s.__)("4:3"),aspect:4/3},{title:Object(s.__)("3:2"),aspect:1.5}]}),Object(l.createElement)(Qt,{label:Object(s.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:Object(s.__)("10:16"),aspect:.625},{title:Object(s.__)("9:16"),aspect:9/16},{title:Object(s.__)("3:4"),aspect:3/4},{title:Object(s.__)("2:3"),aspect:2/3}]})))}var en=Object(l.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(P.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function tn(){const{isInProgress:e,rotateClockwise:t}=Wt();return Object(l.createElement)(u.ToolbarButton,{icon:en,label:Object(s.__)("Rotate"),onClick:t,disabled:e})}function nn(){const{isInProgress:e,apply:t,cancel:n}=Wt();return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.ToolbarButton,{onClick:t,disabled:e},Object(s.__)("Apply")),Object(l.createElement)(u.ToolbarButton,{onClick:n},Object(s.__)("Cancel")))}function on({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:c}){return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Kt,{url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:c}),Object(l.createElement)(W.b,null,Object(l.createElement)(u.ToolbarGroup,null,Object(l.createElement)(Yt,null),Object(l.createElement)(u.ToolbarItem,null,e=>Object(l.createElement)(Jt,{toggleProps:e})),Object(l.createElement)(tn,null)),Object(l.createElement)(u.ToolbarGroup,null,Object(l.createElement)(nn,null))))}const rn=[25,50,75,100];function cn({imageWidth:e,imageHeight:t,imageSizeOptions:n=[],isResizable:o=!0,slug:r,width:c,height:i,onChange:d,onChangeImage:b=a.noop}){const{currentHeight:p,currentWidth:m,updateDimension:f,updateDimensions:h}=function(e,t,n,o,r){var c,i;const[a,s]=Object(l.useState)(null!==(c=null!=t?t:o)&&void 0!==c?c:""),[u,d]=Object(l.useState)(null!==(i=null!=e?e:n)&&void 0!==i?i:"");return Object(l.useEffect)(()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)},[o,n]),Object(l.useEffect)(()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(a)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)},[t,e]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{"width"===e?s(t):d(t),r({[e]:""===t?void 0:parseInt(t,10)})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(i,c,t,e,d);return Object(l.createElement)(l.Fragment,null,!Object(a.isEmpty)(n)&&Object(l.createElement)(u.SelectControl,{label:Object(s.__)("Image size"),value:r,options:n,onChange:b}),o&&Object(l.createElement)("div",{className:"block-editor-image-size-control"},Object(l.createElement)("p",{className:"block-editor-image-size-control__row"},Object(s.__)("Image dimensions")),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__width",label:Object(s.__)("Width"),value:m,min:1,onChange:e=>f("width",e)}),Object(l.createElement)(u.TextControl,{type:"number",className:"block-editor-image-size-control__height",label:Object(s.__)("Height"),value:p,min:1,onChange:e=>f("height",e)})),Object(l.createElement)("div",{className:"block-editor-image-size-control__row"},Object(l.createElement)(u.ButtonGroup,{"aria-label":Object(s.__)("Image size presets")},rn.map(n=>{const o=Math.round(e*(n/100)),r=Math.round(t*(n/100)),c=m===o&&p===r;return Object(l.createElement)(u.Button,{key:n,isSmall:!0,variant:c?"primary":void 0,isPressed:c,onClick:()=>h(r,o)},n,"%")})),Object(l.createElement)(u.Button,{isSmall:!0,onClick:()=>h()},Object(s.__)("Reset")))))}var ln=n("p3NJ"),an=n("1oY3"),sn=n("0E5u"),un=n("btIw"),dn=n("1CF3");var bn=({value:e,onChange:t=a.noop,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map(t=>Object(l.createElement)(u.ToggleControl,{className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]}));return Object(l.createElement)("fieldset",{className:"block-editor-link-control__settings"},Object(l.createElement)(u.VisuallyHidden,{as:"legend"},Object(s.__)("Currently selected link settings")),r)},pn=n("9Do8"),mn=n.n(pn),fn=n("Mmq9");class hn extends l.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||Object(l.createRef)(),this.inputRef=Object(l.createRef)(),this.updateSuggestions=Object(a.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.isUpdatingSuggestions=!1,this.state={suggestions:[],showSuggestions:!1,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,mn()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout(()=>{this.scrollingIntoView=!1},100)),e.value===o||this.props.disableSuggestions||this.isUpdatingSuggestions||(null!=o&&o.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){var e,t;null===(e=this.suggestionsRequest)||void 0===e||null===(t=e.cancel)||void 0===t||t.call(e),delete this.suggestionsRequest}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{suggestions:e}=this.state,{__experimentalShowInitialSuggestions:t=!1,value:n}=this.props;return!this.isUpdatingSuggestions&&t&&!(n&&n.length)&&!(e&&e.length)}updateSuggestions(e=""){var t;const{__experimentalFetchLinkSuggestions:n,__experimentalHandleURLSuggestions:o}=this.props;if(!n)return;const r=!(null!==(t=e)&&void 0!==t&&t.length);if(e=e.trim(),!r&&(e.length<2||!o&&Object(fn.isURL)(e)))return void this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1});this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});const c=n(e,{isInitialSuggestions:r});c.then(e=>{this.suggestionsRequest===c&&(this.setState({suggestions:e,loading:!1,showSuggestions:!!e.length}),e.length?this.props.debouncedSpeak(Object(s.sprintf)(Object(s._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):this.props.debouncedSpeak(Object(s.__)("No results."),"assertive"),this.isUpdatingSuggestions=!1)}).catch(()=>{this.suggestionsRequest===c&&(this.setState({loading:!1}),this.isUpdatingSuggestions=!1)}),this.suggestionsRequest=c}onChange(e){const t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case L.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case L.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case L.ENTER:this.props.onSubmit&&this.props.onSubmit(null,e)}return}const c=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case L.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case L.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case L.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(c),this.props.speak(Object(s.__)("Link selected.")));break;case L.ENTER:null!==this.state.selectedSuggestion?(this.selectLink(c),this.props.onSubmit&&this.props.onSubmit(c,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let c=r;const i=e&&e.length;return o||i||(c=!1),!0===n&&(c=!1),{showSuggestions:c,suggestionsListboxId:"block-editor-url-input-suggestions-"+t,suggestionOptionIdPrefix:"block-editor-url-input-suggestion-"+t}}render(){return Object(l.createElement)(l.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{label:e,className:t,isFullWidth:n,instanceId:o,placeholder:r=Object(s.__)("Paste URL or type to search"),__experimentalRenderControl:c,value:i=""}=this.props,{loading:a,showSuggestions:d,selectedSuggestion:b,suggestionsListboxId:p,suggestionOptionIdPrefix:m}=this.state,f={id:"url-input-control-"+o,label:e,className:V()("block-editor-url-input",t,{"is-full-width":n})},h={value:i,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:r,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(s.__)("URL"),"aria-expanded":d,"aria-autocomplete":"list","aria-owns":p,"aria-activedescendant":null!==b?`${m}-${b}`:void 0,ref:this.inputRef};return c?c(f,h,a):Object(l.createElement)(u.BaseControl,f,Object(l.createElement)("input",h),a&&Object(l.createElement)(u.Spinner,null))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t,value:n="",__experimentalShowInitialSuggestions:o=!1}=this.props,{showSuggestions:r,suggestions:c,selectedSuggestion:s,suggestionsListboxId:d,suggestionOptionIdPrefix:b,loading:p}=this.state,m={id:d,ref:this.autocompleteRef,role:"listbox"},f=(e,t)=>({role:"option",tabIndex:"-1",id:`${b}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===s});return Object(a.isFunction)(t)&&r&&c.length?t({suggestions:c,selectedSuggestion:s,suggestionsListProps:m,buildSuggestionItemProps:f,isLoading:p,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:o&&!(n&&n.length)}):!Object(a.isFunction)(t)&&r&&c.length?Object(l.createElement)(u.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(l.createElement)("div",Object(i.a)({},m,{className:V()("block-editor-url-input__suggestions",e+"__suggestions")}),c.map((e,t)=>Object(l.createElement)(u.Button,Object(i.a)({},f(0,t),{key:e.id,className:V()("block-editor-url-input__suggestion",{"is-selected":t===s}),onClick:()=>this.handleOnClick(e)}),e.title)))):null}}var gn=Object(Q.compose)(Q.withSafeTimeout,u.withSpokenMessages,Q.withInstanceId,Object(_.withSelect)((e,t)=>{if(Object(a.isFunction)(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(S.a);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}}))(hn),On=n("Q4Sy");var vn=({searchTerm:e,onClick:t,itemProps:n,isSelected:o,buttonText:r})=>{if(!e)return null;let c;return c=r?Object(a.isFunction)(r)?r(e):r:Object(l.createInterpolateElement)(Object(s.sprintf)(Object(s.__)("Create: <mark>%s</mark>"),e),{mark:Object(l.createElement)("mark",null)}),Object(l.createElement)(u.Button,Object(i.a)({},n,{className:V()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":o}),onClick:t}),Object(l.createElement)(A.a,{className:"block-editor-link-control__search-item-icon",icon:On.a}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},c)))};var jn=Object(l.createElement)(P.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(l.createElement)(P.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));var kn=({itemProps:e,suggestion:t,isSelected:n=!1,onClick:o,isURL:r=!1,searchTerm:c="",shouldShowType:a=!1})=>Object(l.createElement)(u.Button,Object(i.a)({},e,{onClick:o,className:V()("block-editor-link-control__search-item",{"is-selected":n,"is-url":r,"is-entity":!r})}),r&&Object(l.createElement)(A.a,{className:"block-editor-link-control__search-item-icon",icon:jn}),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(l.createElement)(u.TextHighlight,{text:t.title,highlight:c})),Object(l.createElement)("span",{"aria-hidden":!r,className:"block-editor-link-control__search-item-info"},!r&&(Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(t.url))||""),r&&Object(s.__)("Press ENTER to add this link"))),a&&t.type&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===t.type?"tag":t.type));const _n=[{id:"opensInNewTab",title:Object(s.__)("Open in new tab")}];function yn({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:c,suggestions:a,selectedSuggestion:d,isLoading:b,isInitialSuggestions:p,createSuggestionButtonText:m,suggestionsQuery:f}){const h=V()("block-editor-link-control__search-results",{"is-loading":b}),g=["url","mailto","tel","internal"],O=1===a.length&&g.includes(a[0].type.toLowerCase()),v=t&&!O&&!p,j=!(null!=f&&f.type),k="block-editor-link-control-search-results-label-"+e,_=p?Object(s.__)("Recently updated"):Object(s.sprintf)(Object(s.__)('Search results for "%s"'),n),y=Object(l.createElement)(p?l.Fragment:u.VisuallyHidden,{},Object(l.createElement)("span",{className:"block-editor-link-control__search-results-label",id:k},_));return Object(l.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},y,Object(l.createElement)("div",Object(i.a)({},r,{className:h,"aria-labelledby":k}),a.map((e,t)=>v&&"__CREATE__"===e.type?Object(l.createElement)(vn,{searchTerm:n,buttonText:m,onClick:()=>o(e),key:e.type,itemProps:c(e,t),isSelected:t===d}):"__CREATE__"===e.type?null:Object(l.createElement)(kn,{key:`${e.id}-${e.type}`,itemProps:c(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===d,isURL:g.includes(e.type.toLowerCase()),searchTerm:n,shouldShowType:j}))))}function En(e){const t=Object(a.startsWith)(e,"#");return Object(fn.isURL)(e)||e&&e.includes("www.")||t}const Cn=()=>Promise.resolve([]),Sn=e=>{let t="URL";const n=Object(fn.getProtocol)(e)||"";return n.includes("mailto")&&(t="mailto"),n.includes("tel")&&(t="tel"),Object(a.startsWith)(e,"#")&&(t="internal"),Promise.resolve([{id:e,title:e,url:"URL"===t?Object(fn.prependHTTP)(e):e,type:t}])};function wn(e,t,n,o){const{fetchSearchSuggestions:r}=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return{fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}},[]),c=t?Sn:Cn;return Object(l.useCallback)((t,{isInitialSuggestions:i})=>En(t)?c(t,{isInitialSuggestions:i}):(async(e,t,n,o,r,c)=>{const{isInitialSuggestions:i}=t;let l=await Promise.all([n(e,t),o(e)]);return l=!e.includes(" ")&&c&&!i?l[0].concat(l[1]):l[0],i||En(e)||!r?l:l.concat({title:e,url:e,type:"__CREATE__"})})(t,{...e,isInitialSuggestions:i},r,c,n,o),[c,r,n])}const Bn=()=>Promise.resolve([]),In=Object(l.forwardRef)(({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:c=!1,onCreateSuggestion:i=a.noop,onChange:u=a.noop,onSelect:d=a.noop,showSuggestions:b=!0,renderSuggestions:p=(e=>Object(l.createElement)(yn,e)),fetchSuggestions:m=null,allowDirectEntry:f=!0,showInitialSuggestions:h=!1,suggestionsQuery:g={},withURLSuggestion:O=!0,createSuggestionButtonText:v,useLabel:j=!1},k)=>{const _=wn(g,f,c,O),y=b?m||_:Bn,E=Object(Q.useInstanceId)(In),[C,S]=Object(l.useState)(),w=async e=>{let t=e;if("__CREATE__"!==e.type)(f||t&&Object.keys(t).length>=1)&&d({...Object(a.omit)(n,"id","url"),...t},t);else try{var o;t=await i(e.title),null!==(o=t)&&void 0!==o&&o.url&&d(t)}catch(e){}},B=V()(o,{"has-no-label":!j});return Object(l.createElement)("div",{className:"block-editor-link-control__search-input-container"},Object(l.createElement)(gn,{label:j?"URL":void 0,className:B,value:e,onChange:(e,t)=>{u(e),S(t)},placeholder:null!=r?r:Object(s.__)("Search or type url"),__experimentalRenderSuggestions:b?t=>p({...t,instanceId:E,withCreateSuggestion:c,currentInputValue:e,createSuggestionButtonText:v,suggestionsQuery:g,handleSuggestionClick:e=>{t.handleSuggestionClick&&t.handleSuggestionClick(e),w(e)}}):null,__experimentalFetchLinkSuggestions:y,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,onSubmit:(t,n)=>{var o;const r=t||C;r||null!=e&&null!==(o=e.trim())&&void 0!==o&&o.length?w(r||{url:e}):n.preventDefault()},ref:k}),t)});var xn=In,Tn=n("FnAh"),Pn=n("B9Az"),Rn=n("Mp0b");const{Slot:Nn,Fill:Ln}=Object(u.createSlotFill)("BlockEditorLinkControlViewer");function Mn(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error("Unexpected action type "+t.type)}}var An=function(e){const[t,n]=Object(l.useReducer)(Mn,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}},[]);return Object(l.useEffect)(()=>{if(null!=e&&e.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then(e=>{n({type:"RESOLVED",richData:e})}).catch(()=>{r.aborted||n({type:"ERROR"})}),()=>{t.abort()}}},[e]),t};function Dn({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const c=n?null==e?void 0:e.url:null,{richData:i,isFetching:a}=An(c),d=i&&Object.keys(i).length,b=e&&Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(e.url),16)||"",p=(null==i?void 0:i.title)||(null==e?void 0:e.title)||b,m=!e.url.length;let f;return f=null!=i&&i.icon?Object(l.createElement)("img",{src:null==i?void 0:i.icon,alt:""}):m?Object(l.createElement)(A.a,{icon:Tn.a,size:32}):Object(l.createElement)(A.a,{icon:jn}),Object(l.createElement)("div",{"aria-label":Object(s.__)("Currently selected"),"aria-selected":"true",className:V()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":d,"is-fetching":!!a,"is-preview":!0,"is-error":m})},Object(l.createElement)("div",{className:"block-editor-link-control__search-item-top"},Object(l.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(l.createElement)("span",{className:V()("block-editor-link-control__search-item-icon",{"is-image":null==i?void 0:i.icon})},f),Object(l.createElement)("span",{className:"block-editor-link-control__search-item-details"},m?Object(l.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},"Link is empty"):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},Object(dn.__unstableStripHTML)(p)),(null==e?void 0:e.url)&&Object(l.createElement)("span",{className:"block-editor-link-control__search-item-info"},b)))),Object(l.createElement)(u.Button,{icon:Pn.a,label:Object(s.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:t,iconSize:24}),o&&Object(l.createElement)(u.Button,{icon:Rn.a,label:Object(s.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:r,iconSize:24}),Object(l.createElement)(Nn,{fillProps:e})),(d&&((null==i?void 0:i.image)||(null==i?void 0:i.description))||a)&&Object(l.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},((null==i?void 0:i.image)||a)&&Object(l.createElement)("div",{"aria-hidden":!(null!=i&&i.image),className:V()("block-editor-link-control__search-item-image",{"is-placeholder":!(null!=i&&i.image)})},(null==i?void 0:i.image)&&Object(l.createElement)("img",{src:null==i?void 0:i.image,alt:""})),((null==i?void 0:i.description)||a)&&Object(l.createElement)("div",{"aria-hidden":!(null!=i&&i.description),className:V()("block-editor-link-control__search-item-description",{"is-placeholder":!(null!=i&&i.description)})},(null==i?void 0:i.description)&&Object(l.createElement)(u.__experimentalText,{truncate:!0,numberOfLines:"2"},i.description))))}const Fn=e=>{let t=!1;return{promise:new Promise((n,o)=>{e.then(e=>t?o({isCanceled:!0}):n(e),e=>o(t?{isCanceled:!0}:e))}),cancel(){t=!0}}};function zn({searchInputPlaceholder:e,value:t,settings:n=_n,onChange:o=a.noop,onRemove:r,noDirectEntry:c=!1,showSuggestions:i=!0,showInitialSuggestions:d,forceIsEditingLink:b,createSuggestion:p,withCreateSuggestion:m,inputValue:f="",suggestionsQuery:h={},noURLSuggestion:g=!1,createSuggestionButtonText:O,hasRichPreviews:v=!1,hasTextControl:j=!1,renderControlBottom:k=null}){var _,y,E;void 0===m&&p&&(m=!0);const C=Object(l.useRef)(!0),S=Object(l.useRef)(),w=Object(l.useRef)(),[B,I]=Object(l.useState)((null==t?void 0:t.url)||""),[x,T]=Object(l.useState)((null==t?void 0:t.title)||""),P=f||B,[R,N]=Object(l.useState)(void 0!==b?b:!t||!t.url),M=Object(l.useRef)(!1),A=!(null!=P&&null!==(_=P.trim())&&void 0!==_&&_.length);function D(){var e;M.current=!(null===(e=S.current)||void 0===e||!e.contains(S.current.ownerDocument.activeElement)),N(!1)}Object(l.useEffect)(()=>{void 0!==b&&b!==R&&N(b)},[b]),Object(l.useEffect)(()=>{if(C.current)return void(C.current=!1);const e=null!=w&&w.current?1:0;(dn.focus.focusable.find(S.current)[e]||S.current).focus(),M.current=!1},[R]),Object(l.useEffect)(()=>{null!=t&&t.title&&t.title!==x&&T(t.title),null!=t&&t.url&&I(t.url)},[t]);const{createPage:F,isCreatingPage:z,errorMessage:H}=function(e){const t=Object(l.useRef)(),[n,o]=Object(l.useState)(!1),[r,c]=Object(l.useState)(null);return Object(l.useEffect)(()=>()=>{t.current&&t.current.cancel()},[]),{createPage:async function(n){o(!0),c(null);try{return t.current=Fn(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw c(e.message||Object(s.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(p),G=()=>{P===(null==t?void 0:t.url)&&x===(null==t?void 0:t.title)||o({url:P,title:x}),D()},U=r&&t&&!R&&!z,W=!(null==n||!n.length),q=(null==t||null===(y=t.url)||void 0===y||null===(E=y.trim())||void 0===E?void 0:E.length)>0&&j;return Object(l.createElement)("div",{tabIndex:-1,ref:S,className:"block-editor-link-control"},z&&Object(l.createElement)("div",{className:"block-editor-link-control__loading"},Object(l.createElement)(u.Spinner,null)," ",Object(s.__)("Creating"),"…"),(R||!t)&&!z&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)("div",{className:V()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":q})},q&&Object(l.createElement)(u.TextControl,{ref:w,className:"block-editor-link-control__field block-editor-link-control__text-content",label:"Text",value:x,onChange:T,onKeyDown:e=>{const{keyCode:t}=e;t!==L.ENTER||A||(e.preventDefault(),G())}}),Object(l.createElement)(xn,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:P,withCreateSuggestion:m,onCreateSuggestion:F,onChange:I,onSelect:e=>{o({...e,title:x||(null==e?void 0:e.title)}),D()},showInitialSuggestions:d,allowDirectEntry:!c,showSuggestions:i,suggestionsQuery:h,withURLSuggestion:!g,createSuggestionButtonText:O,useLabel:q},Object(l.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(l.createElement)(u.Button,{onClick:G,label:Object(s.__)("Submit"),icon:un.a,className:"block-editor-link-control__search-submit",disabled:A})))),H&&Object(l.createElement)(u.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},H)),t&&!R&&!z&&Object(l.createElement)(Dn,{key:null==t?void 0:t.url,value:t,onEditClick:()=>N(!0),hasRichPreviews:v,hasUnlinkControl:U,onRemove:r}),W&&Object(l.createElement)("div",{className:"block-editor-link-control__tools"},Object(l.createElement)(bn,{value:t,settings:n,onChange:o})),k&&k())}zn.ViewerFill=Ln;var Hn=zn,Vn=n("weEX"),Gn=n("gdqT"),Un=n("rH4q"),Wn=n("NTP4");var qn=Object(u.withFilters)("editor.MediaUpload")(()=>null);var Kn=function({fallback:e=null,children:t}){return Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return!!t().mediaUpload},[])?t:e};var $n=Object(Q.compose)([Object(_.withDispatch)(e=>{const{createNotice:t,removeNotice:n}=e(Vt.store);return{createNotice:t,removeNotice:n}}),Object(u.withFilters)("editor.MediaReplaceFlow")])(({mediaURL:e,mediaId:t,allowedTypes:n,accept:o,onSelect:r,onSelectURL:c,onFilesUpload:i=a.noop,name:d=Object(s.__)("Replace"),createNotice:b,removeNotice:p,children:m})=>{const[f,h]=Object(l.useState)(e),g=Object(_.useSelect)(e=>e(S.a).getSettings().mediaUpload,[]),O=Object(l.createRef)(),v=Object(a.uniqueId)("block-editor/media-replace-flow/error-notice/"),j=e=>{const t=document.createElement("div");t.innerHTML=Object(l.renderToString)(e);const n=t.textContent||t.innerText||"";setTimeout(()=>{b("error",n,{speak:!0,id:v,isDismissible:!0})},1e3)},k=e=>{h(e.url),r(e),Object(Gn.speak)(Object(s.__)("The media file has been replaced")),p(v)},y=e=>{e.keyCode===L.DOWN&&(e.preventDefault(),e.target.click())};return Object(l.createElement)(u.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>Object(l.createElement)(u.ToolbarButton,{ref:O,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:y},d),renderContent:({onClose:e})=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(l.createElement)(qn,{value:t,onSelect:e=>k(e),allowedTypes:n,render:({open:e})=>Object(l.createElement)(u.MenuItem,{icon:Un.a,onClick:e},Object(s.__)("Open Media Library"))}),Object(l.createElement)(Kn,null,Object(l.createElement)(u.FormFileUpload,{onChange:e=>{(e=>{const t=e.target.files;i(t);g({allowedTypes:n,filesList:t,onFileChange:([e])=>{k(e)},onError:j})})(e)},accept:o,render:({openFileDialog:e})=>Object(l.createElement)(u.MenuItem,{icon:Wn.a,onClick:()=>{e()}},Object(s.__)("Upload"))})),m),c&&Object(l.createElement)("form",{className:"block-editor-media-flow__url-input"},Object(l.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(s.__)("Current media URL:")),Object(l.createElement)(Hn,{value:{url:f},settings:[],showSuggestions:!1,onChange:({url:e})=>{h(e),c(e),O.current.focus()}})))})}),Yn=n("NMb1"),Xn=n.n(Yn);function Zn({url:e,urlLabel:t,className:n}){const o=V()(n,"block-editor-url-popover__link-viewer-url");return e?Object(l.createElement)(u.ExternalLink,{className:o,href:e},t||Object(fn.filterURLForDisplay)(Object(fn.safeDecodeURI)(e))):Object(l.createElement)("span",{className:o})}function Qn({additionalControls:e,children:t,renderSettings:n,position:o="bottom center",focusOnMount:r="firstElement",...c}){const[a,d]=Object(l.useState)(!1),b=!!n&&a;return Object(l.createElement)(u.Popover,Object(i.a)({className:"block-editor-url-popover",focusOnMount:r,position:o},c),Object(l.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(l.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&Object(l.createElement)(u.Button,{className:"block-editor-url-popover__settings-toggle",icon:qe.a,label:Object(s.__)("Link settings"),onClick:()=>{d(!a)},"aria-expanded":a})),b&&Object(l.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},n())),e&&!b&&Object(l.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}Qn.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return Object(l.createElement)("form",Object(i.a)({className:V()("block-editor-url-popover__link-editor",t)},r),Object(l.createElement)(gn,{value:o,onChange:n,autocompleteRef:e}),Object(l.createElement)(u.Button,{icon:un.a,label:Object(s.__)("Apply"),type:"submit"}))},Qn.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...c}){return Object(l.createElement)("div",Object(i.a)({className:V()("block-editor-url-popover__link-viewer",e)},c),Object(l.createElement)(Zn,{url:o,urlLabel:r,className:t}),n&&Object(l.createElement)(u.Button,{icon:Pn.a,label:Object(s.__)("Edit"),onClick:n}))};var Jn=Qn;const eo=({src:e,onChange:t,onSubmit:n,onClose:o})=>Object(l.createElement)(Jn,{onClose:o},Object(l.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},Object(l.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":Object(s.__)("URL"),placeholder:Object(s.__)("Paste or type URL"),onChange:t,value:e}),Object(l.createElement)(u.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:un.a,label:Object(s.__)("Apply"),type:"submit"})));var to=Object(u.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:c,notices:i,isAppender:d,accept:b,addToGallery:p,multiple:m=!1,handleUpload:f=!0,dropZoneUIOnly:h,disableDropZone:g,disableMediaButtons:O,onError:v,onSelect:j,onCancel:k,onSelectURL:y,onDoubleClick:E,onFilesPreUpload:C=a.noop,onHTMLDrop:w=a.noop,children:B,mediaLibraryButton:I,placeholder:x,style:T}){const P=Object(_.useSelect)(e=>{const{getSettings:t}=e(S.a);return t().mediaUpload},[]),[R,N]=Object(l.useState)(""),[L,M]=Object(l.useState)(!1);Object(l.useEffect)(()=>{var t;N(null!==(t=null==e?void 0:e.src)&&void 0!==t?t:"")},[null==e?void 0:e.src]);const A=e=>{N(e.target.value)},D=()=>{M(!0)},F=()=>{M(!1)},z=e=>{e.preventDefault(),R&&y&&(y(R),F())},H=n=>{if(!f)return j(n);let o;if(C(n),m)if(p){let t=[];o=n=>{const o=(null!=e?e:[]).filter(e=>e.id?!t.some(({id:t})=>Number(t)===Number(e.id)):!t.some(({urlSlug:t})=>e.url.includes(t)));j(o.concat(n)),t=n.map(e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}})}}else o=j;else o=([e])=>j(e);P({allowedTypes:t,filesList:n,onFileChange:o,onError:v})},G=e=>{H(e.target.files)},U=null!=x?x:e=>{let{instructions:a,title:b}=r;if(P||y||(a=Object(s.__)("To edit this block, you need permission to upload media.")),void 0===a||void 0===b){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,c=o&&"image"===n,i=o&&"video"===n;void 0===a&&P&&(a=Object(s.__)("Upload a media file or pick one from your media library."),r?a=Object(s.__)("Upload an audio file, pick one from your media library, or add one with a URL."):c?a=Object(s.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(a=Object(s.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===b&&(b=Object(s.__)("Media"),r?b=Object(s.__)("Audio"):c?b=Object(s.__)("Image"):i&&(b=Object(s.__)("Video")))}const p=V()("block-editor-media-placeholder",n,{"is-appender":d});return Object(l.createElement)(u.Placeholder,{icon:o,label:b,instructions:a,className:p,notices:i,onDoubleClick:E,preview:c,style:T},e,B)},W=()=>g?null:Object(l.createElement)(u.DropZone,{onFilesDrop:H,onHTMLDrop:w}),q=()=>k&&Object(l.createElement)(u.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(s.__)("Cancel"),variant:"link",onClick:k},Object(s.__)("Cancel")),K=()=>y&&Object(l.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(l.createElement)(u.Button,{className:"block-editor-media-placeholder__button",onClick:D,isPressed:L,variant:"tertiary"},Object(s.__)("Insert from URL")),L&&Object(l.createElement)(eo,{src:R,onChange:A,onSubmit:z,onClose:F}));return h||O?(h&&Xn()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{since:"5.4",alternative:"disableMediaButtons"}),Object(l.createElement)(Kn,null,W())):Object(l.createElement)(Kn,{fallback:U(K())},(()=>{const n=null!=I?I:({open:e})=>Object(l.createElement)(u.Button,{variant:"tertiary",onClick:()=>{e()}},Object(s.__)("Media Library")),o=Object(l.createElement)(qn,{addToGallery:p,gallery:m&&!(!t||0===t.length)&&t.every(e=>"image"===e||e.startsWith("image/")),multiple:m,onSelect:j,allowedTypes:t,value:Array.isArray(e)?e.map(({id:e})=>e):e.id,render:n});if(P&&d)return Object(l.createElement)(l.Fragment,null,W(),Object(l.createElement)(u.FormFileUpload,{onChange:G,accept:b,multiple:m,render:({openFileDialog:e})=>{const t=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.Button,{variant:"primary",className:V()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e},Object(s.__)("Upload")),o,K(),q());return U(t)}}));if(P){const e=Object(l.createElement)(l.Fragment,null,W(),Object(l.createElement)(u.FormFileUpload,{variant:"primary",className:V()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:G,accept:b,multiple:m},Object(s.__)("Upload")),o,K(),q());return U(e)}return U(o)})())}));var no=({colorSettings:e,...t})=>{const n=e.map(({value:e,onChange:t,...n})=>({...n,colorValue:e,onColorChange:t}));return Object(l.createElement)(Ot.a,Object(i.a)({settings:n,gradients:[],disableCustomGradients:!0},t))},oo=n("O6Fj"),ro=n.n(oo),co=n("qRz9");const io={position:"bottom right",isAlternate:!0};var lo=()=>Object(l.createElement)(l.Fragment,null,["bold","italic","link"].map(e=>Object(l.createElement)(u.Slot,{name:"RichText.ToolbarControls."+e,key:e})),Object(l.createElement)(u.Slot,{name:"RichText.ToolbarControls"},e=>{if(!e.length)return null;const t=e.map(([{props:e}])=>e).some(({isActive:e})=>e);return Object(l.createElement)(u.ToolbarItem,null,n=>Object(l.createElement)(u.DropdownMenu,{icon:qe.a,label:Object(s.__)("More"),toggleProps:{...n,className:V()(n.className,{"is-pressed":t}),describedBy:Object(s.__)("Displays more block tools")},controls:Object(a.orderBy)(e.map(([{props:e}])=>e),"title"),popoverProps:io}))}));var ao=({inline:e,anchorRef:t})=>e?Object(l.createElement)(u.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:t,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},Object(l.createElement)("div",{className:"block-editor-rich-text__inline-format-toolbar-group"},Object(l.createElement)(u.ToolbarGroup,null,Object(l.createElement)(lo,null)))):Object(l.createElement)(W.b,{group:"inline"},Object(l.createElement)(lo,null));function so(){const{didAutomaticChange:e,getSettings:t}=Object(_.useSelect)(S.a);return Object(Q.useRefEffect)(n=>{function o(n){const{keyCode:o}=n;n.defaultPrevented||o!==L.DELETE&&o!==L.BACKSPACE&&o!==L.ESCAPE||e()&&(n.preventDefault(),t().__experimentalUndo())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[])}var uo=n("xTGt");function bo(e){return e.filter(({type:e})=>/^image\/(?:jpe?g|png|gif)$/.test(e)).map(e=>`<img src="${Object(uo.createBlobURL)(e)}">`).join("")}var po=n("SVSp");function mo(e,t){if(null!=t&&t.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function fo(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function ho({allowedFormats:e,formattingControls:t,disableFormats:n}){return n?ho.EMPTY_ARRAY:e||t?e||(Xn()("wp.blockEditor.RichText formattingControls prop",{since:"5.4",alternative:"allowedFormats"}),t.map(e=>"core/"+e)):void 0}ho.EMPTY_ARRAY=[];function go({value:e,pastedBlocks:t=[],onReplace:n,onSplit:o,onSplitMiddle:r,multilineTag:c}){if(!n||!o)return;const i=[],[l,a]=Object(co.split)(e),s=t.length>0;let u=-1;const d=Object(co.isEmpty)(l)&&!Object(co.isEmpty)(a);s&&Object(co.isEmpty)(l)||(i.push(o(Object(co.toHTMLString)({value:l,multilineTag:c}),!d)),u+=1),s?(i.push(...t),u+=t.length):r&&i.push(r()),(s||r)&&Object(co.isEmpty)(a)||i.push(o(Object(co.toHTMLString)({value:a,multilineTag:c}),d));n(i,s?u:1,s?-1:0)}function Oo(e,t){return t?Object(co.replace)(e,/\n+/g,co.__UNSTABLE_LINE_SEPARATOR):Object(co.replace)(e,new RegExp(co.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function vo(e){const t=Object(l.useRef)(e);return t.current=e,Object(Q.useRefEffect)(e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:c,formatTypes:i,tagName:l,onReplace:a,onSplit:s,onSplitMiddle:u,__unstableEmbedURLOnPaste:d,multilineTag:b,preserveWhiteSpace:p,pastePlainText:m}=t.current;if(!n)return void e.preventDefault();const{clipboardData:f}=e;let h="",g="";try{h=f.getData("text/plain"),g=f.getData("text/html")}catch(e){try{g=f.getData("Text")}catch(e){return}}if(g=function(e){return e.replace(/.*<!--StartFragment-->/s,"").replace(/<!--EndFragment-->.*/s,"")}(g),e.preventDefault(),window.console.log("Received HTML:\n\n",g),window.console.log("Received plain text:\n\n",h),o)return void r(Object(co.insert)(c,h));const O=i.reduce((e,{__unstablePasteRule:t})=>(t&&e===c&&(e=t(c,{html:g,plainText:h})),e),c);if(O!==c)return void r(O);const v=[...Object(dn.getFilesFromDataTransfer)(f)];if("true"===f.getData("rich-text")){const e=f.getData("rich-text-multi-line-tag")||void 0;let t=Object(co.create)({html:g,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:p});return t=Oo(t,!!b),mo(t,c.activeFormats),void r(Object(co.insert)(c,t))}if(m)return void r(Object(co.insert)(c,Object(co.create)({text:h})));if(v&&v.length&&!g){const e=Object(j.pasteHandler)({HTML:bo(v),mode:"BLOCKS",tagName:l,preserveWhiteSpace:p});return window.console.log("Received items:\n\n",v),void(a&&Object(co.isEmpty)(c)?a(e):go({value:c,pastedBlocks:e,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}let k=a&&s?"AUTO":"INLINE";var _;"AUTO"===k&&Object(co.isEmpty)(c)&&(_=h,Object(po.regexp)(".*").test(_))&&(k="BLOCKS"),d&&Object(co.isEmpty)(c)&&Object(fn.isURL)(h.trim())&&(k="BLOCKS");const y=Object(j.pasteHandler)({HTML:g,plainText:h,mode:k,tagName:l,preserveWhiteSpace:p});if("string"==typeof y){let e=Object(co.create)({html:y});e=Oo(e,!!b),mo(e,c.activeFormats),r(Object(co.insert)(c,e))}else y.length>0&&(a&&Object(co.isEmpty)(c)?a(y,y.length-1,-1):go({value:c,pastedBlocks:y,onReplace:a,onSplit:s,onSplitMiddle:u,multilineTag:b}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}},[])}function jo(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=Object(_.useDispatch)(S.a),o=Object(l.useRef)(e);return o.current=e,Object(Q.useRefEffect)(e=>{function r(){const{value:e,onReplace:t}=o.current;if(!t)return;const{start:r,text:c}=e;if(" "!==c.slice(r-1,r))return;const i=c.slice(0,r).trim(),l=Object(j.getBlockTransforms)("from").filter(({type:e})=>"prefix"===e),a=Object(j.findTransform)(l,({prefix:e})=>i===e);if(!a)return;const s=Object(co.toHTMLString)({value:Object(co.slice)(e,r,c.length)});t([a.transform(s)]),n()}function c(e){const{inputType:c,type:i}=e,{value:l,onChange:a,__unstableAllowPrefixTransformations:s,formatTypes:u}=o.current;if("insertText"!==c&&"compositionend"!==i)return;s&&r&&r();const d=u.reduce((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e),l);d!==l&&(t(),a({...d,activeFormats:l.activeFormats}),n())}return e.addEventListener("input",c),e.addEventListener("compositionend",c),()=>{e.removeEventListener("input",c),e.removeEventListener("compositionend",c)}},[])}function ko(e){const{__unstableMarkAutomaticChange:t}=Object(_.useDispatch)(S.a),n=Object(l.useRef)(e);return n.current=e,Object(Q.useRefEffect)(e=>{function o(e){if(e.defaultPrevented)return;const{removeEditorOnlyFormats:o,value:r,onReplace:c,onSplit:i,onSplitMiddle:l,multilineTag:a,onChange:s,disableLineBreaks:u,onSplitAtEnd:d}=n.current;if(e.keyCode!==L.ENTER)return;e.preventDefault();const b={...r};b.formats=o(r);const p=c&&i;if(c){const e=Object(j.getBlockTransforms)("from").filter(({type:e})=>"enter"===e),n=Object(j.findTransform)(e,e=>e.regExp.test(b.text));n&&(c([n.transform({content:b.text})]),t())}if(a)e.shiftKey?u||s(Object(co.insert)(b,"\n")):p&&Object(co.__unstableIsEmptyLine)(b)?go({value:b,onReplace:c,onSplit:i,onSplitMiddle:l,multilineTag:a}):s(Object(co.__unstableInsertLineSeparator)(b));else{const{text:t,start:n,end:o}=b,r=d&&n===o&&o===t.length;e.shiftKey||!p&&!r?u||s(Object(co.insert)(b,"\n")):!p&&r?d():p&&go({value:b,onReplace:c,onSplit:i,onSplitMiddle:l,multilineTag:a})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}},[])}function _o(e){return e(co.store).getFormatTypes()}const yo=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function Eo(e){return Object(Q.useRefEffect)(t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}},[])}function Co(e){return Object(Q.useRefEffect)(t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}},[])}function So({formatTypes:e,onChange:t,onFocus:n,value:o,forwardedRef:r}){return e.map(e=>{const{name:c,edit:i}=e;if(!i)return null;const s=Object(co.getActiveFormat)(o,c);let u=void 0!==s;const d=Object(co.getActiveObject)(o),b=void 0!==d&&d.type===c;if("core/link"===c&&!Object(co.isCollapsed)(o)){const e=o.formats,t=Object(a.find)(e[o.start],{type:"core/link"}),n=Object(a.find)(e[o.end-1],{type:"core/link"});t&&n&&t===n||(u=!1)}return Object(l.createElement)(i,{key:c,isActive:u,activeAttributes:u&&s.attributes||{},isObjectActive:b,activeObjectAttributes:b&&d.attributes||{},value:o,onChange:t,onFocus:n,contentRef:r})})}const wo=Object(l.createContext)(),Bo=Object(l.createContext)();const Io=Object(l.forwardRef)((function e({children:t,tagName:n="div",value:o="",onChange:r,isSelected:c,multiline:s,inlineToolbar:d,wrapperClassName:b,autocompleters:p,onReplace:m,placeholder:f,allowedFormats:h,formattingControls:g,withoutInteractiveFormatting:O,onRemove:v,onMerge:y,onSplit:E,__unstableOnSplitAtEnd:C,__unstableOnSplitMiddle:w,identifier:B,preserveWhiteSpace:x,__unstablePastePlainText:T,__unstableEmbedURLOnPaste:P,__unstableDisableFormats:R,disableLineBreaks:N,unstableOnFocus:M,__unstableAllowPrefixTransformations:A,...D},F){const z=Object(Q.useInstanceId)(e);B=B||z,D=function(e){return Object(a.omit)(e,["__unstableMobileNoFocusOnMount","deleteEnter","placeholderTextColor","textAlign","selectionColor","tagsToEliminate","rootTagsToEliminate","disableEditingMenu","fontSize","fontFamily","fontWeight","fontStyle","minWidth","maxWidth","setRef"])}(D);const H=Object(l.useRef)(),{clientId:G}=Object(k.c)(),{selectionStart:U,selectionEnd:W,isSelected:q,disabled:K}=Object(_.useSelect)(e=>{const{getSelectionStart:t,getSelectionEnd:n,isMultiSelecting:o,hasMultiSelection:r}=e(S.a),i=t(),l=n();let a;return void 0===c?a=i.clientId===G&&i.attributeKey===B:c&&(a=i.clientId===G),{selectionStart:a?i.offset:void 0,selectionEnd:a?l.offset:void 0,isSelected:a,disabled:o()||r()}}),{selectionChange:$}=Object(_.useDispatch)(S.a),Y=fo(s),X=ho({allowedFormats:h,formattingControls:g,disableFormats:R}),Z=!X||X.length>0;let J=o,ee=r;Array.isArray(o)&&(J=j.children.toHTML(o),ee=e=>r(j.children.fromDOM(Object(co.__unstableCreateElement)(document,e).childNodes)));const te=Object(l.useCallback)((e,t)=>{$(G,B,e,t)},[G,B]),{formatTypes:ne,prepareHandlers:oe,valueHandlers:re,changeHandlers:ce,dependencies:ie}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=Object(_.useSelect)(_o,[]),c=Object(l.useMemo)(()=>r.filter(({name:e,tagName:t})=>!(o&&!o.includes(e))&&(!n||!yo.has(t))),[r,o,yo]),i=Object(_.useSelect)(n=>c.reduce((o,r)=>(r.__experimentalGetPropsForEditableTreePreparation&&(o[r.name]=r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e})),o),{}),[c,e,t]),a=Object(_.useDispatch)(),s=[],u=[],d=[],b=[];return c.forEach(n=>{if(n.__experimentalCreatePrepareEditableTree){const o=i[n.name],r=n.__experimentalCreatePrepareEditableTree(o,{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(r):s.push(r);for(const e in o)b.push(o[e])}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e})),d.push(n.__experimentalCreateOnChangeEditableValue({...i[n.name]||{},...o},{richTextIdentifier:t,blockClientId:e}))}}),{formatTypes:c,prepareHandlers:s,valueHandlers:u,changeHandlers:d,dependencies:b}}({clientId:G,identifier:B,withoutInteractiveFormatting:O,allowedFormats:X});function le(e){return ne.forEach(t=>{t.__experimentalCreatePrepareEditableTree&&(e=Object(co.removeFormat)(e,t.name,0,e.text.length))}),e.formats}const{value:ae,onChange:se,ref:ue}=Object(co.__unstableUseRichText)({value:J,onChange(e,{__unstableFormats:t,__unstableText:n}){ee(e),Object.values(ce).forEach(e=>{e(t,n)})},selectionStart:U,selectionEnd:W,onSelectionChange:te,placeholder:f,__unstableIsSelected:q,__unstableMultilineTag:Y,__unstableDisableFormats:R,preserveWhiteSpace:x,__unstableDependencies:[...ie,n],__unstableAfterParse:function(e){return re.reduce((t,n)=>n(t,e.text),e.formats)},__unstableBeforeSerialize:le,__unstableAddInvisibleFormats:function(e){return oe.reduce((t,n)=>n(t,e.text),e.formats)}}),de=function(e){return Object(u.__unstableUseAutocompleteProps)({...e,completers:I(e)})}({onReplace:m,completers:p,record:ae,onChange:se});!function({value:e}){const t=e.activeFormats&&!!e.activeFormats.length,{isCaretWithinFormattedText:n}=Object(_.useSelect)(S.a),{enterFormattedText:o,exitFormattedText:r}=Object(_.useDispatch)(S.a);Object(l.useEffect)(()=>{t?n()||o():n()&&r()},[t])}({value:ae}),function({html:e,value:t}){const n=Object(l.useRef)(),o=t.activeFormats&&!!t.activeFormats.length,{__unstableMarkLastChangeAsPersistent:r}=Object(_.useDispatch)(S.a);Object(l.useLayoutEffect)(()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout(()=>{r()},1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text},[e,o])}({html:J,value:ae});const be=Object(l.useRef)(new Set),pe=Object(l.useRef)(new Set);function me(){H.current.focus()}const fe=n,he=Object(l.createElement)(l.Fragment,null,q&&Object(l.createElement)(wo.Provider,{value:be},Object(l.createElement)(Bo.Provider,{value:pe},Object(l.createElement)(u.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},t&&t({value:ae,onChange:se,onFocus:me}),Object(l.createElement)(So,{value:ae,onChange:se,onFocus:me,formatTypes:ne,forwardedRef:H})))),q&&Z&&Object(l.createElement)(ao,{inline:d,anchorRef:H.current}),Object(l.createElement)(fe,Object(i.a)({role:"textbox","aria-multiline":!0,"aria-label":f},D,de,{ref:Object(Q.useMergeRefs)([de.ref,D.ref,ue,jo({value:ae,onChange:se,__unstableAllowPrefixTransformations:A,formatTypes:ne,onReplace:m}),Object(Q.useRefEffect)(e=>{function t(e){(L.isKeyboardEvent.primary(e,"z")||L.isKeyboardEvent.primary(e,"y")||L.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}},[]),Eo(be),Co(pe),so(),vo({isSelected:q,disableFormats:R,onChange:se,value:ae,formatTypes:ne,tagName:n,onReplace:m,onSplit:E,onSplitMiddle:w,__unstableEmbedURLOnPaste:P,multilineTag:Y,preserveWhiteSpace:x,pastePlainText:T}),ko({removeEditorOnlyFormats:le,value:ae,onReplace:m,onSplit:E,onSplitMiddle:w,multilineTag:Y,onChange:se,disableLineBreaks:N,onSplitAtEnd:C}),H,F]),contentEditable:!K||void 0,suppressContentEditableWarning:!K,className:V()("block-editor-rich-text__editable",D.className,"rich-text"),onFocus:M,onKeyDown:function(e){const{keyCode:t}=e;if(!e.defaultPrevented&&(t===L.DELETE||t===L.BACKSPACE)){const{start:n,end:o,text:r}=ae,c=t===L.BACKSPACE,i=ae.activeFormats&&!!ae.activeFormats.length;if(!Object(co.isCollapsed)(ae)||i||c&&0!==n||!c&&o!==r.length)return;y&&y(!c),v&&Object(co.isEmpty)(ae)&&c&&v(!c),e.preventDefault()}}})));if(!b)return he;Xn()("wp.blockEditor.RichText wrapperClassName prop",{since:"5.4",alternative:"className prop or create your own wrapper div"});const ge=V()("block-editor-rich-text",b);return Object(l.createElement)("div",{className:ge},he)}));Io.Content=({value:e,tagName:t,multiline:n,...o})=>{Array.isArray(e)&&(e=j.children.toHTML(e));const r=fo(n);!e&&r&&(e=`<${r}></${r}>`);const c=Object(l.createElement)(l.RawHTML,null,e);return t?Object(l.createElement)(t,Object(a.omit)(o,["format"]),c):c},Io.isEmpty=e=>!e||0===e.length;var xo=Io;const To=Object(l.forwardRef)((e,t)=>Object(l.createElement)(xo,Object(i.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0})));To.Content=({value:e="",tagName:t="div",...n})=>Object(l.createElement)(t,n,e);var Po=To;var Ro=Object(l.forwardRef)(({__experimentalVersion:e,...t},n)=>{if(2===e)return Object(l.createElement)(Po,Object(i.a)({ref:n},t));const{className:o,onChange:r,...c}=t;return Object(l.createElement)(ro.a,Object(i.a)({ref:n,className:V()("block-editor-plain-text",o),onChange:e=>r(e.target.value)},c))});function No({property:e,viewport:t,desc:n}){const o=Object(Q.useInstanceId)(No),r=n||Object(s.sprintf)(Object(s._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."),e,t.label);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("span",{"aria-describedby":"rbc-desc-"+o},t.label),Object(l.createElement)(u.VisuallyHidden,{as:"span",id:"rbc-desc-"+o},r))}var Lo=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:c,renderResponsiveControls:i,isResponsive:a=!1,defaultLabel:d={id:"all",label:Object(s.__)("All")},viewports:b=[{id:"small",label:Object(s.__)("Small screens")},{id:"medium",label:Object(s.__)("Medium screens")},{id:"large",label:Object(s.__)("Large screens")}]}=e;if(!t||!n||!c)return null;const p=o||Object(s.sprintf)(Object(s.__)("Use the same %s on all screensizes."),n),m=Object(s.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),f=c(Object(l.createElement)(No,{property:n,viewport:d}),d);return Object(l.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(l.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(l.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(l.createElement)(u.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:p,checked:!a,onChange:r,help:m}),Object(l.createElement)("div",{className:V()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&f,a&&(i?i(b):b.map(e=>Object(l.createElement)(l.Fragment,{key:e.id},c(Object(l.createElement)(No,{property:n,viewport:e}),e)))))))};function Mo({character:e,type:t,onUse:n}){const o=Object(l.useContext)(wo),r=Object(l.useRef)();return r.current=n,Object(l.useEffect)(()=>{function n(n){L.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}},[e,t]),null}function Ao({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,c="RichText.ToolbarControls";return e&&(c+="."+e),t&&n&&(r=L.displayShortcut[t](n)),Object(l.createElement)(u.Fill,{name:c},Object(l.createElement)(u.ToolbarButton,Object(i.a)({},o,{shortcut:r})))}function Do({inputType:e,onInput:t}){const n=Object(l.useContext)(Bo),o=Object(l.useRef)();return o.current=t,Object(l.useEffect)(()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}},[e]),null}const Fo=Object(l.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(l.createElement)(u.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 zo=Object(l.forwardRef)((function(e,t){const n=Object(_.useSelect)(e=>e(S.a).isNavigationMode(),[]),{setNavigationMode:o}=Object(_.useDispatch)(S.a),r=e=>{o("edit"!==e)};return Object(l.createElement)(u.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>Object(l.createElement)(u.Button,Object(i.a)({},e,{ref:t,icon:n?Fo:Pn.a,"aria-expanded":o,"aria-haspopup":"true",onClick:r,label:Object(s.__)("Tools")})),position:"bottom right",renderContent:()=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.NavigableMenu,{role:"menu","aria-label":Object(s.__)("Tools")},Object(l.createElement)(u.MenuItemsChoice,{value:n?"select":"edit",onSelect:r,choices:[{value:"edit",label:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(A.a,{icon:Pn.a}),Object(s.__)("Edit"))},{value:"select",label:Object(l.createElement)(l.Fragment,null,Fo,Object(s.__)("Select"))}]})),Object(l.createElement)("div",{className:"block-editor-tool-selector__help"},Object(s.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function Ho({units:e,...t}){const n=Object(u.__experimentalUseCustomUnits)({availableUnits:Object(it.a)("spacing.units")||["%","px","em","rem","vw"],units:e});return Object(l.createElement)(u.__experimentalUnitControl,Object(i.a)({units:n},t))}var Vo=n("Bpkj"),Go=n("cjQ8");class Uo extends l.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?Object(s.__)("Edit link"):Object(s.__)("Insert link");return Object(l.createElement)("div",{className:"block-editor-url-input__button"},Object(l.createElement)(u.Button,{icon:Vo.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&Object(l.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(l.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(l.createElement)(u.Button,{className:"block-editor-url-input__back",icon:Go.a,label:Object(s.__)("Close"),onClick:this.toggle}),Object(l.createElement)(gn,{value:e||"",onChange:t}),Object(l.createElement)(u.Button,{icon:un.a,label:Object(s.__)("Submit"),type:"submit"}))))}}var Wo=Uo,qo=n("w95h");const Ko=["noreferrer","noopener"],$o=Object(l.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(u.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(l.createElement)(u.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(l.createElement)(u.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Yo=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:c,linkTarget:i,linkClass:d,rel:b})=>{const[p,m]=Object(l.useState)(!1),f=Object(l.useCallback)(()=>{m(!0)}),[h,g]=Object(l.useState)(!1),[O,v]=Object(l.useState)(null),j=Object(l.useRef)(null),k=Object(l.useCallback)(()=>{"media"!==e&&"attachment"!==e||v(""),g(!0)}),_=Object(l.useCallback)(()=>{g(!1)}),y=Object(l.useCallback)(()=>{v(null),_(),m(!1)}),E=e=>{let t=e;return void 0===e||Object(a.isEmpty)(t)||Object(a.isEmpty)(t)||(Object(a.each)(Ko,e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")}),t!==e&&(t=t.trim()),Object(a.isEmpty)(t)&&(t=void 0)),t},C=Object(l.useCallback)(()=>e=>{const t=j.current;t&&t.contains(e.target)||(m(!1),v(null),_())}),S=Object(l.useCallback)(()=>e=>{if(O){var n;const e=(null===(n=B().find(e=>e.url===O))||void 0===n?void 0:n.linkDestination)||"custom";t({href:O,linkDestination:e})}_(),v(null),e.preventDefault()}),w=Object(l.useCallback)(()=>{t({linkDestination:"none",href:""})}),B=()=>{const e=[{linkDestination:"media",title:Object(s.__)("Media File"),url:"image"===o?r:void 0,icon:$o}];return"image"===o&&c&&e.push({linkDestination:"attachment",title:Object(s.__)("Attachment Page"),url:"image"===o?c:void 0,icon:Object(l.createElement)(u.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)(u.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(l.createElement)(u.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"}))}),e},I=Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.ToggleControl,{label:Object(s.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;return n=t||b?E(b):void 0,{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===i}),Object(l.createElement)(u.TextControl,{label:Object(s.__)("Link Rel"),value:E(b)||"",onChange:e=>{t({rel:e})}}),Object(l.createElement)(u.TextControl,{label:Object(s.__)("Link CSS Class"),value:d||"",onChange:e=>{t({linkClass:e})}})),x=null!==O?O:n,T=(Object(a.find)(B(),["linkDestination",e])||{}).title;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.ToolbarButton,{icon:Vo.a,className:"components-toolbar__control",label:n?Object(s.__)("Edit link"):Object(s.__)("Insert link"),"aria-expanded":p,onClick:f}),p&&Object(l.createElement)(Jn,{onFocusOutside:C(),onClose:y,renderSettings:()=>I,additionalControls:!x&&Object(l.createElement)(u.NavigableMenu,null,Object(a.map)(B(),e=>Object(l.createElement)(u.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{v(null),(e=>{const n=B();let o;o=e?(Object(a.find)(n,t=>t.url===e)||{linkDestination:"custom"}).linkDestination:"none",t({linkDestination:o,href:e})})(e.url),_()}},e.title)))},(!n||h)&&Object(l.createElement)(Jn.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:x,onChangeInputValue:v,onSubmit:S(),autocompleteRef:j}),n&&!h&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(Jn.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:k,urlLabel:T}),Object(l.createElement)(u.Button,{icon:qo.a,label:Object(s.__)("Remove link"),onClick:w}))))};var Xo=n("Jyyd"),Zo=n("mlss");function Qo({children:e,className:t,isEnabled:n=!0,deviceType:o,setDeviceType:r}){if(Object(Q.useViewportMatch)("small","<"))return null;const c={className:V()(t,"block-editor-post-preview__dropdown-content"),position:"bottom left"},i={variant:"tertiary",className:"block-editor-post-preview__button-toggle",disabled:!n,children:Object(s.__)("Preview")};return Object(l.createElement)(u.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:c,toggleProps:i,icon:null},()=>Object(l.createElement)(l.Fragment,null,Object(l.createElement)(u.MenuGroup,null,Object(l.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Desktop"),icon:"Desktop"===o&&Xt.a},Object(s.__)("Desktop")),Object(l.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Tablet"),icon:"Tablet"===o&&Xt.a},Object(s.__)("Tablet")),Object(l.createElement)(u.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>r("Mobile"),icon:"Mobile"===o&&Xt.a},Object(s.__)("Mobile"))),e))}function Jo(e){const[t,n]=Object(l.useState)(window.innerWidth);Object(l.useEffect)(()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px";switch(e){case"Tablet":case"Mobile":return{width:o(e),margin:(window.innerHeight<800?36:72)+"px auto",height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var er=n("PKbb");var tr=Object(_.withSelect)(e=>({selectedBlockClientId:e(S.a).getBlockSelectionStart()}))(({selectedBlockClientId:e})=>{const t=Object(er.b)(e);return e?Object(l.createElement)(u.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},Object(s.__)("Skip to the selected block")):null}),nr=n("GvwK"),or=n("7NR9"),rr=n("7fqt"),cr=n("wzfx");var ir=Object(_.withSelect)(e=>{const{getMultiSelectedBlocks:t}=e(S.a);return{blocks:t()}})((function({blocks:e}){const t=Object(rr.count)(Object(j.serialize)(e),"words");return Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},Object(l.createElement)(C.a,{icon:cr.a,showColors:!0}),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},Object(s.sprintf)(Object(s._n)("%d block","%d blocks",e.length),e.length)),Object(l.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},Object(s.sprintf)(Object(s._n)("%d word","%d words",t),t))))}));function lr({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:o}=Object(_.useSelect)(t=>{var n,o;const r=t(S.a).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:null==r||null===(n=r.value)||void 0===n?void 0:n[e],onUpdatePreferredStyleVariations:null!==(o=null==r?void 0:r.onChange)&&void 0!==o?o:null,styles:t(j.store).getBlockStyles(e)}},[e]),r=Object(l.useMemo)(()=>[{label:Object(s.__)("Not set"),value:""},...o.map(({label:e,name:t})=>({label:e,value:t}))],[o]),c=Object(l.useCallback)(t=>{n(e,t)},[e,n]);return n&&Object(l.createElement)(u.SelectControl,{options:r,value:t||"",label:Object(s.__)("Default Style"),onChange:c})}const ar=({clientId:e,blockName:t,hasBlockStyles:n,bubblesVirtually:o})=>{const r=Object(ce.a)(e);return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(nr.a,r),Object(l.createElement)($e,{blockClientId:e}),n&&Object(l.createElement)("div",null,Object(l.createElement)(u.PanelBody,{title:Object(s.__)("Styles")},Object(l.createElement)(or.a,{clientId:e}),Object(j.hasBlockSupport)(t,"defaultStylePicker",!0)&&Object(l.createElement)(lr,{blockName:t}))),Object(l.createElement)(an.b.Slot,{bubblesVirtually:o}),Object(l.createElement)(an.b.Slot,{__experimentalGroup:"typography",bubblesVirtually:o,label:Object(s.__)("Typography")}),Object(l.createElement)(an.b.Slot,{__experimentalGroup:"dimensions",bubblesVirtually:o,label:Object(s.__)("Dimensions")}),Object(l.createElement)("div",null,Object(l.createElement)(sr,{bubblesVirtually:o})),Object(l.createElement)(tr,{key:"back"}))},sr=({bubblesVirtually:e})=>{const t=Object(u.__experimentalUseSlot)(an.a.slotName);return Boolean(t.fills&&t.fills.length)?Object(l.createElement)(u.PanelBody,{className:"block-editor-block-inspector__advanced",title:Object(s.__)("Advanced"),initialOpen:!1},Object(l.createElement)(an.b.Slot,{__experimentalGroup:"advanced",bubblesVirtually:e})):null};var ur=({showNoBlockSelectedMessage:e=!0,bubblesVirtually:t=!0})=>{const{count:n,hasBlockStyles:o,selectedBlockName:r,selectedBlockClientId:c,blockType:i}=Object(_.useSelect)(e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o}=e(S.a),{getBlockStyles:r}=e(j.store),c=t(),i=c&&o(c),l=i&&Object(j.getBlockType)(i),a=i&&r(i);return{count:n(),selectedBlockClientId:c,selectedBlockName:i,blockType:l,hasBlockStyles:a&&a.length>0}},[]);if(n>1)return Object(l.createElement)("div",{className:"block-editor-block-inspector"},Object(l.createElement)(ir,null),Object(l.createElement)(an.b.Slot,{bubblesVirtually:t}));const a=r===Object(j.getUnregisteredTypeHandlerName)();return i&&c&&!a?Object(l.createElement)(ar,{clientId:c,blockName:i.name,hasBlockStyles:o,bubblesVirtually:t}):e?Object(l.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(s.__)("No block selected.")):null},dr=n("VyCT"),br=n("nlh6"),pr=n("w8sn"),mr=n("JygI"),fr=n("zQI6"),hr=n("U1WI"),gr=n("pXCJ"),Or=n("+gtr"),vr=n("hF7m"),jr=n("PS/H"),kr=n("xCFn"),_r=n("JUfZ"),yr=n("2z9l");function Er({children:e,__unstableContentRef:t,...n}){const o=Object(Q.useViewportMatch)("medium"),r=Object(_.useSelect)(e=>e(S.a).getSettings().hasFixedToolbar,[]),c=Object(vr.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:s,getBlockRootClientId:d}=Object(_.useSelect)(S.a),{duplicateBlocks:b,removeBlocks:p,insertAfterBlock:m,insertBeforeBlock:f,clearSelectedBlock:h,moveBlocksUp:g,moveBlocksDown:O}=Object(_.useDispatch)(S.a);return Object(l.createElement)("div",Object(i.a)({},n,{onKeyDown:function(e){if(c("core/block-editor/move-up",e)){const t=s();if(t.length){e.preventDefault();const n=d(Object(a.first)(t));g(t,n)}}else if(c("core/block-editor/move-down",e)){const t=s();if(t.length){e.preventDefault();const n=d(Object(a.first)(t));O(t,n)}}else if(c("core/block-editor/duplicate",e)){const t=s();t.length&&(e.preventDefault(),b(t))}else if(c("core/block-editor/remove",e)){const t=s();t.length&&(e.preventDefault(),p(t))}else if(c("core/block-editor/insert-after",e)){const t=s();t.length&&(e.preventDefault(),m(Object(a.last)(t)))}else if(c("core/block-editor/insert-before",e)){const t=s();t.length&&(e.preventDefault(),f(Object(a.first)(t)))}else if(c("core/block-editor/delete-multi-selection",e)){const t=s();t.length>1&&(e.preventDefault(),p(t))}else if(c("core/block-editor/unselect",e)){s().length>1&&(e.preventDefault(),h(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges())}}}),Object(l.createElement)(jr.b,{__unstableContentRef:t},(r||!o)&&Object(l.createElement)(_r.a,{isFixed:!0}),Object(l.createElement)(kr.a,{__unstableContentRef:t}),Object(l.createElement)(u.Popover.Slot,{name:"block-toolbar",ref:Object(yr.a)(t)}),e,Object(l.createElement)(u.Popover.Slot,{name:"__unstable-block-tools-after",ref:Object(yr.a)(t)})))}var Cr=n("+0ps"),Sr=n("5L8O"),wr=n("KyyN"),Br=n("qrxh"),Ir=n("xZzQ");var xr=function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:c,__experimentalFilterValue:i,onSelect:s=a.noop,shouldFocusBlock:u=!1}){const d=Object(_.useSelect)(n=>{const{getBlockRootClientId:o}=n(S.a);return e||o(t)||void 0},[t,e]);return Object(l.createElement)(Ir.a,{onSelect:s,rootClientId:d,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:c,__experimentalFilterValue:i,shouldFocusBlock:u})};function Tr(){return null}Tr.Register=function(){const{registerShortcut:e}=Object(_.useDispatch)(vr.store);return Object(l.useEffect)(()=>{e({name:"core/block-editor/duplicate",category:"block",description:Object(s.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(s.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(s.__)("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(s.__)("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(s.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(s.__)("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(s.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(s.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(s.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(s.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})},[e]),null};var Pr=Tr;function Rr(){return Xn()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in."}),null}var Nr=n("GkEL");const Lr=new Set([L.UP,L.RIGHT,L.DOWN,L.LEFT,L.ENTER,L.BACKSPACE]);function Mr(){const e=Object(_.useSelect)(e=>e(S.a).isTyping(),[]),{stopTyping:t}=Object(_.useDispatch)(S.a);return Object(Q.useRefEffect)(n=>{if(!e)return;const{ownerDocument:o}=n;let r,c;function i(e){const{clientX:n,clientY:o}=e;r&&c&&(r!==n||c!==o)&&t(),r=n,c=o}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}},[e,t])}function Ar(){const e=Object(_.useSelect)(e=>e(S.a).isTyping()),{startTyping:t,stopTyping:n}=Object(_.useDispatch)(S.a),o=Mr(),r=Object(Q.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;if(e){let e;function i(t){const{target:o}=t;e=c.setTimeout(()=>{Object(dn.isTextField)(o)||n()})}function l(e){const{keyCode:t}=e;t!==L.ESCAPE&&t!==L.TAB||n()}function a(){const e=c.getSelection();e.rangeCount>0&&e.getRangeAt(0).collapsed||n()}return o.addEventListener("focus",i),o.addEventListener("keydown",l),r.addEventListener("selectionchange",a),()=>{c.clearTimeout(e),o.removeEventListener("focus",i),o.removeEventListener("keydown",l),r.removeEventListener("selectionchange",a)}}function s(e){const{type:n,target:r}=e;Object(dn.isTextField)(r)&&o.contains(r)&&("keydown"!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&Lr.has(t)}(e))&&t()}return o.addEventListener("keypress",s),o.addEventListener("keydown",s),()=>{o.removeEventListener("keypress",s),o.removeEventListener("keydown",s)}},[e,t,n]);return Object(Q.useMergeRefs)([o,r])}var Dr=function({children:e}){return Object(l.createElement)("div",{ref:Ar()},e)};function Fr(){return Xn()("PreserveScrollInReorder component",{since:"5.4",hint:"This behavior is now built-in the block list"}),null}const zr=-1!==window.navigator.userAgent.indexOf("Trident"),Hr=new Set([L.UP,L.DOWN,L.LEFT,L.RIGHT]);function Vr(){const e=Object(_.useSelect)(e=>e(S.a).hasSelectedBlock(),[]);return Object(Q.useRefEffect)(t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,c,i;function l(){r||(r=o.requestAnimationFrame(()=>{b(),r=null}))}function a(e){c&&o.cancelAnimationFrame(c),c=o.requestAnimationFrame(()=>{s(e),c=null})}function s({keyCode:e}){if(!p())return;const r=Object(dn.computeCaretRect)(o);if(!r)return;if(!i)return void(i=r);if(Hr.has(e))return void(i=r);const c=r.top-i.top;if(0===c)return;const l=Object(dn.getScrollContainer)(t);if(!l)return;const a=l===n.body,s=a?o.scrollY:l.scrollTop,u=a?0:l.getBoundingClientRect().top,d=a?i.top/o.innerHeight:(i.top-u)/(o.innerHeight-u);if(0===s&&d<.75&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(i=r);const b=a?o.innerHeight:l.clientHeight;i.top+i.height>u+b||i.top<u?i=r:a?o.scrollBy(0,c):l.scrollTop+=c}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),b()}function b(){p()&&(i=Object(dn.computeCaretRect)(o))}function p(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",l,!0),o.addEventListener("resize",l,!0),t.addEventListener("keydown",a),t.addEventListener("keyup",s),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",l,!0),o.removeEventListener("resize",l,!0),t.removeEventListener("keydown",a),t.removeEventListener("keyup",s),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(c)}},[e])}var Gr=zr?e=>e.children:function({children:e}){return Object(l.createElement)("div",{ref:Vr(),className:"block-editor__typewriter"},e)},Ur=n("Zzu2"),Wr=n("TVFh");const qr=Object(a.overEvery)([dn.isTextField,dn.focus.tabbable.isTabbableIndex]);function Kr(){return Object(Q.useRefEffect)(e=>{function t(t){if(t.target!==e)return;const n=dn.focus.focusable.find(e),o=Object(a.findLast)(n,qr);if(!o)return;const{bottom:r}=o.getBoundingClientRect();t.clientY<r||(Object(dn.placeCaretAtHorizontalEdge)(o,!0),t.preventDefault())}return e.addEventListener("mousedown",t),()=>{e.addEventListener("mousedown",t)}},[])}var $r=n("hHnB");const Yr=Object(l.createContext)({});function Xr(e,t=""){var n;const o=Object(l.useContext)(Yr),{name:r}=Object(k.c)();t=t||r;const c=Boolean(null===(n=o[t])||void 0===n?void 0:n.has(e)),i=Object(l.useMemo)(()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,t,e),[o,t,e]);return[c,Object(l.useCallback)(({children:e})=>Object(l.createElement)(Yr.Provider,{value:i},e),[i])]}var Zr=n("/QNa")},"16Al":function(e,t,n){"use strict";var o=n("WbBG");function r(){}function c(){}c.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,c,i){if(i!==o){var l=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 l.name="Invariant Violation",l}}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:r};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},"1CF3":function(e,t){e.exports=window.wp.dom},"1K8p":function(e,t,n){"use strict";var o=n("jrfk"),r=n("ez49");function c(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}c.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=c},"1ZqX":function(e,t){e.exports=window.wp.data},"1eGn":function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),i=n("l3Sj"),l=n("tI+e"),a=n("1ZqX"),s=n("VKE3"),u=n("HSyU"),d=n("hF7m"),b=n("K9lf"),p=n("+0ps"),m=n("BhPs");function f({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:i,canMoveBlocks:l,canRemoveBlocks:s}=Object(a.useSelect)(m.a),{getDefaultBlockName:d,getGroupingBlockName:b}=Object(a.useSelect)(u.store),f=i(e),h=r(e[0]),g=Object(c.every)(f,e=>!!e&&Object(u.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,h)),O=o(d(),h),v=l(e,h),j=s(e,h),{removeBlocks:k,replaceBlocks:_,duplicateBlocks:y,insertAfterBlock:E,insertBeforeBlock:C,flashBlock:S,setBlockMovingClientId:w,setNavigationMode:B,selectBlock:I}=Object(a.useDispatch)(m.a),x=Object(p.c)();return t({canDuplicate:g,canInsertDefaultBlock:O,canMove:v,canRemove:j,rootClientId:h,blocks:f,onDuplicate:()=>y(e,n),onRemove:()=>k(e,n),onInsertBefore(){C(Object(c.first)(Object(c.castArray)(e)))},onInsertAfter(){E(Object(c.last)(Object(c.castArray)(e)))},onMoveTo(){B(!0),I(e[0]),w(e[0])},onGroup(){if(!f.length)return;const t=b(),n=Object(u.switchToBlockType)(f,t);n&&_(e,n)},onUngroup(){if(!f.length)return;const t=f[0].innerBlocks;t.length&&_(e,t)},onCopy(){const e=f.map(({clientId:e})=>e);1===f.length&&S(e[0]),x("copy",e)}})}var h=Object(b.compose)([Object(a.withSelect)((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(m.a),c=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:c?Object(u.getBlockType)(c.name):null,isCodeEditingEnabled:i}}),Object(a.withDispatch)((e,{onToggle:t=c.noop,clientId:n})=>({onToggleMode(){e(m.a).toggleBlockMode(n),t()}}))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:c=!0}){if(!Object(u.hasBlockSupport)(e,"html",!0)||!c)return null;const a="visual"===t?Object(i.__)("Edit as HTML"):Object(i.__)("Edit visually");return Object(r.createElement)(l.MenuItem,{onClick:n},!o&&a)}));var g=Object(b.compose)(Object(a.withSelect)((e,{clientId:t})=>{const n=e(m.a).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}}),Object(a.withDispatch)((e,{block:t})=>({onClick:()=>e(m.a).replaceBlocks(t.clientId,Object(u.rawHandler)({HTML:Object(u.getBlockContent)(t)}))})))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=Object(i.__)("Convert to Blocks");return Object(r.createElement)(l.MenuItem,{onClick:t},!n&&o)})),O=n("Jyyd"),v=n("pXCJ");const j={className:"block-editor-block-settings-menu__popover",position:"bottom right",isAlternate:!0};function k({blocks:e,onCopy:t}){const n=Object(b.useCopyToClipboard)(()=>Object(u.serialize)(e),t);return Object(r.createElement)(l.MenuItem,{ref:n},Object(i.__)("Copy"))}t.a=function({clientIds:e,__experimentalSelectBlock:t,children:n,...b}){const p=Object(c.castArray)(e),_=p.length,y=p[0],{onlyBlock:E,title:C}=Object(a.useSelect)(e=>{var t;const{getBlockCount:n,getBlockName:o}=e(m.a),{getBlockType:r}=e(u.store);return{onlyBlock:1===n(),title:null===(t=r(o(y)))||void 0===t?void 0:t.title}},[y]),S=Object(a.useSelect)(e=>{const{getShortcutRepresentation:t}=e(d.store);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")}},[]),w=Object(r.useCallback)(t?async e=>{const n=await e;n&&n[0]&&t(n[0])}:c.noop,[t]),B=Object(i.sprintf)(Object(i.__)("Remove %s"),C),I=1===_?B:Object(i.__)("Remove blocks");return Object(r.createElement)(f,{clientIds:e,__experimentalUpdateSelection:!t},({canDuplicate:t,canInsertDefaultBlock:a,canMove:u,canRemove:d,onDuplicate:p,onInsertAfter:m,onInsertBefore:f,onRemove:C,onCopy:B,onMoveTo:x,blocks:T})=>Object(r.createElement)(l.DropdownMenu,Object(o.a)({icon:s.a,label:Object(i.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:j,noIcons:!0},b),({onClose:o})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.MenuGroup,null,Object(r.createElement)(O.a.Slot,{fillProps:{onClose:o}}),1===_&&Object(r.createElement)(g,{clientId:y}),Object(r.createElement)(k,{blocks:T,onCopy:B}),t&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,p,w),shortcut:S.duplicate},Object(i.__)("Duplicate")),a&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,f),shortcut:S.insertBefore},Object(i.__)("Insert before")),Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,m),shortcut:S.insertAfter},Object(i.__)("Insert after"))),u&&!E&&Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,x)},Object(i.__)("Move to")),1===_&&Object(r.createElement)(h,{clientId:y,onToggle:o})),Object(r.createElement)(v.a.Slot,{fillProps:{onClose:o},clientIds:e}),"function"==typeof n?n({onClose:o}):r.Children.map(e=>Object(r.cloneElement)(e,{onClose:o})),d&&Object(r.createElement)(l.MenuGroup,null,Object(r.createElement)(l.MenuItem,{onClick:Object(c.flow)(o,C,w),shortcut:S.remove},I)))))}},"1iEr":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},"1oY3":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("wx14"),r=n("GRId"),c=n("NtoT"),i=n("jwne");const l=c.a;l.Slot=i.a;const a=e=>Object(r.createElement)(c.a,Object(o.a)({},e,{__experimentalGroup:"advanced"}));a.Slot=e=>Object(r.createElement)(i.a,Object(o.a)({},e,{__experimentalGroup:"advanced"})),a.slotName="InspectorAdvancedControls",t.b=l},"1uGa":function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),i=n("RxS6");t.a=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:l,value:a,onChange:s}){return Object(o.createElement)(r.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:Object(c.__)("Duotone"),isAlternate:!0},renderToggle:({isOpen:e,onToggle:t})=>Object(o.createElement)(r.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==i.DOWN||(n.preventDefault(),t())},label:Object(c.__)("Apply duotone filter"),icon:Object(o.createElement)(r.DuotoneSwatch,{values:a})}),renderContent:()=>Object(o.createElement)(r.MenuGroup,{label:Object(c.__)("Duotone")},Object(o.createElement)("div",{className:"block-editor-duotone-control__description"},Object(c.__)("Create a two-tone color effect without losing your original image.")),Object(o.createElement)(r.DuotonePicker,{colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:l,value:a,onChange:s}))})}},"2YCo":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),i=n("bVTw"),l=n("Tqx9");var a=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(l.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var s=Object(o.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(l.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const u=[{label:Object(c.__)("Solid"),icon:i.a,value:"solid"},{label:Object(c.__)("Dashed"),icon:a,value:"dashed"},{label:Object(c.__)("Dotted"),icon:s,value:"dotted"}];function d({onChange:e,value:t}){return Object(o.createElement)("fieldset",{className:"components-border-style-control"},Object(o.createElement)("legend",null,Object(c.__)("Style")),Object(o.createElement)("div",{className:"components-border-style-control__buttons"},u.map(n=>Object(o.createElement)(r.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===t,onClick:()=>e(n.value===t?void 0:n.value),"aria-label":n.label}))))}},"2gm7":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},"2z9l":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("K9lf");function r(e){return Object(o.useRefEffect)(t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}},[e])}},"5L8O":function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("l3Sj"),l=n("K9lf"),a=n("HSyU"),s=n("rmEH"),u=n("1ZqX"),d=n("qrxh"),b=n("BhPs");t.a=Object(l.compose)(Object(u.withSelect)((e,t)=>{const{getBlockCount:n,getBlockName:o,isBlockValid:r,getSettings:c,getTemplateLock:i}=e(b.a),l=!n(t.rootClientId),s=o(t.lastBlockClientId)===Object(a.getDefaultBlockName)(),u=r(t.lastBlockClientId),{bodyPlaceholder:d}=c();return{isVisible:l||!s||!u,showPrompt:l,isLocked:!!i(t.rootClientId),placeholder:d}}),Object(u.withDispatch)((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(b.a);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}}))((function({isLocked:e,isVisible:t,onAppend:n,showPrompt:r,placeholder:l,rootClientId:a}){if(e||!t)return null;const u=Object(s.decodeEntities)(l)||Object(i.__)("Type / to choose a block");return Object(o.createElement)("div",{"data-root-client-id":a||"",className:c()("block-editor-default-block-appender",{"has-visible-prompt":r})},Object(o.createElement)("p",{tabIndex:"0",contentEditable:!0,suppressContentEditableWarning:!0,role:"button","aria-label":Object(i.__)("Add block"),className:"block-editor-default-block-appender__content",onFocus:n},r?u:"\ufeff"),Object(o.createElement)(d.a,{rootClientId:a,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}))},"5gPN":function(e,t,n){"use strict";n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"d",(function(){return o.c})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return b}));var o=n("bVpQ"),r=n("wx14"),c=n("GRId"),i=n("YLtl"),l=n("K9lf"),a=n("v5LD");const s=[];function u(e,t){const n=Object(i.reduce)(e,(e,t)=>({...e,...Object(i.isString)(t)?{[t]:Object(i.kebabCase)(t)}:t}),{});return Object(l.compose)([t,e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return Object(o.d)(t,e)}createSetters(){return Object(i.reduce)(n,(e,t,n)=>{const o=Object(i.upperFirst)(n),r="custom"+o;return e["set"+o]=this.createSetColor(n,r),e},{})}createSetColor(e,t){return n=>{const r=Object(o.c)(this.props.colors,n);this.props.setAttributes({[e]:r&&r.slug?r.slug:void 0,[t]:r&&r.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},r){return Object(i.reduce)(n,(n,c,l)=>{const a=Object(o.b)(t,e[l],e["custom"+Object(i.upperFirst)(l)]),s=r[l];return(null==s?void 0:s.color)===a.color&&s?n[l]=s:n[l]={...a,class:Object(o.a)(c,a.slug)},n},{})}render(){return Object(c.createElement)(e,Object(r.a)({},this.props,{colors:void 0},this.state,this.setters,{colorUtils:this.colorUtils}))}}])}function d(e){return(...t)=>{const n=(e=>Object(l.createHigherOrderComponent)(t=>n=>Object(c.createElement)(t,Object(r.a)({},n,{colors:e})),"withCustomColorPalette"))(e);return Object(l.createHigherOrderComponent)(u(t,n),"withCustomColors")}}function b(...e){const t=Object(l.createHigherOrderComponent)(e=>t=>{const n=Object(a.a)("color.palette")||s;return Object(c.createElement)(e,Object(r.a)({},t,{colors:n}))},"withEditorColorPalette");return Object(l.createHigherOrderComponent)(u(e,t),"withColors")}},"6ZVF":function(e,t,n){"use strict";var o=n("GRId"),r=n("HSyU"),c=n("wx14"),i=n("TSYQ"),l=n.n(i),a=n("RxS6"),s=n("7SSY"),u=n("M+co"),d=n("j6zP");function b(e=window){const{platform:t}=e.navigator;return-1!==t.indexOf("Mac")||["iPad","iPhone"].includes(t)}var p=Object(o.memo)((function({className:e,isFirst:t,item:n,onSelect:i,onHover:p,isDraggable:m,...f}){const h=Object(o.useRef)(!1),g=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},O=Object(o.useMemo)(()=>[Object(r.createBlock)(n.name,n.initialAttributes,Object(r.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))],[n.name,n.initialAttributes,n.initialAttributes]);return Object(o.createElement)(d.a,{isEnabled:m&&!n.disabled,blocks:O,icon:n.icon},({draggable:r,onDragStart:d,onDragEnd:m})=>Object(o.createElement)("div",{className:"block-editor-block-types-list__list-item",draggable:r,onDragStart:e=>{h.current=!0,d&&(p(null),d(e))},onDragEnd:e=>{h.current=!1,m&&m(e)}},Object(o.createElement)(u.a,Object(c.a)({isFirst:t,className:l()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),i(n,b()?e.metaKey:e.ctrlKey),p(null)},onKeyDown:e=>{const{keyCode:t}=e;t===a.ENTER&&(e.preventDefault(),i(n,b()?e.metaKey:e.ctrlKey),p(null))},onFocus:()=>{h.current||p(n)},onMouseEnter:()=>{h.current||p(n)},onMouseLeave:()=>p(null),onBlur:()=>p(null)},f),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:g},Object(o.createElement)(s.a,{icon:n.icon,showColors:!0})),Object(o.createElement)("span",{className:"block-editor-block-types-list__item-title"},n.title))))})),m=n("xkPd"),f=n("HC45");t.a=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:c,label:i,isDraggable:l=!0}){return Object(o.createElement)(m.a,{className:"block-editor-block-types-list","aria-label":i},function(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}(e,3).map((e,c)=>Object(o.createElement)(f.a,{key:c},e.map((e,i)=>Object(o.createElement)(p,{key:e.id,item:e,className:Object(r.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:l,isFirst:0===c&&0===i})))),c)}},"6c9H":function(e,t,n){"use strict";var o=n("GRId"),r=n("fHnH"),c=n("abaT"),i=n("7bKH"),l=n("gdqT"),a=n("l3Sj"),s=n("tI+e");function u({colordBackgroundColor:e,colordTextColor:t,backgroundColor:n,textColor:r}){const c=e.brightness()<t.brightness()?Object(a.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter text color."):Object(a.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker text color.");return Object(o.useEffect)(()=>{Object(l.speak)(Object(a.__)("This color combination may be hard for people to read."))},[n,r]),Object(o.createElement)("div",{className:"block-editor-contrast-checker"},Object(o.createElement)(s.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},c))}Object(r.b)([c.a,i.a]),t.a=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fontSize:c,isLargeText:i,textColor:l}){if(!e&&!t||!l&&!n)return null;const a=Object(r.a)(e||t),s=Object(r.a)(l||n);return 1!==a.alpha()||1!==s.alpha()||s.isReadable(a,{level:"AA",size:i||!1!==i&&c>=24?"large":"small"})?null:Object(o.createElement)(u,{backgroundColor:e,textColor:l,colordBackgroundColor:a,colordTextColor:s})}},"6jxZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("1ZqX"),r=n("K9lf"),c=n("OL6h"),i=n("BhPs");function l(e){const{isBlockSelected:t}=Object(o.useSelect)(i.a),{selectBlock:n,selectionChange:l}=Object(o.useDispatch)(i.a);return Object(r.useRefEffect)(o=>{function r(r){t(e)?r.target.isContentEditable||l(e):Object(c.c)(o,r.target)&&n(e)}return o.addEventListener("focusin",r),()=>{o.removeEventListener("focusin",r)}},[t,n])}},"715p":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("YLtl");const r=e=>{if(!Object(o.isObject)(e)||Array.isArray(e))return e;const t=Object(o.pickBy)(Object(o.mapValues)(e,r),o.identity);return Object(o.isEmpty)(t)?void 0:t}},"7NR9":function(e,t,n){"use strict";var o=n("GRId"),r=n("YLtl"),c=n("TSYQ"),i=n.n(c),l=n("1ZqX"),a=n("RxS6"),s=n("l3Sj"),u=n("HSyU"),d=n("BLeD"),b=n.n(d);var p=n("REKd"),m=n("BhPs");const f={};function h({genericPreviewBlock:e,viewportWidth:t,style:n,isActive:r,onBlur:c,onHover:l,onSelect:s,styleClassName:u,itemRole:d}){const b=Object(o.useMemo)(()=>({...e,attributes:{...e.attributes,className:u}}),[e,u]);return Object(o.createElement)("div",{key:n.name,className:i()("block-editor-block-styles__item",{"is-active":r}),onClick:()=>s(),onKeyDown:e=>{a.ENTER!==e.keyCode&&a.SPACE!==e.keyCode||(e.preventDefault(),s())},onMouseEnter:l,onMouseLeave:c,role:d||"button",tabIndex:"0","aria-label":n.label||n.name},Object(o.createElement)("div",{className:"block-editor-block-styles__item-preview"},Object(o.createElement)(p.a,{viewportWidth:t,blocks:b})),Object(o.createElement)("div",{className:"block-editor-block-styles__item-label"},n.label||n.name))}t.a=function({clientId:e,onSwitch:t=r.noop,onHoverClassName:n=r.noop,itemRole:c}){const{styles:i,block:a,type:d,className:p}=Object(l.useSelect)(t=>{const{getBlock:n}=t(m.a),o=n(e);if(!o)return f;const r=Object(u.getBlockType)(o.name),{getBlockStyles:c}=t(u.store);return{block:o,type:r,styles:c(o.name),className:o.attributes.className||""}},[e]),{updateBlockAttributes:g}=Object(l.useDispatch)(m.a),O=function(e,t){return Object(o.useMemo)(()=>{const n=null==t?void 0:t.example,o=null==t?void 0:t.name;return n&&o?Object(u.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?Object(u.cloneBlock)(e):void 0},[null!=t&&t.example?null==e?void 0:e.name:e,t])}(a,d);if(!i||0===i.length)return null;const v=Object(r.find)(i,"isDefault")?i:[{name:"default",label:Object(s._x)("Default","block style"),isDefault:!0},...i],j=function(e,t){for(const n of new b.a(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=Object(r.find)(e,{name:t});if(o)return o}return Object(r.find)(e,"isDefault")}(v,p);return Object(o.createElement)("div",{className:"block-editor-block-styles"},v.map(r=>{var i,l;const a=function(e,t,n){const o=new b.a(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}(p,j,r);return Object(o.createElement)(h,{genericPreviewBlock:O,viewportWidth:null!==(i=null===(l=d.example)||void 0===l?void 0:l.viewportWidth)&&void 0!==i?i:500,className:p,isActive:j===r,key:r.name,onSelect:()=>{g(e,{className:a}),n(null),t()},onBlur:()=>n(null),onHover:()=>n(a),style:r,styleClassName:a,itemRole:c})}))}},"7SSY":function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("tI+e"),l=n("//Lo");t.a=Object(o.memo)((function({icon:e,showColors:t=!1,className:n}){var r;"block-default"===(null===(r=e)||void 0===r?void 0:r.src)&&(e={src:l.a});const a=Object(o.createElement)(i.Icon,{icon:e&&e.src?e.src:e}),s=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return Object(o.createElement)("span",{style:s,className:c()("block-editor-block-icon",n,{"has-colors":t})},a)}))},"7bKH":function(e,t,n){"use strict";var o=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},r=function(e){return.2126*o(e.r)+.7152*o(e.g)+.0722*o(e.b)};t.a=function(e){e.prototype.luminance=function(){return e=r(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,c,i,l,a,s,u=t instanceof e?t:new e(t);return i=this.rgba,l=u.toRgb(),n=(a=r(i))>(s=r(l))?(a+.05)/(s+.05):(s+.05)/(a+.05),void 0===(o=2)&&(o=0),void 0===c&&(c=Math.pow(10,o)),Math.floor(c*n)/c+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(c=(n=t).size)?"normal":c,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,c,i}}},"7fqt":function(e,t){e.exports=window.wp.wordcount},"8oxB":function(e,t){var n,o,r=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var a,s=[],u=!1,d=-1;function b(){u&&a&&(u=!1,a.length?s=a.concat(s):d=-1,s.length&&p())}function p(){if(!u){var e=l(b);u=!0;for(var t=s.length;t;){for(a=s,s=[];++d<t;)a&&a[d].run();d=-1,t=s.length}a=null,u=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===i||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||u||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9Ma0":function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return y}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("YLtl"),a=n("HSyU"),s=n("tI+e"),u=n("K9lf"),d=n("1ZqX"),b=n("l3Sj"),p=n("1iEr"),m=n("2gm7"),f=n("XgzB"),h=n("NWDH");function g(e,t,n,o,r,c,i){const l=n+1,a=e=>"up"===e?"horizontal"===i?Object(b.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===i?Object(b.isRTL)()?"left":"right":"down":null;if(e>1)return function(e,t,n,o,r){const c=t+1;if(r<0&&n)return Object(b.__)("Blocks cannot be moved up as they are already at the top");if(r>0&&o)return Object(b.__)("Blocks cannot be moved down as they are already at the bottom");if(r<0&&!n)return Object(b.sprintf)(Object(b._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(r>0&&!o)return Object(b.sprintf)(Object(b._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,o,r,c);if(o&&r)return Object(b.sprintf)(Object(b.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!r){const e=a("down");if("down"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&r){const e=a("down");if("down"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and cant be moved down"),t);if("left"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and cant be moved left"),t);if("right"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the end of the content and cant be moved right"),t)}if(c<0&&!o){const e=a("up");if("up"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===e)return Object(b.sprintf)(Object(b.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&o){const e=a("up");if("up"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and cant be moved up"),t);if("left"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and cant be moved left"),t);if("right"===e)return Object(b.sprintf)(Object(b.__)("Block %1$s is at the beginning of the content and cant be moved right"),t)}}var O=n("BhPs");const v=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?p.a:m.a:f.a:"down"===e?"horizontal"===t?Object(b.isRTL)()?m.a:p.a:h.a:null,j=(e,t)=>"up"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move right"):Object(b.__)("Move left"):Object(b.__)("Move up"):"down"===e?"horizontal"===t?Object(b.isRTL)()?Object(b.__)("Move left"):Object(b.__)("Move right"):Object(b.__)("Move down"):null,k=Object(r.forwardRef)(({clientIds:e,direction:t,orientation:n,...c},b)=>{const p=Object(u.useInstanceId)(k),m=Object(l.castArray)(e).length,{blockType:f,isDisabled:h,rootClientId:_,isFirst:y,isLast:E,firstIndex:C,orientation:S="vertical"}=Object(d.useSelect)(o=>{const{getBlockIndex:r,getBlockRootClientId:c,getBlockOrder:i,getBlock:s,getBlockListSettings:u}=o(O.a),d=Object(l.castArray)(e),b=Object(l.first)(d),p=c(b),m=r(b,p),f=r(Object(l.last)(d),p),h=i(p),g=s(b),v=0===m,j=f===h.length-1,{orientation:k}=u(p)||{};return{blockType:g?Object(a.getBlockType)(g.name):null,isDisabled:"up"===t?v:j,rootClientId:p,firstIndex:m,isFirst:v,isLast:j,orientation:n||k}},[e,t]),{moveBlocksDown:w,moveBlocksUp:B}=Object(d.useDispatch)(O.a),I="up"===t?B:w,x="block-editor-block-mover-button__description-"+p;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(s.Button,Object(o.a)({ref:b,className:i()("block-editor-block-mover-button",`is-${t}-button`),icon:v(t,S),label:j(t,S),"aria-describedby":x},c,{onClick:h?null:t=>{I(e,_),c.onClick&&c.onClick(t)},"aria-disabled":h})),Object(r.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},g(m,f&&f.title,C,y,E,"up"===t?-1:1,S)))}),_=Object(r.forwardRef)((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"up",ref:t},e))),y=Object(r.forwardRef)((e,t)=>Object(r.createElement)(k,Object(o.a)({direction:"down",ref:t},e)))},"9XVa":function(e,t,n){"use strict";n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return o.b})),n.d(t,"d",(function(){return o.c})),n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return d}));var o=n("NMUH"),r=n("QP/w"),c=n("wx14"),i=n("GRId"),l=n("YLtl"),a=n("K9lf"),s=n("v5LD");const u=[];var d=(...e)=>{const t=Object(l.reduce)(e,(e,t)=>(e[t]="custom"+Object(l.upperFirst)(t),e),{});return Object(a.createHigherOrderComponent)(Object(a.compose)([Object(a.createHigherOrderComponent)(e=>t=>{const n=Object(s.a)("typography.fontSizes")||u;return Object(i.createElement)(e,Object(c.a)({},t,{fontSizes:n}))},"withFontSizes"),e=>class extends i.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object(l.reduce)(t,(e,t,n)=>(e["set"+Object(l.upperFirst)(n)]=this.createSetFontSize(n,t),e),{})}createSetFontSize(e,t){return n=>{const o=Object(l.find)(this.props.fontSizes,{size:Number(n)});this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},r){const c=(t,n)=>!r[n]||(e[n]?e[n]!==r[n].slug:r[n].size!==e[t]);if(!Object(l.some)(t,c))return null;const i=Object(l.reduce)(Object(l.pickBy)(t,c),(t,r,c)=>{const i=e[c],l=Object(o.a)(n,i,e[r]);return t[c]={...l,class:Object(o.b)(i)},t},{});return{...r,...i}}render(){return Object(i.createElement)(e,Object(c.a)({},this.props,{fontSizes:void 0},this.state,this.setters))}}]),"withFontSizes")}},AHN3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o="core/block-editor"},AORF:function(e,t,n){"use strict";var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),i=n("l3Sj"),l=n("gdqT"),a=n("GRId"),s=n("BhPs");t.a=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:u,onSelect:d,shouldFocusBlock:b=!0}){const{getSelectedBlock:p}=Object(r.useSelect)(s.a),{destinationRootClientId:m,destinationIndex:f}=Object(r.useSelect)(o=>{const{getSelectedBlockClientId:r,getBlockRootClientId:c,getBlockIndex:i,getBlockOrder:l}=o(s.a),a=r();let d,b=e;return void 0!==t?d=t:n?d=i(n,b):!u&&a?(b=c(a),d=i(a,b)+1):d=l(b).length,{destinationRootClientId:b,destinationIndex:d}},[e,t,n,u]),{replaceBlocks:h,insertBlocks:g,showInsertionPoint:O,hideInsertionPoint:v}=Object(r.useDispatch)(s.a),j=Object(a.useCallback)((e,t,n=!1)=>{const r=p();!u&&r&&Object(c.isUnmodifiedDefaultBlock)(r)?h(r.clientId,e,null,b||n?0:null,t):g(e,f,m,!0,b||n?0:null,t);const a=Object(i.sprintf)(Object(i._n)("%d block added.","%d blocks added.",Object(o.castArray)(e).length),Object(o.castArray)(e).length);Object(l.speak)(a),d&&d()},[u,p,h,g,m,f,d,b]),k=Object(a.useCallback)(e=>{e?O(m,f):v()},[O,v,m,f]);return[m,j,k]}},B9Az:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");var c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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"}));t.a=c},BCrt:function(e,t,n){"use strict";n.d(t,"c",(function(){return o.a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return l.a})),n.d(t,"b",(function(){return p}));var o=n("vSu0"),r=n("lJLt");function c(e){if(void 0===e)e=r.b.colors;else{const t=e.filter(e=>e.color);0===t.length?e=r.b.colors:t.length<e.length&&(e=t)}return e}function i(e){if(void 0===e)e=r.b.gradients;else{const t=e.filter(e=>e.gradient);0===t.length?e=r.b.gradients:t.length<e.length&&(e=t)}return e}var l=n("Btt3");function a(e){const t=null==e?void 0:e.trim().match(/^(0?[-.]?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function s(e,t){const n=e.split(/[(),]/g).filter(Boolean),o=n.slice(1).map(e=>a(d(e,t)).value).filter(Boolean);switch(n[0]){case"min":return Math.min(...o)+"px";case"max":return Math.max(...o)+"px";case"clamp":return 3!==o.length?null:o[1]<o[0]?o[0]+"px":o[1]>o[2]?o[2]+"px":o[1]+"px";case"calc":return o[0]+"px"}}function u(e){let t=!1;const n=e.split(/[+-/*/]/g).filter(Boolean);for(const o of n){const n=a(d(o));if(!parseFloat(n.value)){t=!0;break}e=e.replace(o,n.value)}return t?null:(o=e,Function(`'use strict'; return (${o})`)()).toFixed(0)+"px";var o}function d(e,t={}){if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=a(e);return n.unit||(n=function(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=s(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return a(e)}(e)),function(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}(e)&&!n.unit?u(e):function(e,t){const n=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),o={em:n.fontSize,rem:n.fontSize,vh:.01*n.height,vw:.01*n.width,vmin:.01*(n.width<n.height?n.width:n.height),vmax:.01*(n.width>n.height?n.width:n.height),"%":.01*("font"===n.type?n.fontSize:n.width),ch:8,ex:7.15625,lh:n.lineHeight},r={in:96,cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,px:1,Q:96/2.54/40};return o[e.unit]?(o[e.unit]*e.value).toFixed(0)+"px":r[e.unit]?(r[e.unit]*e.value).toFixed(0)+"px":null}(n,t)}const b={};var p=function(e,t={}){const n=e+function(e){let t="";e.hasOwnProperty("fontSize")&&(t=":"+e.width);e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight);e.hasOwnProperty("width")&&(t=":"+e.width);e.hasOwnProperty("height")&&(t=":"+e.height);e.hasOwnProperty("type")&&(t=":"+e.type);return t}(t);return b[n]||(b[n]=d(e,t)),b[n]}},BLeD:function(e,t){e.exports=window.wp.tokenList},BhPs:function(e,t,n){"use strict";n.d(t,"b",(function(){return En})),n.d(t,"a",(function(){return Cn}));var o={};n.r(o),n.d(o,"getBlockName",(function(){return S})),n.d(o,"isBlockValid",(function(){return w})),n.d(o,"getBlockAttributes",(function(){return B})),n.d(o,"getBlock",(function(){return I})),n.d(o,"__unstableGetBlockWithoutInnerBlocks",(function(){return x})),n.d(o,"getBlocks",(function(){return T})),n.d(o,"__unstableGetClientIdWithClientIdsTree",(function(){return P})),n.d(o,"__unstableGetClientIdsTree",(function(){return R})),n.d(o,"getClientIdsOfDescendants",(function(){return N})),n.d(o,"getClientIdsWithDescendants",(function(){return L})),n.d(o,"getGlobalBlockCount",(function(){return M})),n.d(o,"getBlocksByClientId",(function(){return A})),n.d(o,"getBlockCount",(function(){return D})),n.d(o,"getSelectionStart",(function(){return F})),n.d(o,"getSelectionEnd",(function(){return z})),n.d(o,"getBlockSelectionStart",(function(){return H})),n.d(o,"getBlockSelectionEnd",(function(){return V})),n.d(o,"getSelectedBlockCount",(function(){return G})),n.d(o,"hasSelectedBlock",(function(){return U})),n.d(o,"getSelectedBlockClientId",(function(){return W})),n.d(o,"getSelectedBlock",(function(){return q})),n.d(o,"getBlockRootClientId",(function(){return K})),n.d(o,"getBlockParents",(function(){return $})),n.d(o,"getBlockParentsByBlockName",(function(){return Y})),n.d(o,"getBlockHierarchyRootClientId",(function(){return X})),n.d(o,"getLowestCommonAncestorWithSelectedBlock",(function(){return Z})),n.d(o,"getAdjacentBlockClientId",(function(){return Q})),n.d(o,"getPreviousBlockClientId",(function(){return J})),n.d(o,"getNextBlockClientId",(function(){return ee})),n.d(o,"getSelectedBlocksInitialCaretPosition",(function(){return te})),n.d(o,"getSelectedBlockClientIds",(function(){return ne})),n.d(o,"getMultiSelectedBlockClientIds",(function(){return oe})),n.d(o,"getMultiSelectedBlocks",(function(){return re})),n.d(o,"getFirstMultiSelectedBlockClientId",(function(){return ce})),n.d(o,"getLastMultiSelectedBlockClientId",(function(){return ie})),n.d(o,"isFirstMultiSelectedBlock",(function(){return le})),n.d(o,"isBlockMultiSelected",(function(){return ae})),n.d(o,"isAncestorMultiSelected",(function(){return se})),n.d(o,"getMultiSelectedBlocksStartClientId",(function(){return ue})),n.d(o,"getMultiSelectedBlocksEndClientId",(function(){return de})),n.d(o,"getBlockOrder",(function(){return be})),n.d(o,"getBlockIndex",(function(){return pe})),n.d(o,"isBlockSelected",(function(){return me})),n.d(o,"hasSelectedInnerBlock",(function(){return fe})),n.d(o,"isBlockWithinSelection",(function(){return he})),n.d(o,"hasMultiSelection",(function(){return ge})),n.d(o,"isMultiSelecting",(function(){return Oe})),n.d(o,"isSelectionEnabled",(function(){return ve})),n.d(o,"getBlockMode",(function(){return je})),n.d(o,"isTyping",(function(){return ke})),n.d(o,"isDraggingBlocks",(function(){return _e})),n.d(o,"getDraggedBlockClientIds",(function(){return ye})),n.d(o,"isBlockBeingDragged",(function(){return Ee})),n.d(o,"isAncestorBeingDragged",(function(){return Ce})),n.d(o,"isCaretWithinFormattedText",(function(){return Se})),n.d(o,"getBlockInsertionPoint",(function(){return we})),n.d(o,"isBlockInsertionPointVisible",(function(){return Be})),n.d(o,"isValidTemplate",(function(){return Ie})),n.d(o,"getTemplate",(function(){return xe})),n.d(o,"getTemplateLock",(function(){return Te})),n.d(o,"canInsertBlockType",(function(){return Ne})),n.d(o,"canInsertBlocks",(function(){return Le})),n.d(o,"canRemoveBlock",(function(){return Me})),n.d(o,"canRemoveBlocks",(function(){return Ae})),n.d(o,"canMoveBlock",(function(){return De})),n.d(o,"canMoveBlocks",(function(){return Fe})),n.d(o,"getInserterItems",(function(){return We})),n.d(o,"getBlockTransformItems",(function(){return qe})),n.d(o,"hasInserterItems",(function(){return Ke})),n.d(o,"__experimentalGetAllowedBlocks",(function(){return $e})),n.d(o,"__experimentalGetDirectInsertBlock",(function(){return Ye})),n.d(o,"__experimentalGetParsedPattern",(function(){return Xe})),n.d(o,"__experimentalGetAllowedPatterns",(function(){return Qe})),n.d(o,"__experimentalGetPatternsByBlockTypes",(function(){return Je})),n.d(o,"__experimentalGetPatternTransformItems",(function(){return et})),n.d(o,"getBlockListSettings",(function(){return tt})),n.d(o,"getSettings",(function(){return nt})),n.d(o,"isLastBlockChangePersistent",(function(){return ot})),n.d(o,"__experimentalGetBlockListSettingsForBlocks",(function(){return rt})),n.d(o,"__experimentalGetReusableBlockTitle",(function(){return ct})),n.d(o,"__unstableIsLastBlockChangeIgnored",(function(){return it})),n.d(o,"__experimentalGetLastBlockAttributeChanges",(function(){return lt})),n.d(o,"isNavigationMode",(function(){return st})),n.d(o,"hasBlockMovingClientId",(function(){return ut})),n.d(o,"didAutomaticChange",(function(){return dt})),n.d(o,"isBlockHighlighted",(function(){return bt})),n.d(o,"areInnerBlocksControlled",(function(){return pt})),n.d(o,"__experimentalGetActiveBlockIdByBlockNames",(function(){return mt})),n.d(o,"wasBlockJustInserted",(function(){return ft}));var r={};n.r(r),n.d(r,"resetBlocks",(function(){return kt})),n.d(r,"validateBlocksToTemplate",(function(){return _t})),n.d(r,"resetSelection",(function(){return yt})),n.d(r,"receiveBlocks",(function(){return Et})),n.d(r,"updateBlockAttributes",(function(){return Ct})),n.d(r,"updateBlock",(function(){return St})),n.d(r,"selectBlock",(function(){return wt})),n.d(r,"selectPreviousBlock",(function(){return Bt})),n.d(r,"selectNextBlock",(function(){return It})),n.d(r,"startMultiSelect",(function(){return xt})),n.d(r,"stopMultiSelect",(function(){return Tt})),n.d(r,"multiSelect",(function(){return Pt})),n.d(r,"clearSelectedBlock",(function(){return Rt})),n.d(r,"toggleSelection",(function(){return Nt})),n.d(r,"replaceBlocks",(function(){return Mt})),n.d(r,"replaceBlock",(function(){return At})),n.d(r,"moveBlocksDown",(function(){return Ft})),n.d(r,"moveBlocksUp",(function(){return zt})),n.d(r,"moveBlocksToPosition",(function(){return Ht})),n.d(r,"moveBlockToPosition",(function(){return Vt})),n.d(r,"insertBlock",(function(){return Gt})),n.d(r,"insertBlocks",(function(){return Ut})),n.d(r,"showInsertionPoint",(function(){return Wt})),n.d(r,"hideInsertionPoint",(function(){return qt})),n.d(r,"setTemplateValidity",(function(){return Kt})),n.d(r,"synchronizeTemplate",(function(){return $t})),n.d(r,"mergeBlocks",(function(){return Yt})),n.d(r,"removeBlocks",(function(){return Xt})),n.d(r,"removeBlock",(function(){return Zt})),n.d(r,"replaceInnerBlocks",(function(){return Qt})),n.d(r,"toggleBlockMode",(function(){return Jt})),n.d(r,"startTyping",(function(){return en})),n.d(r,"stopTyping",(function(){return tn})),n.d(r,"startDraggingBlocks",(function(){return nn})),n.d(r,"stopDraggingBlocks",(function(){return on})),n.d(r,"enterFormattedText",(function(){return rn})),n.d(r,"exitFormattedText",(function(){return cn})),n.d(r,"selectionChange",(function(){return ln})),n.d(r,"insertDefaultBlock",(function(){return an})),n.d(r,"updateBlockListSettings",(function(){return sn})),n.d(r,"updateSettings",(function(){return un})),n.d(r,"__unstableSaveReusableBlock",(function(){return dn})),n.d(r,"__unstableMarkLastChangeAsPersistent",(function(){return bn})),n.d(r,"__unstableMarkNextChangeAsNotPersistent",(function(){return pn})),n.d(r,"__unstableMarkAutomaticChange",(function(){return mn})),n.d(r,"setNavigationMode",(function(){return fn})),n.d(r,"setBlockMovingClientId",(function(){return hn})),n.d(r,"duplicateBlocks",(function(){return gn})),n.d(r,"insertBeforeBlock",(function(){return On})),n.d(r,"insertAfterBlock",(function(){return vn})),n.d(r,"toggleBlockHighlight",(function(){return jn})),n.d(r,"flashBlock",(function(){return kn})),n.d(r,"setHasControlledInnerBlocks",(function(){return _n}));var c=n("1ZqX"),i=n("YLtl"),l=n("HSyU"),a=n("lJLt");function s(e,t,n){return[...e.slice(0,n),...Object(i.castArray)(t),...e.slice(n)]}function u(e,t,n,o=1){const r=[...e];return r.splice(t,o),s(r,e.slice(t,t+o),n)}function d(e,t=""){const n={[t]:[]};return e.forEach(e=>{const{clientId:o,innerBlocks:r}=e;n[t].push(o),Object.assign(n,d(r,o))}),n}function b(e,t=""){return e.reduce((e,n)=>Object.assign(e,{[n.clientId]:t},b(n.innerBlocks,n.clientId)),{})}function p(e,t=i.identity){const n={},o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n[r.clientId]=t(r)}return n}function m(e){return p(e,e=>Object(i.omit)(e,"attributes"))}function f(e){return p(e,e=>e.attributes)}function h(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(i.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,o=t.attributes,Object(i.isEqual)(Object(i.keys)(n),Object(i.keys)(o)));var n,o}function g(e,t){const n={},o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n[e.clientId]={};for(const t of r)n[t.clientId]=Object.assign(n[t.clientId],{...e.byClientId[t.clientId],attributes:e.attributes[t.clientId],innerBlocks:t.innerBlocks.map(e=>n[e.clientId])});return n}function O(e,t,n,o=!1){const r=new Set([]),c=new Set;for(const t of n){let n=o?t:e.parents[t];do{if(e.controlledInnerBlocks[n]){c.add(n);break}r.add(n),n=e.parents[n]}while(void 0!==n)}for(const e of r)t[e]={...t[e]};for(const n of r)t[n].innerBlocks=(e.order[n]||[]).map(e=>t[e]);for(const n of c)t["controlled||"+n]={innerBlocks:(e.order[n]||[]).map(e=>t[e])};return t}const v=Object(i.flow)(c.combineReducers,e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=Object(i.mapValues)(t.attributes,(n,r)=>{const{name:c}=t.byClientId[r];return"core/block"===c&&n.ref===e?{...n,ref:o}:n})}return e(t,n)},e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:{},n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const e=g(o,n.blocks);o.tree=O(o,{...o.tree,...e},n.rootClientId?[n.rootClientId]:[""],!0);break}case"UPDATE_BLOCK":o.tree=O(o,{...o.tree,[n.clientId]:{...o.tree[n.clientId],...o.byClientId[n.clientId],attributes:o.attributes[n.clientId]}},[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":{const e=n.clientIds.reduce((e,t)=>(e[t]={...o.tree[t],attributes:o.attributes[t]},e),{});o.tree=O(o,{...o.tree,...e},n.clientIds,!1);break}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=g(o,n.blocks);o.tree=O(o,{...Object(i.omit)(o.tree,n.replacedClientIds.concat(n.replacedClientIds.map(e=>"controlled||"+e))),...e},n.blocks.map(e=>e.clientId),!1);const r=[];for(const e of n.clientIds)void 0===t.parents[e]||""!==t.parents[e]&&!o.byClientId[t.parents[e]]||r.push(t.parents[e]);o.tree=O(o,o.tree,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents[r]||""!==t.parents[r]&&!o.byClientId[t.parents[r]]||e.push(t.parents[r]);o.tree=O(o,Object(i.omit)(o.tree,n.removedClientIds.concat(n.removedClientIds.map(e=>"controlled||"+e))),e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId&&e.push(n.fromRootClientId),n.toRootClientId&&e.push(n.toRootClientId),n.fromRootClientId&&n.fromRootClientId||e.push(""),o.tree=O(o,o.tree,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=O(o,o.tree,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=Object(i.keys)(Object(i.omitBy)(o.attributes,(e,t)=>"core/block"!==o.byClientId[t].name||e.ref!==n.updatedId));o.tree=O(o,{...o.tree,...e.reduce((e,t)=>(e[t]={...o.byClientId[t],attributes:o.attributes[t],innerBlocks:o.tree[t].innerBlocks},e),{})},e,!1)}}return o},e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order[o[r]]||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order[o[r]]));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)},e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order[n.rootClientId]&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order[n.rootClientId]}));let c=r;return n.blocks.length&&(c=e(c,{...n,type:"INSERT_BLOCKS",index:0}),c.order={...c.order,...Object(i.reduce)(o,(e,n,o)=>(t.order[o]&&(e[o]=t.order[o]),e),{})}),c},e=>(t,n)=>{if("RESET_BLOCKS"===n.type){var o,r,c;const e=function e(t,n="",o={}){return Object(i.reduce)(t[n],(n,r)=>o[r]?n:[...n,r,...e(t,r)],[])}(null!==(o=null==t?void 0:t.order)&&void 0!==o?o:{},"",null!==(r=null==t?void 0:t.controlledInnerBlocks)&&void 0!==r?r:{}),l=Object.keys(Object(i.pickBy)(null!==(c=null==t?void 0:t.controlledInnerBlocks)&&void 0!==c?c:{})),a={...t,byClientId:{...Object(i.omit)(null==t?void 0:t.byClientId,e),...m(n.blocks)},attributes:{...Object(i.omit)(null==t?void 0:t.attributes,e),...f(n.blocks)},order:{...Object(i.omit)(null==t?void 0:t.order,e),...Object(i.omit)(d(n.blocks),l)},parents:{...Object(i.omit)(null==t?void 0:t.parents,e),...b(n.blocks)},controlledInnerBlocks:(null==t?void 0:t.controlledInnerBlocks)||{}},s=g(a,n.blocks);return a.tree={...Object(i.omit)(null==t?void 0:t.tree,e),...s,"":{innerBlocks:n.blocks.map(e=>s[e.clientId])}},a}return e(t,n)},(function(e){let t,n=!1;return(o,r)=>{let c=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===c&&!i){var l;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(l=null==o?void 0:o.isPersistentChange)||void 0===l||l;return o.isPersistentChange===e?o:{...c,isPersistentChange:e}}return c={...c,isPersistentChange:i?!n:!h(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,c}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}))({byClientId(e={},t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...m(t.blocks)};case"UPDATE_BLOCK":if(!e[t.clientId])return e;const n=Object(i.omit)(t.updates,"attributes");return Object(i.isEmpty)(n)?e:{...e,[t.clientId]:{...e[t.clientId],...n}};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(i.omit)(e,t.replacedClientIds),...m(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},attributes(e={},t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return{...e,...f(t.blocks)};case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?{...e,[t.clientId]:{...e[t.clientId],...t.updates.attributes}}:e;case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every(t=>!e[t]))return e;const n=t.clientIds.reduce((n,o)=>({...n,[o]:Object(i.reduce)(t.uniqueByBlock?t.attributes[o]:t.attributes,(t,n,r)=>{var c,i;return n!==t[r]&&((t=(c=e[o])===(i=t)?{...c}:i)[r]=n),t},e[o])}),{});return t.clientIds.every(t=>n[t]===e[t])?e:{...e,...n}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?{...Object(i.omit)(e,t.replacedClientIds),...f(t.blocks)}:e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},order(e={},t){switch(t.type){case"RECEIVE_BLOCKS":{const n=d(t.blocks);return{...e,...Object(i.omit)(n,""),"":((null==e?void 0:e[""])||[]).concat(n[""])}}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e[n]||[],r=d(t.blocks,n),{index:c=o.length}=t;return{...e,...r,[n]:s(o,r[n],c)}}case"MOVE_BLOCKS_TO_POSITION":{const{fromRootClientId:n="",toRootClientId:o="",clientIds:r}=t,{index:c=e[o].length}=t;if(n===o){const t=e[o].indexOf(r[0]);return{...e,[o]:u(e[o],t,c,r.length)}}return{...e,[n]:Object(i.without)(e[n],...r),[o]:s(e[o],r,c)}}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=Object(i.first)(n),c=e[o];if(!c.length||r===Object(i.first)(c))return e;const l=c.indexOf(r);return{...e,[o]:u(c,l,l-1,n.length)}}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=Object(i.first)(n),c=Object(i.last)(n),l=e[o];if(!l.length||c===Object(i.last)(l))return e;const a=l.indexOf(r);return{...e,[o]:u(l,a,a+1,n.length)}}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=d(t.blocks);return Object(i.flow)([e=>Object(i.omit)(e,t.replacedClientIds),e=>({...e,...Object(i.omit)(o,"")}),e=>Object(i.mapValues)(e,e=>Object(i.reduce)(e,(e,t)=>t===n[0]?[...e,...o[""]]:(-1===n.indexOf(t)&&e.push(t),e),[]))])(e)}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.flow)([e=>Object(i.omit)(e,t.removedClientIds),e=>Object(i.mapValues)(e,e=>Object(i.without)(e,...t.removedClientIds))])(e)}return e},parents(e={},t){switch(t.type){case"RECEIVE_BLOCKS":return{...e,...b(t.blocks)};case"INSERT_BLOCKS":return{...e,...b(t.blocks,t.rootClientId||"")};case"MOVE_BLOCKS_TO_POSITION":return{...e,...t.clientIds.reduce((e,n)=>(e[n]=t.toRootClientId||"",e),{})};case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return{...Object(i.omit)(e,t.replacedClientIds),...b(t.blocks,e[t.clientIds[0]])};case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(i.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=>"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e});function j(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}var k=Object(c.combineReducers)({blocks:v,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(e=!1,t){switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selection:function(e={},t){var n,o;switch(t.type){case"SELECTION_CHANGE":return{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}};case"RESET_SELECTION":const{selectionStart:r,selectionEnd:c}=t;return{selectionStart:r,selectionEnd:c};case"MULTI_SELECT":const{start:i,end:l}=t;return{selectionStart:{clientId:i},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const a=null==e||null===(n=e.selectionStart)||void 0===n?void 0:n.clientId,s=null==e||null===(o=e.selectionEnd)||void 0===o?void 0:o.clientId;if(!a&&!s)return e;if(!t.blocks.some(e=>e.clientId===a))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some(e=>e.clientId===s))return{...e,selectionEnd:e.selectionStart}}return{selectionStart:j(e.selectionStart,t),selectionEnd:j(e.selectionEnd,t)}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(i.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;return t.settings?Object(i.isEqual)(e[n],t.settings)?e:{...e,[n]:t.settings}:e.hasOwnProperty(n)?Object(i.omit)(e,n):e}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":const{rootClientId:e,index:n,__unstableWithInserter:o}=t;return{rootClientId:e,index:n,__unstableWithInserter:o};case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){switch(t.type){case"SET_TEMPLATE_VALIDITY":return{...e,isValid:t.isValid}}return e},settings:function(e=a.b,t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings}}return e},preferences:function(e=a.a,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((e,n)=>{const{attributes:o,name:r}=n,i=Object(c.select)(l.store).getActiveBlockVariation(r,o);let a=null!=i&&i.name?`${r}/${i.name}`:r;const s={name:a};return"core/block"===r&&(s.ref=o.ref,a+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[a]:{time:t.time,count:e.insertUsage[a]?e.insertUsage[a].count+1:1,insert:s}}}},e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes}),{})}return null},isNavigationMode:function(e=!1,t){return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_NAVIGATION_MODE"===t.type?null:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"START_TYPING":case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){var n;switch(t.type){case"INSERT_BLOCKS":if(!t.blocks.length)return e;return{clientId:t.blocks[0].clientId,source:null===(n=t.meta)||void 0===n?void 0:n.source};case"RESET_BLOCKS":return{}}return e}}),_=n("pPDe"),y=n("GRId"),E=n("+WrK");const C=[];function S(e,t){const n=e.blocks.byClientId[t];if("web"!==y.Platform.OS&&"core/social-link"===(null==n?void 0:n.name)){const n=e.blocks.attributes[t],{service:o}=n;return o?"core/social-link-"+o:"core/social-link"}return n?n.name:null}function w(e,t){const n=e.blocks.byClientId[t];return!!n&&n.isValid}function B(e,t){return e.blocks.byClientId[t]?e.blocks.attributes[t]:null}function I(e,t){return e.blocks.byClientId[t]?e.blocks.tree[t]:null}const x=Object(_.a)((e,t)=>{const n=e.blocks.byClientId[t];return n?{...n,attributes:B(e,t)}:null},(e,t)=>[e.blocks.byClientId[t],e.blocks.attributes[t]]);function T(e,t){var n;const o=t&&pt(e,t)?"controlled||"+t:t||"";return(null===(n=e.blocks.tree[o])||void 0===n?void 0:n.innerBlocks)||C}const P=Object(_.a)((e,t)=>({clientId:t,innerBlocks:R(e,t)}),e=>[e.blocks.order]),R=Object(_.a)((e,t="")=>Object(i.map)(be(e,t),t=>P(e,t)),e=>[e.blocks.order]),N=(e,t)=>Object(i.flatMap)(t,t=>{const n=be(e,t);return[...n,...N(e,n)]}),L=Object(_.a)(e=>{const t=be(e);return[...t,...N(e,t)]},e=>[e.blocks.order]),M=Object(_.a)((e,t)=>{const n=L(e);return t?Object(i.reduce)(n,(n,o)=>e.blocks.byClientId[o].name===t?n+1:n,0):n.length},e=>[e.blocks.order,e.blocks.byClientId]),A=Object(_.a)((e,t)=>Object(i.map)(Object(i.castArray)(t),t=>I(e,t)),(e,t)=>Object(i.map)(Object(i.castArray)(t),t=>e.blocks.tree[t]));function D(e,t){return be(e,t).length}function F(e){return e.selection.selectionStart}function z(e){return e.selection.selectionEnd}function H(e){return e.selection.selectionStart.clientId}function V(e){return e.selection.selectionEnd.clientId}function G(e){const t=oe(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function U(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function W(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function q(e){const t=W(e);return t?I(e,t):null}function K(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}const $=Object(_.a)((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents[r];)r=e.blocks.parents[r],o.push(r);return n?o:o.reverse()},e=>[e.blocks.parents]),Y=Object(_.a)((e,t,n,o=!1)=>{const r=$(e,t,o);return Object(i.map)(Object(i.filter)(Object(i.map)(r,t=>({id:t,name:S(e,t)})),({name:e})=>Array.isArray(n)?n.includes(e):e===n),({id:e})=>e)},e=>[e.blocks.parents]);function X(e,t){let n,o=t;do{n=o,o=e.blocks.parents[o]}while(o);return n}function Z(e,t){const n=W(e),o=[...$(e,t),t],r=[...$(e,n),n];let c;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)c=o[e];return c}function Q(e,t,n=1){if(void 0===t&&(t=W(e)),void 0===t&&(t=n<0?ce(e):ie(e)),!t)return null;const o=K(e,t);if(null===o)return null;const{order:r}=e.blocks,c=r[o],i=c.indexOf(t)+1*n;return i<0||i===c.length?null:c[i]}function J(e,t){return Q(e,t,-1)}function ee(e,t){return Q(e,t,1)}function te(e){return e.initialPosition}const ne=Object(_.a)(e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(void 0===t.clientId||void 0===n.clientId)return C;if(t.clientId===n.clientId)return[t.clientId];const o=K(e,t.clientId);if(null===o)return C;const r=be(e,o),c=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return c>i?r.slice(i,c+1):r.slice(c,i+1)},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?C:ne(e)}const re=Object(_.a)(e=>{const t=oe(e);return t.length?t.map(t=>I(e,t)):C},e=>[...ne.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]);function ce(e){return Object(i.first)(oe(e))||null}function ie(e){return Object(i.last)(oe(e))||null}function le(e,t){return ce(e)===t}function ae(e,t){return-1!==oe(e).indexOf(t)}const se=Object(_.a)((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=K(e,n),o=ae(e,n);return o},e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]);function ue(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function de(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function be(e,t){return e.blocks.order[t||""]||C}function pe(e,t,n){return be(e,n).indexOf(t)}function me(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function fe(e,t,n=!1){return Object(i.some)(be(e,t),t=>me(e,t)||ae(e,t)||n&&fe(e,t,n))}function he(e,t){if(!t)return!1;const n=oe(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ge(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function Oe(e){return e.isMultiSelecting}function ve(e){return e.isSelectionEnabled}function je(e,t){return e.blocksMode[t]||"visual"}function ke(e){return e.isTyping}function _e(e){return!!e.draggedBlocks.length}function ye(e){return e.draggedBlocks}function Ee(e,t){return e.draggedBlocks.includes(t)}function Ce(e,t){if(!_e(e))return!1;const n=$(e,t);return Object(i.some)(n,t=>Ee(e,t))}function Se(e){return e.isCaretWithinFormattedText}function we(e){let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:c}=r;return c?(t=K(e,c)||void 0,n=pe(e,r.clientId,t)+1):n=be(e).length,{rootClientId:t,index:n}}function Be(e){return null!==e.insertionPoint}function Ie(e){return e.template.isValid}function xe(e){return e.settings.template}function Te(e,t){if(!t)return e.settings.templateLock;const n=tt(e,t);return n?n.templateLock:null}const Pe=(e,t,n=null)=>Object(i.isBoolean)(e)?e:Object(i.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,Re=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=Object(l.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=nt(e);if(!Pe(r,t,!0))return!1;if(!!Te(e,n))return!1;const c=tt(e,n);if(n&&void 0===c)return!1;const i=null==c?void 0:c.allowedBlocks,a=Pe(i,t),s=o.parent,u=S(e,n),d=Pe(s,u);return null!==a&&null!==d?a||d:null!==a?a:null===d||d},Ne=Object(_.a)(Re,(e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]);function Le(e,t,n=null){return t.every(t=>Ne(e,S(e,t),n))}function Me(e,t,n=null){const o=B(e,t);if(null===o)return!0;const{lock:r}=o,c=!!Te(e,n);return void 0===r||void 0===(null==r?void 0:r.remove)?!c:!(null!=r&&r.remove)}function Ae(e,t,n=null){return t.every(t=>Me(e,t,n))}function De(e,t,n=null){const o=B(e,t);if(null===o)return;const{lock:r}=o,c="all"===Te(e,n);return void 0===r||void 0===(null==r?void 0:r.move)?!c:!(null!=r&&r.move)}function Fe(e,t,n=null){return t.every(t=>De(e,t,n))}function ze(e,t){var n,o;return null!==(n=null===(o=e.preferences.insertUsage)||void 0===o?void 0:o[t])&&void 0!==n?n:null}const He=(e,t,n)=>!!Object(l.hasBlockSupport)(t,"inserter",!0)&&Re(e,t.name,n),Ve=(e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:c=0}=ze(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Ge(r,c)}},Ge=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Ue=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;Object(l.hasBlockSupport)(n.name,"multiple",!0)||(r=Object(i.some)(A(e,L(e)),{name:n.name}));const{time:c,count:a=0}=ze(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Ge(c,a)};if("transform"===t)return s;const u=Object(l.getBlockVariations)(n.name,"inserter");return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:u,example:n.example,utility:1}},We=Object(_.a)((e,t=null)=>{const n=Ue(e,{buildScope:"inserter"}),o=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,r=Object(l.getBlockTypes)().filter(n=>He(e,n,t)).map(n),c=Re(e,"core/block",t)?at(e).map(t=>{let n=E.a;if("web"===y.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(o);if(e){const[,,t="core/",o]=e,r=Object(l.getBlockType)(t+o);r&&(n=r.icon)}}const r="core/block/"+t.id,{time:c,count:i=0}=ze(e,r)||{},a=Ge(c,i);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:a}}):[],i=r.filter(({variations:e=[]})=>!e.some(({isDefault:e})=>e)),a=[];for(const t of r){const{variations:n=[]}=t;if(n.length){const o=Ve(e,t);a.push(...n.map(o))}}const s=(e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e},u=i.reduce(s,{core:[],noncore:[]}),d=a.reduce(s,{core:[],noncore:[]});return[...[...u.core,...d.core,...u.noncore,...d.noncore],...c]},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,at(e),Object(l.getBlockTypes)()]),qe=Object(_.a)((e,t,n=null)=>{const o=Ue(e,{buildScope:"transform"}),r=Object(l.getBlockTypes)().filter(t=>He(e,t,n)).map(o),c=Object(i.mapKeys)(r,({name:e})=>e),a=Object(l.getPossibleBlockTransformations)(t).reduce((e,t)=>(c[null==t?void 0:t.name]&&e.push(c[t.name]),e),[]);return Object(i.orderBy)(a,e=>c[e.name].frecency,"desc")},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Object(l.getBlockTypes)()]),Ke=Object(_.a)((e,t=null)=>{if(Object(i.some)(Object(l.getBlockTypes)(),n=>He(e,n,t)))return!0;return Re(e,"core/block",t)&&at(e).length>0},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,at(e),Object(l.getBlockTypes)()]),$e=Object(_.a)((e,t=null)=>{if(t)return Object(i.filter)(Object(l.getBlockTypes)(),n=>He(e,n,t))},(e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(l.getBlockTypes)()]),Ye=Object(_.a)((e,t=null)=>{var n,o;if(!t)return;const r=null===(n=e.blockListSettings[t])||void 0===n?void 0:n.__experimentalDefaultBlock,c=null===(o=e.blockListSettings[t])||void 0===o?void 0:o.__experimentalDirectInsert;return r&&c?"function"==typeof c?c(I(e,t))?r:null:r:void 0},(e,t)=>[e.blockListSettings[t],e.blocks.tree[t]]),Xe=Object(_.a)((e,t)=>{const n=e.settings.__experimentalBlockPatterns.find(({name:e})=>e===t);return n?{...n,blocks:Object(l.parse)(n.content)}:null},e=>[e.settings.__experimentalBlockPatterns]),Ze=Object(_.a)(e=>{const t=e.settings.__experimentalBlockPatterns,{allowedBlockTypes:n}=nt(e);return t.filter(({inserter:e=!0})=>!!e).map(({name:t})=>Xe(e,t)).filter(({blocks:e})=>((e,t)=>{if(Object(i.isBoolean)(t))return t;const n=[...e];for(;n.length>0;){var o;const e=n.shift();if(!Pe(t,e.name||e.blockName,!0))return!1;null===(o=e.innerBlocks)||void 0===o||o.forEach(e=>{n.push(e)})}return!0})(e,n))},e=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes]),Qe=Object(_.a)((e,t=null)=>{const n=Ze(e);return Object(i.filter)(n,({blocks:n})=>n.every(({name:n})=>Ne(e,n,t)))},(e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId[t]]),Je=Object(_.a)((e,t,n=null)=>{if(!t)return C;const o=Qe(e,n),r=Array.isArray(t)?t:[t];return o.filter(e=>{var t,n;return null==e||null===(t=e.blockTypes)||void 0===t||null===(n=t.some)||void 0===n?void 0:n.call(t,e=>r.includes(e))})},(e,t)=>[...Qe.getDependants(e,t)]),et=Object(_.a)((e,t,n=null)=>{if(!t)return C;if(t.some(({clientId:t,innerBlocks:n})=>n.length||pt(e,t)))return C;const o=Array.from(new Set(t.map(({name:e})=>e)));return Je(e,o,n)},(e,t)=>[...Je.getDependants(e,t)]);function tt(e,t){return e.blockListSettings[t]}function nt(e){return e.settings}function ot(e){return e.blocks.isPersistentChange}const rt=Object(_.a)((e,t=[])=>t.reduce((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t,{}),e=>[e.blockListSettings]),ct=Object(_.a)((e,t)=>{var n;const o=Object(i.find)(at(e),e=>e.id===t);return o?null===(n=o.title)||void 0===n?void 0:n.raw:null},e=>[at(e)]);function it(e){return e.blocks.isIgnoredChange}function lt(e){return e.lastBlockAttributesChange}function at(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:C}function st(e){return e.isNavigationMode}function ut(e){return e.hasBlockMovingClientId}function dt(e){return!!e.automaticChangeStatus}function bt(e,t){return e.highlightedBlock===t}function pt(e,t){return!!e.blocks.controlledInnerBlocks[t]}const mt=Object(_.a)((e,t)=>{if(!t.length)return null;const n=W(e);if(t.includes(S(e,n)))return n;const o=oe(e),r=Y(e,n||o[0],t);return r?Object(i.last)(r):null},(e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]);function ft(e,t,n){const{lastBlockInserted:o}=e;return o.clientId===t&&o.source===n}var ht=n("gdqT"),gt=n("l3Sj"),Ot=n("qRz9"),vt=n("NMb1"),jt=n.n(vt);const kt=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(_t(e))},_t=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),c=!o||"all"!==r||Object(l.doBlocksMatchTemplate)(e,o);if(c!==t.isValidTemplate())return n.setTemplateValidity(c),c};function yt(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Et(e){return jt()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ct(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:Object(i.castArray)(e),attributes:t,uniqueByBlock:n}}function St(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function wt(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Bt=e=>({select:t,dispatch:n})=>{const o=t.getPreviousBlockClientId(e);o&&n.selectBlock(o,-1)},It=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function xt(){return{type:"START_MULTI_SELECT"}}function Tt(){return{type:"STOP_MULTI_SELECT"}}const Pt=(e,t)=>({select:n,dispatch:o})=>{if(n.getBlockRootClientId(e)!==n.getBlockRootClientId(t))return;o({type:"MULTI_SELECT",start:e,end:t});const r=n.getSelectedBlockCount();Object(ht.speak)(Object(gt.sprintf)(Object(gt._n)("%s block selected.","%s blocks selected.",r),r),"assertive")};function Rt(){return{type:"CLEAR_SELECTED_BLOCK"}}function Nt(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Lt(e,t){var n,o;const r=null!==(n=null==t||null===(o=t.__experimentalPreferredStyleVariations)||void 0===o?void 0:o.value)&&void 0!==n?n:{};return e.map(e=>{var t;const n=e.name;if(!Object(l.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!r[n])return e;const o=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null!=o&&o.includes("is-style-"))return e;const{attributes:c={}}=e,i=r[n];return{...e,attributes:{...c,className:`${o||""} is-style-${i}`.trim()}}})}const Mt=(e,t,n,o=0,r)=>({select:c,dispatch:l})=>{e=Object(i.castArray)(e),t=Lt(Object(i.castArray)(t),c.getSettings());const a=c.getBlockRootClientId(Object(i.first)(e));for(let e=0;e<t.length;e++){const n=t[e];if(!c.canInsertBlockType(n.name,a))return}l({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),l(({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()})};function At(e,t){return Mt(e,t)}const Dt=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t,n)&&r({type:e,clientIds:Object(i.castArray)(t),rootClientId:n})},Ft=Dt("MOVE_BLOCKS_DOWN"),zt=Dt("MOVE_BLOCKS_UP"),Ht=(e,t="",n="",o)=>({select:r,dispatch:c})=>{if(r.canMoveBlocks(e,t)){if(t!==n){if(!r.canRemoveBlocks(e,t))return;if(!r.canInsertBlocks(e,n))return}c({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Vt(e,t="",n="",o){return Ht([e],t,n,o)}function Gt(e,t,n,o,r){return Ut([e],t,n,o,0,r)}const Ut=(e,t,n,o=!0,r=0,c)=>({select:l,dispatch:a})=>{Object(i.isObject)(r)&&(c=r,r=0,jt()("meta argument in wp.data.dispatch('core/block-editor')",{since:"10.1",plugin:"Gutenberg",hint:"The meta argument is now the 6th argument of the function"})),e=Lt(Object(i.castArray)(e),l.getSettings());const s=[];for(const t of e){l.canInsertBlockType(t.name,n)&&s.push(t)}s.length&&a({type:"INSERT_BLOCKS",blocks:s,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:c})};function Wt(e,t,n={}){const{__unstableWithInserter:o}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o}}function qt(){return{type:"HIDE_INSERTION_POINT"}}function Kt(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const $t=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=Object(l.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},Yt=(e,t)=>({select:n,dispatch:o})=>{const r=[e,t];o({type:"MERGE_BLOCKS",blocks:r});const[c,a]=r,s=n.getBlock(c),u=Object(l.getBlockType)(s.name);if(u&&!u.merge)return void o.selectBlock(s.clientId);const d=n.getBlock(a),b=Object(l.getBlockType)(d.name),{clientId:p,attributeKey:m,offset:f}=n.getSelectionStart(),h=(p===c?u:b).attributes[m],g=(p===c||p===a)&&void 0!==m&&void 0!==f&&!!h;h||("number"==typeof m?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof m):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const O=Object(l.cloneBlock)(s),v=Object(l.cloneBlock)(d);if(g){const e=p===c?O:v,t=e.attributes[m],{multiline:n,__unstableMultilineWrapperTags:o,__unstablePreserveWhiteSpace:r}=h,i=Object(Ot.insert)(Object(Ot.create)({html:t,multilineTag:n,multilineWrapperTags:o,preserveWhiteSpace:r}),"†",f,f);e.attributes[m]=Object(Ot.toHTMLString)({value:i,multilineTag:n,preserveWhiteSpace:r})}const j=s.name===d.name?[v]:Object(l.switchToBlockType)(v,s.name);if(!j||!j.length)return;const k=u.merge(O.attributes,j[0].attributes);if(g){const e=Object(i.findKey)(k,e=>"string"==typeof e&&-1!==e.indexOf("†")),t=k[e],{multiline:n,__unstableMultilineWrapperTags:r,__unstablePreserveWhiteSpace:c}=u.attributes[e],l=Object(Ot.create)({html:t,multilineTag:n,multilineWrapperTags:r,preserveWhiteSpace:c}),a=l.text.indexOf("†"),d=Object(Ot.remove)(l,a,a+1),b=Object(Ot.toHTMLString)({value:d,multilineTag:n,preserveWhiteSpace:c});k[e]=b,o.selectionChange(s.clientId,e,a,a)}o.replaceBlocks([s.clientId,d.clientId],[{...s,attributes:{...s.attributes,...k}},...j.slice(1)],0)},Xt=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;e=Object(i.castArray)(e);const r=n.getBlockRootClientId(e[0]);n.canRemoveBlocks(e,r)&&(t&&o.selectPreviousBlock(e[0]),o({type:"REMOVE_BLOCKS",clientIds:e}),o(({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()}))};function Zt(e,t){return Xt([e],t)}function Qt(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Jt(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function en(){return{type:"START_TYPING"}}function tn(){return{type:"STOP_TYPING"}}function nn(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function on(){return{type:"STOP_DRAGGING_BLOCKS"}}function rn(){return{type:"ENTER_FORMATTED_TEXT"}}function cn(){return{type:"EXIT_FORMATTED_TEXT"}}function ln(e,t,n,o){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}}function an(e,t,n){const o=Object(l.getDefaultBlockName)();if(!o)return;return Gt(Object(l.createBlock)(o,e),n,t)}function sn(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function un(e){return{type:"UPDATE_SETTINGS",settings:e}}function dn(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function bn(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function pn(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const mn=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t(()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})})},fn=(e=!0)=>({dispatch:t})=>{t({type:"SET_NAVIGATION_MODE",isNavigationMode:e}),e?Object(ht.speak)(Object(gt.__)("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(ht.speak)(Object(gt.__)("You are currently in edit mode. To return to the navigation mode, press Escape."))},hn=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&Object(ht.speak)(Object(gt.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},gn=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(Object(i.some)(r,e=>!e))return;if(r.map(e=>e.name).some(e=>!Object(l.hasBlockSupport)(e,"multiple",!0)))return;const c=n.getBlockRootClientId(e[0]),a=n.getBlockIndex(Object(i.last)(Object(i.castArray)(e)),c),s=r.map(e=>Object(l.__experimentalCloneSanitizedBlock)(e));return o.insertBlocks(s,a+1,c,t),s.length>1&&t&&o.multiSelect(Object(i.first)(s).clientId,Object(i.last)(s).clientId),s.map(e=>e.clientId)},On=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e,o);return n.insertDefaultBlock({},o,r)},vn=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e,o);return n.insertDefaultBlock({},o,r+1)};function jn(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const kn=e=>async({dispatch:t})=>{t(jn(e,!0)),await new Promise(e=>setTimeout(e,150)),t(jn(e,!1))};function _n(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var yn=n("AHN3");const En={reducer:k,selectors:o,actions:r,__experimentalUseThunks:!0},Cn=Object(c.createReduxStore)(yn.a,{...En,persist:["preferences"]});Object(c.registerStore)(yn.a,{...En,persist:["preferences"]})},Bo0k:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj");const i=[{name:Object(c.__)("Regular"),value:"normal"},{name:Object(c.__)("Italic"),value:"italic"}],l=[{name:Object(c.__)("Thin"),value:"100"},{name:Object(c.__)("Extra Light"),value:"200"},{name:Object(c.__)("Light"),value:"300"},{name:Object(c.__)("Regular"),value:"400"},{name:Object(c.__)("Medium"),value:"500"},{name:Object(c.__)("Semi Bold"),value:"600"},{name:Object(c.__)("Bold"),value:"700"},{name:Object(c.__)("Extra Bold"),value:"800"},{name:Object(c.__)("Black"),value:"900"}],a=(e,t)=>e?t?Object(c.__)("Appearance"):Object(c.__)("Font style"):Object(c.__)("Font weight");function s(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:s=!0,value:{fontStyle:u,fontWeight:d}}=e,b=n||s,p=a(n,s),m={key:"default",name:Object(c.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},f=Object(o.useMemo)(()=>n&&s?(()=>{const e=[m];return i.forEach(({name:t,value:n})=>{l.forEach(({name:o,value:r})=>{const i="normal"===n?o:Object(c.sprintf)(Object(c.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:i,style:{fontStyle:n,fontWeight:r}})})}),e})():n?(()=>{const e=[m];return i.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})}),e})():(()=>{const e=[m];return l.forEach(({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})}),e})(),[e.options]),h=f.find(e=>e.style.fontStyle===u&&e.style.fontWeight===d)||f[0];return b&&Object(o.createElement)(r.CustomSelectControl,{className:"components-font-appearance-control",label:p,describedBy:h?n?s?Object(c.sprintf)(Object(c.__)("Currently selected font appearance: %s"),h.name):Object(c.sprintf)(Object(c.__)("Currently selected font style: %s"),h.name):Object(c.sprintf)(Object(c.__)("Currently selected font weight: %s"),h.name):Object(c.__)("No selected font appearance"),options:f,value:h,onChange:({selectedItem:e})=>t(e.style)})}},Bpkj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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},Btt3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("YLtl");const r=(e,t)=>{if(!t||!e)return;const n=t.filter(({attributes:t})=>!(!t||!Object.keys(t).length)&&Object(o.isMatch)(e,t));return 1===n.length?n[0]:void 0}},CNgt:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(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,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var l=n("cDcd"),a=n("17x9"),s=n("GemG"),u=n("Rk8H"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&s(e.textarea)})):this.textarea&&s(this.textarea),this.textarea&&this.textarea.addEventListener("autosize:resized",this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener("autosize:resized",this.onResize),s.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),s=this.state.lineHeight,u=n&&s?s*n:null;return l.createElement("textarea",c({},a,{onChange:this.onChange,style:u?c({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&s.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(d,c({},e,{innerRef:t}))}))},Civd:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));t.a=c},Cn0l:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m}));var o=n("YLtl"),r=n("GRId"),c=n("1ZqX"),i=n("ur0x"),l=n("v5LD"),a=n("BhPs");const s=[];function u(e){if(e)return`has-${e}-gradient-background`}function d(e,t){const n=Object(o.find)(e,["slug",t]);return n&&n.gradient}function b(e,t){return Object(o.find)(e,["gradient",t])}function p(e,t){const n=b(e,t);return n&&n.slug}function m({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=Object(i.c)(),o=Object(l.a)("color.gradients")||s,{gradient:b,customGradient:m}=Object(c.useSelect)(o=>{const{getBlockAttributes:r}=o(a.a),c=r(n)||{};return{customGradient:c[t],gradient:c[e]}},[n,e,t]),{updateBlockAttributes:f}=Object(c.useDispatch)(a.a),h=Object(r.useCallback)(r=>{const c=p(o,r);f(n,c?{[e]:c,[t]:void 0}:{[e]:void 0,[t]:r})},[o,n,f]),g=u(b);let O;return O=b?d(o,b):m,{gradientClass:g,gradientValue:O,setGradient:h}}},Crq9:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));t.a=c},"DmX/":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"}));t.a=c},ERVc:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function i(e){return Object(o.useSelect)(t=>{const{getBlockName:n,getBlockAttributes:o}=t(c.a),i=o(e);if(null==i||!i.className)return;const l=Object(r.getBlockType)(n(e));return(null==l?void 0:l.apiVersion)>1?i.className:void 0},[e])}},EpZT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M7 9v6h10V9H7zM5 19.8h14v-1.5H5v1.5zM5 4.3v1.5h14V4.3H5z"}));t.a=c},Fmc1:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("K9lf"),l=n("l3Sj"),a=n("REKd"),s=n("j6zP");function u({isDraggable:e,pattern:t,onClick:n,composite:l}){const{blocks:d,viewportWidth:b}=t,p="block-editor-block-patterns-list__item-description-"+Object(i.useInstanceId)(u);return Object(r.createElement)(s.a,{isEnabled:e,blocks:d},({draggable:e,onDragStart:i,onDragEnd:s})=>Object(r.createElement)("div",{className:"block-editor-block-patterns-list__list-item","aria-label":t.title,"aria-describedby":t.description?p:void 0,draggable:e,onDragStart:i,onDragEnd:s},Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({role:"option",as:"div"},l,{className:"block-editor-block-patterns-list__item",onClick:()=>n(t,d)}),Object(r.createElement)(a.a,{blocks:d,viewportWidth:b}),Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&Object(r.createElement)(c.VisuallyHidden,{id:p},t.description))))}function d(){return Object(r.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}t.a=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onClickPattern:i,orientation:a,label:s=Object(l.__)("Block Patterns")}){const b=Object(c.__unstableUseCompositeState)({orientation:a});return Object(r.createElement)(c.__unstableComposite,Object(o.a)({},b,{role:"listbox",className:"block-editor-block-patterns-list","aria-label":s}),t.map(t=>n.includes(t)?Object(r.createElement)(u,{key:t.name,pattern:t,onClick:i,isDraggable:e,composite:b}):Object(r.createElement)(d,{key:t.name})))}},FnAh:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));t.a=c},G4zt:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("9Do8"),r=n.n(o),c=n("GRId"),i=n("1ZqX"),l=n("1CF3"),a=n("BhPs");function s(e){const t=Object(c.useRef)(),n=Object(i.useSelect)(t=>{const{isBlockSelected:n,getBlockSelectionEnd:o}=t(a.a);return n(e)||o()===e},[e]);return Object(c.useEffect)(()=>{if(!n)return;const e=t.current;if(!e)return;if(e.contains(e.ownerDocument.activeElement))return;const o=Object(l.getScrollContainer)(e)||e.ownerDocument.defaultView;o&&r()(e,o,{onlyScrollIfNeeded:!0})},[n]),t}},GKUk:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("YLtl"),i=n("tI+e"),l=n("l3Sj"),a=n("v5LD");function s({value:e="",onChange:t,fontFamilies:n,...s}){const u=Object(a.a)("typography.fontFamilies");if(n||(n=u),Object(c.isEmpty)(n))return null;const d=[{value:"",label:Object(l.__)("Default")},...n.map(({fontFamily:e,name:t})=>({value:e,label:t||e}))];return Object(r.createElement)(i.SelectControl,Object(o.a)({label:Object(l.__)("Font family"),options:d,value:e,onChange:t,labelPosition:"top"},s))}},GOly:function(e,t,n){"use strict";var o=n("GRId");const r=Object(o.createContext)();t.a=r},GRId:function(e,t){e.exports=window.wp.element},GemG:function(e,t,n){var o,r,c;
/*!
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
*/r=[e,t],void 0===(c="function"==typeof(o=function(e,t){"use strict";var n,o,r="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o.splice(t,1))}}),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&&!r.has(e)){var t,n=null,o=null,i=null,l=function(){e.clientWidth!==o&&d()},a=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:a,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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==o){i=o;var r=c("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}function l(e){var t=r.get(e);t&&t.destroy()}function a(e){var t=r.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],l),e},s.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=s,e.exports=t.default})?o.apply(t,r):o)||(e.exports=c)},GkEL:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("NMb1"),l=n.n(i),a=n("1CF3"),s=n("hF7m");function u(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}function d(e,t,n,o,c){const[i]=Object(r.useState)(t),[l]=Object(r.useState)(o),d=Object(r.useCallback)(()=>{!function(e){const[t]=a.focus.tabbable.find(e);t&&t.focus()}(e.current)},[]);Object(s.useShortcut)("core/block-editor/focus-toolbar",d),Object(r.useEffect)(()=>{i&&d()},[n,i,d]),Object(r.useEffect)(()=>{let t=0;return l&&!i&&(t=window.requestAnimationFrame(()=>{const t=u(e.current),n=l||0;var o;t[n]&&(o=e.current).contains(o.ownerDocument.activeElement)&&t[n].focus()})),()=>{if(window.cancelAnimationFrame(t),!c||!e.current)return;const n=u(e.current).findIndex(e=>0===e.tabIndex);c(n)}},[l,i])}t.a=function({children:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:i,...s}){const u=Object(r.useRef)(),b=function(e){const[t,n]=Object(r.useState)(!0),o=Object(r.useCallback)(()=>{const t=a.focus.tabbable.find(e.current),o=!t.some(e=>!("toolbarItem"in e.dataset));o||l()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(o)},[]);return Object(r.useLayoutEffect)(()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[t]),t}(u);return d(u,t,b,n,i),b?Object(r.createElement)(c.Toolbar,Object(o.a)({label:s["aria-label"],ref:u},s),e):Object(r.createElement)(c.NavigableMenu,Object(o.a)({orientation:"horizontal",role:"toolbar",ref:u},s),e)}},GvwK:function(e,t,n){"use strict";var o=n("GRId"),r=n("NMb1"),c=n.n(r),i=n("7SSY");t.a=function({title:e,icon:t,description:n,blockType:r}){return r&&(c()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=r)),Object(o.createElement)("div",{className:"block-editor-block-card"},Object(o.createElement)(i.a,{icon:t,showColors:!0}),Object(o.createElement)("div",{className:"block-editor-block-card__content"},Object(o.createElement)("h2",{className:"block-editor-block-card__title"},e),Object(o.createElement)("span",{className:"block-editor-block-card__description"},n)))}},HC45:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("GOly");t.a=Object(r.forwardRef)((function(e,t){const n=Object(r.useContext)(i.a);return Object(r.createElement)(c.__unstableCompositeGroup,Object(o.a)({state:n,role:"presentation",ref:t},e))}))},HSyU:function(e,t){e.exports=window.wp.blocks},HgtZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("ur0x"),c=n("BhPs");function i(){const{isSelected:e,clientId:t,name:n}=Object(r.c)();return Object(o.useSelect)(o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:i,getMultiSelectedBlockClientIds:l}=o(c.a);return!!i(t)&&l().every(e=>r(e)===n)},[t,e,n])}},I5Hl:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("tI+e"),l=n("l3Sj"),a=n("iClF"),s=n("Q4Sy"),u=n("NMb1"),d=n.n(u),b=n("qrxh");function p({rootClientId:e,className:t,onFocus:n,tabIndex:r},u){return Object(o.createElement)(b.a,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:d,isOpen:b,blockTitle:p,hasSingleBlockType:m})=>{let f;f=m?Object(l.sprintf)(Object(l._x)("Add %s","directly add the only allowed block"),p):Object(l._x)("Add block","Generic label for block inserter button");const h=!m;let g=Object(o.createElement)(i.Button,{ref:u,onFocus:n,tabIndex:r,className:c()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":h?"true":void 0,"aria-expanded":h?b:void 0,disabled:d,label:f},!m&&Object(o.createElement)(i.VisuallyHidden,{as:"span"},f),Object(o.createElement)(a.a,{icon:s.a}));return(h||m)&&(g=Object(o.createElement)(i.Tooltip,{text:f},g)),g},isAppender:!0})}const m=Object(o.forwardRef)((e,t)=>(d()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender"}),p(e,t)));t.b=Object(o.forwardRef)(p)},JDWi:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs");function i(e){const{isNavigationMode:t,isBlockSelected:n}=Object(o.useSelect)(c.a),{setNavigationMode:i,selectBlock:l}=Object(o.useDispatch)(c.a);return Object(r.useRefEffect)(o=>{function r(o){t()&&!o.defaultPrevented&&(o.preventDefault(),n(e)?i(!1):l(e))}return o.addEventListener("mousedown",r),()=>{o.addEventListener("mousedown",r)}},[e,t,n,i])}},JGYp:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("YLtl"),r=n("GRId"),c=n("1ZqX"),i=n("HSyU"),l=n("BhPs");function a({clientId:e=null,value:t,selection:n,onChange:a=o.noop,onInput:s=o.noop}){const u=Object(c.useRegistry)(),{resetBlocks:d,resetSelection:b,replaceInnerBlocks:p,setHasControlledInnerBlocks:m,__unstableMarkNextChangeAsNotPersistent:f}=u.dispatch(l.a),{getBlockName:h,getBlocks:g}=u.select(l.a),O=Object(r.useRef)({incoming:null,outgoing:[]}),v=Object(r.useRef)(!1),j=Object(r.useRef)(s),k=Object(r.useRef)(a);Object(r.useEffect)(()=>{j.current=s,k.current=a},[s,a]),Object(r.useEffect)(()=>{O.current.outgoing.includes(t)?Object(o.last)(O.current.outgoing)===t&&(O.current.outgoing=[]):g(e)!==t&&(O.current.outgoing=[],(()=>{if(t)if(f(),e){m(e,!0),f();const n=t.map(e=>Object(i.cloneBlock)(e));v.current&&(O.current.incoming=n),p(e,n)}else v.current&&(O.current.incoming=t),d(t)})(),n&&b(n.selectionStart,n.selectionEnd,n.initialPosition))},[t,e]),Object(r.useEffect)(()=>{const{getSelectionStart:t,getSelectionEnd:n,getSelectedBlocksInitialCaretPosition:o,isLastBlockChangePersistent:r,__unstableIsLastBlockChangeIgnored:c}=u.select(l.a);let i=g(e),a=r(),s=!1;v.current=!0;const d=u.subscribe(()=>{if(null!==e&&null===h(e))return;const l=r(),u=g(e),d=u!==i;if(i=u,d&&(O.current.incoming||c()))return O.current.incoming=null,void(a=l);if(d||s&&!d&&l&&!a){a=l,O.current.outgoing.push(i);(a?k.current:j.current)(i,{selection:{selectionStart:t(),selectionEnd:n(),initialPosition:o()}})}s=d});return()=>d()},[u,e])}},JRTi:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("GRId"),r=n("wx14"),c=n("TSYQ"),i=n.n(c),l=n("YLtl"),a=n("tI+e"),s=n("HSyU"),u=n("uoCR");const d={};var b=Object(a.withFilters)("editor.BlockEdit")(e=>{const{attributes:t={},name:n}=e,c=Object(s.getBlockType)(n),a=Object(o.useContext)(u.b),b=Object(o.useMemo)(()=>c&&c.usesContext?Object(l.pick)(a,c.usesContext):d,[c,a]);if(!c)return null;const p=c.edit||c.save;if(c.apiVersion>1)return Object(o.createElement)(p,Object(r.a)({},e,{context:b}));const m=Object(s.hasBlockSupport)(c,"className",!0)?Object(s.getBlockDefaultClassName)(n):null,f=i()(m,t.className);return Object(o.createElement)(p,Object(r.a)({},e,{context:b,className:f}))}),p=n("ur0x");function m(e){const{name:t,isSelected:n,clientId:r}=e,c={name:t,isSelected:n,clientId:r};return Object(o.createElement)(p.a,{value:Object(o.useMemo)(()=>c,Object.values(c))},Object(o.createElement)(b,e))}},JUfZ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("l3Sj"),a=n("HSyU"),s=n("1ZqX"),u=n("GkEL"),d=n("+gtr"),b=n("BhPs");t.a=function({focusOnMount:e,isFixed:t,...n}){const{blockType:c,hasParents:p,showParentSelector:m}=Object(s.useSelect)(e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o}=e(b.a),{getBlockType:r}=e(a.store),c=o(),i=c[0],l=n(i),s=r(t(l[l.length-1]));return{blockType:i&&r(t(i)),hasParents:l.length,showParentSelector:Object(a.hasBlockSupport)(s,"__experimentalParentSelector",!0)&&c.length<=1}},[]);if(c&&!Object(a.hasBlockSupport)(c,"__experimentalToolbar",!0))return null;const f=i()("block-editor-block-contextual-toolbar",{"has-parent":p&&m,"is-fixed":t});return Object(r.createElement)(u.a,Object(o.a)({focusOnMount:e,className:f,"aria-label":Object(l.__)("Block tools")},n),Object(r.createElement)(d.a,{hideDragHandle:t}))}},JygI:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),i=n("TSYQ"),l=n.n(i),a=n("xN+R"),s=n("tI+e"),u=n("HSyU"),d=n("1ZqX"),b=n("l3Sj"),p=n("ZAjO"),m=n("9Ma0"),f=n("BhPs");t.a=Object(d.withSelect)((e,{clientIds:t})=>{var n;const{getBlock:o,getBlockIndex:r,getBlockListSettings:i,canMoveBlocks:l,getBlockOrder:a,getBlockRootClientId:s}=e(f.a),d=Object(c.castArray)(t),b=Object(c.first)(d),p=o(b),m=s(Object(c.first)(d)),h=r(b,m),g=0===h,O=r(Object(c.last)(d),m)===a(m).length-1;return{blockType:p?Object(u.getBlockType)(p.name):null,canMove:l(t,m),rootClientId:m,firstIndex:h,isFirst:g,isLast:O,orientation:null===(n=i(m))||void 0===n?void 0:n.orientation}})((function({isFirst:e,isLast:t,clientIds:n,canMove:c,isHidden:i,rootClientId:u,orientation:d,hideDragHandle:f}){const[h,g]=Object(r.useState)(!1),O=()=>g(!0),v=()=>g(!1);if(!c||e&&t&&!u)return null;const j=Object(b.__)("Drag");return Object(r.createElement)("div",{className:l()("block-editor-block-mover",{"is-visible":h||!i,"is-horizontal":"horizontal"===d})},!f&&Object(r.createElement)(p.a,{clientIds:n,cloneClassname:"block-editor-block-mover__drag-clone"},e=>Object(r.createElement)(s.Button,Object(o.a)({icon:a.a,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:j,tabIndex:"-1"},e))),Object(r.createElement)(s.ToolbarGroup,{className:"block-editor-block-mover__move-button-container"},Object(r.createElement)(s.ToolbarItem,{onFocus:O,onBlur:v},e=>Object(r.createElement)(m.b,Object(o.a)({clientIds:n},e))),Object(r.createElement)(s.ToolbarItem,{onFocus:O,onBlur:v},e=>Object(r.createElement)(m.a,Object(o.a)({clientIds:n},e)))))}))},Jyyd:function(e,t,n){"use strict";var o=n("tI+e");const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableBlockSettingsMenuFirstItem");r.Slot=c,t.a=r},"K/rC":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("1ZqX"),r=n("w8sn"),c=n("BhPs"),i=n("PPMp");const l=["none","left","center","right","wide","full"],a=["wide","full"];function s(e=l){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n}=Object(o.useSelect)(e=>{const{getSettings:t}=e(c.a),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout}},[]),s=Object(r.d)(),u=Object(i.a)(null==s?void 0:s.type),d=u.getAlignments(s);if(n){const t=d.filter(({name:t})=>e.includes(t));return 1===t.length&&"none"===t[0].name?[]:t}if("default"!==u.name)return[];const{alignments:b=l}=s,p=e.filter(e=>(s.alignments||t||!a.includes(e))&&b.includes(e)).map(e=>({name:e}));return 1===p.length&&"none"===p[0].name?[]:p}},K9lf:function(e,t){e.exports=window.wp.compose},KyyN:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("GRId"),r=n("fHnH"),c=n("abaT"),i=n("7bKH"),l=n("vSu0");function a(e){return Object(o.useCallback)(e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,c=t.querySelector(".editor-styles-wrapper");let i;if(c)i=n.getComputedStyle(c,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),i=n.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const l=Object(r.a)(i);l.luminance()>.5||0===l.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")},[e])}function s({styles:e}){const t=Object(o.useMemo)(()=>Object(l.a)(e,".editor-styles-wrapper"),[e]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("style",{ref:a(e)}),t.map((e,t)=>Object(o.createElement)("style",{key:t},e)))}Object(r.b)([c.a,i.a])},LolH:function(e,t,n){"use strict";var o=n("GRId"),r=n("l3Sj"),c=n("iClF"),i=n("//Lo");t.a=function(){return Object(o.createElement)("div",{className:"block-editor-inserter__no-results"},Object(o.createElement)(c.a,{className:"block-editor-inserter__no-results-icon",icon:i.a}),Object(o.createElement)("p",null,Object(r.__)("No results found.")))}},"M+co":function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("GOly");t.a=Object(r.forwardRef)((function({isFirst:e,as:t,children:n,...l},a){const s=Object(r.useContext)(i.a);return Object(r.createElement)(c.__unstableCompositeItem,Object(o.a)({ref:a,state:s,role:"option",focusable:!0},l),o=>{const i={...o,tabIndex:e?0:o.tabIndex};return t?Object(r.createElement)(t,i,n):"function"==typeof n?n(i):Object(r.createElement)(c.Button,i,n)})}))},Mmq9:function(e,t){e.exports=window.wp.url},Mp0b:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=c},NMUH:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return i}));var o=n("YLtl");const r=(e,t,n)=>{if(t){const n=Object(o.find)(e,{slug:t});if(n)return n}return{size:n}};function c(e,t){const n=Object(o.find)(e,{size:t});return n||{size:t}}function i(e){if(e)return`has-${Object(o.kebabCase)(e)}-font-size`}},NMb1:function(e,t){e.exports=window.wp.deprecated},NTP4:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},NWDH:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=c},NtoT:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var o=n("GRId"),r=n("YLtl"),c=n("tI+e"),i=(n("Z23Y"),n("HgtZ")),l=n("VrEk");function a({__experimentalGroup:t="default",children:n}){var a;const s=Object(i.a)(),u=null===(a=l.a[t])||void 0===a?void 0:a.Fill;return u?s?Object(o.createElement)(c.__experimentalStyleProvider,{document:document},Object(o.createElement)(u,null,e=>{const t=Object(r.isEmpty)(e)?null:e;return Object(o.createElement)(c.__experimentalToolsPanelContext.Provider,{value:t},n)})):null:(void 0!==e&&e.env,null)}}).call(this,n("8oxB"))},O6Fj:function(e,t,n){"use strict";t.__esModule=!0;var o=n("CNgt");t.default=o.TextareaAutosize},OL6h:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l}));const o=".block-editor-block-list__block",r=".block-list-appender";function c(e,t){return e.closest(o)===t.closest(o)}function i(e,t){return t.closest([o,r].join(","))===e}function l(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(o);return t?t.id.slice("block-".length):void 0}},OzlF:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));t.a=c},P7XM: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}}},PKbb:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return a}));var o=n("GRId"),r=n("K9lf"),c=n("cDhi");function i(e){const{refs:t,callbacks:n}=Object(o.useContext)(c.a),i=Object(o.useRef)();return Object(o.useLayoutEffect)(()=>(t.set(i,e),()=>{t.delete(i)}),[e]),Object(r.useRefEffect)(t=>{i.current=t,n.forEach((n,o)=>{e===n&&o(t)})},[e])}function l(e){const{refs:t}=Object(o.useContext)(c.a),n=Object(o.useRef)();return n.current=e,Object(o.useMemo)(()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}}),[])}function a(e){const{callbacks:t}=Object(o.useContext)(c.a),n=l(e),[r,i]=Object(o.useState)(null);return Object(o.useLayoutEffect)(()=>{if(e)return t.set(i,e),()=>{t.delete(i)}},[e]),n.current||r}},PPMp:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return I}));var o=n("GRId"),r=n("l3Sj"),c=n("kWXm"),i=n("DmX/"),l=n("suLj"),a=n("bTSr"),s=n("Tqx9");var u=Object(o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(s.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"}));var d=Object(o.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(s.Path,{d:"M16.2 13.2l-4 4V4h-1.5v13.3l-4.5-4.1-1 1.1 6.2 5.8 5.8-5.8-1-1.1z"})),b=n("tI+e");function p(e,t=""){return e.split(",").map(e=>`.editor-styles-wrapper ${e} ${t}`).join(",")}var m=n("v5LD"),f=n("fOYa"),h=n("0E5u");const g={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},O={left:"flex-start",right:"flex-end",center:"center"},v=["wrap","nowrap"];var j={name:"flex",label:Object(r.__)("Flex"),inspectorControls:function({layout:e={},onChange:t}){const{allowOrientation:n=!0}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(b.Flex,null,Object(o.createElement)(b.FlexItem,null,Object(o.createElement)(k,{layout:e,onChange:t})),Object(o.createElement)(b.FlexItem,null,n&&Object(o.createElement)(y,{layout:e,onChange:t}))),Object(o.createElement)(_,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){return null!=n&&n.allowSwitching?null:Object(o.createElement)(f.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(o.createElement)(k,{layout:e,onChange:t,isToolbar:!0}))},save:function({selector:e,layout:t}){const{orientation:n="horizontal"}=t,r=null!==Object(m.a)("spacing.blockGap"),c=g[t.justifyContent]||g.left,i=v.includes(t.flexWrap)?t.flexWrap:"wrap",l=`\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tjustify-content: ${c};\n\t\t--justification-setting: ${c};\n\t\t`,a=O[t.justifyContent]||O.left,s=`\n\t\tflex-direction: column;\n\t\talign-items: ${a};\n\t\t--justification-setting: ${a};\n\t\t`;return Object(o.createElement)("style",null,`\n\t\t\t\t${p(e)} {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tgap: ${r?"var( --wp--style--block-gap, 0.5em )":"0.5em"};\n\t\t\t\t\tflex-wrap: ${i};\n\t\t\t\t\t${"horizontal"===n?l:s}\n\t\t\t\t}\n\n\t\t\t\t${p(e,"> *")} {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t`)},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments:()=>[]};function k({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:s="left",orientation:u="horizontal"}=e,d=n=>{t({...e,justifyContent:n})},p=["left","center","right"];if("horizontal"===u&&p.push("space-between"),n)return Object(o.createElement)(h.a,{allowedControls:p,value:s,onChange:d,popoverProps:{position:"bottom right",isAlternate:!0}});const m=[{value:"left",icon:c.a,label:Object(r.__)("Justify items left")},{value:"center",icon:i.a,label:Object(r.__)("Justify items center")},{value:"right",icon:l.a,label:Object(r.__)("Justify items right")}];return"horizontal"===u&&m.push({value:"space-between",icon:a.a,label:Object(r.__)("Space between items")}),Object(o.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-justification-controls"},Object(o.createElement)("legend",null,Object(r.__)("Justification")),Object(o.createElement)("div",null,m.map(({value:e,icon:t,label:n})=>Object(o.createElement)(b.Button,{key:e,label:n,icon:t,isPressed:s===e,onClick:()=>d(e)}))))}function _({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return Object(o.createElement)(b.ToggleControl,{label:Object(r.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function y({layout:e,onChange:t}){const{orientation:n="horizontal"}=e;return Object(o.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-orientation-controls"},Object(o.createElement)("legend",null,Object(r.__)("Orientation")),Object(o.createElement)(b.Button,{label:"horizontal",icon:u,isPressed:"horizontal"===n,onClick:()=>t({...e,orientation:"horizontal"})}),Object(o.createElement)(b.Button,{label:"vertical",icon:d,isPressed:"vertical"===n,onClick:()=>t({...e,orientation:"vertical"})}))}var E=n("iClF"),C=n("EpZT"),S=n("beZb");const w=[{name:"default",label:Object(r.__)("Flow"),inspectorControls:function({layout:e,onChange:t}){const{wideSize:n,contentSize:c}=e,i=Object(b.__experimentalUseCustomUnits)({availableUnits:Object(m.a)("spacing.units")||["%","px","em","rem","vw"]});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls"},Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(o.createElement)(b.__experimentalUnitControl,{label:Object(r.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:c||n||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:i}),Object(o.createElement)(E.a,{icon:C.a})),Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},Object(o.createElement)(b.__experimentalUnitControl,{label:Object(r.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:n||c||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:i}),Object(o.createElement)(E.a,{icon:S.a}))),Object(o.createElement)("div",{className:"block-editor-hooks__layout-controls-reset"},Object(o.createElement)(b.Button,{variant:"secondary",isSmall:!0,disabled:!c&&!n,onClick:()=>t({contentSize:void 0,wideSize:void 0,inherit:!1})},Object(r.__)("Reset"))),Object(o.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},Object(r.__)("Customize the width for all elements that are assigned to the center or wide columns.")))},toolBarControls:function(){return null},save:function({selector:e,layout:t={}}){const{contentSize:n,wideSize:r}=t,c=null!==Object(m.a)("spacing.blockGap");let i=n||r?`\n\t\t\t\t\t${p(e,"> *")} {\n\t\t\t\t\t\tmax-width: ${null!=n?n:r};\n\t\t\t\t\t\tmargin-left: auto !important;\n\t\t\t\t\t\tmargin-right: auto !important;\n\t\t\t\t\t}\n\n\t\t\t\t\t${p(e,'> [data-align="wide"]')} {\n\t\t\t\t\t\tmax-width: ${null!=r?r:n};\n\t\t\t\t\t}\n\n\t\t\t\t\t${p(e,'> [data-align="full"]')} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";return i+=`\n\t\t\t${p(e,'> [data-align="left"]')} {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-right: 2em;\n\t\t\t}\n\n\t\t\t${p(e,'> [data-align="right"]')} {\n\t\t\t\tfloat: right;\n\t\t\t\tmargin-left: 2em;\n\t\t\t}\n\n\t\t`,c&&(i+=`\n\t\t\t\t${p(e,"> *")} {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t\t${p(e,"> * + *")} {\n\t\t\t\t\tmargin-top: var( --wp--style--block-gap );\n\t\t\t\t}\n\t\t\t`),Object(o.createElement)("style",null,i)},getOrientation:()=>"vertical",getAlignments(e){const t=function(e){const{contentSize:t,wideSize:n}=e,o={},c=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;c.test(t)&&(o.none=Object(r.sprintf)(Object(r.__)("Max %s wide"),t));c.test(n)&&(o.wide=Object(r.sprintf)(Object(r.__)("Max %s wide"),n));return o}(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map(e=>({name:e,info:t[e]}));const{contentSize:n,wideSize:o}=e,c=[{name:"left"},{name:"center"},{name:"right"}];return n&&c.unshift({name:"full"}),o&&c.unshift({name:"wide",info:t.wide}),c.unshift({name:"none",info:t.none}),c}},j];function B(e="default"){return w.find(t=>t.name===e)}function I(){return w}},"PS/H":function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return h}));var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("1ZqX"),l=n("tI+e"),a=n("K9lf"),s=n("l3Sj"),u=n("qrxh"),d=n("BhPs"),b=n("PKbb"),p=n("2z9l");const m=Object(o.createContext)();function f({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n}=Object(i.useDispatch)(d.a),r=Object(o.useContext)(m),f=Object(o.useRef)(),{orientation:h,previousClientId:g,nextClientId:O,rootClientId:v,isInserterShown:j}=Object(i.useSelect)(e=>{var t;const{getBlockOrder:n,getBlockListSettings:o,getBlockInsertionPoint:r,isBlockBeingDragged:c,getPreviousBlockClientId:i,getNextBlockClientId:l}=e(d.a),a=r(),s=n(a.rootClientId);if(!s.length)return{};let u=s[a.index-1],b=s[a.index];for(;c(u);)u=i(u);for(;c(b);)b=l(b);return{previousClientId:u,nextClientId:b,orientation:(null===(t=o(a.rootClientId))||void 0===t?void 0:t.orientation)||"vertical",rootClientId:a.rootClientId,isInserterShown:null==a?void 0:a.__unstableWithInserter}},[]),k=Object(b.a)(g),_=Object(b.a)(O),y="vertical"===h,E=Object(o.useMemo)(()=>{if(!k&&!_)return{};const e=k?k.getBoundingClientRect():null,t=_?_.getBoundingClientRect():null;if(y)return{width:k?k.offsetWidth:_.offsetWidth,height:t&&e?t.top-e.bottom:0};let n=0;return e&&t&&(n=Object(s.isRTL)()?e.left-t.right:t.left-e.right),{width:n,height:k?k.offsetHeight:_.offsetHeight}},[k,_]),C=Object(o.useCallback)(()=>{if(!k&&!_)return{};const{ownerDocument:e}=k||_,t=k?k.getBoundingClientRect():null,n=_?_.getBoundingClientRect():null;return y?Object(s.isRTL)()?{top:t?t.bottom:n.top,left:t?t.right:n.right,right:t?t.left:n.left,bottom:n?n.top:t.bottom,ownerDocument:e}:{top:t?t.bottom:n.top,left:t?t.left:n.left,right:t?t.right:n.right,bottom:n?n.top:t.bottom,ownerDocument:e}:Object(s.isRTL)()?{top:t?t.top:n.top,left:t?t.left:n.right,right:n?n.right:t.left,bottom:t?t.bottom:n.bottom,ownerDocument:e}:{top:t?t.top:n.top,left:t?t.right:n.left,right:n?n.left:t.right,bottom:t?t.bottom:n.bottom,ownerDocument:e}},[k,_]),S=Object(p.a)(t),w=Object(a.useReducedMotion)(),B=c()("block-editor-block-list__insertion-point","is-"+h);const I=k&&_&&j,x={start:{...y?{height:0,left:"50%",right:"50%",y:0}:{width:0,top:"50%",bottom:"50%",x:0},opacity:0},rest:{...y?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:I?.4:0}},hover:{...y?{height:4,left:0,right:0,y:-2}:{width:4,top:0,bottom:0,x:-2},opacity:1,borderRadius:"2px",transition:{delay:.4}}},T={start:{scale:w?1:0},rest:{scale:1,transition:{delay:.2}}};return Object(o.createElement)(l.Popover,{ref:S,noArrow:!0,animate:!1,getAnchorRect:C,focusOnMount:!1,className:"block-editor-block-list__insertion-point-popover",__unstableSlotName:e||null,key:O+"--"+v},Object(o.createElement)(l.__unstableMotion.div,{layout:!w,initial:w?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:f,tabIndex:-1,onClick:function(e){e.target===f.current&&O&&n(O,-1)},onFocus:function(e){e.target!==f.current&&(r.current=!0)},className:c()(B,{"is-with-inserter":I}),style:E},Object(o.createElement)(l.__unstableMotion.div,{variants:x,className:"block-editor-block-list__insertion-point-indicator"}),I&&Object(o.createElement)(l.__unstableMotion.div,{variants:T,className:c()("block-editor-block-list__insertion-point-inserter")},Object(o.createElement)(u.a,{position:"bottom center",clientId:O,rootClientId:v,__experimentalIsQuick:!0,onToggle:e=>{r.current=e},onSelectOrClose:()=>{r.current=!1}}))))}function h({children:e,__unstablePopoverSlot:t,__unstableContentRef:n}){const r=Object(i.useSelect)(e=>e(d.a).isBlockInsertionPointVisible(),[]);return Object(o.createElement)(m.Provider,{value:Object(o.useRef)(!1)},r&&Object(o.createElement)(f,{__unstablePopoverSlot:t,__unstableContentRef:n}),e)}},Q2Xw:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("TSYQ"),r=n.n(o),c=n("1ZqX"),i=n("HSyU"),l=n("BhPs");function a(e){return Object(c.useSelect)(t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:c,isBlockMultiSelected:a,getBlockName:s,getSettings:u,hasSelectedInnerBlock:d,isTyping:b,__experimentalGetActiveBlockIdByBlockNames:p}=t(l.a),{__experimentalSpotlightEntityBlocks:m,outlineMode:f}=u(),h=n(e),g=c(e),O=s(e),v=d(e,!0),j=p(m);return r()({"is-selected":g,"is-highlighted":o(e),"is-multi-selected":a(e),"is-reusable":Object(i.isReusableBlock)(Object(i.getBlockType)(O)),"is-dragging":h,"has-child-selected":v,"has-active-entity":j,"is-active-entity":j===e,"remove-outline":g&&f&&b()})},[e])}},Q4Sy:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=c},"QP/w":function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("v5LD");t.a=function(e){const t=Object(i.a)("typography.fontSizes"),n=!Object(i.a)("typography.customFontSize");return Object(r.createElement)(c.FontSizePicker,Object(o.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))}},REKd:function(e,t,n){"use strict";var o=n("GRId"),r=n("YLtl"),c=n("1ZqX"),i=n("/QNa"),l=n("tI+e"),a=n("VyCT");function s({onClick:e}){return Object(o.createElement)("div",{tabIndex:0,role:"button",onClick:e,onKeyPress:e},Object(o.createElement)(l.Disabled,null,Object(o.createElement)(a.c,null)))}var u=n("K9lf"),d=n("hHnB"),b=n("KyyN"),p=n("BhPs");let m;var f=function({viewportWidth:e,__experimentalPadding:t}){const[n,{width:r}]=Object(u.useResizeObserver)(),[i,{height:s}]=Object(u.useResizeObserver)(),f=Object(c.useSelect)(e=>e(p.a).getSettings().styles,[]);m=m||Object(u.pure)(a.c);const h=r/e;return Object(o.createElement)("div",{className:"block-editor-block-preview__container"},n,Object(o.createElement)(l.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${h})`,height:s*h}},Object(o.createElement)(d.a,{head:Object(o.createElement)(b.a,{styles:f}),contentRef:Object(u.useRefEffect)(e=>{const{ownerDocument:{documentElement:n}}=e;n.style.position="absolute",n.style.width="100%",e.style.padding=t+"px"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:s,pointerEvents:"none"}},i,Object(o.createElement)(m,{renderAppender:!1}))))};t.a=Object(o.memo)((function({blocks:e,__experimentalPadding:t=0,viewportWidth:n=1200,__experimentalLive:l=!1,__experimentalOnClick:a}){const u=Object(c.useSelect)(e=>e(p.a).getSettings(),[]),d=Object(o.useMemo)(()=>{const e={...u};return e.__experimentalBlockPatterns=[],e},[u]),b=Object(o.useMemo)(()=>Object(r.castArray)(e),[e]);return e&&0!==e.length?Object(o.createElement)(i.a,{value:b,settings:d},l?Object(o.createElement)(s,{onClick:a}):Object(o.createElement)(f,{viewportWidth:n,__experimentalPadding:t})):null}))},RMJe:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=c},Rk8H:function(e,t,n){var o=n("jTPX");e.exports=function(e){var t=o(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=o(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var c=e.nodeName,i=document.createElement(c);i.innerHTML="&nbsp;","TEXTAREA"===c.toUpperCase()&&i.setAttribute("rows","1");var l=o(e,"font-size");i.style.fontSize=l,i.style.padding="0px",i.style.border="0px";var a=document.body;a.appendChild(i),n=i.offsetHeight,a.removeChild(i)}return n}},RxS6:function(e,t){e.exports=window.wp.keycodes},SVSp:function(e,t){e.exports=window.wp.shortcode},TSYQ:function(e,t,n){var o;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===c)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},TVFh:function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("1ZqX"),a=n("l3Sj"),s=n("K9lf"),u=n("YLtl"),d=n("BhPs"),b=n("PKbb");function p(e,t){const n="start"===t?"firstChild":"lastChild",o="start"===t?"nextSibling":"previousSibling";for(;e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[o];)e=e[o];return e}function m(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r}=e(d.a);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r()}}function f(){const{isMultiSelecting:e,multiSelectedBlockClientIds:t,hasMultiSelection:n,selectedBlockClientId:o}=Object(l.useSelect)(m,[]),r=Object(b.b)(o),c=Object(b.b)(Object(u.first)(t)),i=Object(b.b)(Object(u.last)(t));return Object(s.useRefEffect)(l=>{const{ownerDocument:a}=l,{defaultView:s}=a;if(!n||e){if(!o||e)return;const t=s.getSelection();if(t.rangeCount&&!t.isCollapsed){const e=r.current,{startContainer:n,endContainer:o}=t.getRangeAt(0);!e||e.contains(n)&&e.contains(o)||t.removeAllRanges()}return}const{length:u}=t;if(u<2)return;if(!c.current||!i.current)return;l.focus();const d=s.getSelection(),b=a.createRange(),m=p(c.current,"start"),f=p(i.current,"end");var h,g;h=l,g=!1,Array.from(h.querySelectorAll(".rich-text")).forEach(e=>{g?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}),b.setStartBefore(m),b.setEndAfter(f),d.removeAllRanges(),d.addRange(b)},[n,e,t,o])}var h=n("1CF3"),g=n("RxS6");function O(e){const{tagName:t}=e;return"INPUT"===t||"BUTTON"===t||"SELECT"===t||"TEXTAREA"===t}var v=n("OL6h");function j(e,t,n,o){let r,c=h.focus.focusable.find(n);return t&&(c=Object(u.reverse)(c)),c=c.slice(c.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),Object(u.find)(c,(function(e){if(!h.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}))}function k(){const{getSelectedBlockClientId:e,getMultiSelectedBlocksStartClientId:t,getMultiSelectedBlocksEndClientId:n,getPreviousBlockClientId:o,getNextBlockClientId:r,getFirstMultiSelectedBlockClientId:c,getLastMultiSelectedBlockClientId:i,getSettings:a,hasMultiSelection:u}=Object(l.useSelect)(d.a),{multiSelect:b,selectBlock:p}=Object(l.useDispatch)(d.a);return Object(s.useRefEffect)(l=>{let s;function d(){s=null}function m(c){const i=e(),l=t(),a=n(),s=o(a||i),u=r(a||i),d=c?s:u;d&&(l===d?p(d):b(l||i,d))}function f(e){const t=c(),n=i(),o=e?t:n;o&&p(o)}function O(t){const{keyCode:c,target:i}=t,d=c===g.UP,b=c===g.DOWN,p=c===g.LEFT,O=c===g.RIGHT,k=d||p,_=p||O,y=d||b,E=_||y,C=t.shiftKey,S=C||t.ctrlKey||t.altKey||t.metaKey,w=y?h.isVerticalEdge:h.isHorizontalEdge,{ownerDocument:B}=l,{defaultView:I}=B;if(u()){if(E){(C?m:f)(k),t.preventDefault()}return}if(y?s||(s=Object(h.computeCaretRect)(I)):s=null,t.defaultPrevented)return;if(!E)return;if(!function(e,t,n){if((t===g.UP||t===g.DOWN)&&!n)return!0;const{tagName:o}=e;return"INPUT"!==o&&"TEXTAREA"!==o}(i,c,S))return;const x=Object(h.isRTL)(i)?!k:k,{keepCaretInsideBlock:T}=a(),P=e();if(C){const e=n(),c=o(e||P),a=r(e||P);(k&&c||!k&&a)&&function(e,t){const n=j(e,t,l);return!n||!Object(v.b)(e,n)}(i,k)&&w(i,k)&&(m(k),t.preventDefault())}else if(y&&Object(h.isVerticalEdge)(i,k)&&!T){const e=j(i,k,l,!0);e&&(Object(h.placeCaretAtVerticalEdge)(e,k,s),t.preventDefault())}else if(_&&I.getSelection().isCollapsed&&Object(h.isHorizontalEdge)(i,x)&&!T){const e=j(i,x,l);Object(h.placeCaretAtHorizontalEdge)(e,k),t.preventDefault()}}return l.addEventListener("mousedown",d),l.addEventListener("keydown",O),()=>{l.removeEventListener("mousedown",d),l.removeEventListener("keydown",O)}},[])}var _=n("hF7m");function y(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=Object(l.useSelect)(d.a),{multiSelect:o}=Object(l.useDispatch)(d.a),r=Object(_.__unstableUseShortcutEventMatch)();return Object(s.useRefEffect)(c=>{function i(c){if(!r("core/block-editor/select-all",c))return;if(!Object(h.isEntirelySelected)(c.target))return;const i=t(),[l]=i,a=n(l);let s=e(a);i.length===s.length&&(s=e(n(a)));const d=Object(u.first)(s),b=Object(u.last)(s);d!==b&&(o(d,b),c.preventDefault())}return c.addEventListener("keydown",i),()=>{c.removeEventListener("keydown",i)}},[])}function E(){const[e,t,n]=function(){const e=Object(r.useRef)(),t=Object(r.useRef)(),n=Object(r.useRef)(),o=Object(r.useRef)(),{hasMultiSelection:c,getSelectedBlockClientId:i,getBlockCount:a}=Object(l.useSelect)(d.a),{setNavigationMode:u}=Object(l.useDispatch)(d.a),b=Object(l.useSelect)(e=>e(d.a).isNavigationMode(),[])?void 0:"0",p=Object(r.useRef)();function m(t){if(p.current)p.current=null;else if(c())e.current.focus();else if(i())o.current.focus();else{u(!0);const n=t.target.compareDocumentPosition(e.current)&t.target.DOCUMENT_POSITION_FOLLOWING?"findNext":"findPrevious";h.focus.tabbable[n](t.target).focus()}}const f=Object(r.createElement)("div",{ref:t,tabIndex:b,onFocus:m}),v=Object(r.createElement)("div",{ref:n,tabIndex:b,onFocus:m}),j=Object(s.useRefEffect)(r=>{function l(e){if(e.defaultPrevented)return;if(e.keyCode===g.ESCAPE&&!c())return e.preventDefault(),void u(!0);if(e.keyCode!==g.TAB)return;const o=e.shiftKey,l=o?"findPrevious":"findNext";if(!c()&&!i())return void(e.target===r&&u(!0));if(O(e.target)&&O(h.focus.tabbable[l](e.target)))return;const a=o?t:n;p.current=!0,a.current.focus({preventScroll:!0})}function s(e){o.current=e.target;const{ownerDocument:t}=r;e.relatedTarget||t.activeElement!==t.body||0!==a()||r.focus()}function d(o){var r;if(o.keyCode!==g.TAB)return;if("region"===(null===(r=o.target)||void 0===r?void 0:r.getAttribute("role")))return;if(e.current===o.target)return;const c=o.shiftKey?"findPrevious":"findNext",i=h.focus.tabbable[c](o.target);i!==t.current&&i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:b}=r,{defaultView:m}=b;return m.addEventListener("keydown",d),r.addEventListener("keydown",l),r.addEventListener("focusout",s),()=>{m.removeEventListener("keydown",d),r.removeEventListener("keydown",l),r.removeEventListener("focusout",s)}},[]);return[f,Object(s.useMergeRefs)([e,j]),v]}(),o=Object(l.useSelect)(e=>e(d.a).hasMultiSelection(),[]);return[e,Object(s.useMergeRefs)([t,f(),y(),k(),Object(s.useRefEffect)(e=>{if(e.tabIndex=-1,o)return e.setAttribute("aria-label",Object(a.__)("Multiple selected blocks")),()=>{e.removeAttribute("aria-label")}},[o])]),n]}t.a=Object(r.forwardRef)((function({children:e,...t},n){const[c,l,a]=E();return Object(r.createElement)(r.Fragment,null,c,Object(r.createElement)("div",Object(o.a)({},t,{ref:Object(s.useMergeRefs)([l,n]),className:i()(t.className,"block-editor-writing-flow")}),e),a)}))},Tqx9:function(e,t){e.exports=window.wp.primitives},U1WI:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=n("1eGn");t.a=function({clientIds:e,...t}){return Object(r.createElement)(c.ToolbarGroup,null,Object(r.createElement)(c.ToolbarItem,null,n=>Object(r.createElement)(i.a,Object(o.a)({clientIds:e,toggleProps:n},t))))}},VKE3:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));t.a=c},VrEk:function(e,t,n){"use strict";var o=n("tI+e");const r={default:Object(o.createSlotFill)("InspectorControls"),advanced:Object(o.createSlotFill)("InspectorAdvancedControls"),dimensions:Object(o.createSlotFill)("InspectorControlsDimensions"),typography:Object(o.createSlotFill)("InspectorControlsTypography")};t.a=r},VyCT:function(e,t,n){"use strict";n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return T})),n.d(t,"a",(function(){return R}));var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("1ZqX"),l=n("K9lf"),a=n("jBNB"),s=n("YLtl"),u=n("HSyU"),d=n("5L8O"),b=n("I5Hl"),p=n("BhPs");var m=Object(i.withSelect)((e,{rootClientId:t})=>{const{getBlockOrder:n,canInsertBlockType:o,getTemplateLock:r,getSelectedBlockClientId:c}=e(p.a);return{isLocked:!!r(t),blockClientIds:n(t),canInsertDefaultBlock:o(Object(u.getDefaultBlockName)(),t),selectedBlockClientId:c()}})((function({blockClientIds:e,rootClientId:t,canInsertDefaultBlock:n,isLocked:r,renderAppender:i,className:l,selectedBlockClientId:a,tagName:u="div"}){if(r||!1===i)return null;let p;if(i)p=Object(o.createElement)(i,null);else{const r=!t,c=a===t,i=a&&!e.includes(a);if(!r&&!c&&(!a||i))return null;p=n?Object(o.createElement)(d.a,{rootClientId:t,lastBlockClientId:Object(s.last)(e)}):Object(o.createElement)(b.b,{rootClientId:t,className:"block-list-appender__toggle"})}return Object(o.createElement)(u,{tabIndex:-1,className:c()("block-list-appender wp-block",l),"data-block":!0},p)})),f=n("PS/H");function h(){const e=Object(o.useContext)(f.a),t=Object(i.useSelect)(e=>e(p.a).getSettings().hasReducedUI,[]),{getBlockListSettings:n,getBlockRootClientId:r,getBlockIndex:c,isBlockInsertionPointVisible:a,isMultiSelecting:s,getSelectedBlockClientIds:u,getTemplateLock:d}=Object(i.useSelect)(p.a),{showInsertionPoint:b,hideInsertionPoint:m}=Object(i.useDispatch)(p.a);return Object(l.useRefEffect)(o=>{if(!t)return o.addEventListener("mousemove",r),()=>{o.removeEventListener("mousemove",r)};function r(t){var o,r;if(e.current)return;if(s())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void(a()&&m());let i;if(!t.target.classList.contains("is-root-container")){i=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(d(i))return;const l=(null===(o=n(i))||void 0===o?void 0:o.orientation)||"vertical",p=t.target.getBoundingClientRect(),f=t.clientY-p.top,h=t.clientX-p.left;let g=Array.from(t.target.children).find(e=>e.classList.contains("wp-block")&&"vertical"===l&&e.offsetTop>f||e.classList.contains("wp-block")&&"horizontal"===l&&e.offsetLeft>h);if(!g)return;if(!g.id&&(g=g.firstElementChild,!g))return;if(null===(r=g.parentElement)||void 0===r?void 0:r.closest(".block-editor-block-content-overlay.overlay-active"))return;const O=g.id.slice("block-".length);if(!O)return;if(u().includes(O))return;const v=g.getBoundingClientRect();if("horizontal"===l&&(t.clientY>v.bottom||t.clientY<v.top)||"vertical"===l&&(t.clientX>v.right||t.clientX<v.left))return void(a()&&m());const j=c(O,i);0!==j?b(i,j,{__unstableWithInserter:!0}):a()&&m()}},[e,n,r,c,a,s,b,m,u])}const g="undefined"==typeof window?e=>{setTimeout(()=>e(Date.now()),0)}:window.requestIdleCallback||window.requestAnimationFrame,O="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var v=n("w8sn"),j=n("tI+e"),k=n("NMb1"),_=n.n(k),y=n("xCFn");function E({children:e}){const t=Object(o.useContext)(f.a),n=Object(o.useContext)(j.Disabled.Context);return t||n?e:(_()('wp.components.Popover.Slot name="block-toolbar"',{alternative:"wp.blockEditor.BlockTools"}),Object(o.createElement)(f.b,{__unstablePopoverSlot:"block-toolbar"},Object(o.createElement)(y.a,{__unstablePopoverSlot:"block-toolbar"}),e))}var C=n("zQI6"),S=n("p3NJ"),w=n("ur0x");const B=Object(o.createContext)(),I=Object(o.createContext)();function x({className:e,...t}){const[n,r]=Object(o.useState)(),a=Object(l.useViewportMatch)("medium"),{isOutlineMode:s,isFocusMode:u,isNavigationMode:d}=Object(i.useSelect)(e=>{const{getSettings:t,isNavigationMode:n}=e(p.a),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,isNavigationMode:n()}},[]),b=Object(S.b)({ref:Object(l.useMergeRefs)([Object(C.b)(),h(),r]),className:c()("is-root-container",e,{"is-outline-mode":s,"is-focus-mode":u&&a,"is-navigate-mode":d})},t);return Object(o.createElement)(B.Provider,{value:n},Object(o.createElement)("div",b))}function T(e){return function(){const e=Object(i.useSelect)(e=>e(p.a).getSettings().__experimentalBlockPatterns,[]);Object(o.useEffect)(()=>{if(null==e||!e.length)return;let t,n=-1;const o=()=>{n++,n>=e.length||(Object(i.select)(p.a).__experimentalGetParsedPattern(e[n].name),t=g(o))};return t=g(o),()=>O(t)},[e])}(),Object(o.createElement)(E,null,Object(o.createElement)(w.a,{value:w.b},Object(o.createElement)(x,e)))}function P({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:r,__experimentalLayout:c=v.c}){const[l,s]=Object(o.useState)(new Set),u=Object(o.useMemo)(()=>{const{IntersectionObserver:e}=window;if(e)return new e(e=>{s(t=>{const n=new Set(t);for(const t of e){const e=t.target.getAttribute("data-block");n[t.isIntersecting?"add":"delete"](e)}return n})})},[s]),{order:d,selectedBlocks:b}=Object(i.useSelect)(e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o}=e(p.a);return{order:n(t),selectedBlocks:o()}},[t]);return Object(o.createElement)(v.a,{value:c},Object(o.createElement)(I.Provider,{value:u},d.map(e=>Object(o.createElement)(i.AsyncModeProvider,{key:e,value:!l.has(e)&&!b.includes(e)},Object(o.createElement)(a.b,{rootClientId:t,clientId:e})))),d.length<1&&e,Object(o.createElement)(m,{tagName:r,rootClientId:t,renderAppender:n}))}function R(e){return Object(o.createElement)(i.AsyncModeProvider,{value:!1},Object(o.createElement)(P,e))}T.__unstableElementContext=B},WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},Wg7J:function(e,t,n){"use strict";var o=n("GRId"),r=n("YLtl"),c=n("l3Sj"),i=n("tI+e"),l=n("K9lf"),a=n("gdqT"),s=n("6ZVF"),u=n("Fmc1"),d=n("mlss"),b=n("mdLt"),p=n("LolH"),m=n("AORF"),f=n("nQUx"),h=n("+G0a"),g=n("pOGT"),O=n("wiT/");const v=[];t.a=function({filterValue:e,onSelect:t,onHover:n,rootClientId:j,clientId:k,isAppender:_,__experimentalInsertionIndex:y,maxBlockPatterns:E,maxBlockTypes:C,showBlockDirectory:S=!1,isDraggable:w=!0,shouldFocusBlock:B=!0}){const I=Object(l.useDebounce)(a.speak,500),[x,T]=Object(m.a)({onSelect:t,rootClientId:j,clientId:k,isAppender:_,insertionIndex:y,shouldFocusBlock:B}),[P,R,N,L]=Object(h.a)(x,T),[M,,A]=Object(f.a)(T,x),D=Object(o.useMemo)(()=>{const t=Object(g.a)(Object(r.orderBy)(P,["frecency"],["desc"]),R,N,e);return void 0!==C?t.slice(0,C):t},[e,P,R,N,C]),F=Object(o.useMemo)(()=>{const t=Object(g.b)(M,e);return void 0!==E?t.slice(0,E):t},[e,M,E]);Object(o.useEffect)(()=>{if(!e)return;const t=D.length+F.length,n=Object(c.sprintf)(Object(c._n)("%d result found.","%d results found.",t),t);I(n)},[e,I]);const z=Object(l.useAsyncList)(D,{step:9}),H=Object(l.useAsyncList)(z.length===D.length?F:v),V=!Object(r.isEmpty)(D)||!Object(r.isEmpty)(F);return Object(o.createElement)(O.a,null,!S&&!V&&Object(o.createElement)(p.a,null),!!D.length&&Object(o.createElement)(b.a,{title:Object(o.createElement)(i.VisuallyHidden,null,Object(c.__)("Blocks"))},Object(o.createElement)(s.a,{items:z,onSelect:L,onHover:n,label:Object(c.__)("Blocks"),isDraggable:w})),!!D.length&&!!F.length&&Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),!!F.length&&Object(o.createElement)(b.a,{title:Object(o.createElement)(i.VisuallyHidden,null,Object(c.__)("Block Patterns"))},Object(o.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},Object(o.createElement)(u.a,{shownPatterns:H,blockPatterns:F,onClickPattern:A,isDraggable:w}))),S&&Object(o.createElement)(d.a.Slot,{fillProps:{onSelect:L,onHover:n,filterValue:e,hasItems:V,rootClientId:x}},e=>e.length?e:V?null:Object(o.createElement)(p.a,null)))}},Wy3j:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),i=n("wx14");function l(e){return[...e].sort((t,n)=>e.filter(e=>e===n).length-e.filter(e=>e===t).length).shift()}function a(e={}){if("string"==typeof e)return e;const t=Object.values(e).map(e=>Object(r.__experimentalParseUnit)(e)),n=t.map(e=>e[0]),o=t.map(e=>e[1]),c=n.every(e=>e===n[0])?n[0]:"",i=l(o);return 0===c||c?`${c}${i}`:null}function s(e={}){const t=a(e);return isNaN(parseFloat(t))}function u(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter(e=>!!e||0===e).length}function d({onChange:e,values:t,...n}){const l=a(t),d=u(t)&&s(t),b=d?Object(c.__)("Mixed"):null;return Object(o.createElement)(r.__experimentalUnitControl,Object(i.a)({},n,{"aria-label":Object(c.__)("Border radius"),disableUnits:d,isOnly:!0,value:l,onChange:e,placeholder:b}))}const b={topLeft:Object(c.__)("Top left"),topRight:Object(c.__)("Top right"),bottomLeft:Object(c.__)("Bottom left"),bottomRight:Object(c.__)("Bottom right")};function p({onChange:e,values:t,...n}){const c="string"!=typeof t?t:{topLeft:t,topRight:t,bottomLeft:t,bottomRight:t};return Object(o.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(b).map(([t,l])=>{return Object(o.createElement)(r.__experimentalUnitControl,Object(i.a)({},n,{key:t,"aria-label":l,value:c[t],onChange:(a=t,t=>{e&&e({...c,[a]:t||void 0})})}));var a}))}var m=n("Bpkj"),f=n("Mp0b");function h({isLinked:e,...t}){const n=e?Object(c.__)("Unlink Radii"):Object(c.__)("Link Radii");return Object(o.createElement)(r.Tooltip,{text:n},Object(o.createElement)(r.Button,Object(i.a)({},t,{className:"component-border-radius-control__linked-button",isPrimary:e,isSecondary:!e,isSmall:!0,icon:e?m.a:f.a,iconSize:16,"aria-label":n})))}var g=n("v5LD");const O={topLeft:null,topRight:null,bottomLeft:null,bottomRight:null},v={px:100,em:20,rem:20};function j({onChange:e,values:t}){const[n,i]=Object(o.useState)(!u(t)||!s(t)),b=Object(r.__experimentalUseCustomUnits)({availableUnits:Object(g.a)("spacing.units")||["px","em","rem"]}),m=function(e={}){if("string"==typeof e){const[,t]=Object(r.__experimentalParseUnit)(e);return t||"px"}return l(Object.values(e).map(e=>{const[,t]=Object(r.__experimentalParseUnit)(e);return t}))||"px"}(t),f=b&&b.find(e=>e.value===m),j=(null==f?void 0:f.step)||1,[k]=Object(r.__experimentalParseUnit)(a(t));return Object(o.createElement)("fieldset",{className:"components-border-radius-control"},Object(o.createElement)("legend",null,Object(c.__)("Radius")),Object(o.createElement)("div",{className:"components-border-radius-control__wrapper"},n?Object(o.createElement)(o.Fragment,null,Object(o.createElement)(d,{className:"components-border-radius-control__unit-control",values:t,min:0,onChange:e,unit:m,units:b}),Object(o.createElement)(r.RangeControl,{className:"components-border-radius-control__range-control",value:k,min:0,max:v[m],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${m}`:void 0)},step:j})):Object(o.createElement)(p,{min:0,onChange:e,values:t||O,units:b}),Object(o.createElement)(h,{onClick:()=>i(!n),isLinked:n})))}},XNw2:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));t.a=c},XgzB:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=c},Xkls:function(e,t,n){"use strict";var o=n("+DUQ"),r=n("GRId"),c=n("K9lf"),i=n("1CF3");const l=e=>e+1,a=e=>({top:e.offsetTop,left:e.offsetLeft});t.a=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:s}){const u=Object(r.useRef)(),d=Object(c.useReducedMotion)()||!n,[b,p]=Object(r.useReducer)(l,0),[m,f]=Object(r.useReducer)(l,0),[h,g]=Object(r.useState)({x:0,y:0}),O=Object(r.useMemo)(()=>u.current?a(u.current):null,[s]),v=Object(r.useMemo)(()=>{if(!t||!u.current)return()=>{};const e=Object(i.getScrollContainer)(u.current);if(!e)return()=>{};const n=u.current.getBoundingClientRect();return()=>{const t=u.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}},[s,t]);function j({value:t}){let{x:n,y:o}=t;n=Math.round(n),o=Math.round(o),n===j.x&&o===j.y||(!function({x:t,y:n}){if(!u.current)return;const o=0===t&&0===n;u.current.style.transformOrigin=o?"":"center",u.current.style.transform=o?"":`translate3d(${t}px,${n}px,0)`,u.current.style.zIndex=!e||o?"":"1",v()}({x:n,y:o}),j.x=n,j.y=o)}return Object(r.useLayoutEffect)(()=>{b&&f()},[b]),Object(r.useLayoutEffect)(()=>{if(!O)return;if(d)return void v();u.current.style.transform="";const e=a(u.current);p(),g({x:Math.round(O.left-e.left),y:Math.round(O.top-e.top)})},[s]),j.x=0,j.y=0,Object(o.useSpring)({from:{x:h.x,y:h.y},to:{x:0,y:0},reset:b!==m,config:{mass:5,tension:2e3,friction:200},immediate:d,onChange:j}),u}},YLtl:function(e,t){e.exports=window.lodash},YZt4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function i(e){return Object(o.useSelect)(t=>{const n=t(c.a).getBlockName(e),o=Object(r.getBlockType)(n);if((null==o?void 0:o.apiVersion)>1)return Object(r.getBlockDefaultClassName)(n)},[e])}},Z23Y:function(e,t){e.exports=window.wp.warning},ZAjO:function(e,t,n){"use strict";var o=n("GRId"),r=n("HSyU"),c=n("tI+e"),i=n("1ZqX"),l=n("q3tz"),a=n("1CF3");var s=n("BhPs");t.a=({children:e,clientIds:t,cloneClassname:n,onDragStart:u,onDragEnd:d})=>{const{srcRootClientId:b,isDraggable:p,icon:m}=Object(i.useSelect)(e=>{var n;const{getBlockRootClientId:o,getTemplateLock:c,getBlockName:i}=e(s.a),l=o(t[0]),a=l?c(l):null,u=i(t[0]);return{srcRootClientId:l,isDraggable:"all"!==a,icon:null===(n=Object(r.getBlockType)(u))||void 0===n?void 0:n.icon}},[t]),f=Object(o.useRef)(!1),[h,g,O]=function(){const e=Object(o.useRef)(null),t=Object(o.useRef)(null),n=Object(o.useRef)(null),r=Object(o.useRef)(null);return Object(o.useEffect)(()=>()=>{r.current&&(clearInterval(r.current),r.current=null)},[]),[Object(o.useCallback)(o=>{e.current=o.clientY,n.current=Object(a.getScrollContainer)(o.target),r.current=setInterval(()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}},25)},[]),Object(o.useCallback)(o=>{if(!n.current)return;const r=n.current.offsetHeight,c=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>c){const e=Math.max(r-c-50,0),n=Math.max(i-c-50,0)/e;t.current=25*n}else if(o.clientY<c){const e=Math.max(c-50,0),n=Math.max(c-i-50,0)/e;t.current=-25*n}else t.current=0},[]),()=>{e.current=null,n.current=null,r.current&&(clearInterval(r.current),r.current=null)}]}(),{startDraggingBlocks:v,stopDraggingBlocks:j}=Object(i.useDispatch)(s.a);if(Object(o.useEffect)(()=>()=>{f.current&&j()},[]),!p)return e({isDraggable:!1});const k={type:"block",srcClientIds:t,srcRootClientId:b};return Object(o.createElement)(c.Draggable,{cloneClassname:n,__experimentalTransferDataType:"wp-blocks",transferData:k,onDragStart:e=>{v(t),f.current=!0,h(e),u&&u()},onDragOver:g,onDragEnd:()=>{j(),f.current=!1,O(),d&&d()},__experimentalDragComponent:Object(o.createElement)(l.a,{count:t.length,icon:m})},({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n}))}},Zzu2:function(e,t,n){"use strict";var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("tI+e"),l=n("l3Sj"),a=n("Tqx9");var s=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));t.a=function({className:e,actions:t,children:n,secondaryActions:r}){return Object(o.createElement)("div",{className:c()(e,"block-editor-warning")},Object(o.createElement)("div",{className:"block-editor-warning__contents"},Object(o.createElement)("p",{className:"block-editor-warning__message"},n),(o.Children.count(t)>0||r)&&Object(o.createElement)("div",{className:"block-editor-warning__actions"},o.Children.count(t)>0&&o.Children.map(t,(e,t)=>Object(o.createElement)("span",{key:t,className:"block-editor-warning__action"},e)),r&&Object(o.createElement)(i.DropdownMenu,{className:"block-editor-warning__secondary",icon:s,label:Object(l.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},()=>Object(o.createElement)(i.MenuGroup,null,r.map((e,t)=>Object(o.createElement)(i.MenuItem,{onClick:e.onClick,key:t},e.title)))))))}},abaT:function(e,t,n){"use strict";t.a=function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var c={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,l=o[this.toHex()];if(l)return l;if(null==t?void 0:t.closest){var a=this.toRgb(),s=1/0,u="black";if(!c.length)for(var d in n)c[d]=new e(n[d]).toRgb();for(var b in n){var p=(r=a,i=c[b],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));p<s&&(s=p,u=b)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}},asom:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("wx14"),r=n("GRId"),c=n("tI+e");function i({Slot:e,...t}){const n=Object(r.useContext)(c.__experimentalToolsPanelContext);return Object(r.createElement)(e,Object(o.a)({},t,{fillProps:n}))}},b2RC:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7.8 16.5H5c-.3 0-.5-.2-.5-.5v-6.2h6.8v6.7zm0-8.3H4.5V5c0-.3.2-.5.5-.5h6.2v6.7zm8.3 7.8c0 .3-.2.5-.5.5h-6.2v-6.8h6.8V19zm0-7.8h-6.8V4.5H19c.3 0 .5.2.5.5v6.2z",fillRule:"evenodd",clipRule:"evenodd"}));t.a=c},bTSr:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));t.a=c},bVTw:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none"},Object(o.createElement)(r.Path,{d:"M5 11.25h14v1.5H5z"}));t.a=c},bVpQ:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return u}));var o=n("YLtl"),r=n("fHnH"),c=n("abaT"),i=n("7bKH");Object(r.b)([c.a,i.a]);const l=(e,t,n)=>{if(t){const n=Object(o.find)(e,{slug:t});if(n)return n}return{color:n}},a=(e,t)=>Object(o.find)(e,{color:t});function s(e,t){if(e&&t)return`has-${Object(o.kebabCase)(t)}-${e}`}function u(e,t){const n=Object(r.a)(t);return Object(o.maxBy)(e,({color:e})=>n.contrast(e)).color}},beZb:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"}));t.a=c},btIw:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(r.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));t.a=c},c1Zz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("GRId"),r=n("tI+e"),c=n("1ZqX"),i=n("BhPs"),l=n("715p");function a({children:e,group:t,label:n}){const{clientId:a,attributes:s}=Object(c.useSelect)(e=>{const{getBlockAttributes:t,getSelectedBlockClientId:n}=e(i.a),o=n();return{clientId:o,attributes:t(o)}},[]),{updateBlockAttributes:u}=Object(c.useDispatch)(i.a);return Object(o.createElement)(r.__experimentalToolsPanel,{className:t+"-block-support-panel",label:n,resetAll:(e=[])=>{const{style:t}=s;let n={style:t};e.forEach(e=>{n={...n,...e(n)}}),n={...n,style:Object(l.a)(n.style)},u(a,n)},key:a,panelId:a,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0},e)}},cDcd:function(e,t){e.exports=window.React},cDhi:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n("GRId");const r=Object(o.createContext)();function c({children:e}){const t=Object(o.useMemo)(()=>({refs:new Map,callbacks:new Map}),[]);return Object(o.createElement)(r.Provider,{value:t},e)}},cGtP:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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},cjQ8:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));t.a=c},dfZa:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return a})),n.d(t,"h",(function(){return l}));var o=n("nEW0"),r=n("cDcd");const c=Symbol.for("Animated:node"),i=e=>e&&e[c],l=(e,t)=>Object(o.h)(e,c,t),a=e=>e&&e[c]&&e[c].getPayload();class s{constructor(){this.payload=void 0,l(this,this)}getPayload(){return this.payload||[]}}class u extends s{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,o.s.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new u(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return o.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,o.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class d extends u{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Object(o.f)({output:[e,e]})}static create(e){return new d(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(o.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Object(o.f)({output:[this.getValue(),e]})),this._value=0,super.reset()}}const b={dependencies:null};class p extends s{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Object(o.l)(this.source,(n,r)=>{var i;(i=n)&&i[c]===i?t[r]=n.getValue(e):Object(o.r)(n)?t[r]=Object(o.q)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Object(o.k)(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Object(o.l)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){b.dependencies&&Object(o.r)(e)&&b.dependencies.add(e);const t=a(e);t&&Object(o.k)(t,e=>this.add(e))}}class m extends p{constructor(e){super(e)}static create(e){return new m(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(f)),!0)}}function f(e){return(Object(o.t)(e)?d:u).create(e)}function h(e){const t=i(e);return t?t.constructor:o.s.arr(e)?m:Object(o.t)(e)?d:u}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const O=(e,t)=>{const n=!o.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(r.forwardRef)((c,i)=>{const l=Object(r.useRef)(null),a=n&&Object(r.useCallback)(e=>{l.current=function(e,t){e&&(o.s.fun(e)?e(t):e.current=t);return t}(i,e)},[i]),[s,u]=function(e,t){const n=new Set;b.dependencies=n,e.style&&(e=g({},e,{style:t.createAnimatedStyle(e.style)}));return e=new p(e),b.dependencies=null,[e,n]}(c,t),d=Object(o.z)(),m=()=>{const e=l.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&d()},f=new v(m,u),h=Object(r.useRef)();Object(o.A)(()=>{const e=h.current;h.current=f,Object(o.k)(u,e=>Object(o.c)(e,f)),e&&(Object(o.k)(e.deps,t=>Object(o.x)(t,e)),o.w.cancel(e.update))}),Object(r.useEffect)(m,[]),Object(o.C)(()=>()=>{const e=h.current;Object(o.k)(e.deps,t=>Object(o.x)(t,e))});const O=t.getComponentProps(s.getValue());return r.createElement(e,g({},O,{ref:a}))})};class v{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&o.w.write(this.update)}}const j=Symbol.for("AnimatedComponent"),k=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new p(e)),getComponentProps:r=(e=>e)}={})=>{const c={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=_(e)||"Anonymous";return(e=o.s.str(e)?i[e]||(i[e]=O(e,c)):e[j]||(e[j]=O(e,c))).displayName=`Animated(${t})`,e};return Object(o.l)(e,(t,n)=>{o.s.arr(e)&&(n=_(t)),i[n]=i(t)}),{animated:i}},_=e=>o.s.str(e)?e:e&&o.s.str(e.displayName)?e.displayName:o.s.fun(e)&&e.name||null},eGrx:function(e,t){var n=e.exports=function(e){return new o(e)};function o(e){this.value=e}function r(e,t,n){var o=[],r=[],l=!0;return function e(d){var b=n?c(d):d,p={},m=!0,f={node:b,node_:d,path:[].concat(o),parent:r[r.length-1],parents:r,key:o.slice(-1)[0],isRoot:0===o.length,level:o.length,circular:null,update:function(e,t){f.isRoot||(f.parent.node[f.key]=e),f.node=e,t&&(m=!1)},delete:function(e){delete f.parent.node[f.key],e&&(m=!1)},remove:function(e){a(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],e&&(m=!1)},keys:null,before:function(e){p.before=e},after:function(e){p.after=e},pre:function(e){p.pre=e},post:function(e){p.post=e},stop:function(){l=!1},block:function(){m=!1}};if(!l)return f;function h(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=i(f.node)),f.isLeaf=0==f.keys.length;for(var e=0;e<r.length;e++)if(r[e].node_===d){f.circular=r[e];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}h();var g=t.call(f,f.node);return void 0!==g&&f.update&&f.update(g),p.before&&p.before.call(f,f.node),m?("object"!=typeof f.node||null===f.node||f.circular||(r.push(f),h(),s(f.keys,(function(t,r){o.push(t),p.pre&&p.pre.call(f,f.node[t],t);var c=e(f.node[t]);n&&u.call(f.node,t)&&(f.node[t]=c.node),c.isLast=r==f.keys.length-1,c.isFirst=0==r,p.post&&p.post.call(f,c),o.pop()})),r.pop()),p.after&&p.after.call(f,f.node),f):f}(e).node}function c(e){if("object"==typeof e&&null!==e){var t;if(a(e))t=[];else if("[object Date]"===l(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===l(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===l(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===l(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===l(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===l(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},o=function(){};o.prototype=n,t=new o}return s(i(e),(function(n){t[n]=e[n]})),t}return e}o.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o)){t=void 0;break}t=t[o]}return t},o.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!u.call(t,o))return!1;t=t[o]}return!0},o.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];u.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},o.prototype.map=function(e){return r(this.value,e,!0)},o.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},o.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},o.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},o.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},o.prototype.clone=function(){var e=[],t=[];return function n(o){for(var r=0;r<e.length;r++)if(e[r]===o)return t[r];if("object"==typeof o&&null!==o){var l=c(o);return e.push(o),t.push(l),s(i(o),(function(e){l[e]=n(o[e])})),e.pop(),t.pop(),l}return o}(this.value)};var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function l(e){return Object.prototype.toString.call(e)}var a=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(o.prototype),(function(e){n[e]=function(t){var n=[].slice.call(arguments,1),r=new o(t);return r[e].apply(r,n)}}));var u=Object.hasOwnProperty||function(e,t){return t in e}},ez49:function(e,t,n){"use strict";var o,r=n("o97j");r.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,c=n in document;if(!c){var i=document.createElement("div");i.setAttribute(n,"return;"),c="function"==typeof i[n]}return!c&&o&&"wheel"===e&&(c=document.implementation.hasFeature("Events.wheel","3.0")),c}},f8JO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),i=n("wC17"),l=n("BhPs");function a({clientId:e}){const{attributes:t,name:n,reusableBlockTitle:a}=Object(r.useSelect)(t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(l.a),i=n(e);if(!i)return{};const a=Object(c.isReusableBlock)(Object(c.getBlockType)(i));return{attributes:o(e),name:i,reusableBlockTitle:a&&r(o(e).ref)}},[e]),s=Object(i.a)(e);if(!n||!s)return null;const u=Object(c.getBlockType)(n),d=u?Object(c.__experimentalGetBlockLabel)(u,t):null,b=a||d;return b&&b!==u.title?Object(o.truncate)(b,{length:35}):s.title}},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return T}));var o={grad:.9,turn:360,rad:360/(2*Math.PI)},r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},c=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},i=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},l=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},a=function(e){return{r:i(e.r,0,255),g:i(e.g,0,255),b:i(e.b,0,255),a:i(e.a)}},s=function(e){return{r:c(e.r),g:c(e.g),b:c(e.b),a:c(e.a,3)}},u=/^#([0-9a-f]{3,8})$/i,d=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},b=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,c=Math.max(t,n,o),i=c-Math.min(t,n,o),l=i?c===t?(n-o)/i:c===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(l<0?l+6:l),s:c?i/c*100:0,v:c/255*100,a:r}},p=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var c=Math.floor(t),i=o*(1-n),l=o*(1-(t-c)*n),a=o*(1-(1-t+c)*n),s=c%6;return{r:255*[o,l,i,i,a,o][s],g:255*[a,o,o,l,i,i][s],b:255*[i,i,a,o,o,l][s],a:r}},m=function(e){return{h:l(e.h),s:i(e.s,0,100),l:i(e.l,0,100),a:i(e.a)}},f=function(e){return{h:c(e.h),s:c(e.s),l:c(e.l),a:c(e.a,3)}},h=function(e){return p((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},g=function(e){return{h:(t=b(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},O=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,k=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(e){var t=u.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?c(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?c(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=j.exec(e)||k.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=O.exec(e)||v.exec(e);if(!t)return null;var n,r,c=m({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(o[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return h(c)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,c=e.a,i=void 0===c?1:c;return r(t)&&r(n)&&r(o)?a({r:Number(t),g:Number(n),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,c=e.a,i=void 0===c?1:c;if(!r(t)||!r(n)||!r(o))return null;var l=m({h:Number(t),s:Number(n),l:Number(o),a:Number(i)});return h(l)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,c=e.a,a=void 0===c?1:c;if(!r(t)||!r(n)||!r(o))return null;var s=function(e){return{h:l(e.h),s:i(e.s,0,100),v:i(e.v,0,100),a:i(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(a)});return p(s)},"hsv"]]},y=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},E=function(e){return"string"==typeof e?y(e.trim(),_.string):"object"==typeof e&&null!==e?y(e,_.object):[null,void 0]},C=function(e,t){var n=g(e);return{h:n.h,s:i(n.s+100*t,0,100),l:n.l,a:n.a}},S=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},w=function(e,t){var n=g(e);return{h:n.h,s:n.s,l:i(n.l+100*t,0,100),a:n.a}},B=function(){function e(e){this.parsed=E(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return c(S(this.rgba),2)},e.prototype.isDark=function(){return S(this.rgba)<.5},e.prototype.isLight=function(){return S(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,i=(r=e.a)<1?d(c(255*r)):"","#"+d(t)+d(n)+d(o)+i;var e,t,n,o,r,i},e.prototype.toRgb=function(){return s(this.rgba)},e.prototype.toRgbString=function(){return t=(e=s(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return f(g(this.rgba))},e.prototype.toHslString=function(){return t=(e=f(g(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=b(this.rgba),{h:c(e.h),s:c(e.s),v:c(e.v),a:c(e.a,3)};var e},e.prototype.invert=function(){return I({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),I(C(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),I(C(this.rgba,-e))},e.prototype.grayscale=function(){return I(C(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),I(w(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),I(w(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?I({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):c(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=g(this.rgba);return"number"==typeof e?I({h:e,s:t.s,l:t.l,a:t.a}):c(t.h)},e.prototype.isEqual=function(e){return this.toHex()===I(e).toHex()},e}(),I=function(e){return e instanceof B?e:new B(e)},x=[],T=function(e){e.forEach((function(e){x.indexOf(e)<0&&(e(B,_),x.push(e))}))}},fOYa:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n("wx14"),r=n("GRId"),c=n("YLtl"),i=n("tI+e"),l=n("HSyU"),a=n("1ZqX");var s={default:Object(i.createSlotFill)("BlockControls"),block:Object(i.createSlotFill)("BlockControlsBlock"),inline:Object(i.createSlotFill)("BlockFormatControls"),other:Object(i.createSlotFill)("BlockControlsOther"),parent:Object(i.createSlotFill)("BlockControlsParent")},u=n("BhPs"),d=n("ur0x"),b=n("HgtZ");function p({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const p=function(e,t){const n=Object(b.a)(),{clientId:o}=Object(d.c)(),r=Object(a.useSelect)(e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(u.a),{hasBlockSupport:c}=e(l.store);return t&&c(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)},[t,o]);var c;return n?null===(c=s[e])||void 0===c?void 0:c.Fill:r?s.parent.Fill:null}(e,o);return p?Object(r.createElement)(i.__experimentalStyleProvider,{document:document},Object(r.createElement)(p,null,o=>{const l=Object(c.isEmpty)(o)?null:o;return Object(r.createElement)(i.__experimentalToolbarContext.Provider,{value:l},"default"===e&&Object(r.createElement)(i.ToolbarGroup,{controls:t}),n)})):null}function m({group:e="default",...t}){const n=Object(r.useContext)(i.__experimentalToolbarContext),c=s[e].Slot,l=Object(i.__experimentalUseSlot)(c.__unstableName);return Boolean(l.fills&&l.fills.length)?"default"===e?Object(r.createElement)(c,Object(o.a)({},t,{bubblesVirtually:!0,fillProps:n})):Object(r.createElement)(i.ToolbarGroup,null,Object(r.createElement)(c,Object(o.a)({},t,{bubblesVirtually:!0,fillProps:n}))):null}const f=p;f.Slot=m;const h=e=>Object(r.createElement)(p,Object(o.a)({group:"inline"},e));h.Slot=e=>Object(r.createElement)(m,Object(o.a)({group:"inline"},e));t.b=f},fPbg:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=c},faye:function(e,t){e.exports=window.ReactDOM},felP:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("1CF3"),r=n("RxS6"),c=n("1ZqX"),i=n("K9lf"),l=n("BhPs");function a(e){const t=Object(c.useSelect)(t=>t(l.a).isBlockSelected(e),[e]),{getBlockRootClientId:n,getBlockIndex:a}=Object(c.useSelect)(l.a),{insertDefaultBlock:s,removeBlock:u}=Object(c.useDispatch)(l.a);return Object(i.useRefEffect)(c=>{if(t)return c.addEventListener("keydown",i),c.addEventListener("dragstart",l),()=>{c.removeEventListener("keydown",i),c.removeEventListener("dragstart",l)};function i(t){const{keyCode:i,target:l}=t;i!==r.ENTER&&i!==r.BACKSPACE&&i!==r.DELETE||l!==c||Object(o.isTextField)(l)||(t.preventDefault(),i===r.ENTER?s({},n(e),a(e)+1):u(e))}function l(e){e.preventDefault()}},[e,t,n,a,s,u])}},g56x:function(e,t){e.exports=window.wp.hooks},gdqT:function(e,t){e.exports=window.wp.a11y},hF7m:function(e,t){e.exports=window.wp.keyboardShortcuts},hHnB:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("l3Sj"),a=n("K9lf"),s=n("tI+e"),u=n("zQI6"),d=n("TVFh");function b(e){return Object(r.useMemo)(()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)},[e])}t.a=Object(r.forwardRef)((function({contentRef:e,children:t,head:n,tabIndex:c=0,...p},m){var f,h;const[,g]=Object(r.useReducer)(()=>({})),[O,v]=Object(r.useState)(),[j,k]=Object(r.useState)([]),_=b(null===(f=window.__editorAssets)||void 0===f?void 0:f.styles),y=b(null===(h=window.__editorAssets)||void 0===h?void 0:h.scripts),E=Object(u.b)(),[C,S,w]=Object(d.b)(),B=Object(a.useRefEffect)(e=>{function t(){const{contentDocument:t,ownerDocument:n}=e,{readyState:o,documentElement:r}=t;return("interactive"===o||"complete"===o)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],c={};for(const t in e)c[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();c.clientX+=e.left,c.clientY+=e.top}const i=new r(e.type,c);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(t),v(t),E(r),k(Array.from(n.body.classList).filter(e=>e.startsWith("admin-color-")||"wp-embed-responsive"===e)),t.dir=n.dir,r.removeChild(t.head),r.removeChild(t.body),!0)}t()||e.addEventListener("load",()=>{t()})},[]),I=Object(a.useRefEffect)(e=>{y.reduce((t,n)=>t.then(()=>async function(e,{id:t,src:n}){return new Promise((o,r)=>{const c=e.ownerDocument.createElement("script");c.id=t,n?(c.src=n,c.onload=()=>o(),c.onerror=()=>r()):o(),e.appendChild(c)})}(e,n)),Promise.resolve()).finally(()=>{g()})},[]),x=Object(a.useMergeRefs)([e,E,S]);return Object(r.useEffect)(()=>{var e;O&&(e=O,Array.from(document.styleSheets).forEach(t=>{try{t.cssRules}catch(e){return}const{ownerNode:n,cssRules:o}=t;if(o&&"LINK"===n.tagName&&"wp-reset-editor-styles-css"!==n.id&&Array.from(o).find(({selectorText:e})=>e&&(e.includes(".editor-styles-wrapper")||e.includes(".wp-block")))&&!e.getElementById(n.id)){console.warn(`Stylesheet ${n.id} was not properly added.\nFor blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).\nFor themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles).`,n.outerHTML),e.head.appendChild(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.head.appendChild(o.cloneNode(!0))}}))},[O]),n=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("style",null,"body{margin:0}"),_.map(({tagName:e,href:t,id:n,rel:o,media:c,textContent:i})=>{const l=e.toLowerCase();return"style"===l?Object(r.createElement)(l,{id:n,key:n},i):Object(r.createElement)(l,{href:t,id:n,rel:o,media:c,key:n})}),n),Object(r.createElement)(r.Fragment,null,c>=0&&C,Object(r.createElement)("iframe",Object(o.a)({},p,{ref:Object(a.useMergeRefs)([m,B]),tabIndex:c,title:Object(l.__)("Editor canvas")}),O&&Object(r.createPortal)(Object(r.createElement)(r.Fragment,null,Object(r.createElement)("head",{ref:I},n),Object(r.createElement)("body",{ref:x,className:i()("editor-styles-wrapper",...j)},Object(r.createElement)(s.__experimentalStyleProvider,{document:O},t))),O.documentElement)),c>=0&&w)}))},hMaJ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("YLtl"),a=n("tI+e"),s=n("l3Sj"),u=n("v5LD");const d=["colors","disableCustomColors","gradients","disableCustomGradients"];function b({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalHasMultipleOrigins:c,className:u,label:d,onColorChange:b,onGradientChange:p,colorValue:m,gradientValue:f,clearable:h,showTitle:g=!0}){const O=b&&(!Object(l.isEmpty)(e)||!n),v=p&&(!Object(l.isEmpty)(t)||!o),[j,k]=Object(r.useState)(f?"gradient":!!O&&"color");return O||v?Object(r.createElement)(a.BaseControl,{className:i()("block-editor-color-gradient-control",u)},Object(r.createElement)("fieldset",null,Object(r.createElement)(a.__experimentalVStack,{spacing:1},g&&Object(r.createElement)("legend",null,Object(r.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},Object(r.createElement)(a.BaseControl.VisualLabel,null,d))),O&&v&&Object(r.createElement)(a.__experimentalToggleGroupControl,{value:j,onChange:k,label:Object(s.__)("Select color type"),hideLabelFromVision:!0,isBlock:!0},Object(r.createElement)(a.__experimentalToggleGroupControlOption,{value:"color",label:Object(s.__)("Solid")}),Object(r.createElement)(a.__experimentalToggleGroupControlOption,{value:"gradient",label:Object(s.__)("Gradient")})),("color"===j||!v)&&Object(r.createElement)(a.ColorPalette,{value:m,onChange:v?e=>{b(e),p()}:b,colors:e,disableCustomColors:n,__experimentalHasMultipleOrigins:c,clearable:h}),("gradient"===j||!O)&&Object(r.createElement)(a.GradientPicker,{value:f,onChange:O?e=>{p(e),b()}:p,gradients:t,disableCustomGradients:o,__experimentalHasMultipleOrigins:c,clearable:h})))):null}function p(e){const t={};return t.colors=Object(u.a)("color.palette"),t.gradients=Object(u.a)("color.gradients"),t.disableCustomColors=!Object(u.a)("color.custom"),t.disableCustomGradients=!Object(u.a)("color.customGradient"),Object(r.createElement)(b,Object(o.a)({},t,e))}t.a=function(e){return Object(l.every)(d,t=>e.hasOwnProperty(t))?Object(r.createElement)(b,e):Object(r.createElement)(p,e)}},hw9B:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs"),i=n("OL6h");function l(e,t){Array.from(e.closest(".is-root-container").querySelectorAll(".rich-text")).forEach(e=>{t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")})}function a(e){const{startMultiSelect:t,stopMultiSelect:n,multiSelect:a,selectBlock:s}=Object(o.useDispatch)(c.a),{isSelectionEnabled:u,isBlockSelected:d,getBlockParents:b,getBlockSelectionStart:p,hasMultiSelection:m}=Object(o.useSelect)(c.a);return Object(r.useRefEffect)(o=>{const{ownerDocument:r}=o,{defaultView:c}=r;let f,h;function g({isSelectionEnd:t}){const n=c.getSelection();if(!n.rangeCount||n.isCollapsed)return void l(o,!0);const r=Object(i.a)(n.focusNode);if(e===r){if(s(e),t&&(l(o,!0),n.rangeCount)){const{commonAncestorContainer:e}=n.getRangeAt(0);f.contains(e)&&f.focus()}}else{const t=[...b(e),e],n=[...b(r),r],o=Math.min(t.length,n.length)-1;a(t[o],n[o])}}function O(){r.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",O),h=c.requestAnimationFrame(()=>{g({isSelectionEnd:!0}),n()})}function v({buttons:n}){1===n&&u()&&d(e)&&(f=r.activeElement,t(),r.addEventListener("selectionchange",g),c.addEventListener("mouseup",O),l(o,!1))}function j(t){if(u()&&0===t.button)if(t.shiftKey){const n=p(),r=b(n);if(n&&n!==e&&(null==r||!r.includes(e))){const c=[...r,n],i=[...b(e),e],s=Math.min(c.length,i.length)-1,u=c[s],d=i[s];u!==d&&(l(o,!1),a(u,d),t.preventDefault())}}else m()&&s(e)}return o.addEventListener("mousedown",j),o.addEventListener("mouseleave",v),()=>{o.removeEventListener("mousedown",j),o.removeEventListener("mouseleave",v),r.removeEventListener("selectionchange",g),c.removeEventListener("mouseup",O),c.cancelAnimationFrame(h)}},[e,t,n,a,s,u,d,b])}},iA5R:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return r.diff(e,t,n)},t.characterDiff=void 0;var r=new(((o=n("smQA"))&&o.__esModule?o:{default:o}).default);t.characterDiff=r},iClF:function(e,t,n){"use strict";var o=n("GRId");t.a=function({icon:e,size:t=24,...n}){return Object(o.cloneElement)(e,{width:t,height:t,...n})}},j6zP:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("q3tz");t.a=({isEnabled:e,blocks:t,icon:n,children:i})=>{const l={type:"inserter",blocks:t};return Object(o.createElement)(r.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,__experimentalDragComponent:Object(o.createElement)(c.a,{count:t.length,icon:n})},({onDraggableStart:t,onDraggableEnd:n})=>i({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0}))}},jB5C:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r="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"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}function i(e){return c(e)}function l(e){return c(e,!0)}function a(e){var t=function(e){var t,n=void 0,o=void 0,r=e.ownerDocument,c=r.body,i=r&&r.documentElement;return n=(t=e.getBoundingClientRect()).left,o=t.top,{left:n-=i.clientLeft||c.clientLeft||0,top:o-=i.clientTop||c.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=i(o),t.top+=l(o),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 p(e,t){for(var n=0;n<e.length;n++)t(e[n])}function m(e){return"border-box"===b(e,"boxSizing")}"undefined"!=typeof window&&(b=window.getComputedStyle?function(e,t,n){var o="",r=e.ownerDocument,c=n||r.defaultView.getComputedStyle(e,null);return c&&(o=c.getPropertyValue(t)||c[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(s.test(n)&&!u.test(t)){var o=e.style,r=o[d],c=e.runtimeStyle[d];e.runtimeStyle[d]=e.currentStyle[d],o[d]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[d]=r,e.runtimeStyle[d]=c}return""===n?"auto":n});var f=["margin","border","padding"];function h(e,t,n){var o={},r=e.style,c=void 0;for(c in t)t.hasOwnProperty(c)&&(o[c]=r[c],r[c]=t[c]);for(c in n.call(e),t)t.hasOwnProperty(c)&&(r[c]=o[c])}function g(e,t,n){var o=0,r=void 0,c=void 0,i=void 0;for(c=0;c<t.length;c++)if(r=t[c])for(i=0;i<n.length;i++){var l=void 0;l="border"===r?r+n[i]+"Width":r+n[i],o+=parseFloat(b(e,l))||0}return o}function O(e){return null!=e&&e==e.window}var v={};function j(e,t,n){if(O(e))return"width"===t?v.viewportWidth(e):v.viewportHeight(e);if(9===e.nodeType)return"width"===t?v.docWidth(e):v.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?e.offsetWidth:e.offsetHeight,c=(b(e),m(e)),i=0;(null==r||r<=0)&&(r=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 l=void 0!==r||c,a=r||i;if(-1===n)return l?a-g(e,["border","padding"],o):i;if(l){var s=2===n?-g(e,["border"],o):g(e,["margin"],o);return a+(1===n?0:s)}return i+g(e,f.slice(n),o)}p(["Width","Height"],(function(e){v["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],v["viewport"+e](n))},v["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,c=o.documentElement[n];return"CSS1Compat"===o.compatMode&&c||r&&r[n]||c}}));var k={position:"absolute",visibility:"hidden",display:"block"};function _(e){var t=void 0,n=arguments;return 0!==e.offsetWidth?t=j.apply(void 0,n):h(e,k,(function(){t=j.apply(void 0,n)})),t}function y(e,t,n){var o=n;if("object"!==(void 0===t?"undefined":r(t)))return void 0!==o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):b(e,t);for(var c in t)t.hasOwnProperty(c)&&y(e,c,t[c])}p(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);v["outer"+t]=function(t,n){return t&&_(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];v[e]=function(t,o){if(void 0===o)return t&&_(t,e,-1);if(t){b(t);return m(t)&&(o+=g(t,["padding","border"],n)),y(t,e,o)}}})),e.exports=o({getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},offset:function(e,t){if(void 0===t)return a(e);!function(e,t){"static"===y(e,"position")&&(e.style.position="relative");var n=a(e),o={},r=void 0,c=void 0;for(c in t)t.hasOwnProperty(c)&&(r=parseFloat(y(e,c))||0,o[c]=r+t[c]-n[c]);y(e,o)}(e,t)},isWindow:O,each:p,css:y,clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);if(e.overflow)for(var n in e)e.hasOwnProperty(n)&&(t.overflow[n]=e.overflow[n]);return t},scrollLeft:function(e,t){if(O(e)){if(void 0===t)return i(e);window.scrollTo(t,l(e))}else{if(void 0===t)return e.scrollLeft;e.scrollLeft=t}},scrollTop:function(e,t){if(O(e)){if(void 0===t)return l(e);window.scrollTo(i(e),t)}else{if(void 0===t)return e.scrollTop;e.scrollTop=t}},viewportWidth:0,viewportHeight:0},v)},jBNB:function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var o=n("GRId"),r=n("TSYQ"),c=n.n(r),i=n("YLtl"),l=n("HSyU"),a=n("tI+e"),s=n("1ZqX"),u=n("K9lf"),d=n("1CF3"),b=n("JRTi"),p=n("l3Sj"),m=n("Zzu2"),f=n("iA5R");function h({title:e,rawContent:t,renderedContent:n,action:r,actionText:c,className:i}){return Object(o.createElement)("div",{className:i},Object(o.createElement)("div",{className:"block-editor-block-compare__content"},Object(o.createElement)("h2",{className:"block-editor-block-compare__heading"},e),Object(o.createElement)("div",{className:"block-editor-block-compare__html"},t),Object(o.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(n)))),Object(o.createElement)("div",{className:"block-editor-block-compare__action"},Object(o.createElement)(a.Button,{variant:"secondary",tabIndex:"0",onClick:r},c)))}var g=function({block:e,onKeep:t,onConvert:n,convertor:r,convertButtonText:a}){const s=(u=r(e),Object(i.castArray)(u).map(e=>Object(l.getSaveContent)(e.name,e.attributes,e.innerBlocks)).join(""));var u;const d=(b=e.originalContent,m=s,Object(f.diffChars)(b,m).map((e,t)=>{const n=c()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(o.createElement)("span",{key:t,className:n},e.value)}));var b,m;return Object(o.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(o.createElement)(h,{title:Object(p.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:Object(p.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),Object(o.createElement)(h,{title:Object(p.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:a,rawContent:d,renderedContent:s}))},O=n("BhPs");const v=e=>Object(l.rawHandler)({HTML:e.originalContent});var j=Object(u.compose)([Object(s.withSelect)((e,{clientId:t})=>({block:e(O.a).getBlock(t)})),Object(s.withDispatch)((e,{block:t})=>{const{replaceBlock:n}=e(O.a);return{convertToClassic(){n(t.clientId,(e=>Object(l.createBlock)("core/freeform",{content:e.originalContent}))(t))},convertToHTML(){n(t.clientId,(e=>Object(l.createBlock)("core/html",{content:e.originalContent}))(t))},convertToBlocks(){n(t.clientId,v(t))},attemptBlockRecovery(){n(t.clientId,(({name:e,attributes:t,innerBlocks:n})=>Object(l.createBlock)(e,t,n))(t))}}})])((function({convertToHTML:e,convertToBlocks:t,convertToClassic:n,attemptBlockRecovery:r,block:c}){const i=!!Object(l.getBlockType)("core/html"),[s,u]=Object(o.useState)(!1),d=Object(o.useCallback)(()=>u(!0),[]),b=Object(o.useCallback)(()=>u(!1),[]),f=Object(o.useMemo)(()=>[{title:Object(p._x)("Resolve","imperative verb"),onClick:d},i&&{title:Object(p.__)("Convert to HTML"),onClick:e},{title:Object(p.__)("Convert to Classic Block"),onClick:n}].filter(Boolean),[d,e,n]);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.a,{actions:[Object(o.createElement)(a.Button,{key:"recover",onClick:r,variant:"primary"},Object(p.__)("Attempt Block Recovery"))],secondaryActions:f},Object(p.__)("This block contains unexpected or invalid content.")),s&&Object(o.createElement)(a.Modal,{title:Object(p.__)("Resolve Block"),onRequestClose:b,className:"block-editor-block-compare"},Object(o.createElement)(g,{block:c,onKeep:e,onConvert:t,convertor:v,convertButtonText:Object(p.__)("Convert to Blocks")})))}));const k=Object(o.createElement)(m.a,{className:"block-editor-block-list__block-crash-warning"},Object(p.__)("This block has encountered an error and cannot be previewed."));var _=()=>k;class y extends o.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var E=y,C=n("O6Fj"),S=n.n(C);var w=function({clientId:e}){const[t,n]=Object(o.useState)(""),r=Object(s.useSelect)(t=>t(O.a).getBlock(e),[e]),{updateBlock:c}=Object(s.useDispatch)(O.a);return Object(o.useEffect)(()=>{n(Object(l.getBlockContent)(r))},[r]),Object(o.createElement)(S.a,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const o=Object(l.getBlockType)(r.name);if(!o)return;const i=Object(l.getBlockAttributes)(o,t,r.attributes),a=t||Object(l.getSaveContent)(o,i),s=!t||Object(l.isValidBlockContent)(o,i,a);c(e,{attributes:i,originalContent:a,isValid:s}),t||n({content:a})},onChange:e=>n(e.target.value)})},B=n("nlh6");const I=Object(o.createContext)();function x({children:e,isHtml:t,...n}){return Object(o.createElement)("div",Object(B.a)(n,{__unstableIsHtml:t}),e)}const T=Object(s.withSelect)((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:c,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:l,canRemoveBlock:a,canMoveBlock:s}=e(O.a),u=l(t),d=o(t),b=i(n),p=a(t,n),m=s(t,n),{name:f,attributes:h,isValid:g}=u||{};return{mode:r(t),isSelectionEnabled:c(),isLocked:!!b,canRemove:p,canMove:m,block:u,name:f,attributes:h,isValid:g,isSelected:d}}),P=Object(s.withDispatch)((e,t,{select:n})=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:c,replaceBlocks:i,toggleSelection:a,__unstableMarkLastChangeAsPersistent:s}=e(O.a);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n(O.a),c=r(),{clientId:i}=t,l=c.length?c:[i];o(l,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:c}=t,{getBlockIndex:i}=n(O.a),l=i(o,c);r(e,l+1,c)},onMerge(e){const{clientId:o}=t,{getPreviousBlockClientId:r,getNextBlockClientId:i}=n(O.a);if(e){const e=i(o);e&&c(o,e)}else{const e=r(o);e&&c(e,o)}},onReplace(e,n,o){e.length&&!Object(l.isUnmodifiedDefaultBlock)(e[e.length-1])&&s(),i([t.clientId],e,n,o)},toggleSelection(e){a(e)}}});t.b=Object(u.compose)(u.pure,T,P,Object(u.ifCondition)(({block:e})=>!!e),Object(a.withFilters)("editor.BlockListBlock"))((function({mode:e,isLocked:t,canRemove:n,clientId:r,isSelected:a,isSelectionEnabled:u,className:p,name:m,isValid:f,attributes:h,wrapperProps:g,setAttributes:v,onReplace:k,onInsertBlocksAfter:y,onMerge:C,toggleSelection:S}){const{removeBlock:B}=Object(s.useDispatch)(O.a),T=Object(o.useCallback)(()=>B(r),[r]);let P=Object(o.createElement)(b.a,{name:m,isSelected:a,attributes:h,setAttributes:v,insertBlocksAfter:t?void 0:y,onReplace:n?k:void 0,onRemove:n?T:void 0,mergeBlocks:n?C:void 0,clientId:r,isSelectionEnabled:u,toggleSelection:S});const R=Object(l.getBlockType)(m);null!=R&&R.getEditWrapperProps&&(g=function(e,t){const n={...e,...t};return e&&t&&e.className&&t.className&&(n.className=c()(e.className,t.className)),e&&t&&e.style&&t.style&&(n.style={...e.style,...t.style}),n}(g,R.getEditWrapperProps(h)));const N=g&&!!g["data-align"];let L;if(N&&(P=Object(o.createElement)("div",{className:"wp-block","data-align":g["data-align"]},P)),f)L="html"===e?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{style:{display:"none"}},P),Object(o.createElement)(x,{isHtml:!0},Object(o.createElement)(w,{clientId:r}))):(null==R?void 0:R.apiVersion)>1?P:Object(o.createElement)(x,g,P);else{const e=Object(l.getSaveContent)(R,h);L=Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(j,{clientId:r}),Object(o.createElement)(o.RawHTML,null,Object(d.safeHTML)(e)))}const M={clientId:r,className:p,wrapperProps:Object(i.omit)(g,["data-align"]),isAligned:N},A=Object(o.useMemo)(()=>M,Object.values(M));return Object(o.createElement)(I.Provider,{value:A},Object(o.createElement)(E,{fallback:Object(o.createElement)(x,{className:"has-warning"},Object(o.createElement)(_,null))},L))}))},jTPX: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()}))]}},jrfk:function(e,t){var n,o,r,c,i,l,a,s,u,d,b,p,m,f,h,g=!1;function O(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),O=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),m=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),b=!!/Win64/.exec(e),t){(n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(n=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);l=v?parseFloat(v[1])+4:n,o=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,(c=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=t&&t[1]?parseFloat(t[1]):NaN):i=NaN}else n=o=r=i=c=NaN;if(O){if(O[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);a=!j||parseFloat(j[1].replace("_","."))}else a=!1;s=!!O[2],u=!!O[3]}else a=s=u=!1}}var v={ie:function(){return O()||n},ieCompatibilityMode:function(){return O()||l>n},ie64:function(){return v.ie()&&b},firefox:function(){return O()||o},opera:function(){return O()||r},webkit:function(){return O()||c},safari:function(){return v.webkit()},chrome:function(){return O()||i},windows:function(){return O()||s},osx:function(){return O()||a},linux:function(){return O()||u},iphone:function(){return O()||p},mobile:function(){return O()||p||m||d||h},nativeApp:function(){return O()||f},android:function(){return O()||d},ipad:function(){return O()||m}};e.exports=v},jwne:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("tI+e"),i=(n("Z23Y"),n("c1Zz")),l=n("asom"),a=n("VrEk");function s({__experimentalGroup:t="default",bubblesVirtually:n=!0,label:s,...u}){var d;const b=null===(d=a.a[t])||void 0===d?void 0:d.Slot,p=Object(c.__experimentalUseSlot)(null==b?void 0:b.__unstableName);if(!b||!p)return void 0!==e&&e.env,null;return Boolean(p.fills&&p.fills.length)?s?Object(r.createElement)(i.a,{group:t,label:s},Object(r.createElement)(l.a,Object(o.a)({},u,{bubblesVirtually:n,Slot:b}))):Object(r.createElement)(b,Object(o.a)({},u,{bubblesVirtually:n})):null}}).call(this,n("8oxB"))},kBLm:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("1ZqX"),r=n("K9lf"),c=n("BhPs");function i(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function l(){const e=Object(o.useSelect)(e=>{const{isNavigationMode:t,getSettings:n}=e(c.a);return t()||n().outlineMode},[]);return Object(r.useRefEffect)(t=>{if(e)return t.addEventListener("mouseout",i),t.addEventListener("mouseover",i),()=>{t.removeEventListener("mouseout",i),t.removeEventListener("mouseover",i),t.classList.remove("is-hovered")}},[e])}},kVRd:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("GRId"),r=n("tI+e"),c=n("Tqx9");var i=Object(o.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(c.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"})),l=n("Crq9"),a=n("l3Sj");const s=[{name:Object(a.__)("Underline"),value:"underline",icon:i},{name:Object(a.__)("Strikethrough"),value:"line-through",icon:l.a}];function u({value:e,onChange:t}){return Object(o.createElement)("fieldset",{className:"block-editor-text-decoration-control"},Object(o.createElement)("legend",null,Object(a.__)("Decoration")),Object(o.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},s.map(n=>Object(o.createElement)(r.Button,{key:n.value,icon:n.icon,isSmall:!0,isPressed:n.value===e,onClick:()=>t(n.value===e?void 0:n.value),"aria-label":n.name}))))}},kWXm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));t.a=c},kaUp:function(e,t){},kmrn:function(e,t,n){"use strict";n.d(t,"useSpring",(function(){return he}));var o=n("nEW0");n.d(t,"Globals",(function(){return o.b}));var r=n("cDcd"),c=n("dfZa");n("kaUp"),n("v8Ku");function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function l(e,...t){return o.s.fun(e)?e(...t):e}const a=(e,t)=>!0===e||!!(t&&e&&(o.s.fun(e)?e(t):Object(o.y)(e).includes(t))),s=(e,t)=>o.s.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,d=e=>e,b=(e,t=d)=>{let n=p;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const c of n){const n=t(e[c],c);o.s.und(n)||(r[c]=n)}return r},p=["config","onProps","onStart","onChange","onPause","onResume","onRest"],m={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function f(e){const t=function(e){const t={};let n=0;if(Object(o.l)(e,(e,o)=>{m[o]||(t[o]=e,n++)}),n)return t}(e);if(t){const n={to:t};return Object(o.l)(e,(e,o)=>o in t||(n[o]=e)),n}return i({},e)}function h(e){return e=Object(o.q)(e),o.s.arr(e)?e.map(h):Object(o.t)(e)?o.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function g(e){for(const t in e)return!0;return!1}function O(e){return o.s.fun(e)||o.s.arr(e)&&o.s.obj(e[0])}function v(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function j(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const k=i({},{tension:170,friction:26},{mass:1,damping:1,easing:e=>e,clamp:!1});class _{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,k)}}function y(e,t){if(o.s.und(t.decay)){const n=!o.s.und(t.tension)||!o.s.und(t.friction);!n&&o.s.und(t.frequency)&&o.s.und(t.damping)&&o.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const E=[];class C{constructor(){this.changed=!1,this.values=E,this.toValues=null,this.fromValues=E,this.to=void 0,this.from=void 0,this.config=new _,this.immediate=!1}}function S(e,{key:t,props:n,defaultProps:r,state:c,actions:s}){return new Promise((u,d)=>{var b;let p,m,f=a(null!=(b=n.cancel)?b:null==r?void 0:r.cancel,t);if(f)O();else{o.s.und(n.pause)||(c.paused=a(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=c.paused||a(e,t)),p=l(n.delay||0,t),e?(c.resumeQueue.add(g),s.pause()):(s.resume(),g())}function h(){c.resumeQueue.add(g),c.timeouts.delete(m),m.cancel(),p=m.time-o.w.now()}function g(){p>0?(m=o.w.setTimeout(O,p),c.pauseQueue.add(h),c.timeouts.add(m)):O()}function O(){c.pauseQueue.delete(h),c.timeouts.delete(m),e<=(c.cancelId||0)&&(f=!0);try{s.start(i({},n,{callId:e,cancel:f}),u)}catch(e){d(e)}}})}const w=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?x(e.get()):t.every(e=>e.noop)?B(e.get()):I(e.get(),t.every(e=>e.finished)),B=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),I=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),x=e=>({value:e,cancelled:!0,finished:!1});function T(e,t,n,r){const{callId:c,parentId:l,onRest:a}=t,{asyncTo:s,promise:u}=n;return l||e!==s||t.reset?n.promise=(async()=>{n.asyncId=c,n.asyncTo=e;const d=b(t,(e,t)=>"onRest"===t?void 0:e);let p,m;const f=new Promise((e,t)=>(p=e,m=t)),h=e=>{const t=c<=(n.cancelId||0)&&x(r)||c!==n.asyncId&&I(r,!1);if(t)throw e.result=t,m(e),e},g=(e,t)=>{const l=new R,a=new N;return(async()=>{if(o.b.skipAnimation)throw P(n),a.result=I(r,!1),m(a),a;h(l);const s=o.s.obj(e)?i({},e):i({},t,{to:e});s.parentId=c,Object(o.l)(d,(e,t)=>{o.s.und(s[t])&&(s[t]=e)});const u=await r.start(s);return h(l),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let O;if(o.b.skipAnimation)return P(n),I(r,!1);try{let t;t=o.s.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(p),f]),O=I(r.get(),!0,!1)}catch(e){if(e instanceof R)O=e.result;else{if(!(e instanceof N))throw e;O=e.result}}finally{c==n.asyncId&&(n.asyncId=l,n.asyncTo=l?s:void 0,n.promise=l?u:void 0)}return o.s.fun(a)&&o.w.batchedUpdates(()=>{a(O,r,r.item)}),O})():u}function P(e,t){Object(o.m)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class R extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class N extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const L=e=>e instanceof A;let M=1;class A extends o.a{constructor(...e){super(...e),this.id=M++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Object(c.e)(this);return e&&e.getValue()}to(...e){return o.b.to(this,e)}interpolate(...e){return Object(o.j)(),o.b.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Object(o.d)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||o.o.sort(this),Object(o.d)(this,{type:"priority",parent:this,priority:e})}}const D=Symbol.for("SpringPhase"),F=e=>(1&e[D])>0,z=e=>(2&e[D])>0,H=e=>(4&e[D])>0,V=(e,t)=>t?e[D]|=3:e[D]&=-3,G=(e,t)=>t?e[D]|=4:e[D]&=-5;class U extends A{constructor(e,t){if(super(),this.key=void 0,this.animation=new C,this.queue=void 0,this.defaultProps={},this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!o.s.und(e)||!o.s.und(t)){const n=o.s.obj(e)?i({},e):i({},t,{from:e});o.s.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(z(this)||this._state.asyncTo)||H(this)}get goal(){return Object(o.q)(this.animation.to)}get velocity(){const e=Object(c.e)(this);return e instanceof c.c?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return F(this)}get isAnimating(){return z(this)}get isPaused(){return H(this)}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:l}=r;const a=Object(c.g)(r.to);!a&&Object(o.r)(r.to)&&(l=Object(o.y)(Object(o.q)(r.to))),r.values.forEach((s,u)=>{if(s.done)return;const d=s.constructor==c.b?1:a?a[u].lastPosition:l[u];let b=r.immediate,p=d;if(!b){if(p=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[u],c=null!=s.v0?s.v0:s.v0=o.s.arr(i.velocity)?i.velocity[u]:i.velocity;let l;if(o.s.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,o=Math.exp(-(1-e)*t);p=n+c/(1-e)*(1-o),b=Math.abs(s.lastPosition-p)<.1,l=c*o}else{l=null==s.lastVelocity?c:s.lastVelocity;const t=i.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n))),r=i.restVelocity||t/10,a=i.clamp?0:i.bounce,u=!o.s.und(a),m=n==d?s.v0>0:n<d;let f,h=!1;const g=1,O=Math.ceil(e/g);for(let e=0;e<O&&(f=Math.abs(l)>r,f||(b=Math.abs(d-p)<=t,!b));++e){u&&(h=p==d||p>d==m,h&&(l=-l*a,p=d));l+=(1e-6*-i.tension*(p-d)+.001*-i.friction*l)/i.mass*g,p+=l*g}}else{let o=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),o=(i.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,s.durationProgress=o),p=n+i.easing(o)*(d-n),l=(p-s.lastPosition)/e,b=1==o}s.lastVelocity=l,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),b=!0)}a&&!a[u].done&&(b=!1),b?s.done=!0:t=!1,s.setValue(p,i.round)&&(n=!0)});const s=Object(c.e)(this),u=s.getValue();if(t){const e=Object(o.q)(r.to);u===e&&!n||i.decay?n&&i.decay&&this._onChange(u):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return o.w.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(z(this)){const{to:e,config:t}=this.animation;o.w.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return o.s.und(e)?(n=this.queue||[],this.queue=[]):n=[o.s.obj(e)?e:i({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>w(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),P(this._state,e&&this._lastCallId),o.w.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=o.s.obj(n)?n[t]:n,(null==n||O(n))&&(n=void 0),r=o.s.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return F(this)||(e.reverse&&([n,r]=[r,n]),r=Object(o.q)(r),o.s.und(r)?Object(c.e)(this)||this._set(n):this._set(r)),i}_update(e,t){let n=i({},e);const{key:r,defaultProps:c}=this;n.default&&Object.assign(c,b(n,(e,t)=>/^on/.test(t)?s(e,r):e)),Z(this,n,"onProps"),Q(this,"onProps",n,this);const l=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return S(++this._lastCallId,{key:r,props:n,defaultProps:c,state:a,actions:{pause:()=>{H(this)||(G(this,!0),Object(o.n)(a.pauseQueue),Q(this,"onPause",I(this,W(this,this.animation.to)),this))},resume:()=>{H(this)&&(G(this,!1),z(this)&&this._resume(),Object(o.n)(a.resumeQueue),Q(this,"onResume",I(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,l)}}).then(e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=q(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(x(this));const r=!o.s.und(e.to),s=!o.s.und(e.from);if(r||s){if(!(t.callId>this._lastToId))return n(x(this));this._lastToId=t.callId}const{key:u,defaultProps:d,animation:b}=this,{to:p,from:m}=b;let{to:f=p,from:g=m}=e;!s||r||t.default&&!o.s.und(f)||(f=g),t.reverse&&([f,g]=[g,f]);const v=!Object(o.u)(g,m);v&&(b.from=g),g=Object(o.q)(g);const j=!Object(o.u)(f,p);j&&this._focus(f);const _=O(t.to),{config:E}=b,{decay:C,velocity:S}=E;(r||s)&&(E.velocity=0),t.config&&!_&&function(e,t,n){n&&(y(n=i({},n),t),t=i({},n,t)),y(e,t),Object.assign(e,t);for(const t in k)null==e[t]&&(e[t]=k[t]);let{mass:r,frequency:c,damping:l}=e;o.s.und(c)||(c<.01&&(c=.01),l<0&&(l=0),e.tension=Math.pow(2*Math.PI/c,2)*r,e.friction=4*Math.PI*l*r/c)}(E,l(t.config,u),t.config!==d.config?l(d.config,u):void 0);let w=Object(c.e)(this);if(!w||o.s.und(f))return n(I(this,!0));const P=o.s.und(t.reset)?s&&!t.default:!o.s.und(g)&&a(t.reset,u),R=P?g:this.get(),N=h(f),L=o.s.num(N)||o.s.arr(N)||Object(o.t)(N),M=!_&&(!L||a(d.immediate||t.immediate,u));if(j){const e=Object(c.f)(f);if(e!==w.constructor){if(!M)throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`);w=this._set(N)}}const A=w.constructor;let D=Object(o.r)(f),H=!1;if(!D){const e=P||!F(this)&&v;(j||e)&&(H=Object(o.u)(h(R),N),D=!H),(Object(o.u)(b.immediate,M)||M)&&Object(o.u)(E.decay,C)&&Object(o.u)(E.velocity,S)||(D=!0)}if(H&&z(this)&&(b.changed&&!P?D=!0:D||this._stop(p)),!_&&((D||Object(o.r)(p))&&(b.values=w.getPayload(),b.toValues=Object(o.r)(f)?null:A==c.b?[1]:Object(o.y)(N)),b.immediate!=M&&(b.immediate=M,M||P||this._set(p)),D)){const{onRest:e}=b;Object(o.k)(X,e=>Z(this,t,e));const r=I(this,W(this,p));Object(o.n)(this._pendingCalls,r),this._pendingCalls.add(n),b.changed&&o.w.batchedUpdates(()=>{b.changed=!P,null==e||e(r,this),P?l(d.onRest,r):null==b.onStart||b.onStart(r,this)})}P&&this._set(R),_?n(T(t.to,t,this._state,this)):D?this._start():z(this)&&!j?this._pendingCalls.add(n):n(B(R))}_focus(e){const t=this.animation;e!==t.to&&(Object(o.p)(this)&&this._detach(),t.to=e,Object(o.p)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Object(o.r)(t)&&(Object(o.c)(t,this),L(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Object(o.r)(e)&&Object(o.x)(e,this)}_set(e,t=!0){const n=Object(o.q)(e);if(!o.s.und(n)){const e=Object(c.e)(this);if(!e||!Object(o.u)(n,e.getValue())){const r=Object(c.f)(n);e&&e.constructor==r?e.setValue(n):Object(c.h)(this,r.create(n)),e&&o.w.batchedUpdates(()=>{this._onChange(n,t)})}}return Object(c.e)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Q(this,"onStart",I(this,W(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),l(this.animation.onChange,e,this)),l(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Object(c.e)(this).reset(Object(o.q)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),z(this)||(V(this,!0),H(this)||this._resume())}_resume(){o.b.skipAnimation?this.finish():o.o.start(this)}_stop(e,t){if(z(this)){V(this,!1);const n=this.animation;Object(o.k)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(o.d)(this,{type:"idle",parent:this});const r=t?x(this.get()):I(this.get(),W(this,null!=e?e:n.to));Object(o.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,Q(this,"onRest",r,this))}}}function W(e,t){const n=h(t),r=h(e.get());return Object(o.u)(r,n)}function q(e,t=e.loop,n=e.to){let o=l(t);if(o){const r=!0!==o&&f(o),c=(r||e).reverse,l=!r||r.reset;return K(i({},e,{loop:t,default:!1,pause:void 0,to:!c||O(n)?n:void 0,from:l?e.from:void 0,reset:l},r))}}function K(e){const{to:t,from:n}=e=f(e),r=new Set;return o.s.obj(t)&&Y(t,r),o.s.obj(n)&&Y(n,r),e.keys=r.size?Array.from(r):null,e}function $(e){const t=K(e);return o.s.und(t.default)&&(t.default=b(t)),t}function Y(e,t){Object(o.l)(e,(e,n)=>null!=e&&t.add(n))}const X=["onStart","onRest","onChange","onPause","onResume"];function Z(e,t,n){e.animation[n]=t[n]!==u(t,n)?s(t[n],e.key):void 0}function Q(e,t,...n){var o,r,c,i;null==(o=(r=e.animation)[t])||o.call(r,...n),null==(c=(i=e.defaultProps)[t])||c.call(i,...n)}const J=["onStart","onChange","onRest"];let ee=1;class te{constructor(e,t){this.id=ee++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(i({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];o.s.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(K(e)),this}start(e){let{queue:t}=this;return e?t=Object(o.y)(e).map(K):this.queue=[],this._flush?this._flush(this,t):(le(this,t),ne(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Object(o.k)(Object(o.y)(t),t=>n[t].stop(!!e))}else P(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(o.s.und(e))this.start({pause:!0});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].pause())}return this}resume(e){if(o.s.und(e))this.start({pause:!1});else{const t=this.springs;Object(o.k)(Object(o.y)(e),e=>t[e].resume())}return this}each(e){Object(o.l)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,c=this._changed.size>0;(r&&!this._started||c&&!this._started)&&(this._started=!0,Object(o.m)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const i=!r&&this._started,l=c||i&&n.size?this.get():null;c&&t.size&&Object(o.m)(t,([e,t])=>{t.value=l,e(t,this,this._item)}),i&&(this._started=!1,Object(o.m)(n,([e,t])=>{t.value=l,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}o.w.onFrame(this._onFrame)}}function ne(e,t){return Promise.all(t.map(t=>async function e(t,n,r){const{keys:c,to:i,from:l,loop:a,onRest:s,onResolve:d}=n,b=o.s.obj(n.default)&&n.default;a&&(n.loop=!1);!1===i&&(n.to=null);!1===l&&(n.from=null);const p=o.s.arr(i)||o.s.fun(i)?i:void 0;p?(n.to=void 0,n.onRest=void 0,b&&(b.onRest=void 0)):Object(o.k)(J,e=>{const r=n[e];if(o.s.fun(r)){const o=t._events[e];n[e]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},b&&(b[e]=n[e])}});const m=t._state;n.pause===!m.paused?(m.paused=n.pause,Object(o.n)(n.pause?m.pauseQueue:m.resumeQueue)):m.paused&&(n.pause=!0);const f=(c||Object.keys(t.springs)).map(e=>t.springs[e].start(n)),h=!0===n.cancel||!0===u(n,"cancel");(p||h&&m.asyncId)&&f.push(S(++t._lastAsyncId,{props:n,state:m,actions:{pause:o.v,resume:o.v,start(e,n){h?(P(m,t._lastAsyncId),n(x(t))):(e.onRest=s,n(T(p,e,m,t)))}}}));m.paused&&await new Promise(e=>{m.resumeQueue.add(e)});const g=w(t,await Promise.all(f));if(a&&g.finished&&(!r||!g.noop)){const o=q(n,a,i);if(o)return le(t,[o]),e(t,o,!0)}d&&o.w.batchedUpdates(()=>d(g,t,t.item));return g}(e,t))).then(t=>w(e,t))}function oe(e,t){const n=i({},e.springs);return t&&Object(o.k)(Object(o.y)(t),e=>{o.s.und(e.keys)&&(e=K(e)),o.s.obj(e.to)||(e=i({},e,{to:void 0})),ie(n,e,e=>ce(e))}),re(e,n),n}function re(e,t){Object(o.l)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Object(o.c)(t,e))})}function ce(e,t){const n=new U;return n.key=e,t&&Object(o.c)(n,t),n}function ie(e,t,n){t.keys&&Object(o.k)(t.keys,o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)})}function le(e,t){Object(o.k)(t,t=>{ie(e.springs,t,t=>ce(t,e))})}function ae(e,t){if(null==e)return{};var n,o,r={},c=Object.keys(e);for(o=0;o<c.length;o++)n=c[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}const se=["children"],ue=e=>{let{children:t}=e,n=ae(e,se);const c=Object(r.useContext)(de),i=n.pause||!!c.pause,l=n.immediate||!!c.immediate;n=Object(o.B)(()=>({pause:i,immediate:l}),[i,l]);const{Provider:a}=de;return r.createElement(a,{value:n},t)},de=(be=ue,pe={},Object.assign(be,r.createContext(pe)),be.Provider._context=be,be.Consumer._context=be,be);var be,pe;ue.Provider=de.Provider,ue.Consumer=de.Consumer;const me=()=>{const e=[],t=function(t){Object(o.i)();const r=[];return Object(o.k)(e,(e,c)=>{if(o.s.und(t))r.push(e.start());else{const o=n(t,e,c);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Object(o.k)(e,e=>e.pause(...arguments)),this},t.resume=function(){return Object(o.k)(e,e=>e.resume(...arguments)),this},t.set=function(t){Object(o.k)(e,e=>e.set(t))},t.start=function(t){const n=[];return Object(o.k)(e,(e,r)=>{if(o.s.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}}),n},t.stop=function(){return Object(o.k)(e,e=>e.stop(...arguments)),this},t.update=function(t){return Object(o.k)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return o.s.fun(e)?e(n,t):e};return t._getProps=n,t};function fe(e,t,n){const c=o.s.fun(t)&&t;c&&!n&&(n=[]);const l=Object(r.useMemo)(()=>c||3==arguments.length?me():void 0,[]),a=Object(r.useRef)(0),s=Object(o.z)(),u=Object(r.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const n=oe(e,t);return a.current>0&&!u.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?ne(e,t):new Promise(o=>{re(e,n),u.queue.push(()=>{o(ne(e,t))}),s()})}}),[]),d=Object(r.useRef)([...u.ctrls]),b=[],p=Object(o.D)(e)||0;function m(e,n){for(let o=e;o<n;o++){const e=d.current[o]||(d.current[o]=new te(null,u.flush)),n=c?c(o,e):t[o];n&&(b[o]=$(n))}}Object(r.useMemo)(()=>{Object(o.k)(d.current.slice(e,p),e=>{v(e,l),e.stop(!0)}),d.current.length=e,m(p,e)},[e]),Object(r.useMemo)(()=>{m(0,Math.min(p,e))},n);const f=d.current.map((e,t)=>oe(e,b[t])),h=Object(r.useContext)(ue),O=Object(o.D)(h),k=h!==O&&g(h);Object(o.A)(()=>{a.current++,u.ctrls=d.current;const{queue:e}=u;e.length&&(u.queue=[],Object(o.k)(e,e=>e())),Object(o.k)(d.current,(e,t)=>{null==l||l.add(e),k&&e.start({default:h});const n=b[t];n&&(j(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Object(o.C)(()=>()=>{Object(o.k)(u.ctrls,e=>e.stop(!0))});const _=f.map(e=>i({},e));return l?[_,l]:_}function he(e,t){const n=o.s.fun(e),[[r],c]=fe(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,c]:r}let ge;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(ge||(ge={}));class Oe extends A{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Object(o.f)(...t);const n=this._get(),r=Object(c.f)(n);Object(c.h)(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Object(o.u)(t,n)||(Object(c.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&je(this._active)&&ke(this)}_get(){const e=o.s.arr(this.source)?this.source.map(o.q):Object(o.y)(Object(o.q)(this.source));return this.calc(...e)}_start(){this.idle&&!je(this._active)&&(this.idle=!1,Object(o.k)(Object(c.g)(this),e=>{e.done=!1}),o.b.skipAnimation?(o.w.batchedUpdates(()=>this.advance()),ke(this)):o.o.start(this))}_attach(){let e=1;Object(o.k)(Object(o.y)(this.source),t=>{Object(o.r)(t)&&Object(o.c)(t,this),L(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Object(o.k)(Object(o.y)(this.source),e=>{Object(o.r)(e)&&Object(o.x)(e,this)}),this._active.clear(),ke(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(o.y)(this.source).reduce((e,t)=>Math.max(e,(L(t)?t.priority:0)+1),0))}}function ve(e){return!1!==e.idle}function je(e){return!e.size||Array.from(e).every(ve)}function ke(e){e.idle||(e.idle=!0,Object(o.k)(Object(c.g)(e),e=>{e.done=!0}),Object(o.d)(e,{type:"idle",parent:e}))}o.b.assign({createStringInterpolator:o.g,to:(e,t)=>new Oe(e,t)});o.o.advance},l3Sj:function(e,t){e.exports=window.wp.i18n},lJLt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return c}));var o=n("l3Sj");const r={insertUsage:{}},c={alignWide:!1,supportsLayout:!0,colors:[{name:Object(o.__)("Black"),slug:"black",color:"#000000"},{name:Object(o.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(o.__)("White"),slug:"white",color:"#ffffff"},{name:Object(o.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(o.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(o.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(o.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(o.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(o.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(o.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(o.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(o.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(o._x)("Small","font size name"),size:13,slug:"small"},{name:Object(o._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(o._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(o._x)("Large","font size name"),size:36,slug:"large"},{name:Object(o._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:Object(o.__)("Thumbnail")},{slug:"medium",name:Object(o.__)("Medium")},{slug:"large",name:Object(o.__)("Large")},{slug:"full",name:Object(o.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],__unstableGalleryWithImageBlocks:!1,gradients:[{name:Object(o.__)("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(o.__)("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(o.__)("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(o.__)("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(o.__)("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(o.__)("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(o.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(o.__)("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(o.__)("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(o.__)("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(o.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(o.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]}},mdLt:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e");t.a=function({title:e,icon:t,children:n}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__panel-header"},Object(o.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),Object(o.createElement)(r.Icon,{icon:t})),Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},n))}},mlss:function(e,t,n){"use strict";var o=n("tI+e");const{Fill:r,Slot:c}=Object(o.createSlotFill)("__unstableInserterMenuExtension");r.Slot=c,t.a=r},nEW0:function(e,t,n){"use strict";n.d(t,"w",(function(){return r})),n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return je})),n.d(t,"d",(function(){return ge})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return ue})),n.d(t,"g",(function(){return Ie})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return Le})),n.d(t,"j",(function(){return Re})),n.d(t,"k",(function(){return S})),n.d(t,"l",(function(){return w})),n.d(t,"m",(function(){return I})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return H})),n.d(t,"p",(function(){return he})),n.d(t,"q",(function(){return fe})),n.d(t,"r",(function(){return me})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return Me})),n.d(t,"u",(function(){return C})),n.d(t,"v",(function(){return _})),n.d(t,"x",(function(){return ke})),n.d(t,"y",(function(){return B})),n.d(t,"z",(function(){return Fe})),n.d(t,"A",(function(){return Ge})),n.d(t,"B",(function(){return He})),n.d(t,"C",(function(){return Ae})),n.d(t,"D",(function(){return Ve}));let o=O();const r=e=>m(e,o);let c=O();r.write=e=>m(e,c);let i=O();r.onStart=e=>m(e,i);let l=O();r.onFrame=e=>m(e,l);let a=O();r.onFinish=e=>m(e,a);let s=[];r.setTimeout=(e,t)=>{let n=r.now()+t,o=()=>{let e=s.findIndex(e=>e.cancel==o);~e&&s.splice(e,1),j.count-=~e?1:0},c={time:n,handler:e,cancel:o};return s.splice(u(n),0,c),j.count+=1,f(),c};let u=e=>~(~s.findIndex(t=>t.time>e)||~s.length);r.cancel=e=>{o.delete(e),c.delete(e)},r.sync=e=>{p=!0,r.batchedUpdates(e),p=!1},r.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,r.onStart(n)}return o.handler=e,o.cancel=()=>{i.delete(n),t=null},o};let d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=e=>d=e,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=e=>e(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):g()};let b=-1,p=!1;function m(e,t){p?(t.delete(e),e(0)):(t.add(e),f())}function f(){b<0&&(b=0,"demand"!==r.frameLoop&&d(h))}function h(){~b&&(d(h),r.batchedUpdates(g))}function g(){let e=b;b=r.now();let t=u(b);t&&(v(s.splice(0,t),e=>e.handler()),j.count-=t),i.flush(),o.flush(e?Math.min(64,b-e):16.667),l.flush(),c.flush(),a.flush()}function O(){let e=new Set,t=e;return{add(n){j.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(j.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,j.count-=t.size,v(t,t=>t(n)&&e.add(t)),j.count+=e.size,t=e)}}}function v(e,t){e.forEach(e=>{try{t(e)}catch(e){r.catch(e)}})}const j={count:0,clear(){b=-1,s=[],i=O(),o=O(),l=O(),c=O(),a=O(),j.count=0}};var k=n("cDcd");function _(){}const y=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),E={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function C(e,t){if(E.arr(e)){if(!E.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const S=(e,t)=>e.forEach(t);function w(e,t,n){if(E.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],""+o);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}const B=e=>E.und(e)?[]:E.arr(e)?e:[e];function I(e,t){if(e.size){const n=Array.from(e);e.clear(),S(n,t)}}const x=(e,...t)=>I(e,e=>e(...t));let T,P,R=null,N=!1,L=_;var M=Object.freeze({__proto__:null,get createStringInterpolator(){return T},get to(){return P},get colors(){return R},get skipAnimation(){return N},get willAdvance(){return L},assign:e=>{e.to&&(P=e.to),e.now&&(r.now=e.now),void 0!==e.colors&&(R=e.colors),null!=e.skipAnimation&&(N=e.skipAnimation),e.createStringInterpolator&&(T=e.createStringInterpolator),e.requestAnimationFrame&&r.use(e.requestAnimationFrame),e.batchedUpdates&&(r.batchedUpdates=e.batchedUpdates),e.willAdvance&&(L=e.willAdvance),e.frameLoop&&(r.frameLoop=e.frameLoop)}});const A=new Set;let D=[],F=[],z=0;const H={get idle(){return!A.size&&!D.length},start(e){z>e.priority?(A.add(e),r.onStart(V)):(G(e),r(W))},advance:W,sort(e){if(z)r.onFrame(()=>H.sort(e));else{const t=D.indexOf(e);~t&&(D.splice(t,1),U(e))}},clear(){D=[],A.clear()}};function V(){A.forEach(G),A.clear(),r(W)}function G(e){D.includes(e)||U(e)}function U(e){D.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(D,t=>t.priority>e.priority),0,e)}function W(e){const t=F;for(let n=0;n<D.length;n++){const o=D[n];z=o.priority,o.idle||(L(o),o.advance(e),o.idle||t.push(o))}return z=0,F=D,F.length=0,D=t,D.length>0}const q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},K="[-+]?\\d*\\.?\\d+";function $(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Y=new RegExp("rgb"+$(K,K,K)),X=new RegExp("rgba"+$(K,K,K,K)),Z=new RegExp("hsl"+$(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),Q=new RegExp("hsla"+$(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",K)),J=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ee=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,te=/^#([0-9a-fA-F]{6})$/,ne=/^#([0-9a-fA-F]{8})$/;function oe(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 re(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,c=oe(r,o,e+1/3),i=oe(r,o,e),l=oe(r,o,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*l)<<8}function ce(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ie(e){return(parseFloat(e)%360+360)%360/360}function le(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ae(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function se(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=te.exec(e))?parseInt(t[1]+"ff",16)>>>0:R&&void 0!==R[e]?R[e]:(t=Y.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=X.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|le(t[4]))>>>0:(t=J.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ne.exec(e))?parseInt(t[1],16)>>>0:(t=ee.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z.exec(e))?(255|re(ie(t[1]),ae(t[2]),ae(t[3])))>>>0:(t=Q.exec(e))?(re(ie(t[1]),ae(t[2]),ae(t[3]))|le(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const ue=(e,t,n)=>{if(E.fun(e))return e;if(E.arr(e))return ue({range:e,output:t,extrapolate:n});if(E.str(e.output[0]))return T(e);const o=e,r=o.output,c=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",a=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,c);return function(e,t,n,o,r,c,i,l,a){let s=a?a(e):e;if(s<t){if("identity"===i)return s;"clamp"===i&&(s=t)}if(s>n){if("identity"===l)return s;"clamp"===l&&(s=n)}if(o===r)return o;if(t===n)return e<=t?o:r;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),o===-1/0?s=-s:r===1/0?s+=o:s=s*(r-o)+o;return s}(e,c[t],c[t+1],r[t],r[t+1],a,i,l,o.map)}};function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}const be=Symbol.for("FluidValue.get"),pe=Symbol.for("FluidValue.observers"),me=e=>Boolean(e&&e[be]),fe=e=>e&&e[be]?e[be]():e,he=e=>e[pe]||null;function ge(e,t){let n=e[pe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class Oe{constructor(e){if(this[be]=void 0,this[pe]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ve(this,e)}}const ve=(e,t)=>_e(e,be,t);function je(e,t){if(e[be]){let n=e[pe];n||_e(e,pe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ke(e,t){let n=e[pe];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[pe]=null,e.observerRemoved&&e.observerRemoved(o,t)}}const _e=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ye=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ee=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ce=new RegExp(`(${ye.source})(%|[a-z]+)`,"i");let Se;const we=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Be=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,Ie=e=>{Se||(Se=R?new RegExp(`(${Object.keys(R).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>fe(e).replace(Ee,se).replace(Se,se)),n=t.map(e=>e.match(ye).map(Number)),o=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ue(de({},e,{output:t})));return e=>{var n;const r=!Ce.test(t[0])&&(null==(n=t.find(e=>Ce.test(e)))?void 0:n.replace(ye,""));let c=0;return t[0].replace(ye,()=>`${o[c++](e)}${r||""}`).replace(we,Be)}},xe="react-spring: ",Te=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(xe+"once requires a function parameter");return(...e)=>{n||(t(...e),n=!0)}},Pe=Te(console.warn);function Re(){Pe(xe+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const Ne=Te(console.warn);function Le(){Ne(xe+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function Me(e){return E.str(e)&&("#"==e[0]||/\d/.test(e)||e in(R||{}))}const Ae=e=>Object(k.useEffect)(e,De),De=[];function Fe(){const e=Object(k.useState)()[1],t=Object(k.useState)(ze)[0];return Ae(t.unmount),()=>{t.current&&e({})}}function ze(){const e={current:!0,unmount:()=>()=>{e.current=!1}};return e}function He(e,t){const[n]=Object(k.useState)(()=>({inputs:t,result:e()})),o=Object(k.useRef)(),r=o.current;let c=r;if(c){Boolean(t&&c.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,c.inputs))||(c={inputs:t,result:e()})}else c=n;return Object(k.useEffect)(()=>{o.current=c,r==n&&(n.inputs=n.result=void 0)},[c]),c.result}function Ve(e){const t=Object(k.useRef)();return Object(k.useEffect)(()=>{t.current=e}),t.current}const Ge="undefined"!=typeof window&&window.document&&window.document.createElement?k.useLayoutEffect:k.useEffect},nQUx:function(e,t,n){"use strict";var o=n("YLtl"),r=n("GRId"),c=n("HSyU"),i=n("1ZqX"),l=n("l3Sj"),a=n("onLe"),s=n("BhPs");t.a=(e,t)=>{const{patternCategories:n,patterns:u}=Object(i.useSelect)(e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(s.a);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}},[t]),{createSuccessNotice:d}=Object(i.useDispatch)(a.store);return[u,n,Object(r.useCallback)((t,n)=>{e(Object(o.map)(n,e=>Object(c.cloneBlock)(e)),t.name),d(Object(l.sprintf)(Object(l.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar"})},[])]}},nlh6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w}));var o=n("TSYQ"),r=n.n(o),c=n("GRId"),i=n("l3Sj"),l=n("HSyU"),a=n("K9lf"),s=n("1ZqX"),u=(n("Z23Y"),n("Xkls")),d=n("jBNB"),b=n("z+q2"),p=n("kBLm"),m=n("ur0x"),f=n("Q2Xw"),h=n("YZt4"),g=n("ERVc"),O=n("+6d5"),v=n("6jxZ"),j=n("felP"),k=n("JDWi"),_=n("G4zt"),y=n("PKbb"),E=n("hw9B"),C=n("rHRV"),S=n("BhPs");function w(t={},{__unstableIsHtml:n}={}){const{clientId:o,className:w,wrapperProps:B={},isAligned:I}=Object(c.useContext)(d.a),{index:x,mode:T,name:P,blockApiVersion:R,blockTitle:N,isPartOfSelection:L,adjustScrolling:M,enableAnimation:A}=Object(s.useSelect)(e=>{const{getBlockRootClientId:t,getBlockIndex:n,getBlockMode:r,getBlockName:c,isTyping:i,getGlobalBlockCount:a,isBlockSelected:s,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:b}=e(S.a),p=s(o),m=u(o)||d(o),f=c(o),h=t(o),g=Object(l.getBlockType)(f);return{index:n(o,h),mode:r(o),name:f,blockApiVersion:(null==g?void 0:g.apiVersion)||1,blockTitle:null==g?void 0:g.title,isPartOfSelection:p||m,adjustScrolling:p||b(o),enableAnimation:!i()&&a()<=200}},[o]),D=Object(i.sprintf)(Object(i.__)("Block: %s"),N),F="html"!==T||n?"":"-visual",z=Object(a.useMergeRefs)([t.ref,Object(b.a)(o),Object(_.a)(o),Object(y.c)(o),Object(v.a)(o),Object(E.a)(o),Object(j.a)(o),Object(k.a)(o),Object(p.a)(),Object(C.a)(),Object(u.a)({isSelected:L,adjustScrolling:M,enableAnimation:A,triggerAnimationOnChange:x})]),H=Object(m.c)();return R<2&&o===H.clientId&&void 0!==e&&e.env,{...B,...t,ref:z,id:`block-${o}${F}`,tabIndex:0,role:"document","aria-label":D,"data-block":o,"data-type":P,"data-title":N,className:r()(r()("block-editor-block-list__block",{"wp-block":!I}),w,t.className,B.className,Object(f.a)(o),Object(h.a)(o),Object(g.a)(o),Object(O.a)(o)),style:{...B.style,...t.style}}}w.save=l.__unstableGetBlockProps}).call(this,n("8oxB"))},o97j:function(e,t,n){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen,isInWorker:!o};e.exports=r},onLe:function(e,t){e.exports=window.wp.notices},p3NJ:function(e,t,n){"use strict";n.d(t,"b",(function(){return P}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("K9lf"),a=n("1ZqX"),s=n("HSyU"),u=n("I5Hl"),d=n("ur0x");var b=Object(l.createHigherOrderComponent)(e=>t=>{const{clientId:n}=Object(d.c)();return Object(r.createElement)(e,Object(o.a)({},t,{clientId:n}))},"withClientId");var p=b(({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o,isToggle:c})=>Object(r.createElement)(u.b,{className:i()({"block-list-appender__toggle":c}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})),m=n("YLtl"),f=n("5L8O"),h=n("BhPs");var g=Object(l.compose)([b,Object(a.withSelect)((e,{clientId:t})=>{const{getBlockOrder:n}=e(h.a),o=n(t);return{lastBlockClientId:Object(m.last)(o)}})])(({clientId:e,lastBlockClientId:t})=>Object(r.createElement)(f.a,{rootClientId:e,lastBlockClientId:t})),O=n("rl8x"),v=n.n(O),j=n("PPMp");const k=new WeakMap;var _=n("VyCT"),y=n("uoCR"),E=n("JGYp"),C=n("l3Sj"),S=n("/lNF"),w=n("vIlp");function B({rootClientId:e=""}={}){const[t,n]=Object(r.useState)(null),o=Object(a.useSelect)(t=>{const{getTemplateLock:n}=t(h.a);return"all"===n(e)},[e]),{getBlockListSettings:c}=Object(a.useSelect)(h.a),{showInsertionPoint:i,hideInsertionPoint:s}=Object(a.useDispatch)(h.a),u=Object(S.a)(e,t),d=Object(l.useThrottle)(Object(r.useCallback)((t,o)=>{var r;const l=function(e,t,n){const o="horizontal"===n?["left","right"]:["top","bottom"],r=Object(C.isRTL)();let c,i;return e.forEach((e,n)=>{const l=e.getBoundingClientRect(),[a,s]=Object(w.a)(t,l,o);if(void 0===i||a<i){i=a,c=n+("bottom"===s||!r&&"right"===s||r&&"left"===s?1:0)}}),c}(Array.from(o.children).filter(e=>e.classList.contains("wp-block")),{x:t.clientX,y:t.clientY},null===(r=c(e))||void 0===r?void 0:r.orientation);n(void 0===l?0:l),null!==l&&i(e,l)},[]),200);return Object(l.__experimentalUseDropZone)({isDisabled:o,onDrop:u,onDragOver(e){d(e,e.currentTarget)},onDragLeave(){d.cancel(),s(),n(null)},onDragEnd(){d.cancel(),s(),n(null)}})}function I(e){const{clientId:t,allowedBlocks:n,__experimentalDefaultBlock:o,__experimentalDirectInsert:c,template:i,templateLock:l,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:b,__experimentalAppenderTagName:p,renderAppender:f,orientation:g,placeholder:O,__experimentalLayout:E}=e;!function(e,t,n,o,c,i,l,s){const{updateBlockListSettings:u}=Object(a.useDispatch)(h.a),{blockListSettings:d,parentLock:b}=Object(a.useSelect)(t=>{const n=t(h.a).getBlockRootClientId(e);return{blockListSettings:t(h.a).getBlockListSettings(e),parentLock:t(h.a).getTemplateLock(n)}},[e]),p=Object(r.useMemo)(()=>t,t);Object(r.useLayoutEffect)(()=>{const t={allowedBlocks:p,templateLock:void 0===c?b:c};if(void 0!==i&&(t.__experimentalCaptureToolbars=i),void 0!==l)t.orientation=l;else{const e=Object(j.a)(null==s?void 0:s.type);t.orientation=e.getOrientation(s)}void 0!==n&&(t.__experimentalDefaultBlock=n),void 0!==o&&(t.__experimentalDirectInsert=o),v()(d,t)||u(e,t)},[e,d,p,n,o,c,b,i,l,u,s])}(t,n,o,c,l,b,g,E),function(e,t,n,o){const{getSelectedBlocksInitialCaretPosition:c}=Object(a.useSelect)(h.a),{replaceInnerBlocks:i}=Object(a.useDispatch)(h.a),l=Object(a.useSelect)(t=>t(h.a).getBlocks(e),[e]),u=Object(r.useRef)(null);Object(r.useLayoutEffect)(()=>{if(0===l.length||"all"===n){if(!Object(m.isEqual)(t,u.current)){u.current=t;const n=Object(s.synchronizeBlocksWithTemplate)(l,t);Object(m.isEqual)(n,l)||i(e,n,0===l.length&&o&&0!==n.length,c())}}},[l,t,n,e])}(t,i,l,d);const C=Object(a.useSelect)(e=>{const n=e(h.a).getBlock(t),o=Object(s.getBlockType)(n.name);if(o&&o.providesContext)return function(e,t){k.has(t)||k.set(t,new WeakMap);const n=k.get(t);if(!n.has(e)){const o=Object(m.mapValues)(t.providesContext,t=>e[t]);n.set(e,o)}return n.get(e)}(n.attributes,o)},[t]);return Object(r.createElement)(y.a,{value:C},Object(r.createElement)(_.a,{rootClientId:t,renderAppender:f,__experimentalAppenderTagName:p,__experimentalLayout:E,wrapperRef:u,placeholder:O}))}function x(e){return Object(E.a)(e),Object(r.createElement)(I,e)}const T=Object(r.forwardRef)((e,t)=>{const n=P({ref:t},e);return Object(r.createElement)("div",{className:"block-editor-inner-blocks"},Object(r.createElement)("div",n))});function P(e={},t={}){const{clientId:n}=Object(d.c)(),c=Object(l.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:u,hasOverlay:b}=Object(a.useSelect)(e=>{if(!n)return{};const{getBlockName:t,isBlockSelected:o,hasSelectedInnerBlock:r,isNavigationMode:i}=e(h.a),l=t(n),a=i()||c;return{__experimentalCaptureToolbars:e(s.store).hasBlockSupport(l,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==l&&!o(n)&&!r(n,!0)&&a}},[n,c]),p=Object(l.useMergeRefs)([e.ref,B({rootClientId:n})]),m={__experimentalCaptureToolbars:u,...t},f=m.value&&m.onChange?x:I;return{...e,ref:p,className:i()(e.className,"block-editor-block-list__layout",{"has-overlay":b}),children:n?Object(r.createElement)(f,Object(o.a)({},m,{clientId:n})):Object(r.createElement)(_.a,t)}}P.save=s.__unstableGetInnerBlocksProps,T.DefaultBlockAppender=g,T.ButtonBlockAppender=p,T.Content=()=>P.save().children;t.a=T},pOGT:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return p}));var o=n("YLtl");const r=e=>e.name||"",c=e=>e.title,i=e=>e.description||"",l=e=>e.keywords||[],a=e=>e.category,s=()=>null;function u(e=""){return e=(e=(e=Object(o.deburr)(e)).replace(/^\//,"")).toLowerCase()}const d=(e="")=>Object(o.words)(u(e)),b=(e,t,n,r)=>{if(0===d(r).length)return e;return p(e,r,{getCategory:e=>{var n;return null===(n=Object(o.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:e=>{var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title}})},p=(e=[],t="",n={})=>{if(0===d(t).length)return e;const o=e.map(e=>[e,m(e,t,n)]).filter(([,e])=>e>0);return o.sort(([,e],[,t])=>t-e),o.map(([e])=>e)};function m(e,t,n={}){const{getName:b=r,getTitle:p=c,getDescription:m=i,getKeywords:f=l,getCategory:h=a,getCollection:g=s}=n,O=b(e),v=p(e),j=m(e),k=f(e),_=h(e),y=g(e),E=u(t),C=u(v);let S=0;if(E===C)S+=30;else if(C.startsWith(E))S+=20;else{const e=[O,v,j,...k,_,y].join(" ");0===((e,t)=>Object(o.differenceWith)(e,d(t),(e,t)=>t.includes(e)))(Object(o.words)(E),e).length&&(S+=10)}return 0!==S&&O.startsWith("core/")&&S++,S}},pPDe:function(e,t,n){"use strict";var o,r;function c(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function l(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}o={},r="undefined"!=typeof WeakMap,t.a=function(e,t){var n,a;function s(){n=r?new WeakMap:i()}function u(){var n,o,r,c,i,s=arguments.length;for(c=new Array(s),r=0;r<s;r++)c[r]=arguments[r];for(i=t.apply(null,c),(n=a(i)).isUniqueByDependants||(n.lastDependants&&!l(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),o=n.head;o;){if(l(o.args,c,1))return o!==n.head&&(o.prev.next=o.next,o.next&&(o.next.prev=o.prev),o.next=n.head,o.prev=null,n.head.prev=o,n.head=o),o.val;o=o.next}return o={val:e.apply(null,c)},c[0]=null,o.args=c,n.head&&(n.head.prev=o,o.next=n.head),n.head=o,o.val}return t||(t=c),a=r?function(e){var t,r,c,l,a,s=n,u=!0;for(t=0;t<e.length;t++){if(r=e[t],!(a=r)||"object"!=typeof a){u=!1;break}s.has(r)?s=s.get(r):(c=new WeakMap,s.set(r,c),s=c)}return s.has(o)||((l=i()).isUniqueByDependants=u,s.set(o,l)),s.get(o)}:function(){return n},u.getDependants=t,u.clear=s,s(),u}},pXCJ:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),i=n("tI+e"),l=n("1ZqX"),a=n("HSyU"),s=n("BhPs");var u=n("l3Sj");function d({clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:c,onClose:d=(()=>{})}){const{replaceBlocks:b}=Object(l.useDispatch)(s.a);return t||n?Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(i.MenuItem,{onClick:()=>{(()=>{const t=Object(a.switchToBlockType)(o,c);t&&b(e,t)})(),d()}},Object(u._x)("Group","verb")),n&&Object(r.createElement)(i.MenuItem,{onClick:()=>{(()=>{const t=o[0].innerBlocks;t.length&&b(e,t)})(),d()}},Object(u._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor "))):null}const{Fill:b,Slot:p}=Object(i.createSlotFill)("BlockSettingsMenuControls");function m({...e}){return Object(r.createElement)(i.__experimentalStyleProvider,{document:document},Object(r.createElement)(b,e))}m.Slot=({fillProps:e,clientIds:t=null})=>{const{selectedBlocks:n,selectedClientIds:u}=Object(l.useSelect)(e=>{const{getBlocksByClientId:n,getSelectedBlockClientIds:o}=e(s.a),r=null!==t?t:o();return{selectedBlocks:Object(c.map)(Object(c.compact)(n(r)),e=>e.name),selectedClientIds:r}},[t]),b=function(){const{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}=Object(l.useSelect)(e=>{var t;const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:c}=e(s.a),{getGroupingBlockName:i}=e(a.store),l=c(),u=i(),d=r(u,null!=l&&l.length?n(l[0]):void 0),b=o(l),p=1===b.length&&(null===(t=b[0])||void 0===t?void 0:t.name)===u;return{clientIds:l,isGroupable:d&&b.length&&!p,isUngroupable:p&&!!b[0].innerBlocks.length,blocksSelection:b,groupingBlockName:u}},[]);return{clientIds:e,isGroupable:t,isUngroupable:n,blocksSelection:o,groupingBlockName:r}}(),{isGroupable:m,isUngroupable:f}=b,h=m||f;return Object(r.createElement)(p,{fillProps:{...e,selectedBlocks:n,selectedClientIds:u}},t=>{if((null==t?void 0:t.length)>0||h)return Object(r.createElement)(i.MenuGroup,null,t,Object(r.createElement)(d,Object(o.a)({},b,{onClose:null==e?void 0:e.onClose})))})};t.a=m},plpT:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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},q3tz:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("GRId"),r=n("l3Sj"),c=n("tI+e"),i=n("xN+R"),l=n("7SSY");function a({count:e,icon:t}){return Object(o.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(o.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(o.createElement)(c.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(o.createElement)(c.FlexItem,null,t?Object(o.createElement)(l.a,{icon:t}):Object(r.sprintf)(Object(r._n)("%d block","%d blocks",e),e)),Object(o.createElement)(c.FlexItem,null,Object(o.createElement)(l.a,{icon:i.a})))))}},qRz9:function(e,t){e.exports=window.wp.richText},qrxh:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("YLtl"),i=n("TSYQ"),l=n.n(i),a=n("gdqT"),s=n("l3Sj"),u=n("tI+e"),d=n("1ZqX"),b=n("K9lf"),p=n("HSyU"),m=n("Q4Sy"),f=n("xZzQ"),h=n("Wg7J"),g=n("AORF"),O=n("nQUx"),v=n("+G0a"),j=n("BhPs");function k({onSelect:e,rootClientId:t,clientId:n,isAppender:o}){const[c,i]=Object(r.useState)(""),[a,b]=Object(g.a)({onSelect:e,rootClientId:t,clientId:n,isAppender:o}),[p]=Object(v.a)(a,b),[m]=Object(O.a)(b,a),f=m.length&&!!c,k=f&&m.length>6||p.length>6,{setInserterIsOpened:_,insertionIndex:y}=Object(d.useSelect)(e=>{const{getSettings:o,getBlockIndex:r,getBlockCount:c}=e(j.a),i=r(n,t);return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,insertionIndex:-1===i?c():i}},[n,t]);Object(r.useEffect)(()=>{_&&_(!1)},[_]);return Object(r.createElement)("div",{className:l()("block-editor-inserter__quick-inserter",{"has-search":k,"has-expand":_})},k&&Object(r.createElement)(u.SearchControl,{className:"block-editor-inserter__search",value:c,onChange:e=>{i(e)},label:Object(s.__)("Search for blocks and patterns"),placeholder:Object(s.__)("Search")}),Object(r.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},Object(r.createElement)(h.a,{filterValue:c,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:f?2:0,maxBlockTypes:6,isDraggable:!1})),_&&Object(r.createElement)(u.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{_({rootClientId:t,insertionIndex:y,filterValue:c})},"aria-label":Object(s.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(s.__)("Browse all")))}const _=({onToggle:e,disabled:t,isOpen:n,blockTitle:c,hasSingleBlockType:i,toggleProps:l={}})=>{let a;a=i?Object(s.sprintf)(Object(s._x)("Add %s","directly add the only allowed block"),c):Object(s._x)("Add block","Generic label for block inserter button");const{onClick:d,...b}=l;return Object(r.createElement)(u.Button,Object(o.a)({icon:m.a,label:a,tooltipPosition:"bottom",onClick:function(t){e&&e(t),d&&d(t)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&n,disabled:t},b))};class y extends r.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:c,toggleProps:i,hasItems:l,renderToggle:a=_}=this.props;return a({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,directInsertBlock:c,toggleProps:i})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:c,__experimentalIsQuick:i}=this.props;return i?Object(r.createElement)(k,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o}):Object(r.createElement)(f.a,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:c})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:c,onSelectOrClose:i}=this.props;return t||null!=n&&n.length?this.renderToggle({onToggle:o}):Object(r.createElement)(u.Dropdown,{className:"block-editor-inserter",contentClassName:l()("block-editor-inserter__popover",{"is-quick":c}),position:e,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(s.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}t.a=Object(b.compose)([Object(d.withSelect)((e,{clientId:t,rootClientId:n})=>{const{getBlockRootClientId:o,hasInserterItems:r,__experimentalGetAllowedBlocks:i,__experimentalGetDirectInsertBlock:l}=e(j.a),{getBlockVariations:a}=e(p.store),s=i(n=n||o(t)||void 0),u=l(n),d=1===Object(c.size)(s)&&0===Object(c.size)(a(s[0].name,"inserter"));let b=!1;return d&&(b=s[0]),{hasItems:r(n),hasSingleBlockType:d,blockTitle:b?b.title:"",allowedBlockType:b,directInsertBlock:u,rootClientId:n}}),Object(d.withDispatch)((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:c,hasSingleBlockType:i,allowedBlockType:l,directInsertBlock:u,onSelectOrClose:d}=t;if(!(i||null!=u&&u.length))return;const{insertBlock:b}=e(j.a);b(null!=u&&u.length?Object(p.createBlock)(...u):Object(p.createBlock)(l.name),function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:l}=n(j.a);if(r)return e(r,o);const a=t();return!c&&a&&l(a)===o?e(a,o)+1:i(o).length}(),o),d&&d();const m=Object(s.sprintf)(Object(s.__)("%s block added"),l.title);Object(a.speak)(m)}})),Object(b.ifCondition)(({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o)])(y)},rH4q:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=c},rHRV:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("K9lf"),r=n("GRId"),c=n("VyCT");function i(){const e=Object(r.useContext)(c.b);return Object(o.useRefEffect)(t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}},[e])}},rl8x:function(e,t){e.exports=window.wp.isShallowEqual},rmEH:function(e,t){e.exports=window.wp.htmlEntities},smQA:function(e,t,n){"use strict";function o(){}function r(e,t,n,o,r){for(var c=0,i=t.length,l=0,a=0;c<i;c++){var s=t[c];if(s.removed){if(s.value=e.join(o.slice(a,a+s.count)),a+=s.count,c&&t[c-1].added){var u=t[c-1];t[c-1]=t[c],t[c]=u}}else{if(!s.added&&r){var d=n.slice(l,l+s.count);d=d.map((function(e,t){var n=o[a+t];return n.length>e.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(a+=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=o,o.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function l(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=a+s,b=[{newPos:-1,components:[]}],p=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=a&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function m(){for(var n=-1*u;n<=u;n+=2){var o=void 0,d=b[n-1],p=b[n+1],m=(p?p.newPos:0)-n;d&&(b[n-1]=void 0);var f=d&&d.newPos+1<a,h=p&&0<=m&&m<s;if(f||h){if(!f||h&&d.newPos<p.newPos?(o=c(p),i.pushComponent(o.components,void 0,!0)):((o=d).newPos++,i.pushComponent(o.components,!0,void 0)),m=i.extractCommon(o,t,e,n),o.newPos+1>=a&&m+1>=s)return l(r(i,o.components,t,e,i.useLongestToken));b[n]=o}else b[n]=void 0}u++}if(o)!function e(){setTimeout((function(){if(u>d)return o();m()||e()}),0)}();else for(;u<=d;){var f=m();if(f)return f}},pushComponent:function(e,t,n){var o=e[e.length-1];o&&o.added===t&&o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,c=n.length,i=e.newPos,l=i-o,a=0;i+1<r&&l+1<c&&this.equals(t[i+1],n[l+1]);)i++,l++,a++;return a&&e.components.push({count:a}),e.newPos=i,l},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("")}}},suLj:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));t.a=c},"tI+e":function(e,t){e.exports=window.wp.components},tr0p:function(e,t,n){"use strict";n.r(t),n.d(t,"__experimentalGetBorderClassesAndStyles",(function(){return St})),n.d(t,"__experimentalUseBorderProps",(function(){return wt})),n.d(t,"__experimentalGetColorClassesAndStyles",(function(){return It})),n.d(t,"__experimentalUseColorProps",(function(){return xt})),n.d(t,"__experimentalUseCustomSides",(function(){return Xe})),n.d(t,"__experimentalGetSpacingClassesAndStyles",(function(){return Tt})),n.d(t,"useCachedTruthy",(function(){return Pt})),n.d(t,"getColorClassName",(function(){return Rt.gc})),n.d(t,"getColorObjectByAttributeValues",(function(){return Rt.hc})),n.d(t,"getColorObjectByColorValue",(function(){return Rt.ic})),n.d(t,"createCustomColorsHOC",(function(){return Rt.fc})),n.d(t,"withColors",(function(){return Rt.uc})),n.d(t,"__experimentalGetGradientClass",(function(){return Rt.xb})),n.d(t,"getGradientValueBySlug",(function(){return Rt.nc})),n.d(t,"__experimentalGetGradientObjectByGradientValue",(function(){return Rt.yb})),n.d(t,"getGradientSlugByValue",(function(){return Rt.mc})),n.d(t,"__experimentalUseGradient",(function(){return Rt.Rb})),n.d(t,"getFontSize",(function(){return Rt.jc})),n.d(t,"getFontSizeClass",(function(){return Rt.kc})),n.d(t,"getFontSizeObjectByValue",(function(){return Rt.lc})),n.d(t,"FontSizePicker",(function(){return Rt.I})),n.d(t,"withFontSizes",(function(){return Rt.vc})),n.d(t,"AlignmentControl",(function(){return Rt.a})),n.d(t,"AlignmentToolbar",(function(){return Rt.b})),n.d(t,"Autocomplete",(function(){return Rt.c})),n.d(t,"BlockAlignmentControl",(function(){return Rt.d})),n.d(t,"BlockAlignmentToolbar",(function(){return Rt.e})),n.d(t,"__experimentalBlockFullHeightAligmentControl",(function(){return Rt.nb})),n.d(t,"__experimentalBlockAlignmentMatrixControl",(function(){return Rt.lb})),n.d(t,"BlockBreadcrumb",(function(){return Rt.f})),n.d(t,"__experimentalBlockContentOverlay",(function(){return Rt.mb})),n.d(t,"BlockContextProvider",(function(){return Rt.h})),n.d(t,"BlockControls",(function(){return Rt.i})),n.d(t,"BlockFormatControls",(function(){return Rt.m})),n.d(t,"BlockColorsStyleSelector",(function(){return Rt.g})),n.d(t,"BlockEdit",(function(){return Rt.j})),n.d(t,"useBlockEditContext",(function(){return Rt.pc})),n.d(t,"BlockIcon",(function(){return Rt.n})),n.d(t,"BlockNavigationDropdown",(function(){return Rt.r})),n.d(t,"__experimentalBlockVariationPicker",(function(){return Rt.pb})),n.d(t,"__experimentalBlockPatternSetup",(function(){return Rt.ob})),n.d(t,"__experimentalBlockVariationTransforms",(function(){return Rt.qb})),n.d(t,"BlockVerticalAlignmentToolbar",(function(){return Rt.A})),n.d(t,"BlockVerticalAlignmentControl",(function(){return Rt.z})),n.d(t,"__experimentalBorderRadiusControl",(function(){return Rt.rb})),n.d(t,"__experimentalBorderStyleControl",(function(){return Rt.sb})),n.d(t,"ButtonBlockerAppender",(function(){return Rt.C})),n.d(t,"ButtonBlockAppender",(function(){return Rt.B})),n.d(t,"ColorPalette",(function(){return Rt.D})),n.d(t,"ColorPaletteControl",(function(){return Rt.E})),n.d(t,"ContrastChecker",(function(){return Rt.F})),n.d(t,"__experimentalDuotoneControl",(function(){return Rt.ub})),n.d(t,"__experimentalFontAppearanceControl",(function(){return Rt.vb})),n.d(t,"__experimentalFontFamilyControl",(function(){return Rt.wb})),n.d(t,"__experimentalLetterSpacingControl",(function(){return Rt.Eb})),n.d(t,"__experimentalTextDecorationControl",(function(){return Rt.Ob})),n.d(t,"__experimentalTextTransformControl",(function(){return Rt.Pb})),n.d(t,"__experimentalColorGradientControl",(function(){return Rt.tb})),n.d(t,"__experimentalPanelColorGradientSettings",(function(){return Rt.Lb})),n.d(t,"__experimentalImageEditor",(function(){return Rt.Ab})),n.d(t,"__experimentalImageEditingProvider",(function(){return Rt.zb})),n.d(t,"__experimentalImageSizeControl",(function(){return Rt.Bb})),n.d(t,"InnerBlocks",(function(){return Rt.J})),n.d(t,"useInnerBlocksProps",(function(){return Rt.rc})),n.d(t,"InspectorControls",(function(){return Rt.M})),n.d(t,"InspectorAdvancedControls",(function(){return Rt.L})),n.d(t,"JustifyToolbar",(function(){return Rt.O})),n.d(t,"JustifyContentControl",(function(){return Rt.N})),n.d(t,"__experimentalLinkControl",(function(){return Rt.Gb})),n.d(t,"__experimentalLinkControlSearchInput",(function(){return Rt.Hb})),n.d(t,"__experimentalLinkControlSearchResults",(function(){return Rt.Jb})),n.d(t,"__experimentalLinkControlSearchItem",(function(){return Rt.Ib})),n.d(t,"LineHeightControl",(function(){return Rt.P})),n.d(t,"__experimentalListView",(function(){return Rt.Kb})),n.d(t,"MediaReplaceFlow",(function(){return Rt.R})),n.d(t,"MediaPlaceholder",(function(){return Rt.Q})),n.d(t,"MediaUpload",(function(){return Rt.S})),n.d(t,"MediaUploadCheck",(function(){return Rt.T})),n.d(t,"PanelColorSettings",(function(){return Rt.X})),n.d(t,"PlainText",(function(){return Rt.Y})),n.d(t,"__experimentalResponsiveBlockControl",(function(){return Rt.Nb})),n.d(t,"RichText",(function(){return Rt.ab})),n.d(t,"RichTextShortcut",(function(){return Rt.bb})),n.d(t,"RichTextToolbarButton",(function(){return Rt.cb})),n.d(t,"__unstableRichTextInputEvent",(function(){return Rt.Yb})),n.d(t,"ToolSelector",(function(){return Rt.eb})),n.d(t,"__experimentalUnitControl",(function(){return Rt.Qb})),n.d(t,"URLInput",(function(){return Rt.gb})),n.d(t,"URLInputButton",(function(){return Rt.hb})),n.d(t,"URLPopover",(function(){return Rt.ib})),n.d(t,"__experimentalImageURLInputUI",(function(){return Rt.Cb})),n.d(t,"withColorContext",(function(){return Rt.tc})),n.d(t,"__unstableBlockSettingsMenuFirstItem",(function(){return Rt.Ub})),n.d(t,"__unstableInserterMenuExtension",(function(){return Rt.Xb})),n.d(t,"__experimentalPreviewOptions",(function(){return Rt.Mb})),n.d(t,"__experimentalUseResizeCanvas",(function(){return Rt.Tb})),n.d(t,"BlockInspector",(function(){return Rt.o})),n.d(t,"BlockList",(function(){return Rt.p})),n.d(t,"useBlockProps",(function(){return Rt.qc})),n.d(t,"__experimentalLayoutStyle",(function(){return Rt.Db})),n.d(t,"BlockMover",(function(){return Rt.q})),n.d(t,"BlockPreview",(function(){return Rt.s})),n.d(t,"BlockSelectionClearer",(function(){return Rt.t})),n.d(t,"__unstableUseBlockSelectionClearer",(function(){return Rt.Zb})),n.d(t,"BlockSettingsMenu",(function(){return Rt.u})),n.d(t,"BlockSettingsMenuControls",(function(){return Rt.v})),n.d(t,"BlockTitle",(function(){return Rt.w})),n.d(t,"BlockToolbar",(function(){return Rt.x})),n.d(t,"BlockTools",(function(){return Rt.y})),n.d(t,"CopyHandler",(function(){return Rt.G})),n.d(t,"__unstableUseClipboardHandler",(function(){return Rt.bc})),n.d(t,"DefaultBlockAppender",(function(){return Rt.H})),n.d(t,"__unstableEditorStyles",(function(){return Rt.Vb})),n.d(t,"Inserter",(function(){return Rt.K})),n.d(t,"__experimentalLibrary",(function(){return Rt.Fb})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return Rt.k})),n.d(t,"MultiSelectScrollIntoView",(function(){return Rt.U})),n.d(t,"NavigableToolbar",(function(){return Rt.V})),n.d(t,"ObserveTyping",(function(){return Rt.W})),n.d(t,"__unstableUseTypingObserver",(function(){return Rt.ec})),n.d(t,"__unstableUseMouseMoveTypingReset",(function(){return Rt.cc})),n.d(t,"PreserveScrollInReorder",(function(){return Rt.Z})),n.d(t,"SkipToSelectedBlock",(function(){return Rt.db})),n.d(t,"Typewriter",(function(){return Rt.fb})),n.d(t,"__unstableUseTypewriter",(function(){return Rt.dc})),n.d(t,"Warning",(function(){return Rt.jb})),n.d(t,"WritingFlow",(function(){return Rt.kb})),n.d(t,"__unstableUseCanvasClickRedirect",(function(){return Rt.ac})),n.d(t,"useBlockDisplayInformation",(function(){return Rt.oc})),n.d(t,"__unstableIframe",(function(){return Rt.Wb})),n.d(t,"__experimentalUseNoRecursiveRenders",(function(){return Rt.Sb})),n.d(t,"BlockEditorProvider",(function(){return Rt.l})),n.d(t,"useSetting",(function(){return Rt.sc})),n.d(t,"transformStyles",(function(){return Nt.c})),n.d(t,"validateThemeColors",(function(){return Nt.d})),n.d(t,"validateThemeGradients",(function(){return Nt.e})),n.d(t,"__experimentalGetMatchingVariation",(function(){return Nt.a})),n.d(t,"getPxFromCssUnit",(function(){return Nt.b})),n.d(t,"storeConfig",(function(){return Ot.b})),n.d(t,"store",(function(){return Ot.a})),n.d(t,"SETTINGS_DEFAULTS",(function(){return Lt.b}));var o=n("HSyU"),r=n("g56x");Object(r.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&Object(o.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=n("wx14"),i=n("GRId"),l=n("TSYQ"),a=n.n(l),s=n("YLtl"),u=n("K9lf"),d=n("fOYa"),b=n("vtO0"),p=n("K/rC");const m=["left","center","right","wide","full"],f=["wide","full"];function h(e,t=!0,n=!0){let o;return o=Array.isArray(e)?m.filter(t=>e.includes(t)):!0===e?[...m]:[],!n||!0===e&&!t?Object(s.without)(o,...f):o}const g=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t,r=h(Object(o.getBlockSupport)(n,"align"),Object(o.hasBlockSupport)(n,"alignWide",!0)),c=Object(p.a)(r).map(({name:e})=>e);return Object(i.createElement)(i.Fragment,null,!!c.length&&Object(i.createElement)(d.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(i.createElement)(b.a,{value:t.attributes.align,onChange:e=>{if(!e){var n,r;const c=Object(o.getBlockType)(t.name);(null==c||null===(n=c.attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="")}t.setAttributes({align:e})},controls:c})),Object(i.createElement)(e,t))},"withToolbarControls"),O=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:r}=t,{align:l}=r,a=h(Object(o.getBlockSupport)(n,"align"),Object(o.hasBlockSupport)(n,"alignWide",!0)),s=Object(p.a)(a);if(void 0===l)return Object(i.createElement)(e,t);let u=t.wrapperProps;return s.some(e=>e.name===l)&&(u={...u,"data-align":l}),Object(i.createElement)(e,Object(c.a)({},t,{wrapperProps:u}))});Object(r.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(s.has)(e.attributes,["align","type"])||Object(o.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...m,""]}}),e})),Object(r.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",O),Object(r.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",g),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:r}=n;return h(Object(o.getBlockSupport)(t,"align"),Object(o.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=a()("align"+r,e.className)),e})),Object(r.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){return Object(s.has)(e.attributes,["lock","type"])||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));var v=n("tI+e"),j=n("l3Sj"),k=n("1oY3");const _=/[\s#]/g;const y=Object(u.createHigherOrderComponent)(e=>t=>{if(Object(o.hasBlockSupport)(t.name,"anchor")&&t.isSelected){const n="web"===i.Platform.OS,o=Object(i.createElement)(v.TextControl,{className:"html-anchor-control",label:Object(j.__)("HTML anchor"),help:Object(i.createElement)(i.Fragment,null,Object(j.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, youll be able to link directly to this section of your page."),n&&Object(i.createElement)(v.ExternalLink,{href:Object(j.__)("https://wordpress.org/support/article/page-jumps/")},Object(j.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:Object(j.__)("Add an anchor"),onChange:e=>{e=e.replace(_,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),n&&Object(i.createElement)(k.b,{__experimentalGroup:"advanced"},o),!n&&"core/heading"===t.name&&Object(i.createElement)(k.b,null,Object(i.createElement)(v.PanelBody,{title:Object(j.__)("Heading settings")},o)))}return Object(i.createElement)(e,t)},"withInspectorControl");Object(r.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){return Object(s.has)(e.attributes,["anchor","type"])||Object(o.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"}}),e})),Object(r.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",y),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return Object(o.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const E=Object(u.createHigherOrderComponent)(e=>t=>Object(o.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),Object(i.createElement)(k.b,{__experimentalGroup:"advanced"},Object(i.createElement)(v.TextControl,{autoComplete:"off",label:Object(j.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:Object(j.__)("Separate multiple classes with spaces.")}))):Object(i.createElement)(e,t),"withInspectorControl");Object(r.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(o.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),Object(r.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",E),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(o.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=a()(e.className,n.className)),e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(o.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(s.uniq)([Object(o.getBlockDefaultClassName)(t.name),...e.className.split(" ")]).join(" ").trim():e.className=Object(o.getBlockDefaultClassName)(t.name)),e}));var C=n("VyCT"),S=n("v5LD"),w=n("hMaJ"),B=n("bVpQ"),I=n("715p");const x=[];function T(e){const{attributes:{borderColor:t,style:n},setAttributes:o}=e,r=Object(S.a)("color.palette")||x,c=!Object(S.a)("color.custom"),l=!Object(S.a)("color.customGradient"),[a,s]=Object(i.useState)(()=>{var e,o;return null===(e=Object(B.b)(r,t,null==n||null===(o=n.border)||void 0===o?void 0:o.color))||void 0===e?void 0:e.color});return Object(i.createElement)(w.a,{label:Object(j.__)("Color"),colorValue:a,colors:r,gradients:void 0,disableCustomColors:c,disableCustomGradients:l,onColorChange:e=>{s(e);const t=Object(B.c)(r,e),c={...n,border:{...null==n?void 0:n.border,color:null!=t&&t.slug?void 0:e}},i=null!=t&&t.slug?t.slug:void 0;o({style:Object(I.a)(c),borderColor:i})}})}function P(e,t,n){var o;if(!z(t,"color")||H(t))return e;const{borderColor:r,style:c}=n,i=Object(B.a)("border-color",r),l=a()(e.className,{"has-border-color":r||(null==c||null===(o=c.border)||void 0===o?void 0:o.color),[i]:!!i});return e.className=l||void 0,e}const R=Object(u.createHigherOrderComponent)(e=>t=>{var n,o;const{name:r,attributes:l}=t,{borderColor:a}=l,s=Object(S.a)("color.palette")||x;if(!z(r,"color")||H(r))return Object(i.createElement)(e,t);const u={borderColor:a?null===(n=Object(B.b)(s,a))||void 0===n?void 0:n.color:void 0};let d=t.wrapperProps;return d={...t.wrapperProps,style:{...u,...null===(o=t.wrapperProps)||void 0===o?void 0:o.style}},Object(i.createElement)(e,Object(c.a)({},t,{wrapperProps:d}))});Object(r.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return z(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",P),Object(r.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!z(e,"color")||H(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),P(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",R);var N=n("Wy3j");function L(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(N.a,{values:null==n||null===(t=n.border)||void 0===t?void 0:t.radius,onChange:e=>{let t={...n,border:{...null==n?void 0:n.border,radius:e}};void 0!==e&&""!==e||(t=Object(I.a)(t)),o({style:t})}})}var M=n("2YCo");const A=e=>{var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(M.a,{value:null==n||null===(t=n.border)||void 0===t?void 0:t.style,onChange:e=>{const t={...n,border:{...null==n?void 0:n.border,style:e}};o({style:Object(I.a)(t)})}})},D=e=>{const{attributes:{borderColor:t,style:n},setAttributes:o}=e,{width:r,color:c,style:l}=(null==n?void 0:n.border)||{},[a,s]=Object(i.useState)(),[u,d]=Object(i.useState)();Object(i.useEffect)(()=>{"none"!==l&&s(l)},[l]),Object(i.useEffect)(()=>{(t||c)&&d({name:t||void 0,color:c||void 0})},[t,c]);const b=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["px","em","rem"]});return Object(i.createElement)(v.__experimentalUnitControl,{value:r,label:Object(j.__)("Width"),min:0,onChange:e=>{let r={...n,border:{...null==n?void 0:n.border,width:e}},c=t;const i=0===parseFloat(e);i&&(c=void 0,r.border.color=void 0,r.border.style="none"),i||"none"!==l||(r.border.style=a),i||void 0!==t||(c=null==u?void 0:u.name,r.border.color=null==u?void 0:u.color),void 0!==e&&""!==e||(r=Object(I.a)(r)),o({borderColor:c,style:r})},units:b})};function F(e){const t=V(e),n=z(e.name),o=Object(S.a)("border.color")&&z(e.name,"color"),r=Object(S.a)("border.radius")&&z(e.name,"radius"),c=Object(S.a)("border.style")&&z(e.name,"style"),l=Object(S.a)("border.width")&&z(e.name,"width");return t||!n?null:Object(i.createElement)(k.b,null,Object(i.createElement)(v.PanelBody,{className:"block-editor-hooks__border-controls",title:Object(j.__)("Border"),initialOpen:!1},(l||c)&&Object(i.createElement)("div",{className:"block-editor-hooks__border-controls-row"},l&&Object(i.createElement)(D,e),c&&Object(i.createElement)(A,e)),o&&Object(i.createElement)(T,e),r&&Object(i.createElement)(L,e)))}function z(e,t="any"){if("web"!==i.Platform.OS)return!1;const n=Object(o.getBlockSupport)(e,"__experimentalBorder");return!0===n||("any"===t?!!(null!=n&&n.color||null!=n&&n.radius||null!=n&&n.width||null!=n&&n.style):!(null==n||!n[t]))}function H(e){const t=Object(o.getBlockSupport)(e,"__experimentalBorder");return null==t?void 0:t.__experimentalSkipSerialization}const V=()=>[!Object(S.a)("border.color"),!Object(S.a)("border.radius"),!Object(S.a)("border.style"),!Object(S.a)("border.width")].every(Boolean);var G=n("Cn0l"),U=n("yU1v"),W=n("6c9H"),q=n("PKbb");function K(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function $({settings:e,clientId:t,enableContrastChecking:n=!0,showTitle:o=!0}){const[r,c]=Object(i.useState)(),[l,a]=Object(i.useState)(),s=Object(q.b)(t);return Object(i.useEffect)(()=>{if(!n)return;if(!s.current)return;a(K(s.current).color);let e=s.current,t=K(e).backgroundColor;for(;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===e.parentNode.ELEMENT_NODE;)e=e.parentNode,t=K(e).backgroundColor;c(t)}),Object(i.createElement)(k.b,null,Object(i.createElement)(U.a,{title:Object(j.__)("Color"),initialOpen:!1,settings:e,showTitle:o,__experimentalHasMultipleOrigins:!0},n&&Object(i.createElement)(W.a,{backgroundColor:r,textColor:l})))}const Y=[],X=e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},Z=e=>{const t=Object(o.getBlockSupport)(e,"color");return null==t?void 0:t.__experimentalSkipSerialization},Q=e=>{const t=Object(o.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.gradients};function J(e,t,n){var o,r,c,i,l,s;if(!X(t)||Z(t))return e;const u=Q(t),{backgroundColor:d,textColor:b,gradient:p,style:m}=n,f=Object(B.a)("background-color",d),h=Object(G.a)(p),g=Object(B.a)("color",b),O=a()(e.className,g,h,{[f]:!(u&&null!=m&&null!==(o=m.color)&&void 0!==o&&o.gradient||!f),"has-text-color":b||(null==m||null===(r=m.color)||void 0===r?void 0:r.text),"has-background":d||(null==m||null===(c=m.color)||void 0===c?void 0:c.background)||u&&(p||(null==m||null===(i=m.color)||void 0===i?void 0:i.gradient)),"has-link-color":null==m||null===(l=m.elements)||void 0===l||null===(s=l.link)||void 0===s?void 0:s.color});return e.className=O||void 0,e}const ee=(e,t)=>{const n=/var:preset\|color\|(.+)/.exec(t);return n&&n[1]?Object(B.b)(e,n[1]).color:t};function te(e){var t,n,r,c,l,a,u,d,b;const{name:p,attributes:m}=e,f=Object(S.a)("color.palette")||Y,h=Object(S.a)("color.gradients")||Y,g=Object(S.a)("color.custom"),O=Object(S.a)("color.customGradient"),v=Object(S.a)("color.link"),k=Object(S.a)("color.text"),_=Object(S.a)("color.background"),y=Object(i.useRef)(m);if(Object(i.useEffect)(()=>{y.current=m},[m]),!X(p))return null;const E=(e=>{if("web"!==i.Platform.OS)return!1;const t=Object(o.getBlockSupport)(e,"color");return Object(s.isObject)(t)&&!!t.link})(p)&&v&&(f.length>0||g),C=(e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&!1!==t.text})(p)&&k&&(f.length>0||g),w=(e=>{const t=Object(o.getBlockSupport)(e,"color");return t&&!1!==t.background})(p)&&_&&(f.length>0||g),x=Q(p)&&(h.length>0||O);if(!(E||C||w||x))return null;const{style:T,textColor:P,backgroundColor:R,gradient:N}=m;let L;if(x&&N)L=Object(G.e)(h,N);else if(x){var M;L=null==T||null===(M=T.color)||void 0===M?void 0:M.gradient}const A=t=>n=>{var o,r;const c=Object(B.c)(f,n),i=t+"Color",l={...y.current.style,color:{...null===(o=y.current)||void 0===o||null===(r=o.style)||void 0===r?void 0:r.color,[t]:null!=c&&c.slug?void 0:n}},a=null!=c&&c.slug?c.slug:void 0,s={style:Object(I.a)(l),[i]:a};e.setAttributes(s),y.current={...y.current,...s}};return Object(i.createElement)($,{enableContrastChecking:!("web"!==i.Platform.OS||N||null!=T&&null!==(t=T.color)&&void 0!==t&&t.gradient),clientId:e.clientId,settings:[...C?[{label:Object(j.__)("Text color"),onColorChange:A("text"),colorValue:Object(B.b)(f,P,null==T||null===(n=T.color)||void 0===n?void 0:n.text).color}]:[],...w||x?[{label:Object(j.__)("Background color"),onColorChange:w?A("background"):void 0,colorValue:Object(B.b)(f,R,null==T||null===(r=T.color)||void 0===r?void 0:r.background).color,gradientValue:L,onGradientChange:x?t=>{const n=Object(G.d)(h,t);let o;if(n){var r,c,i;const e={...null===(r=y.current)||void 0===r?void 0:r.style,color:{...null===(c=y.current)||void 0===c||null===(i=c.style)||void 0===i?void 0:i.color,gradient:void 0}};o={style:Object(I.a)(e),gradient:n}}else{var l,a,s;const e={...null===(l=y.current)||void 0===l?void 0:l.style,color:{...null===(a=y.current)||void 0===a||null===(s=a.style)||void 0===s?void 0:s.color,gradient:t}};o={style:Object(I.a)(e),gradient:void 0}}e.setAttributes(o),y.current={...y.current,...o}}:void 0}]:[],...E?[{label:Object(j.__)("Link Color"),onColorChange:t=>{const n=Object(B.c)(f,t),o=null!=n&&n.slug?"var:preset|color|"+n.slug:t,r=Object(I.a)(function(e,t,n){return Object(s.setWith)(e?Object(s.clone)(e):{},t,n,s.clone)}(T,["elements","link","color","text"],o));e.setAttributes({style:r})},colorValue:ee(f,null==T||null===(c=T.elements)||void 0===c||null===(l=c.link)||void 0===l||null===(a=l.color)||void 0===a?void 0:a.text),clearable:!(null==T||null===(u=T.elements)||void 0===u||null===(d=u.link)||void 0===d||null===(b=d.color)||void 0===b||!b.text)}]:[]]})}const ne=Object(u.createHigherOrderComponent)(e=>t=>{var n,o,r;const{name:l,attributes:a}=t,{backgroundColor:s,textColor:u}=a,d=Object(S.a)("color.palette")||Y;if(!X(l)||Z(l))return Object(i.createElement)(e,t);const b={color:u?null===(n=Object(B.b)(d,u))||void 0===n?void 0:n.color:void 0,backgroundColor:s?null===(o=Object(B.b)(d,s))||void 0===o?void 0:o.color:void 0};let p=t.wrapperProps;return p={...t.wrapperProps,style:{...b,...null===(r=t.wrapperProps)||void 0===r?void 0:r.style}},Object(i.createElement)(e,Object(c.a)({},t,{wrapperProps:p}))});Object(r.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return X(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),Q(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",J),Object(r.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!X(e)||Z(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),J(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",ne);var oe=n("Bo0k"),re=n("weEX");function ce(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(re.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.lineHeight,onChange:e=>{const t={...n,typography:{...null==n?void 0:n.typography,lineHeight:e}};o({style:Object(I.a)(t)})}})}function ie({name:e}={}){const t=!Object(S.a)("typography.lineHeight");return!Object(o.hasBlockSupport)(e,"typography.lineHeight")||t}function le(e){var t,n;const{attributes:{style:o},setAttributes:r}=e,c=!ae(e),l=!se(e),a=null==o||null===(t=o.typography)||void 0===t?void 0:t.fontStyle,s=null==o||null===(n=o.typography)||void 0===n?void 0:n.fontWeight;return Object(i.createElement)(oe.a,{onChange:e=>{r({style:Object(I.a)({...o,typography:{...null==o?void 0:o.typography,fontStyle:e.fontStyle,fontWeight:e.fontWeight}})})},hasFontStyles:c,hasFontWeights:l,value:{fontStyle:a,fontWeight:s}})}function ae({name:e}={}){const t=Object(o.hasBlockSupport)(e,"typography.__experimentalFontStyle"),n=Object(S.a)("typography.fontStyle");return!t||!n}function se({name:e}={}){const t=Object(o.hasBlockSupport)(e,"typography.__experimentalFontWeight"),n=Object(S.a)("typography.fontWeight");return!t||!n}function ue(e){const t=ae(e),n=se(e);return t&&n}var de=n("BLeD"),be=n.n(de),pe=n("GKUk");const me="typography.__experimentalFontFamily";function fe(e,t,n){if(!Object(o.hasBlockSupport)(t,me))return e;if(Object(o.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;if(null==n||!n.fontFamily)return e;const r=new be.a(e.className);r.add(`has-${Object(s.kebabCase)(null==n?void 0:n.fontFamily)}-font-family`);const c=r.value;return e.className=c||void 0,e}function he({setAttributes:e,attributes:{fontFamily:t}}){var n;const o=Object(S.a)("typography.fontFamilies"),r=null===(n=Object(s.find)(o,({slug:e})=>t===e))||void 0===n?void 0:n.fontFamily;return Object(i.createElement)(pe.a,{className:"block-editor-hooks-font-family-control",fontFamilies:o,value:r,onChange:function(t){const n=Object(s.find)(o,({fontFamily:e})=>e===t);e({fontFamily:null==n?void 0:n.slug})}})}function ge({name:e}){const t=Object(S.a)("typography.fontFamilies");return!t||0===t.length||!Object(o.hasBlockSupport)(e,me)}Object(r.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return Object(o.hasBlockSupport)(e,me)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",fe),Object(r.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!Object(o.hasBlockSupport)(e,me))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),fe(o,e,n)},e}));var Oe=n("NMUH"),ve=n("QP/w");function je(e,t,n){if(!Object(o.hasBlockSupport)(t,"typography.fontSize"))return e;if(Object(o.hasBlockSupport)(t,"typography.__experimentalSkipSerialization"))return e;const r=new be.a(e.className);r.add(Object(Oe.b)(n.fontSize));const c=r.value;return e.className=c||void 0,e}function ke(e){var t,n;const{attributes:{fontSize:o,style:r},setAttributes:c}=e,l=Object(S.a)("typography.fontSizes"),a=Object(Oe.a)(l,o,null==r||null===(t=r.typography)||void 0===t?void 0:t.fontSize),s=(null==a?void 0:a.size)||(null==r||null===(n=r.typography)||void 0===n?void 0:n.fontSize)||o;return Object(i.createElement)(ve.a,{onChange:e=>{const t=Object(Oe.c)(l,e).slug;c({style:Object(I.a)({...r,typography:{...null==r?void 0:r.typography,fontSize:t?void 0:e}}),fontSize:t})},value:s,withReset:!1})}function _e({name:e}={}){const t=Object(S.a)("typography.fontSizes"),n=!(null==t||!t.length);return!Object(o.hasBlockSupport)(e,"typography.fontSize")||!n}const ye=Object(u.createHigherOrderComponent)(e=>t=>{var n,r;const c=Object(S.a)("typography.fontSizes"),{name:l,attributes:{fontSize:a,style:s},wrapperProps:u}=t;if(!Object(o.hasBlockSupport)(l,"typography.fontSize")||Object(o.hasBlockSupport)(l,"typography.__experimentalSkipSerialization")||!a||null!=s&&null!==(n=s.typography)&&void 0!==n&&n.fontSize)return Object(i.createElement)(e,t);const d=Object(Oe.a)(c,a,null==s||null===(r=s.typography)||void 0===r?void 0:r.fontSize).size,b={...t,wrapperProps:{...u,style:{fontSize:d,...null==u?void 0:u.style}}};return Object(i.createElement)(e,b)},"withFontSizeInlineStyles");Object(r.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(o.hasBlockSupport)(e,"typography.fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",je),Object(r.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(o.hasBlockSupport)(e,"typography.fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),je(o,e,n)},e})),Object(r.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",ye);var Ee=n("kVRd");function Ce(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(Ee.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textDecoration,onChange:function(e){o({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,textDecoration:e}})})}})}function Se({name:e}={}){const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalTextDecoration"),n=Object(S.a)("typography.textDecoration");return t||!n}var we=n("/Hvg");function Be(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(we.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.textTransform,onChange:function(e){o({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,textTransform:e}})})}})}function Ie({name:e}={}){const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalTextTransform"),n=Object(S.a)("typography.textTransform");return t||!n}var xe=n("xBDm");function Te(e){var t;const{attributes:{style:n},setAttributes:o}=e;return Object(i.createElement)(xe.a,{value:null==n||null===(t=n.typography)||void 0===t?void 0:t.letterSpacing,onChange:function(e){o({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,letterSpacing:e}})})},__unstableInputWidth:!1})}function Pe({name:e}={}){const t=!Object(o.hasBlockSupport)(e,"typography.__experimentalLetterSpacing"),n=Object(S.a)("typography.letterSpacing");return t||!n}const Re=["typography.lineHeight","typography.fontSize","typography.__experimentalFontStyle","typography.__experimentalFontWeight",me,"typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function Ne(e){const{clientId:t}=e,n=ge(e),r=_e(e),c=ue(e),l=ie(e),a=Se(e),s=Ie(e),u=Pe(e),d=!ae(e),b=!se(e),p=function(e={}){const t=[ue(e),_e(e),ie(e),ge(e),Se(e),Ie(e),Pe(e)];return t.filter(Boolean).length===t.length}(e),m=Le(e.name);if(p||!m)return null;const f=Object(o.getBlockSupport)(e.name,["typography","__experimentalDefaultControls"]),h=e=>t=>{var n;return{...t,style:{...t.style,typography:{...null===(n=t.style)||void 0===n?void 0:n.typography,[e]:void 0}}}};return Object(i.createElement)(k.b,{__experimentalGroup:"typography"},!n&&Object(i.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){return!!e.attributes.fontFamily}(e),label:Object(j.__)("Font family"),onDeselect:()=>function({setAttributes:e}){e({fontFamily:void 0})}(e),isShownByDefault:null==f?void 0:f.fontFamily,resetAllFilter:e=>({...e,fontFamily:void 0}),panelId:t},Object(i.createElement)(he,e)),!r&&Object(i.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t;const{fontSize:n,style:o}=e.attributes;return!!n||!(null==o||null===(t=o.typography)||void 0===t||!t.fontSize)}(e),label:Object(j.__)("Font size"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({fontSize:void 0,style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,fontSize:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontSize,resetAllFilter:e=>{var t;return{...e,fontSize:void 0,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontSize:void 0}}}},panelId:t},Object(i.createElement)(ke,e)),!c&&Object(i.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t;const{fontStyle:n,fontWeight:o}=(null===(t=e.attributes.style)||void 0===t?void 0:t.typography)||{};return!!n||!!o}(e),label:Object(oe.b)(d,b),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,fontStyle:void 0,fontWeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.fontAppearance,resetAllFilter:e=>{var t;return{...e,style:{...e.style,typography:{...null===(t=e.style)||void 0===t?void 0:t.typography,fontStyle:void 0,fontWeight:void 0}}}},panelId:t},Object(i.createElement)(le,e)),!l&&Object(i.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.lineHeight)}(e),label:Object(j.__)("Line height"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,lineHeight:void 0}})})}(e),isShownByDefault:null==f?void 0:f.lineHeight,resetAllFilter:h("lineHeight"),panelId:t},Object(i.createElement)(ce,e)),!a&&Object(i.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textDecoration)}(e),label:Object(j.__)("Decoration"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,textDecoration:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textDecoration,resetAllFilter:h("textDecoration"),panelId:t},Object(i.createElement)(Ce,e)),!s&&Object(i.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.textTransform)}(e),label:Object(j.__)("Letter case"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,textTransform:void 0}})})}(e),isShownByDefault:null==f?void 0:f.textTransform,resetAllFilter:h("textTransform"),panelId:t},Object(i.createElement)(Be,e)),!u&&Object(i.createElement)(v.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>function(e){var t,n;return!(null===(t=e.attributes.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.letterSpacing)}(e),label:Object(j.__)("Letter-spacing"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,typography:{...null==n?void 0:n.typography,letterSpacing:void 0}})})}(e),isShownByDefault:null==f?void 0:f.letterSpacing,resetAllFilter:h("letterSpacing"),panelId:t},Object(i.createElement)(Te,e)))}const Le=e=>Re.some(t=>Object(o.hasBlockSupport)(e,t));function Me(e){const t=Object(o.getBlockSupport)(e,We);return!!(!0===t||null!=t&&t.blockGap)}function Ae({name:e}={}){const t=!Object(S.a)("spacing.blockGap");return!Me(e)||t}function De(e){var t;const{clientId:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),l=Object(q.b)(n);if(Ae(e))return null;return i.Platform.select({web:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v.__experimentalUnitControl,{label:Object(j.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:e=>{var t;const n={...o,spacing:{...null==o?void 0:o.spacing,blockGap:e}};r({style:Object(I.a)(n)});const c=(null===(t=window)||void 0===t?void 0:t.navigator.userAgent)&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome ")&&!window.navigator.userAgent.includes("Chromium ");var i;l.current&&c&&(null===(i=l.current.parentNode)||void 0===i||i.replaceChild(l.current,l.current))},units:c,value:null==o||null===(t=o.spacing)||void 0===t?void 0:t.blockGap})),native:null})}function Fe(e){const t=Object(o.getBlockSupport)(e,We);return!!(!0===t||null!=t&&t.margin)}function ze({name:e}={}){const t=!Object(S.a)("spacing.margin"),n=!Ze(e,"margin");return!Fe(e)||t||n}function He(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),l=Xe(n,"margin"),a=l&&l.some(e=>Ke.includes(e));if(ze(e))return null;return i.Platform.select({web:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.margin,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,margin:e}};r({style:Object(I.a)(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{margin:e}};r({style:Object(I.a)(t)})},label:Object(j.__)("Margin"),sides:l,units:c,allowReset:!1,splitOnAxis:a})),native:null})}function Ve(e){const t=Object(o.getBlockSupport)(e,We);return!!(!0===t||null!=t&&t.padding)}function Ge({name:e}={}){const t=!Object(S.a)("spacing.padding"),n=!Ze(e,"padding");return!Ve(e)||t||n}function Ue(e){var t;const{name:n,attributes:{style:o},setAttributes:r}=e,c=Object(v.__experimentalUseCustomUnits)({availableUnits:Object(S.a)("spacing.units")||["%","px","em","rem","vw"]}),l=Xe(n,"padding"),a=l&&l.some(e=>Ke.includes(e));if(Ge(e))return null;return i.Platform.select({web:Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v.__experimentalBoxControl,{values:null==o||null===(t=o.spacing)||void 0===t?void 0:t.padding,onChange:e=>{const t={...o,spacing:{...null==o?void 0:o.spacing,padding:e}};r({style:Object(I.a)(t)})},onChangeShowVisualizer:e=>{const t={...o,visualizers:{padding:e}};r({style:Object(I.a)(t)})},label:Object(j.__)("Padding"),sides:l,units:c,allowReset:!1,splitOnAxis:a})),native:null})}const We="spacing",qe=["top","right","bottom","left"],Ke=["vertical","horizontal"];function $e(e){const t=Ae(e),n=Ge(e),r=ze(e),c=Ye(e),l=function(e){if("web"!==i.Platform.OS)return!1;return Me(e)||Ve(e)||Fe(e)}(e.name);if(c||!l)return null;const a=Object(o.getBlockSupport)(e.name,[We,"__experimentalDefaultControls"]),s=e=>t=>{var n;return{...t,style:{...t.style,spacing:{...null===(n=t.style)||void 0===n?void 0:n.spacing,[e]:void 0}}}};return Object(i.createElement)(k.b,{__experimentalGroup:"dimensions"},!n&&Object(i.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.padding)}(e),label:Object(j.__)("Padding"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,spacing:{...null==n?void 0:n.spacing,padding:void 0}})})}(e),resetAllFilter:s("padding"),isShownByDefault:null==a?void 0:a.padding,panelId:e.clientId},Object(i.createElement)(Ue,e)),!r&&Object(i.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.margin)}(e),label:Object(j.__)("Margin"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:Object(I.a)({...n,spacing:{...null==n?void 0:n.spacing,margin:void 0}})})}(e),resetAllFilter:s("margin"),isShownByDefault:null==a?void 0:a.margin,panelId:e.clientId},Object(i.createElement)(He,e)),!t&&Object(i.createElement)(v.__experimentalToolsPanelItem,{hasValue:()=>function(e){var t,n;return void 0!==(null===(t=e.attributes.style)||void 0===t||null===(n=t.spacing)||void 0===n?void 0:n.blockGap)}(e),label:Object(j.__)("Block spacing"),onDeselect:()=>function({attributes:e={},setAttributes:t}){const{style:n}=e;t({style:{...n,spacing:{...null==n?void 0:n.spacing,blockGap:void 0}}})}(e),resetAllFilter:s("blockGap"),isShownByDefault:null==a?void 0:a.blockGap,panelId:e.clientId},Object(i.createElement)(De,e)))}const Ye=(e={})=>{const t=Ae(e),n=Ge(e),o=ze(e);return t&&n&&o};function Xe(e,t){const n=Object(o.getBlockSupport)(e,We);if(n&&"boolean"!=typeof n[t])return n[t]}function Ze(e,t){const n=Xe(e,t);return!(n&&n.some(e=>qe.includes(e))&&n.some(e=>Ke.includes(e)))||(console.warn(`The ${t} support for the "${e}" block can not be configured to support both axial and arbitrary sides.`),!1)}var Qe=n("HgtZ");const Je=[...Re,"__experimentalBorder","color",We],et=e=>Je.some(t=>Object(o.hasBlockSupport)(e,t));function tt(e){if(Object(s.startsWith)(e,"var:")){return`var(--wp--${e.slice("var:".length).split("|").join("--")})`}return e}function nt(e={}){const t={};return Object.keys(o.__EXPERIMENTAL_STYLE_PROPERTY).forEach(n=>{const r=o.__EXPERIMENTAL_STYLE_PROPERTY[n].value,c=o.__EXPERIMENTAL_STYLE_PROPERTY[n].properties;if(Object(s.has)(e,r)&&"elements"!==Object(s.first)(r)){const o=Object(s.get)(e,r);c&&!Object(s.isString)(o)?Object.entries(c).forEach(e=>{const[n,r]=e,c=Object(s.get)(o,[r]);c&&(t[n]=tt(c))}):t[n]=tt(Object(s.get)(e,r))}}),t}const ot={"__experimentalBorder.__experimentalSkipSerialization":["border"],"color.__experimentalSkipSerialization":["color"],"typography.__experimentalSkipSerialization":["typography"],[We+".__experimentalSkipSerialization"]:["spacing"]},rt={...ot,[""+We]:["spacing.blockGap"]};function ct(e,t,n,r=rt){if(!et(t))return e;let{style:c}=n;return Object(s.forEach)(r,(e,n)=>{Object(o.getBlockSupport)(t,n)&&(c=Object(s.omit)(c,e))}),e.style={...nt(c),...e.style},e}const it=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(Qe.a)();return Object(i.createElement)(i.Fragment,null,n&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)(te,t),Object(i.createElement)(Ne,t),Object(i.createElement)(F,t),Object(i.createElement)($e,t)),Object(i.createElement)(e,t))},"withToolbarControls"),lt=Object(u.createHigherOrderComponent)(e=>t=>{var n,r;const l=null===(n=t.attributes.style)||void 0===n?void 0:n.elements,d="wp-elements-"+Object(u.useInstanceId)(e),b=function(e,t={}){return Object(s.map)(t,(t,n)=>{const r=nt(t);return Object(s.isEmpty)(r)?"":[`.${e} ${o.__EXPERIMENTAL_ELEMENTS[n]}{`,...Object(s.map)(r,(e,t)=>`\t${Object(s.kebabCase)(t)}: ${e};`),"}"].join("\n")}).join("\n")}(d,null===(r=t.attributes.style)||void 0===r?void 0:r.elements),p=Object(i.useContext)(C.c.__unstableElementContext);return Object(i.createElement)(i.Fragment,null,l&&p&&Object(i.createPortal)(Object(i.createElement)("style",{dangerouslySetInnerHTML:{__html:b}}),p),Object(i.createElement)(e,Object(c.a)({},t,{className:l?a()(t.className,d):t.className})))});Object(r.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return et(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(r.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",ct),Object(r.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!et(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),ct(o,e,n,ot)},e})),Object(r.addFilter)("editor.BlockEdit","core/style/with-block-controls",it),Object(r.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",lt);var at=n("fHnH"),st=n("abaT"),ut=n("1uGa");const dt=[];function bt(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach(e=>{const n=Object(at.a)(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)}),t}function pt({selector:e,id:t,values:n}){const o=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},Object(i.createElement)("defs",null,Object(i.createElement)("filter",{id:t},Object(i.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),Object(i.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},Object(i.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),Object(i.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),Object(i.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}),Object(i.createElement)("feFuncA",{type:"table",tableValues:n.a.join(" ")})),Object(i.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"})))),Object(i.createElement)("style",{dangerouslySetInnerHTML:{__html:o}}))}function mt({attributes:e,setAttributes:t}){var n;const o=null==e?void 0:e.style,r=null==o||null===(n=o.color)||void 0===n?void 0:n.duotone,c=Object(S.a)("color.duotone")||dt,l=Object(S.a)("color.palette")||dt,a=!Object(S.a)("color.custom"),s=!Object(S.a)("color.customDuotone")||0===(null==l?void 0:l.length)&&a;return 0===(null==c?void 0:c.length)&&s?null:Object(i.createElement)(d.b,{group:"block",__experimentalShareWithChildBlocks:!0},Object(i.createElement)(ut.a,{duotonePalette:c,colorPalette:l,disableCustomDuotone:s,disableCustomColors:a,value:r,onChange:e=>{const n={...o,color:{...null==o?void 0:o.color,duotone:e}};t({style:n})}}))}Object(at.b)([st.a]);const ft=Object(u.createHigherOrderComponent)(e=>t=>{const n=Object(o.hasBlockSupport)(t.name,"color.__experimentalDuotone");return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(e,t),n&&Object(i.createElement)(mt,t))},"withDuotoneControls");const ht=Object(u.createHigherOrderComponent)(e=>t=>{var n,r,l;const s=Object(o.getBlockSupport)(t.name,"color.__experimentalDuotone"),d=null==t||null===(n=t.attributes)||void 0===n||null===(r=n.style)||void 0===r||null===(l=r.color)||void 0===l?void 0:l.duotone;if(!s||!d)return Object(i.createElement)(e,t);const b="wp-duotone-"+Object(u.useInstanceId)(e),p=function(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach(e=>{o.forEach(t=>{r.push(`${e.trim()} ${t.trim()}`)})}),r.join(", ")}(".editor-styles-wrapper ."+b,s),m=a()(null==t?void 0:t.className,b),f=Object(i.useContext)(C.c.__unstableElementContext);return Object(i.createElement)(i.Fragment,null,f&&Object(i.createPortal)(Object(i.createElement)(pt,{selector:p,id:b,values:bt(d)}),f),Object(i.createElement)(e,Object(c.a)({},t,{className:m})))},"withDuotoneStyles");Object(r.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return Object(o.hasBlockSupport)(e,"color.__experimentalDuotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(r.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",ft),Object(r.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",ht);var gt=n("1ZqX"),Ot=n("BhPs"),vt=n("w8sn"),jt=n("PPMp");function kt({setAttributes:e,attributes:t,name:n}){const{layout:r}=t,c=Object(S.a)("layout"),l=Object(gt.useSelect)(e=>{const{getSettings:t}=e(Ot.a);return t().supportsLayout},[]),a=Object(o.getBlockSupport)(n,"__experimentalLayout",{}),{allowSwitching:s,allowEditing:u=!0,allowInheriting:d=!0,default:b}=a;if(!u)return null;const p=r||b||{},{inherit:m=!1,type:f="default"}=p;if("default"===f&&!l)return null;const h=Object(jt.a)(f),g=t=>e({layout:t});return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(k.b,null,Object(i.createElement)(v.PanelBody,{title:Object(j.__)("Layout")},d&&!!c&&Object(i.createElement)(v.ToggleControl,{label:Object(j.__)("Inherit default layout"),checked:!!m,onChange:()=>e({layout:{inherit:!m}})}),!m&&s&&Object(i.createElement)(_t,{type:f,onChange:t=>e({layout:{type:t}})}),!m&&h&&Object(i.createElement)(h.inspectorControls,{layout:p,onChange:g,layoutBlockSupport:a}))),!m&&h&&Object(i.createElement)(h.toolBarControls,{layout:p,onChange:g,layoutBlockSupport:a}))}function _t({type:e,onChange:t}){return Object(i.createElement)(v.ButtonGroup,null,Object(jt.b)().map(({name:n,label:o})=>Object(i.createElement)(v.Button,{key:n,isPressed:e===n,onClick:()=>t(n)},o)))}const yt=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n}=t;return[Object(o.hasBlockSupport)(n,"__experimentalLayout")&&Object(i.createElement)(kt,Object(c.a)({key:"layout"},t)),Object(i.createElement)(e,Object(c.a)({key:"edit"},t))]},"withInspectorControls"),Et=Object(u.createHigherOrderComponent)(e=>t=>{const{name:n,attributes:r}=t,l=Object(o.hasBlockSupport)(n,"__experimentalLayout"),s=Object(u.useInstanceId)(e),d=Object(S.a)("layout")||{},b=Object(i.useContext)(C.c.__unstableElementContext),{layout:p}=r,{default:m}=Object(o.getBlockSupport)(n,"__experimentalLayout")||{},f=null!=p&&p.inherit?d:p||m||{},h=a()(null==t?void 0:t.className,{["wp-container-"+s]:l});return Object(i.createElement)(i.Fragment,null,l&&b&&Object(i.createPortal)(Object(i.createElement)(vt.b,{selector:".wp-container-"+s,layout:f}),b),Object(i.createElement)(e,Object(c.a)({},t,{className:h})))});Object(r.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){return Object(s.has)(e.attributes,["layout","type"])||Object(o.hasBlockSupport)(e,"__experimentalLayout")&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),Object(r.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",Et),Object(r.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",yt);const Ct=[];function St({borderColor:e,style:t}){var n;const o=(null==t?void 0:t.border)||{},r=Object(B.a)("border-color",e);return{className:a()({[r]:!!r,"has-border-color":e||(null==t||null===(n=t.border)||void 0===n?void 0:n.color)})||void 0,style:nt({border:o})}}function wt(e){const t=Object(S.a)("color.palette")||Ct,n=St(e);if(e.borderColor){const o=Object(B.b)(t,e.borderColor);n.style.borderColor=o.color}return n}const Bt=[];function It(e){var t,n,o,r,c,i;const{backgroundColor:l,textColor:s,gradient:u,style:d}=e,b=Object(B.a)("background-color",l),p=Object(B.a)("color",s),m=Object(G.a)(u),f=m||(null==d||null===(t=d.color)||void 0===t?void 0:t.gradient);return{className:a()(p,m,{[b]:!f&&!!b,"has-text-color":s||(null==d||null===(n=d.color)||void 0===n?void 0:n.text),"has-background":l||(null==d||null===(o=d.color)||void 0===o?void 0:o.background)||u||(null==d||null===(r=d.color)||void 0===r?void 0:r.gradient),"has-link-color":null==d||null===(c=d.elements)||void 0===c||null===(i=c.link)||void 0===i?void 0:i.color})||void 0,style:nt({color:(null==d?void 0:d.color)||{}})}}function xt(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Object(S.a)("color.palette")||Bt,c=Object(S.a)("color.gradients")||Bt,i=It(e);if(t){const e=Object(B.b)(r,t);i.style.backgroundColor=e.color}if(o&&(i.style.background=Object(G.e)(c,o)),n){const e=Object(B.b)(r,n);i.style.color=e.color}return i}function Tt(e){const{style:t}=e;return{style:nt({spacing:(null==t?void 0:t.spacing)||{}})}}function Pt(e){const[t,n]=Object(i.useState)(e);return Object(i.useEffect)(()=>{e&&n(e)},[e]),t}var Rt=n("14PQ"),Nt=n("BCrt"),Lt=n("lJLt")},uoCR:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("GRId");const r=Object(o.createContext)({});function c({value:e,children:t}){const n=Object(o.useContext)(r),c=Object(o.useMemo)(()=>({...n,...e}),[n,e]);return Object(o.createElement)(r.Provider,{value:c,children:t})}t.b=r},ur0x:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return l}));var o=n("GRId");const r={name:"",isSelected:!1},c=Object(o.createContext)(r),{Provider:i}=c;function l(){return Object(o.useContext)(c)}},v5LD:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),i=n("ur0x"),l=n("BhPs");const a={"color.palette":e=>void 0===e.colors?void 0:e.colors,"color.gradients":e=>void 0===e.gradients?void 0:e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>void 0===e.fontSizes?void 0:e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},s={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"};function u(e){const{name:t}=Object(i.c)();return Object(r.useSelect)(n=>{var r;const i=n(l.a).getSettings(),u=(e=>s[e]||e)(e),d="__experimentalFeatures."+u,b=`__experimentalFeatures.blocks.${t}.${u}`,p=null!==(r=Object(o.get)(i,b))&&void 0!==r?r:Object(o.get)(i,d);var m,f;if(void 0!==p)return c.__EXPERIMENTAL_PATHS_WITH_MERGE[u]?null!==(m=null!==(f=p.user)&&void 0!==f?f:p.theme)&&void 0!==m?m:p.core:p;const h=a[u]?a[u](i):void 0;return void 0!==h?h:"typography.dropCap"===u||void 0},[t,e])}},v8Ku:function(e,t){},vIlp:function(e,t,n){"use strict";function o(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach(n=>{const c=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:c}=e,i=o?r:c,l=o?c:r,a=o?t.left:t.top,s=o?t.right:t.bottom,u=t[n];let d;return d=i>=a&&i<=s?i:i<s?a:s,Math.sqrt((i-d)**2+(l-u)**2)}(e,t,n);(void 0===o||c<o)&&(o=c,r=n)}),[o,r]}n.d(t,"a",(function(){return o}))},vSu0:function(e,t,n){"use strict";var o=n("YLtl"),r=n("K9lf"),c=n("eGrx"),i=n.n(c);const l=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var a=function(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function c(){const e={line:n,column:o};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:o},this.source=t.source}i.prototype.content=e;const a=[];function u(r){const c=new Error(t.source+":"+n+":"+o+": "+r);if(c.reason=r,c.filename=t.source,c.line=n,c.column=o,c.source=e,!t.silent)throw c;a.push(c)}function d(){return m(/^{\s*/)}function b(){return m(/^}/)}function p(){let t;const n=[];for(f(),h(n);e.length&&"}"!==e.charAt(0)&&(t=S()||w());)!1!==t&&(n.push(t),h(n));return n}function m(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function f(){m(/^\s*/)}function h(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=c();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return u("End of comment missing");const i=e.slice(2,n-2);return o+=2,r(i),e=e.slice(n),o+=2,t({type:"comment",comment:i})}function O(){const e=m(/^([^{]+)/);if(e)return s(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){const e=c();let t=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=s(t[0]),!m(/^:\s*/))return u("property missing ':'");const n=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(l,""),value:n?s(n[0]).replace(l,""):""});return m(/^[;\s]*/),o}function j(){const e=[];if(!d())return u("missing '{'");let t;for(h(e);t=v();)!1!==t&&(e.push(t),h(e));return b()?e:u("missing '}'")}function k(){let e;const t=[],n=c();for(;e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:j()})}const _=C("import"),y=C("charset"),E=C("namespace");function C(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=c(),o=m(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=c();let t=m(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=m(/^([-\w]+)\s*/),!t)return u("@keyframes missing name");const o=t[1];if(!d())return u("@keyframes missing '{'");let r,i=h();for(;r=k();)i.push(r),i=i.concat(h());return b()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):u("@keyframes missing '}'")}()||function(){const e=c(),t=m(/^@media *([^{]+)/);if(!t)return;const n=s(t[1]);if(!d())return u("@media missing '{'");const o=h().concat(p());return b()?e({type:"media",media:n,rules:o}):u("@media missing '}'")}()||function(){const e=c(),t=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:s(t[1]),media:s(t[2])})}()||function(){const e=c(),t=m(/^@supports *([^{]+)/);if(!t)return;const n=s(t[1]);if(!d())return u("@supports missing '{'");const o=h().concat(p());return b()?e({type:"supports",supports:n,rules:o}):u("@supports missing '}'")}()||_()||y()||E()||function(){const e=c(),t=m(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=s(t[1]),o=s(t[2]);if(!d())return u("@document missing '{'");const r=h().concat(p());return b()?e({type:"document",document:o,vendor:n,rules:r}):u("@document missing '}'")}()||function(){const e=c();if(!m(/^@page */))return;const t=O()||[];if(!d())return u("@page missing '{'");let n,o=h();for(;n=v();)o.push(n),o=o.concat(h());return b()?e({type:"page",selectors:t,declarations:o}):u("@page missing '}'")}()||function(){const e=c();if(!m(/^@host\s*/))return;if(!d())return u("@host missing '{'");const t=h().concat(p());return b()?e({type:"host",rules:t}):u("@host missing '}'")}()||function(){const e=c();if(!m(/^@font-face\s*/))return;if(!d())return u("@font-face missing '{'");let t,n=h();for(;t=v();)n.push(t),n=n.concat(h());return b()?e({type:"font-face",declarations:n}):u("@font-face missing '}'")}()}function w(){const e=c(),t=O();return t?(h(),e({type:"rule",selectors:t,declarations:j()})):u("selector missing")}return function e(t,n){const o=t&&"string"==typeof t.type,r=o?t:n;for(const n in t){const o=t[n];Array.isArray(o)?o.forEach((function(t){e(t,r)})):o&&"object"==typeof o&&e(o,r)}o&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}(function(){const e=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())};function s(e){return e?e.replace(/^\s+|\s+$/g,""):""}var u=n("P7XM"),d=n.n(u),b=p;function p(e){this.options=e||{}}p.prototype.emit=function(e){return e},p.prototype.visit=function(e){return this[e.type](e)},p.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var m=f;function f(e){b.call(this,e)}d()(f,b),f.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},f.prototype.comment=function(e){return this.emit("",e.position)},f.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},f.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},f.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},f.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},f.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},f.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},f.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},f.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},f.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},f.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},f.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var h=g;function g(e){e=e||{},b.call(this,e),this.indentation=e.indent}d()(g,b),g.prototype.compile=function(e){return this.stylesheet(e)},g.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},g.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},g.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},g.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}")},g.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},g.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},g.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},g.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}")},g.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)+"}")},g.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},g.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},g.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}")},g.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}")},g.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},g.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},g.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},g.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var O=function(e,t){try{const r=a(e),c=i.a.map(r,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return n=c,((o=o||{}).compress?new m(o):new h(o)).compile(n)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}var n,o};function v(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 j(e,t){return new URL(e,t).toString()}var k=e=>t=>{if("declaration"===t.type){const c=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};v(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+j(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=c,o.forEach(e=>{n=n.replace(e.source,e.newUrl)}),n)}}var n,o,r;return t};const _=/^(body|html|:root).*$/;var y=(e,t=[])=>n=>{const o=n=>t.includes(n.trim())?n:n.match(_)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(o)}:n};t.a=(e,t="")=>Object(o.map)(e,({css:e,baseURL:n,__experimentalNoWrapper:o=!1})=>{const c=[];return t&&!o&&c.push(y(t)),n&&c.push(k(n)),c.length?O(e,Object(r.compose)(c)):e})},vtO0:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return k}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("l3Sj"),a=n("tI+e"),s=n("Tqx9");var u=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M5 15h14V9H5v6zm0 4.8h14v-1.5H5v1.5zM5 4.2v1.5h14V4.2H5z"}));var d=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),b=n("EpZT");var p=Object(r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(s.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),m=n("beZb"),f=n("XNw2"),h=n("K/rC");const g={none:{icon:u,title:Object(l.__)("None")},left:{icon:d,title:Object(l.__)("Align left")},center:{icon:b.a,title:Object(l.__)("Align center")},right:{icon:p,title:Object(l.__)("Align right")},wide:{icon:m.a,title:Object(l.__)("Wide width")},full:{icon:f.a,title:Object(l.__)("Full width")}},O={isAlternate:!0};var v=function({value:e,onChange:t,controls:n,isToolbar:c,isCollapsed:s=!0}){const u=Object(h.a)(n);if(!!!u.length)return null;function d(n){t([e,"none"].includes(n)?void 0:n)}const b=g[e],p=g.none,m=c?a.ToolbarGroup:a.ToolbarDropdownMenu,f={popoverProps:O,icon:b?b.icon:p.icon,label:Object(l.__)("Align"),toggleProps:{describedBy:Object(l.__)("Change alignment")}},v=c||r.Platform.isNative?{isCollapsed:c?s:void 0,controls:u.map(({name:t})=>({...g[t],isActive:e===t||!e&&"none"===t,role:s?"menuitemradio":void 0,onClick:()=>d(t)}))}:{children:({onClose:t})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},u.map(({name:n,info:o})=>{const{icon:c,title:l}=g[n],s=n===e||!e&&"none"===n;return Object(r.createElement)(a.MenuItem,{key:n,icon:c,iconPosition:"left",className:i()("components-dropdown-menu__menu-item",{"is-active":s}),isSelected:s,onClick:()=>{d(n),t()},role:"menuitemradio",info:o},l)})))};return Object(r.createElement)(m,Object(o.a)({},f,v))};function j(e){return Object(r.createElement)(v,Object(o.a)({},e,{isToolbar:!1}))}function k(e){return Object(r.createElement)(v,Object(o.a)({},e,{isToolbar:!0}))}},w8sn:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n("wx14"),r=n("GRId"),c=n("PPMp");const i={type:"default"},l=Object(r.createContext)(i),a=l.Provider;function s(){return Object(r.useContext)(l)}function u({layout:e={},...t}){const n=Object(c.a)(e.type);return n?Object(r.createElement)(n.save,Object(o.a)({layout:e},t)):null}},w95h:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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},wC17:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("1ZqX"),r=n("HSyU"),c=n("BhPs");function i(e){return Object(o.useSelect)(t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(c.a),{getBlockType:i,getActiveBlockVariation:l}=t(r.store),a=n(e),s=i(a);if(!s)return null;const u=o(e),d=l(a,u),b={title:s.title,icon:s.icon,description:s.description,anchor:null==u?void 0:u.anchor};return d?{title:d.title||s.title,icon:d.icon||s.icon,description:d.description||s.description}:b},[e])}},wJiJ:function(e,t,n){e.exports=n("1K8p")},weEX:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("GRId"),r=n("l3Sj"),c=n("tI+e"),i=n("RxS6");function l({value:e,onChange:t}){const n=function(e){return void 0!==e&&""!==e}(e),l=n?e:"";return Object(o.createElement)("div",{className:"block-editor-line-height-control"},Object(o.createElement)(c.TextControl,{autoComplete:"off",onKeyDown:e=>{const{keyCode:o}=e;o!==i.ZERO||n||(e.preventDefault(),t("0"))},onChange:e=>{if(n)return void t(e);let o=e;switch(e){case"0.1":o=1.6;break;case"0":o=1.4}t(o)},label:Object(r.__)("Line height"),placeholder:1.5,step:.1,type:"number",value:l,min:0}))}},"wiT/":function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("GOly");t.a=function({children:e}){const t=Object(r.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return Object(o.createElement)(c.a.Provider,{value:t},e)}},wx14:function(e,t,n){"use strict";function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return o}))},wzfx:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));t.a=c},xBDm:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),i=n("v5LD");function l({value:e,onChange:t,__unstableInputWidth:n="60px"}){const l=Object(r.__experimentalUseCustomUnits)({availableUnits:Object(i.a)("spacing.units")||["px","em","rem"],defaultValues:{px:"2",em:".2",rem:".2"}});return Object(o.createElement)(r.__experimentalUnitControl,{label:Object(c.__)("Letter-spacing"),value:e,__unstableInputWidth:n,units:l,onChange:t})}},xCFn:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o=n("GRId"),r=n("YLtl"),c=n("TSYQ"),i=n.n(c),l=n("HSyU"),a=n("tI+e"),s=n("1ZqX"),u=n("hF7m"),d=n("K9lf"),b=n("1CF3"),p=n("wx14"),m=n("xN+R"),f=n("RxS6"),h=n("gdqT"),g=n("l3Sj"),O=n("f8JO"),v=n("7SSY"),j=n("BhPs"),k=n("ZAjO"),_=n("wC17");var y=function({clientId:e,rootClientId:t,blockElement:n}){const r=Object(_.a)(e),c=Object(s.useSelect)(n=>{var o;const{getBlock:r,getBlockIndex:c,hasBlockMovingClientId:i,getBlockListSettings:l}=n(j.a),a=c(e,t),{name:s,attributes:u}=r(e);return{index:a,name:s,attributes:u,blockMovingMode:i(),orientation:null===(o=l(t))||void 0===o?void 0:o.orientation}},[e,t]),{index:u,name:d,attributes:y,blockMovingMode:E,orientation:C}=c,{setNavigationMode:S,removeBlock:w}=Object(s.useDispatch)(j.a),B=Object(o.useRef)(),I=Object(l.getBlockType)(d),x=Object(l.__experimentalGetAccessibleBlockLabel)(I,y,u+1,C);Object(o.useEffect)(()=>{B.current.focus(),Object(h.speak)(x)},[x]);const{hasBlockMovingClientId:T,getBlockIndex:P,getBlockRootClientId:R,getClientIdsOfDescendants:N,getSelectedBlockClientId:L,getMultiSelectedBlocksEndClientId:M,getPreviousBlockClientId:A,getNextBlockClientId:D}=Object(s.useSelect)(j.a),{selectBlock:F,clearSelectedBlock:z,setBlockMovingClientId:H,moveBlockToPosition:V}=Object(s.useDispatch)(j.a),G=i()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!E}),U=Object(g.__)("Drag");return Object(o.createElement)("div",{className:G},Object(o.createElement)(a.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(v.a,{icon:null==r?void 0:r.icon,showColors:!0})),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(k.a,{clientIds:[e]},e=>Object(o.createElement)(a.Button,Object(p.a)({icon:m.a,className:"block-selection-button_drag-handle","aria-hidden":"true",label:U,tabIndex:"-1"},e)))),Object(o.createElement)(a.FlexItem,null,Object(o.createElement)(a.Button,{ref:B,onClick:()=>S(!1),onKeyDown:function(t){const{keyCode:o}=t,r=o===f.UP,c=o===f.DOWN,i=o===f.LEFT,l=o===f.RIGHT,a=o===f.TAB,s=o===f.ESCAPE,u=o===f.ENTER,d=o===f.SPACE,p=t.shiftKey;if(o===f.BACKSPACE||o===f.DELETE)return w(e),void t.preventDefault();const m=L(),h=M(),g=A(h||m),O=D(h||m),v=a&&p||r,j=a&&!p||c,k=i,_=l;let y;if(v)y=g;else if(j)y=O;else if(k){var E;y=null!==(E=R(m))&&void 0!==E?E:m}else if(_){var C;y=null!==(C=N([m])[0])&&void 0!==C?C:m}const S=T();if(s&&S&&!t.defaultPrevented&&(H(null),t.preventDefault()),(u||d)&&S){const e=R(S),t=R(m),n=P(S,e);let o=P(m,t);n<o&&e===t&&(o-=1),V(S,e,t,o),F(S),H(null)}if(j||v||k||_)if(y)t.preventDefault(),F(y);else if(a&&m){let e;j?(e=b.focus.tabbable.findNext(n),e||(e=n.ownerDocument.defaultView.frameElement,e=b.focus.tabbable.findNext(e))):e=b.focus.tabbable.findPrevious(n),e&&(t.preventDefault(),e.focus(),z())}},label:x,className:"block-selection-button_select-button"},Object(o.createElement)(O.a,{clientId:e})))))},E=n("JUfZ"),C=n("qrxh"),S=n("PKbb"),w=n("2z9l");function B(e){const{isNavigationMode:t,isMultiSelecting:n,hasMultiSelection:o,isTyping:r,isCaretWithinFormattedText:c,getSettings:i,getLastMultiSelectedBlockClientId:l}=e(j.a);return{isNavigationMode:t(),isMultiSelecting:n(),isTyping:r(),isCaretWithinFormattedText:c(),hasMultiSelection:o(),hasFixedToolbar:i().hasFixedToolbar,lastClientId:l()}}function I({clientId:e,rootClientId:t,isValid:n,isEmptyDefaultBlock:r,capturingClientId:c,__unstablePopoverSlot:l,__unstableContentRef:p}){const{isNavigationMode:m,isMultiSelecting:f,isTyping:h,isCaretWithinFormattedText:g,hasMultiSelection:O,hasFixedToolbar:v,lastClientId:k}=Object(s.useSelect)(B,[]),_=Object(s.useSelect)(t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(j.a);if(!n())return!1;const c=o();return r(c.rootClientId)[c.index]===e},[e]),I=Object(d.useViewportMatch)("medium"),[x,T]=Object(o.useState)(!1),[P,R]=Object(o.useState)(!1),{stopTyping:N}=Object(s.useDispatch)(j.a),L=!h&&!m&&r&&n,M=m,A=!m&&!v&&I&&!L&&!f&&(!h||g),D=!(m||A||v||r);Object(u.useShortcut)("core/block-editor/focus-toolbar",()=>{T(!0),N(!0)},{isDisabled:!D}),Object(o.useEffect)(()=>{A||T(!1)},[A]);const F=Object(o.useRef)(),z=Object(S.a)(e),H=Object(S.a)(k),V=Object(S.a)(c),G=Object(w.a)(p);if(!(M||A||x||L))return null;let U=z;if(!U)return null;c&&(U=V);let W=U;if(O){if(!H)return null;W={top:U,bottom:H}}const q=L?"top left right":"top right left",{ownerDocument:K}=U,$=L?void 0:K.defaultView.frameElement||Object(b.getScrollContainer)(U)||K.body;return Object(o.createElement)(a.Popover,{ref:G,noArrow:!0,animate:!1,position:q,focusOnMount:!1,anchorRef:W,className:i()("block-editor-block-list__block-popover",{"is-insertion-point-visible":_}),__unstableStickyBoundaryElement:$,__unstableSlotName:l||null,__unstableBoundaryParent:!0,__unstableObserveElement:U,shouldAnchorIncludePadding:!0,__unstableEditorCanvasWrapper:null==p?void 0:p.current},(A||x)&&Object(o.createElement)("div",{onFocus:function(){R(!0)},onBlur:function(){R(!1)},tabIndex:-1,className:i()("block-editor-block-list__block-popover-inserter",{"is-visible":P})},Object(o.createElement)(C.a,{clientId:e,rootClientId:t,__experimentalIsQuick:!0})),(A||x)&&Object(o.createElement)(E.a,{focusOnMount:x,__experimentalInitialIndex:F.current,__experimentalOnIndexChange:e=>{F.current=e},key:e}),M&&Object(o.createElement)(y,{clientId:e,rootClientId:t,blockElement:U}),L&&Object(o.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(o.createElement)(C.a,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0})))}function x(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,getBlock:c,getBlockParents:i,__experimentalGetBlockListSettingsForBlocks:a}=e(j.a),s=t()||n();if(!s)return;const{name:u,attributes:d={},isValid:b}=c(s)||{},p=i(s),m=a(p),f=Object(r.find)(p,e=>{var t;return null===(t=m[e])||void 0===t?void 0:t.__experimentalCaptureToolbars});return{clientId:s,rootClientId:o(s),name:u,isValid:b,isEmptyDefaultBlock:u&&Object(l.isUnmodifiedDefaultBlock)({name:u,attributes:d}),capturingClientId:f}}function T({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=Object(s.useSelect)(x,[]);if(!n)return null;const{clientId:r,rootClientId:c,name:i,isValid:l,isEmptyDefaultBlock:a,capturingClientId:u}=n;return i?Object(o.createElement)(I,{clientId:r,rootClientId:c,isValid:l,isEmptyDefaultBlock:a,capturingClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t}):null}},"xN+R":function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(o.createElement)(r.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));t.a=c},xTGt:function(e,t){e.exports=window.wp.blob},xZzQ:function(e,t,n){"use strict";var o=n("GRId"),r=n("tI+e"),c=n("l3Sj"),i=n("1ZqX");const l=[Object(o.createInterpolateElement)(Object(c.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(o.createInterpolateElement)(Object(c.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:Object(o.createElement)("kbd",null)}),Object(c.__)("Drag files into the editor to automatically insert media blocks."),Object(c.__)("Change a block's type by pressing the block icon on the toolbar.")];var a=function(){const[e]=Object(o.useState)(Math.floor(Math.random()*l.length));return Object(o.createElement)(r.Tip,null,l[e])},s=n("HSyU"),u=n("GvwK"),d=n("REKd");var b=function({item:e}){var t,n;const{name:r,title:i,icon:l,description:a,initialAttributes:b}=e,p=Object(s.getBlockType)(r),m=Object(s.isReusableBlock)(e);return Object(o.createElement)("div",{className:"block-editor-inserter__preview-container"},Object(o.createElement)("div",{className:"block-editor-inserter__preview"},m||null!=p&&p.example?Object(o.createElement)("div",{className:"block-editor-inserter__preview-content"},Object(o.createElement)(d.a,{__experimentalPadding:16,viewportWidth:null!==(t=null===(n=p.example)||void 0===n?void 0:n.viewportWidth)&&void 0!==t?t:500,blocks:p.example?Object(s.getBlockFromExample)(e.name,{attributes:{...p.example.attributes,...b},innerBlocks:p.example.innerBlocks}):Object(s.createBlock)(r,b)})):Object(o.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},Object(c.__)("No Preview Available."))),!m&&Object(o.createElement)(u.a,{title:i,icon:l,description:a}))},p=n("YLtl"),m=n("K9lf"),f=n("6ZVF"),h=n("mdLt"),g=n("+G0a"),O=n("wiT/");const v=[];var j=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:r}){const[i,l,a,s]=Object(g.a)(e,t),u=Object(o.useMemo)(()=>Object(p.orderBy)(i,["frecency"],["desc"]).slice(0,6),[i]),d=Object(o.useMemo)(()=>i.filter(e=>!e.category),[i]),b=Object(o.useMemo)(()=>Object(p.flow)(e=>e.filter(e=>e.category&&"reusable"!==e.category),e=>Object(p.groupBy)(e,"category"))(i),[i]),j=Object(o.useMemo)(()=>{const e={...a};return Object.keys(a).forEach(t=>{e[t]=i.filter(e=>(e=>e.name.split("/")[0])(e)===t),0===e[t].length&&delete e[t]}),e},[i,a]);Object(o.useEffect)(()=>()=>n(null),[]);const k=Object(m.useAsyncList)(l),_=l.length===k.length,y=Object(o.useMemo)(()=>Object.entries(a),[a]),E=Object(m.useAsyncList)(_?y:v);return Object(o.createElement)(O.a,null,Object(o.createElement)("div",null,r&&!!u.length&&Object(o.createElement)(h.a,{title:Object(c._x)("Most used","blocks")},Object(o.createElement)(f.a,{items:u,onSelect:s,onHover:n,label:Object(c._x)("Most used","blocks")})),Object(p.map)(k,e=>{const t=b[e.slug];return t&&t.length?Object(o.createElement)(h.a,{key:e.slug,title:e.title,icon:e.icon},Object(o.createElement)(f.a,{items:t,onSelect:s,onHover:n,label:e.title})):null}),_&&d.length>0&&Object(o.createElement)(h.a,{className:"block-editor-inserter__uncategorized-blocks-panel",title:Object(c.__)("Uncategorized")},Object(o.createElement)(f.a,{items:d,onSelect:s,onHover:n,label:Object(c.__)("Uncategorized")})),Object(p.map)(E,([e,t])=>{const r=j[e];return r&&r.length?Object(o.createElement)(h.a,{key:e,title:t.title,icon:t.icon},Object(o.createElement)(f.a,{items:r,onSelect:s,onHover:n,label:t.title})):null})))},k=n("TSYQ"),_=n.n(k);var y=function({selectedCategory:e,patternCategories:t,onClickCategory:n,openPatternExplorer:i}){const l=Object(m.useViewportMatch)("medium","<"),a=_()("block-editor-inserter__panel-header","block-editor-inserter__panel-header-patterns");return Object(o.createElement)(r.Flex,{justify:"space-between",align:"start",gap:"4",className:a},Object(o.createElement)(r.FlexItem,{isBlock:!0},Object(o.createElement)(r.SelectControl,{className:"block-editor-inserter__panel-dropdown",label:Object(c.__)("Filter patterns"),hideLabelFromVision:!0,value:e.name,onChange:e=>{n(t.find(t=>e===t.name))},onBlur:e=>{null!=e&&e.relatedTarget||e.stopPropagation()},options:(()=>{const e=[];return t.map(t=>e.push({value:t.name,label:t.label})),e})()})),!l&&Object(o.createElement)(r.FlexItem,null,Object(o.createElement)(r.Button,{variant:"secondary",className:"block-editor-inserter__patterns-explorer-expand",label:Object(c.__)("Explore all patterns"),onClick:()=>i()},Object(c._x)("Explore","Label for showing all block patterns"))))},E=n("nQUx"),C=n("Fmc1");function S({selectedCategory:e,patternCategories:t,onClickCategory:n}){const c="block-editor-block-patterns-explorer__sidebar";return Object(o.createElement)("div",{className:c+"__categories-list"},t.map(({name:t,label:i})=>Object(o.createElement)(r.Button,{key:t,label:i,className:c+"__categories-list__item",isPressed:e===t,onClick:()=>{n(t)}},i)))}function w({filterValue:e,setFilterValue:t}){return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},Object(o.createElement)(r.SearchControl,{onChange:t,value:e,label:Object(c.__)("Search for patterns"),placeholder:Object(c.__)("Search")}))}var B=function({selectedCategory:e,patternCategories:t,onClickCategory:n,filterValue:r,setFilterValue:c}){return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},Object(o.createElement)(w,{filterValue:r,setFilterValue:c}),!r&&Object(o.createElement)(S,{selectedCategory:e,patternCategories:t,onClickCategory:n}))},I=n("gdqT"),x=n("LolH"),T=n("AORF"),P=n("pOGT");function R({filterValue:e,filteredBlockPatternsLength:t}){return e?Object(o.createElement)(r.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},Object(c.sprintf)(Object(c._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',t),t,e)):null}var N=function({filterValue:e,selectedCategory:t,patternCategories:n}){const r=Object(m.useDebounce)(I.speak,500),[i,l]=Object(T.a)({shouldFocusBlock:!0}),[a,,s]=Object(E.a)(l,i),u=Object(o.useMemo)(()=>n.map(e=>e.name),[n]),d=Object(o.useMemo)(()=>e?Object(P.b)(a,e):a.filter(e=>{var n,o;return"uncategorized"===t?!(null!==(n=e.categories)&&void 0!==n&&n.length)||e.categories.every(e=>!u.includes(e)):null===(o=e.categories)||void 0===o?void 0:o.includes(t)}),[e,t,a]);Object(o.useEffect)(()=>{if(!e)return;const t=d.length,n=Object(c.sprintf)(Object(c._n)("%d result found.","%d results found.",t),t);r(n)},[e,r]);const b=Object(m.useAsyncList)(d,{step:2}),p=!(null==d||!d.length);return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},p&&Object(o.createElement)(R,{filterValue:e,filteredBlockPatternsLength:d.length}),Object(o.createElement)(O.a,null,!p&&Object(o.createElement)(x.a,null),p&&Object(o.createElement)(C.a,{shownPatterns:b,blockPatterns:d,onClickPattern:s,isDraggable:!1})))};function L({initialCategory:e,patternCategories:t}){const[n,r]=Object(o.useState)(""),[c,i]=Object(o.useState)(null==e?void 0:e.name);return Object(o.createElement)("div",{className:"block-editor-block-patterns-explorer"},Object(o.createElement)(B,{selectedCategory:c,patternCategories:t,onClickCategory:i,filterValue:n,setFilterValue:r}),Object(o.createElement)(N,{filterValue:n,selectedCategory:c,patternCategories:t}))}var M=function({onModalClose:e,...t}){return Object(o.createElement)(r.Modal,{title:Object(c.__)("Patterns"),closeLabel:Object(c.__)("Close"),onRequestClose:e,isFullScreen:!0},Object(o.createElement)(L,t))};function A({rootClientId:e,onInsert:t,selectedCategory:n,populatedCategories:r}){const[c,,i]=Object(E.a)(t,e),l=Object(o.useCallback)(e=>{var t;if(null===(t=e.categories)||void 0===t||!t.length)return 1/0;const n=r.reduce((e,{name:t},n)=>(e[t]=n,e),{});return Math.min(...e.categories.map(e=>void 0!==n[e]?n[e]:1/0))},[r]),a=Object(o.useMemo)(()=>c.filter(e=>{var t;return"uncategorized"===n.name?l(e)===1/0:null===(t=e.categories)||void 0===t?void 0:t.includes(n.name)}),[c,n]),s=Object(o.useMemo)(()=>a.sort((e,t)=>l(e)-l(t)),[a,l]),u=Object(m.useAsyncList)(s);return a.length?Object(o.createElement)("div",{className:"block-editor-inserter__panel-content"},Object(o.createElement)(C.a,{shownPatterns:u,blockPatterns:a,onClickPattern:i,label:n.label,orientation:"vertical",isDraggable:!0})):null}var D=function({rootClientId:e,onInsert:t,onClickCategory:n,selectedCategory:r}){const[i,l]=Object(o.useState)(!1),[a,s]=Object(E.a)(),u=Object(o.useCallback)(e=>!(!e.categories||!e.categories.length)&&e.categories.some(e=>s.some(t=>t.name===e)),[s]),d=Object(o.useMemo)(()=>{const e=s.filter(e=>a.some(t=>{var n;return null===(n=t.categories)||void 0===n?void 0:n.includes(e.name)})).sort(({name:e},{name:t})=>[e,t].includes("featured")?"featured"===e?-1:1:0);return a.some(e=>!u(e))&&!e.find(e=>"uncategorized"===e.name)&&e.push({name:"uncategorized",label:Object(c._x)("Uncategorized")}),e},[a,s]),b=r||d[0];return Object(o.createElement)(o.Fragment,null,!i&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(y,{selectedCategory:b,patternCategories:d,onClickCategory:n,openPatternExplorer:()=>l(!0)}),Object(o.createElement)(A,{rootClientId:e,onInsert:t,selectedCategory:b,populatedCategories:d})),i&&Object(o.createElement)(M,{initialCategory:b,patternCategories:d,onModalClose:()=>l(!1)}))},F=n("Mmq9");function z({onHover:e,onInsert:t,rootClientId:n}){const[r,,,i]=Object(g.a)(n,t),l=Object(o.useMemo)(()=>r.filter(({category:e})=>"reusable"===e),[r]);return 0===l.length?Object(o.createElement)(x.a,null):Object(o.createElement)(h.a,{title:Object(c.__)("Reusable blocks")},Object(o.createElement)(f.a,{items:l,onSelect:i,onHover:e,label:Object(c.__)("Reusable blocks")}))}var H=function({rootClientId:e,onInsert:t,onHover:n}){return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(z,{onHover:n,onInsert:t,rootClientId:e}),Object(o.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},Object(o.createElement)("a",{className:"block-editor-inserter__manage-reusable-blocks",href:Object(F.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(c.__)("Manage Reusable blocks"))))},V=n("Wg7J");const G={name:"blocks",title:Object(c.__)("Blocks")},U={name:"patterns",title:Object(c.__)("Patterns")},W={name:"reusable",title:Object(c.__)("Reusable")};var q=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,onSelect:c}){const i=Object(o.useMemo)(()=>{const e=[G];return t&&e.push(U),n&&e.push(W),e},[G,t,U,n,W]);return Object(o.createElement)(r.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:c},e)},K=n("BhPs");t.a=function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:l,onSelect:s,showInserterHelpPanel:u,showMostUsedBlocks:d,__experimentalFilterValue:p="",shouldFocusBlock:m=!0}){const[f,h]=Object(o.useState)(p),[g,O]=Object(o.useState)(null),[v,k]=Object(o.useState)(null),[_,y,E]=Object(T.a)({rootClientId:e,clientId:t,isAppender:n,insertionIndex:l,shouldFocusBlock:m}),{showPatterns:C,hasReusableBlocks:S}=Object(i.useSelect)(e=>{var t;const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(K.a);return{showPatterns:!!n(_).length,hasReusableBlocks:!(null===(t=o().__experimentalReusableBlocks)||void 0===t||!t.length)}},[_]),w=Object(o.useCallback)((e,t,n)=>{y(e,t,n),s()},[y,s]),B=Object(o.useCallback)((e,t)=>{y(e,{patternName:t}),s()},[y,s]),I=Object(o.useCallback)(e=>{E(!!e),O(e)},[E,O]),x=Object(o.useCallback)(e=>{k(e)},[k]),P=Object(o.useMemo)(()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"block-editor-inserter__block-list"},Object(o.createElement)(j,{rootClientId:_,onInsert:w,onHover:I,showMostUsedBlocks:d})),u&&Object(o.createElement)("div",{className:"block-editor-inserter__tips"},Object(o.createElement)(r.VisuallyHidden,{as:"h2"},Object(c.__)("A tip for using the block editor")),Object(o.createElement)(a,null))),[_,w,I,f,d,u]),R=Object(o.useMemo)(()=>Object(o.createElement)(D,{rootClientId:_,onInsert:B,onClickCategory:x,selectedCategory:v}),[_,B,x,v]),N=Object(o.useMemo)(()=>Object(o.createElement)(H,{rootClientId:_,onInsert:w,onHover:I}),[_,w,I]),L=Object(o.useCallback)(e=>"blocks"===e.name?P:"patterns"===e.name?R:N,[P,R,N]);return Object(o.createElement)("div",{className:"block-editor-inserter__menu"},Object(o.createElement)("div",{className:"block-editor-inserter__main-area"},Object(o.createElement)("div",{className:"block-editor-inserter__content"},Object(o.createElement)(r.SearchControl,{className:"block-editor-inserter__search",onChange:e=>{g&&O(null),h(e)},value:f,label:Object(c.__)("Search for blocks and patterns"),placeholder:Object(c.__)("Search")}),!!f&&Object(o.createElement)(V.a,{filterValue:f,onSelect:s,onHover:I,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:l,showBlockDirectory:!0,shouldFocusBlock:m}),!f&&(C||S)&&Object(o.createElement)(q,{showPatterns:C,showReusableBlocks:S},L),!f&&!C&&!S&&P)),u&&g&&Object(o.createElement)(b,{item:g}))}},xkPd:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("l3Sj"),i=n("gdqT");t.a=Object(r.forwardRef)((function(e,t){const[n,l]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{n&&Object(i.speak)(Object(c.__)("Use left and right arrow keys to move through blocks"))},[n]),Object(r.createElement)("div",Object(o.a)({ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{l(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&l(!1)}},e))}))},yU1v:function(e,t,n){"use strict";var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),i=n.n(c),l=n("YLtl"),a=n("tI+e"),s=n("l3Sj"),u=n("hMaJ"),d=n("bVpQ"),b=n("Cn0l"),p=n("v5LD");const m=Object(s.__)("(%s: color %s)"),f=Object(s.__)("(%s: gradient %s)"),h=["colors","disableCustomColors","gradients","disableCustomGradients"],g=({colors:e,gradients:t,settings:n})=>n.map(({colorValue:n,gradientValue:o,label:c,colors:i,gradients:l},u)=>{if(!n&&!o)return null;let p;if(n){const t=Object(d.c)(i||e,n);p=Object(s.sprintf)(m,c.toLowerCase(),t&&t.name||n)}else{const e=Object(b.b)(l||t,n);p=Object(s.sprintf)(f,c.toLowerCase(),e&&e.name||o)}return Object(r.createElement)(a.ColorIndicator,{key:u,colorValue:n||o,"aria-label":p})}),O=({className:e,colors:t,gradients:n,disableCustomColors:c,disableCustomGradients:s,children:d,settings:b,title:p,showTitle:m=!0,__experimentalHasMultipleOrigins:f,...h})=>{if(Object(l.isEmpty)(t)&&Object(l.isEmpty)(n)&&c&&s&&Object(l.every)(b,e=>Object(l.isEmpty)(e.colors)&&Object(l.isEmpty)(e.gradients)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))return null;const O=Object(r.createElement)("span",{className:"block-editor-panel-color-gradient-settings__panel-title"},p,Object(r.createElement)(g,{colors:t,gradients:n,settings:b}));return Object(r.createElement)(a.PanelBody,Object(o.a)({className:i()("block-editor-panel-color-gradient-settings",e),title:m?O:void 0},h),b.map((e,i)=>Object(r.createElement)(u.a,Object(o.a)({showTitle:m,key:i,colors:t,gradients:n,disableCustomColors:c,disableCustomGradients:s,__experimentalHasMultipleOrigins:f},e))),d)};function v(){return{disableCustomColors:!Object(p.a)("color.custom"),disableCustomGradients:!Object(p.a)("color.customGradient")}}const j=e=>{const t=v();return t.colors=Object(p.a)("color.palette"),t.gradients=Object(p.a)("color.gradients"),Object(r.createElement)(O,Object(o.a)({},t,e))},k=e=>{const t=v(),n=Object(p.a)("color.palette.user"),c=Object(p.a)("color.palette.theme"),i=Object(p.a)("color.palette.core");t.colors=Object(r.useMemo)(()=>{const e=[];return i&&i.length&&e.push({name:Object(s.__)("Core"),colors:i}),c&&c.length&&e.push({name:Object(s.__)("Theme"),colors:c}),n&&n.length&&e.push({name:Object(s.__)("User"),colors:n}),e},[i,c,n]);const l=Object(p.a)("color.gradients.user"),a=Object(p.a)("color.gradients.theme"),u=Object(p.a)("color.gradients.core");return t.gradients=Object(r.useMemo)(()=>{const e=[];return u&&u.length&&e.push({name:Object(s.__)("Core"),gradients:u}),a&&a.length&&e.push({name:Object(s.__)("Theme"),gradients:a}),l&&l.length&&e.push({name:Object(s.__)("User"),gradients:l}),e},[l,a,u]),Object(r.createElement)(O,Object(o.a)({},t,e))};t.a=e=>Object(l.every)(h,t=>e.hasOwnProperty(t))?Object(r.createElement)(O,e):e.__experimentalHasMultipleOrigins?Object(r.createElement)(k,e):Object(r.createElement)(j,e)},ywyh:function(e,t){e.exports=window.wp.apiFetch},"z+q2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("YLtl"),r=n("GRId"),c=n("1CF3"),i=n("1ZqX"),l=n("OL6h"),a=n("BhPs");function s(e){const t=Object(r.useRef)(),n=function(e){return Object(i.useSelect)(t=>{const{getSelectedBlocksInitialCaretPosition:n,isMultiSelecting:o,isNavigationMode:r,isBlockSelected:c}=t(a.a);if(c(e)&&!o()&&!r())return n()},[e])}(e);return Object(r.useEffect)(()=>{if(null==n)return;if(!t.current)return;const{ownerDocument:e}=t.current;if(t.current.contains(e.activeElement))return;const r=c.focus.tabbable.find(t.current).filter(e=>Object(c.isTextField)(e)),i=-1===n,a=(i?o.last:o.first)(r)||t.current;Object(l.c)(t.current,a)?Object(c.placeCaretAtHorizontalEdge)(a,i):t.current.focus()},[n]),t}},zQI6:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("wx14"),r=n("GRId"),c=n("1ZqX"),i=n("K9lf"),l=n("BhPs");function a(){const{hasSelectedBlock:e,hasMultiSelection:t}=Object(c.useSelect)(l.a),{clearSelectedBlock:n}=Object(c.useDispatch)(l.a);return Object(i.useRefEffect)(o=>{function r(r){(e()||t())&&r.target===o&&n()}return o.addEventListener("mousedown",r),()=>{o.removeEventListener("mousedown",r)}},[e,t,n])}function s(e){return Object(r.createElement)("div",Object(o.a)({ref:a()},e))}},ziDm:function(e,t,n){"use strict";var o=n("GRId"),r=n("Tqx9");const c=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.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},zmSX:function(e,t,n){"use strict";var o=n("Cn0l");n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return o.b})),n.d(t,"c",(function(){return o.c})),n.d(t,"d",(function(){return o.d})),n.d(t,"e",(function(){return o.e}))},zt9T:function(e,t,n){"use strict";var o=n("jB5C");e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=o.getWindow(t));var r=n.allowHorizontalScroll,c=n.onlyScrollIfNeeded,i=n.alignWithTop,l=n.alignWithLeft,a=n.offsetTop||0,s=n.offsetLeft||0,u=n.offsetBottom||0,d=n.offsetRight||0;r=void 0===r||r;var b=o.isWindow(t),p=o.offset(e),m=o.outerHeight(e),f=o.outerWidth(e),h=void 0,g=void 0,O=void 0,v=void 0,j=void 0,k=void 0,_=void 0,y=void 0,E=void 0,C=void 0;b?(_=t,C=o.height(_),E=o.width(_),y={left:o.scrollLeft(_),top:o.scrollTop(_)},j={left:p.left-y.left-s,top:p.top-y.top-a},k={left:p.left+f-(y.left+E)+d,top:p.top+m-(y.top+C)+u},v=y):(h=o.offset(t),g=t.clientHeight,O=t.clientWidth,v={left:t.scrollLeft,top:t.scrollTop},j={left:p.left-(h.left+(parseFloat(o.css(t,"borderLeftWidth"))||0))-s,top:p.top-(h.top+(parseFloat(o.css(t,"borderTopWidth"))||0))-a},k={left:p.left+f-(h.left+O+(parseFloat(o.css(t,"borderRightWidth"))||0))+d,top:p.top+m-(h.top+g+(parseFloat(o.css(t,"borderBottomWidth"))||0))+u}),j.top<0||k.top>0?!0===i?o.scrollTop(t,v.top+j.top):!1===i?o.scrollTop(t,v.top+k.top):j.top<0?o.scrollTop(t,v.top+j.top):o.scrollTop(t,v.top+k.top):c||((i=void 0===i||!!i)?o.scrollTop(t,v.top+j.top):o.scrollTop(t,v.top+k.top)),r&&(j.left<0||k.left>0?!0===l?o.scrollLeft(t,v.left+j.left):!1===l?o.scrollLeft(t,v.left+k.left):j.left<0?o.scrollLeft(t,v.left+j.left):o.scrollLeft(t,v.left+k.left):c||((l=void 0===l||!!l)?o.scrollLeft(t,v.left+j.left):o.scrollLeft(t,v.left+k.left)))}}});