/*! This file is auto-generated */ !function(){var e={7078:function(e){e.exports=function(e){return e&&"__experimental"in e&&!1!==e.__experimental}},3827:function(e,t){var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var n=t.length,o=0;ot({displayAsDropdown:!a})}),a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Group by:"),options:[{label:(0,Je.__)("Year"),value:"yearly"},{label:(0,Je.__)("Month"),value:"monthly"},{label:(0,Je.__)("Week"),value:"weekly"},{label:(0,Je.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},at=()=>Qe({name:nt,metadata:tt,settings:ot});var rt=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),lt=n(4403),it=n.n(lt),st=window.wp.url,ct=window.wp.coreData,ut=window.wp.data;function mt(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function pt(){const{avatarURL:e}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const dt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var gt=function({value:e,onChange:t}){const[n,o]=(0,qe.useState)(),a=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(dt)}),[]);if(!a)return null;const r=a.map((e=>({label:e.name,value:e.id})));return(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("User"),help:(0,Je.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>o(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const ht=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),o&&(0,qe.createElement)(gt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),_t=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:a})=>{const r=(0,Ye.__experimentalUseBorderProps)(t),l=(0,st.addQueryArgs)((0,st.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(n,o,a,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,qe.createElement)("img",{src:l,alt:n.alt,className:it()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},bt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:a}=t,r=(0,Ye.useBlockProps)(),l=function({commentId:e}){const[t]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,ct.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:r,maxSize:l}=mt(a),i=pt();return{src:o?o[o.length-1]:i,minSize:r,maxSize:l,alt:n?(0,Je.sprintf)((0,Je.__)("%s Avatar"),n):(0,Je.__)("Default Avatar")}}({commentId:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n}))},ft=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:a,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:o}=(0,ut.useSelect)((o=>{const{getEditedEntityRecord:a,getUser:r}=o(ct.store);if(e)return{authorDetails:r(e)};const l=a("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,r=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:i}=mt(r),s=pt();return{src:a?a[a.length-1]:s,minSize:l,maxSize:i,alt:o?(0,Je.sprintf)((0,Je.__)("%s Avatar"),o?.name):(0,Je.__)("Default Avatar")}}({userId:e?.userId,postId:a,postType:r}),i=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),(0,qe.createElement)("div",null,e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})))};const vt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:yt}=vt,kt={icon:rt,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,qe.createElement)(bt,{...e}):(0,qe.createElement)(ft,{...e})}},xt=()=>Qe({name:yt,metadata:vt,settings:kt});var wt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Ct=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return(0,qe.createElement)("figure",null,(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}}],Et=window.wp.blob;var St=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),Bt=window.wp.notices,Tt=window.wp.compose;const Nt=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Pt="wp-embed";var It=window.lodash,Mt=n(3827),zt=n.n(Mt);function Rt(e,t){var n,o,a=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;le&&e.includes('class="wp-embedded-content"'),At=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:a,providerNameSlug:r,type:l,...i}=o;if(!a||!(0,je.getBlockType)(Ht))return;const s=(e=>(0,je.getBlockVariations)(Ht)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(a),c="wordpress"===r||l===Pt;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,je.createBlock)(Ht,{url:a,...i,...s.attributes});const u=(0,je.getBlockVariations)(Ht)?.find((({name:e})=>"wordpress"===e));return u&&n&&Lt(n.html)&&!c?(0,je.createBlock)(Ht,{url:a,...u.attributes,...t}):void 0},Vt=e=>{if(!e)return e;const t=Nt.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Dt(e,t,n=!0){if(!n)return Vt(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const a=o.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let n=0;n=o.ratio){return e-o.ratio>.1?Vt(t):zt()(Vt(t),o.className,"wp-has-aspect-ratio")}}}return t}const Ft=Rt(((e,t,n,o,a=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,It.kebabCase)((s||t).toLowerCase());return Lt(i)&&(l=Pt),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=c),(u=n)&&Nt.some((({className:e})=>u.includes(e)))||(r.className=Dt(i,n,o&&a)),r;var u})),$t=["audio"];var Gt=function({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:a,insertBlocksAfter:r}){const{id:l,autoplay:i,caption:s,loop:c,preload:u,src:m}=e,p=(0,Tt.usePrevious)(s),[d,g]=(0,qe.useState)(!!s),h=!l&&(0,Et.isBlobURL)(m),_=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().mediaUpload}),[]);(0,qe.useEffect)((()=>{if(!l&&(0,Et.isBlobURL)(m)){const e=(0,Et.getBlobByURL)(m);e&&_({filesList:[e],onFileChange:([e])=>x(e),onError:e=>k(e),allowedTypes:$t})}}),[]),(0,qe.useEffect)((()=>{s&&!p&&g(!0)}),[s,p]);const b=(0,qe.useCallback)((e=>{e&&!s&&e.focus()}),[s]);function f(e){return t=>{n({[e]:t})}}function v(e){if(e!==m){const t=At({attributes:{url:e}});if(void 0!==t&&o)return void o(t);n({src:e,id:void 0})}}(0,qe.useEffect)((()=>{a||s||g(!1)}),[a,s]);const{createErrorNotice:y}=(0,ut.useDispatch)(Bt.store);function k(e){y(e,{type:"snackbar"})}function x(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const w=it()(t,{"is-transient":h}),C=(0,Ye.useBlockProps)({className:w});return m?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{g(!d),d&&s&&n({caption:void 0})},icon:St,isPressed:d,label:d?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:$t,accept:"audio/*",onSelect:x,onSelectURL:v,onError:k})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:f("autoplay"),checked:i,help:function(e){return e?(0,Je.__)("Autoplay may cause usability issues for some users."):null}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:f("loop"),checked:c}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,Je.__)("Browser default")},{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}]}))),(0,qe.createElement)("figure",{...C},(0,qe.createElement)(Ke.Disabled,{isDisabled:!a},(0,qe.createElement)("audio",{controls:"controls",src:m})),h&&(0,qe.createElement)(Ke.Spinner,null),d&&(!Ye.RichText.isEmpty(s)||a)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:b,"aria-label":(0,Je.__)("Audio caption text"),placeholder:(0,Je.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))}))):(0,qe.createElement)("div",{...C},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:wt}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:$t,value:e,onError:k}))};const Ot={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform(e){const t=e[0];return(0,je.createBlock)("core/audio",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:a,wma:r}})=>e||t||n||o||a||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var Ut=Ot;const jt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:qt}=jt,Wt={icon:wt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ut,deprecated:Ct,edit:Gt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return r&&(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n,className:(0,Ye.__experimentalGetElementClassName)("caption")}))}},Zt=()=>Qe({name:qt,metadata:jt,settings:Wt});var Qt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),Kt=window.wp.privateApis;const{lock:Jt,unlock:Yt}=(0,Kt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-library"),{cleanEmptyObject:Xt}=Yt(Ye.privateApis);function en(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:Xt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const tn=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};const nn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:a,...r}=e;return{...r,style:t}},on=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return nn(o)},an={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))}},ln={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},sn=[rn,ln,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return"number"==typeof e?.border?.radius},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=r?.border?.radius,m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=it()("wp-block-button__link",m.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:u||void 0,...m.style},g=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:g})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:a,title:r,url:l}=e,i=it()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:a,target:n,rel:o})},migrate:tn},{supports:{align:!0,alignWide:!1},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,Tt.compose)(tn,nn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:it()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:a,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:u,title:m,url:p}=e,d=(0,Ye.getColorClassName)("color",u),g=!r&&(0,Ye.getColorClassName)("background-color",t),h=(0,Ye.__experimentalGetGradientClass)(i),_=it()("wp-block-button__link",{"has-text-color":u||a,[d]:d,"has-background":t||o||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),b={background:r||void 0,backgroundColor:g||r||i?void 0:o,color:d?void 0:a,borderRadius:n?n+"px":void 0};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:_,href:p,title:m,style:b,value:c,target:l,rel:s}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),tn(nn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:a,rel:r,text:l,textColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("color",i),m=(0,Ye.getColorClassName)("background-color",t),p=it()("wp-block-button__link",{"has-text-color":i||o,[u]:u,"has-background":t||n,[m]:m}),d={backgroundColor:m?void 0:n,color:u?void 0:o};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:a,rel:r}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:on,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,Ye.getColorClassName)("color",r),c=(0,Ye.getColorClassName)("background-color",a),u=it()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":a||l,[c]:c}),m={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:m,value:n}))}},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,qe.createElement)("div",{className:`align${a}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:i,value:n}))},migrate:on},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e;return(0,qe.createElement)("div",{className:`align${a}`,style:{backgroundColor:r}},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:n}))},migrate:on}];var cn=sn,un=window.wp.keycodes;var mn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var pn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const dn="noreferrer noopener";function gn({selectedWidth:e,setAttributes:t}){return(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Width settings")},(0,qe.createElement)(Ke.ButtonGroup,{"aria-label":(0,Je.__)("Button width")},[25,50,75,100].map((n=>(0,qe.createElement)(Ke.Button,{key:n,isSmall:!0,variant:n===e?"primary":void 0,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%")))))}var hn=function(e){const{attributes:t,setAttributes:n,className:o,isSelected:a,onReplace:r,mergeBlocks:l}=e,{textAlign:i,linkTarget:s,placeholder:c,rel:u,style:m,text:p,url:d,width:g}=t,[h,_]=(0,qe.useState)(null),b=(0,Ye.__experimentalUseBorderProps)(t),f=(0,Ye.__experimentalUseColorProps)(t),v=(0,Ye.__experimentalGetSpacingClassesAndStyles)(t),y=(0,qe.useRef)(),k=(0,qe.useRef)(),x=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([_,y]),onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")?B(e):un.isKeyboardEvent.primaryShift(e,"k")&&(T(),k.current?.focus())}}),[w,C]=(0,qe.useState)(!1),E=!!d,S="_blank"===s;function B(e){e.preventDefault(),C(!0)}function T(){n({url:void 0,linkTarget:void 0,rel:void 0}),C(!1)}return(0,qe.useEffect)((()=>{a||C(!1)}),[a]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...x,className:it()(x.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":x.style.fontSize})},(0,qe.createElement)(Ye.RichText,{ref:k,"aria-label":(0,Je.__)("Button text"),placeholder:c||(0,Je.__)("Add text…"),value:p,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:it()(o,"wp-block-button__link",f.className,b.className,{[`has-text-align-${i}`]:i,"no-border-radius":0===m?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),style:{...b.style,...f.style,...v.style},onSplit:e=>(0,je.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),!E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:B}),E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:pn,title:(0,Je.__)("Unlink"),shortcut:un.displayShortcut.primaryShift("k"),onClick:T,isActive:!0})),a&&(w||E)&&(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:()=>{C(!1),k.current?.focus()},anchor:h,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:d,opensInNewTab:S},onChange:({url:e="",opensInNewTab:t})=>{n({url:(0,st.prependHTTP)(e)}),S!==t&&function(e){const t=e?"_blank":void 0;let o=u;t&&!u?o=dn:t||u!==dn||(o=void 0),n({linkTarget:t,rel:o})}(t)},onRemove:()=>{T(),k.current?.focus()},forceIsEditingLink:w})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(gn,{selectedWidth:g,setAttributes:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:u||"",onChange:e=>n({rel:e})})))};const _n={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a",attribute:"title",__experimentalRole:"content"},text:{type:"string",source:"html",selector:"a",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:!0,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:bn}=_n,fn={icon:Qt,example:{attributes:{className:"is-style-fill",text:(0,Je.__)("Call to Action")}},edit:hn,save:function({attributes:e,className:t}){const{textAlign:n,fontSize:o,linkTarget:a,rel:r,style:l,text:i,title:s,url:c,width:u}=e;if(!i)return null;const m=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ye.__experimentalGetColorClassesAndStyles)(e),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=it()("wp-block-button__link",p.className,m.className,{[`has-text-align-${n}`]:n,"no-border-radius":0===l?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),h={...m.style,...p.style,...d.style},_=it()(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||l?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:_})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:g,href:c,title:s,style:h,value:i,target:a,rel:r}))},deprecated:cn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},vn=()=>Qe({name:bn,metadata:_n,settings:fn});var yn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"}));const kn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},xn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:kn,save({attributes:{contentJustification:e,orientation:t}}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:it()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.InnerBlocks.Content,null))},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return kn({...e,align:void 0,contentJustification:e.align})}}];var wn=xn,Cn=window.wp.richText;const{name:En}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},Sn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>(0,je.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),a=o?.getAttribute("href");return(0,je.createBlock)("core/button",{text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var Bn=Sn;const Tn=[bn],Nn={name:bn,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Pn=function({attributes:e,className:t}){var n;const{fontSize:o,layout:a,style:r}=e,l=(0,Ye.useBlockProps)({className:it()(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[bn]}),[]),s=(0,Ye.useInnerBlocksProps)(l,{allowedBlocks:Tn,__experimentalDefaultBlock:Nn,__experimentalDirectInsert:!0,template:[[bn,{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=a?.orientation)&&void 0!==n?n:"horizontal"});return(0,qe.createElement)("div",{...s})};const In={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Mn}=In,zn={icon:yn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,Je.__)("Find out more")}},{name:"core/button",attributes:{text:(0,Je.__)("Contact us")}}]},deprecated:wn,transforms:Bn,edit:Pn,save:function({attributes:e,className:t}){const{fontSize:n,style:o}=e,a=Ye.useBlockProps.save({className:it()(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})}},Rn=()=>Qe({name:Mn,metadata:In,settings:zn});var Hn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const Ln=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var An={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/archives")}]};const Vn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-calendar"},{name:Dn}=Vn,Fn={icon:Hn,example:{},edit:function({attributes:e}){const t=(0,Ye.useBlockProps)(),{date:n,hasPosts:o,hasPostsResolved:a}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(ct.store),o={status:"publish",per_page:1},a=t("postType","post",o),r=n("getEntityRecords",["postType","post",o]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===a?.length}}),[]);return o?(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/calendar",attributes:{...e,...Ln(n)}}))):(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Placeholder,{icon:Hn,label:(0,Je.__)("Calendar")},a?(0,Je.__)("No published posts found."):(0,qe.createElement)(Ke.Spinner,null)))},transforms:An},$n=()=>Qe({name:Dn,metadata:Vn,settings:Fn});var Gn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),On=window.wp.htmlEntities;var Un=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:qn}=jn,Wn={icon:Gn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o,showOnlyTopLevel:a,showEmpty:r},setAttributes:l,className:i}){const s=(0,Tt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};a&&(c.parent=0);const{records:u,isResolving:m}=(0,ct.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,On.decodeEntities)(e).trim():(0,Je.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:a,link:r,count:l,name:i}=e;return(0,qe.createElement)("li",{key:a,className:`cat-item cat-item-${a}`},(0,qe.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),o&&` (${l})`,n&&!!t.length&&(0,qe.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},_=(e,t)=>{const{id:a,count:r,name:l}=e,i=p(a);return[(0,qe.createElement)("option",{key:a,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),o&&` (${r})`),n&&!!i.length&&i.map((e=>_(e,t+1)))]},b=!u?.length||t||m?"div":"ul",f=it()(i,{"wp-block-categories-list":!!u?.length&&!t&&!m,"wp-block-categories-dropdown":!!u?.length&&t&&!m}),v=(0,Ye.useBlockProps)({className:f});return(0,qe.createElement)(b,{...v},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),m&&(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Categories")},(0,qe.createElement)(Ke.Spinner,null)),!m&&0===u?.length&&(0,qe.createElement)("p",null,(0,Je.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!m&&u?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.VisuallyHidden,{as:"label",htmlFor:s},(0,Je.__)("Categories")),(0,qe.createElement)("select",{id:s},(0,qe.createElement)("option",null,(0,Je.__)("Select Category")),e.map((e=>_(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},Zn=()=>Qe({name:qn,metadata:jn,settings:Wn});var Qn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));var Kn=({clientId:e})=>{const{replaceBlocks:t}=(0,ut.useDispatch)(Ye.store),n=(0,ut.useSelect)((t=>t(Ye.store).getBlock(e)),[e]);return(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>t(n.clientId,(0,je.rawHandler)({HTML:(0,je.serialize)(n)}))},(0,Je.__)("Convert to blocks"))};function Jn(e){const t=(0,ut.useSelect)((e=>e(Ye.store).getSettings().styles));return(0,qe.useEffect)((()=>{const{baseURL:n,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,qe.createElement)("textarea",{...e})}function Yn(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:a}=e,[r,l]=(0,qe.useState)(!1),i=`editor-${t}`,s=()=>n?l(!1):a([]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>l(!0)},(0,Je.__)("Edit")))),n&&(0,qe.createElement)(qe.RawHTML,null,n),(r||!n)&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.__)("Classic Editor"),onRequestClose:s,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal"},(0,qe.createElement)(Jn,{id:i,defaultValue:n}),(0,qe.createElement)(Ke.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:s},(0,Je.__)("Cancel"))),(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(i)}),l(!1)}},(0,Je.__)("Save"))))))}const{wp:Xn}=window;function eo({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:a}=(0,ut.useSelect)(Ye.store),r=(0,qe.useRef)(!1);return(0,qe.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),o=n?.getContent();o!==t&&n.setContent(t||"")}),[t]),(0,qe.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),o=t.scrollTop;return a()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==o&&(t.scrollTop=o))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,Tt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{un.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==un.BACKSPACE&&t.keyCode!==un.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(o([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===un.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;Xn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Xn.oldEditor.remove(`editor-${e}`)}}),[]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,Je.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,qe.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:no}=to,oo={icon:Qn,edit:function(e){const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).canRemoveBlock(t)),[t]),[o,a]=(0,qe.useState)(!1),r=(0,Tt.useRefEffect)((e=>{a(e.ownerDocument!==document)}),[]);return(0,qe.createElement)(qe.Fragment,null,n&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Kn,{clientId:t}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({ref:r})},o?(0,qe.createElement)(Yn,{...e}):(0,qe.createElement)(eo,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)(qe.RawHTML,null,t)}},ao=()=>Qe({name:no,metadata:to,settings:oo});var ro=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));function lo(e){return e.replace(/\[/g,"[")}function io(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var so={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,je.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/paragraph",{content:e.replace(/\n/g,"
")})}]};const co={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-code"},{name:uo}=co,mo={icon:ro,example:{attributes:{content:(0,Je.__)("// A “block” is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},transforms:so,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=(0,Ye.useBlockProps)();return(0,qe.createElement)("pre",{...o},(0,qe.createElement)(Ye.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:(0,Je.__)("Write code…"),"aria-label":(0,Je.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{tagName:"code",value:(t=e.content,(0,Tt.pipe)(lo,io)(t||""))}));var t}},po=()=>Qe({name:uo,metadata:co,settings:mo});var go=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));const ho=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:n+"%"};return(0,qe.createElement)("div",{className:o,style:a},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var _o=ho;var bo=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:o},setAttributes:a,clientId:r}){const l=it()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,ut.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Ye.store),o=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:o,columnsIds:t(o)}}),[r]),{updateBlockAttributes:m}=(0,ut.useDispatch)(Ye.store),p=Number.isFinite(t)?t+"%":t,d=(0,Ye.useBlockProps)({className:l,style:p?{flexBasis:p}:void 0}),g=s.length,h=s.indexOf(r)+1,_=(0,Je.sprintf)((0,Je.__)("%1$s (%2$d of %3$d)"),d["aria-label"],h,g),b=(0,Ye.useInnerBlocksProps)({...d,"aria-label":_},{templateLock:n,allowedBlocks:o,renderAppender:c?void 0:Ye.InnerBlocks.ButtonBlockAppender});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),m(u,{verticalAlignment:null})},value:e})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Column settings")},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),(0,qe.createElement)("div",{...b}))};const fo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0}},{name:vo}=fo,yo={icon:go,edit:bo,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t});let a;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}a={flexBasis:e}}const r=Ye.useBlockProps.save({className:o,style:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("div",{...l})},deprecated:_o},ko=()=>Qe({name:vo,metadata:fo,settings:yo});var xo=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function wo(e){let t,{doc:n}=wo;n||(n=document.implementation.createHTMLDocument(""),wo.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Co=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:a,customTextColor:r}=e,l=(0,Ye.getColorClassName)("background-color",n),i=(0,Ye.getColorClassName)("color",a),s=it()({"has-background":n||o,"has-text-color":a||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:o,color:i?void 0:r};return(0,qe.createElement)("div",{className:s||void 0,style:c},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==wo(e.originalContent)))},migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=wo(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,je.createBlock)("core/column",{},e))),{columns:o,...a}=e;return[{...a,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,qe.createElement)("div",{className:`has-${t}-columns`},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...o}=e;return[e={...o,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=it()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,qe.createElement)("div",{className:o},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const Eo=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function So(e,t){const{width:n=100/t}=e.attributes;return Eo(n)}function Bo(e,t,n=e.length){const o=function(e,t=e.length){return e.reduce(((e,n)=>e+So(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const o=So(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}(e,n)).map((([e,n])=>[e,Eo(t*n/o)])))}function To(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const No=["core/column"];const Po=(0,ut.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:a,setAttributes:r}=t,{updateBlockAttributes:l}=e(Ye.store),{getBlockOrder:i}=n.select(Ye.store);r({verticalAlignment:o});i(a).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,a){const{clientId:r}=t,{replaceInnerBlocks:l}=e(Ye.store),{getBlocks:i}=n.select(Ye.store);let s=i(r);const c=s.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const u=a>o;if(u&&c){const e=Eo(100/a);s=[...To(s,Bo(s,100-e)),...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column")))];else if(a{const{canInsertBlockType:t,canRemoveBlock:n,getBlocks:o,getBlockCount:r}=e(Ye.store),l=o(a).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:r(a),canInsertColumnBlock:t("core/column",a),minCount:Math.max(...l)+1}}),[a]),m=it()({[`are-vertically-aligned-${l}`]:l,"is-not-stacked-on-mobile":!r}),p=(0,Ye.useBlockProps)({className:m}),d=(0,Ye.useInnerBlocksProps)(p,{allowedBlocks:No,orientation:"horizontal",renderAppender:!1,templateLock:i});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:n,value:l})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,c&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s,onChange:e=>o(s,Math.max(u,e)),min:Math.max(1,u),max:Math.max(6,s)}),s>6&&(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})}))),(0,qe.createElement)("div",{...d}))}));function Io({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:a,variations:r}=(0,ut.useSelect)((e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=e(je.store);return{blockType:o(t),defaultVariation:a(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:r,onSelect:(t=a)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var Mo=e=>{const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).getBlocks(t).length>0),[t])?Po:Io;return(0,qe.createElement)(n,{...e})};var zo=[{name:"one-column-full",title:(0,Je.__)("100"),description:(0,Je.__)("One column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,Je.__)("50 / 50"),description:(0,Je.__)("Two columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,Je.__)("33 / 66"),description:(0,Je.__)("Two columns; one-third, two-thirds split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,Je.__)("66 / 33"),description:(0,Je.__)("Two columns; two-thirds, one-third split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,Je.__)("33 / 33 / 33"),description:(0,Je.__)("Three columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,Je.__)("25 / 50 / 25"),description:(0,Je.__)("Three columns; wide center column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Ro={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:`${t}%`},[[e,{...n},o]]]));return(0,je.createBlock)("core/columns",{},(0,je.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:a,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,je.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:a,style:r,verticalAlignment:d},(0,je.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var Ho=Ro;const Lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Ao}=Lo,Vo={icon:xo,variations:zo,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Co,edit:Mo,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=it()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),a=Ye.useBlockProps.save({className:o}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})},transforms:Ho},Do=()=>Qe({name:Ao,metadata:Lo,settings:Vo});var Fo=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));var $o=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=Ye.useBlockProps.save(),{className:n}=t,o=n?.split(" ")||[],a=o?.filter((e=>"wp-block-comments"!==e)),r={...t,className:a.join(" ")};return(0,qe.createElement)(e,{...r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];function Go({attributes:{tagName:e},setAttributes:t}){const n={section:(0,Je.__)("The
element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The