/*! This file is auto-generated */ !function(){var e={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;oa?(s=r/a,l=c,i=Math.round(l/s)):(s=a/r,i=c,l=Math.round(i/s)),(l>r||i>a||lo?-1:n===o?0:1})),p=o(d[0],5),g=p[0],h=p[1],v=p[2],b=p[3],y=p[4];return b?[Math.round(g/b),Math.round(h/b),Math.round(v/b),Math.round(b/y)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,n){var o=this,r=(n=n||{})&&n.data,a=this._getDefaultColor(n),l=function(){c(),t.call(e,o.getColor(e,n),r)},i=function(){c(),t.call(e,o._prepareResult(a,new Error("Image error")),r)},s=function(){c(),t.call(e,o._prepareResult(a,new Error("Image abort")),r)},c=function(){e.removeEventListener("load",l),e.removeEventListener("error",i),e.removeEventListener("abort",s)};e.addEventListener("load",l),e.addEventListener("error",i),e.addEventListener("abort",s)}},{key:"_prepareResult",value:function(e,t){var n=e.slice(0,3),o=[].concat(n,e[3]/255),r=this._isDark(e);return{error:t,value:e,rgb:"rgb("+n.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:this._arrayToHex(n),hexa:this._arrayToHex(e),isDark:r,isLight:!r}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}]),t}()}()},9756:function(e){e.exports=function(e,t){var n,o,r=0;function a(){var a,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;ln({displayAsDropdown:!r})}),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Show post counts"),checked:o,onChange:()=>n({showPostCounts:!o})}),(0,Ve.createElement)(De.SelectControl,{label:(0,Fe.__)("Group by:"),options:[{label:(0,Fe.__)("Year"),value:"yearly"},{label:(0,Fe.__)("Month"),value:"monthly"},{label:(0,Fe.__)("Week"),value:"weekly"},{label:(0,Fe.__)("Day"),value:"daily"}],value:a,onChange:e=>n({type:e})}))),(0,Ve.createElement)("div",(0,$e.useBlockProps)(),(0,Ve.createElement)(De.Disabled,null,(0,Ve.createElement)(Ue(),{block:"core/archives",attributes:t}))))}};var je=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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"}));function Ze(){return Ze=Object.assign||function(e){for(var t=1;t{const{getSettings:t}=e($e.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const nt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var ot=function(e){let{value:t,onChange:n}=e;const[o,r]=(0,Ve.useState)(),a=(0,Xe.useSelect)((e=>{const{getUsers:t}=e(Ye.store);return t(nt)}),[]);if(!a)return null;const l=a.map((e=>({label:e.name,value:e.id})));return(0,Ve.createElement)(De.ComboboxControl,{label:(0,Fe.__)("User"),help:(0,Fe.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:t,onChange:n,options:o||l,onFilterValueChange:e=>r(l.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const rt=e=>{let{setAttributes:t,avatar:n,attributes:o,selectUser:r}=e;return(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Settings")},(0,Ve.createElement)(De.RangeControl,{label:(0,Fe.__)("Image size"),onChange:e=>t({size:e}),min:n.minSize,max:n.maxSize,initialPosition:null==o?void 0:o.size,value:null==o?void 0:o.size}),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Link to user profile"),onChange:()=>t({isLink:!o.isLink}),checked:o.isLink}),o.isLink&&(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===o.linkTarget}),r&&(0,Ve.createElement)(ot,{value:null==o?void 0:o.userId,onChange:e=>{t({userId:e})}})))},at=e=>{let{setAttributes:t,attributes:n,avatar:o,blockProps:r,isSelected:a}=e;const l=(0,$e.__experimentalUseBorderProps)(n),i=(0,Je.addQueryArgs)((0,Je.removeQueryArgs)(null==o?void 0:o.src,["s"]),{s:2*(null==n?void 0:n.size)});return(0,Ve.createElement)("div",r,(0,Ve.createElement)(De.ResizableBox,{size:{width:n.size,height:n.size},showHandle:a,onResizeStop:(e,o,r,a)=>{t({size:parseInt(n.size+(a.height||a.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Fe.isRTL)(),bottom:!0,left:(0,Fe.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize},(0,Ve.createElement)("img",Ze({src:i,alt:o.alt},l,{className:Ke()("avatar","avatar-"+n.size,"photo","wp-block-avatar__image",l.className),style:{...l.style}}))))},lt=e=>{let{attributes:t,context:n,setAttributes:o,isSelected:r}=e;const{commentId:a}=n,l=(0,$e.useBlockProps)(),i=function(e){let{commentId:t}=e;const[n]=(0,Ye.useEntityProp)("root","comment","author_avatar_urls",t),[o]=(0,Ye.useEntityProp)("root","comment","author_name",t),r=n?Object.values(n):null,a=n?Object.keys(n):null,{minSize:l,maxSize:i}=et(a),s=tt();return{src:r?r[r.length-1]:s,minSize:l,maxSize:i,alt:o?(0,Fe.sprintf)((0,Fe.__)("%s Avatar"),o):(0,Fe.__)("Default Avatar")}}({commentId:a});return(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)(rt,{avatar:i,setAttributes:o,attributes:t,selectUser:!1}),t.isLink?(0,Ve.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ve.createElement)(at,{attributes:t,avatar:i,blockProps:l,isSelected:r,setAttributes:o})):(0,Ve.createElement)(at,{attributes:t,avatar:i,blockProps:l,isSelected:r,setAttributes:o}))},it=e=>{let{attributes:t,context:n,setAttributes:o,isSelected:r}=e;const{postId:a,postType:l}=n,i=function(e){let{userId:t,postId:n,postType:o}=e;const{authorDetails:r}=(0,Xe.useSelect)((e=>{var r;const{getEditedEntityRecord:a,getUser:l}=e(Ye.store);if(t)return{authorDetails:l(t)};const i=null===(r=a("postType",o,n))||void 0===r?void 0:r.author;return{authorDetails:i?l(i):null}}),[o,n,t]),a=r?Object.values(r.avatar_urls):null,l=r?Object.keys(r.avatar_urls):null,{minSize:i,maxSize:s}=et(l),c=tt();return{src:a?a[a.length-1]:c,minSize:i,maxSize:s,alt:r?(0,Fe.sprintf)((0,Fe.__)("%s Avatar"),null==r?void 0:r.name):(0,Fe.__)("Default Avatar")}}({userId:null==t?void 0:t.userId,postId:a,postType:l}),s=(0,$e.useBlockProps)();return(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)(rt,{selectUser:!0,attributes:t,avatar:i,setAttributes:o}),(0,Ve.createElement)("div",null,t.isLink?(0,Ve.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,Ve.createElement)(at,{attributes:t,avatar:i,blockProps:s,isSelected:r,setAttributes:o})):(0,Ve.createElement)(at,{attributes:t,avatar:i,blockProps:s,isSelected:r,setAttributes:o})))};const st={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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},__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",style:"wp-block-avatar"},{name:ct}=st,ut={icon:je,edit:function(e){var t,n;return null!=e&&null!==(t=e.context)&&void 0!==t&&t.commentId||null===(null==e||null===(n=e.context)||void 0===n?void 0:n.commentId)?(0,Ve.createElement)(lt,e):(0,Ve.createElement)(it,e)}};var mt=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.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"})),dt=[{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(e){let{attributes:t}=e;const{autoplay:n,caption:o,loop:r,preload:a,src:l}=t;return(0,Ve.createElement)("figure",null,(0,Ve.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:r,preload:a}),!$e.RichText.isEmpty(o)&&(0,Ve.createElement)($e.RichText.Content,{tagName:"figcaption",value:o}))}}],pt=window.wp.blob;const gt=[{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"}],ht="wp-embed";var vt=window.lodash,bt=n(3827),yt=n.n(bt),_t=n(9756),ft=n.n(_t);const{name:kt}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption"},type:{type:"string"},providerNameSlug:{type:"string"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1},previewable:{type:"boolean",default:!0}},supports:{align:!0},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},wt=e=>{var t;return null===(t=(0,Re.getBlockVariations)(kt))||void 0===t?void 0:t.find((t=>{let{patterns:n}=t;return function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((t=>e.match(t)))}(e,n)}))},xt=e=>e&&e.includes('class="wp-embedded-content"'),Et=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{preview:o,attributes:r={}}=e,{url:a,providerNameSlug:l,type:i,...s}=r;if(!a||!(0,Re.getBlockType)(kt))return;const c=wt(a),u="wordpress"===l||i===ht,m=!u&&c&&(c.attributes.providerNameSlug!==l||!l);if(m)return(0,Re.createBlock)(kt,{url:a,...s,...c.attributes});const d=null===(t=(0,Re.getBlockVariations)(kt))||void 0===t?void 0:t.find((e=>{let{name:t}=e;return"wordpress"===t}));return d&&o&&xt(o.html)&&!u?(0,Re.createBlock)(kt,{url:a,...d.attributes,...n}):void 0},Ct=e=>{if(!e)return e;const t=gt.reduce(((e,t)=>{let{className:n}=t;return e[n]=!1,e}),{"wp-has-aspect-ratio":!1});return yt()(e,t)};function St(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n)return Ct(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const r=o.body.querySelector("iframe");if(r&&r.height&&r.width){const e=(r.width/r.height).toFixed(2);for(let n=0;n=o.ratio){return e-o.ratio>.1?Ct(t):yt()(Ct(t),o.className,"wp-has-aspect-ratio")}}}return t}const Bt=ft()((function(e,t,n,o){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};const a={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,vt.kebabCase)((s||t).toLowerCase());return xt(i)&&(l=ht),(i||"photo"===l)&&(a.type=l,a.providerNameSlug=c),a.className=St(i,n,o&&r),a})),Tt=["audio"];var Nt=(0,De.withNotices)((function(e){let{attributes:t,className:n,noticeOperations:o,setAttributes:r,onReplace:a,isSelected:l,noticeUI:i,insertBlocksAfter:s}=e;const{id:c,autoplay:u,caption:m,loop:d,preload:p,src:g}=t,h=!c&&(0,pt.isBlobURL)(g),v=(0,Xe.useSelect)((e=>{const{getSettings:t}=e($e.store);return t().mediaUpload}),[]);function b(e){return t=>{r({[e]:t})}}function y(e){if(e!==g){const t=Et({attributes:{url:e}});if(void 0!==t&&a)return void a(t);r({src:e,id:void 0})}}function _(e){o.removeAllNotices(),o.createErrorNotice(e)}function f(e){e&&e.url?r({src:e.url,id:e.id}):r({src:void 0,id:void 0})}(0,Ve.useEffect)((()=>{if(!c&&(0,pt.isBlobURL)(g)){const e=(0,pt.getBlobByURL)(g);e&&v({filesList:[e],onFileChange:e=>{let[{id:t,url:n}]=e;r({id:t,src:n})},onError:e=>{r({src:void 0,id:void 0}),o.createErrorNotice(e)},allowedTypes:Tt})}}),[]);const k=Ke()(n,{"is-transient":h}),w=(0,$e.useBlockProps)({className:k});return g?(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)($e.BlockControls,{group:"other"},(0,Ve.createElement)($e.MediaReplaceFlow,{mediaId:c,mediaURL:g,allowedTypes:Tt,accept:"audio/*",onSelect:f,onSelectURL:y,onError:_})),(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Audio settings")},(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Autoplay"),onChange:b("autoplay"),checked:u,help:function(e){return e?(0,Fe.__)("Autoplay may cause usability issues for some users."):null}}),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Loop"),onChange:b("loop"),checked:d}),(0,Ve.createElement)(De.SelectControl,{label:(0,Fe._x)("Preload","noun; Audio block parameter"),value:p||"",onChange:e=>r({preload:e||void 0}),options:[{value:"",label:(0,Fe.__)("Browser default")},{value:"auto",label:(0,Fe.__)("Auto")},{value:"metadata",label:(0,Fe.__)("Metadata")},{value:"none",label:(0,Fe._x)("None","Preload value")}]}))),(0,Ve.createElement)("figure",w,(0,Ve.createElement)(De.Disabled,{isDisabled:!l},(0,Ve.createElement)("audio",{controls:"controls",src:g})),h&&(0,Ve.createElement)(De.Spinner,null),(!$e.RichText.isEmpty(m)||l)&&(0,Ve.createElement)($e.RichText,{tagName:"figcaption","aria-label":(0,Fe.__)("Audio caption text"),placeholder:(0,Fe.__)("Add caption"),value:m,onChange:e=>r({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>s((0,Re.createBlock)("core/paragraph"))}))):(0,Ve.createElement)("div",w,(0,Ve.createElement)($e.MediaPlaceholder,{icon:(0,Ve.createElement)($e.BlockIcon,{icon:mt}),onSelect:f,onSelectURL:y,accept:"audio/*",allowedTypes:Tt,value:t,notices:i,onError:_}))}));const Pt={from:[{type:"files",isMatch:e=>1===e.length&&0===e[0].type.indexOf("audio/"),transform(e){const t=e[0];return(0,Re.createBlock)("core/audio",{src:(0,pt.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:e=>{let{named:{src:t,mp3:n,m4a:o,ogg:r,wav:a,wma:l}}=e;return t||n||o||r||a||l}},loop:{type:"string",shortcode:e=>{let{named:{loop:t}}=e;return t}},autoplay:{type:"string",shortcode:e=>{let{named:{autoplay:t}}=e;return t}},preload:{type:"string",shortcode:e=>{let{named:{preload:t}}=e;return t}}}}]};var zt=Pt;const It={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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"},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:{anchor:!0,align:!0},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:Mt}=It,Lt={icon:mt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"}},transforms:zt,deprecated:dt,edit:Nt,save:function(e){let{attributes:t}=e;const{autoplay:n,caption:o,loop:r,preload:a,src:l}=t;return l&&(0,Ve.createElement)("figure",$e.useBlockProps.save(),(0,Ve.createElement)("audio",{controls:"controls",src:l,autoPlay:n,loop:r,preload:a}),!$e.RichText.isEmpty(o)&&(0,Ve.createElement)($e.RichText.Content,{tagName:"figcaption",value:o}))}};var Rt=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})),Vt=window.wp.compose;const At=e=>{if(!(0,vt.isObject)(e)||Array.isArray(e))return e;const t=(0,vt.pickBy)((0,vt.mapValues)(e,At),vt.identity);return(0,vt.isEmpty)(t)?void 0:t};var Ht=At;function Dt(e){var t,n;if(null==e||null===(t=e.style)||void 0===t||null===(n=t.typography)||void 0===n||!n.fontFamily)return e;const o=(0,vt.cloneDeep)(e),r=o.style.typography.fontFamily.split("|").pop();return delete o.style.typography.fontFamily,o.style=Ht(o.style),{...o,fontFamily:r}}const Ft=e=>{var t,n,o;const{borderRadius:r,...a}=e,l=[r,null===(t=a.style)||void 0===t||null===(n=t.border)||void 0===n?void 0:n.radius].find((e=>"number"==typeof e&&0!==e));return l?{...a,style:{...a.style,border:{...null===(o=a.style)||void 0===o?void 0:o.border,radius:`${l}px`}}}:a},$t=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient),{...(0,vt.omit)(e,["customTextColor","customBackgroundColor","customGradient"]),style:t}},Gt=e=>$t((0,vt.omit)({...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0},["color","textColor"])),Ut={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"}},Ot={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(e){var t,n;let{attributes:o,className:r}=e;const{fontSize:a,linkTarget:l,rel:i,style:s,text:c,title:u,url:m,width:d}=o;if(!c)return null;const p=(0,$e.__experimentalGetBorderClassesAndStyles)(o),g=(0,$e.__experimentalGetColorClassesAndStyles)(o),h=(0,$e.__experimentalGetSpacingClassesAndStyles)(o),v=Ke()("wp-block-button__link",g.className,p.className,{"no-border-radius":0===(null==s||null===(t=s.border)||void 0===t?void 0:t.radius)}),b={...p.style,...g.style,...h.style},y=Ke()(r,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":a||(null==s||null===(n=s.typography)||void 0===n?void 0:n.fontSize)});return(0,Ve.createElement)("div",$e.useBlockProps.save({className:y}),(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:v,href:m,title:u,style:b,value:c,target:l,rel:i}))},migrate:Dt,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}},qt=[Ot,{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:{...Ut,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(e){var t;let{style:n}=e;return"number"==typeof(null==n||null===(t=n.border)||void 0===t?void 0:t.radius)},save(e){var t,n,o;let{attributes:r,className:a}=e;const{fontSize:l,linkTarget:i,rel:s,style:c,text:u,title:m,url:d,width:p}=r;if(!u)return null;const g=null==c||null===(t=c.border)||void 0===t?void 0:t.radius,h=(0,$e.__experimentalGetColorClassesAndStyles)(r),v=Ke()("wp-block-button__link",h.className,{"no-border-radius":0===(null==c||null===(n=c.border)||void 0===n?void 0:n.radius)}),b={borderRadius:g||void 0,...h.style},y=Ke()(a,{[`has-custom-width wp-block-button__width-${p}`]:p,"has-custom-font-size":l||(null==c||null===(o=c.typography)||void 0===o?void 0:o.fontSize)});return(0,Ve.createElement)("div",$e.useBlockProps.save({className:y}),(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:v,href:d,title:m,style:b,value:u,target:i,rel:s}))},migrate:(0,Vt.compose)(Dt,Ft)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Ut,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(e){let{attributes:t,className:n}=e;const{borderRadius:o,linkTarget:r,rel:a,text:l,title:i,url:s,width:c}=t,u=(0,$e.__experimentalGetColorClassesAndStyles)(t),m=Ke()("wp-block-button__link",u.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...u.style},p=Ke()(n,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ve.createElement)("div",$e.useBlockProps.save({className:p}),(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:m,href:s,title:i,style:d,value:l,target:r,rel:a}))},migrate:(0,Vt.compose)(Dt,Ft)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Ut,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(e){let{attributes:t,className:n}=e;const{borderRadius:o,linkTarget:r,rel:a,text:l,title:i,url:s,width:c}=t,u=(0,$e.__experimentalGetColorClassesAndStyles)(t),m=Ke()("wp-block-button__link",u.className,{"no-border-radius":0===o}),d={borderRadius:o?o+"px":void 0,...u.style},p=Ke()(n,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ve.createElement)("div",$e.useBlockProps.save({className:p}),(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:m,href:s,title:i,style:d,value:l,target:r,rel:a}))},migrate:(0,Vt.compose)(Dt,Ft)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Ut,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(e){let{attributes:t}=e;const{borderRadius:n,linkTarget:o,rel:r,text:a,title:l,url:i}=t,s=Ke()("wp-block-button__link",{"no-border-radius":0===n}),c={borderRadius:n?n+"px":void 0};return(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:s,href:i,title:l,style:c,value:a,target:o,rel:r})},migrate:Ft},{supports:{align:!0,alignWide:!1},attributes:{...Ut,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,migrate:(0,Vt.compose)(Ft,$t),save(e){let{attributes:t}=e;const{backgroundColor:n,borderRadius:o,customBackgroundColor:r,customTextColor:a,customGradient:l,linkTarget:i,gradient:s,rel:c,text:u,textColor:m,title:d,url:p}=t,g=(0,$e.getColorClassName)("color",m),h=!l&&(0,$e.getColorClassName)("background-color",n),v=(0,$e.__experimentalGetGradientClass)(s),b=Ke()("wp-block-button__link",{"has-text-color":m||a,[g]:g,"has-background":n||r||l||s,[h]:h,"no-border-radius":0===o,[v]:v}),y={background:l||void 0,backgroundColor:h||l||s?void 0:r,color:g?void 0:a,borderRadius:o?o+"px":void 0};return(0,Ve.createElement)("div",null,(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:b,href:p,title:d,style:y,value:u,target:i,rel:c}))}},{attributes:{...Ut,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=>e.className&&e.className.includes("is-style-squared"),migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),Ft($t({...e,className:t||void 0,borderRadius:0}))},save(e){let{attributes:t}=e;const{backgroundColor:n,customBackgroundColor:o,customTextColor:r,linkTarget:a,rel:l,text:i,textColor:s,title:c,url:u}=t,m=(0,$e.getColorClassName)("color",s),d=(0,$e.getColorClassName)("background-color",n),p=Ke()("wp-block-button__link",{"has-text-color":s||r,[m]:m,"has-background":n||o,[d]:d}),g={backgroundColor:d?void 0:o,color:m?void 0:r};return(0,Ve.createElement)("div",null,(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:p,href:u,title:c,style:g,value:i,target:a,rel:l}))}},{attributes:{...Ut,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:Gt,save(e){let{attributes:t}=e;const{url:n,text:o,title:r,backgroundColor:a,textColor:l,customBackgroundColor:i,customTextColor:s}=t,c=(0,$e.getColorClassName)("color",l),u=(0,$e.getColorClassName)("background-color",a),m=Ke()("wp-block-button__link",{"has-text-color":l||s,[c]:c,"has-background":a||i,[u]:u}),d={backgroundColor:u?void 0:i,color:c?void 0:s};return(0,Ve.createElement)("div",null,(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:m,href:n,title:r,style:d,value:o}))}},{attributes:{...Ut,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:o,title:r,align:a,color:l,textColor:i}=t,s={backgroundColor:l,color:i};return(0,Ve.createElement)("div",{className:`align${a}`},(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:n,title:r,style:s,value:o}))},migrate:Gt},{attributes:{...Ut,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save(e){let{attributes:t}=e;const{url:n,text:o,title:r,align:a,color:l,textColor:i}=t;return(0,Ve.createElement)("div",{className:`align${a}`,style:{backgroundColor:l}},(0,Ve.createElement)($e.RichText.Content,{tagName:"a",href:n,title:r,style:{color:i},value:o}))},migrate:Gt}];var Wt=qt,jt=window.wp.keycodes;var Zt=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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"}));var Qt=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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"}));const Kt="noreferrer noopener";function Jt(e){let{selectedWidth:t,setAttributes:n}=e;return(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Width settings")},(0,Ve.createElement)(De.ButtonGroup,{"aria-label":(0,Fe.__)("Button width")},[25,50,75,100].map((e=>(0,Ve.createElement)(De.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>{var o;n({width:t===(o=e)?void 0:o})}},e,"%")))))}var Yt=function(e){var t;const{attributes:n,setAttributes:o,className:r,isSelected:a,onReplace:l,mergeBlocks:i}=e,{linkTarget:s,placeholder:c,rel:u,style:m,text:d,url:p,width:g}=n,h=(0,Ve.useCallback)((e=>{o({rel:e})}),[o]),v=(0,$e.__experimentalUseBorderProps)(n),b=(0,$e.__experimentalUseColorProps)(n),y=(0,$e.__experimentalGetSpacingClassesAndStyles)(n),_=(0,Ve.useRef)(),f=(0,Ve.useRef)(),k=(0,$e.useBlockProps)({ref:_,onKeyDown:function(e){if(jt.isKeyboardEvent.primary(e,"k"))S(e);else if(jt.isKeyboardEvent.primaryShift(e,"k")){var t;B(),null===(t=f.current)||void 0===t||t.focus()}}}),[w,x]=(0,Ve.useState)(!1),E=!!p,C="_blank"===s;function S(e){e.preventDefault(),x(!0)}function B(){o({url:void 0,linkTarget:void 0,rel:void 0}),x(!1)}return(0,Ve.useEffect)((()=>{a||x(!1)}),[a]),(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)("div",Ze({},k,{className:Ke()(k.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":k.style.fontSize})}),(0,Ve.createElement)($e.RichText,{ref:f,"aria-label":(0,Fe.__)("Button text"),placeholder:c||(0,Fe.__)("Add text…"),value:d,onChange:e=>{o({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:Ke()(r,"wp-block-button__link",b.className,v.className,{"no-border-radius":0===(null==m||null===(t=m.border)||void 0===t?void 0:t.radius)}),style:{...v.style,...b.style,...y.style},onSplit:e=>(0,Re.createBlock)("core/button",{...n,text:e}),onReplace:l,onMerge:i,identifier:"text"})),(0,Ve.createElement)($e.BlockControls,{group:"block"},!E&&(0,Ve.createElement)(De.ToolbarButton,{name:"link",icon:Zt,title:(0,Fe.__)("Link"),shortcut:jt.displayShortcut.primary("k"),onClick:S}),E&&(0,Ve.createElement)(De.ToolbarButton,{name:"link",icon:Qt,title:(0,Fe.__)("Unlink"),shortcut:jt.displayShortcut.primaryShift("k"),onClick:B,isActive:!0})),a&&(w||E)&&(0,Ve.createElement)(De.Popover,{position:"bottom center",onClose:()=>{var e;x(!1),null===(e=f.current)||void 0===e||e.focus()},anchorRef:null==_?void 0:_.current,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after"},(0,Ve.createElement)($e.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:p,opensInNewTab:C},onChange:e=>{let{url:t="",opensInNewTab:n}=e;o({url:t}),C!==n&&function(e){const t=e?"_blank":void 0;let n=u;t&&!u?n=Kt:t||u!==Kt||(n=void 0),o({linkTarget:t,rel:n})}(n)},onRemove:()=>{var e;B(),null===(e=f.current)||void 0===e||e.focus()},forceIsEditingLink:w})),(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(Jt,{selectedWidth:g,setAttributes:o})),(0,Ve.createElement)($e.InspectorControls,{__experimentalGroup:"advanced"},(0,Ve.createElement)(De.TextControl,{label:(0,Fe.__)("Link rel"),value:u||"",onChange:h})))};const Xt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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:{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"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:en}=Xt,tn={icon:Rt,example:{attributes:{className:"is-style-fill",text:(0,Fe.__)("Call to Action")}},edit:Yt,save:function(e){var t,n;let{attributes:o,className:r}=e;const{fontSize:a,linkTarget:l,rel:i,style:s,text:c,title:u,url:m,width:d}=o;if(!c)return null;const p=(0,$e.__experimentalGetBorderClassesAndStyles)(o),g=(0,$e.__experimentalGetColorClassesAndStyles)(o),h=(0,$e.__experimentalGetSpacingClassesAndStyles)(o),v=Ke()("wp-block-button__link",g.className,p.className,{"no-border-radius":0===(null==s||null===(t=s.border)||void 0===t?void 0:t.radius)}),b={...p.style,...g.style,...h.style},y=Ke()(r,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":a||(null==s||null===(n=s.typography)||void 0===n?void 0:n.fontSize)});return(0,Ve.createElement)("div",$e.useBlockProps.save({className:y}),(0,Ve.createElement)($e.RichText.Content,{tagName:"a",className:v,href:m,title:u,style:b,value:c,target:l,rel:i}))},deprecated:Wt,merge:(e,t)=>{let{text:n=""}=t;return{...e,text:(e.text||"")+n}}};var nn=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.Path,{d:"M17 3H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5V6.2h-5v1.6zM17 13H7c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4zm-8-1.2h5v-1.5h-5v1.5z"}));const on=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},rn=[{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:e=>{let{contentJustification:t,orientation:n}=e;return!!t||!!n},migrate:on,save(e){let{attributes:{contentJustification:t,orientation:n}}=e;return(0,Ve.createElement)("div",$e.useBlockProps.save({className:Ke()({[`is-content-justification-${t}`]:t,"is-vertical":"vertical"===n})}),(0,Ve.createElement)($e.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save:()=>(0,Ve.createElement)("div",null,(0,Ve.createElement)($e.InnerBlocks.Content,null)),isEligible(e){let{align:t}=e;return t&&["center","left","right"].includes(t)},migrate:e=>on({...e,align:void 0,contentJustification:e.align})}];var an=rn,ln=window.wp.richText;const{name:sn}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},cn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Re.createBlock)(sn,{},e.map((e=>(0,Re.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Re.createBlock)(sn,{},e.map((e=>{const t=(0,ln.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),r=null==o?void 0:o.getAttribute("href");return(0,Re.createBlock)("core/button",{text:n,url:r})}))),isMatch:e=>e.every((e=>{const t=(0,ln.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var un=cn;const mn=[en],dn={name:en,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var pn=function(e){let{attributes:{layout:t={}}}=e;const n=(0,$e.useBlockProps)(),o=(0,Xe.useSelect)((e=>{var t;const n=e($e.store).getSettings().__experimentalPreferredStyleVariations;return null==n||null===(t=n.value)||void 0===t?void 0:t[en]}),[]),r=(0,$e.useInnerBlocksProps)(n,{allowedBlocks:mn,__experimentalDefaultBlock:dn,__experimentalDirectInsert:!0,template:[[en,{className:o&&`is-style-${o}`}]],__experimentalLayout:t,templateInsertUpdatesSelection:!0});return(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)("div",r))};const gn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:hn}=gn,vn={icon:nn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,Fe.__)("Find out more")}},{name:"core/button",attributes:{text:(0,Fe.__)("Contact us")}}]},deprecated:an,transforms:un,edit:pn,save:function(){const e=$e.useInnerBlocksProps.save($e.useBlockProps.save());return(0,Ve.createElement)("div",e)}};var bn=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.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"})),yn=window.moment,_n=n.n(yn);const fn=ft()((e=>{if(!e)return{};const t=_n()(e);return{year:t.year(),month:t.month()+1}}));var kn={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,Re.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,Re.createBlock)("core/archives")}]};const wn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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},style:"wp-block-calendar"},{name:xn}=wn,En={icon:bn,example:{},edit:function(e){let{attributes:t}=e;const n=(0,$e.useBlockProps)(),{date:o,hasPosts:r,hasPostsResolved:a}=(0,Xe.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(Ye.store),o={status:"publish",per_page:1},r=t("postType","post",o),a=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:a,hasPosts:a&&1===(null==r?void 0:r.length)}}),[]);return r?(0,Ve.createElement)("div",n,(0,Ve.createElement)(De.Disabled,null,(0,Ve.createElement)(Ue(),{block:"core/calendar",attributes:{...t,...fn(o)}}))):(0,Ve.createElement)("div",n,(0,Ve.createElement)(De.Placeholder,{icon:bn,label:(0,Fe.__)("Calendar")},a?(0,Fe.__)("No published posts found."):(0,Ve.createElement)(De.Spinner,null)))},transforms:kn};var Cn=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.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"}));var Sn=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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 Bn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/categories",title:"Categories",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}},supports:{align:!0,html:!1},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:Tn}=Bn,Nn={icon:Cn,example:{},edit:function e(t){let{attributes:{displayAsDropdown:n,showHierarchy:o,showPostCounts:r,showOnlyTopLevel:a},setAttributes:l}=t;const i=(0,Vt.useInstanceId)(e,"blocks-category-select"),s={per_page:-1,hide_empty:!0,context:"view"};a&&(s.parent=0);const{records:c,isResolving:u}=(0,Ye.__experimentalUseEntityRecords)("taxonomy","category",s),m=e=>null!=c&&c.length?null===e?c:c.filter((t=>{let{parent:n}=t;return n===e})):[],d=e=>`wp-block-categories__list wp-block-categories__list-level-${e}`,p=e=>t=>l({[e]:t}),g=e=>e?(0,vt.unescape)(e).trim():(0,Fe.__)("(Untitled)"),h=(e,t)=>{const n=m(e.id),{id:a,link:l,count:i,name:s}=e;return(0,Ve.createElement)("li",{key:a},(0,Ve.createElement)("a",{href:l,target:"_blank",rel:"noreferrer noopener"},g(s)),r&&(0,Ve.createElement)("span",{className:"wp-block-categories__post-count"},` (${i})`),o&&!!n.length&&(0,Ve.createElement)("ul",{className:d(t+1)},n.map((e=>h(e,t+1)))))},v=(e,t)=>{const{id:n,count:a,name:l}=e,i=m(n);return[(0,Ve.createElement)("option",{key:n},(0,vt.times)(3*t,(()=>" ")),g(l),r&&` (${a})`),o&&!!i.length&&i.map((e=>v(e,t+1)))]};return(0,Ve.createElement)("div",(0,$e.useBlockProps)(),(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Categories settings")},(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Display as dropdown"),checked:n,onChange:p("displayAsDropdown")}),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Show post counts"),checked:r,onChange:p("showPostCounts")}),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Show only top level categories"),checked:a,onChange:p("showOnlyTopLevel")}),!a&&(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Show hierarchy"),checked:o,onChange:p("showHierarchy")}))),u&&(0,Ve.createElement)(De.Placeholder,{icon:Sn,label:(0,Fe.__)("Categories")},(0,Ve.createElement)(De.Spinner,null)),!u&&0===(null==c?void 0:c.length)&&(0,Ve.createElement)("p",null,(0,Fe.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!u&&(null==c?void 0:c.length)>0&&(n?(()=>{const e=m(o?0:null);return(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)(De.VisuallyHidden,{as:"label",htmlFor:i},(0,Fe.__)("Categories")),(0,Ve.createElement)("select",{id:i,className:"wp-block-categories__dropdown"},e.map((e=>v(e,0)))))})():(()=>{const e=m(o?0:null);return(0,Ve.createElement)("ul",{className:d(0)},e.map((e=>h(e,0))))})()))}};var Pn=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.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 zn=e=>{let{clientId:t}=e;const{replaceBlocks:n}=(0,Xe.useDispatch)($e.store),o=(0,Xe.useSelect)((e=>e($e.store).getBlock(t)),[t]);return(0,Ve.createElement)(De.ToolbarButton,{onClick:()=>n(o.clientId,(0,Re.rawHandler)({HTML:(0,Re.serialize)(o)}))},(0,Fe.__)("Convert to blocks"))};const{wp:In}=window;const Mn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:Ln}=Mn,Rn={icon:Pn,edit:function(e){let{clientId:t,attributes:{content:n},setAttributes:o,onReplace:r}=e;const{getMultiSelectedBlockClientIds:a}=(0,Xe.useSelect)($e.store),l=(0,Ve.useRef)(!1);return(0,Ve.useEffect)((()=>{if(!l.current)return;const e=window.tinymce.get(`editor-${t}`);(null==e?void 0:e.getContent())!==n&&e.setContent(n||"")}),[n]),(0,Ve.useEffect)((()=>{const{baseURL:e,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let t;n&&e.on("loadContent",(()=>e.setContent(n))),e.on("blur",(()=>{var n;t=e.selection.getBookmark(2,!0);const r=document.querySelector(".interface-interface-skeleton__content"),l=r.scrollTop;return null!==(n=a())&&void 0!==n&&n.length||o({content:e.getContent()}),e.once("focus",(()=>{t&&(e.selection.moveToBookmark(t),r.scrollTop!==l&&(r.scrollTop=l))})),!1})),e.on("mousedown touchstart",(()=>{t=null}));const l=(0,vt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,o({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{jt.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==jt.BACKSPACE&&t.keyCode!==jt.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)||(r([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===jt.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:e}=window.wpEditorL10n.tinymce;In.oldEditor.initialize(`editor-${t}`,{tinymce:{...e,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${t}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return l.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:e,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),In.oldEditor.remove(`editor-${t}`)}}),[]),(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)($e.BlockControls,null,(0,Ve.createElement)(De.ToolbarGroup,null,(0,Ve.createElement)(zn,{clientId:t}))),(0,Ve.createElement)("div",(0,$e.useBlockProps)(),(0,Ve.createElement)("div",{key:"toolbar",id:`toolbar-${t}`,className:"block-library-classic__toolbar",onClick:function(){const e=window.tinymce.get(`editor-${t}`);e&&e.focus()},"data-placeholder":(0,Fe.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,Ve.createElement)("div",{key:"editor",id:`editor-${t}`,className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){let{attributes:t}=e;const{content:n}=t;return(0,Ve.createElement)(Ve.RawHTML,null,n)}};var Vn=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.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 An(e){return e.replace(/\[/g,"[")}function Hn(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var Dn={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,Re.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:e=>{let{content:t}=e;return(0,Re.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]};const Fn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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:{anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0},__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:$n}=Fn,Gn={icon:Vn,example:{attributes:{content:(0,Fe.__)('// 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:Dn,edit:function(e){let{attributes:t,setAttributes:n,onRemove:o}=e;const r=(0,$e.useBlockProps)();return(0,Ve.createElement)("pre",r,(0,Ve.createElement)($e.RichText,{tagName:"code",value:t.content,onChange:e=>n({content:e}),onRemove:o,placeholder:(0,Fe.__)("Write code…"),"aria-label":(0,Fe.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){let{attributes:t}=e;return(0,Ve.createElement)("pre",$e.useBlockProps.save(),(0,Ve.createElement)($e.RichText.Content,{tagName:"code",value:(n=t.content,(0,vt.flow)(An,Hn)(n||""))}));var n}};var Un=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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 On=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible(e){let{width:t}=e;return isFinite(t)},migrate:e=>({...e,width:`${e.width}%`}),save(e){let{attributes:t}=e;const{verticalAlignment:n,width:o}=t,r=Ke()({[`is-vertically-aligned-${n}`]:n}),a={flexBasis:o+"%"};return(0,Ve.createElement)("div",{className:r,style:a},(0,Ve.createElement)($e.InnerBlocks.Content,null))}}];var qn=On;var Wn=function(e){let{attributes:{verticalAlignment:t,width:n,templateLock:o=!1,allowedBlocks:r},setAttributes:a,clientId:l}=e;const i=Ke()("block-core-columns",{[`is-vertically-aligned-${t}`]:t}),s=(0,De.__experimentalUseCustomUnits)({availableUnits:(0,$e.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:c,hasChildBlocks:u,rootClientId:m}=(0,Xe.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e($e.store),o=n(l);return{hasChildBlocks:t(l).length>0,rootClientId:o,columnsIds:t(o)}}),[l]),{updateBlockAttributes:d}=(0,Xe.useDispatch)($e.store),p=Number.isFinite(n)?n+"%":n,g=(0,$e.useBlockProps)({className:i,style:p?{flexBasis:p}:void 0}),h=c.length,v=c.indexOf(l)+1,b=(0,Fe.sprintf)((0,Fe.__)("%1$s (%2$d of %3$d)"),g["aria-label"],v,h),y=(0,$e.useInnerBlocksProps)({...g,"aria-label":b},{templateLock:o,allowedBlocks:r,renderAppender:u?void 0:$e.InnerBlocks.ButtonBlockAppender});return(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)($e.BlockControls,null,(0,Ve.createElement)($e.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),d(m,{verticalAlignment:null})},value:t})),(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Column settings")},(0,Ve.createElement)(De.__experimentalUnitControl,{label:(0,Fe.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:s}))),(0,Ve.createElement)("div",y))};const jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/column",title:"Column",category:"text",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",!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}},__experimentalLayout:!0}},{name:Zn}=jn,Qn={icon:Un,edit:Wn,save:function(e){let{attributes:t}=e;const{verticalAlignment:n,width:o}=t,r=Ke()({[`is-vertically-aligned-${n}`]:n});let a;if(o&&/\d/.test(o)){let e=Number.isFinite(o)?o+"%":o;if(!Number.isFinite(o)&&null!=o&&o.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(o)*t)/t+"%"}a={flexBasis:e}}const l=$e.useBlockProps.save({className:r,style:a}),i=$e.useInnerBlocksProps.save(l);return(0,Ve.createElement)("div",i)},deprecated:qn};var Kn=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.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 Jn(e){let t,{doc:n}=Jn;n||(n=document.implementation.createHTMLDocument(""),Jn.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 Yn=[{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:{}};return e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),{...(0,vt.omit)(e,["customTextColor","customBackgroundColor"]),style:t,isStackedOnMobile:!0}},save(e){let{attributes:t}=e;const{verticalAlignment:n,backgroundColor:o,customBackgroundColor:r,textColor:a,customTextColor:l}=t,i=(0,$e.getColorClassName)("background-color",o),s=(0,$e.getColorClassName)("color",a),c=Ke()({"has-background":o||r,"has-text-color":a||l,[i]:i,[s]:s,[`are-vertically-aligned-${n}`]:n}),u={backgroundColor:i?void 0:r,color:s?void 0:l};return(0,Ve.createElement)("div",{className:c||void 0,style:u},(0,Ve.createElement)($e.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible:(e,t)=>!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==Jn(e.originalContent))),migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=Jn(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,Re.createBlock)("core/column",{},e)));return[{...(0,vt.omit)(e,["columns"]),isStackedOnMobile:!0},n]},save(e){let{attributes:t}=e;const{columns:n}=t;return(0,Ve.createElement)("div",{className:`has-${n}-columns`},(0,Ve.createElement)($e.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate:(e,t)=>[e={...(0,vt.omit)(e,["columns"]),isStackedOnMobile:!0},t],save(e){let{attributes:t}=e;const{verticalAlignment:n,columns:o}=t,r=Ke()(`has-${o}-columns`,{[`are-vertically-aligned-${n}`]:n});return(0,Ve.createElement)("div",{className:r},(0,Ve.createElement)($e.InnerBlocks.Content,null))}}];const Xn=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function eo(e,t){const{width:n=100/t}=e.attributes;return Xn(n)}function to(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return(0,vt.sumBy)(e,(e=>eo(e,t)))}function no(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce(((e,n)=>{const o=eo(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}function oo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;const o=to(e,n);return(0,vt.mapValues)(no(e,n),(e=>Xn(t*e/o)))}function ro(e,t){return e.map((e=>(0,vt.merge)({},e,{attributes:{width:`${t[e.clientId]}%`}})))}const ao=["core/column"];const lo=(0,Xe.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:r,setAttributes:a}=t,{updateBlockAttributes:l}=e($e.store),{getBlockOrder:i}=n.select($e.store);a({verticalAlignment:o});i(r).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,r){const{clientId:a}=t,{replaceInnerBlocks:l}=e($e.store),{getBlocks:i}=n.select($e.store);let s=i(a);const c=s.every((e=>{var t;const n=e.attributes.width;return Number.isFinite(null!=n&&null!==(t=n.endsWith)&&void 0!==t&&t.call(n,"%")?parseFloat(n):n)}));const u=r>o;if(u&&c){const e=Xn(100/r);s=[...ro(s,oo(s,100-e)),...(0,vt.times)(r-o,(()=>(0,Re.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...(0,vt.times)(r-o,(()=>(0,Re.createBlock)("core/column")))];else if(s=(0,vt.dropRight)(s,o-r),c){s=ro(s,oo(s,100))}l(a,s)}})))((function(e){let{attributes:t,setAttributes:n,updateAlignment:o,updateColumns:r,clientId:a}=e;const{isStackedOnMobile:l,verticalAlignment:i}=t,{count:s}=(0,Xe.useSelect)((e=>({count:e($e.store).getBlockCount(a)})),[a]),c=Ke()({[`are-vertically-aligned-${i}`]:i,"is-not-stacked-on-mobile":!l}),u=(0,$e.useBlockProps)({className:c}),m=(0,$e.useInnerBlocksProps)(u,{allowedBlocks:ao,orientation:"horizontal",renderAppender:!1});return(0,Ve.createElement)(Ve.Fragment,null,(0,Ve.createElement)($e.BlockControls,null,(0,Ve.createElement)($e.BlockVerticalAlignmentToolbar,{onChange:o,value:i})),(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,null,(0,Ve.createElement)(De.RangeControl,{label:(0,Fe.__)("Columns"),value:s,onChange:e=>r(s,e),min:1,max:Math.max(6,s)}),s>6&&(0,Ve.createElement)(De.Notice,{status:"warning",isDismissible:!1},(0,Fe.__)("This column count exceeds the recommended amount and may cause visual breakage.")),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}))),(0,Ve.createElement)("div",m))}));function io(e){let{clientId:t,name:n,setAttributes:o}=e;const{blockType:r,defaultVariation:a,variations:l}=(0,Xe.useSelect)((e=>{const{getBlockVariations:t,getBlockType:o,getDefaultBlockVariation:r}=e(Re.store);return{blockType:o(n),defaultVariation:r(n,"block"),variations:t(n,"block")}}),[n]),{replaceInnerBlocks:i}=(0,Xe.useDispatch)($e.store),s=(0,$e.useBlockProps)();return(0,Ve.createElement)("div",s,(0,Ve.createElement)($e.__experimentalBlockVariationPicker,{icon:(0,vt.get)(r,["icon","src"]),label:(0,vt.get)(r,["title"]),variations:l,onSelect:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&o(e.attributes),e.innerBlocks&&i(t,(0,Re.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}))}var so=e=>{const{clientId:t}=e,n=(0,Xe.useSelect)((e=>e($e.store).getBlocks(t).length>0),[t])?lo:io;return(0,Ve.createElement)(n,e)};var co=[{name:"one-column-full",title:(0,Fe.__)("100"),description:(0,Fe.__)("One column"),icon:(0,Ve.createElement)(De.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(De.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,Fe.__)("50 / 50"),description:(0,Fe.__)("Two columns; equal split"),icon:(0,Ve.createElement)(De.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(De.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,Fe.__)("30 / 70"),description:(0,Fe.__)("Two columns; one-third, two-thirds split"),icon:(0,Ve.createElement)(De.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(De.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,Fe.__)("70 / 30"),description:(0,Fe.__)("Two columns; two-thirds, one-third split"),icon:(0,Ve.createElement)(De.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(De.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,Fe.__)("33 / 33 / 33"),description:(0,Fe.__)("Three columns; equal split"),icon:(0,Ve.createElement)(De.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(De.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,Fe.__)("25 / 50 / 25"),description:(0,Fe.__)("Three columns; wide center column"),icon:(0,Ve.createElement)(De.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(De.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 uo={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((e=>{let{name:n,attributes:o,innerBlocks:r}=e;return["core/column",{width:`${t}%`},[[n,{...o},r]]]}));return(0,Re.createBlock)("core/columns",{},(0,Re.createBlocksFromInnerBlocksTemplate)(n))},isMatch:e=>{let{length:t}=e;return t&&t<=6}},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:r,style:a,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:d,verticalAlignment:p}=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:`${d}%`},[g]],["core/column",{width:100-d+"%"},t]];return"right"===s&&h.reverse(),(0,Re.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:r,style:a,verticalAlignment:p},(0,Re.createBlocksFromInnerBlocksTemplate)(h))}}]};var mo=uo;const po={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,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}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalLayout:{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}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:go}=po,ho={icon:Kn,variations:co,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Fe.__)("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,Fe.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Fe.__)("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,Fe.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Yn,edit:so,save:function(e){let{attributes:t}=e;const{isStackedOnMobile:n,verticalAlignment:o}=t,r=Ke()({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!n}),a=$e.useBlockProps.save({className:r}),l=$e.useInnerBlocksProps.save(a);return(0,Ve.createElement)("div",l)},transforms:mo};var vo=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ve.createElement)(Ae.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,Ve.createElement)(Ae.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));var bo=[{attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Dt,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const yo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"},fontSize:{type:"string",default:"small"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},{name:_o}=yo,fo={icon:vo,edit:function(e){let{attributes:{isLink:t,linkTarget:n,textAlign:o},context:{commentId:r},setAttributes:a}=e;const l=(0,$e.useBlockProps)({className:Ke()({[`has-text-align-${o}`]:o})}),i=(0,Xe.useSelect)((e=>{const{getEntityRecord:t}=e(Ye.store),n=t("root","comment",r),o=null==n?void 0:n.author_name;if(n&&!o){var a;const e=t("root","user",n.author);return null!==(a=null==e?void 0:e.name)&&void 0!==a?a:(0,Fe.__)("Anonymous")}return null!=o?o:""}),[r]),s=(0,Ve.createElement)($e.BlockControls,{group:"block"},(0,Ve.createElement)($e.AlignmentControl,{value:o,onChange:e=>a({textAlign:e})})),c=(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Link settings")},(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Link to authors URL"),onChange:()=>a({isLink:!t}),checked:t}),t&&(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===n})));if(!r||!i)return(0,Ve.createElement)(Ve.Fragment,null,c,s,(0,Ve.createElement)("div",l,(0,Ve.createElement)("p",null,(0,Fe._x)("Comment Author","block title"))));const u=t?(0,Ve.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},i):(0,Ve.createElement)("p",null,i);return(0,Ve.createElement)(Ve.Fragment,null,c,s,(0,Ve.createElement)("div",l,u))},deprecated:bo};var ko=(0,Ve.createElement)(Ae.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const wo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:xo}=wo,Eo={icon:ko,edit:function(e){let{setAttributes:t,attributes:{textAlign:n},context:{commentId:o}}=e;const r=(0,$e.useBlockProps)({className:Ke()({[`has-text-align-${n}`]:n})}),[a]=(0,Ye.useEntityProp)("root","comment","content",o),l=(0,Ve.createElement)($e.BlockControls,{group:"block"},(0,Ve.createElement)($e.AlignmentControl,{value:n,onChange:e=>t({textAlign:e})}));return o&&a?(0,Ve.createElement)(Ve.Fragment,null,l,(0,Ve.createElement)("div",r,(0,Ve.createElement)(De.Disabled,null,(0,Ve.createElement)(Ve.RawHTML,{key:"html"},a.rendered)))):(0,Ve.createElement)(Ve.Fragment,null,l,(0,Ve.createElement)("div",r,(0,Ve.createElement)("p",null,(0,Fe._x)("Comment Content","block title"))))}};var Co=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,Ve.createElement)(Ae.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),So=window.wp.date;var Bo=[{attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save:()=>null,migrate:Dt,isEligible(e){var t;let{style:n}=e;return null==n||null===(t=n.typography)||void 0===t?void 0:t.fontFamily}}];const To={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0},fontSize:{type:"string",default:"small"}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:No}=To,Po={icon:Co,edit:function(e){let{attributes:{format:t,isLink:n},context:{commentId:o},setAttributes:r}=e;const a=(0,$e.useBlockProps)(),[l]=(0,Ye.useEntityProp)("root","comment","date",o),[i=(0,So.__experimentalGetSettings)().formats.date]=(0,Ye.useEntityProp)("root","site","date_format"),s=(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Settings")},(0,Ve.createElement)($e.__experimentalDateFormatPicker,{format:t,defaultFormat:i,onChange:e=>r({format:e})}),(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Link to comment"),onChange:()=>r({isLink:!n}),checked:n})));if(!o||!l)return(0,Ve.createElement)(Ve.Fragment,null,s,(0,Ve.createElement)("div",a,(0,Ve.createElement)("p",null,(0,Fe._x)("Comment Date","block title"))));let c=(0,Ve.createElement)("time",{dateTime:(0,So.dateI18n)("c",l)},(0,So.dateI18n)(t||i,l));return n&&(c=(0,Ve.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},c)),(0,Ve.createElement)(Ve.Fragment,null,s,(0,Ve.createElement)("div",a,c))},deprecated:Bo};var zo=(0,Ve.createElement)(Ae.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const Io={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"},fontSize:{type:"string",default:"small"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}}},{name:Mo}=Io,Lo={icon:zo,edit:function(e){let{attributes:{linkTarget:t,textAlign:n},setAttributes:o}=e;const r=(0,$e.useBlockProps)({className:Ke()({[`has-text-align-${n}`]:n})}),a=(0,Ve.createElement)($e.BlockControls,{group:"block"},(0,Ve.createElement)($e.AlignmentControl,{value:n,onChange:e=>o({textAlign:e})})),l=(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)(De.PanelBody,{title:(0,Fe.__)("Link settings")},(0,Ve.createElement)(De.ToggleControl,{label:(0,Fe.__)("Open in new tab"),onChange:e=>o({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));return(0,Ve.createElement)(Ve.Fragment,null,a,l,(0,Ve.createElement)("div",r,(0,Ve.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,Fe.__)("Edit"))))}};var Ro=(0,Ve.createElement)(Ae.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ve.createElement)(Ae.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));var Vo=function(e){let{setAttributes:t,attributes:{textAlign:n}}=e;const o=(0,$e.useBlockProps)({className:Ke()({[`has-text-align-${n}`]:n})}),r=(0,Ve.createElement)($e.BlockControls,{group:"block"},(0,Ve.createElement)($e.AlignmentControl,{value:n,onChange:e=>t({textAlign:e})}));return(0,Ve.createElement)(Ve.Fragment,null,r,(0,Ve.createElement)("div",o,(0,Ve.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,Fe.__)("Reply"))))};const Ao={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"},fontSize:{type:"string",default:"small"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},html:!1}},{name:Ho}=Ao,Do={edit:Vo,icon:Ro};var Fo=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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"})),$o=window.wp.apiFetch,Go=n.n($o);const Uo=e=>{let{defaultPage:t,postId:n,perPage:o,queryArgs:r}=e;const[a,l]=(0,Ve.useState)({}),i=`${n}_${o}`,s=a[i]||0;return(0,Ve.useEffect)((()=>{s||"newest"!==t||Go()({path:(0,Je.addQueryArgs)("/wp/v2/comments",{...r,post:n,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));l({...a,[i]:t<=1?1:t})}))}),[t,n,o,l]),"newest"===t?s:1},Oo=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function qo(e){var t;let{comment:n,activeCommentId:o,setActiveCommentId:r,firstCommentId:a,blocks:l}=e;const{children:i,...s}=(0,$e.useInnerBlocksProps)({},{template:Oo});return(0,Ve.createElement)("li",s,n.commentId===(o||a)?i:null,(0,Ve.createElement)(Wo,{blocks:l,commentId:n.commentId,setActiveCommentId:r,isHidden:n.commentId===(o||a)}),(null==n||null===(t=n.children)||void 0===t?void 0:t.length)>0?(0,Ve.createElement)(jo,{comments:n.children,activeCommentId:o,setActiveCommentId:r,blocks:l,firstCommentId:a}):null)}const Wo=(0,Ve.memo)((e=>{let{blocks:t,commentId:n,setActiveCommentId:o,isHidden:r}=e;const a=(0,$e.__experimentalUseBlockPreview)({blocks:t}),l=()=>{o(n)},i={display:r?"none":void 0};return(0,Ve.createElement)("div",Ze({},a,{tabIndex:0,role:"button",style:i,onClick:l,onKeyPress:l}))})),jo=e=>{let{comments:t,blockProps:n,activeCommentId:o,setActiveCommentId:r,blocks:a,firstCommentId:l}=e;return(0,Ve.createElement)("ol",n,t&&t.map(((e,t)=>{let{commentId:n,...i}=e;return(0,Ve.createElement)($e.BlockContextProvider,{key:i.commentId||t,value:{commentId:n<0?null:n}},(0,Ve.createElement)(qo,{comment:{commentId:n,...i},activeCommentId:o,setActiveCommentId:r,blocks:a,firstCommentId:l}))})))};const Zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments-query-loop"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,align:!0},style:"wp-block-comment-template"},{name:Qo}=Zo,Ko={icon:Fo,edit:function(e){var t;let{clientId:n,context:{postId:o}}=e;const r=(0,$e.useBlockProps)(),[a,l]=(0,Ve.useState)(),{commentOrder:i,threadCommentsDepth:s,threadComments:c,commentsPerPage:u}=(0,Xe.useSelect)((e=>{const{getSettings:t}=e($e.store);return t().__experimentalDiscussionSettings})),m=(e=>{let{postId:t}=e;const n={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:r,defaultCommentsPage:a}=(0,Xe.useSelect)((e=>{const{getSettings:t}=e($e.store),{__experimentalDiscussionSettings:n}=t();return n})),l=o?Math.min(r,100):100,i=Uo({defaultPage:a,postId:t,perPage:l,queryArgs:n});return(0,Ve.useMemo)((()=>i?{...n,post:t,per_page:l,page:i}:null),[t,l,i])})({postId:o}),{topLevelComments:d,blocks:p}=(0,Xe.useSelect)((e=>{const{getEntityRecords:t}=e(Ye.store),{getBlocks:o}=e($e.store);return{topLevelComments:m?t("root","comment",m):null,blocks:o(n)}}),[n,m]);let g=(e=>(0,Ve.useMemo)((()=>null==e?void 0:e.map((e=>{let{id:t,_embedded:n}=e;const[o]=(null==n?void 0:n.children)||[[]];return{commentId:t,children:o.map((e=>({commentId:e.id})))}}))),[e]))("desc"===i&&d?[...d].reverse():d);return d?(o||(g=(e=>{let{perPage:t,threadComments:n,threadCommentsDepth:o}=e;const r=Math.min(o||3,3),a=t<=r?t:r;return n&&1!==a?2===a?[{commentId:-1,children:[{commentId:-2,children:[]}]}]:[{commentId:-1,children:[{commentId:-2,children:[{commentId:-3,children:[]}]}]}]:[{commentId:-1,children:[]}]})({perPage:u,threadComments:c,threadCommentsDepth:s})),g.length?(0,Ve.createElement)(jo,{comments:g,blockProps:r,blocks:p,activeCommentId:a,setActiveCommentId:l,firstCommentId:null===(t=g[0])||void 0===t?void 0:t.commentId}):(0,Ve.createElement)("p",Ze({},r,{"data-testid":"noresults"}),(0,Fe.__)("No results found."))):(0,Ve.createElement)("p",r,(0,Ve.createElement)(De.Spinner,null))},save:function(){return(0,Ve.createElement)($e.InnerBlocks.Content,null)}};var Jo=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"}));const Yo={none:"",arrow:"←",chevron:"«"};const Xo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:2,name:"core/comments-pagination-previous",title:"Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:er}=Xo,tr={icon:Jo,edit:function(e){let{attributes:{label:t},setAttributes:n,context:{"comments/paginationArrow":o}}=e;const r=Yo[o];return(0,Ve.createElement)("a",Ze({href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault()},(0,$e.useBlockProps)()),r&&(0,Ve.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`},r),(0,Ve.createElement)($e.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Fe.__)("Older comments page link"),placeholder:(0,Fe.__)("Older Comments"),value:t,onChange:e=>n({label:e})}))}};var nr=(0,Ve.createElement)(Ae.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ve.createElement)(Ae.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"}));function or(e){let{attributes:{TagName:t},setAttributes:n}=e;return(0,Ve.createElement)($e.InspectorControls,null,(0,Ve.createElement)($e.InspectorControls,{__experimentalGroup:"advanced"},(0,Ve.createElement)(De.SelectControl,{label:(0,Fe.__)("HTML element"),options:[{label:(0,Fe.__)("Default (
)"),value:"div"},{label:"
",value:"section"},{label:"