File: /wordpress/core/beta/wp-includes/js/dist/block-library.min.js
/*! This file is auto-generated */
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var jve=Object.create;var t_=Object.defineProperty;var Uve=Object.getOwnPropertyDescriptor;var Gve=Object.getOwnPropertyNames;var Wve=Object.getPrototypeOf,$ve=Object.prototype.hasOwnProperty;var qve=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),K=(e,t)=>{for(var r in t)t_(e,r,{get:t[r],enumerable:!0})},yF=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Gve(t))!$ve.call(e,a)&&a!==r&&t_(e,a,{get:()=>t[a],enumerable:!(o=Uve(t,a))||o.enumerable});return e};var n=(e,t,r)=>(r=e!=null?jve(Wve(e)):{},yF(t||!e||!e.__esModule?t_(r,"default",{value:e,enumerable:!0}):r,e)),Zve=e=>yF(t_({},"__esModule",{value:!0}),e);var $=Te((INe,_F)=>{_F.exports=window.wp.blocks});var ve=Te((NNe,xF)=>{xF.exports=window.wp.compose});var F=Te((DNe,kF)=>{kF.exports=window.wp.data});var P=Te((LNe,wF)=>{wF.exports=window.wp.blockEditor});var ap=Te((RNe,CF)=>{CF.exports=window.wp.serverSideRender});var N=Te((ANe,SF)=>{SF.exports=window.wp.i18n});var f9=Te(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Doctype=ur.CDATA=ur.Tag=ur.Style=ur.Script=ur.Comment=ur.Directive=ur.Text=ur.Root=ur.isTag=ur.ElementType=void 0;var di;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(di=ur.ElementType||(ur.ElementType={}));function Yve(e){return e.type===di.Tag||e.type===di.Script||e.type===di.Style}ur.isTag=Yve;ur.Root=di.Root;ur.Text=di.Text;ur.Directive=di.Directive;ur.Comment=di.Comment;ur.Script=di.Script;ur.Style=di.Style;ur.Tag=di.Tag;ur.CDATA=di.CDATA;ur.Doctype=di.Doctype});var b9=Te(qe=>{"use strict";var ip=qe&&qe.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}})(),I1=qe&&qe.__assign||function(){return I1=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},I1.apply(this,arguments)};Object.defineProperty(qe,"__esModule",{value:!0});qe.cloneNode=qe.hasChildren=qe.isDocument=qe.isDirective=qe.isComment=qe.isText=qe.isCDATA=qe.isTag=qe.Element=qe.Document=qe.CDATA=qe.NodeWithChildren=qe.ProcessingInstruction=qe.Comment=qe.Text=qe.DataNode=qe.Node=void 0;var Aa=f9(),g9=(function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),v9(this,t)},e})();qe.Node=g9;var r_=(function(e){ip(t,e);function t(r){var o=e.call(this)||this;return o.data=r,o}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t})(g9);qe.DataNode=r_;var PF=(function(e){ip(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Aa.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(r_);qe.Text=PF;var EF=(function(e){ip(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Aa.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(r_);qe.Comment=EF;var BF=(function(e){ip(t,e);function t(r,o){var a=e.call(this,o)||this;return a.name=r,a.type=Aa.ElementType.Directive,a}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(r_);qe.ProcessingInstruction=BF;var o_=(function(e){ip(t,e);function t(r){var o=e.call(this)||this;return o.children=r,o}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t})(g9);qe.NodeWithChildren=o_;var IF=(function(e){ip(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Aa.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(o_);qe.CDATA=IF;var NF=(function(e){ip(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Aa.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(o_);qe.Document=NF;var DF=(function(e){ip(t,e);function t(r,o,a,i){a===void 0&&(a=[]),i===void 0&&(i=r==="script"?Aa.ElementType.Script:r==="style"?Aa.ElementType.Style:Aa.ElementType.Tag);var l=e.call(this,a)||this;return l.name=r,l.attribs=o,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(o){var a,i;return{name:o,value:r.attribs[o],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(o_);qe.Element=DF;function LF(e){return(0,Aa.isTag)(e)}qe.isTag=LF;function RF(e){return e.type===Aa.ElementType.CDATA}qe.isCDATA=RF;function AF(e){return e.type===Aa.ElementType.Text}qe.isText=AF;function MF(e){return e.type===Aa.ElementType.Comment}qe.isComment=MF;function zF(e){return e.type===Aa.ElementType.Directive}qe.isDirective=zF;function VF(e){return e.type===Aa.ElementType.Root}qe.isDocument=VF;function Qve(e){return Object.prototype.hasOwnProperty.call(e,"children")}qe.hasChildren=Qve;function v9(e,t){t===void 0&&(t=!1);var r;if(AF(e))r=new PF(e.data);else if(MF(e))r=new EF(e.data);else if(LF(e)){var o=t?h9(e.children):[],a=new DF(e.name,I1({},e.attribs),o);o.forEach(function(c){return c.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=I1({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=I1({},e["x-attribsPrefix"])),r=a}else if(RF(e)){var o=t?h9(e.children):[],i=new IF(o);o.forEach(function(u){return u.parent=i}),r=i}else if(VF(e)){var o=t?h9(e.children):[],l=new NF(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(zF(e)){var s=new BF(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}qe.cloneNode=v9;function h9(e){for(var t=e.map(function(o){return v9(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var _9=Te(Gs=>{"use strict";var Xve=Gs&&Gs.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,a)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),Jve=Gs&&Gs.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Xve(t,e,r)};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.DomHandler=void 0;var y9=f9(),lp=b9();Jve(b9(),Gs);var OF={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},FF=(function(){function e(t,r,o){this.dom=[],this.root=new lp.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=OF),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??OF,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new lp.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(t){this.handleCallback(t)},e.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},e.prototype.onopentag=function(t,r){var o=this.options.xmlMode?y9.ElementType.Tag:void 0,a=new lp.Element(t,r,void 0,o);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===y9.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new lp.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===y9.ElementType.Comment){this.lastNode.data+=t;return}var r=new lp.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new lp.Text(""),r=new lp.CDATA([t]);this.addNode(r),t.parent=r,this.lastNode=t},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(t,r){var o=new lp.ProcessingInstruction(t,r);this.addNode(o)},e.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},e.prototype.addNode=function(t){var r=this.tagStack[this.tagStack.length-1],o=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),o&&(t.prev=o,o.next=t),t.parent=r,this.lastNode=null},e})();Gs.DomHandler=FF;Gs.default=FF});var HF=Te(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Ko.CARRIAGE_RETURN_PLACEHOLDER=Ko.CARRIAGE_RETURN_REGEX=Ko.CARRIAGE_RETURN=Ko.CASE_SENSITIVE_TAG_NAMES_MAP=Ko.CASE_SENSITIVE_TAG_NAMES=void 0;Ko.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];Ko.CASE_SENSITIVE_TAG_NAMES_MAP=Ko.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Ko.CARRIAGE_RETURN="\r";Ko.CARRIAGE_RETURN_REGEX=new RegExp(Ko.CARRIAGE_RETURN,"g");Ko.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Ko.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Ko.CARRIAGE_RETURN_PLACEHOLDER,"g")});var x9=Te(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.formatAttributes=jF;mh.escapeSpecialCharacters=rbe;mh.revertEscapedCharacters=UF;mh.formatDOM=GF;var n_=_9(),N1=HF();function ebe(e){return N1.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function jF(e){for(var t={},r=0,o=e.length;r<o;r++){var a=e[r];t[a.name]=a.value}return t}function tbe(e){e=e.toLowerCase();var t=ebe(e);return t||e}function rbe(e){return e.replace(N1.CARRIAGE_RETURN_REGEX,N1.CARRIAGE_RETURN_PLACEHOLDER)}function UF(e){return e.replace(N1.CARRIAGE_RETURN_PLACEHOLDER_REGEX,N1.CARRIAGE_RETURN)}function GF(e,t,r){t===void 0&&(t=null);for(var o=[],a,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=tbe(s.nodeName);a=new n_.Element(c,jF(s.attributes)),a.children=GF(c==="template"?s.content.childNodes:s.childNodes,a);break}case 3:a=new n_.Text(UF(s.nodeValue));break;case 8:a=new n_.Comment(s.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=a),a.parent=t,a.prev=u,a.next=null,o.push(a)}return r&&(a=new n_.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),a.next=o[0]||null,a.parent=t,o.unshift(a),o[1]&&(o[1].prev=o[0])),o}});var XF=Te(C9=>{"use strict";Object.defineProperty(C9,"__esModule",{value:!0});C9.default=abe;var obe=x9(),WF="html",$F="head",a_="body",nbe=/<([a-zA-Z]+[0-9]?)/,qF=/<head[^]*>/i,ZF=/<body[^]*>/i,l_=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},k9=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},KF=typeof window=="object"&&window.DOMParser;typeof KF=="function"&&(YF=new KF,QF="text/html",k9=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),YF.parseFromString(e,QF)},l_=k9);var YF,QF;typeof document=="object"&&document.implementation&&(D1=document.implementation.createHTMLDocument(),l_=function(e,t){if(t){var r=D1.documentElement.querySelector(t);return r&&(r.innerHTML=e),D1}return D1.documentElement.innerHTML=e,D1});var D1,i_=typeof document=="object"&&document.createElement("template"),w9;i_&&i_.content&&(w9=function(e){return i_.innerHTML=e,i_.content.childNodes});function abe(e){var t,r;e=(0,obe.escapeSpecialCharacters)(e);var o=e.match(nbe),a=o&&o[1]?o[1].toLowerCase():"";switch(a){case WF:{var i=k9(e);if(!qF.test(e)){var l=i.querySelector($F);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!ZF.test(e)){var l=i.querySelector(a_);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(WF)}case $F:case a_:{var s=l_(e).querySelectorAll(a);return ZF.test(e)&&qF.test(e)?s[0].parentNode.childNodes:s}default:{if(w9)return w9(e);var l=l_(e,a_).querySelector(a_);return l.childNodes}}}});var JF=Te(L1=>{"use strict";var ibe=L1&&L1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L1,"__esModule",{value:!0});L1.default=ube;var lbe=ibe(XF()),sbe=x9(),cbe=/<(![a-zA-Z\s]+)>/;function ube(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(cbe),r=t?t[1]:void 0;return(0,sbe.formatDOM)((0,lbe.default)(e),null,r)}});var eH=Te(s_=>{var pbe=0;s_.SAME=pbe;var mbe=1;s_.CAMELCASE=mbe;s_.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var rH=Te(Gl=>{"use strict";function dbe(e){return Yo.hasOwnProperty(e)?Yo[e]:null}function ra(e,t,r,o,a,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var Yo={},fbe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fbe.forEach(e=>{Yo[e]=new ra(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Yo[e]=new ra(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Yo[e]=new ra(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Yo[e]=new ra(e,2,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Yo[e]=new ra(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Yo[e]=new ra(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Yo[e]=new ra(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Yo[e]=new ra(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Yo[e]=new ra(e,5,!1,e.toLowerCase(),null,!1,!1)});var S9=/[\-\:]([a-z])/g,T9=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{let t=e.replace(S9,T9);Yo[t]=new ra(t,1,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(S9,T9);Yo[t]=new ra(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(S9,T9);Yo[t]=new ra(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Yo[e]=new ra(e,1,!1,e.toLowerCase(),null,!1,!1)});var hbe="xlinkHref";Yo[hbe]=new ra("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Yo[e]=new ra(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:gbe,SAME:vbe,possibleStandardNames:tH}=eH(),bbe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ybe=bbe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_be=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+ybe+"]*$")),xbe=Object.keys(tH).reduce((e,t)=>{let r=tH[t];return r===vbe?e[t]=t:r===gbe?e[t.toLowerCase()]=t:e[t]=r,e},{});Gl.BOOLEAN=3;Gl.BOOLEANISH_STRING=2;Gl.NUMERIC=5;Gl.OVERLOADED_BOOLEAN=4;Gl.POSITIVE_NUMERIC=6;Gl.RESERVED=0;Gl.STRING=1;Gl.getPropertyInfo=dbe;Gl.isCustomAttribute=_be;Gl.possibleStandardNames=xbe});var ut=Te(($Ne,oH)=>{oH.exports=window.React});var cH=Te((qNe,sH)=>{"use strict";var nH=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kbe=/\n/g,wbe=/^\s*/,Cbe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Sbe=/^:\s*/,Tbe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Pbe=/^[;\s]*/,Ebe=/^\s+|\s+$/g,Bbe=`
`,aH="/",iH="*",Um="",Ibe="comment",Nbe="declaration";function Dbe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,o=1;function a(h){var g=h.match(kbe);g&&(r+=g.length);var v=h.lastIndexOf(Bbe);o=~v?h.length-v:o+h.length}function i(){var h={line:r,column:o};return function(g){return g.position=new l(h),u(),g}}function l(h){this.start=h,this.end={line:r,column:o},this.source=t.source}l.prototype.content=e;function s(h){var g=new Error(t.source+":"+r+":"+o+": "+h);if(g.reason=h,g.filename=t.source,g.line=r,g.column=o,g.source=e,!t.silent)throw g}function c(h){var g=h.exec(e);if(g){var v=g[0];return a(v),e=e.slice(v.length),g}}function u(){c(wbe)}function p(h){var g;for(h=h||[];g=m();)g!==!1&&h.push(g);return h}function m(){var h=i();if(!(aH!=e.charAt(0)||iH!=e.charAt(1))){for(var g=2;Um!=e.charAt(g)&&(iH!=e.charAt(g)||aH!=e.charAt(g+1));)++g;if(g+=2,Um===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return o+=2,a(v),e=e.slice(g),o+=2,h({type:Ibe,comment:v})}}function d(){var h=i(),g=c(Cbe);if(g){if(m(),!c(Sbe))return s("property missing ':'");var v=c(Tbe),b=h({type:Nbe,property:lH(g[0].replace(nH,Um)),value:v?lH(v[0].replace(nH,Um)):Um});return c(Pbe),b}}function f(){var h=[];p(h);for(var g;g=d();)g!==!1&&(h.push(g),p(h));return h}return u(),f()}function lH(e){return e?e.replace(Ebe,Um):Um}sH.exports=Dbe});var uH=Te(R1=>{"use strict";var Lbe=R1&&R1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R1,"__esModule",{value:!0});R1.default=Abe;var Rbe=Lbe(cH());function Abe(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,Rbe.default)(e),a=typeof t=="function";return o.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;a?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var mH=Te(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.camelCase=void 0;var Mbe=/^--[a-zA-Z0-9_-]+$/,zbe=/-([a-z])/g,Vbe=/^[^-]+$/,Obe=/^-(webkit|moz|ms|o|khtml)-/,Fbe=/^-(ms)-/,Hbe=function(e){return!e||Vbe.test(e)||Mbe.test(e)},jbe=function(e,t){return t.toUpperCase()},pH=function(e,t){return"".concat(t,"-")},Ube=function(e,t){return t===void 0&&(t={}),Hbe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Fbe,pH):e=e.replace(Obe,pH),e.replace(zbe,jbe))};c_.camelCase=Ube});var fH=Te((E9,dH)=>{"use strict";var Gbe=E9&&E9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Wbe=Gbe(uH()),$be=mH();function P9(e,t){var r={};return!e||typeof e!="string"||(0,Wbe.default)(e,function(o,a){o&&a&&(r[(0,$be.camelCase)(o,t)]=a)}),r}P9.default=P9;dH.exports=P9});var B9=Te(oa=>{"use strict";var qbe=oa&&oa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oa,"__esModule",{value:!0});oa.returnFirstArg=oa.canTextBeChildOfNode=oa.ELEMENTS_WITH_NO_TEXT_CHILDREN=oa.PRESERVE_CUSTOM_ATTRIBUTES=void 0;oa.isCustomComponent=Qbe;oa.setStyleProp=Jbe;var Zbe=ut(),Kbe=qbe(fH()),Ybe=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Qbe(e,t){return e.includes("-")?!Ybe.has(e):!!(t&&typeof t.is=="string")}var Xbe={reactCompat:!0};function Jbe(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,Kbe.default)(e,Xbe)}catch{t.style={}}}}oa.PRESERVE_CUSTOM_ATTRIBUTES=Number(Zbe.version.split(".")[0])>=16;oa.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var eye=function(e){return!oa.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};oa.canTextBeChildOfNode=eye;var tye=function(e){return e};oa.returnFirstArg=tye});var N9=Te(I9=>{"use strict";Object.defineProperty(I9,"__esModule",{value:!0});I9.default=aye;var A1=rH(),hH=B9(),rye=["checked","value"],oye=["input","select","textarea"],nye={reset:!0,submit:!0};function aye(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&nye[e.type]);for(var a in e){var i=e[a];if((0,A1.isCustomAttribute)(a)){r[a]=i;continue}var l=a.toLowerCase(),s=gH(l);if(s){var c=(0,A1.getPropertyInfo)(s);switch(rye.includes(s)&&oye.includes(t)&&!o&&(s=gH("default"+l)),r[s]=i,c&&c.type){case A1.BOOLEAN:r[s]=!0;break;case A1.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}hH.PRESERVE_CUSTOM_ATTRIBUTES&&(r[a]=i)}return(0,hH.setStyleProp)(e.style,r),r}function gH(e){return A1.possibleStandardNames[e]}});var bH=Te(z1=>{"use strict";var iye=z1&&z1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z1,"__esModule",{value:!0});z1.default=vH;var D9=ut(),lye=iye(N9()),M1=B9(),sye={cloneElement:D9.cloneElement,createElement:D9.createElement,isValidElement:D9.isValidElement};function vH(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",a=t.transform||M1.returnFirstArg,i=t.library||sye,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,p=0;p<u;p++){var m=e[p];if(o){var d=t.replace(m,p);if(c(d)){u>1&&(d=l(d,{key:d.key||p})),r.push(a(d,m,p));continue}}if(m.type==="text"){var f=!m.data.trim().length;if(f&&m.parent&&!(0,M1.canTextBeChildOfNode)(m.parent)||t.trim&&f)continue;r.push(a(m.data,m,p));continue}var h=m,g={};cye(h)?((0,M1.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,lye.default)(h.attribs,h.name));var v=void 0;switch(m.type){case"script":case"style":m.children[0]&&(g.dangerouslySetInnerHTML={__html:m.children[0].data});break;case"tag":m.name==="textarea"&&m.children[0]?g.defaultValue=m.children[0].data:m.children&&m.children.length&&(v=vH(m.children,t));break;default:continue}u>1&&(g.key=p),r.push(a(s(m.name,g,v),m,p))}return r.length===1?r[0]:r}function cye(e){return M1.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,M1.isCustomComponent)(e.name,e.attribs)}});var R9=Te(yo=>{"use strict";var L9=yo&&yo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yo,"__esModule",{value:!0});yo.htmlToDOM=yo.domToReact=yo.attributesToProps=yo.Text=yo.ProcessingInstruction=yo.Element=yo.Comment=void 0;yo.default=mye;var yH=L9(JF());yo.htmlToDOM=yH.default;var uye=L9(N9());yo.attributesToProps=uye.default;var _H=L9(bH());yo.domToReact=_H.default;var u_=_9();Object.defineProperty(yo,"Comment",{enumerable:!0,get:function(){return u_.Comment}});Object.defineProperty(yo,"Element",{enumerable:!0,get:function(){return u_.Element}});Object.defineProperty(yo,"ProcessingInstruction",{enumerable:!0,get:function(){return u_.ProcessingInstruction}});Object.defineProperty(yo,"Text",{enumerable:!0,get:function(){return u_.Text}});var pye={lowerCaseAttributeNames:!1};function mye(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,_H.default)((0,yH.default)(e,t?.htmlparser2||pye),t):[]}});var Tn=Te((tDe,kH)=>{kH.exports=window.wp.dom});var y=Te((rDe,wH)=>{wH.exports=window.ReactJSXRuntime});var H=Te((iDe,TH)=>{TH.exports=window.wp.element});var M=Te((sDe,PH)=>{PH.exports=window.wp.primitives});var O=Te((lVe,EH)=>{EH.exports=window.wp.components});var Ar=Te((sVe,BH)=>{BH.exports=window.wp.blob});var re=Te((cVe,IH)=>{IH.exports=window.wp.coreData});var pr=Te((lOe,pj)=>{pj.exports=window.wp.url});var Jo=Te((uOe,gj)=>{gj.exports=window.wp.htmlEntities});var Sr=Te((kOe,Ij)=>{Ij.exports=window.wp.notices});var _N=Te((TOe,Nj)=>{Nj.exports=window.wp.privateApis});var Ks=Te((hFe,sU)=>{sU.exports=window.wp.keycodes});var jU=Te((DHe,HU)=>{HU.exports=window.ReactDOM});var KU=Te(ZU=>{"use strict";var Ph=ut();function f_e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var h_e=typeof Object.is=="function"?Object.is:f_e,g_e=Ph.useState,v_e=Ph.useEffect,b_e=Ph.useLayoutEffect,y_e=Ph.useDebugValue;function __e(e,t){var r=t(),o=g_e({inst:{value:r,getSnapshot:t}}),a=o[0].inst,i=o[1];return b_e(function(){a.value=r,a.getSnapshot=t,YN(a)&&i({inst:a})},[e,r,t]),v_e(function(){return YN(a)&&i({inst:a}),e(function(){YN(a)&&i({inst:a})})},[e]),y_e(r),r}function YN(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!h_e(e,r)}catch{return!0}}function x_e(e,t){return t()}var k_e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x_e:__e;ZU.useSyncExternalStore=Ph.useSyncExternalStore!==void 0?Ph.useSyncExternalStore:k_e});var QU=Te((YHe,YU)=>{"use strict";YU.exports=KU()});var Rh=Te((JUe,wG)=>{wG.exports=window.wp.a11y});var xd=Te((tWe,eW)=>{eW.exports=window.wp.deprecated});var es=Te((TWe,mW)=>{mW.exports=window.wp.richText});var Lw=Te((bZe,aq)=>{aq.exports=window.wp.date});var _b=Te((YZe,_q)=>{_q.exports=window.wp.apiFetch});var bu=Te((BYe,oK)=>{oK.exports=window.wp.hooks});var Db=Te((XXe,L3)=>{var AY={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u1EA2:"A",\u1EA0:"A",\u1EA8:"A",\u1EAA:"A",\u1EAC:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u1EBA:"E",\u1EBC:"E",\u1EB8:"E",\u1EC2:"E",\u1EC4:"E",\u1EC6:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u1EC8:"I",\u1ECA:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u1ECE:"O",\u1ECC:"O",\u1ED4:"O",\u1ED6:"O",\u1ED8:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u1EDA:"O",\u1EE2:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u1EE6:"U",\u1EE4:"U",\u1EEC:"U",\u1EEE:"U",\u1EF0:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u1EA3:"a",\u1EA1:"a",\u1EA9:"a",\u1EAB:"a",\u1EAD:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u1EBB:"e",\u1EBD:"e",\u1EB9:"e",\u1EC3:"e",\u1EC5:"e",\u1EC7:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u1EC9:"i",\u1ECB:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u1ECF:"o",\u1ECD:"o",\u1ED5:"o",\u1ED7:"o",\u1ED9:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u1EDB:"o",\u1EE3:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u1EE7:"u",\u1EE5:"u",\u1EED:"u",\u1EEF:"u",\u1EF1:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z",\u0439:"\u0438",\u0419:"\u0418",\u0451:"\u0435",\u0401:"\u0415"},MY=Object.keys(AY).join("|"),s3e=new RegExp(MY,"g"),c3e=new RegExp(MY,"");function u3e(e){return AY[e]}var zY=function(e){return e.replace(s3e,u3e)},p3e=function(e){return!!e.match(c3e)};L3.exports=zY;L3.exports.has=p3e;L3.exports.remove=zY});var NQ=Te((tet,IQ)=>{IQ.exports=window.wp.styleEngine});var AQ=Te((net,RQ)=>{"use strict";RQ.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,a,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(a=o;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(a=o;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(r).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=o;a--!==0;){var l=i[a];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var RJ=Te((lot,LJ)=>{LJ.exports=window.wp.uploadMedia});var NA=Te((gst,Woe)=>{Woe.exports=window.wp.escapeHtml});var vce=Te((pgt,gce)=>{gce.exports=window.wp.wordcount});var Sme=Te((nbt,Cme)=>{Cme.exports=window.wp.patterns});var bde=Te((uyt,vde)=>{vde.exports=window.wp.autop});var _de=Te((pyt,yde)=>{yde.exports=window.wp.shortcode});var kve=Te((B4t,xve)=>{xve.exports=window.wp.keyboardShortcuts});var PNe={};K(PNe,{__experimentalGetCoreBlocks:()=>Ive,__experimentalRegisterExperimentalCoreBlocks:()=>TNe,privateApis:()=>cF,registerCoreBlocks:()=>SNe});var jl=n($(),1),Tve=n(ve(),1),Pve=n(F(),1),Eve=n(P(),1),Bve=n(ap(),1),Y2=n(N(),1);function TF(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=TF(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Kve(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=TF(e))&&(o&&(o+=" "),o+=t);return o}var C=Kve;var A9=n(R9(),1),Wl=n(R9(),1),xH=A9.default.default||A9.default;var CH=n(Tn(),1),SH=n(y(),1),dye=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let p=(0,Wl.attributesToProps)(s||{}),m=i;if(!c){let d={...p,...e,className:C(p.className,e.className),style:{...p.style||{},...e.style||{}}};return(0,SH.jsx)(m,{...d,children:(0,Wl.domToReact)(u,r)})}}}},o=(0,CH.safeHTML)(t);return xH(o,r)},_o=dye;var pN={};K(pN,{init:()=>vye,metadata:()=>r5,name:()=>zH,settings:()=>VH});var uN=n(N(),1);var p_=n(H(),1),na=(0,p_.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,p_.cloneElement)(e,{width:t,height:t,...r,ref:o}));var V1=n(M(),1),O1=n(y(),1),M9=(0,O1.jsxs)(V1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,O1.jsx)(V1.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,O1.jsx)(V1.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var Gm=n(M(),1),Wm=n(y(),1),z9=(0,Wm.jsxs)(Gm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Wm.jsx)(Gm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,Wm.jsx)(Gm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,Wm.jsx)(Gm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,Wm.jsx)(Gm.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var $m=n(M(),1),qm=n(y(),1),V9=(0,qm.jsxs)($m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,qm.jsx)($m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,qm.jsx)($m.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,qm.jsx)($m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,qm.jsx)($m.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var m_=n(M(),1),O9=n(y(),1),Zm=(0,O9.jsx)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O9.jsx)(m_.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})});var d_=n(M(),1),F9=n(y(),1),H9=(0,F9.jsx)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,F9.jsx)(d_.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var f_=n(M(),1),j9=n(y(),1),U9=(0,j9.jsx)(f_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,j9.jsx)(f_.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var h_=n(M(),1),G9=n(y(),1),W9=(0,G9.jsx)(h_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,G9.jsx)(h_.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var g_=n(M(),1),$9=n(y(),1),q9=(0,$9.jsx)(g_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$9.jsx)(g_.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var v_=n(M(),1),Z9=n(y(),1),K9=(0,Z9.jsx)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Z9.jsx)(v_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});var b_=n(M(),1),Y9=n(y(),1),ru=(0,Y9.jsx)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Y9.jsx)(b_.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"})});var y_=n(M(),1),Q9=n(y(),1),X9=(0,Q9.jsx)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Q9.jsx)(y_.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});var __=n(M(),1),J9=n(y(),1),F1=(0,J9.jsx)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J9.jsx)(__.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})});var x_=n(M(),1),eP=n(y(),1),tP=(0,eP.jsx)(x_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eP.jsx)(x_.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var k_=n(M(),1),rP=n(y(),1),oP=(0,rP.jsx)(k_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rP.jsx)(k_.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"})});var w_=n(M(),1),nP=n(y(),1),aP=(0,nP.jsx)(w_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nP.jsx)(w_.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"})});var C_=n(M(),1),iP=n(y(),1),H1=(0,iP.jsx)(C_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iP.jsx)(C_.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"})});var S_=n(M(),1),lP=n(y(),1),sP=(0,lP.jsx)(S_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lP.jsx)(S_.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"})});var T_=n(M(),1),cP=n(y(),1),sp=(0,cP.jsx)(T_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cP.jsx)(T_.Path,{fillRule:"evenodd",clipRule:"evenodd",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"})});var P_=n(M(),1),uP=n(y(),1),j1=(0,uP.jsx)(P_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uP.jsx)(P_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var E_=n(M(),1),pP=n(y(),1),mP=(0,pP.jsx)(E_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pP.jsx)(E_.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var B_=n(M(),1),dP=n(y(),1),I_=(0,dP.jsx)(B_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dP.jsx)(B_.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})});var N_=n(M(),1),fP=n(y(),1),hP=(0,fP.jsx)(N_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fP.jsx)(N_.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var D_=n(M(),1),gP=n(y(),1),dh=(0,gP.jsx)(D_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gP.jsx)(D_.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})});var L_=n(M(),1),vP=n(y(),1),bP=(0,vP.jsx)(L_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vP.jsx)(L_.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var R_=n(M(),1),yP=n(y(),1),U1=(0,yP.jsx)(R_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yP.jsx)(R_.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 A_=n(M(),1),_P=n(y(),1),Km=(0,_P.jsx)(A_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_P.jsx)(A_.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var M_=n(M(),1),xP=n(y(),1),G1=(0,xP.jsx)(M_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xP.jsx)(M_.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"})});var z_=n(M(),1),kP=n(y(),1),wP=(0,kP.jsx)(z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kP.jsx)(z_.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"})});var V_=n(M(),1),CP=n(y(),1),SP=(0,CP.jsx)(V_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CP.jsx)(V_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});var O_=n(M(),1),TP=n(y(),1),W1=(0,TP.jsx)(O_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TP.jsx)(O_.Path,{fillRule:"evenodd",clipRule:"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"})});var Ym=n(M(),1),fh=n(y(),1),PP=(0,fh.jsxs)(Ym.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,fh.jsx)(Ym.Path,{fillRule:"evenodd",clipRule:"evenodd",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"}),(0,fh.jsx)(Ym.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,fh.jsx)(Ym.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var F_=n(M(),1),EP=n(y(),1),BP=(0,EP.jsx)(F_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EP.jsx)(F_.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"})});var H_=n(M(),1),IP=n(y(),1),NP=(0,IP.jsx)(H_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IP.jsx)(H_.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"})});var j_=n(M(),1),DP=n(y(),1),LP=(0,DP.jsx)(j_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DP.jsx)(j_.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 U_=n(M(),1),RP=n(y(),1),$1=(0,RP.jsx)(U_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RP.jsx)(U_.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"})});var G_=n(M(),1),AP=n(y(),1),q1=(0,AP.jsx)(G_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AP.jsx)(G_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z"})});var W_=n(M(),1),MP=n(y(),1),Qm=(0,MP.jsx)(W_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MP.jsx)(W_.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})});var $_=n(M(),1),zP=n(y(),1),Xm=(0,zP.jsx)($_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zP.jsx)($_.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})});var q_=n(M(),1),VP=n(y(),1),Z1=(0,VP.jsx)(q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VP.jsx)(q_.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})});var Z_=n(M(),1),OP=n(y(),1),FP=(0,OP.jsx)(Z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OP.jsx)(Z_.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})});var K1=n(M(),1),Y1=n(y(),1),HP=(0,Y1.jsxs)(K1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Y1.jsx)(K1.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Y1.jsx)(K1.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var K_=n(M(),1),jP=n(y(),1),Q1=(0,jP.jsx)(K_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jP.jsx)(K_.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});var Y_=n(M(),1),UP=n(y(),1),X1=(0,UP.jsx)(Y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UP.jsx)(Y_.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});var Q_=n(M(),1),GP=n(y(),1),WP=(0,GP.jsx)(Q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GP.jsx)(Q_.Path,{d:"M4 6v12c0 1.1.9 2 2 2h3v-1.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h3V4H6c-1.1 0-2 .9-2 2zm7.2 16h1.5V2h-1.5v20zM15 5.5h1.5V4H15v1.5zm3.5.5H20c0-1.1-.9-2-2-2v1.5c.3 0 .5.2.5.5zm0 10.5H20v-2h-1.5v2zm0-3.5H20v-2h-1.5v2zm-.5 5.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zM15 20h1.5v-1.5H15V20zm3.5-10.5H20v-2h-1.5v2z"})});var X_=n(M(),1),$P=n(y(),1),qP=(0,$P.jsx)(X_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$P.jsx)(X_.Path,{d:"M2 11.2v1.5h20v-1.5H2zM5.5 6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v3H20V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v3h1.5V6zm2 14h2v-1.5h-2V20zm3.5 0h2v-1.5h-2V20zm7-1.5V20c1.1 0 2-.9 2-2h-1.5c0 .3-.2.5-.5.5zm.5-2H20V15h-1.5v1.5zM5.5 18H4c0 1.1.9 2 2 2v-1.5c-.3 0-.5-.2-.5-.5zm0-3H4v1.5h1.5V15zm9 5h2v-1.5h-2V20z"})});var J_=n(M(),1),ZP=n(y(),1),KP=(0,ZP.jsx)(J_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZP.jsx)(J_.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var ex=n(M(),1),YP=n(y(),1),QP=(0,YP.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YP.jsx)(ex.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})});var tx=n(M(),1),XP=n(y(),1),JP=(0,XP.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XP.jsx)(tx.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})});var rx=n(M(),1),eE=n(y(),1),J1=(0,eE.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eE.jsx)(rx.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})});var ox=n(M(),1),tE=n(y(),1),ev=(0,tE.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tE.jsx)(ox.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var nx=n(M(),1),rE=n(y(),1),tv=(0,rE.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rE.jsx)(nx.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})});var ax=n(M(),1),oE=n(y(),1),ll=(0,oE.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oE.jsx)(ax.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})});var ix=n(M(),1),nE=n(y(),1),aE=(0,nE.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nE.jsx)(ix.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});var lx=n(M(),1),iE=n(y(),1),rv=(0,iE.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iE.jsx)(lx.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})});var sx=n(M(),1),lE=n(y(),1),ov=(0,lE.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lE.jsx)(sx.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})});var cx=n(M(),1),sE=n(y(),1),Jm=(0,sE.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sE.jsx)(cx.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var ux=n(M(),1),cE=n(y(),1),nv=(0,cE.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cE.jsx)(ux.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})});var px=n(M(),1),uE=n(y(),1),$l=(0,uE.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uE.jsx)(px.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z"})});var mx=n(M(),1),pE=n(y(),1),ed=(0,pE.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pE.jsx)(mx.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});var dx=n(M(),1),mE=n(y(),1),dE=(0,mE.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mE.jsx)(dx.Path,{d:"M18.5 10.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"})});var fx=n(M(),1),fE=n(y(),1),hE=(0,fE.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fE.jsx)(fx.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var hx=n(M(),1),gE=n(y(),1),vE=(0,gE.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gE.jsx)(hx.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})});var gx=n(M(),1),bE=n(y(),1),yE=(0,bE.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bE.jsx)(gx.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})});var vx=n(M(),1),_E=n(y(),1),xE=(0,_E.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_E.jsx)(vx.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var bx=n(M(),1),kE=n(y(),1),wE=(0,kE.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kE.jsx)(bx.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})});var yx=n(M(),1),CE=n(y(),1),SE=(0,CE.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CE.jsx)(yx.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var _x=n(M(),1),TE=n(y(),1),PE=(0,TE.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TE.jsx)(_x.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var xx=n(M(),1),EE=n(y(),1),BE=(0,EE.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EE.jsx)(xx.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var kx=n(M(),1),IE=n(y(),1),NE=(0,IE.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IE.jsx)(kx.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})});var wx=n(M(),1),DE=n(y(),1),cp=(0,DE.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DE.jsx)(wx.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});var Cx=n(M(),1),LE=n(y(),1),RE=(0,LE.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LE.jsx)(Cx.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});var Sx=n(M(),1),AE=n(y(),1),td=(0,AE.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AE.jsx)(Sx.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"})});var Tx=n(M(),1),ME=n(y(),1),av=(0,ME.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ME.jsx)(Tx.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"})});var Px=n(M(),1),zE=n(y(),1),fi=(0,zE.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zE.jsx)(Px.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 Ex=n(M(),1),VE=n(y(),1),OE=(0,VE.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VE.jsx)(Ex.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var Bx=n(M(),1),FE=n(y(),1),ql=(0,FE.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FE.jsx)(Bx.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})});var Ix=n(M(),1),HE=n(y(),1),jE=(0,HE.jsx)(Ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HE.jsx)(Ix.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})});var Nx=n(M(),1),UE=n(y(),1),rd=(0,UE.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UE.jsx)(Nx.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})});var Dx=n(M(),1),GE=n(y(),1),WE=(0,GE.jsx)(Dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GE.jsx)(Dx.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})});var Lx=n(M(),1),$E=n(y(),1),qE=(0,$E.jsx)(Lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$E.jsx)(Lx.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});var Rx=n(M(),1),ZE=n(y(),1),KE=(0,ZE.jsx)(Rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZE.jsx)(Rx.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var iv=n(M(),1),lv=n(y(),1),sv=(0,lv.jsxs)(iv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,lv.jsx)(iv.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,lv.jsx)(iv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});var Ax=n(M(),1),YE=n(y(),1),QE=(0,YE.jsx)(Ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YE.jsx)(Ax.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var Mx=n(M(),1),XE=n(y(),1),cv=(0,XE.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XE.jsx)(Mx.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var zx=n(M(),1),JE=n(y(),1),eB=(0,JE.jsx)(zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JE.jsx)(zx.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var Vx=n(M(),1),tB=n(y(),1),rB=(0,tB.jsx)(Vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tB.jsx)(Vx.Path,{d:"M18.5 10a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1-1.5 1.5h-7a1.5 1.5 0 0 1-1.5-1.5v-7a1.5 1.5 0 0 1 1.5-1.5zM16 4a2 2 0 0 1 2 2v2h-1.5V6a.5.5 0 0 0-.5-.5H6a.5.5 0 0 0-.5.5v3H8v1.5H5.5V16a.5.5 0 0 0 .5.5h2V18H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z"})});var Ox=n(M(),1),oB=n(y(),1),od=(0,oB.jsx)(Ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oB.jsx)(Ox.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var Fx=n(M(),1),nB=n(y(),1),aB=(0,nB.jsx)(Fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nB.jsx)(Fx.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var Hx=n(M(),1),iB=n(y(),1),lB=(0,iB.jsx)(Hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iB.jsx)(Hx.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})});var jx=n(M(),1),sB=n(y(),1),cB=(0,sB.jsx)(jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sB.jsx)(jx.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});var uv=n(M(),1),pv=n(y(),1),ou=(0,pv.jsxs)(uv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,pv.jsx)(uv.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,pv.jsx)(uv.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]});var hh=n(M(),1),gh=n(y(),1),uB=(0,gh.jsxs)(hh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,gh.jsx)(hh.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,gh.jsx)(hh.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,gh.jsx)(hh.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var Ux=n(M(),1),pB=n(y(),1),mB=(0,pB.jsx)(Ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pB.jsx)(Ux.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});var Gx=n(M(),1),dB=n(y(),1),nd=(0,dB.jsx)(Gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dB.jsx)(Gx.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var Wx=n(M(),1),fB=n(y(),1),mv=(0,fB.jsx)(Wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fB.jsx)(Wx.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"})});var $x=n(M(),1),hB=n(y(),1),dv=(0,hB.jsx)($x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hB.jsx)($x.Path,{d:"M16.1 5.7h-.3c-1 0-2.2 0-2.8.6-.3.4-.5.9-.5 1.6v7.3c0 .7-.2 1.7-.7 2.5C11.3 19 10 20 8.5 20 6.6 20 5 18.4 5 16.5S6.6 13 8.5 13c1 0 1.9.4 2.5 1V7.9c0-1.1.3-2 .9-2.6 1-1 2.6-1 3.8-1h.4zM20 15.75h-5v-1.5h5zM20 10.75h-5v-1.5h5z"})});var qx=n(M(),1),gB=n(y(),1),vB=(0,gB.jsx)(qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gB.jsx)(qx.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})});var Zx=n(M(),1),bB=n(y(),1),vh=(0,bB.jsx)(Zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bB.jsx)(Zx.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var Kx=n(M(),1),yB=n(y(),1),_B=(0,yB.jsx)(Kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yB.jsx)(Kx.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var Yx=n(M(),1),xB=n(y(),1),kB=(0,xB.jsx)(Yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xB.jsx)(Yx.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var Qx=n(M(),1),wB=n(y(),1),CB=(0,wB.jsx)(Qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wB.jsx)(Qx.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var Xx=n(M(),1),SB=n(y(),1),ad=(0,SB.jsx)(Xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SB.jsx)(Xx.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z"})});var Jx=n(M(),1),TB=n(y(),1),bh=(0,TB.jsx)(Jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TB.jsx)(Jx.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z"})});var ek=n(M(),1),PB=n(y(),1),fv=(0,PB.jsx)(ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PB.jsx)(ek.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.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-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});var tk=n(M(),1),EB=n(y(),1),BB=(0,EB.jsx)(tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EB.jsx)(tk.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.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-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});var rk=n(M(),1),IB=n(y(),1),NB=(0,IB.jsx)(rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IB.jsx)(rk.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 ok=n(M(),1),DB=n(y(),1),LB=(0,DB.jsx)(ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DB.jsx)(ok.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var hv=n(M(),1),gv=n(y(),1),vv=(0,gv.jsxs)(hv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,gv.jsx)(hv.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,gv.jsx)(hv.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"})]});var nk=n(M(),1),RB=n(y(),1),AB=(0,RB.jsx)(nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RB.jsx)(nk.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});var ak=n(M(),1),MB=n(y(),1),zB=(0,MB.jsx)(ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MB.jsx)(ak.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});var ik=n(M(),1),VB=n(y(),1),bv=(0,VB.jsx)(ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VB.jsx)(ik.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});var lk=n(M(),1),OB=n(y(),1),FB=(0,OB.jsx)(lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OB.jsx)(lk.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var sk=n(M(),1),HB=n(y(),1),jB=(0,HB.jsx)(sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HB.jsx)(sk.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})});var ck=n(M(),1),UB=n(y(),1),GB=(0,UB.jsx)(ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UB.jsx)(ck.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var uk=n(M(),1),WB=n(y(),1),$B=(0,WB.jsx)(uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WB.jsx)(uk.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var pk=n(M(),1),qB=n(y(),1),ZB=(0,qB.jsx)(pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qB.jsx)(pk.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var mk=n(M(),1),KB=n(y(),1),YB=(0,KB.jsx)(mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KB.jsx)(mk.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var dk=n(M(),1),QB=n(y(),1),yv=(0,QB.jsx)(dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QB.jsx)(dk.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var fk=n(M(),1),XB=n(y(),1),_v=(0,XB.jsx)(fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XB.jsx)(fk.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});var hk=n(M(),1),JB=n(y(),1),xv=(0,JB.jsx)(hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JB.jsx)(hk.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});var gk=n(M(),1),eI=n(y(),1),kv=(0,eI.jsx)(gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eI.jsx)(gk.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var vk=n(M(),1),tI=n(y(),1),rI=(0,tI.jsx)(vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tI.jsx)(vk.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})});var bk=n(M(),1),oI=n(y(),1),nI=(0,oI.jsx)(bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oI.jsx)(bk.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});var yk=n(M(),1),aI=n(y(),1),iI=(0,aI.jsx)(yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aI.jsx)(yk.Path,{d:"M7 11.5h10V13H7z"})});var _k=n(M(),1),lI=n(y(),1),sI=(0,lI.jsx)(_k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lI.jsx)(_k.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var xk=n(M(),1),cI=n(y(),1),uI=(0,cI.jsx)(xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cI.jsx)(xk.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})});var kk=n(M(),1),pI=n(y(),1),mI=(0,pI.jsx)(kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pI.jsx)(kk.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})});var wk=n(M(),1),dI=n(y(),1),wv=(0,dI.jsx)(wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dI.jsx)(wk.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})});var Ck=n(M(),1),fI=n(y(),1),Cv=(0,fI.jsx)(Ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fI.jsx)(Ck.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var Sk=n(M(),1),hI=n(y(),1),gI=(0,hI.jsx)(Sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hI.jsx)(Sk.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var Tk=n(M(),1),vI=n(y(),1),Sv=(0,vI.jsx)(Tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vI.jsx)(Tk.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})});var Pk=n(M(),1),bI=n(y(),1),Tv=(0,bI.jsx)(Pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bI.jsx)(Pk.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})});var Ek=n(M(),1),yI=n(y(),1),_I=(0,yI.jsx)(Ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yI.jsx)(Ek.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.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var Bk=n(M(),1),xI=n(y(),1),kI=(0,xI.jsx)(Bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xI.jsx)(Bk.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});var Ik=n(M(),1),wI=n(y(),1),CI=(0,wI.jsx)(Ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wI.jsx)(Ik.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var Nk=n(M(),1),SI=n(y(),1),TI=(0,SI.jsx)(Nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SI.jsx)(Nk.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})});var Dk=n(M(),1),PI=n(y(),1),Pv=(0,PI.jsx)(Dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PI.jsx)(Dk.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var Lk=n(M(),1),EI=n(y(),1),BI=(0,EI.jsx)(Lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EI.jsx)(Lk.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var Rk=n(M(),1),II=n(y(),1),NI=(0,II.jsx)(Rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,II.jsx)(Rk.Path,{d:"M18.2 9.5h-3.5c-1 0-1.8.8-1.8 1.8v2.5h1.5v-2.5c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5v-2.5c0-1-.8-1.8-1.8-1.8Zm-9 0H5.7c-1 0-1.8.8-1.8 1.8v2.5h7v-2.5c0-1-.8-1.8-1.8-1.8Z"})});var Ak=n(M(),1),DI=n(y(),1),LI=(0,DI.jsx)(Ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DI.jsx)(Ak.Path,{d:"M4 16.5h13V15H4v1.5ZM4 12v1.5h16V12H4Zm1.5-4.2c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5V7.8c0-1-.8-1.8-1.8-1.8H5.6c-1 0-1.8.8-1.8 1.8v2.5h1.5V7.8Z"})});var Mk=n(M(),1),RI=n(y(),1),AI=(0,RI.jsx)(Mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RI.jsx)(Mk.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})});var zk=n(M(),1),MI=n(y(),1),zI=(0,MI.jsx)(zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MI.jsx)(zk.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})});var Vk=n(M(),1),VI=n(y(),1),OI=(0,VI.jsx)(Vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VI.jsx)(Vk.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})});var Ev=n(M(),1),Bv=n(y(),1),Iv=(0,Bv.jsxs)(Ev.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Bv.jsx)(Ev.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,Bv.jsx)(Ev.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});var Ok=n(M(),1),FI=n(y(),1),HI=(0,FI.jsx)(Ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FI.jsx)(Ok.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})});var Fk=n(M(),1),jI=n(y(),1),UI=(0,jI.jsx)(Fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jI.jsx)(Fk.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})});var Hk=n(M(),1),GI=n(y(),1),WI=(0,GI.jsx)(Hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GI.jsx)(Hk.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})});var jk=n(M(),1),$I=n(y(),1),qI=(0,$I.jsx)(jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$I.jsx)(jk.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 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});var Uk=n(M(),1),ZI=n(y(),1),KI=(0,ZI.jsx)(Uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZI.jsx)(Uk.Path,{d:"M4 16.5h13V15H4v1.5Zm0-3h16V12H4v1.5ZM18.2 6h-3.5c-1 0-1.8.8-1.8 1.8v2.5h1.5V7.8c0-.1.1-.2.2-.2h3.5c.1 0 .2.1.2.2v2.5h1.5V7.8c0-1-.8-1.8-1.8-1.8ZM11 7.8c0-1-.8-1.8-1.8-1.8H5.7c-1 0-1.8.8-1.8 1.8v2.5h7V7.8Z"})});var Gk=n(M(),1),YI=n(y(),1),Nv=(0,YI.jsx)(Gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YI.jsx)(Gk.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})});var Dv=n(M(),1),Lv=n(y(),1),QI=(0,Lv.jsxs)(Dv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Lv.jsx)(Dv.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,Lv.jsx)(Dv.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var Wk=n(M(),1),XI=n(y(),1),JI=(0,XI.jsx)(Wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XI.jsx)(Wk.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});var Rv=n(M(),1),Av=n(y(),1),eN=(0,Av.jsxs)(Rv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Av.jsx)(Rv.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,Av.jsx)(Rv.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var $k=n(M(),1),tN=n(y(),1),Mv=(0,tN.jsx)($k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tN.jsx)($k.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});var qk=n(M(),1),rN=n(y(),1),Zl=(0,rN.jsx)(qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rN.jsx)(qk.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var Zk=n(M(),1),oN=n(y(),1),nu=(0,oN.jsx)(Zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oN.jsx)(Zk.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var Kk=n(M(),1),nN=n(y(),1),zv=(0,nN.jsx)(Kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nN.jsx)(Kk.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})});var Yk=n(M(),1),aN=n(y(),1),au=(0,aN.jsx)(Yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aN.jsx)(Yk.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})});var Qk=n(M(),1),iN=n(y(),1),lN=(0,iN.jsx)(Qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iN.jsx)(Qk.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});var Pn=n(P(),1),hi=n(N(),1),Ro=n(O(),1),yh=n(F(),1),e5=n($(),1);var Xk=n(F(),1),id=n(H(),1),up=n(Ar(),1),sN=n(P(),1),NH=n(re(),1),DH=n(ve(),1);function Jk(e,t,r){return(0,Xk.useSelect)(o=>o(NH.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function Ws(e={}){let t=(0,id.useRef)(e),r=(0,id.useRef)(!1),{getSettings:o}=(0,Xk.useSelect)(sN.store);(0,id.useLayoutEffect)(()=>{t.current=e}),(0,id.useEffect)(()=>{if(r.current||!t.current.url||!(0,up.isBlobURL)(t.current.url))return;let a=(0,up.getBlobByURL)(t.current.url);if(!a)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[a],allowedTypes:l,onFileChange:([p])=>{(0,up.isBlobURL)(p?.url)||((0,up.revokeBlobURL)(i),s(p),r.current=!1)},onError:p=>{(0,up.revokeBlobURL)(i),c(p),r.current=!1}}))},[o])}function Vv(){return(0,Xk.useSelect)(t=>{let{getSettings:r}=t(sN.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function Z(){return(0,DH.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var Cr=n(y(),1),cN="core/accordion-item",fye="core/accordion-heading",hye={name:cN};function LH({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:a},clientId:i,setAttributes:l,isSelected:s}){let c=(0,yh.useRegistry)(),{getBlockOrder:u}=(0,yh.useSelect)(Pn.store),p=(0,Pn.useBlockProps)({role:"group"}),m=Z(),{updateBlockAttributes:d,insertBlock:f}=(0,yh.useDispatch)(Pn.store),g=(0,Pn.useBlockEditingMode)()==="contentOnly",v=(0,Pn.useInnerBlocksProps)(p,{template:[[cN]],defaultBlock:hye,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Cr.jsxs)(Cr.Fragment,{children:[s&&!g&&(0,Cr.jsxs)(Cr.Fragment,{children:[(0,Cr.jsx)(Pn.BlockControls,{children:(0,Cr.jsx)(Ro.ToolbarGroup,{children:(0,Cr.jsx)(Pn.HeadingLevelDropdown,{value:o,options:a,onChange:k=>{let x=u(i),w=[];x.forEach(S=>{let T=u(S);w.push(...T)}),c.batch(()=>{l({headingLevel:k}),d(w,{level:k})})}})})}),(0,Cr.jsx)(Pn.BlockControls,{group:"other",children:(0,Cr.jsx)(Ro.ToolbarButton,{onClick:()=>{let k=(0,e5.createBlock)(cN,{},[(0,e5.createBlock)(fye,{level:o}),(0,e5.createBlock)("core/accordion-panel",{})]);f(k,void 0,i)},children:(0,hi.__)("Add item")})})]}),(0,Cr.jsx)(Pn.InspectorControls,{children:(0,Cr.jsxs)(Ro.__experimentalToolsPanel,{label:(0,hi.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:m,children:[(0,Cr.jsx)(Ro.__experimentalToolsPanelItem,{label:(0,hi.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,Cr.jsx)(Ro.ToggleControl,{label:(0,hi.__)("Auto-close"),onChange:k=>{l({autoclose:k})},checked:e,help:(0,hi.__)("Automatically close accordions when a new one is opened.")})}),(0,Cr.jsx)(Ro.__experimentalToolsPanelItem,{label:(0,hi.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,Cr.jsx)(Ro.ToggleControl,{label:(0,hi.__)("Show icon"),onChange:k=>{l({showIcon:k,iconPosition:k?t:"right"})},checked:r,help:(0,hi.__)("Display a plus icon next to the accordion header.")})}),r&&(0,Cr.jsx)(Ro.__experimentalToolsPanelItem,{label:(0,hi.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,Cr.jsxs)(Ro.__experimentalToggleGroupControl,{isBlock:!0,label:(0,hi.__)("Icon Position"),value:t,onChange:k=>{l({iconPosition:k})},children:[(0,Cr.jsx)(Ro.__experimentalToggleGroupControlOption,{label:(0,hi.__)("Left"),value:"left"}),(0,Cr.jsx)(Ro.__experimentalToggleGroupControlOption,{label:(0,hi.__)("Right"),value:"right"})]})})]})},"setting"),(0,Cr.jsx)("div",{...v})]})}var t5=n(P(),1),RH=n(y(),1);function AH(){let e=t5.useBlockProps.save({role:"group"});return(0,RH.jsx)("div",{...t5.useInnerBlocksProps.save(e)})}var r5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion",title:"Accordion",category:"design",description:"Displays a foldable layout that groups content in collapsible sections.",example:{},supports:{anchor:!0,html:!1,align:["wide","full"],background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{background:!0,gradients:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{padding:!0,margin:["top","bottom"],blockGap:!0},shadow:!0,layout:!0,ariaLabel:!0,interactivity:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0,listView:!0},attributes:{iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},autoclose:{type:"boolean",default:!1},headingLevel:{type:"number",default:3},levelOptions:{type:"array"}},providesContext:{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},allowedBlocks:["core/accordion-item"],textdomain:"default",viewScriptModule:"@wordpress/block-library/accordion/view"};var MH=n($(),1);function R(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,MH.registerBlockType)({name:o,...t},r)}var{name:zH}=r5,VH={icon:V9,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,uN.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,uN.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:LH,save:AH},vye=()=>R({name:zH,metadata:r5,settings:VH});var mN={};K(mN,{init:()=>_ye,metadata:()=>n5,name:()=>UH,settings:()=>GH});var Ov=n(N(),1),pp=n(P(),1),OH=n(F(),1),_h=n(O(),1);var $s=n(y(),1),bye=[["core/accordion-heading"],["core/accordion-panel"]];function FH({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:a}=e,i=Z(),{isSelected:l}=(0,OH.useSelect)(u=>o||a?{isSelected:!0}:{isSelected:u(pp.store).hasSelectedInnerBlock(t,!0)},[t,o,a]),s=(0,pp.useBlockProps)({className:C({"is-open":a||l})}),c=(0,pp.useInnerBlocksProps)(s,{template:bye,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,$s.jsxs)($s.Fragment,{children:[(0,$s.jsx)(pp.InspectorControls,{children:(0,$s.jsx)(_h.__experimentalToolsPanel,{label:(0,Ov.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,$s.jsx)(_h.__experimentalToolsPanelItem,{label:(0,Ov.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{r({openByDefault:!1})},children:(0,$s.jsx)(_h.ToggleControl,{label:(0,Ov.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:a,help:(0,Ov.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,$s.jsx)("div",{...c})]})}var o5=n(P(),1);var HH=n(y(),1);function jH({attributes:e}){let{openByDefault:t}=e,r=o5.useBlockProps.save({className:C({"is-open":t})}),o=o5.useInnerBlocksProps.save(r);return(0,HH.jsx)("div",{...o})}var n5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-item",title:"Accordion Item",category:"design",description:"Wraps the heading and panel in one unit.",parent:["core/accordion"],allowedBlocks:["core/accordion-heading","core/accordion-panel"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},shadow:!0,layout:{allowEditing:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{openByDefault:{type:"boolean",default:!1}},providesContext:{"core/accordion-open-by-default":"openByDefault"},textdomain:"default",style:"wp-block-accordion-item"};var{name:UH}=n5,GH={icon:z9,edit:FH,save:jH},_ye=()=>R({name:UH,metadata:n5,settings:GH});var dN={};K(dN,{init:()=>Sye,metadata:()=>a5,name:()=>QH,settings:()=>XH});var WH=n(N(),1),$H=n(H(),1),sl=n(P(),1),qH=n(F(),1),ld=n(y(),1);function ZH({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":a,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,qH.useDispatch)(sl.store);(0,$H.useEffect)(()=>{a!==void 0&&i!==void 0&&(c(),t({iconPosition:a,showIcon:i}))},[a,i,t,c]);let[u,p]=(0,sl.useSettings)("typography.fluid","layout"),m=(0,sl.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:p?.wideSize}}),d=(0,sl.useBlockProps)({className:C({"has-icon":i,"has-icon-left":i&&a==="left","has-icon-right":i&&a==="right"})}),f=(0,sl.__experimentalGetSpacingClassesAndStyles)(e);return(0,ld.jsx)(s,{...d,children:(0,ld.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&a==="left"&&(0,ld.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,ld.jsx)(sl.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:h=>t({title:h}),placeholder:(0,WH.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:m.style.letterSpacing,textDecoration:m.style.textDecoration}}),i&&a==="right"&&(0,ld.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var mp=n(P(),1),sd=n(y(),1);function KH({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:a}=e,i="h"+(t||3),l=(0,mp.getTypographyClassesAndStyles)(e),s=mp.useBlockProps.save({className:C({"has-icon":a,"has-icon-left":a&&o==="left","has-icon-right":a&&o==="right"})}),c=(0,mp.__experimentalGetSpacingClassesAndStyles)(e);return(0,sd.jsx)(i,{...s,children:(0,sd.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[a&&o==="left"&&(0,sd.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,sd.jsx)(mp.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),a&&o==="right"&&(0,sd.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var a5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-heading",title:"Accordion Heading",category:"design",description:"Displays a heading that toggles the accordion panel.",parent:["core/accordion-item"],usesContext:["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},selectors:{typography:{letterSpacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title",textDecoration:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},textdomain:"default"};var aa=n(P(),1),Qo=n(y(),1),kye={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:a}=e,i="h"+(t||3),l=aa.useBlockProps.save(),s=(0,aa.__experimentalGetSpacingClassesAndStyles)(e);return(0,Qo.jsx)(i,{...l,children:(0,Qo.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[a&&o==="left"&&(0,Qo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Qo.jsx)(aa.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),a&&o==="right"&&(0,Qo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},wye={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:a}=e,i="h"+(t||3),l=(0,aa.getTypographyClassesAndStyles)(e),s=aa.useBlockProps.save(),c=(0,aa.__experimentalGetSpacingClassesAndStyles)(e);return(0,Qo.jsx)(i,{...s,children:(0,Qo.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[a&&o==="left"&&(0,Qo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Qo.jsx)(aa.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),a&&o==="right"&&(0,Qo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Cye={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},save({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:a}=e,i="h"+(t||3),l=(0,aa.getTypographyClassesAndStyles)(e),s=aa.useBlockProps.save(),c=(0,aa.__experimentalGetSpacingClassesAndStyles)(e);return(0,Qo.jsx)(i,{...s,children:(0,Qo.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[a&&o==="left"&&(0,Qo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Qo.jsx)(aa.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),a&&o==="right"&&(0,Qo.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},YH=[Cye,wye,kye];var{name:QH}=a5,XH={icon:M9,edit:ZH,save:KH,deprecated:YH},Sye=()=>R({name:QH,metadata:a5,settings:XH});var fN={};K(fN,{init:()=>Pye,metadata:()=>l5,name:()=>nj,settings:()=>aj});var xh=n(P(),1),JH=n(F(),1),ej=n(y(),1);function tj({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:a,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,JH.useSelect)(p=>{if(o||l)return{hasSelection:!0};let{getBlockRootClientId:m,isBlockSelected:d,hasSelectedInnerBlock:f}=p(xh.store),h=m(r);return{hasSelection:d(h)||f(h,!0)}},[r,o,l]),c=(0,xh.useBlockProps)({hidden:!s,role:"region"}),u=(0,xh.useInnerBlocksProps)(c,{allowedBlocks:a,template:[["core/paragraph",{}]],templateLock:i});return(0,ej.jsx)("div",{...u})}var i5=n(P(),1),rj=n(y(),1);function oj(){let e=i5.useBlockProps.save({role:"region"}),t=i5.useInnerBlocksProps.save(e);return(0,rj.jsx)("div",{...t})}var l5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-panel",title:"Accordion Panel",category:"design",description:"Contains the hidden or revealed content beneath the heading.",parent:["core/accordion-item"],usesContext:["core/accordion-open-by-default"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__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}},shadow:!0,layout:{allowEditing:!1},visibility:!1,contentRole:!0,allowedBlocks:!0,lock:!1},attributes:{templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1],default:!1}},textdomain:"default",style:"wp-block-accordion-panel"};var{name:nj}=l5,aj={icon:q1,edit:tj,save:oj},Pye=()=>R({name:nj,metadata:l5,settings:aj});var hN={};K(hN,{init:()=>Bye,metadata:()=>s5,name:()=>cj,settings:()=>uj});var s5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!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}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0}}};var ia=n(O(),1),Xo=n(N(),1),c5=n(P(),1),ij=n(ap(),1),lj=n(ve(),1);var ao=n(y(),1);function sj({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:a,displayAsDropdown:i,type:l}=e,s=Z(),{content:c,status:u,error:p}=(0,ij.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),m=(0,lj.useDisabled)(),d=(0,c5.useBlockProps)({ref:m});return(0,ao.jsxs)(ao.Fragment,{children:[(0,ao.jsx)(c5.InspectorControls,{children:(0,ao.jsxs)(ia.__experimentalToolsPanel,{label:(0,Xo.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,ao.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Xo.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,ao.jsx)(ia.ToggleControl,{label:(0,Xo.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,ao.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Xo.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,ao.jsx)(ia.ToggleControl,{label:(0,Xo.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,ao.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Xo.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>t({showPostCounts:!1}),children:(0,ao.jsx)(ia.ToggleControl,{label:(0,Xo.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})})}),(0,ao.jsx)(ia.__experimentalToolsPanelItem,{label:(0,Xo.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,ao.jsx)(ia.SelectControl,{label:(0,Xo.__)("Group by"),options:[{label:(0,Xo.__)("Year"),value:"yearly"},{label:(0,Xo.__)("Month"),value:"monthly"},{label:(0,Xo.__)("Week"),value:"weekly"},{label:(0,Xo.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,ao.jsx)("div",{...d,children:(0,ao.jsx)(ia.Spinner,{})}),u==="error"&&(0,ao.jsx)("div",{...d,children:(0,ao.jsx)("p",{children:(0,Xo.sprintf)((0,Xo.__)("Error: %s"),p)})}),u==="success"&&(0,ao.jsx)(_o,{wrapperProps:d,html:c})]})}var{name:cj}=s5,uj={icon:K9,example:{},edit:sj},Bye=()=>R({name:cj,metadata:s5,settings:uj});var vN={};K(vN,{init:()=>Aye,metadata:()=>u5,name:()=>Pj,settings:()=>Ej});var u5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user\u2019s 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:{anchor:!0,html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1},filter:{duotone:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img",filter:{duotone:".wp-block-avatar img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"};var cd=n(P(),1),Ma=n(O(),1),cl=n(N(),1),m5=n(pr(),1);var Fv=n(re(),1),dp=n(N(),1),mj=n(F(),1);function dj(e){let t=e?e[0]:24,r=e?e[e.length-1]:96,o=Math.floor(r*2.5);return{minSize:t,maxSize:o}}function fj({commentId:e}){let[t]=(0,Fv.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,Fv.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:i,maxSize:l}=dj(a),s=Vv();return{src:o?o[o.length-1]:s,minSize:i,maxSize:l,alt:r?(0,dp.sprintf)((0,dp.__)("%s Avatar"),r):(0,dp.__)("Default Avatar")}}function hj({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,mj.useSelect)(u=>{let{getEditedEntityRecord:p,getUser:m}=u(Fv.store);if(e)return{authorDetails:m(e)};let d=p("postType",r,t)?.author;return{authorDetails:d?m(d):null}},[r,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,i=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:s}=dj(i),c=Vv();return{src:a?a[a.length-1]:c,minSize:l,maxSize:s,alt:o?(0,dp.sprintf)((0,dp.__)("%s Avatar"),o?.name):(0,dp.__)("Default Avatar")}}var gN=n(N(),1),vj=n(O(),1),bj=n(F(),1),yj=n(re(),1),p5=n(H(),1),_j=n(ve(),1),xj=n(Jo(),1),kj=n(y(),1),Nye={who:"authors",per_page:100,_fields:"id,name",context:"view"};function wj({value:e,onChange:t}){let[r,o]=(0,p5.useState)(""),{authors:a,isLoading:i}=(0,bj.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(yj.store),p={...Nye};return r&&(p.search=r,p.search_columns=["name"]),{authors:c(p),isLoading:u("getUsers",[p])}},[r]),l=(0,p5.useMemo)(()=>(a??[]).map(s=>({value:s.id,label:(0,xj.decodeEntities)(s.name)})),[a]);return(0,kj.jsx)(vj.ComboboxControl,{label:(0,gN.__)("User"),help:(0,gN.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:l,onFilterValueChange:(0,_j.debounce)(o,300),isLoading:i})}var Ft=n(y(),1),Cj=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let a=Z();return(0,Ft.jsx)(cd.InspectorControls,{children:(0,Ft.jsxs)(Ma.__experimentalToolsPanel,{label:(0,cl.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:a,children:[(0,Ft.jsx)(Ma.__experimentalToolsPanelItem,{label:(0,cl.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,Ft.jsx)(Ma.RangeControl,{label:(0,cl.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,Ft.jsx)(Ma.__experimentalToolsPanelItem,{label:(0,cl.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,Ft.jsx)(Ma.ToggleControl,{label:(0,cl.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,Ft.jsx)(Ma.__experimentalToolsPanelItem,{label:(0,cl.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,Ft.jsx)(Ma.ToggleControl,{label:(0,cl.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,Ft.jsx)(Ma.__experimentalToolsPanelItem,{label:(0,cl.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,Ft.jsx)(wj,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},Dye=({children:e,isLink:t})=>t?(0,Ft.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,Sj=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:a})=>{let i=(0,cd.__experimentalUseBorderProps)(t),l=(0,m5.addQueryArgs)((0,m5.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,Ft.jsx)("div",{...o,children:(0,Ft.jsx)(Dye,{isLink:t.isLink,children:(0,Ft.jsx)(Ma.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(s,c,u,p)=>{e({size:parseInt(t.size+(p.height||p.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,cl.isRTL)(),bottom:!0,left:(0,cl.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,Ft.jsx)("img",{src:l,alt:r.alt,className:C("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},Lye=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:a}=t,i=(0,cd.useBlockProps)(),l=fj({commentId:a});return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(Cj,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,Ft.jsx)(Sj,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:r})]})},Rye=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:a,postType:i}=t,l=hj({userId:e?.userId,postId:a,postType:i}),s=(0,cd.useBlockProps)();return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(Cj,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,Ft.jsx)(Sj,{attributes:e,avatar:l,blockProps:s,isSelected:o,setAttributes:r})]})};function Tj(e){return e?.context?.commentId||e?.context?.commentId===null?(0,Ft.jsx)(Lye,{...e}):(0,Ft.jsx)(Rye,{...e})}var{name:Pj}=u5,Ej={icon:W1,edit:Tj,example:{}},Aye=()=>R({name:Pj,metadata:u5,settings:Ej});var TN={};K(TN,{init:()=>$ye,metadata:()=>h5,name:()=>Jj,settings:()=>g5});var SN=n(N(),1);var Xj=n($(),1);var bN=n(P(),1),Hv=n(y(),1),Bj=[{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}){let{autoplay:t,caption:r,loop:o,preload:a,src:i}=e;return(0,Hv.jsxs)("figure",{children:[(0,Hv.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:a}),!bN.RichText.isEmpty(r)&&(0,Hv.jsx)(bN.RichText.Content,{tagName:"figcaption",value:r})]})}}];var Uj=n(Ar(),1),gi=n(O(),1),za=n(P(),1),la=n(N(),1),Gj=n(F(),1);var Wj=n(Sr(),1),$j=n(H(),1);function kh(e,t){var r=0,o,a;t=t||{};function i(){var l=o,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==o&&(l===a&&(a=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},o?(o.prev=l,l.next=o):a=l,r===t.maxSize?(a=a.prev,a.next=null):r++,o=l,l.val}return i.clear=function(){o=null,a=null,r=0},i}var Rj=n(O(),1),xN=n(H(),1),Zs=n($(),1),Aj=n(pr(),1);var qs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},type:{type:"string",role:"content"},providerNameSlug:{type:"string",role:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,role:"content"},previewable:{type:"boolean",default:!0,role:"content"}},supports:{anchor:!0,align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var jv=[{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"}],yN="wp-embed";var Dj=n(_N(),1),{lock:Lj,unlock:j}=(0,Dj.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library");var d5=n(y(),1),{name:wh}=qs,{kebabCase:zye}=j(Rj.privateApis),Mj=e=>(0,Zs.getBlockVariations)(wh)?.find(({name:t})=>t===e),kN=(e,t=[])=>t.some(r=>e.match(r)),Ch=e=>(0,Zs.getBlockVariations)(wh)?.find(({patterns:t})=>kN(e,t));function Uv(e){if(!e||(0,Aj.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var zj=e=>e&&e.includes('class="wp-embedded-content"'),Vj=e=>{let t=e.url||e.thumbnail_url,r=(0,d5.jsx)("p",{children:(0,d5.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,xN.renderToString)(r)},hp=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:a,providerNameSlug:i,type:l,...s}=o;if(!a||!(0,Zs.getBlockType)(wh))return;let c=Ch(a),u=i==="wordpress"||l===yN;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,Zs.createBlock)(wh,{url:a,...s,...c.attributes});let m=(0,Zs.getBlockVariations)(wh)?.find(({name:d})=>d==="wordpress");if(!(!m||!r||!zj(r.html)||u))return(0,Zs.createBlock)(wh,{url:a,...m.attributes,...t})},Vye=e=>e?jv.some(({className:t})=>e.includes(t)):!1,fp=e=>{if(!e)return e;let t=jv.reduce((o,{className:a})=>(o.push(a),o),["wp-has-aspect-ratio"]),r=e;for(let o of t)r=r.replace(o,"");return r.trim()};function Oye(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function wN(e,t,r=!0){if(!r||Oye(e))return fp(t);let o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;let a=o.body.querySelector("iframe");if(a&&a.height&&a.width){let i=(a.width/a.height).toFixed(2);for(let l=0;l<jv.length;l++){let s=jv[l];if(i>=s.ratio)return i-s.ratio>.1?fp(t):C(fp(t),s.className,"wp-has-aspect-ratio")}}return t}function Oj(e,t){t((0,Zs.createBlock)("core/paragraph",{content:(0,xN.renderToString)((0,d5.jsx)("a",{href:e,children:e}))}))}var Fye=kh((e,t,r,o,a=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=zye((c||t).toLowerCase());return zj(s)&&(l=yN),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),Vye(r)||(i.className=wN(s,r,o&&a)),i}),Fj=(e,t,r,o)=>{let{allowResponsive:a,className:i}=e;return{...e,...Fye(t,r,i,o,a)}};var ud=n(H(),1),Hj=n(ve(),1),Gv=n(N(),1),iu=n(P(),1),jj=n(O(),1);var f5=n($(),1),gp=n(y(),1);function Ao({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:a,placeholder:i=(0,Gv.__)("Add caption"),label:l=(0,Gv.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:p,tagName:m="figcaption",addLabel:d=(0,Gv.__)("Add caption"),removeLabel:f=(0,Gv.__)("Remove caption"),icon:h=sP,...g}){let v=t[e],b=(0,Hj.usePrevious)(v),_=iu.RichText.isEmpty(v),k=iu.RichText.isEmpty(b),[x,w]=(0,ud.useState)(!_);(0,ud.useEffect)(()=>{!_&&k&&w(!0)},[_,k]),(0,ud.useEffect)(()=>{!o&&_&&w(!1)},[o,_]);let S=(0,ud.useCallback)(T=>{T&&_&&T.focus()},[_]);return(0,gp.jsxs)(gp.Fragment,{children:[s&&(0,gp.jsx)(iu.BlockControls,{group:"block",children:(0,gp.jsx)(jj.ToolbarButton,{onClick:()=>{w(!x),x&&v&&r({[e]:void 0})},icon:h,isPressed:x,label:x?f:d})}),x&&(!iu.RichText.isEmpty(v)||o)&&(0,gp.jsx)(iu.RichText,{identifier:e,tagName:m,className:C(u,c?"":(0,iu.__experimentalGetElementClassName)("caption")),ref:S,"aria-label":l,placeholder:i,value:v,onChange:T=>r({[e]:T}),inlineToolbar:!0,__unstableOnSplitAtEnd:a?()=>a((0,f5.createBlock)((0,f5.getDefaultBlockName)())):void 0,readOnly:p,...g})]})}var Mr=n(y(),1),CN=["audio"];function Hye({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:a,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:p}=e,[m,d]=(0,$j.useState)(e.blob),h=(0,za.useBlockEditingMode)()==="default";Ws({url:m,allowedTypes:CN,onChange:x,onError:_});function g(I){return D=>{r({[I]:D})}}function v(I){if(I!==p){let D=hp({attributes:{url:I}});if(D!==void 0&&o){o(D);return}r({src:I,id:void 0,blob:void 0}),d()}}let{createErrorNotice:b}=(0,Gj.useDispatch)(Wj.store);function _(I){b(I,{type:"snackbar"})}function k(I){return I?(0,la.__)("Autoplay may cause usability issues for some users."):null}function x(I){if(!I||!I.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,Uj.isBlobURL)(I.url)){d(I.url);return}r({blob:void 0,src:I.url,id:I.id,caption:I.caption}),d()}let w=C(t,{"is-transient":!!m}),S=(0,za.useBlockProps)({className:w}),T=Z();return!p&&!m?(0,Mr.jsx)("div",{...S,children:(0,Mr.jsx)(za.MediaPlaceholder,{icon:(0,Mr.jsx)(za.BlockIcon,{icon:ru}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:CN,value:e,onError:_})}):(0,Mr.jsxs)(Mr.Fragment,{children:[a&&(0,Mr.jsx)(za.BlockControls,{group:"other",children:(0,Mr.jsx)(za.MediaReplaceFlow,{mediaId:l,mediaURL:p,allowedTypes:CN,accept:"audio/*",onSelect:x,onSelectURL:v,onError:_,onReset:()=>x(void 0),variant:"toolbar"})}),(0,Mr.jsx)(za.InspectorControls,{children:(0,Mr.jsxs)(gi.__experimentalToolsPanel,{label:(0,la.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:T,children:[(0,Mr.jsx)(gi.__experimentalToolsPanelItem,{label:(0,la.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,Mr.jsx)(gi.ToggleControl,{label:(0,la.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:k})}),(0,Mr.jsx)(gi.__experimentalToolsPanelItem,{label:(0,la.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Mr.jsx)(gi.ToggleControl,{label:(0,la.__)("Loop"),onChange:g("loop"),checked:!!c})}),(0,Mr.jsx)(gi.__experimentalToolsPanelItem,{label:(0,la.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Mr.jsx)(gi.SelectControl,{label:(0,la._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:I=>r({preload:I||void 0}),options:[{value:"",label:(0,la.__)("Browser default")},{value:"auto",label:(0,la.__)("Auto")},{value:"metadata",label:(0,la.__)("Metadata")},{value:"none",label:(0,la._x)("None","Preload value")}]})})]})}),(0,Mr.jsxs)("figure",{...S,children:[(0,Mr.jsx)("audio",{controls:"controls",inert:a?void 0:"true",src:p??m}),!!m&&(0,Mr.jsx)(gi.Spinner,{}),(0,Mr.jsx)(Ao,{attributes:e,setAttributes:r,isSelected:a,insertBlocksAfter:i,label:(0,la.__)("Audio caption text"),showToolbarButton:a&&h})]})]})}var qj=Hye;var h5={$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:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"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}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var pd=n(P(),1),Wv=n(y(),1);function Zj({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:a,src:i}=e;return i&&(0,Wv.jsxs)("figure",{...pd.useBlockProps.save(),children:[(0,Wv.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:a}),!pd.RichText.isEmpty(r)&&(0,Wv.jsx)(pd.RichText.Content,{tagName:"figcaption",value:r,className:(0,pd.__experimentalGetElementClassName)("caption")})]})}var Kj=n(Ar(),1),Yj=n($(),1),Uye={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,Yj.createBlock)("core/audio",{blob:(0,Kj.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:o,wav:a,wma:i}})=>e||t||r||o||a||i},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},Qj=Uye;var{fieldsKey:Gye,formKey:Wye}=j(Xj.privateApis),{name:Jj}=h5,g5={icon:ru,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Qj,deprecated:Bj,edit:qj,save:Zj};window.__experimentalContentOnlyInspectorFields&&(g5[Gye]=[{id:"audio",label:(0,SN.__)("Audio"),type:"media",Edit:{control:"media",allowedTypes:["audio"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.src}),setValue:({value:e})=>({id:e.id,src:e.url})},{id:"caption",label:(0,SN.__)("Caption"),type:"text",Edit:"rich-text"}],g5[Wye]={fields:["audio","caption"]});var $ye=()=>R({name:Jj,metadata:h5,settings:g5});var PN={};K(PN,{init:()=>Zye,metadata:()=>v5,name:()=>nU,settings:()=>aU});var v5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/breadcrumbs",title:"Breadcrumbs",category:"theme",description:"Display a breadcrumb trail showing the path to the current page.",textdomain:"default",attributes:{prefersTaxonomy:{type:"boolean",default:!1},separator:{type:"string",default:"/"},showHomeItem:{type:"boolean",default:!0},showCurrentItem:{type:"boolean",default:!0},showOnHomePage:{type:"boolean",default:!1}},usesContext:["postId","postType","templateSlug"],supports:{anchor:!0,html:!1,align:["wide","full"],spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!0,width:!0,style:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-breadcrumbs"};var Zr=n(N(),1),$v=n(P(),1),en=n(O(),1),eU=n(F(),1),y5=n(re(),1),lu=n(H(),1),tU=n(ap(),1),rU=n(ve(),1);var Pt=n(y(),1),b5="/";function oU({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:a,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:p}=e,{post:m,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:g}=(0,eU.useSelect)(z=>{if(!a)return{};let U=z(y5.store).getEntityRecord("postType",a,o),q=z(y5.store).getPostType(a),G=q&&q.taxonomies.length,W;return G&&(W=z(y5.store).getTaxonomies({type:a,per_page:-1})),{post:U,isPostTypeHierarchical:q?.hierarchical,postTypeHasTaxonomies:G,hasTermsAssigned:U&&(W||[]).filter(({visibility:V})=>V?.publicly_queryable).some(V=>!!U[V.rest_base]?.length),isLoading:o&&!U||!q||G&&!W}},[a,o]),[v,b]=(0,lu.useState)(0);(0,lu.useEffect)(()=>{b(z=>z+1)},[m]);let _=Z(),{content:k,status:x,error:w}=(0,tU.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:v}}),S=(0,lu.useRef)("");(0,lu.useEffect)(()=>{x==="success"&&(S.current=k)},[k,x]);let[T,I]=(0,lu.useState)(!1);(0,lu.useEffect)(()=>{if(x!=="loading")return;let z=setTimeout(()=>{I(!0)},400);return()=>{clearTimeout(z),I(!1)}},[x]);let D=(0,rU.useDisabled)(),L=(0,$v.useBlockProps)({ref:D});if(g)return(0,Pt.jsx)("div",{...L,children:(0,Pt.jsx)(en.Spinner,{})});let E;!d&&!m?.parent?E=!0:f?E=u:E=!1;let B=null,A=!o||!a||i&&!a||!E&&!d||E&&!h;if(A){let z=[];s&&z.push((0,Zr.__)("Home")),i&&!o?z.push((0,Zr.__)("Page")):E?z.push((0,Zr.__)("Category")):z.push((0,Zr.__)("Ancestor"),(0,Zr.__)("Parent")),B=(0,Pt.jsx)("nav",{...L,style:{"--separator":`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...L.style},children:(0,Pt.jsxs)("ol",{children:[z.map((U,q)=>(0,Pt.jsx)("li",{children:(0,Pt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${q}`,children:U})},q)),c&&(0,Pt.jsx)("li",{children:(0,Pt.jsx)("span",{"aria-current":"page",children:(0,Zr.__)("Current")})})]})})}return(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)($v.InspectorControls,{children:(0,Pt.jsxs)(en.__experimentalToolsPanel,{label:(0,Zr.__)("Settings"),resetAll:()=>{t({separator:b5,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,Pt.jsx)(en.__experimentalToolsPanelItem,{label:(0,Zr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,Pt.jsx)(en.ToggleControl,{label:(0,Zr.__)("Show home breadcrumb"),onChange:z=>t({showHomeItem:z}),checked:s})}),(0,Pt.jsx)(en.__experimentalToolsPanelItem,{label:(0,Zr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Pt.jsx)(en.ToggleControl,{label:(0,Zr.__)("Show current breadcrumb"),onChange:z=>t({showCurrentItem:z}),checked:c})}),(0,Pt.jsx)(en.__experimentalToolsPanelItem,{label:(0,Zr.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==b5,onDeselect:()=>t({separator:b5}),children:(0,Pt.jsx)(en.TextControl,{autoComplete:"off",label:(0,Zr.__)("Separator"),value:l,onChange:z=>t({separator:z}),onBlur:()=>{l||t({separator:b5})}})})]})}),(0,Pt.jsxs)($v.InspectorControls,{group:"advanced",children:[(0,Pt.jsx)(en.CheckboxControl,{label:(0,Zr.__)("Show on homepage"),checked:p,onChange:z=>t({showOnHomePage:z}),help:(0,Zr.__)("If this Breadcrumbs block appears in a template or template part that\u2019s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.")}),(0,Pt.jsx)(en.CheckboxControl,{label:(0,Zr.__)("Prefer taxonomy terms"),checked:u,onChange:z=>t({prefersTaxonomy:z}),help:(0,Zr.__)("The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.")})]}),x==="loading"&&!A&&(S.current?(0,Pt.jsx)(_o,{wrapperProps:{...L,style:{...L.style,opacity:T?.3:1}},html:S.current}):(0,Pt.jsx)("div",{...L,children:(0,Pt.jsx)(en.Spinner,{})})),x==="error"&&(0,Pt.jsx)("div",{...L,children:(0,Pt.jsx)("p",{children:(0,Zr.sprintf)((0,Zr.__)("Error: %s"),w)})}),A&&B,!A&&x==="success"&&(0,Pt.jsx)(_o,{wrapperProps:L,html:k})]})}var{name:nU}=v5,aU={icon:tP,example:{},edit:oU},Zye=()=>R({name:nU,metadata:v5,settings:aU});var TD={};K(TD,{init:()=>xxe,metadata:()=>K5,name:()=>cW,settings:()=>Q5});var Y5=n(N(),1);var sW=n($(),1);var ye=n(P(),1),Kl=n(ve(),1);var iU=n(P(),1);var{cleanEmptyObject:Kye}=j(iU.privateApis);function Zt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Kye({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function be(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Ht=n(y(),1),ul=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},Sh=e=>{let{borderRadius:t,...r}=e,o=[t,r.style?.border?.radius].find(a=>typeof a=="number"&&a!==0);return o?{...r,style:{...r.style,border:{...r.style?.border,radius:`${o}px`}}}:r};function Yye(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:C(r.className,`align${e.align}`)}}var BN=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);let{customTextColor:r,customBackgroundColor:o,customGradient:a,...i}=e;return{...i,style:t}},EN=e=>{let{color:t,textColor:r,...o}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return BN(o)},su={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"}},Qye={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!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}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,fontSize:a,linkTarget:i,rel:l,style:s,text:c,title:u,url:p,width:m}=e,d=r||"a",f=d==="button",h=o||"button",g=(0,ye.__experimentalGetBorderClassesAndStyles)(e),v=(0,ye.__experimentalGetColorClassesAndStyles)(e),b=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),_=(0,ye.__experimentalGetShadowClassesAndStyles)(e),k=(0,ye.getTypographyClassesAndStyles)(e),x=C("wp-block-button__link",v.className,g.className,k.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":a||s?.typography?.fontSize},(0,ye.__experimentalGetElementClassName)("button")),w={...g.style,...v.style,...b.style,..._.style,...k.style,writingMode:void 0},S=C(t,{[`has-custom-width wp-block-button__width-${m}`]:m});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:S}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:d,type:f?h:null,className:x,href:f?null:p,title:u,style:w,value:c,target:f?null:i,rel:f?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:ul},Xye={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},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:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!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}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:r,type:o,textAlign:a,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:p,url:m,width:d}=e,f=r||"a",h=f==="button",g=o||"button",v=(0,ye.__experimentalGetBorderClassesAndStyles)(e),b=(0,ye.__experimentalGetColorClassesAndStyles)(e),_=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),k=(0,ye.__experimentalGetShadowClassesAndStyles)(e),x=(0,ye.getTypographyClassesAndStyles)(e),w=C("wp-block-button__link",b.className,v.className,x.className,{[`has-text-align-${a}`]:a,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,ye.__experimentalGetElementClassName)("button")),S={...v.style,...b.style,..._.style,...k.style,...x.style,writingMode:void 0},T=C(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:T}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:f,type:h?g:null,className:w,href:h?null:m,title:p,style:S,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,Kl.compose)(ul,be)},Jye={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},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,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!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__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){let{tagName:r,type:o,textAlign:a,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:p,url:m,width:d}=e,f=r||"a",h=f==="button",g=o||"button",v=(0,ye.__experimentalGetBorderClassesAndStyles)(e),b=(0,ye.__experimentalGetColorClassesAndStyles)(e),_=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),k=(0,ye.__experimentalGetShadowClassesAndStyles)(e),x=C("wp-block-button__link",b.className,v.className,{[`has-text-align-${a}`]:a,"no-border-radius":c?.border?.radius===0},(0,ye.__experimentalGetElementClassName)("button")),w={...v.style,...b.style,..._.style,...k.style},S=C(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:S}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:f,type:h?g:null,className:x,href:h?null:m,title:p,style:w,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:ul},e2e={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}){let{fontSize:r,linkTarget:o,rel:a,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=(0,ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,ye.__experimentalGetColorClassesAndStyles)(e),d=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),f=C("wp-block-button__link",m.className,p.className,{"no-border-radius":i?.border?.radius===0}),h={...p.style,...m.style,...d.style},g=C(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:g}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:a})})}},t2e={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}){let{fontSize:r,linkTarget:o,rel:a,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=(0,ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,ye.__experimentalGetColorClassesAndStyles)(e),d=(0,ye.__experimentalGetSpacingClassesAndStyles)(e),f=C("wp-block-button__link",m.className,p.className,{"no-border-radius":i?.border?.radius===0}),h={...p.style,...m.style,...d.style},g=C(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:g}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:a})})},migrate:(0,Kl.compose)(ul,Zt),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},r2e=[Qye,Xye,Jye,e2e,t2e,{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:{...su,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 typeof e?.border?.radius=="number"},save({attributes:e,className:t}){let{fontSize:r,linkTarget:o,rel:a,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let p=i?.border?.radius,m=(0,ye.__experimentalGetColorClassesAndStyles)(e),d=C("wp-block-button__link",m.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:p||void 0,...m.style},h=C(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:h}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:o,rel:a})})},migrate:(0,Kl.compose)(ul,Zt,Sh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...su,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}){let{borderRadius:r,linkTarget:o,rel:a,text:i,title:l,url:s,width:c}=e,u=(0,ye.__experimentalGetColorClassesAndStyles)(e),p=C("wp-block-button__link",u.className,{"no-border-radius":r===0}),m={borderRadius:r?r+"px":void 0,...u.style},d=C(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:d}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:p,href:s,title:l,style:m,value:i,target:o,rel:a})})},migrate:(0,Kl.compose)(ul,Zt,Sh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...su,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}){let{borderRadius:r,linkTarget:o,rel:a,text:i,title:l,url:s,width:c}=e,u=(0,ye.__experimentalGetColorClassesAndStyles)(e),p=C("wp-block-button__link",u.className,{"no-border-radius":r===0}),m={borderRadius:r?r+"px":void 0,...u.style},d=C(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Ht.jsx)("div",{...ye.useBlockProps.save({className:d}),children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:p,href:s,title:l,style:m,value:i,target:o,rel:a})})},migrate:(0,Kl.compose)(ul,Zt,Sh)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...su,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}){let{borderRadius:t,linkTarget:r,rel:o,text:a,title:i,url:l}=e,s=C("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:a,target:r,rel:o})},migrate:(0,Kl.compose)(ul,Sh)},{supports:{align:!0,alignWide:!1},attributes:{...su,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,Kl.compose)(ul,Sh,BN,Yye),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:a,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:p,title:m,url:d}=e,f=(0,ye.getColorClassName)("color",p),h=!i&&(0,ye.getColorClassName)("background-color",t),g=(0,ye.__experimentalGetGradientClass)(s),v=C("wp-block-button__link",{"has-text-color":p||a,[f]:f,"has-background":t||o||i||s,[h]:h,"no-border-radius":r===0,[g]:g}),b={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:f?void 0:a,borderRadius:r?r+"px":void 0};return(0,Ht.jsx)("div",{children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:v,href:d,title:m,style:b,value:u,target:l,rel:c})})}},{attributes:{...su,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()),Sh(BN({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:a,rel:i,text:l,textColor:s,title:c,url:u}=e,p=(0,ye.getColorClassName)("color",s),m=(0,ye.getColorClassName)("background-color",t),d=C("wp-block-button__link",{"has-text-color":s||o,[p]:p,"has-background":t||r,[m]:m}),f={backgroundColor:m?void 0:r,color:p?void 0:o};return(0,Ht.jsx)("div",{children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:a,rel:i})})}},{attributes:{...su,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,Kl.compose)(ul,EN),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:a,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,ye.getColorClassName)("color",i),u=(0,ye.getColorClassName)("background-color",a),p=C("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":a||l,[u]:u}),m={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,Ht.jsx)("div",{children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:p,href:t,title:o,style:m,value:r})})}},{attributes:{...su,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:a,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,Ht.jsx)("div",{className:`align${a}`,children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:s,value:r})})},migrate:(0,Kl.compose)(ul,EN)},{attributes:{...su,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:a,color:i,textColor:l}=e;return(0,Ht.jsx)("div",{className:`align${a}`,style:{backgroundColor:i},children:(0,Ht.jsx)(ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:r})})},migrate:(0,Kl.compose)(ul,EN)}],lU=r2e;var ml=n(N(),1),In=n(H(),1),zh=n(O(),1),pt=n(P(),1),wp=n(Ks(),1);var pu=n($(),1),kd=n(ve(),1),cb=n(F(),1);var md=n(ut(),1);function cU({controlled:e,default:t,name:r,state:o="value"}){let{current:a}=md.useRef(e!==void 0),[i,l]=md.useState(t),s=a?e:i,c=md.useCallback(u=>{a||l(u)},[]);return[s,c]}var o2e=n(ut(),1),qv={...o2e};var pU=n(ut(),1),uU={};function Ys(e,t){let r=pU.useRef(uU);return r.current===uU&&(r.current=e(t)),r}var IN=qv.useInsertionEffect,n2e=IN&&IN!==qv.useLayoutEffect?IN:e=>e();function mr(e){let t=Ys(a2e).current;return t.next=e,n2e(t.effect),t.trampoline}function a2e(){let e={next:void 0,callback:i2e,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function i2e(){}var mU=n(ut(),1),l2e=()=>{},Kt=typeof document<"u"?mU.useLayoutEffect:l2e;var vp=n(ut(),1);var _5=n(ut(),1),NN=_5.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function dU(){return _5.useContext(NN)}var fU=n(y(),1);function x5(e){let{children:t,elementsRef:r,labelsRef:o,onMapChange:a}=e,i=mr(a),l=vp.useRef(0),s=Ys(c2e).current,c=Ys(s2e).current,[u,p]=vp.useState(0),m=vp.useRef(u),d=mr((b,_)=>{c.set(b,_??null),m.current+=1,p(m.current)}),f=mr(b=>{c.delete(b),m.current+=1,p(m.current)}),h=vp.useMemo(()=>{let b=new Map;return Array.from(c.keys()).filter(k=>k.isConnected).sort(u2e).forEach((k,x)=>{let w=c.get(k)??{};b.set(k,{...w,index:x})}),b},[c,u]);Kt(()=>{if(typeof MutationObserver!="function"||h.size===0)return;let b=new MutationObserver(_=>{let k=new Set,x=w=>k.has(w)?k.delete(w):k.add(w);_.forEach(w=>{w.removedNodes.forEach(x),w.addedNodes.forEach(x)}),k.size===0&&(m.current+=1,p(m.current))});return h.forEach((_,k)=>{k.parentElement&&b.observe(k.parentElement,{childList:!0})}),()=>{b.disconnect()}},[h]),Kt(()=>{m.current===u&&(r.current.length!==h.size&&(r.current.length=h.size),o&&o.current.length!==h.size&&(o.current.length=h.size),l.current=h.size),i(h)},[i,h,r,o,u]),Kt(()=>()=>{r.current=[]},[r]),Kt(()=>()=>{o&&(o.current=[])},[o]);let g=mr(b=>(s.add(b),()=>{s.delete(b)}));Kt(()=>{s.forEach(b=>b(h))},[s,h]);let v=vp.useMemo(()=>({register:d,unregister:f,subscribeMapChange:g,elementsRef:r,labelsRef:o,nextIndexRef:l}),[d,f,g,r,o,l]);return(0,fU.jsx)(NN.Provider,{value:v,children:t})}function s2e(){return new Map}function c2e(){return new Set}function u2e(e,t){let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}var k5=n(ut(),1),p2e=k5.createContext(void 0);function hU(){return k5.useContext(p2e)?.direction??"ltr"}function m2e(e,t){return function(o,...a){let i=new URL(e);return i.searchParams.set("code",o.toString()),a.forEach(l=>i.searchParams.append("args[]",l)),`${t} error #${o}; visit ${i} for the full message.`}}var d2e=m2e("https://base-ui.com/production-error","Base UI"),bp=d2e;var fd=n(ut(),1);function dd(e,t,r,o){let a=Ys(vU).current;return f2e(a,e,t,r,o)&&bU(a,[e,t,r,o]),a.callback}function gU(e){let t=Ys(vU).current;return h2e(t,e)&&bU(t,e),t.callback}function vU(){return{callback:null,cleanup:null,refs:[]}}function f2e(e,t,r,o,a){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==a}function h2e(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function bU(e,t){if(e.refs=t,t.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){let o=Array(t.length).fill(null);for(let a=0;a<t.length;a+=1){let i=t[a];if(i!=null)switch(typeof i){case"function":{let l=i(r);typeof l=="function"&&(o[a]=l);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let a=0;a<t.length;a+=1){let i=t[a];if(i!=null)switch(typeof i){case"function":{let l=o[a];typeof l=="function"?l():i(null);break}case"object":{i.current=null;break}default:}}}}}}var _U=n(ut(),1);var yU=n(ut(),1),g2e=parseInt(yU.version,10);function w5(e){return g2e>=e}function DN(e){if(!_U.isValidElement(e))return null;let t=e,r=t.props;return(w5(19)?r?.ref:t.ref)??null}function Zv(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function LN(){}var Kv=Object.freeze([]),Qs=Object.freeze({});function xU(e,t){let r={};for(let o in e){let a=e[o];if(t?.hasOwnProperty(o)){let i=t[o](a);i!=null&&Object.assign(r,i);continue}a===!0?r[`data-${o.toLowerCase()}`]="":a&&(r[`data-${o.toLowerCase()}`]=a.toString())}return r}function kU(e,t){return typeof e=="function"?e(t):e}function wU(e,t){return typeof e=="function"?e(t):e}var RN={};function Yl(e,t,r,o,a){if(!r&&!o&&!a&&!e)return C5(t);let i=C5(e);return t&&(i=Yv(i,t)),r&&(i=Yv(i,r)),o&&(i=Yv(i,o)),a&&(i=Yv(i,a)),i}function CU(e){if(e.length===0)return RN;if(e.length===1)return C5(e[0]);let t=C5(e[0]);for(let r=1;r<e.length;r+=1)t=Yv(t,e[r]);return t}function C5(e){return AN(e)?{...TU(e,RN)}:v2e(e)}function Yv(e,t){return AN(t)?TU(t,e):b2e(e,t)}function v2e(e){let t={...e};for(let r in t){let o=t[r];SU(r,o)&&(t[r]=PU(o))}return t}function b2e(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=Zv(e.style,o);break}case"className":{e[r]=MN(e.className,o);break}default:SU(r,o)?e[r]=y2e(e[r],o):e[r]=o}}return e}function SU(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),a=e.charCodeAt(2);return r===111&&o===110&&a>=65&&a<=90&&(typeof t=="function"||typeof t>"u")}function AN(e){return typeof e=="function"}function TU(e,t){return AN(e)?e(t):e??RN}function y2e(e,t){return t?e?(...r)=>{let o=r[0];if(EU(o)){let i=o;Qv(i);let l=t(...r);return i.baseUIHandlerPrevented||e?.(...r),l}let a=t(...r);return e?.(...r),a}:PU(t):e}function PU(e){return e&&((...t)=>{let r=t[0];return EU(r)&&Qv(r),e(...t)})}function Qv(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function MN(e,t){return t?e?t+" "+e:t:e}function EU(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var zN=n(ut(),1);function pl(e,t,r={}){let o=t.render,a=_2e(t,r);if(r.enabled===!1)return null;let i=r.state??Qs;return w2e(e,o,a,i)}function _2e(e,t={}){let{className:r,style:o,render:a}=e,{state:i=Qs,ref:l,props:s,stateAttributesMapping:c,enabled:u=!0}=t,p=u?kU(r,i):void 0,m=u?wU(o,i):void 0,d=u?xU(i,c):Qs,f=u&&s?x2e(s):void 0,h=u?Zv(d,f)??{}:Qs;return typeof document<"u"&&(u?Array.isArray(l)?h.ref=gU([h.ref,DN(a),...l]):h.ref=dd(h.ref,DN(a),l):dd(null,null)),u?(p!==void 0&&(h.className=MN(h.className,p)),m!==void 0&&(h.style=Zv(h.style,m)),h):Qs}function x2e(e){return Array.isArray(e)?CU(e):Yl(void 0,e)}var k2e=Symbol.for("react.lazy");function w2e(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let a=Yl(r,t.props);a.ref=r.ref;let i=t;return i?.$$typeof===k2e&&(i=fd.Children.toArray(t)[0]),fd.cloneElement(i,a)}if(e&&typeof e=="string")return C2e(e,r);throw new Error(bp(8))}function C2e(e,t){return e==="button"?(0,zN.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,zN.createElement)("img",{alt:"",...t,key:t.key}):fd.createElement(e,t)}var S5=n(ut(),1);var BU=0;function S2e(e,t="mui"){let[r,o]=S5.useState(e),a=e||r;return S5.useEffect(()=>{r==null&&(BU+=1,o(`${t}-${BU}`))},[r,t]),a}var IU=qv.useId;function NU(e,t){if(IU!==void 0){let r=IU();return e??(t?`${t}-${r}`:r)}return S2e(e,t)}function T5(e){return NU(e,"base-ui")}var Ql={};K(Ql,{cancelOpen:()=>J2e,chipRemovePress:()=>A2e,clearPress:()=>R2e,closePress:()=>D2e,closeWatcher:()=>$2e,decrementPress:()=>V2e,disabled:()=>t_e,drag:()=>Y2e,escapeKey:()=>W2e,focusOut:()=>G2e,imperativeAction:()=>n_e,incrementPress:()=>z2e,initial:()=>o_e,inputBlur:()=>H2e,inputChange:()=>O2e,inputClear:()=>F2e,inputPaste:()=>j2e,inputPress:()=>U2e,itemPress:()=>N2e,keyboard:()=>Z2e,linkPress:()=>L2e,listNavigation:()=>q2e,missing:()=>r_e,none:()=>T2e,outsidePress:()=>I2e,pointer:()=>K2e,scrub:()=>X2e,siblingOpen:()=>e_e,swipe:()=>a_e,trackPress:()=>M2e,triggerFocus:()=>B2e,triggerHover:()=>E2e,triggerPress:()=>P2e,wheel:()=>Q2e,windowResize:()=>i_e});var T2e="none",P2e="trigger-press",E2e="trigger-hover",B2e="trigger-focus",I2e="outside-press",N2e="item-press",D2e="close-press",L2e="link-press",R2e="clear-press",A2e="chip-remove-press",M2e="track-press",z2e="increment-press",V2e="decrement-press",O2e="input-change",F2e="input-clear",H2e="input-blur",j2e="input-paste",U2e="input-press",G2e="focus-out",W2e="escape-key",$2e="close-watcher",q2e="list-navigation",Z2e="keyboard",K2e="pointer",Y2e="drag",Q2e="wheel",X2e="scrub",J2e="cancel-open",e_e="sibling-open",t_e="disabled",r_e="missing",o_e="initial",n_e="imperative-action",a_e="swipe",i_e="window-resize";function Xv(e,t,r,o){let a=!1,i=!1,l=o??Qs;return{reason:e,event:t??new Event("base-ui"),cancel(){a=!0},allowPropagation(){i=!0},get isCanceled(){return a},get isPropagationAllowed(){return i},trigger:r,...l}}var ON=n(ut(),1);var DU=n(ut(),1),l_e=[];function LU(e){DU.useEffect(e,l_e)}var P5=null,cHe=globalThis.requestAnimationFrame,VN=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let r=this.callbacks,o=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,o>0)for(let a=0;a<r.length;a+=1)r[a]?.(t)};request(t){let r=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(t){let r=t-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}},E5=new VN,Xs=class e{static create(){return new e}static request(t){return E5.request(t)}static cancel(t){return E5.cancel(t)}currentId=P5;request(t){this.cancel(),this.currentId=E5.request(()=>{this.currentId=P5,t()})}cancel=()=>{this.currentId!==P5&&(E5.cancel(this.currentId),this.currentId=P5)};disposeEffect=()=>this.cancel};function RU(){let e=Ys(Xs.create).current;return LU(e.disposeEffect),e}function AU(e,t=!1,r=!1){let[o,a]=ON.useState(e&&t?"idle":void 0),[i,l]=ON.useState(e);return e&&!i&&(l(!0),a("starting")),!e&&i&&o!=="ending"&&!r&&a("ending"),!e&&!i&&o==="ending"&&a(void 0),Kt(()=>{if(!e&&i&&o!=="ending"&&r){let s=Xs.request(()=>{a("ending")});return()=>{Xs.cancel(s)}}},[e,i,o,r]),Kt(()=>{if(!e||t)return;let s=Xs.request(()=>{a(void 0)});return()=>{Xs.cancel(s)}},[t,e]),Kt(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&a("starting");let s=Xs.request(()=>{a("idle")});return()=>{Xs.cancel(s)}},[t,e,i,o]),{mounted:i,setMounted:l,transitionStatus:o}}var hd=n(ut(),1);var s_e=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function B5(e={}){let{label:t,metadata:r,textRef:o,indexGuessBehavior:a,index:i}=e,{register:l,unregister:s,subscribeMapChange:c,elementsRef:u,labelsRef:p,nextIndexRef:m}=dU(),d=hd.useRef(-1),[f,h]=hd.useState(i??(a===s_e.GuessFromOrder?()=>{if(d.current===-1){let b=m.current;m.current+=1,d.current=b}return d.current}:-1)),g=hd.useRef(null),v=hd.useCallback(b=>{if(g.current=b,f!==-1&&b!==null&&(u.current[f]=b,p)){let _=t!==void 0;p.current[f]=_?t:o?.current?.textContent??b.textContent}},[f,u,p,t,o]);return Kt(()=>{if(i!=null)return;let b=g.current;if(b)return l(b,r),()=>{s(b)}},[i,l,s,r]),Kt(()=>{if(i==null)return c(b=>{let _=g.current?b.get(g.current)?.index:null;_!=null&&h(_)})},[i,c,h]),{ref:v,index:f}}var gd=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({}),c_e={[gd.startingStyle]:""},u_e={[gd.endingStyle]:""},MU={transitionStatus(e){return e==="starting"?c_e:e==="ending"?u_e:null}};var Th=n(ut(),1);function zU(){return typeof window<"u"}function FN(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vd(e){return zU()?e instanceof HTMLElement||e instanceof FN(e).HTMLElement:!1}function VU(e){return!zU()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof FN(e).ShadowRoot}function I5(e){return FN(e).getComputedStyle(e)}var N5=n(ut(),1),HN=N5.createContext(void 0);function D5(e=!1){let t=N5.useContext(HN);if(t===void 0&&!e)throw new Error(bp(16));return t}var OU=n(ut(),1);function FU(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:a=0,isNativeButton:i}=e,l=o&&t!==!1,s=o&&t===!1;return{props:OU.useMemo(()=>{let u={onKeyDown(p){r&&t&&p.key!=="Tab"&&p.preventDefault()}};return o||(u.tabIndex=a,!i&&r&&(u.tabIndex=t?a:-1)),(i&&(t||l)||!i&&r)&&(u["aria-disabled"]=r),i&&(!t||s)&&(u.disabled=r),u},[o,r,t,l,s,i,a])}}function UN(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:a=!0,composite:i}=e,l=Th.useRef(null),s=D5(!0),c=i??s!==void 0,{props:u}=FU({focusableWhenDisabled:r,disabled:t,composite:c,tabIndex:o,isNativeButton:a}),p=Th.useCallback(()=>{let f=l.current;jN(f)&&c&&t&&u.disabled===void 0&&f.disabled&&(f.disabled=!1)},[t,u.disabled,c]);Kt(p,[p]);let m=Th.useCallback((f={})=>{let{onClick:h,onMouseDown:g,onKeyUp:v,onKeyDown:b,onPointerDown:_,...k}=f;return Yl({onClick(x){if(t){x.preventDefault();return}h?.(x)},onMouseDown(x){t||g?.(x)},onKeyDown(x){if(t||(Qv(x),b?.(x),x.baseUIHandlerPrevented))return;let w=x.target===x.currentTarget,S=x.currentTarget,T=jN(S),I=!a&&p_e(S),D=w&&(a?T:!I),L=x.key==="Enter",E=x.key===" ",B=S.getAttribute("role"),A=B?.startsWith("menuitem")||B==="option"||B==="gridcell";if(w&&c&&E){if(x.defaultPrevented&&A)return;x.preventDefault(),I||a&&T?(S.click(),x.preventBaseUIHandler()):D&&(h?.(x),x.preventBaseUIHandler());return}D&&(!a&&(E||L)&&x.preventDefault(),!a&&L&&h?.(x))},onKeyUp(x){if(!t){if(Qv(x),v?.(x),x.target===x.currentTarget&&a&&c&&jN(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!a&&!c&&x.key===" "&&h?.(x)}},onPointerDown(x){if(t){x.preventDefault();return}_?.(x)}},a?{type:"button"}:{role:"button"},u,k)},[t,u,c,a]),d=mr(f=>{l.current=f,p()});return{getButtonProps:m,buttonRef:d}}function jN(e){return vd(e)&&e.tagName==="BUTTON"}function p_e(e){return!!(e?.tagName==="A"&&e?.href)}function GN(e){return e?.ownerDocument||document}var $U=n(ut(),1);var GU=n(jU(),1);function UU(e){return e==null?e:"current"in e?e.current:e}function WU(e,t=!1,r=!0){let o=RU();return mr((a,i=null)=>{o.cancel();let l=UU(e);if(l==null)return;let s=l,c=()=>{GU.flushSync(a)};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){a();return}function u(){Promise.all(s.getAnimations().map(p=>p.finished)).then(()=>{i?.aborted||c()}).catch(()=>{if(r){i?.aborted||c();return}let p=s.getAnimations();!i?.aborted&&p.length>0&&p.some(m=>m.pending||m.playState!=="finished")&&u()})}if(t){let p=gd.startingStyle;if(!s.hasAttribute(p)){o.request(u);return}let m=new MutationObserver(()=>{s.hasAttribute(p)||(m.disconnect(),u())});m.observe(s,{attributes:!0,attributeFilter:[p]}),i?.addEventListener("abort",()=>m.disconnect(),{once:!0});return}o.request(u)})}function qU(e){let{enabled:t=!0,open:r,ref:o,onComplete:a}=e,i=mr(a),l=WU(o,r,!1);$U.useEffect(()=>{if(!t)return;let s=new AbortController;return l(i,s.signal),()=>{s.abort()}},[t,r,i,l])}function WN(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function $N(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&VU(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function L5(e){return"composedPath"in e?e.composedPath()[0]:e.target}var qN=Math.round;function Jv(e,t){return t<0||t>=e.length}function ZN(e,t){return bd(e.current,{disabledIndices:t})}function KN(e,t){return bd(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function bd(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:o,amount:a=1}={}){let i=t;do i+=r?-a:a;while(i>=0&&i<=e.length-1&&eb(e,i,o));return i}function eb(e,t,r){if(typeof r=="function"?r(t):r?.includes(t)??!1)return!0;let a=e[t];return a?d_e(a)?!r&&(a.hasAttribute("disabled")||a.getAttribute("aria-disabled")==="true"):!0:!1}function m_e(e){return e.visibility==="hidden"||e.visibility==="collapse"}function d_e(e,t=e?I5(e):null){return!e||!e.isConnected||!t||m_e(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var R5=n(ut(),1);function XU(){let[,e]=R5.useState({});return R5.useCallback(()=>{e({})},[])}var Eh="ArrowUp",Bh="ArrowDown",tb="ArrowLeft",rb="ArrowRight",ob="Home",nb="End";var QN=new Set([tb,rb]),eG=new Set([tb,rb,ob,nb]),XN=new Set([Eh,Bh]),tG=new Set([Eh,Bh,ob,nb]),JN=new Set([...QN,...XN]),rG=new Set([...JN,ob,nb]),w_e="Shift",C_e="Control",S_e="Alt",T_e="Meta",oG=new Set([w_e,C_e,S_e,T_e]);function P_e(e){return vd(e)&&e.tagName==="INPUT"}function eD(e){return!!(P_e(e)&&e.selectionStart!=null||vd(e)&&e.tagName==="TEXTAREA")}function tD(e,t,r,o){if(!e||!t||!t.scrollTo)return;let a=e.scrollLeft,i=e.scrollTop,l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&o!=="vertical"){let c=JU(e,t,"left"),u=A5(e),p=A5(t);r==="ltr"&&(c+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?a=c+t.offsetWidth+p.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:c-p.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(a=c-p.scrollMarginLeft-u.scrollPaddingLeft)),r==="rtl"&&(c-p.scrollMarginRight<e.scrollLeft+u.scrollPaddingLeft?a=c-p.scrollMarginLeft-u.scrollPaddingLeft:c+t.offsetWidth+p.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(a=c+t.offsetWidth+p.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(s&&o!=="horizontal"){let c=JU(e,t,"top"),u=A5(e),p=A5(t);c-p.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=c-p.scrollMarginTop-u.scrollPaddingTop:c+t.offsetHeight+p.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=c+t.offsetHeight+p.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:a,top:i,behavior:"auto"})}function JU(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[o],t.offsetParent!==e);)t=t.offsetParent;return a}function A5(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function nG(e){return w5(19)?e:e?"true":void 0}var aG=n(ut(),1);function iG(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=D5(),{ref:a,index:i}=B5(e),l=r===i,s=aG.useRef(null),c=dd(a,s);return{compositeProps:{tabIndex:l?0:-1,onFocus(){o(i)},onMouseMove(){let p=s.current;if(!t||!p)return;let m=p.hasAttribute("disabled")||p.ariaDisabled==="true";!l&&!m&&p.focus()}},compositeRef:c,index:i}}function rD(e){let t=I5(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,a=vd(e),i=a?e.offsetWidth:r,l=a?e.offsetHeight:o;return(qN(r)!==i||qN(o)!==l)&&(r=i,o=l),{width:r,height:o}}function lG(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var M5=n(ut(),1),E_e=M5.createContext(void 0),B_e={disableStyleElements:!1};function sG(){return M5.useContext(E_e)??B_e}var uG=n(ut(),1);var Ih=n(ut(),1);var z5="data-composite-item-active";var I_e=[];function cG(e){let{loopFocus:t=!0,orientation:r="both",grid:o,onLoop:a,direction:i,highlightedIndex:l,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:u=!1,stopEventPropagation:p=!1,disabledIndices:m,modifierKeys:d=I_e}=e,[f,h]=Ih.useState(0),g=o!=null,v=Ih.useRef(null),b=dd(v,c),_=Ih.useRef([]),k=Ih.useRef(!1),x=l??f,w=mr((L,E=!1)=>{if((s??h)(L),E){let B=_.current[L];tD(v.current,B,i,r)}}),S=mr(L=>{if(L.size===0||k.current)return;k.current=!0;let E=Array.from(L.keys()),B=E.find(z=>z?.hasAttribute(z5))??null,A=B?E.indexOf(B):-1;if(A!==-1)w(A);else if(eb(E,x,m)){let z=bd(E,{disabledIndices:m});Jv(E,z)||w(z)}tD(v.current,B,i,r)});Kt(()=>{if(m==null||l!=null||!k.current)return;let L=_.current;if(eb(L,x,m)){let E=bd(L,{disabledIndices:m});Jv(L,E)||w(E)}},[m,l,x,_,w]);let T=mr((L,E,B)=>a?a(L,E,B,_):B),I=mr(L=>{let E=u?rG:JN;if(!E.has(L.key)||N_e(L,d)||!v.current)return;let A=i==="rtl",z=A?tb:rb,U={horizontal:z,vertical:Bh,both:z}[r],q=A?rb:tb,G={horizontal:q,vertical:Eh,both:q}[r],W=L5(L.nativeEvent);if(W!=null&&eD(W)&&!lG(W)){let J=W.selectionStart,ce=W.selectionEnd,ie=W.value??"";if(J==null||L.shiftKey||J!==ce||L.key!==G&&J<ie.length||L.key!==U&&J>0)return}let V=x,Q=ZN(_,m),Y=KN(_,m);o!=null&&(V=o({disabledIndices:m,elementsRef:_,event:L,highlightedIndex:x,loopFocus:t,maxIndex:Y,minIndex:Q,onLoop:T,orientation:r,rtl:A}));let ee={horizontal:[z],vertical:[Bh],both:[z,Bh]}[r],te={horizontal:[q],vertical:[Eh],both:[q,Eh]}[r],oe=g?E:{horizontal:u?eG:QN,vertical:u?tG:XN,both:E}[r];u&&(L.key===ob?V=Q:L.key===nb&&(V=Y)),V===x&&(ee.includes(L.key)||te.includes(L.key))&&(t&&V===Y&&ee.includes(L.key)?(V=Q,a&&(V=a(L,x,V,_))):t&&V===Q&&te.includes(L.key)?(V=Y,a&&(V=a(L,x,V,_))):V=bd(_.current,{startingIndex:V,decrement:te.includes(L.key),disabledIndices:m})),V!==x&&!Jv(_.current,V)&&(p&&L.stopPropagation(),oe.has(L.key)&&L.preventDefault(),w(V,!0),queueMicrotask(()=>{_.current[V]?.focus()}))});return{props:{ref:b,onFocus(L){let E=v.current,B=L5(L.nativeEvent);!E||B==null||!eD(B)||B.setSelectionRange(0,B.value.length??0)},onKeyDown:I},highlightedIndex:x,onHighlightedIndexChange:w,elementsRef:_,disabledIndices:m,onMapChange:S,relayKeyboardEvent:I}}function N_e(e,t){for(let r of oG.values())if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}var oD=n(y(),1);function pG(e){let{render:t,className:r,style:o,refs:a=Kv,props:i=Kv,state:l=Qs,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:u,orientation:p,grid:m,loopFocus:d,onLoop:f,enableHomeAndEndKeys:h,onMapChange:g,stopEventPropagation:v=!0,rootRef:b,disabledIndices:_,modifierKeys:k,highlightItemOnHover:x=!1,tag:w="div",...S}=e,T=hU(),{props:I,highlightedIndex:D,onHighlightedIndexChange:L,elementsRef:E,onMapChange:B,relayKeyboardEvent:A}=cG({grid:m,loopFocus:d,onLoop:f,orientation:p,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:v,enableHomeAndEndKeys:h,direction:T,disabledIndices:_,modifierKeys:k}),z=pl(w,e,{state:l,ref:a,props:[I,...i,S],stateAttributesMapping:s}),U=uG.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:L,highlightItemOnHover:x,relayKeyboardEvent:A}),[D,L,x,A]);return(0,oD.jsx)(HN.Provider,{value:U,children:(0,oD.jsx)(x5,{elementsRef:E,onMapChange:q=>{g?.(q),B(q)},children:z})})}var mG=n(QU(),1);function D_e(){return LN}function L_e(){return!1}function R_e(){return!0}function dG(){return(0,mG.useSyncExternalStore)(D_e,L_e,R_e)}var Jl={};K(Jl,{Indicator:()=>yG,List:()=>kG,Panel:()=>xG,Root:()=>gG,Tab:()=>vG});var Kr=n(ut(),1);var V5=n(ut(),1),nD=V5.createContext(void 0);function yp(){let e=V5.useContext(nD);if(e===void 0)throw new Error(bp(64));return e}var fG=(function(e){return e.activationDirection="data-activation-direction",e.orientation="data-orientation",e})({});var Js={tabActivationDirection:e=>({[fG.activationDirection]:e})};var aD=n(y(),1),gG=Kr.forwardRef(function(t,r){let{className:o,defaultValue:a=0,onValueChange:i,orientation:l="horizontal",render:s,value:c,style:u,...p}=t,m=t.defaultValue!==void 0,d=Kr.useRef([]),[f,h]=Kr.useState(()=>new Map),[g,v]=cU({controlled:c,default:a,name:"Tabs",state:"value"}),b=c!==void 0,[_,k]=Kr.useState(()=>new Map),x=Kr.useRef(void 0),w=Kr.useCallback(le=>{if(le===void 0)return null;for(let[de,ge]of _.entries())if(ge!=null&&le===(ge.value??ge.index))return de;return null},[_]),[S,T]=Kr.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:I,tabActivationDirection:D}=S,L=D,E=!1;I!==g&&(L=hG(I,g,l,_),E=I!=null&&g!=null&&w(g)==null);let B=E?I:g,A=I!==B||D!==L;Kt(()=>{A&&T({previousValue:B,tabActivationDirection:L})},[B,A,L]);let z=mr((le,de)=>{let ge=hG(g,le,l,_);de.activationDirection=ge,i?.(le,de),!de.isCanceled&&v(le)}),U=mr((le,de)=>{i?.(le,Xv(de,void 0,void 0,{activationDirection:"none"}))}),q=mr((le,de)=>{h(ge=>{if(ge.get(le)===de)return ge;let ne=new Map(ge);return ne.set(le,de),ne})}),G=mr((le,de)=>{h(ge=>{if(!ge.has(le)||ge.get(le)!==de)return ge;let ne=new Map(ge);return ne.delete(le),ne})}),W=Kr.useCallback(le=>f.get(le),[f]),V=Kr.useCallback(le=>{for(let de of _.values())if(le===de?.value)return de?.id},[_]),Q=Kr.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:V,getTabPanelIdByValue:W,onValueChange:z,orientation:l,registerMountedTabPanel:q,setTabMap:k,unregisterMountedTabPanel:G,tabActivationDirection:L,value:g}),[w,V,W,z,l,q,k,G,L,g]),Y=Kr.useMemo(()=>{for(let le of _.values())if(le!=null&&le.value===g)return le},[_,g]),ee=Kr.useMemo(()=>{for(let le of _.values())if(le!=null&&!le.disabled)return le.value},[_]),te=Kr.useRef(!m),oe=Kr.useRef(a),J=Kr.useRef(m),ce=Kr.useRef(!1);Kt(()=>{if(b)return;function le(me,se){v(me),T(Ne=>Ne.previousValue===me&&Ne.tabActivationDirection==="none"?Ne:{previousValue:me,tabActivationDirection:"none"}),U(me,se),te.current=!1}if(_.size===0){ce.current&&g!==null&&!x.current?.isConnected&&le(null,Ql.missing);return}ce.current=!0,x.current=_.keys().next().value;let de=Y?.disabled,ge=Y==null&&g!==null;if(!de&&g===oe.current&&(J.current=!1),J.current&&de&&g===oe.current)return;let ne=te.current;if(de||ge){let me=ee??null;if(g===me){te.current=!1;return}let se=Ql.missing;ne?se=Ql.initial:de&&(se=Ql.disabled),le(me,se);return}ne&&Y!=null&&(U(g,Ql.initial),te.current=!1)},[ee,b,U,Y,v,_,g]);let we=pl("div",t,{state:{orientation:l,tabActivationDirection:L},ref:r,props:p,stateAttributesMapping:Js});return(0,aD.jsx)(nD.Provider,{value:Q,children:(0,aD.jsx)(x5,{elementsRef:d,children:we})})});function hG(e,t,r,o){if(e==null||t==null)return"none";let a=null,i=null;for(let[c,u]of o.entries()){if(u==null)continue;let p=u.value??u.index;if(e===p&&(a=c),t===p&&(i=c),a!=null&&i!=null)break}if(a==null||i==null)return a!==i&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?r==="horizontal"?t>e?"right":"left":t>e?"down":"up":"none";let l=a.getBoundingClientRect(),s=i.getBoundingClientRect();if(r==="horizontal"){if(s.left<l.left)return"left";if(s.left>l.left)return"right"}else{if(s.top<l.top)return"up";if(s.top>l.top)return"down"}return"none"}var cu=n(ut(),1);var O5=n(ut(),1),iD=O5.createContext(void 0);function F5(){let e=O5.useContext(iD);if(e===void 0)throw new Error(bp(65));return e}var vG=cu.forwardRef(function(t,r){let{className:o,disabled:a=!1,render:i,value:l,id:s,nativeButton:c=!0,style:u,...p}=t,{value:m,getTabPanelIdByValue:d,orientation:f,tabActivationDirection:h}=yp(),{activateOnFocus:g,highlightedTabIndex:v,onTabActivation:b,registerTabResizeObserverElement:_,setHighlightedTabIndex:k,tabsListElement:x}=F5(),w=T5(s),S=cu.useMemo(()=>({disabled:a,id:w,value:l}),[a,w,l]),{compositeProps:T,compositeRef:I,index:D}=iG({metadata:S}),L=l===m,E=cu.useRef(!1),B=cu.useRef(null);Kt(()=>{let te=B.current;if(te)return _(te)},[_]),Kt(()=>{if(E.current){E.current=!1;return}if(!(L&&D>-1&&v!==D))return;let te=x;if(te!=null){let oe=WN(GN(te));if(oe&&$N(te,oe))return}a||k(D)},[L,D,v,k,a,x]);let{getButtonProps:A,buttonRef:z}=UN({disabled:a,native:c,focusableWhenDisabled:!0}),U=d(l),q=cu.useRef(!1),G=cu.useRef(!1);function W(te){L||a||b(l,Xv(Ql.none,te.nativeEvent,void 0,{activationDirection:"none"}))}function V(te){L||(D>-1&&!a&&k(D),!a&&g&&(!q.current||q.current&&G.current)&&b(l,Xv(Ql.none,te.nativeEvent,void 0,{activationDirection:"none"})))}function Q(te){if(L||a)return;q.current=!0;function oe(){q.current=!1,G.current=!1}(!te.button||te.button===0)&&(G.current=!0,GN(te.currentTarget).addEventListener("pointerup",oe,{once:!0}))}return pl("button",t,{state:{disabled:a,active:L,orientation:f,tabActivationDirection:h},ref:[r,z,I,B],props:[T,{role:"tab","aria-controls":U,"aria-selected":L,id:w,onClick:W,onFocus:V,onPointerDown:Q,[z5]:L?"":void 0,onKeyDownCapture(){E.current=!0}},p,A],stateAttributesMapping:Js})});var Nh=n(ut(),1);var bG='!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();';var yd=(function(e){return e.activeTabLeft="--active-tab-left",e.activeTabRight="--active-tab-right",e.activeTabTop="--active-tab-top",e.activeTabBottom="--active-tab-bottom",e.activeTabWidth="--active-tab-width",e.activeTabHeight="--active-tab-height",e})({});var H5=n(y(),1),A_e={...Js,activeTabPosition:()=>null,activeTabSize:()=>null},yG=Nh.forwardRef(function(t,r){let{className:o,render:a,renderBeforeHydration:i=!1,style:l,...s}=t,{nonce:c}=sG(),{getTabElementBySelectedValue:u,orientation:p,tabActivationDirection:m,value:d}=yp(),{tabsListElement:f,registerIndicatorUpdateListener:h}=F5(),g=dG(),v=XU();Nh.useEffect(()=>h(v),[h,v]);let b=0,_=0,k=0,x=0,w=0,S=0,T=!1;if(d!=null&&f!=null){let z=u(d);if(z!=null){T=!0;let{width:U,height:q}=rD(z),{width:G,height:W}=rD(f),V=z.getBoundingClientRect(),Q=f.getBoundingClientRect(),Y=G>0?Q.width/G:1,ee=W>0?Q.height/W:1;if(Math.abs(Y)>Number.EPSILON&&Math.abs(ee)>Number.EPSILON){let oe=V.left-Q.left,J=V.top-Q.top;b=oe/Y+f.scrollLeft-f.clientLeft,k=J/ee+f.scrollTop-f.clientTop}else b=z.offsetLeft,k=z.offsetTop;w=U,S=q,_=f.scrollWidth-b-w,x=f.scrollHeight-k-S}}let I=T?{left:b,right:_,top:k,bottom:x}:null,D=T?{width:w,height:S}:null,L=T?{[yd.activeTabLeft]:`${b}px`,[yd.activeTabRight]:`${_}px`,[yd.activeTabTop]:`${k}px`,[yd.activeTabBottom]:`${x}px`,[yd.activeTabWidth]:`${w}px`,[yd.activeTabHeight]:`${S}px`}:void 0,E=T&&w>0&&S>0,A=pl("span",t,{state:{orientation:p,activeTabPosition:I,activeTabSize:D,tabActivationDirection:m},ref:r,props:[{role:"presentation",style:L,hidden:!E},s,{suppressHydrationWarning:!0}],stateAttributesMapping:A_e});return d==null?null:(0,H5.jsxs)(Nh.Fragment,{children:[A,g&&i&&(0,H5.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:bG},suppressHydrationWarning:!0})]})});var Dh=n(ut(),1);var _G=(function(e){return e.index="data-index",e.activationDirection="data-activation-direction",e.orientation="data-orientation",e.hidden="data-hidden",e[e.startingStyle=gd.startingStyle]="startingStyle",e[e.endingStyle=gd.endingStyle]="endingStyle",e})({});var M_e={...Js,...MU},xG=Dh.forwardRef(function(t,r){let{className:o,value:a,render:i,keepMounted:l=!1,style:s,...c}=t,{value:u,getTabIdByPanelValue:p,orientation:m,tabActivationDirection:d,registerMountedTabPanel:f,unregisterMountedTabPanel:h}=yp(),g=T5(),v=Dh.useMemo(()=>({id:g,value:a}),[g,a]),{ref:b,index:_}=B5({metadata:v}),k=a===u,{mounted:x,transitionStatus:w,setMounted:S}=AU(k),T=!x,I=p(a),D={hidden:T,orientation:m,tabActivationDirection:d,transitionStatus:w},L=Dh.useRef(null),E=pl("div",t,{state:D,ref:[r,b,L],props:[{"aria-labelledby":I,hidden:T,id:g,role:"tabpanel",tabIndex:k?0:-1,inert:nG(!k),[_G.index]:_},c],stateAttributesMapping:M_e});return qU({open:k,ref:L,onComplete(){k||S(!1)}}),Kt(()=>{if(!(T&&!l)&&g!=null)return f(a,g),()=>{h(a,g)}},[T,l,a,g,f,h]),l||x?E:null});var Xl=n(ut(),1);var lD=n(y(),1),kG=Xl.forwardRef(function(t,r){let{activateOnFocus:o=!1,className:a,loopFocus:i=!0,render:l,style:s,...c}=t,{onValueChange:u,orientation:p,value:m,setTabMap:d,tabActivationDirection:f}=yp(),[h,g]=Xl.useState(0),[v,b]=Xl.useState(null),_=Xl.useRef(new Set),k=Xl.useRef(new Set),x=Xl.useRef(null);Kt(()=>{if(typeof ResizeObserver>"u")return;let E=new ResizeObserver(()=>{_.current.forEach(B=>{B()})});return x.current=E,v&&E.observe(v),k.current.forEach(B=>{E.observe(B)}),()=>{E.disconnect(),x.current=null}},[v]);let w=mr(E=>(_.current.add(E),()=>{_.current.delete(E)})),S=mr(E=>(k.current.add(E),x.current?.observe(E),()=>{k.current.delete(E),x.current?.unobserve(E)})),T=mr((E,B)=>{E!==m&&u(E,B)}),I={orientation:p,tabActivationDirection:f},D={"aria-orientation":p==="vertical"?"vertical":void 0,role:"tablist"},L=Xl.useMemo(()=>({activateOnFocus:o,highlightedTabIndex:h,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:S,onTabActivation:T,setHighlightedTabIndex:g,tabsListElement:v}),[o,h,w,S,T,g,v]);return(0,lD.jsx)(iD.Provider,{value:L,children:(0,lD.jsx)(pG,{render:l,className:a,style:s,state:I,refs:[r,b],props:[D,c],stateAttributesMapping:Js,highlightedIndex:h,enableHomeAndEndKeys:!0,loopFocus:i,orientation:p,onHighlightedIndexChange:g,onMapChange:d,disabledIndices:Kv})})});function Lh(e){return pl(e.defaultTagName??"div",e,e)}var CG=n(H(),1),SG=n(M(),1),TG=n(y(),1),sD=(0,CG.forwardRef)(function({icon:t,size:r=24,...o},a){return(0,TG.jsx)(SG.SVG,{ref:a,...t.props,...o,width:r,height:r})});var PG=n(H(),1),cD="data-wp-hash";function uD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&V_e(document)),e.__wpStyleRuntime}function z_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${cD}]`))if(r.getAttribute(cD)===t)return!0;return!1}function EG(e,t,r){if(!e.head)return;let o=uD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(z_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(cD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function V_e(e){let t=uD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)EG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function O_e(e,t){let r=uD();r.styles.set(e,t);for(let o of r.documents.keys())EG(o,e,t)}typeof process>"u",O_e("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var F_e={stack:"_19ce0419607e1896__stack"},H_e={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},_p=(0,PG.forwardRef)(function({direction:t,gap:r,align:o,justify:a,wrap:i,render:l,...s},c){let u={gap:r&&H_e[r],alignItems:o,justifyContent:a,flexDirection:t,flexWrap:i};return Lh({render:l,ref:c,props:Yl(s,{style:u,className:F_e.stack})})});var xp=n(H(),1);function BG(e){let t=(0,xp.useRef)(e);t.current=e;let r=(0,xp.useRef)(null),o=(0,xp.useRef)(!1),a=(0,xp.useCallback)(()=>{o.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t.current(),r.current=null},0))},[]);return(0,xp.useEffect)(()=>(o.current=!1,()=>{o.current=!0,r.current&&clearTimeout(r.current)}),[]),a}var IG=n(H(),1),pD="data-wp-hash";function mD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&U_e(document)),e.__wpStyleRuntime}function j_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${pD}]`))if(r.getAttribute(pD)===t)return!0;return!1}function NG(e,t,r){if(!e.head)return;let o=mD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(j_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(pD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function U_e(e){let t=mD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)NG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function G_e(e,t){let r=mD();r.styles.set(e,t);for(let o of r.documents.keys())NG(o,e,t)}typeof process>"u",G_e("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var W_e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},vi=(0,IG.forwardRef)(function({render:t,...r},o){return Lh({render:t,ref:o,props:Yl({className:W_e["visually-hidden"]},r,{"data-visually-hidden":""})})});var DG=n(H(),1),LG=n(N(),1),Ah=n(y(),1),dD="data-wp-hash";function fD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&q_e(document)),e.__wpStyleRuntime}function $_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${dD}]`))if(r.getAttribute(dD)===t)return!0;return!1}function RG(e,t,r){if(!e.head)return;let o=fD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if($_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(dD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function q_e(e){let t=fD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)RG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function U5(e,t){let r=fD();r.styles.set(e,t);for(let o of r.documents.keys())RG(o,e,t)}typeof process>"u",U5("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Z_e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",U5("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var K_e={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",U5("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var j5={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};typeof process>"u",U5("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var Y_e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},uu=(0,DG.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:a=!1,render:i,className:l,...s},c){return Lh({render:i,defaultTagName:"a",ref:c,props:Yl(s,{className:C(Y_e.a,Z_e["box-sizing"],K_e["outset-ring--focus-except-active"],r!=="unstyled"&&j5.link,r!=="unstyled"&&j5[`is-${o}`],r==="unstyled"&&j5["is-unstyled"],l),target:a?"_blank":void 0,children:(0,Ah.jsxs)(Ah.Fragment,{children:[t,a&&(0,Ah.jsx)("span",{className:j5["link-icon"],role:"img","aria-label":(0,LG.__)("(opens in a new tab)")})]})})})});var kp={};K(kp,{List:()=>VG,Panel:()=>$G,Root:()=>ZG,Tab:()=>QG});var _d=n(H(),1);var MG=n(ve(),1),G5=n(y(),1),hD="data-wp-hash";function gD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&X_e(document)),e.__wpStyleRuntime}function Q_e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${hD}]`))if(r.getAttribute(hD)===t)return!0;return!1}function zG(e,t,r){if(!e.head)return;let o=gD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(Q_e(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(hD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function X_e(e){let t=gD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)zG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function J_e(e,t){let r=gD();r.styles.set(e,t);for(let o of r.documents.keys())zG(o,e,t)}typeof process>"u",J_e("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)
&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]
[role=tab]:is([aria-selected=true])
&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var ab={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},AG=1,VG=(0,_d.forwardRef)(function({children:t,variant:r="default",className:o,activateOnFocus:a,...i},l){let[s,c]=(0,_d.useState)(null),[u,p]=(0,_d.useState)({first:!1,last:!1,isScrolling:!1});(0,_d.useEffect)(()=>{if(!s)return;let d=()=>{let{scrollWidth:_,clientWidth:k,scrollLeft:x}=s,w=Math.max(_-k,0),T=(s.dir||(typeof window<"u"?window.getComputedStyle(s).direction:"ltr"))==="rtl"&&x<0?-x:x,I={first:T>AG,last:T<w-AG,isScrolling:_>k};p(D=>D.first===I.first&&D.last===I.last&&D.isScrolling===I.isScrolling?D:I)},f=new ResizeObserver(d),h=()=>{f.disconnect(),f.observe(s),s.querySelectorAll('[role="tab"]').forEach(_=>f.observe(_))},g=new MutationObserver(h);g.observe(s,{childList:!0,subtree:!0});let v=!1,b=()=>{v||(requestAnimationFrame(()=>{d(),v=!1}),v=!0)};return s.addEventListener("scroll",b,{passive:!0}),h(),d(),()=>{s.removeEventListener("scroll",b),f.disconnect(),g.disconnect()}},[s]);let m=(0,MG.useMergeRefs)([l,d=>c(d)]);return(0,G5.jsxs)(Jl.List,{ref:m,activateOnFocus:a,"data-select-on-move":a?"true":"false",className:C(ab.tablist,u.first&&ab["is-overflowing-first"],u.last&&ab["is-overflowing-last"],ab[`is-${r}-variant`],o),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,G5.jsx)(Jl.Indicator,{className:ab.indicator})]})});var jG=n(H(),1);var En=n(H(),1);var ib=n(y(),1),W5=!1,vD=W5?(0,En.createContext)(null):null;function exe(){let e=(0,En.useContext)(vD);(0,En.useEffect)(()=>{if(e)return e.registerTab()},[e])}function txe(){}var OG=W5?exe:txe;function rxe(){let e=(0,En.useContext)(vD);(0,En.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function oxe(){}var FG=W5?rxe:oxe;function nxe({children:e}){let t=(0,En.useRef)(0),r=(0,En.useRef)(0),o=BG(()=>{let s=t.current,c=r.current;if(s!==c)throw new Error(`Tabs: Tab/Panel count mismatch (${s} Tabs, ${c} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`)}),a=(0,En.useCallback)(()=>(t.current+=1,o(),()=>{t.current-=1,o()}),[o]),i=(0,En.useCallback)(()=>(r.current+=1,o(),()=>{r.current-=1,o()}),[o]),l=(0,En.useMemo)(()=>({registerTab:a,registerPanel:i}),[a,i]);return(0,ib.jsx)(vD.Provider,{value:l,children:e})}function axe({children:e}){return(0,ib.jsx)(ib.Fragment,{children:e})}var HG=W5?nxe:axe;var WG=n(y(),1),bD="data-wp-hash";function yD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&lxe(document)),e.__wpStyleRuntime}function ixe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${bD}]`))if(r.getAttribute(bD)===t)return!0;return!1}function UG(e,t,r){if(!e.head)return;let o=yD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(ixe(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(bD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function lxe(e){let t=yD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)UG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function GG(e,t){let r=yD();r.styles.set(e,t);for(let o of r.documents.keys())UG(o,e,t)}typeof process>"u",GG("af6d9984a6","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var sxe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"};typeof process>"u",GG("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var cxe={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"},$G=(0,jG.forwardRef)(function({className:t,...r},o){return FG(),(0,WG.jsx)(Jl.Panel,{ref:o,className:C(sxe.div,cxe["outset-ring--focus-visible"],t),...r})});var qG=n(H(),1);var _D=n(y(),1),ZG=(0,qG.forwardRef)(function({...t},r){return(0,_D.jsx)(HG,{children:(0,_D.jsx)(Jl.Root,{ref:r,...t})})});var KG=n(H(),1);var lb=n(y(),1),kD="data-wp-hash";function wD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&pxe(document)),e.__wpStyleRuntime}function uxe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${kD}]`))if(r.getAttribute(kD)===t)return!0;return!1}function YG(e,t,r){if(!e.head)return;let o=wD(),a=o.injectedStyles.get(e);if(a||(a=new Set,o.injectedStyles.set(e,a)),a.has(t))return;if(uxe(e,t)){a.add(t);return}let i=e.createElement("style");i.setAttribute(kD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),a.add(t)}function pxe(e){let t=wD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)YG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function mxe(e,t){let r=wD();r.styles.set(e,t);for(let o of r.documents.keys())YG(o,e,t)}typeof process>"u",mxe("bb8cbb8f31",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-factor:1;--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-factor:-1;--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)
&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]
[role=tab]:is([aria-selected=true])
&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var xD={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},QG=(0,KG.forwardRef)(function({className:t,children:r,...o},a){return OG(),(0,lb.jsxs)(Jl.Tab,{ref:a,className:C(xD.tab,t),...o,children:[(0,lb.jsx)("span",{className:xD["tab-children"],children:r}),(0,lb.jsx)(sD,{icon:dh,className:xD["tab-chevron"]})]})});var $5="noopener",q5="_blank",Mh="nofollow";var XG=n(pr(),1);function JG({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let a,i=e;if(r)a=q5,i=i?.includes($5)?i:i+` ${$5}`;else{let l=new RegExp(`\\b${$5}\\s*`,"g");i=i?.replace(l,"").trim()}if(o)i=i?.includes(Mh)?i:(i+` ${Mh}`).trim();else{let l=new RegExp(`\\b${Mh}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,XG.prependHTTPS)(t),linkTarget:a,rel:i||void 0}}function sb(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var tW=n(ve(),1),Z5=n(H(),1),rW=n(xd(),1),oW=n(F(),1),nW=n(P(),1);function wt(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:a}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,oW.useDispatch)(nW.store),l=(0,tW.useEvent)(()=>{(0,rW.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:a}}}))}),s=(0,Z5.useRef)();(0,Z5.useEffect)(()=>{a!==s.current&&(s.current=a,l())},[a,l])}function CD(e){return typeof e=="string"&&e.endsWith("%")}function aW(e){if(!e)return{};if(CD(e)){let t={"25%":"wp-block-button__width-25","50%":"wp-block-button__width-50","75%":"wp-block-button__width-75","100%":"wp-block-button__width-100"};return{"has-custom-width":!0,"wp-block-button__width":!0,...t[e]&&{[t[e]]:!0}}}return{"has-custom-width":!0}}var Bn=n(y(),1),{HTMLElementControl:dxe}=j(pt.privateApis),{subscribeDelegatedListener:fxe}=j(kd.privateApis),hxe=[...pt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,ml.__)("Mark as nofollow")}];function gxe(e){let{replaceBlocks:t,selectionChange:r}=(0,cb.useDispatch)(pt.store),{getBlock:o,getBlockAttributes:a,getBlockRootClientId:i,getBlockIndex:l}=(0,cb.useSelect)(pt.store);return(0,kd.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==wp.ENTER)return;let{text:p}=a(e)??{};if(p?.length)return;u.preventDefault();let m=o(i(e)),d=l(e),f=(0,pu.cloneBlock)({...m,innerBlocks:m.innerBlocks.slice(0,d)}),h=(0,pu.createBlock)((0,pu.getDefaultBlockName)()),g=m.innerBlocks.slice(d+1),v=g.length?[(0,pu.cloneBlock)({...m,innerBlocks:g})]:[];t(m.clientId,[f,h,...v],1),r(h.clientId)}return fxe(s,"keydown",c,!0)},[])}function vxe(e){let{attributes:t,setAttributes:r,className:o,isSelected:a,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:p,placeholder:m,rel:d,style:f,text:h,url:g,metadata:v}=t,b=f?.dimensions?.width;wt(e);let _=u||"a";function k(he){wp.isKeyboardEvent.primary(he,"k")?ce(he):wp.isKeyboardEvent.primaryShift(he,"k")&&(ie(),B.current?.focus())}let[x,w]=(0,In.useState)(null),S=(0,pt.__experimentalUseBorderProps)(t),T=(0,pt.__experimentalUseColorProps)(t),I=(0,pt.__experimentalGetSpacingClassesAndStyles)(t),D=(0,pt.__experimentalGetShadowClassesAndStyles)(t),L=(0,pt.__experimentalGetDimensionsClassesAndStyles)(t),E=(0,In.useRef)(),B=(0,In.useRef)(),A=(0,pt.useBlockProps)({ref:(0,kd.useMergeRefs)([w,E]),onKeyDown:k}),z=(0,pt.useBlockEditingMode)(),[U,q]=(0,In.useState)(!1),G=!!g,W=p===q5,V=!!d?.includes(Mh),Q=_==="a",{createPageEntity:Y,userCanCreatePages:ee,lockUrlControls:te=!1}=(0,cb.useSelect)(he=>{if(!a)return{};let ze=he(pt.store).getSettings(),Ct=(0,pu.getBlockBindingsSource)(v?.bindings?.url?.source);return{createPageEntity:ze.__experimentalCreatePageEntity,userCanCreatePages:ze.__experimentalUserCanCreatePages,lockUrlControls:!!v?.bindings?.url&&!Ct?.canUserEditValue?.({select:he,context:c,args:v?.bindings?.url?.args})}},[c,a,v?.bindings?.url]);async function oe(he){let ze=await Y({title:he,status:"draft"});return{id:ze.id,type:ze.type,title:ze.title.rendered,url:ze.link,kind:"post-type"}}function J(he){return(0,In.createInterpolateElement)((0,ml.sprintf)((0,ml.__)("Create page: <mark>%s</mark>"),he),{mark:(0,Bn.jsx)("mark",{})})}function ce(he){he.preventDefault(),q(!0)}function ie(){r({url:void 0,linkTarget:void 0,rel:void 0}),q(!1)}(0,In.useEffect)(()=>{a||q(!1)},[a]);let we=(0,In.useMemo)(()=>({url:g,opensInNewTab:W,nofollow:V}),[g,W,V]),le=gxe(s),de=(0,kd.useMergeRefs)([le,B]),[ge,ne,me]=(0,pt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),se=(0,In.useMemo)(()=>me?[...me?.custom??[],...me?.theme??[],...me?.default??[]]:[],[me]),Ne=(0,pt.getTypographyClassesAndStyles)(t,{typography:{fluid:ge},layout:{wideSize:ne?.wideSize}}),De=(0,In.useMemo)(()=>{if(!b)return;let he="var:preset|dimension|";if(b.startsWith(he)){let ze=b.slice(he.length);return se?.find(Me=>Me.slug===ze)?.size??b}return b},[b,se]),Ce=z==="default"||Q&&!te,pe=C(A.className,aW(De)),ct=(0,In.useMemo)(()=>b?CD(De)?{"--wp--block-button--width":parseFloat(De)}:L.style:{},[b,De,L.style]);return(0,Bn.jsxs)(Bn.Fragment,{children:[(0,Bn.jsx)("div",{...A,className:pe,style:{...A.style,...ct},children:(0,Bn.jsx)(pt.RichText,{ref:de,"aria-label":(0,ml.__)("Button text"),placeholder:m||(0,ml.__)("Add text\u2026"),value:h,onChange:he=>r({text:sb(he)}),withoutInteractiveFormatting:!0,className:C(o,"wp-block-button__link",T.className,S.className,Ne.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":A.style.fontSize},(0,pt.__experimentalGetElementClassName)("button")),style:{...S.style,...T.style,...I.style,...D.style,...Ne.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),Ce&&(0,Bn.jsx)(pt.BlockControls,{group:"block",children:Q&&!te&&(0,Bn.jsx)(zh.ToolbarButton,{name:"link",icon:G?av:fi,title:G?(0,ml.__)("Unlink"):(0,ml.__)("Link"),shortcut:G?wp.displayShortcut.primaryShift("k"):wp.displayShortcut.primary("k"),onClick:G?ie:ce,isActive:G})}),Q&&a&&(U||G)&&!te&&(0,Bn.jsx)(zh.Popover,{placement:"bottom",onClose:()=>{q(!1),B.current?.focus()},anchor:x,focusOnMount:U?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Bn.jsx)(pt.LinkControl,{value:we,onChange:({url:he,opensInNewTab:ze,nofollow:Ct})=>r(JG({rel:d,url:he,opensInNewTab:ze,nofollow:Ct})),onRemove:()=>{ie(),B.current?.focus()},forceIsEditingLink:U,settings:hxe,createSuggestion:Y&&oe,withCreateSuggestion:ee,createSuggestionButtonText:J})}),(0,Bn.jsxs)(pt.InspectorControls,{group:"advanced",children:[(0,Bn.jsx)(dxe,{tagName:u,onChange:he=>r({tagName:he}),options:[{label:(0,ml.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),Q&&(0,Bn.jsx)(zh.TextControl,{label:(0,ml.__)("Link relation"),help:(0,In.createInterpolateElement)((0,ml.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Bn.jsx)(uu,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:he=>r({rel:he})})]})]})}var iW=vxe;var K5={$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:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{width:!0,__experimentalSkipSerialization:["width"],__experimentalDefaultControls:{width:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!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}},interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button",selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"},dimensions:{root:".wp-block-button",width:".wp-block-button"}}};var Nn=n(P(),1),SD=n(y(),1);function lW({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:a,rel:i,style:l,text:s,title:c,url:u}=e,p=t||"a",m=p==="button",d=r||"button",f=(0,Nn.__experimentalGetBorderClassesAndStyles)(e),h=(0,Nn.__experimentalGetColorClassesAndStyles)(e),g=(0,Nn.__experimentalGetSpacingClassesAndStyles)(e),v=(0,Nn.__experimentalGetShadowClassesAndStyles)(e),b=(0,Nn.getTypographyClassesAndStyles)(e),_=C("wp-block-button__link",h.className,f.className,b.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":o||l?.typography?.fontSize},(0,Nn.__experimentalGetElementClassName)("button")),k={...f.style,...h.style,...g.style,...v.style,...b.style,writingMode:void 0};return(0,SD.jsx)("div",{...Nn.useBlockProps.save(),children:(0,SD.jsx)(Nn.RichText.Content,{tagName:p,type:m?d:null,className:_,href:m?null:u,title:c,style:k,value:s,target:m?null:a,rel:m?null:i})})}var{fieldsKey:yxe,formKey:_xe}=j(sW.privateApis),{name:cW}=K5,Q5={icon:oP,example:{attributes:{className:"is-style-fill",text:(0,Y5.__)("Call to action")}},edit:iW,save:lW,deprecated:lU,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,o=e?.metadata?.name,a=r?.trim().length>0;if(t==="list-view"&&(o||a))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(Q5[yxe]=[{id:"text",label:(0,Y5.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Y5.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({url:e.url,rel:e.rel,linkTarget:e.linkTarget})}],Q5[_xe]={fields:["text","link"]});var xxe=()=>R({name:cW,metadata:K5,settings:Q5});var BD={};K(BD,{init:()=>Pxe,metadata:()=>J5,name:()=>bW,settings:()=>yW});var ED=n(N(),1);var pb=n(P(),1),ub=n(y(),1),uW=e=>{if(e.layout)return e;let{contentJustification:t,orientation:r,...o}=e;return(t||r)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),o},kxe=[{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:uW,save({attributes:{contentJustification:e,orientation:t}}){return(0,ub.jsx)("div",{...pb.useBlockProps.save({className:C({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,ub.jsx)(pb.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,ub.jsx)("div",{children:(0,ub.jsx)(pb.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return uW({...e,align:void 0,contentJustification:e.align})}}],pW=kxe;var db=n($(),1),PD=n(es(),1);var mb=n($(),1);function mu(e,t,r=null){if(!e)return;let o=(0,mb.getBlockType)(t);if(!o)return;let a={};if((0,mb.hasBlockSupport)(o,"anchor")&&e.anchor&&(a.anchor=e.anchor),(0,mb.hasBlockSupport)(o,"ariaLabel")&&e.ariaLabel&&(a.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?r(u):u),s),{});Object.keys(l).length>0&&(a.metadata=l)}}if(Object.keys(a).length!==0)return a}var wxe={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,db.createBlock)("core/buttons",{},e.map(t=>(0,db.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,db.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,PD.__unstableCreateElement)(document,r),a=o.innerText||"",l=o.querySelector("a")?.getAttribute("href");return(0,db.createBlock)("core/button",{...t,...mu(t,"core/button",({content:s})=>({text:s})),text:a,url:l})})),isMatch:e=>e.every(t=>{let r=(0,PD.__unstableCreateElement)(document,t.content),o=r.innerText||"",a=r.querySelectorAll("a");return o.length<=30&&a.length<=1})}]},dW=wxe;var X5=n(P(),1),fW=n(y(),1),Cxe={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function Sxe({attributes:e,className:t}){let{fontSize:r,layout:o,style:a}=e,i=(0,X5.useBlockProps)({className:C(t,{"has-custom-font-size":r||a?.typography?.fontSize})}),l=(0,X5.useInnerBlocksProps)(i,{defaultBlock:Cxe,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:o?.orientation??"horizontal"});return(0,fW.jsx)("div",{...l})}var hW=Sxe;var J5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],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,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!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}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0,contentRole:!0},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var ew=n(P(),1),gW=n(y(),1);function vW({attributes:e,className:t}){let{fontSize:r,style:o}=e,a=ew.useBlockProps.save({className:C(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=ew.useInnerBlocksProps.save(a);return(0,gW.jsx)("div",{...i})}var{name:bW}=J5,yW={icon:aP,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,ED.__)("Find out more")}},{name:"core/button",attributes:{text:(0,ED.__)("Contact us")}}]},deprecated:pW,transforms:dW,edit:hW,save:vW},Pxe=()=>R({name:bW,metadata:J5,settings:yW});var ND={};K(ND,{init:()=>Nxe,metadata:()=>tw,name:()=>PW,settings:()=>EW});var tw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site\u2019s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{anchor:!0,align:!0,html:!1,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}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"};var fb=n(O(),1),_W=n(F(),1),xW=n(ap(),1),kW=n(P(),1),wW=n(re(),1),Vh=n(N(),1),CW=n(ve(),1);var bi=n(y(),1),Bxe=kh(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function SW({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:a}=(0,_W.useSelect)(p=>{let{getEntityRecords:m,hasFinishedResolution:d}=p(wW.store),f={status:"publish",per_page:1},h=m("postType","post",f),g=d("getEntityRecords",["postType","post",f]),v,b=p("core/editor");return b&&b.getEditedPostAttribute("type")==="post"&&(v=b.getEditedPostAttribute("date")),{date:v,hasPostsResolved:g,hasPosts:g&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,xW.useServerSideRender)({attributes:{...e,...Bxe(r)},block:t}),c=(0,CW.useDisabled)(),u=(0,kW.useBlockProps)({ref:c});return o?(0,bi.jsxs)(bi.Fragment,{children:[l==="loading"&&(0,bi.jsx)("div",{...u,children:(0,bi.jsx)(fb.Spinner,{})}),l==="error"&&(0,bi.jsx)("div",{...u,children:(0,bi.jsx)("p",{children:(0,Vh.sprintf)((0,Vh.__)("Error: %s"),s)})}),l==="success"&&(0,bi.jsx)(_o,{wrapperProps:u,html:i})]}):(0,bi.jsx)("div",{...u,children:(0,bi.jsx)(fb.Placeholder,{icon:H1,label:(0,Vh.__)("Calendar"),children:a?(0,Vh.__)("No published posts found."):(0,bi.jsx)(fb.Spinner,{})})})}var ID=n($(),1),Ixe={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,ID.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,ID.createBlock)("core/archives")}]},TW=Ixe;var{name:PW}=tw,EW={icon:H1,example:{},edit:SW,transforms:TW},Nxe=()=>R({name:PW,metadata:tw,settings:EW});var RD={};K(RD,{init:()=>Rxe,metadata:()=>rw,name:()=>RW,settings:()=>AW});var rw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},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},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{anchor:!0,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}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var Pr=n(O(),1),BW=n(ve(),1),Oh=n(P(),1),IW=n(Jo(),1),Tr=n(N(),1);var DD=n(re(),1),NW=n(F(),1);var DW=n(Sr(),1);var ht=n(y(),1);function LD({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:a,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:p}){let m=(0,BW.useInstanceId)(LD,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,DD.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(G=>G.visibility.public),g=h?.find(G=>G.slug===s),v=!f&&g?.hierarchical,b={per_page:-1,hide_empty:!a,context:"view"};v&&o&&(b.parent=0);let{records:_,isResolving:k}=(0,DD.useEntityRecords)("taxonomy",s,b),{createWarningNotice:x}=(0,NW.useDispatch)(DW.store),w=G=>{G.preventDefault(),x((0,Tr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${p}`,type:"snackbar"})},S=G=>_?.length?G===null?_:_.filter(({parent:W})=>W===G):[],T=G=>W=>c({[G]:W}),I=G=>G?(0,IW.decodeEntities)(G).trim():(0,Tr.__)("(Untitled)"),D=()=>S(v&&t?0:null).map(V=>L(V)),L=G=>{let W=S(G.id),{id:V,link:Q,count:Y,name:ee}=G;return(0,ht.jsxs)("li",{className:`cat-item cat-item-${V}`,children:[(0,ht.jsx)("a",{href:Q,onClick:w,children:I(ee)}),r&&` (${Y})`,v&&t&&!!W.length&&(0,ht.jsx)("ul",{className:"children",children:W.map(te=>L(te))})]},V)},E=()=>{let W=S(v&&t?0:null);return(0,ht.jsxs)(ht.Fragment,{children:[l?(0,ht.jsx)(Oh.RichText,{className:"wp-block-categories__label","aria-label":(0,Tr.__)("Label text"),placeholder:g?.name,withoutInteractiveFormatting:!0,value:i,onChange:V=>c({label:V})}):(0,ht.jsx)(vi,{render:(0,ht.jsx)("label",{htmlFor:m}),children:i||g?.name}),(0,ht.jsxs)("select",{id:m,children:[(0,ht.jsx)("option",{children:(0,Tr.sprintf)((0,Tr.__)("Select %s"),g?.labels?.singular_name)}),W.map(V=>B(V,0))]})]})},B=(G,W)=>{let{id:V,count:Q,name:Y}=G,ee=S(V);return[(0,ht.jsxs)("option",{className:`level-${W}`,children:[Array.from({length:W*3}).map(()=>"\xA0"),I(Y),r&&` (${Q})`]},V),v&&t&&!!ee.length&&ee.map(te=>B(te,W+1))]},A=_?.length&&!e&&!k?"ul":"div",z=C(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!k,"wp-block-categories-dropdown":!!_?.length&&e&&!k}),U=(0,Oh.useBlockProps)({className:z}),q=Z();return(0,ht.jsxs)(A,{...U,children:[(0,ht.jsx)(Oh.InspectorControls,{children:(0,ht.jsxs)(Pr.__experimentalToolsPanel,{label:(0,Tr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:q,children:[Array.isArray(h)&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,Tr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,ht.jsx)(Pr.SelectControl,{label:(0,Tr.__)("Taxonomy"),options:h.map(G=>({label:G.name,value:G.slug})),value:s,onChange:G=>c({taxonomy:G})})}),(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,Tr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Display as dropdown"),checked:e,onChange:T("displayAsDropdown")})}),e&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Tr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,Tr.__)("Show label"),checked:l,onChange:T("showLabel")})}),(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Tr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show post counts"),checked:r,onChange:T("showPostCounts")})}),v&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,Tr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show only top level terms"),checked:o,onChange:T("showOnlyTopLevel")})}),(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,Tr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show empty terms"),checked:a,onChange:T("showEmpty")})}),v&&!o&&(0,ht.jsx)(Pr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Tr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,ht.jsx)(Pr.ToggleControl,{label:(0,Tr.__)("Show hierarchy"),checked:t,onChange:T("showHierarchy")})})]})}),k&&(0,ht.jsx)(Pr.Placeholder,{icon:mv,label:(0,Tr.__)("Terms"),children:(0,ht.jsx)(Pr.Spinner,{})}),!k&&_?.length===0&&(0,ht.jsx)("p",{children:g.labels.no_terms}),!k&&_?.length>0&&(e?E():D())]})}var ow=n(N(),1);var Lxe=[{name:"terms",title:(0,ow.__)("Terms List"),icon:sp,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,ow.__)("Categories List"),description:(0,ow.__)("Display a list of all categories."),icon:sp,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],LW=Lxe;var{name:RW}=rw,AW={icon:sp,example:{},edit:LD,variations:LW},Rxe=()=>R({name:RW,metadata:rw,settings:AW});var MD={};K(MD,{init:()=>Oxe,metadata:()=>lw,name:()=>gb,settings:()=>KW});var du=n(P(),1),GW=n(F(),1),fu=n(O(),1),Hh=n(H(),1),hb=n(N(),1);var MW=n(N(),1),zW=n(O(),1),nw=n(F(),1),aw=n($(),1),AD=n(P(),1),VW=n(y(),1),Axe=({clientId:e})=>{let{replaceBlocks:t}=(0,nw.useDispatch)(AD.store),r=(0,nw.useSelect)(o=>o(AD.store).getBlock(e),[e]);return(0,VW.jsx)(zW.ToolbarButton,{onClick:()=>t(r.clientId,(0,aw.rawHandler)({HTML:(0,aw.serialize)(r)})),children:(0,MW.__)("Convert to blocks")})},OW=Axe;var FW=n(P(),1),ts=n(O(),1),iw=n(H(),1),Fh=n(N(),1),HW=n(F(),1);var jW=n(ve(),1),dl=n(y(),1);function Mxe({onClick:e,isModalFullScreen:t}){return(0,jW.useViewportMatch)("small","<")?null:(0,dl.jsx)(ts.Button,{size:"compact",onClick:e,icon:Jm,isPressed:t,label:t?(0,Fh.__)("Exit fullscreen"):(0,Fh.__)("Enter fullscreen")})}function zxe(e){let t=(0,HW.useSelect)(r=>r(FW.store).getSettings().styles);return(0,iw.useEffect)(()=>{let{baseURL:r,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(i){i.on("init",()=>{let l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,dl.jsx)("textarea",{...e})}function UW({clientId:e,content:t,onClose:r,onChange:o}){let[a,i]=(0,iw.useState)(!1),l=`editor-${e}`;return(0,dl.jsxs)(ts.Modal,{title:(0,Fh.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:a,className:"block-editor-freeform-modal__content",headerActions:(0,dl.jsx)(Mxe,{onClick:()=>i(!a),isModalFullScreen:a}),children:[(0,dl.jsx)(zxe,{id:l,defaultValue:t}),(0,dl.jsxs)(ts.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,dl.jsx)(ts.FlexItem,{children:(0,dl.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Fh.__)("Cancel")})}),(0,dl.jsx)(ts.FlexItem,{children:(0,dl.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(l)),r()},children:(0,Fh.__)("Save")})})]})]})}var tn=n(y(),1);function WW({attributes:e,setAttributes:t,clientId:r}){let{content:o}=e,[a,i]=(0,Hh.useState)(!1),l=(0,Hh.useRef)(null),s=(0,GW.useSelect)(c=>c(du.store).canRemoveBlock(r),[r]);return(0,tn.jsxs)(tn.Fragment,{children:[s&&(0,tn.jsx)(du.BlockControls,{children:(0,tn.jsx)(fu.ToolbarGroup,{children:(0,tn.jsx)(OW,{clientId:r})})}),(0,tn.jsx)(du.BlockControls,{children:(0,tn.jsx)(fu.ToolbarGroup,{children:(0,tn.jsx)(fu.ToolbarButton,{ref:l,onClick:()=>i(!0),children:(0,hb.__)("Edit")})})}),(0,tn.jsxs)("div",{...(0,du.useBlockProps)(),children:[o?(0,tn.jsx)(Hh.RawHTML,{children:o}):(0,tn.jsx)(fu.Placeholder,{icon:(0,tn.jsx)(du.BlockIcon,{icon:U1}),label:(0,hb.__)("Classic"),instructions:(0,hb.__)("Use the classic editor to add content."),children:(0,tn.jsx)(fu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,hb.__)("Edit contents")})}),a&&(0,tn.jsx)(UW,{clientId:r,content:o,onClose:()=>{i(!1),l.current&&l.current.focus()},onChange:c=>t({content:c})})]})]})}var lw={$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,lock:!1,reusable:!1,renaming:!1,visibility:!1,customCSS:!1},editorStyle:"wp-block-freeform-editor"};var $W=n(H(),1),qW=n(y(),1);function ZW({attributes:e}){let{content:t}=e;return(0,qW.jsx)($W.RawHTML,{children:t})}var{name:gb}=lw,KW={icon:U1,edit:WW,save:ZW},Oxe=()=>R({name:gb,metadata:lw,settings:KW});var HD={};K(HD,{init:()=>$xe,metadata:()=>uw,name:()=>r$,settings:()=>dw});var FD=n(N(),1);var t$=n($(),1);var zD=n(N(),1),sw=n(P(),1),cw=n($(),1),VD=n(y(),1);function YW({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:a}){let i=(0,sw.useBlockProps)();return(0,VD.jsx)("pre",{...i,children:(0,VD.jsx)(sw.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:a,placeholder:(0,zD.__)("Write code\u2026"),"aria-label":(0,zD.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:o?()=>o((0,cw.createBlock)((0,cw.getDefaultBlockName)())):void 0,style:{whiteSpace:"break-spaces"}})})}var uw={$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:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0,role:"content"}},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}},interactivity:{clientNavigation:!0}},style:"wp-block-code"};var pw=n(P(),1);var QW=n(ve(),1);function XW(e){return(0,QW.pipe)(Hxe,jxe)(e||"")}function Hxe(e){return e.replace(/\[/g,"[")}function jxe(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var OD=n(y(),1);function JW({attributes:e}){return(0,OD.jsx)("pre",{...pw.useBlockProps.save(),children:(0,OD.jsx)(pw.RichText.Content,{tagName:"code",value:XW(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var wd=n($(),1),mw=n(es(),1);var Uxe={from:[{type:"input",regExp:/^```$/,transform:()=>(0,wd.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,wd.createBlock)("core/code",{...e,...mu(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){let{attributes:t}=e;return(0,wd.createBlock)("core/code",{...t,...mu(t,"core/code"),content:(0,mw.toHTMLString)({value:(0,mw.create)({text:(0,wd.getBlockContent)(e)})})})}},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,wd.createBlock)("core/paragraph",{...mu(e,"core/paragraph"),content:t})}}]},e$=Uxe;var{fieldsKey:Gxe,formKey:Wxe}=j(t$.privateApis),{name:r$}=uw,dw={icon:G1,example:{attributes:{content:(0,FD.__)(`// A \u201Cblock\u201D is the abstract term used
// to describe units of markup that
// when composed together, form the
// content or layout of a page.
registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`
`+t.content}},transforms:e$,edit:YW,save:JW};window.__experimentalContentOnlyInspectorFields&&(dw[Gxe]=[{id:"content",label:(0,FD.__)("Code"),type:"text",Edit:"rich-text"}],dw[Wxe]={fields:["content"]});var $xe=()=>R({name:r$,metadata:uw,settings:dw});var UD={};K(UD,{init:()=>Qxe,metadata:()=>hw,name:()=>s$,settings:()=>c$});var o$=n(P(),1),jD=n(y(),1),qxe=[{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}){let{verticalAlignment:t,width:r}=e,o=C({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:r+"%"};return(0,jD.jsx)("div",{className:o,style:a,children:(0,jD.jsx)(o$.InnerBlocks.Content,{})})}}],n$=qxe;var rn=n(P(),1),Cp=n(O(),1),fw=n(F(),1),Cd=n(N(),1);var yi=n(y(),1);function Zxe({width:e,setAttributes:t}){let[r]=(0,rn.useSettings)("spacing.units"),o=(0,Cp.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),a=Z();return(0,yi.jsx)(Cp.__experimentalToolsPanel,{label:(0,Cd.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:a,children:(0,yi.jsx)(Cp.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Cd.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,yi.jsx)(Cp.__experimentalUnitControl,{label:(0,Cd.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function Kxe({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:a,clientId:i}){let l=C("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,fw.useSelect)(_=>{let{getBlockOrder:k,getBlockRootClientId:x}=_(rn.store),w=x(i);return{hasChildBlocks:k(i).length>0,rootClientId:w,columnsIds:k(w)}},[i]),{updateBlockAttributes:p}=(0,fw.useDispatch)(rn.store),m=_=>{a({verticalAlignment:_}),p(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,rn.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,v=(0,Cd.sprintf)((0,Cd.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),b=(0,rn.useInnerBlocksProps)({...f,"aria-label":v},{templateLock:r,allowedBlocks:o,renderAppender:c?void 0:rn.InnerBlocks.ButtonBlockAppender});return(0,yi.jsxs)(yi.Fragment,{children:[(0,yi.jsx)(rn.BlockControls,{children:(0,yi.jsx)(rn.BlockVerticalAlignmentToolbar,{onChange:m,value:e,controls:["top","center","bottom","stretch"]})}),(0,yi.jsx)(rn.InspectorControls,{children:(0,yi.jsx)(Zxe,{width:t,setAttributes:a})}),(0,yi.jsx)("div",{...b})]})}var a$=Kxe;var hw={$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"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__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}},layout:!0,interactivity:{clientNavigation:!0},allowedBlocks:!0}};var gw=n(P(),1),i$=n(y(),1);function l$({attributes:e}){let{verticalAlignment:t,width:r}=e,o=C({[`is-vertically-aligned-${t}`]:t}),a;if(r&&/\d/.test(r)){let s=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(s=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),a={flexBasis:s}}let i=gw.useBlockProps.save({className:o,style:a}),l=gw.useInnerBlocksProps.save(i);return(0,i$.jsx)("div",{...l})}var{name:s$}=hw,c$={icon:wP,edit:a$,save:l$,deprecated:n$},Qxe=()=>R({name:s$,metadata:hw,settings:c$});var $D={};K($D,{init:()=>mke,metadata:()=>yw,name:()=>y$,settings:()=>_$});var vb=n(N(),1);var u$=n($(),1),Td=n(P(),1),Sd=n(y(),1);function vw(e){let{doc:t}=vw;t||(t=document.implementation.createHTMLDocument(""),vw.doc=t);let r;t.body.innerHTML=e;for(let o of t.body.firstChild.classList)if(r=o.match(/^layout-column-(\d+)$/))return Number(r[1])-1}var Xxe=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:o,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},p$=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:Xxe,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:a,customTextColor:i}=e,l=(0,Td.getColorClassName)("background-color",r),s=(0,Td.getColorClassName)("color",a),c=C({"has-background":r||o,"has-text-color":a||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Sd.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:o,color:s?void 0:i},children:(0,Sd.jsx)(Td.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>vw(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((l,s)=>{let{originalContent:c}=s,u=vw(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,u$.createBlock)("core/column",{},l)),{columns:a,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,Sd.jsx)("div",{className:`has-${t}-columns`,children:(0,Sd.jsx)(Td.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:r,...o}=e;return e={...o,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:r}=e,o=C(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Sd.jsx)("div",{className:o,children:(0,Sd.jsx)(Td.InnerBlocks.Content,{})})}}];var Pd=n(N(),1),hl=n(O(),1),Yr=n(P(),1),fl=n(F(),1),Ed=n($(),1);var bw=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function m$(e,t){let{width:r=100/t}=e.attributes;return bw(r)}function Jxe(e,t=e.length){return e.reduce((r,o)=>r+m$(o,t),0)}function eke(e,t=e.length){return e.reduce((r,o)=>{let a=m$(o,t);return Object.assign(r,{[o.clientId]:a})},{})}function GD(e,t,r=e.length){let o=Jxe(e,r);return Object.fromEntries(Object.entries(eke(e,r)).map(([a,i])=>{let l=t*i/o;return[a,bw(l)]}))}function d$(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function WD(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var xo=n(y(),1),tke={name:"core/column"};function rke({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:a,minCount:i}=(0,fl.useSelect)(p=>{let{canInsertBlockType:m,canRemoveBlock:d,getBlockOrder:f}=p(Yr.store),h=f(e),g=h.reduce((v,b,_)=>(d(b)||v.push(_),v),[]);return{count:h.length,canInsertColumnBlock:m("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:l}=(0,fl.useSelect)(Yr.store),{replaceInnerBlocks:s}=(0,fl.useDispatch)(Yr.store);function c(p,m){let d=l(e),f=d$(d),h=m>p;if(h&&f){let g=bw(100/m),v=m-p,b=GD(d,100-g*v);d=[...WD(d,b),...Array.from({length:v}).map(()=>(0,Ed.createBlock)("core/column",{width:`${g}%`}))]}else if(h)d=[...d,...Array.from({length:m-p}).map(()=>(0,Ed.createBlock)("core/column"))];else if(m<p&&(d=d.slice(0,-(p-m)),f)){let g=GD(d,100);d=WD(d,g)}s(e,d)}let u=Z();return(0,xo.jsxs)(hl.__experimentalToolsPanel,{label:(0,Pd.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[a&&(0,xo.jsxs)(hl.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,xo.jsx)(hl.RangeControl,{label:(0,Pd.__)("Columns"),value:o,onChange:p=>c(o,Math.max(i,p)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,xo.jsx)(hl.Notice,{status:"warning",isDismissible:!1,children:(0,Pd.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,xo.jsx)(hl.__experimentalToolsPanelItem,{label:(0,Pd.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,xo.jsx)(hl.ToggleControl,{label:(0,Pd.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function oke({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:a,templateLock:i}=e,l=(0,fl.useRegistry)(),{getBlockOrder:s}=(0,fl.useSelect)(Yr.store),{updateBlockAttributes:c}=(0,fl.useDispatch)(Yr.store),u=C({[`are-vertically-aligned-${a}`]:a,"is-not-stacked-on-mobile":!o}),p=(0,Yr.useBlockProps)({className:u}),m=(0,Yr.useInnerBlocksProps)(p,{defaultBlock:tke,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function d(f){let h=s(r);l.batch(()=>{t({verticalAlignment:f}),c(h,{verticalAlignment:f})})}return(0,xo.jsxs)(xo.Fragment,{children:[(0,xo.jsx)(Yr.BlockControls,{children:(0,xo.jsx)(Yr.BlockVerticalAlignmentToolbar,{onChange:d,value:a})}),(0,xo.jsx)(Yr.InspectorControls,{children:(0,xo.jsx)(rke,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,xo.jsx)("div",{...m})]})}function nke({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:a}=(0,fl.useSelect)(s=>{let{getBlockVariations:c,getBlockType:u}=s(Ed.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,fl.useDispatch)(Yr.store),l=(0,Yr.useBlockProps)();return(0,xo.jsx)("div",{...l,children:(0,xo.jsx)(Yr.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:a,instructions:(0,Pd.__)("Divide into columns. Select a layout:"),onSelect:s=>{s.attributes&&r(s.attributes),s.innerBlocks&&i(e,(0,Ed.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!0)}})})}var ake=e=>{let{clientId:t}=e,o=(0,fl.useSelect)(a=>a(Yr.store).getBlocks(t).length>0,[t])?oke:nke;return(0,xo.jsx)(o,{...e})},f$=ake;var yw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],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,heading:!0,button:!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}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"};var _w=n(P(),1),h$=n(y(),1);function g$({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=C({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),a=_w.useBlockProps.save({className:o}),i=_w.useInnerBlocksProps.save(a);return(0,h$.jsx)("div",{...i})}var Va=n(O(),1),_i=n(N(),1),xi=n(y(),1),lke=[{name:"one-column-full",title:(0,_i.__)("100"),description:(0,_i.__)("One column"),icon:(0,xi.jsx)(Va.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Va.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,_i.__)("50 / 50"),description:(0,_i.__)("Two columns; equal split"),icon:(0,xi.jsx)(Va.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Va.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,_i.__)("33 / 66"),description:(0,_i.__)("Two columns; one-third, two-thirds split"),icon:(0,xi.jsx)(Va.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Va.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,_i.__)("66 / 33"),description:(0,_i.__)("Two columns; two-thirds, one-third split"),icon:(0,xi.jsx)(Va.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Va.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,_i.__)("33 / 33 / 33"),description:(0,_i.__)("Three columns; equal split"),icon:(0,xi.jsx)(Va.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Va.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,_i.__)("25 / 50 / 25"),description:(0,_i.__)("Three columns; wide center column"),icon:(0,xi.jsx)(Va.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,xi.jsx)(Va.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],v$=lke;var ec=n($(),1),ske=6,cke=(e,t)=>{let r=+(100/t).toFixed(2),o=Array.from({length:t},(a,i)=>["core/column",{width:`${r}%`},e.filter((l,s)=>s%t===i)]);return(0,ec.createBlocksFromInnerBlocksTemplate)(o)},uke=e=>e.flatMap(t=>{let r=t.innerBlocks||[];return r.length>1?[(0,ec.createBlock)("core/group",{layout:{type:"constrained"}},r)]:r}),pke={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:a}=r;return(0,ec.createBlock)("core/columns",o,cke(t,a))},isMatch:({layout:e})=>e?.type==="grid"&&Number.isInteger(e?.columnCount)&&e.columnCount>0},{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:a,innerBlocks:i,innerContent:l})=>["core/column",{width:`${t}%`},[[o,{...a},i,l]]]);return(0,ec.createBlock)("core/columns",{},(0,ec.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=ske},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:a,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:p,mediaUrl:m,mediaWidth:d,verticalAlignment:f}=e,h;if(p==="image"||!p){let v={id:s,alt:l,url:m,sizeSlug:u},b={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...v,...b}]}else h=["core/video",{id:s,src:m}];let g=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&g.reverse(),(0,ec.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:a,style:i,verticalAlignment:f},(0,ec.createBlocksFromInnerBlocksTemplate)(g))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,ec.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},uke(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},b$=pke;var{name:y$}=yw,_$={icon:SP,variations:v$,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,vb.__)("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,vb.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,vb.__)("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,vb.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:p$,edit:f$,save:g$,transforms:b$},mke=()=>R({name:y$,metadata:yw,settings:_$});var YD={};K(YD,{init:()=>bke,metadata:()=>xw,name:()=>V$,settings:()=>O$});var xw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]};var kw=n(P(),1),qD=n(y(),1),fke={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}}){let t=kw.useBlockProps.save(),{className:r}=t,a=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:a.join(" ")};return(0,qD.jsx)(e,{...i,children:(0,qD.jsx)(kw.InnerBlocks.Content,{})})}},x$=[fke];var Tw=n(P(),1);var k$=n(N(),1),bb=n(P(),1);var ww=n(y(),1),{HTMLElementControl:hke}=j(bb.privateApis);function w$({attributes:{tagName:e},setAttributes:t}){return(0,ww.jsx)(bb.InspectorControls,{children:(0,ww.jsx)(bb.InspectorControls,{group:"advanced",children:(0,ww.jsx)(hke,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,k$.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Tp=n(P(),1),KD=n(N(),1),D$=n(O(),1);var P$=n(P(),1),io=n(N(),1),E$=n(F(),1),B$=n(re(),1),I$=n(H(),1);var gl=n(N(),1),Sp=n(P(),1),C$=n(O(),1),S$=n(ve(),1),Cw=n(re(),1),ZD=n(F(),1),sa=n(y(),1),T$=()=>{let e=(0,S$.useInstanceId)(T$);return(0,sa.jsxs)("div",{className:"comment-respond",children:[(0,sa.jsx)("h3",{className:"comment-reply-title",children:(0,gl.__)("Leave a Reply")}),(0,sa.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,sa.jsxs)("p",{children:[(0,sa.jsx)("label",{htmlFor:`comment-${e}`,children:(0,gl.__)("Comment")}),(0,sa.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,sa.jsx)("p",{className:"form-submit wp-block-button",children:(0,sa.jsx)("input",{name:"submit",type:"submit",className:C("wp-block-button__link",(0,Sp.__experimentalGetElementClassName)("button")),label:(0,gl.__)("Post Comment"),value:(0,gl.__)("Post Comment"),"aria-disabled":"true"})})]})]})},gke=({postId:e,postType:t})=>{let[r,o]=(0,Cw.useEntityProp)("postType",t,"comment_status",e),a=t===void 0||e===void 0,i=(0,ZD.useSelect)(s=>s(Sp.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,ZD.useSelect)(s=>t?!!s(Cw.store).getPostType(t)?.supports.comments:!1);if(!a&&r!=="open")if(r==="closed"){let s=[(0,sa.jsx)(C$.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,gl._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,sa.jsx)(Sp.Warning,{actions:s,children:(0,gl.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,sa.jsx)(Sp.Warning,{children:(0,gl.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,sa.jsx)(Sp.Warning,{children:(0,gl.sprintf)((0,gl.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,sa.jsx)(T$,{})},Sw=gke;var it=n(y(),1);function N$({postType:e,postId:t}){let[r]=(0,B$.useEntityProp)("postType",e,"title",t);r=r||(0,io.__)("Post Title");let o=(0,E$.useSelect)(a=>a(P$.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,it.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,it.jsx)("h3",{children:(0,io.sprintf)((0,io.__)("One response to %s"),r)}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["\xAB ",(0,io.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,io.__)("Newer Comments")," \xBB"]})})]}),(0,it.jsx)("ol",{className:"commentlist",children:(0,it.jsx)("li",{className:"comment even thread-even depth-1",children:(0,it.jsxs)("article",{className:"comment-body",children:[(0,it.jsxs)("footer",{className:"comment-meta",children:[(0,it.jsxs)("div",{className:"comment-author vcard",children:[(0,it.jsx)("img",{alt:(0,io.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,it.jsx)("b",{className:"fn",children:(0,it.jsx)("a",{href:"#top",className:"url",children:(0,io.__)("A WordPress Commenter")})})," ",(0,it.jsxs)("span",{className:"says",children:[(0,io.__)("says"),":"]})]}),(0,it.jsxs)("div",{className:"comment-metadata",children:[(0,it.jsx)("a",{href:"#top",children:(0,it.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,io.__)("January 1, 2000 at 00:00 am")})})," ",(0,it.jsx)("span",{className:"edit-link",children:(0,it.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,io.__)("Edit")})})]})]}),(0,it.jsx)("div",{className:"comment-content",children:(0,it.jsxs)("p",{children:[(0,io.__)("Hi, this is a comment."),(0,it.jsx)("br",{}),(0,io.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,it.jsx)("br",{}),(0,I$.createInterpolateElement)((0,io.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,it.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,it.jsx)("div",{className:"reply",children:(0,it.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,io.__)("Reply to A WordPress Commenter"),children:(0,io._x)("Reply","verb")})})]})})}),(0,it.jsxs)("div",{className:"navigation",children:[(0,it.jsx)("div",{className:"alignleft",children:(0,it.jsxs)("a",{href:"#top",children:["\xAB ",(0,io.__)("Older Comments")]})}),(0,it.jsx)("div",{className:"alignright",children:(0,it.jsxs)("a",{href:"#top",children:[(0,io.__)("Newer Comments")," \xBB"]})})]}),(0,it.jsx)(Sw,{postId:t,postType:e})]})}var rs=n(y(),1);function L$({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:a}=e,i=[(0,rs.jsx)(D$.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,KD.__)("Switch to editable mode")},"convert")],l=(0,Tp.useBlockProps)({className:C({[`has-text-align-${a}`]:a})});return(0,rs.jsxs)(rs.Fragment,{children:[(0,rs.jsx)(Tp.BlockControls,{group:"block",children:(0,rs.jsx)(Tp.AlignmentControl,{value:a,onChange:s=>{t({textAlign:s})}})}),(0,rs.jsxs)("div",{...l,children:[(0,rs.jsx)(Tp.Warning,{actions:i,children:(0,KD.__)("Comments block: You\u2019re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,rs.jsx)(N$,{postId:o,postType:r})]})]})}var vke=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]],R$=vke;var Pp=n(y(),1);function A$(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:a,legacy:i}=t,l=(0,Tw.useBlockProps)(),s=(0,Tw.useInnerBlocksProps)(l,{template:R$});return i?(0,Pp.jsx)(L$,{...e}):(0,Pp.jsxs)(Pp.Fragment,{children:[(0,Pp.jsx)(w$,{attributes:t,setAttributes:r,clientId:o}),(0,Pp.jsx)(a,{...s})]})}var Pw=n(P(),1),M$=n(y(),1);function z$({attributes:{tagName:e,legacy:t}}){let r=Pw.useBlockProps.save(),o=Pw.useInnerBlocksProps.save(r);return t?null:(0,M$.jsx)(e,{...o})}var{name:V$}=xw,O$={icon:NB,example:{},edit:A$,save:z$,deprecated:x$},bke=()=>R({name:V$,metadata:xw,settings:O$});var XD={};K(XD,{init:()=>_ke,metadata:()=>Ew,name:()=>j$,settings:()=>U$});var Ew={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}};var Ep=n(P(),1),jh=n(O(),1),QD=n(re(),1),F$=n(F(),1),Bd=n(N(),1),os=n(y(),1);function H$({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:a,width:i}=e,[l]=(0,QD.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,QD.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,p=u?u[0]:24,m=u?u[u.length-1]:96,d=(0,Ep.useBlockProps)(),f=(0,Ep.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(m*2.5),g=(0,F$.useSelect)(_=>{let{__experimentalDiscussionSettings:k}=_(Ep.store).getSettings();return k?.avatarURL},[]),v=(0,os.jsx)(Ep.InspectorControls,{children:(0,os.jsx)(jh.PanelBody,{title:(0,Bd.__)("Settings"),children:(0,os.jsx)(jh.RangeControl,{label:(0,Bd.__)("Image size"),onChange:_=>r({width:_,height:_}),min:p,max:h,initialPosition:i,value:i})})}),b=(0,os.jsx)(jh.ResizableBox,{size:{width:i,height:a},showHandle:o,onResizeStop:(_,k,x,w)=>{r({height:parseInt(a+w.height,10),width:parseInt(i+w.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Bd.isRTL)(),bottom:!0,left:(0,Bd.isRTL)()},minWidth:p,maxWidth:h,children:(0,os.jsx)("img",{src:c?c[c.length-1]:g,alt:`${s} ${(0,Bd.__)("Avatar")}`,...d})});return(0,os.jsxs)(os.Fragment,{children:[v,(0,os.jsx)("div",{...f,children:b})]})}var{name:j$}=Ew,U$={icon:W1,edit:H$},_ke=()=>R({name:j$,metadata:Ew,settings:U$});var JD={};K(JD,{init:()=>Cke,metadata:()=>Bw,name:()=>Z$,settings:()=>K$});var Bw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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"}},usesContext:["commentId"],supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-author-name"};var hu=n(N(),1),G$=n(F(),1),Iw=n(P(),1),W$=n(re(),1),Bp=n(O(),1);var ki=n(y(),1);function $$(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:a}=e;wt(e);let i=Z(),l=(0,Iw.useBlockProps)(),s=(0,G$.useSelect)(p=>{let{getEntityRecord:m}=p(W$.store),d=m("root","comment",o),f=d?.author_name;return d&&!f?m("root","user",d.author)?.name??(0,hu.__)("Anonymous"):f??""},[o]),c=(0,ki.jsx)(Iw.InspectorControls,{children:(0,ki.jsxs)(Bp.__experimentalToolsPanel,{label:(0,hu.__)("Settings"),resetAll:()=>{a({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,ki.jsx)(Bp.__experimentalToolsPanelItem,{label:(0,hu.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>a({isLink:!0}),children:(0,ki.jsx)(Bp.ToggleControl,{label:(0,hu.__)("Link to authors URL"),onChange:()=>a({isLink:!t}),checked:t})}),t&&(0,ki.jsx)(Bp.__experimentalToolsPanelItem,{label:(0,hu.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>a({linkTarget:"_self"}),children:(0,ki.jsx)(Bp.ToggleControl,{label:(0,hu.__)("Open in new tab"),onChange:p=>a({linkTarget:p?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!s)&&(s=(0,hu._x)("Comment Author","block title")),(0,ki.jsxs)(ki.Fragment,{children:[c,(0,ki.jsx)("div",{...l,children:t?(0,ki.jsx)("a",{href:"#comment-author-pseudo-link",onClick:p=>p.preventDefault(),children:s}):s})]})}var kke={attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},save(){return null},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},wke={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(){return null},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},q$=[kke,wke];var{name:Z$}=Bw,K$={icon:PP,edit:$$,deprecated:q$,example:{}},Cke=()=>R({name:Z$,metadata:Bw,settings:K$});var eL={};K(eL,{init:()=>Pke,metadata:()=>Nw,name:()=>oq,settings:()=>nq});var Nw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1},style:"wp-block-comment-content"};var Y$=n(N(),1),Q$=n(H(),1),X$=n(O(),1),J$=n(re(),1),eq=n(P(),1);var ns=n(y(),1);function tq(e){let{context:{commentId:t}}=e;wt(e);let r=(0,eq.useBlockProps)(),[o]=(0,J$.useEntityProp)("root","comment","content",t);return!t||!o?(0,ns.jsx)(ns.Fragment,{children:(0,ns.jsx)("div",{...r,children:(0,ns.jsx)("p",{children:(0,Y$._x)("Comment Content","block title")})})}):(0,ns.jsx)(ns.Fragment,{children:(0,ns.jsx)("div",{...r,children:(0,ns.jsx)(X$.Disabled,{children:(0,ns.jsx)(Q$.RawHTML,{children:o.rendered},"html")})})})}var Tke={attributes:{textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:["horizontal","vertical"]},html:!1},save(){return null},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},rq=[Tke];var{name:oq}=Nw,nq={icon:BP,edit:tq,deprecated:rq,example:{}},Pke=()=>R({name:oq,metadata:Nw,settings:nq});var rL={};K(rL,{init:()=>Ike,metadata:()=>Dw,name:()=>sq,settings:()=>cq});var Dw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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}},usesContext:["commentId"],supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-date"};var tL=n(re(),1),Nd=n(Lw(),1),Uh=n(P(),1),Dd=n(O(),1),Id=n(N(),1);var ca=n(y(),1);function iq({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let a=(0,Uh.useBlockProps)(),i=Z(),[l]=(0,tL.useEntityProp)("root","comment","date",r),[s=(0,Nd.getSettings)().formats.date]=(0,tL.useEntityProp)("root","site","date_format"),c=(0,ca.jsx)(Uh.InspectorControls,{children:(0,ca.jsxs)(Dd.__experimentalToolsPanel,{label:(0,Id.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,ca.jsx)(Dd.__experimentalToolsPanelItem,{label:(0,Id.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,ca.jsx)(Uh.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:p=>o({format:p})})}),(0,ca.jsx)(Dd.__experimentalToolsPanelItem,{label:(0,Id.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,ca.jsx)(Dd.ToggleControl,{label:(0,Id.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,Id._x)("Comment Date","block title"));let u=l instanceof Date?(0,ca.jsx)("time",{dateTime:(0,Nd.dateI18n)("c",l),children:e==="human-diff"?(0,Nd.humanTimeDiff)(l):(0,Nd.dateI18n)(e||s,l)}):(0,ca.jsx)("time",{children:l});return t&&(u=(0,ca.jsx)("a",{href:"#comment-date-pseudo-link",onClick:p=>p.preventDefault(),children:u})),(0,ca.jsxs)(ca.Fragment,{children:[c,(0,ca.jsx)("div",{...a,children:u})]})}var Bke={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(){return null},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},lq=[Bke];var{name:sq}=Dw,cq={icon:vv,edit:iq,deprecated:lq,example:{}},Ike=()=>R({name:sq,metadata:Dw,settings:cq});var oL={};K(oL,{init:()=>Lke,metadata:()=>Rw,name:()=>mq,settings:()=>dq});var Rw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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"}},supports:{anchor:!0,html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-comment-edit-link"};var Aw=n(P(),1),Gh=n(O(),1),yb=n(N(),1);var as=n(y(),1);function uq(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;wt(e);let a=(0,Aw.useBlockProps)(),i=Z(),l=(0,as.jsx)(Aw.InspectorControls,{children:(0,as.jsx)(Gh.__experimentalToolsPanel,{label:(0,yb.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,as.jsx)(Gh.__experimentalToolsPanelItem,{label:(0,yb.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,as.jsx)(Gh.ToggleControl,{label:(0,yb.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,as.jsxs)(as.Fragment,{children:[l,(0,as.jsx)("div",{...a,children:(0,as.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,yb.__)("Edit")})})]})}var Dke={attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,html:!1,color:{link:!0,gradients:!0,text:!1},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},save(){return null},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},pq=[Dke];var{name:mq}=Rw,dq={icon:NP,edit:uq,deprecated:pq,example:{}},Lke=()=>R({name:mq,metadata:Rw,settings:dq});var nL={};K(nL,{init:()=>zke,metadata:()=>Mw,name:()=>bq,settings:()=>yq});var Mw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,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"],supports:{anchor:!0,color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1},style:"wp-block-comment-reply-link"};var fq=n(N(),1),hq=n(P(),1);var Wh=n(y(),1);function Ake(e){wt(e);let t=(0,hq.useBlockProps)();return(0,Wh.jsx)(Wh.Fragment,{children:(0,Wh.jsx)("div",{...t,children:(0,Wh.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,fq._x)("Reply","verb")})})})}var gq=Ake;var Mke={attributes:{textAlign:{type:"string"}},usesContext:["commentId"],supports:{anchor:!0,color:{gradients:!0,link:!0,text:!1},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1},save(){return null},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},vq=[Mke];var{name:bq}=Mw,yq={edit:gq,icon:LP,deprecated:vq,example:{}},zke=()=>R({name:bq,metadata:Mw,settings:yq});var iL={};K(iL,{init:()=>Wke,metadata:()=>zw,name:()=>Mq,settings:()=>zq});var zw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{anchor:!0,align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-template"};var Vw=n(H(),1),aL=n(F(),1),Eq=n(N(),1),is=n(P(),1),Bq=n(O(),1),Iq=n(re(),1);var Ld=n(H(),1),kq=n(F(),1),wq=n(P(),1),Cq=n(pr(),1),Sq=n(_b(),1),xq=100,Tq=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:a}=(0,kq.useSelect)(s=>{let{getSettings:c}=s(wq.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,xq):xq,l=Oke({defaultPage:a,postId:e,perPage:i,queryArgs:t});return(0,Ld.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},Oke=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[a,i]=(0,Ld.useState)({}),l=`${t}_${r}`,s=a[l]||0;return(0,Ld.useEffect)(()=>{s||e!=="newest"||(0,Sq.default)({path:(0,Cq.addQueryArgs)("/wp/v2/comments",{...o,post:t,per_page:r,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...a,[l]:u<=1?1:u})}).catch(()=>{i({...a,[l]:1})})},[e,t,r,i]),e==="newest"?s:1},Pq=e=>(0,Ld.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[a]=o?.children||[[]];return{commentId:r,children:a.map(i=>({commentId:i.id}))}}),[e]);var wi=n(y(),1),Fke=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],Hke=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let a=r?Math.min(o,3):1,i=s=>{if(s<a){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&a<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&a<2&&l.push({commentId:-3,children:[]}),l};function jke({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:a}){let{children:i,...l}=(0,is.useInnerBlocksProps)({},{template:Fke});return(0,wi.jsxs)("li",{...l,children:[e.commentId===(t||o)?i:null,(0,wi.jsx)(Gke,{blocks:a,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,wi.jsx)(Nq,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:a,firstCommentId:o}):null]})}var Uke=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let a=(0,is.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,wi.jsx)("div",{...a,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},Gke=(0,Vw.memo)(Uke),Nq=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:a,firstCommentId:i})=>(0,wi.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,wi.jsx)(is.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,wi.jsx)(jke,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:o,blocks:a,firstCommentId:i})},s.commentId||c))});function Dq({clientId:e,context:{postId:t}}){let r=(0,is.useBlockProps)(),[o,a]=(0,Vw.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,aL.useSelect)(h=>{let{getSettings:g}=h(is.store);return g().__experimentalDiscussionSettings??{}},[]),p=Tq({postId:t}),{topLevelComments:m,blocks:d}=(0,aL.useSelect)(h=>{let{getEntityRecords:g}=h(Iq.store),{getBlocks:v}=h(is.store);return{topLevelComments:p?g("root","comment",p):null,blocks:v(e)}},[e,p]),f=Pq(i==="desc"&&m?[...m].reverse():m);return m?(t||(f=Hke({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,wi.jsx)(Nq,{comments:f,blockProps:r,blocks:d,activeCommentId:o,setActiveCommentId:a,firstCommentId:f[0]?.commentId}):(0,wi.jsx)("p",{...r,children:(0,Eq.__)("No results found.")})):(0,wi.jsx)("p",{...r,children:(0,wi.jsx)(Bq.Spinner,{})})}var Lq=n(P(),1),Rq=n(y(),1);function Aq(){return(0,Rq.jsx)(Lq.InnerBlocks.Content,{})}var{name:Mq}=zw,zq={icon:td,edit:Dq,save:Aq},Wke=()=>R({name:Mq,metadata:zw,settings:zq});var sL={};K(sL,{init:()=>Zke,metadata:()=>Ow,name:()=>Fq,settings:()=>Hq});var Oq=n(N(),1);var Ow={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments 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:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var lL=n(N(),1),Fw=n(P(),1),xb=n(y(),1),qke={none:"",arrow:"\u2190",chevron:"\xAB"};function Vq({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=qke[r];return(0,xb.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:a=>a.preventDefault(),...(0,Fw.useBlockProps)(),children:[o&&(0,xb.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,xb.jsx)(Fw.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,lL.__)("Older comments page link"),placeholder:(0,lL.__)("Older Comments"),value:e,onChange:a=>t({label:a})})]})}var{name:Fq}=Ow,Hq={icon:xv,edit:Vq,example:{attributes:{label:(0,Oq.__)("Older Comments")}}},Zke=()=>R({name:Fq,metadata:Ow,settings:Hq});var uL={};K(uL,{init:()=>Qke,metadata:()=>Hw,name:()=>qq,settings:()=>Zq});var Hw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},example:{attributes:{paginationArrow:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"};var jw=n(N(),1),ss=n(P(),1),cL=n(F(),1),Uw=n(O(),1);var Rd=n(N(),1),$h=n(O(),1),qh=n(y(),1);function jq({value:e,onChange:t}){return(0,qh.jsxs)($h.__experimentalToggleGroupControl,{label:(0,Rd.__)("Arrow"),value:e,onChange:t,help:(0,Rd.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,qh.jsx)($h.__experimentalToggleGroupControlOption,{value:"none",label:(0,Rd._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qh.jsx)($h.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Rd._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qh.jsx)($h.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Rd._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var ls=n(y(),1),Yke=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function Uq({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,cL.useSelect)(c=>{let{getBlocks:u}=c(ss.store);return u(r)?.find(m=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(m.name))},[]),a=(0,ss.useBlockProps)(),i=Z(),l=(0,ss.useInnerBlocksProps)(a,{template:Yke});return(0,cL.useSelect)(c=>{let{getSettings:u}=c(ss.store),{__experimentalDiscussionSettings:p}=u();return p?.pageComments},[])?(0,ls.jsxs)(ls.Fragment,{children:[o&&(0,ls.jsx)(ss.InspectorControls,{children:(0,ls.jsx)(Uw.__experimentalToolsPanel,{label:(0,jw.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,ls.jsx)(Uw.__experimentalToolsPanelItem,{label:(0,jw.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,ls.jsx)(jq,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,ls.jsx)("div",{...l})]}):(0,ls.jsx)(ss.Warning,{children:(0,jw.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var Gq=n(P(),1),Wq=n(y(),1);function $q(){return(0,Wq.jsx)(Gq.InnerBlocks.Content,{})}var{name:qq}=Hw,Zq={icon:kv,edit:Uq,save:$q},Qke=()=>R({name:qq,metadata:Hw,settings:Zq});var mL={};K(mL,{init:()=>e5e,metadata:()=>Gw,name:()=>Qq,settings:()=>Xq});var Yq=n(N(),1);var Gw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var pL=n(N(),1),Ww=n(P(),1),kb=n(y(),1),Jke={none:"",arrow:"\u2192",chevron:"\xBB"};function Kq({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=Jke[r];return(0,kb.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:a=>a.preventDefault(),...(0,Ww.useBlockProps)(),children:[(0,kb.jsx)(Ww.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,pL.__)("Newer comments page link"),placeholder:(0,pL.__)("Newer Comments"),value:e,onChange:a=>t({label:a})}),o&&(0,kb.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:Qq}=Gw,Xq={icon:yv,edit:Kq,example:{attributes:{label:(0,Yq.__)("Newer Comments")}}},e5e=()=>R({name:Qq,metadata:Gw,settings:Xq});var dL={};K(dL,{init:()=>r5e,metadata:()=>$w,name:()=>tZ,settings:()=>rZ});var $w={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!0}}}};var Jq=n(P(),1),vl=n(y(),1),Ad=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,vl.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,vl.jsx)(t,{className:`page-numbers ${r}`,children:e});function eZ(){return(0,vl.jsxs)("div",{...(0,Jq.useBlockProps)(),children:[(0,vl.jsx)(Ad,{content:"1"}),(0,vl.jsx)(Ad,{content:"2"}),(0,vl.jsx)(Ad,{content:"3",tag:"span",extraClass:"current"}),(0,vl.jsx)(Ad,{content:"4"}),(0,vl.jsx)(Ad,{content:"5"}),(0,vl.jsx)(Ad,{content:"...",tag:"span",extraClass:"dots"}),(0,vl.jsx)(Ad,{content:"8"})]})}var{name:tZ}=$w,rZ={icon:_v,edit:eZ,example:{}},r5e=()=>R({name:tZ,metadata:$w,settings:rZ});var fL={};K(fL,{init:()=>i5e,metadata:()=>qw,name:()=>cZ,settings:()=>uZ});var qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}};var tc=n(P(),1),zr=n(N(),1),oZ=n(re(),1),Ip=n(O(),1),Zw=n(H(),1),nZ=n(F(),1),aZ=n(_b(),1),iZ=n(pr(),1);var Oa=n(y(),1);function lZ(e){wt(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:a,showCommentsCount:i,level:l=2,levelOptions:s}=t,{postId:c,postType:u}=o,p="h"+l,[m,d]=(0,Zw.useState)(),[f]=(0,oZ.useEntityProp)("postType",u,"title",c),h=typeof c>"u",g=(0,tc.useBlockProps)(),{threadCommentsDepth:v,threadComments:b,commentsPerPage:_,pageComments:k}=(0,nZ.useSelect)(D=>{let{getSettings:L}=D(tc.store);return L().__experimentalDiscussionSettings??{}},[]),x=Z();(0,Zw.useEffect)(()=>{if(h){let L=b?Math.min(v,3)-1:0,E=k?_:3,B=parseInt(L)+parseInt(E);d(Math.min(B,3));return}let D=c;(0,aZ.default)({path:(0,iZ.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(L=>{D===c&&d(parseInt(L.headers.get("X-WP-Total")))}).catch(()=>{d(0)})},[c]);let w=(0,Oa.jsx)(tc.BlockControls,{group:"block",children:(0,Oa.jsx)(tc.HeadingLevelDropdown,{value:l,options:s,onChange:D=>r({level:D})})}),S=(0,Oa.jsx)(tc.InspectorControls,{children:(0,Oa.jsxs)(Ip.__experimentalToolsPanel,{label:(0,zr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:x,children:[(0,Oa.jsx)(Ip.__experimentalToolsPanelItem,{label:(0,zr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>r({showPostTitle:!0}),children:(0,Oa.jsx)(Ip.ToggleControl,{label:(0,zr.__)("Show post title"),checked:a,onChange:D=>r({showPostTitle:D})})}),(0,Oa.jsx)(Ip.__experimentalToolsPanelItem,{label:(0,zr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,Oa.jsx)(Ip.ToggleControl,{label:(0,zr.__)("Show comments count"),checked:i,onChange:D=>r({showCommentsCount:D})})})]})}),T=h?(0,zr.__)("Post Title"):f,I;return i&&m!==void 0?a?m===1?I=(0,zr.sprintf)((0,zr.__)('One response to "%s"'),T):I=(0,zr.sprintf)((0,zr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',m),m,T):m===1?I=(0,zr.__)("One response"):I=(0,zr.sprintf)((0,zr._n)("%s response","%s responses",m),m):a?m===1?I=(0,zr.sprintf)((0,zr.__)('Response to "%s"'),T):I=(0,zr.sprintf)((0,zr.__)('Responses to "%s"'),T):m===1?I=(0,zr.__)("Response"):I=(0,zr.__)("Responses"),(0,Oa.jsxs)(Oa.Fragment,{children:[w,S,(0,Oa.jsx)(p,{...g,children:I})]})}var n5e={attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}},migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...o}=e;return be(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},a5e={attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"},singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}},migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:r,...o}=e;return be(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},sZ=[n5e,a5e];var{name:cZ}=qw,uZ={icon:Zl,edit:lZ,deprecated:sZ,example:{}},i5e=()=>R({name:cZ,metadata:qw,settings:uZ});var LL={};K(LL,{init:()=>Twe,metadata:()=>m3,name:()=>fK,settings:()=>f3});var DL=n(N(),1);var dK=n($(),1);var Qw=n($(),1),Pe=n(P(),1),Xw=n(N(),1),wb=n(ve(),1);var Kw=n(Ar(),1),l5e={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Yt="image",Er="video",gu="embed-video",pZ=50;var s5e={x:.5,y:.5},Yw=["image","video"];function on({x:e,y:t}=s5e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function bl(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function mZ(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,Kw.isBlobURL)(e.url)&&(e.type=(0,Kw.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Yt?t=Yt:t=Er;else if(e.type&&(e.type===Yt||e.type===Er))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Er?{hasParallax:void 0}:{}}}function ua(e){return!e||e==="center center"||e==="center"}function Fa(e){return ua(e)?"":l5e[e]}var fe=n(y(),1);function rc(e){return e?{backgroundImage:`url(${e})`}:{}}function Md(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function Jw(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Np(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var zd={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},Cb={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},hL={...Cb,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},c5e={...hL,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Zh={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},gL={...Zh,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},u5e={...gL,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},p5e={attributes:c5e,supports:u5e,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_,sizeSlug:k}=e,x=(0,Pe.getColorClassName)("background-color",d),w=(0,Pe.__experimentalGetGradientClass)(r),S=v&&b?`${v}${b}`:v,T=Yt===t,I=Er===t,D=!(u||m),L={minHeight:S||void 0},E={backgroundColor:x?void 0:i,background:a||void 0},B=s&&D?on(s):void 0,A=f?`url(${f})`:void 0,z=on(s),U=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!ua(o)},Fa(o)),q=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":m}),G=r||a;return(0,fe.jsxs)(_,{...Pe.useBlockProps.save({className:U,style:L}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",x,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[w]:w}),style:E}),!c&&T&&f&&(D?(0,fe.jsx)("img",{className:q,alt:h,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,fe.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:q,style:{backgroundPosition:z,backgroundImage:A}})),I&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},m5e={attributes:hL,supports:gL,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_}=e,k=(0,Pe.getColorClassName)("background-color",d),x=(0,Pe.__experimentalGetGradientClass)(r),w=v&&b?`${v}${b}`:v,S=Yt===t,T=Er===t,I=!(u||m),D={minHeight:w||void 0},L={backgroundColor:k?void 0:i,background:a||void 0},E=s&&I?on(s):void 0,B=f?`url(${f})`:void 0,A=on(s),z=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!ua(o)},Fa(o)),U=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),q=r||a;return(0,fe.jsxs)(_,{...Pe.useBlockProps.save({className:z,style:D}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",k,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&q&&l!==0,"has-background-gradient":q,[x]:x}),style:L}),!c&&S&&f&&(I?(0,fe.jsx)("img",{className:U,alt:h,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,fe.jsx)("div",{role:"img",className:U,style:{backgroundPosition:A,backgroundImage:B}})),T&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},d5e={attributes:hL,supports:gL,isEligible(e){return(e.customOverlayColor!==void 0||e.overlayColor!==void 0)&&e.isUserOverlayColor===void 0},migrate(e){return{...e,isUserOverlayColor:!0}},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_}=e,k=(0,Pe.getColorClassName)("background-color",d),x=(0,Pe.__experimentalGetGradientClass)(r),w=v&&b?`${v}${b}`:v,S=Yt===t,T=Er===t,I=!(u||m),D={minHeight:w||void 0},L={backgroundColor:k?void 0:i,background:a||void 0},E=s&&I?on(s):void 0,B=f?`url(${f})`:void 0,A=on(s),z=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!ua(o)},Fa(o)),U=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),q=r||a;return(0,fe.jsxs)(_,{...Pe.useBlockProps.save({className:z,style:D}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",k,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&q&&l!==0,"has-background-gradient":q,[x]:x}),style:L}),!c&&S&&f&&(I?(0,fe.jsx)("img",{className:U,alt:h,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,fe.jsx)("div",{role:"img",className:U,style:{backgroundPosition:A,backgroundImage:B}})),T&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},f5e={attributes:Cb,supports:Zh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b}=e,_=(0,Pe.getColorClassName)("background-color",d),k=(0,Pe.__experimentalGetGradientClass)(r),x=v&&b?`${v}${b}`:v,w=Yt===t,S=Er===t,T=!(u||m),I={minHeight:x||void 0},D={backgroundColor:_?void 0:i,background:a||void 0},L=s&&T?on(s):void 0,E=f?`url(${f})`:void 0,B=on(s),A=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!ua(o)},Fa(o)),z=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":m}),U=r||a;return(0,fe.jsxs)("div",{...Pe.useBlockProps.save({className:A,style:I}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",_,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&U&&l!==0,"has-background-gradient":U,[k]:k}),style:D}),!c&&w&&f&&(T?(0,fe.jsx)("img",{className:z,alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}):(0,fe.jsx)("div",{role:"img",className:z,style:{backgroundPosition:B,backgroundImage:E}})),S&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},h5e={attributes:Cb,supports:Zh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b}=e,_=(0,Pe.getColorClassName)("background-color",d),k=(0,Pe.__experimentalGetGradientClass)(r),x=v&&b?`${v}${b}`:v,w=Yt===t,S=Er===t,T=!(u||m),I={...w&&!T&&!c?rc(f):{},minHeight:x||void 0},D={backgroundColor:_?void 0:i,background:a||void 0},L=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,E=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!ua(o)},Fa(o)),B=r||a;return(0,fe.jsxs)("div",{...Pe.useBlockProps.save({className:E,style:I}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",_,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&B&&l!==0,"has-background-gradient":B,[k]:k}),style:D}),!c&&w&&T&&f&&(0,fe.jsx)("img",{className:C("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),S&&f&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},g5e={attributes:Cb,supports:Zh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:p,overlayColor:m,url:d,alt:f,id:h,minHeight:g,minHeightUnit:v}=e,b=(0,Pe.getColorClassName)("background-color",m),_=(0,Pe.__experimentalGetGradientClass)(r),k=v?`${g}${v}`:g,x=Yt===t,w=Er===t,S=!(c||p),T={...x&&!S?rc(d):{},minHeight:k||void 0},I={backgroundColor:b?void 0:i,background:a||void 0},D=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,L=C({"is-light":!u,"has-parallax":c,"is-repeated":p,"has-custom-content-position":!ua(o)},Fa(o)),E=r||a;return(0,fe.jsxs)("div",{...Pe.useBlockProps.save({className:L,style:T}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",b,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&E&&l!==0,"has-background-gradient":E,[_]:_}),style:I}),x&&S&&d&&(0,fe.jsx)("img",{className:C("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),w&&d&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},v5e={attributes:Cb,supports:Zh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:p,overlayColor:m,url:d,alt:f,id:h,minHeight:g,minHeightUnit:v}=e,b=(0,Pe.getColorClassName)("background-color",m),_=(0,Pe.__experimentalGetGradientClass)(r),k=v?`${g}${v}`:g,x=Yt===t,w=Er===t,S=!(c||p),T={...x&&!S?rc(d):{},minHeight:k||void 0},I={backgroundColor:b?void 0:i,background:a||void 0},D=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,L=C({"is-light":!u,"has-parallax":c,"is-repeated":p,"has-custom-content-position":!ua(o)},Fa(o));return(0,fe.jsxs)("div",{...Pe.useBlockProps.save({className:L,style:T}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:C(b,bl(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":r||a,[_]:!d&&_}),style:I}),x&&S&&d&&(0,fe.jsx)("img",{className:C("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),w&&d&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:D},"data-object-fit":"cover","data-object-position":D}),(0,fe.jsx)("div",{...Pe.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Np},b5e={attributes:{...zd,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Zh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:p,url:m,alt:d,id:f,minHeight:h,minHeightUnit:g}=e,v=(0,Pe.getColorClassName)("background-color",p),b=(0,Pe.__experimentalGetGradientClass)(r),_=g?`${h}${g}`:h,k=Yt===t,x=Er===t,w=!(c||u),S={...k&&!w?rc(m):{},backgroundColor:v?void 0:i,background:a&&!m?a:void 0,minHeight:_||void 0},T=s&&w?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,I=C(Md(l),v,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||a,[b]:!m&&b,"has-custom-content-position":!ua(o)},Fa(o));return(0,fe.jsxs)("div",{...Pe.useBlockProps.save({className:I,style:S}),children:[m&&(r||a)&&l!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",b),style:a?{background:a}:void 0}),k&&w&&m&&(0,fe.jsx)("img",{className:C("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),x&&m&&(0,fe.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:T},"data-object-fit":"cover","data-object-position":T}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Pe.InnerBlocks.Content,{})})]})},migrate:(0,wb.compose)(Jw,Np)},y5e={attributes:{...zd,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:p,url:m,minHeight:d,minHeightUnit:f}=e,h=(0,Pe.getColorClassName)("background-color",p),g=(0,Pe.__experimentalGetGradientClass)(r),v=f?`${d}${f}`:d,b=Yt===t,_=Er===t,k=b?rc(m):{},x={};h||(k.backgroundColor=i),a&&!m&&(k.background=a),k.minHeight=v||void 0;let w;s&&(w=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,b&&!c&&(k.backgroundPosition=w),_&&(x.objectPosition=w));let S=C(Md(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||a,[g]:!m&&g,"has-custom-content-position":!ua(o)},Fa(o));return(0,fe.jsxs)("div",{...Pe.useBlockProps.save({className:S,style:k}),children:[m&&(r||a)&&l!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",g),style:a?{background:a}:void 0}),_&&m&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:x}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Pe.InnerBlocks.Content,{})})]})},migrate:(0,wb.compose)(Jw,Np)},_5e={attributes:{...zd,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:p}=e,m=(0,Pe.getColorClassName)("background-color",c),d=(0,Pe.__experimentalGetGradientClass)(r),f=t===Yt?rc(u):{};m||(f.backgroundColor=a),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=p||void 0;let h=C(Md(i),m,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,fe.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),Er===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Pe.InnerBlocks.Content,{})})]})},migrate:(0,wb.compose)(Jw,Np)},x5e={attributes:{...zd,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:a,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:p}=e,m=(0,Pe.getColorClassName)("background-color",c),d=(0,Pe.__experimentalGetGradientClass)(r),f=t===Yt?rc(u):{};m||(f.backgroundColor=a),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),o&&!u&&(f.background=o),f.minHeight=p||void 0;let h=C(Md(i),m,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,fe.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),Er===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Pe.InnerBlocks.Content,{})})]})},migrate:(0,wb.compose)(Jw,Np)},k5e={attributes:{...zd,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:r,customOverlayColor:o,dimRatio:a,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,p=(0,Pe.getColorClassName)("background-color",s),m=t===Yt?rc(u):{};p||(m.backgroundColor=o),i&&!l&&(m.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=C(Md(a),p,{"has-background-dim":a!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,fe.jsxs)("div",{className:d,style:m,children:[Er===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Pe.RichText.isEmpty(c)&&(0,fe.jsx)(Pe.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c})]})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,...a}=t;return[a,[(0,Qw.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Xw.__)("Write title\u2026")})]]}},w5e={attributes:{...zd,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:o,dimRatio:a,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,Pe.getColorClassName)("background-color",s),p=rc(t);u||(p.backgroundColor=c);let m=C("wp-block-cover-image",Md(a),u,{"has-background-dim":a!==0,"has-parallax":o,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,fe.jsx)("div",{className:m,style:p,children:!Pe.RichText.isEmpty(r)&&(0,fe.jsx)(Pe.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,align:a,...i}=t;return[i,[(0,Qw.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Xw.__)("Write title\u2026")})]]}},C5e={attributes:{...zd,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){let{url:t,title:r,hasParallax:o,dimRatio:a,align:i}=e,l=rc(t),s=C("wp-block-cover-image",Md(a),{"has-background-dim":a!==0,"has-parallax":o},i?`align${i}`:null);return(0,fe.jsx)("section",{className:s,style:l,children:(0,fe.jsx)(Pe.RichText.Content,{tagName:"h2",value:r})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:r,contentAlign:o,align:a,...i}=t;return[i,[(0,Qw.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,Xw.__)("Write title\u2026")})]]}},dZ=[p5e,m5e,d5e,f5e,h5e,g5e,v5e,b5e,y5e,_5e,x5e,k5e,w5e,C5e];var Eb=n(re(),1),Ha=n(H(),1),Hd=n(O(),1),p3=n(ve(),1),Qr=n(P(),1),IL=n(N(),1),yu=n(F(),1),iK=n(Ar(),1),lK=n(Sr(),1);var kZ=n(H(),1),ar=n(O(),1),wZ=n(ve(),1),nn=n(P(),1),ko=n(N(),1),bL=n(F(),1),CZ=n(re(),1);var fZ=n(P(),1);var{cleanEmptyObject:e3,getStyleForState:S5e,setStyleForState:hZ}=j(fZ.privateApis);function vL(e,t){return S5e(e,t)||{}}function T5e(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function P5e(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function Kh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function E5e(e,t){return vL(e,t)?.dimensions||{}}function Ci(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:a,attributeKey:i,styleKey:l=i,rootValue:s}=e;return a?E5e(r,o)?.[l]:Object.hasOwn(e,"rootValue")?s:t?.[i]}function B5e(e,t,r){let o=vL(e,t);return hZ(e,t,e3({...o,dimensions:e3({...o?.dimensions,...r})}))}function Yh({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:a,dimensionKeys:i}){let l=P5e(o,i);return r?{style:B5e(e,t,T5e(l,a))}:l}function gZ(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return e3({...e,dimensions:e3({...e?.dimensions,...r})})}function I5e(e,t,r){return hZ(e,t,gZ(vL(e,t),r))}function Qh({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:a,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?I5e(t,r,a):gZ(t,a)}}var Vd="full";var Xh=n(P(),1),bZ=n(Sr(),1),pa=n(O(),1),yZ=n(Ar(),1),Si=n(N(),1),t3=n(H(),1),_Z=n(ve(),1),r3=n(F(),1),Dn=n(y(),1),vZ=["image"];function xZ({poster:e,onChange:t}){let r=(0,t3.useRef)(),[o,a]=(0,t3.useState)(!1),i=(0,_Z.useInstanceId)(xZ,"block-library-poster-image-description"),{getSettings:l}=(0,r3.useSelect)(Xh.store),{createErrorNotice:s}=(0,r3.useDispatch)(bZ.store),c=p=>{l().mediaUpload({allowedTypes:vZ,filesList:p,onFileChange:([m])=>{if((0,yZ.isBlobURL)(m?.url)){a(!0);return}m&&t(m),a(!1)},onError:m=>{s(m,{id:"poster-image-upload-notice",type:"snackbar"}),a(!1)},multiple:!1})},u=()=>!e&&o?(0,Dn.jsx)(pa.Spinner,{}):e?(0,Si.__)("Replace"):(0,Si.__)("Set poster image");return(0,Dn.jsx)(Xh.MediaUploadCheck,{children:(0,Dn.jsxs)(pa.__experimentalToolsPanelItem,{label:(0,Si.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,Dn.jsx)(pa.BaseControl.VisualLabel,{children:(0,Si.__)("Poster image")}),(0,Dn.jsx)(Xh.MediaUpload,{title:(0,Si.__)("Select poster image"),onSelect:t,allowedTypes:vZ,render:({open:p})=>(0,Dn.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,Dn.jsxs)(pa.Button,{__next40pxDefaultSize:!0,onClick:p,"aria-haspopup":"dialog","aria-label":(0,Si.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,Dn.jsx)("img",{src:e,alt:(0,Si.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,Dn.jsx)(pa.Spinner,{})]}),(0,Dn.jsxs)(pa.__experimentalHStack,{className:C("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,Dn.jsx)(pa.Button,{__next40pxDefaultSize:!0,onClick:p,ref:r,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:o,accessibleWhenDisabled:!0,children:u()}),(0,Dn.jsx)("p",{id:i,hidden:!0,children:e?(0,Si.sprintf)((0,Si.__)("The current poster image url is %s."),e):(0,Si.__)("There is no poster image currently selected.")}),!!e&&(0,Dn.jsx)(pa.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,Si.__)("Remove")})]}),(0,Dn.jsx)(pa.DropZone,{onFilesDrop:c})]})})]})})}var o3=xZ;var yt=n(y(),1),{cleanEmptyObject:N5e,isDefaultBlockStyleState:D5e,ResolutionTool:L5e,HTMLElementControl:R5e}=j(nn.privateApis);function A5e({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,wZ.useInstanceId)(ar.__experimentalUnitControl)}`,l=r==="px",[s]=(0,nn.useSettings)("spacing.units"),c=(0,ar.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},p=(0,kZ.useMemo)(()=>{let[d]=(0,ar.__experimentalParseQuantityAndUnitFromRawValue)(o);return[d,r].join("")},[r,o]),m=l?pZ:0;return(0,yt.jsx)(ar.__experimentalUnitControl,{label:(0,ko.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:m,onChange:u,onUnitChange:t,units:c,value:p})}function SZ({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:a,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:p,focalPoint:m,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:g,alt:v,tagName:b,poster:_}=e,{isVideoBackground:k,isImageBackground:x,mediaElement:w,url:S,overlayColor:T}=i,I=e.sizeSlug||Vd,{gradientValue:D,setGradient:L}=(0,nn.__experimentalUseGradient)(),{imageSizes:E,selectedStyleState:B}=(0,bL.useSelect)(se=>{let{getSettings:Ne,getSelectedBlockStyleState:De}=j(se(nn.store));return{imageSizes:Ne()?.imageSizes,selectedStyleState:De(r)}},[r]),A=!D5e(B),z=Kh(B),U=Ci({attributes:e,selectedState:B,hasSelectedStyleState:A,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[q,G]=(0,ar.__experimentalParseQuantityAndUnitFromRawValue)(U||""),W=A?q:h,V=A&&G||g,Q=Ci({attributes:e,selectedState:B,hasSelectedStyleState:A,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),Y=(0,bL.useSelect)(se=>u&&x?se(CZ.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,x]),ee=c?s:Y;function te(se){let Ne=ee?.media_details?.sizes?.[se]?.source_url;if(!Ne)return null;t({url:Ne,sizeSlug:se})}let oe=E?.filter(({slug:se})=>ee?.media_details?.sizes?.[se]?.source_url)?.map(({name:se,slug:Ne})=>({value:Ne,label:se})),J=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},ce=()=>{t({isRepeated:!f})},ie=k||x,we=se=>{let[Ne,De]=w.current?[w.current.style,"objectPosition"]:[a.current.style,"backgroundPosition"];Ne[De]=on(se)},le=(0,nn.__experimentalUseMultipleOriginColorsAndGradients)(),de=le.hasColorsOrGradients&&!A,ge=(se,Ne)=>{if(A){t(Yh({style:e.style,selectedState:B,hasSelectedStyleState:A,nextDimensions:{minHeight:se===void 0?void 0:`${se}${Ne||V||"px"}`,aspectRatio:void 0}}));return}t({minHeight:se,style:N5e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},ne=(se=e)=>Qh({style:se.style,selectedState:B,hasSelectedStyleState:A,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),me=Z();return(0,yt.jsxs)(yt.Fragment,{children:[(!!S||c)&&(0,yt.jsx)(nn.InspectorControls,{children:(0,yt.jsxs)(ar.__experimentalToolsPanel,{label:(0,ko.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),te(Vd)},dropdownMenuProps:me,children:[x&&(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,yt.jsx)(ar.ToggleControl,{label:(0,ko.__)("Fixed background"),checked:!!d,onChange:J})}),(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,yt.jsx)(ar.ToggleControl,{label:(0,ko.__)("Repeated background"),checked:f,onChange:ce})})]}),ie&&(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>t({focalPoint:void 0}),children:(0,yt.jsx)(ar.FocalPointPicker,{label:(0,ko.__)("Focal point"),url:S,value:m,onDragStart:we,onDrag:we,onChange:se=>t({focalPoint:se})})}),k&&(0,yt.jsx)(o3,{poster:_,onChange:se=>t({poster:se?.url})}),!c&&S&&!k&&(0,yt.jsx)(ar.__experimentalToolsPanelItem,{label:(0,ko.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>t({alt:""}),children:(0,yt.jsx)(ar.TextareaControl,{label:(0,ko.__)("Alternative text"),value:v,onChange:se=>t({alt:se}),help:(0,yt.jsxs)(yt.Fragment,{children:[(0,yt.jsx)(uu,{openInNewTab:!0,href:(0,ko.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ko.__)("Describe the purpose of the image.")}),(0,yt.jsx)("br",{}),(0,ko.__)("Leave empty if decorative.")]})})}),!!oe?.length&&(0,yt.jsx)(L5e,{value:I,onChange:te,options:oe,defaultValue:Vd})]})}),de&&(0,yt.jsxs)(nn.InspectorControls,{group:"color",children:[(0,yt.jsx)(nn.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:T.color,gradientValue:D,label:(0,ko.__)("Overlay"),onColorChange:o,onGradientChange:L,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...le}),(0,yt.jsx)(ar.__experimentalToolsPanelItem,{hasValue:()=>p===void 0?!1:p!==(S?50:100),label:(0,ko.__)("Overlay opacity"),onDeselect:()=>l(S?50:100),resetAllFilter:()=>({dimRatio:S?50:100}),isShownByDefault:!0,panelId:r,children:(0,yt.jsx)(ar.RangeControl,{label:(0,ko.__)("Overlay opacity"),value:p,onChange:se=>l(se),min:0,max:100,step:10,required:!0})})]}),(0,yt.jsx)(nn.InspectorControls,{group:"dimensions",children:(0,yt.jsx)(ar.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!W,label:(0,ko.__)("Minimum height"),onDeselect:()=>t(ne()),resetAllFilter:ne,isShownByDefault:!0,panelId:r,children:(0,yt.jsx)(A5e,{value:Q?"":W,unit:V,onChange:se=>ge(se),onUnitChange:se=>{if(A){W!==void 0&&ge(W,se);return}t({minHeightUnit:se})}})},z)}),(0,yt.jsx)(nn.InspectorControls,{group:"advanced",children:(0,yt.jsx)(R5e,{tagName:b,onChange:se=>t({tagName:se}),clientId:r,options:[{label:(0,ko.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})]})}var n3=n(H(),1),cs=n(P(),1),tg=n(N(),1),a3=n(O(),1);var yL=n(H(),1),eg=n(O(),1),Od=n(N(),1);var TZ=n($(),1);var M5e="core/embed",PZ=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function EZ(e){return Array.isArray(e)?PZ.filter(t=>e.includes(t)):[]}function BZ(e,t){return e?z5e(e,t)!==null:!1}function z5e(e,t=PZ){let r=(0,TZ.getBlockVariations)(M5e);if(!r)return null;let o=r.find(({patterns:a})=>kN(e,a));return!o||!t.includes(o.name)?null:o}function IZ(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=O5e(r);return e.replace(r,o)}function V5e(e){if(!e)return null;let t=e.toLowerCase();return t.includes("youtube.com")||t.includes("youtu.be")?"youtube":t.includes("vimeo.com")?"vimeo":t.includes("videopress.com")?"videopress":t.includes("animoto.com")?"animoto":t.includes("tiktok.com")?"tiktok":t.includes("wordpress.tv")?"wordpress-tv":null}function O5e(e){if(!e)return e;try{let t=new URL(e);switch(V5e(e)){case"youtube":t.searchParams.set("autoplay","1"),t.searchParams.set("mute","1"),t.searchParams.set("loop","1"),t.searchParams.set("controls","0"),t.searchParams.set("showinfo","0"),t.searchParams.set("modestbranding","1"),t.searchParams.set("playsinline","1"),t.searchParams.set("rel","0");let o=t.pathname.split("/").pop();o&&t.searchParams.set("playlist",o);break;case"vimeo":t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1"),t.searchParams.set("background","1"),t.searchParams.set("controls","0");break;case"videopress":case"wordpress-tv":t.searchParams.set("autoplay","1"),t.searchParams.set("loop","1"),t.searchParams.set("muted","1");break;default:t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1");break}return t.toString()}catch{return e}}var Jh=n(y(),1);function NZ({onSubmit:e,onClose:t,initialUrl:r="",allowedVideoProviders:o}){let[a,i]=(0,yL.useState)(r),[l,s]=(0,yL.useState)("");return(0,Jh.jsx)(eg.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!a){s((0,Od.__)("Please enter a URL."));return}if(!BZ(a,o)){s((0,Od.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(a),t()},onCancel:t,confirmButtonText:(0,Od.__)("Add video"),size:"medium",children:(0,Jh.jsxs)(_p,{direction:"column",gap:"lg",children:[l&&(0,Jh.jsx)(eg.Notice,{status:"error",isDismissible:!1,children:l}),(0,Jh.jsx)(eg.TextControl,{type:"url",label:(0,Od.__)("Video URL"),value:a,onChange:u=>{i(u),s("")},placeholder:(0,Od.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,Od.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Ti=n(y(),1),{cleanEmptyObject:F5e}=j(cs.privateApis);function DZ({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:a,onClearMedia:i,onSelectEmbedUrl:l,onEditMedia:s,editMediaButtonRef:c,showEditMediaButton:u,blockEditingMode:p}){let{contentPosition:m,id:d,useFeaturedImage:f,minHeight:h,minHeightUnit:g,backgroundType:v,allowedVideoProviders:b}=e,{hasInnerBlocks:_,url:k}=o,x=EZ(b),w=x.length>0,[S,T]=(0,n3.useState)(h),[I,D]=(0,n3.useState)(g),[L,E]=(0,n3.useState)(!1),B=g==="vh"&&h===100&&!e?.style?.dimensions?.aspectRatio,A=p==="contentOnly",z=()=>B?t(I==="vh"&&S===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:S,minHeightUnit:I}):(T(h),D(g),t({minHeight:100,minHeightUnit:"vh",style:F5e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Ti.jsxs)(Ti.Fragment,{children:[!A&&(0,Ti.jsxs)(cs.BlockControls,{group:"block",children:[(0,Ti.jsx)(cs.__experimentalBlockAlignmentMatrixControl,{label:(0,tg.__)("Change content position"),value:m,onChange:U=>t({contentPosition:U}),isDisabled:!_}),(0,Ti.jsx)(cs.__experimentalBlockFullHeightAligmentControl,{isActive:B,onToggle:z,isDisabled:!_}),u&&(0,Ti.jsx)(a3.ToolbarButton,{ref:c,icon:Xm,label:(0,tg.__)("Crop background image"),onClick:s,"aria-haspopup":"dialog"})]}),(0,Ti.jsx)(cs.BlockControls,{group:"other",children:(0,Ti.jsx)(cs.MediaReplaceFlow,{mediaId:d,mediaURL:k,allowedTypes:Yw,onSelect:r,onToggleFeaturedImage:a,useFeaturedImage:f,name:k?(0,tg.__)("Replace"):(0,tg.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:U})=>w?(0,Ti.jsx)(a3.MenuItem,{icon:fi,onClick:()=>{E(!0),U()},children:(0,tg.__)("Embed video from URL")}):null})}),L&&(0,Ti.jsx)(NZ,{onSubmit:U=>{l(U)},onClose:()=>E(!1),initialUrl:v===gu?k:"",allowedVideoProviders:x})]})}var i3=n(P(),1),LZ=n(N(),1);var RZ=n(Ar(),1);var _L=n(y(),1);function xL({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:a,toggleUseFeaturedImage:i}){let l=s=>{s.length===1&&r({url:(0,RZ.createBlobURL)(s[0])})};return(0,_L.jsx)(i3.MediaPlaceholder,{icon:(0,_L.jsx)(i3.BlockIcon,{icon:Qm}),labels:{title:(0,LZ.__)("Cover")},onSelect:r,allowedTypes:Yw,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:l,onError:o,style:a,children:t})}var AZ=n(H(),1),MZ=n(P(),1);var zZ=n(y(),1),H5e={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:j5e}=j(MZ.privateApis);function kL({className:e,height:t,minHeight:r,onResize:o,onResizeStart:a,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[p,m]=(0,AZ.useState)(!1),d={className:C(e,{"is-resizing":p}),enable:H5e,onResizeStart:(f,h,g)=>{a(g.clientHeight),o(g.clientHeight)},onResize:(f,h,g)=>{o(g.clientHeight),p||m(!0)},onResizeStop:(f,h,g)=>{i(g.clientHeight),m(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:p}};return(0,zZ.jsx)(j5e,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var U5e={grad:.9,turn:360,rad:360/(2*Math.PI)},vu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Mo=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},yl=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},WZ=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},VZ=function(e){return{r:yl(e.r,0,255),g:yl(e.g,0,255),b:yl(e.b,0,255),a:yl(e.a)}},wL=function(e){return{r:Mo(e.r),g:Mo(e.g),b:Mo(e.b),a:Mo(e.a,3)}},G5e=/^#([0-9a-f]{3,8})$/i,l3=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},$Z=function(e){var t=e.r,r=e.g,o=e.b,a=e.a,i=Math.max(t,r,o),l=i-Math.min(t,r,o),s=l?i===t?(r-o)/l:i===r?2+(o-t)/l:4+(t-r)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a}},qZ=function(e){var t=e.h,r=e.s,o=e.v,a=e.a;t=t/360*6,r/=100,o/=100;var i=Math.floor(t),l=o*(1-r),s=o*(1-(t-i)*r),c=o*(1-(1-t+i)*r),u=i%6;return{r:255*[o,s,l,l,c,o][u],g:255*[c,o,o,s,l,l][u],b:255*[l,l,c,o,o,s][u],a}},OZ=function(e){return{h:WZ(e.h),s:yl(e.s,0,100),l:yl(e.l,0,100),a:yl(e.a)}},FZ=function(e){return{h:Mo(e.h),s:Mo(e.s),l:Mo(e.l),a:Mo(e.a,3)}},HZ=function(e){return qZ((r=(t=e).s,{h:t.h,s:(r*=((o=t.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:t.a}));var t,r,o},Sb=function(e){return{h:(t=$Z(e)).h,s:(a=(200-(r=t.s))*(o=t.v)/100)>0&&a<200?r*o/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,r,o,a},W5e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$5e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,q5e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Z5e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,TL={string:[[function(e){var t=G5e.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Mo(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Mo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=q5e.exec(e)||Z5e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:VZ({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=W5e.exec(e)||$5e.exec(e);if(!t)return null;var r,o,a=OZ({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(U5e[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return HZ(a)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,a=e.a,i=a===void 0?1:a;return vu(t)&&vu(r)&&vu(o)?VZ({r:Number(t),g:Number(r),b:Number(o),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,o=e.l,a=e.a,i=a===void 0?1:a;if(!vu(t)||!vu(r)||!vu(o))return null;var l=OZ({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return HZ(l)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,a=e.a,i=a===void 0?1:a;if(!vu(t)||!vu(r)||!vu(o))return null;var l=(function(s){return{h:WZ(s.h),s:yl(s.s,0,100),v:yl(s.v,0,100),a:yl(s.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return qZ(l)},"hsv"]]},jZ=function(e,t){for(var r=0;r<t.length;r++){var o=t[r][0](e);if(o)return[o,t[r][1]]}return[null,void 0]},K5e=function(e){return typeof e=="string"?jZ(e.trim(),TL.string):typeof e=="object"&&e!==null?jZ(e,TL.object):[null,void 0]};var CL=function(e,t){var r=Sb(e);return{h:r.h,s:yl(r.s+100*t,0,100),l:r.l,a:r.a}},SL=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},UZ=function(e,t){var r=Sb(e);return{h:r.h,s:r.s,l:yl(r.l+100*t,0,100),a:r.a}},PL=(function(){function e(t){this.parsed=K5e(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return Mo(SL(this.rgba),2)},e.prototype.isDark=function(){return SL(this.rgba)<.5},e.prototype.isLight=function(){return SL(this.rgba)>=.5},e.prototype.toHex=function(){return t=wL(this.rgba),r=t.r,o=t.g,a=t.b,l=(i=t.a)<1?l3(Mo(255*i)):"","#"+l3(r)+l3(o)+l3(a)+l;var t,r,o,a,i,l},e.prototype.toRgb=function(){return wL(this.rgba)},e.prototype.toRgbString=function(){return t=wL(this.rgba),r=t.r,o=t.g,a=t.b,(i=t.a)<1?"rgba("+r+", "+o+", "+a+", "+i+")":"rgb("+r+", "+o+", "+a+")";var t,r,o,a,i},e.prototype.toHsl=function(){return FZ(Sb(this.rgba))},e.prototype.toHslString=function(){return t=FZ(Sb(this.rgba)),r=t.h,o=t.s,a=t.l,(i=t.a)<1?"hsla("+r+", "+o+"%, "+a+"%, "+i+")":"hsl("+r+", "+o+"%, "+a+"%)";var t,r,o,a,i},e.prototype.toHsv=function(){return t=$Z(this.rgba),{h:Mo(t.h),s:Mo(t.s),v:Mo(t.v),a:Mo(t.a,3)};var t},e.prototype.invert=function(){return Br({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Br(CL(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Br(CL(this.rgba,-t))},e.prototype.grayscale=function(){return Br(CL(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Br(UZ(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Br(UZ(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Br({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):Mo(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=Sb(this.rgba);return typeof t=="number"?Br({h:t,s:r.s,l:r.l,a:r.a}):Mo(r.h)},e.prototype.isEqual=function(t){return this.toHex()===Br(t).toHex()},e})(),Br=function(e){return e instanceof PL?e:new PL(e)},GZ=[],ZZ=function(e){e.forEach(function(t){GZ.indexOf(t)<0&&(t(PL,TL),GZ.push(t))})};function KZ(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var a in r)o[r[a]]=a;var i={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=o[this.toHex()];if(u)return u;if(l?.closest){var p=this.toRgb(),m=1/0,d="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var h in r){var g=(s=p,c=i[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));g<m&&(m=g,d=h)}return d}},t.string.push([function(l){var s=l.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new e(c).toRgb():null},"name"])}function Y5e(e){var t=e.toString(16);return t.length===1?"0"+t:t}function YZ(e){return"#"+e.map(Y5e).join("")}function Q5e(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function X5e(e){return e?J5e(e)?e:[e]:[]}function J5e(e){return Array.isArray(e[0])}function BL(e,t,r){for(var o=0;o<r.length;o++)if(ewe(e,t,r[o]))return!0;return!1}function ewe(e,t,r){switch(r.length){case 3:if(twe(e,t,r))return!0;break;case 4:if(rwe(e,t,r))return!0;break;case 5:if(owe(e,t,r))return!0;break;default:return!1}}function twe(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function rwe(e,t,r){return e[t+3]&&r[3]?e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]&&e[t+3]===r[3]:e[t+3]===r[3]}function s3(e,t,r){return e>=t-r&&e<=t+r}function owe(e,t,r){var o=r[0],a=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=s3(c,l,s);return l?!!(!c&&u||s3(e[t],o,s)&&s3(e[t+1],a,s)&&s3(e[t+2],i,s)&&u):u}function nwe(e,t,r){for(var o={},a=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],p=e[c+1],m=e[c+2],d=e[c+3];if(!(i&&BL(e,c,i))){var f=Math.round(u/a)+","+Math.round(p/a)+","+Math.round(m/a);o[f]?o[f]=[o[f][0]+u*d,o[f][1]+p*d,o[f][2]+m*d,o[f][3]+d,o[f][4]+1]:o[f]=[u*d,p*d,m*d,d,1],s[4]<o[f][4]&&(s=o[f])}}var h=s[0],g=s[1],v=s[2],b=s[3],_=s[4];return b?[Math.round(h/b),Math.round(g/b),Math.round(v/b),Math.round(b/_)]:r.defaultColor}function awe(e,t,r){for(var o=0,a=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,p=0;p<t;p+=u){var m=e[p+3],d=e[p]*m,f=e[p+1]*m,h=e[p+2]*m;c&&BL(e,p,c)||(o+=d,a+=f,i+=h,l+=m,s++)}return l?[Math.round(o/l),Math.round(a/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function iwe(e,t,r){for(var o=0,a=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,p=0;p<t;p+=u){var m=e[p],d=e[p+1],f=e[p+2],h=e[p+3];c&&BL(e,p,c)||(o+=m*m*h,a+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function QZ(e){return Pb(e,"defaultColor",[0,0,0,0])}function Pb(e,t,r){return e[t]===void 0?r:e[t]}var XZ=10,EL=100;function lwe(e){return e.search(/\.svg(\?|$)/i)!==-1}function swe(e){if(eK(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&lwe(e.src)&&(t=r=EL),{width:t,height:r}}return uwe(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function JZ(e){return pwe(e)?"canvas":cwe(e)?"offscreencanvas":mwe(e)?"imagebitmap":e.src}function eK(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function cwe(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function uwe(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function pwe(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function mwe(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function dwe(e,t){var r=Pb(t,"left",0),o=Pb(t,"top",0),a=Pb(t,"width",e.width),i=Pb(t,"height",e.height),l=a,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:i,destWidth:l,destHeight:s};var c;return a>i?(c=a/i,l=EL,s=Math.round(l/c)):(c=i/a,s=EL,l=Math.round(s/c)),(l>a||s>i||l<XZ||s<XZ)&&(l=a,s=i),{srcLeft:r,srcTop:o,srcWidth:a,srcHeight:i,destWidth:l,destHeight:s}}var fwe=typeof window>"u";function hwe(){return fwe?new OffscreenCanvas(1,1):document.createElement("canvas")}var tK="FastAverageColor: ";function c3(e,t,r){t||(console.error(tK+e),r&&console.error(r))}function Tb(e){return Error(tK+e)}var rK=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(Tb("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(Tb("resource as string is not supported in this environment"));var o=new Image;return o.crossOrigin=r&&r.crossOrigin||"",o.src=t,this.bindImageEvents(o,r)}else{if(eK(t)&&!t.complete)return this.bindImageEvents(t,r);var a=this.getColor(t,r);return a.error?Promise.reject(a.error):Promise.resolve(a)}},e.prototype.getColor=function(t,r){r=r||{};var o=QZ(r);if(!t)return c3("call .getColor(null) without resource",r.silent),this.prepareResult(o);var a=swe(t),i=dwe(a,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return c3('incorrect sizes for resource "'.concat(JZ(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=hwe()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return c3("Canvas Context 2D is not supported in this browser",r.silent),this.prepareResult(o);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=o;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,r)}catch(c){c3("security error (CORS) for resource ".concat(JZ(t),`.
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var o=4,a=t.length,i=QZ(r);if(a<o)return i;var l=a-a%o,s=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=awe;break;case"sqrt":c=iwe;break;case"dominant":c=nwe;break;default:throw Tb("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:X5e(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),o=[t[0],t[1],t[2],t[3]/255],a=Q5e(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:YZ(r),hexa:YZ(t),isDark:a,isLight:!a}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,r){var o=this;return new Promise(function(a,i){var l=function(){u();var p=o.getColor(t,r);p.error?i(p.error):a(p)},s=function(){u(),i(Tb('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(Tb('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",l),t.removeEventListener("error",s),t.removeEventListener("abort",c)};t.addEventListener("load",l),t.addEventListener("error",s),t.addEventListener("abort",c)})},e})();var nK=n(bu(),1);ZZ([KZ]);var rg="#FFF",aK="#000";function gwe(e,t){return{r:e.r*e.a+t.r*t.a*(1-e.a),g:e.g*e.a+t.g*t.a*(1-e.a),b:e.b*e.a+t.b*t.a*(1-e.a),a:e.a+t.a*(1-e.a)}}function u3(){return u3.fastAverageColor||(u3.fastAverageColor=new rK),u3.fastAverageColor}var Fd=kh(async e=>{if(!e)return rg;let{r:t,g:r,b:o,a}=Br(rg).toRgb();try{let i=(0,nK.applyFilters)("media.crossOrigin",void 0,e);return(await u3().getColorAsync(e,{defaultColor:[t,r,o,a*255],silent:!0,crossOrigin:i})).hex}catch{return rg}});function Dp(e,t,r){if(t===r||e===100)return Br(t).isDark();let o=Br(t).alpha(e/100).toRgb(),a=Br(r).toRgb(),i=gwe(o,a);return Br(i).isDark()}var Qt=n(y(),1),{openMediaEditorModalKey:vwe}=j(Qr.privateApis);function bwe(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,IL.__)("Write title\u2026"),...e}]]}var ywe=(e,t)=>!e&&(0,iK.isBlobURL)(t);function _we({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:a,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:p,url:m,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:g,hasParallax:v,isDark:b,isRepeated:_,minHeight:k,minHeightUnit:x,alt:w,allowedBlocks:S,templateLock:T,tagName:I="div",isUserOverlayColor:D,sizeSlug:L,poster:E}=e,[B]=(0,Eb.useEntityProp)("postType",c,"featured_media",s),{getSettings:A}=(0,yu.useSelect)(Qr.store),z=(0,yu.useSelect)(Le=>Le(Qr.store).getSettings()[vwe],[]),{__unstableMarkNextChangeAsNotPersistent:U}=(0,yu.useDispatch)(Qr.store),q=(0,Ha.useRef)({attributes:e,overlayColor:o});(0,Ha.useLayoutEffect)(()=>{q.current={attributes:e,overlayColor:o}});let{media:G}=(0,yu.useSelect)(Le=>({media:B&&f?Le(Eb.store).getEntityRecord("postType","attachment",B,{context:"view"}):void 0}),[B,f]),W=G?.media_details?.sizes?.[L]?.source_url??G?.source_url;(0,Ha.useEffect)(()=>{(async()=>{if(!f)return;let Le=await Fd(W),{attributes:bt,overlayColor:cr}=q.current,wr=cr.color;bt.isUserOverlayColor||(wr=Le,U(),i(wr));let qr=Dp(bt.dimRatio,wr,Le);U(),a({isDark:qr,isUserOverlayColor:bt.isUserOverlayColor||!1})})()},[W,U,a,i,f]);let V=f?W:m?.replaceAll("&","&"),Q=f?Yt:d,{createErrorNotice:Y}=(0,yu.useDispatch)(lK.store),{gradientClass:ee,gradientValue:te}=(0,Qr.__experimentalUseGradient)(),oe=async Le=>{let bt=mZ(Le),cr=[Le?.type,Le?.media_type].includes(Yt),wr=await Fd(cr?Le?.url:void 0),{attributes:qr,overlayColor:ta}=q.current,ui=ta.color;qr.isUserOverlayColor||(ui=wr,i(ui),U());let Vm=qr.url===void 0&&qr.dimRatio===100?50:qr.dimRatio,sh=Dp(Vm,ui,wr);if(Q===Yt&&bt?.id){let{imageDefaultSize:nl}=A();L&&(Le?.sizes?.[L]||Le?.media_details?.sizes?.[L])?(bt.sizeSlug=L,bt.url=Le?.sizes?.[L]?.url||Le?.media_details?.sizes?.[L]?.source_url):Le?.sizes?.[nl]||Le?.media_details?.sizes?.[nl]?(bt.sizeSlug=nl,bt.url=Le?.sizes?.[nl]?.url||Le?.media_details?.sizes?.[nl]?.source_url):bt.sizeSlug=Vd}a({...bt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Vm,isDark:sh,isUserOverlayColor:qr.isUserOverlayColor||!1})},J=()=>{let Le=o.color;!D&&o.color&&(Le=aK,i(void 0),U());let bt=Dp(h,Le,rg);a({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:bt})},ce=async Le=>{let bt=await Fd(V),{attributes:cr}=q.current,wr=Dp(cr.dimRatio,Le,bt);i(Le),U(),a({isUserOverlayColor:!0,isDark:wr})},ie=async Le=>{let bt=await Fd(V),{overlayColor:cr}=q.current,wr=Dp(Le,cr.color,bt);a({dimRatio:Le,isDark:wr})},we=Le=>{Y(Le,{type:"snackbar"})},le=Le=>{a({url:Le,backgroundType:gu,dimRatio:m===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:de,isFetchingEmbed:ge}=(0,yu.useSelect)(Le=>{if(Q!==gu||!V)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:bt,isRequestingEmbedPreview:cr}=Le(Eb.store);return{embedPreview:bt(V),isFetchingEmbed:cr(V)}},[V,Q]),ne=(0,Ha.useMemo)(()=>Q!==gu||!de?.html?null:IZ(de.html),[de,Q]),me=ywe(p,V),se=Yt===Q,Ne=Er===Q,De=gu===Q,X=(0,Qr.useBlockEditingMode)(),Ce=X==="default",[pe,{height:ct,width:he}]=(0,p3.useResizeObserver)(),ze=(0,Ha.useMemo)(()=>({height:x==="px"&&k?k:"auto",width:"auto"}),[k,x]),Ct=k&&x?`${k}${x}`:k,Me=!(v||_),No={minHeight:Ct||void 0},Do=V?`url(${V})`:void 0,Lo=on(g),bo={backgroundColor:o.color},Zo={objectPosition:g&&Me?on(g):void 0},Jn=!!(V||o.color||te),ae=(0,yu.useSelect)(Le=>Le(Qr.store).getBlock(t).innerBlocks.length>0,[t]),Ve=(0,Ha.useRef)(),$e=(0,Qr.useBlockProps)({ref:Ve}),[Lt]=(0,Qr.useSettings)("typography.fontSizes"),tt=Lt?.length>0,kr=bwe({fontSize:tt?"large":void 0}),ea=(0,Qr.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:ae?void 0:kr,templateInsertUpdatesSelection:!0,allowedBlocks:S,templateLock:T,dropZoneElement:Ve.current}),ci=(0,Ha.useRef)(),rt=(0,Ha.useRef)(),Sn={isVideoBackground:Ne,isImageBackground:se,mediaElement:ci,hasInnerBlocks:ae,url:V,isImgElement:Me,overlayColor:o},zm=(0,Ha.useCallback)(()=>{!p||!z||z({id:p,onClose:()=>{rt.current?.focus()},onUpdate:async({id:Le,url:bt})=>{if(typeof Le!="number")return;let cr={id:Le,backgroundType:Yt,...bt?{url:bt}:{},...Le!==p?{sizeSlug:Vd}:{}};if(bt){let wr=await Fd(bt),{attributes:qr,overlayColor:ta}=q.current,ui=ta.color;qr.isUserOverlayColor||(ui=wr,i(ui),U()),cr.isDark=Dp(qr.dimRatio,ui,wr),cr.isUserOverlayColor=qr.isUserOverlayColor||!1}a(cr)}})},[p,z,a,i,U]),La=Ce&&!f&&se&&!!p&&!!V&&!me&&!!z,ol=async()=>{let Le=!f,bt=Le?await Fd(W):rg,{attributes:cr,overlayColor:wr}=q.current,qr=cr.isUserOverlayColor?wr.color:bt;cr.isUserOverlayColor||(i(Le?qr:void 0),U());let ta=cr.dimRatio===100?50:cr.dimRatio,ui=Dp(ta,qr,bt);a({id:void 0,url:void 0,useFeaturedImage:Le,dimRatio:ta,backgroundType:f?Yt:void 0,isDark:ui})},rp=(0,Qt.jsx)(DZ,{attributes:e,setAttributes:a,onSelectMedia:oe,onSelectEmbedUrl:le,currentSettings:Sn,toggleUseFeaturedImage:ol,onClearMedia:J,blockEditingMode:X,onEditMedia:zm,editMediaButtonRef:rt,showEditMediaButton:La}),Hs=(0,Qt.jsx)(SZ,{attributes:e,setAttributes:a,clientId:t,setOverlayColor:ce,coverRef:Ve,currentSettings:Sn,toggleUseFeaturedImage:ol,updateDimRatio:ie,onClearMedia:J,featuredImage:G}),Ul={className:"block-library-cover__resize-container",clientId:t,height:ct,minHeight:Ct,onResizeStart:()=>{a({minHeightUnit:"px"}),l(!1)},onResize:Le=>{a({minHeight:Le})},onResizeStop:Le=>{l(!0),a({minHeight:Le})},showHandle:!e.style?.dimensions?.aspectRatio,size:ze,width:he};if(!f&&!ae&&!Jn)return(0,Qt.jsxs)(Qt.Fragment,{children:[rp,Hs,Ce&&r&&(0,Qt.jsx)(kL,{...Ul}),(0,Qt.jsxs)(I,{...$e,className:C("is-placeholder",$e.className),style:{...$e.style,minHeight:Ct||void 0},children:[pe,(0,Qt.jsx)(xL,{onSelectMedia:oe,onError:we,toggleUseFeaturedImage:ol,children:(0,Qt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Qt.jsx)(Qr.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:ce,clearable:!1,asButtons:!0,"aria-label":(0,IL.__)("Overlay color")})})})]})]});let eu=C({"is-dark-theme":b,"is-light":!b,"is-transient":me,"has-parallax":v,"is-repeated":_,"has-custom-content-position":!ua(u)},Fa(u)),S1=V||!f||f&&!V;return(0,Qt.jsxs)(Qt.Fragment,{children:[rp,Hs,(0,Qt.jsxs)(I,{...$e,className:C(eu,$e.className),style:{...No,...$e.style},"data-url":V,children:[pe,!V&&f&&(0,Qt.jsx)(Hd.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),V&&se&&(Me?(0,Qt.jsx)("img",{ref:ci,className:"wp-block-cover__image-background",alt:w,src:V,style:Zo}):(0,Qt.jsx)("div",{ref:ci,role:w?"img":void 0,"aria-label":w||void 0,className:C(eu,"wp-block-cover__image-background"),style:{backgroundImage:Do,backgroundPosition:Lo}})),V&&Ne&&(0,Qt.jsx)("video",{ref:ci,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:V,poster:E,style:Zo}),De&&ne&&(0,Qt.jsx)("div",{ref:ci,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:Zo,children:(0,Qt.jsx)(Hd.SandBox,{allowSameOrigin:!0,html:ne,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),De&&!ne&&ge&&(0,Qt.jsx)(Hd.Spinner,{}),S1&&(0,Qt.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",bl(h),{[o.class]:o.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":V&&te&&h!==0,"has-background-gradient":te,[ee]:ee}),style:{backgroundImage:te,...bo}}),me&&(0,Qt.jsx)(Hd.Spinner,{}),(0,Qt.jsx)(xL,{disableMediaButtons:!0,onSelectMedia:oe,onError:we,toggleUseFeaturedImage:ol}),(0,Qt.jsx)("div",{...ea})]}),Ce&&r&&(0,Qt.jsx)(kL,{...Ul})]})}var sK=(0,p3.compose)([(0,Qr.withColors)({overlayColor:"background-color"})])(_we);var m3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},allowedVideoProviders:{type:"array",default:["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"]}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var Lp=n(P(),1);var oc=n(y(),1);function cK({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:a,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:p,isRepeated:m,overlayColor:d,url:f,alt:h,id:g,minHeight:v,minHeightUnit:b,tagName:_,sizeSlug:k,poster:x}=e,w=(0,Lp.getColorClassName)("background-color",d),S=(0,Lp.__experimentalGetGradientClass)(r),T=v&&b?`${v}${b}`:v,I=Yt===t,D=Er===t,L=gu===t,E=!(u||m),B={minHeight:T||void 0},A={backgroundColor:w?void 0:i,background:a||void 0},z=s&&E?on(s):void 0,U=f?`url(${f})`:void 0,q=on(s),G=C({"is-light":!p,"has-parallax":u,"is-repeated":m,"has-custom-content-position":!ua(o)},Fa(o)),W=C("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":m}),V=r||a;return(0,oc.jsxs)(_,{...Lp.useBlockProps.save({className:G,style:B}),children:[!c&&I&&f&&(E?(0,oc.jsx)("img",{className:W,alt:h,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}):(0,oc.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:W,style:{backgroundPosition:q,backgroundImage:U}})),D&&f&&(0,oc.jsx)("video",{className:C("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:x,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),L&&f&&(0,oc.jsx)("figure",{className:C("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,oc.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,oc.jsx)("span",{"aria-hidden":"true",className:C("wp-block-cover__background",w,bl(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&V&&l!==0,"has-background-gradient":V,[S]:S}),style:A}),(0,oc.jsx)("div",{...Lp.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var Pi=n($(),1),uK=n(P(),1);var{cleanEmptyObject:d3}=j(uK.privateApis),kwe={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:a,anchor:i,style:l})=>(0,Pi.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:a,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,Pi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:r,id:o,anchor:a})=>(0,Pi.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:Er,anchor:a},[(0,Pi.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:r,anchor:o,backgroundColor:a,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,Pi.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=a||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:r,anchor:o,dimRatio:s,overlayColor:a,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:d3({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Pi.createBlock)("core/cover",c,[(0,Pi.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:i})=>t?e===Yt:!r&&!o&&!a&&!i,transform:({title:e,url:t,alt:r,align:o,id:a,anchor:i,style:l})=>(0,Pi.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:a,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:a,customGradient:i})=>t?e===Er:!r&&!o&&!a&&!i,transform:({title:e,url:t,align:r,id:o,anchor:a})=>(0,Pi.createBlock)("core/video",{caption:e,src:t,id:o,align:r,anchor:a})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:d3({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(t?.length===1&&t[0]?.name==="core/group"){let o=d3(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,Pi.createBlock)("core/group",o,t[0]?.innerBlocks):(0,Pi.createBlock)("core/group",{...r,...o,style:d3({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Pi.createBlock)("core/group",{...e,...r},t)}}]},pK=kwe;var NL=n(N(),1);var wwe=[{name:"cover",title:(0,NL.__)("Cover"),description:(0,NL.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Qm}],mK=wwe;var{fieldsKey:Cwe,formKey:Swe}=j(dK.privateApis),{name:fK}=m3,f3={icon:Qm,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,DL.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:pK,save:cK,edit:sK,deprecated:dZ,variations:mK};window.__experimentalContentOnlyInspectorFields&&(f3[Cwe]=[{id:"background",label:(0,DL.__)("Background"),type:"media",Edit:{control:"media",allowedTypes:["image","video"],multiple:!1,useFeaturedImage:!0},getValue:({item:e})=>({id:e.id,url:e.url,alt:e.alt,mediaType:e.backgroundType,featuredImage:e.useFeaturedImage}),setValue:({value:e})=>({id:e.id,url:e.url,alt:e.alt,mediaType:e.backgroundType,useFeaturedImage:e.featuredImage})}],f3[Swe]={fields:["background"]});var Twe=()=>R({name:fK,metadata:m3,settings:f3});var RL={};K(RL,{init:()=>Lwe,metadata:()=>h3,name:()=>xK,settings:()=>v3});var Rp=n(N(),1),_K=n($(),1);var h3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary",role:"content"},name:{type:"string",source:"attribute",attribute:"name",selector:".wp-block-details"},placeholder:{type:"string"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!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}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-details-editor",style:"wp-block-details"};var us=n(P(),1),nc=n(O(),1),_u=n(N(),1),hK=n(H(),1),gK=n(F(),1);var ja=n(y(),1),{withIgnoreIMEEvents:Ewe}=j(nc.privateApis),Bwe=[["core/paragraph",{placeholder:(0,_u.__)("Type / to add a hidden block")}]];function Iwe({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:a,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,us.useBlockProps)(),u=(0,us.useInnerBlocksProps)(c,{template:Bwe,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[p,m]=(0,hK.useState)(a),d=Z(),f=(0,gK.useSelect)(v=>v(us.store).hasSelectedInnerBlock(r,!0),[r]),h=v=>{v.key==="Enter"&&!v.shiftKey&&(m(b=>!b),v.preventDefault())},g=v=>{v.key===" "&&v.preventDefault()};return(0,ja.jsxs)(ja.Fragment,{children:[(0,ja.jsx)(us.InspectorControls,{children:(0,ja.jsx)(nc.__experimentalToolsPanel,{label:(0,_u.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,ja.jsx)(nc.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,_u.__)("Open by default"),hasValue:()=>a,onDeselect:()=>{t({showContent:!1})},children:(0,ja.jsx)(nc.ToggleControl,{label:(0,_u.__)("Open by default"),checked:a,onChange:()=>t({showContent:!a})})})})}),(0,ja.jsx)(us.InspectorControls,{group:"advanced",children:(0,ja.jsx)(nc.TextControl,{label:(0,_u.__)("Name attribute"),value:o||"",onChange:v=>t({name:v}),help:(0,_u.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,ja.jsxs)("details",{...u,open:p||f,onToggle:v=>m(v.target.open),name:o||"",children:[(0,ja.jsx)("summary",{onKeyDown:Ewe(h),onKeyUp:g,children:(0,ja.jsx)(us.RichText,{identifier:"summary","aria-label":(0,_u.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,_u.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:v=>t({summary:v})})}),u.children]})]})}var vK=Iwe;var ng=n(P(),1),og=n(y(),1);function bK({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",a=ng.useBlockProps.save();return(0,og.jsxs)("details",{...a,name:t||void 0,open:r,children:[(0,og.jsx)("summary",{children:(0,og.jsx)(ng.RichText.Content,{value:o})}),(0,og.jsx)(ng.InnerBlocks.Content,{})]})}var g3=n($(),1),yK={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,g3.createBlock)("core/details",{},e.map(t=>(0,g3.cloneSanitizedBlock)(t)))}}]};var{fieldsKey:Nwe,formKey:Dwe}=j(_K.privateApis),{name:xK}=h3,v3={icon:HP,example:{attributes:{summary:(0,Rp.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Rp.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},__experimentalLabel(e,{context:t}){let{summary:r}=e,o=e?.metadata?.name,a=r?.trim().length>0;if(t==="list-view"&&(o||a))return o||r;if(t==="breadcrumb"&&o)return o;if(t==="accessibility")return a?(0,Rp.sprintf)((0,Rp.__)("Details. %s"),r):(0,Rp.__)("Details. Empty.")},save:bK,edit:vK,transforms:yK};window.__experimentalContentOnlyInspectorFields&&(v3[Nwe]=[{id:"summary",label:(0,Rp.__)("Summary"),type:"text",Edit:"rich-text"}],v3[Dwe]={fields:["summary"]});var Lwe=()=>R({name:xK,metadata:h3,settings:v3});var OL={};K(OL,{init:()=>Uwe,metadata:()=>qs,name:()=>oY,settings:()=>nY});var Ud=n(N(),1),sg=n(H(),1),Bb=n(F(),1),k3=n(P(),1),VL=n(re(),1);var jd=n(N(),1),ac=n(O(),1),b3=n(P(),1);var _l=n(y(),1);function Rwe(e){return e?(0,jd.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,jd.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Awe=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:i})=>{let l=Z();return(0,_l.jsxs)(_l.Fragment,{children:[(0,_l.jsx)(b3.BlockControls,{children:(0,_l.jsx)(ac.ToolbarGroup,{children:t&&(0,_l.jsx)(ac.ToolbarButton,{className:"components-toolbar__control",label:(0,jd.__)("Edit URL"),icon:nd,onClick:i})})}),r&&e&&(0,_l.jsx)(b3.InspectorControls,{children:(0,_l.jsx)(ac.__experimentalToolsPanel,{label:(0,jd.__)("Media settings"),resetAll:()=>{a(!0)},dropdownMenuProps:l,children:(0,_l.jsx)(ac.__experimentalToolsPanelItem,{label:(0,jd.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{a(!o)},children:(0,_l.jsx)(ac.ToggleControl,{label:(0,jd.__)("Resize for smaller devices"),checked:o,help:Rwe,onChange:a})})})})]})},kK=Awe;var Se=n(O(),1),Ee=n(y(),1),ps=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ee.jsx)(Se.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})}),y3=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ee.jsx)(Se.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})}),AL=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ee.jsx)(Se.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),ag=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ee.jsx)(Se.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-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})}),wK={foreground:"#000000",src:(0,Ee.jsx)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},CK={foreground:"#ff0000",src:(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})})},SK={foreground:"#3b5998",src:(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"})})},TK=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.G,{children:(0,Ee.jsx)(Se.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})})}),PK={foreground:"#0073AA",src:(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.G,{children:(0,Ee.jsx)(Se.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})})})},EK={foreground:"#1db954",src:(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"})})},BK=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})}),IK={foreground:"#1ab7ea",src:(0,Ee.jsx)(Se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.G,{children:(0,Ee.jsx)(Se.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})})})},NK=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),DK={foreground:"#35465c",src:(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"})})},LK=(0,Ee.jsxs)(Se.SVG,{viewBox:"0 0 24 24",children:[(0,Ee.jsx)(Se.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,Ee.jsx)(Se.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,Ee.jsx)(Se.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})]}),RK=(0,Ee.jsxs)(Se.SVG,{viewBox:"0 0 24 24",children:[(0,Ee.jsx)(Se.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Ee.jsx)(Se.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,Ee.jsx)(Se.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Ee.jsx)(Se.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,Ee.jsx)(Se.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Ee.jsx)(Se.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),AK=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),MK=(0,Ee.jsx)(Se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Ee.jsx)(Se.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})}),zK=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 44 44",children:(0,Ee.jsx)(Se.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})}),VK={foreground:"#f43e37",src:(0,Ee.jsxs)(Se.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ee.jsx)(Se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Ee.jsx)(Se.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},OK=(0,Ee.jsx)(Se.SVG,{viewBox:"0 0 24 24",children:(0,Ee.jsx)(Se.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var FK=n(O(),1),ML=n(y(),1),Mwe=()=>(0,ML.jsx)("div",{className:"wp-block-embed is-loading",children:(0,ML.jsx)(FK.Spinner,{})}),HK=Mwe;var ic=n(N(),1),Ap=n(O(),1),jK=n(P(),1);var Ua=n(y(),1);function UK({icon:e,label:t,value:r,onSubmit:o,onChange:a,cannotEmbed:i,fallback:l,tryAgain:s}){return(0,Ua.jsxs)(Ap.Placeholder,{icon:(0,Ua.jsx)(jK.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,ic.__)("Paste a link to the content you want to display on your site."),children:[(0,Ua.jsxs)("form",{onSubmit:o,children:[(0,Ua.jsx)(Ap.__experimentalInputControl,{type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,ic.__)("Enter URL to embed here\u2026"),onChange:a}),(0,Ua.jsx)(Ap.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,ic._x)("Embed","button label")})]}),(0,Ua.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Ua.jsx)(uu,{openInNewTab:!0,href:(0,ic.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,ic.__)("Learn more about embeds")})}),i&&(0,Ua.jsxs)(_p,{direction:"column",gap:"md",className:"components-placeholder__error",children:[(0,Ua.jsx)("div",{className:"components-placeholder__instructions",children:(0,ic.__)("Sorry, this content could not be embedded.")}),(0,Ua.jsxs)(_p,{direction:"row",gap:"md",justify:"flex-start",children:[(0,Ua.jsx)(Ap.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,ic._x)("Try again","button label")}),l&&(0,Ua.jsx)(Ap.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,ic._x)("Convert to link","button label")})]})]})]})}var lg=n(N(),1),x3=n(O(),1),WK=n(P(),1),$K=n(H(),1),qK=n(pr(),1);var _3=n(ve(),1),ig=n(H(),1),zL=n(y(),1),zwe={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function GK({html:e}){let t=(0,ig.useRef)(),r=(0,ig.useMemo)(()=>{let a=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return a&&Array.from(a.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[zwe[l]||l]=s)}),i},[e]);return(0,ig.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:a}=o;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==r["data-secret"]||(t.current.height=c)}return a.addEventListener("message",i),()=>{a.removeEventListener("message",i)}},[]),(0,zL.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,zL.jsx)("iframe",{ref:(0,_3.useMergeRefs)([t,(0,_3.useFocusableIframe)()]),title:r.title,...r})})}var Ga=n(y(),1);function ZK({preview:e,previewable:t,url:r,type:o,isSelected:a,className:i,icon:l,label:s}){let[c,u]=(0,$K.useState)(!1);!a&&c&&u(!1);let p=()=>{u(!0)},{scripts:m}=e,d=o==="photo"?Vj(e):e.html,f=(0,qK.getAuthority)(r),h=(0,lg.sprintf)((0,lg.__)("Embedded content from %s"),f),g=C(o,i,"wp-block-embed__wrapper");return(0,Ga.jsx)(Ga.Fragment,{children:t?o==="wp-embed"?(0,Ga.jsx)(GK,{html:d}):(0,Ga.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,Ga.jsx)(x3.SandBox,{allowSameOrigin:!0,html:d,scripts:m,title:h,type:g,onFocus:p}),!c&&(0,Ga.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:p})]}):(0,Ga.jsxs)(x3.Placeholder,{icon:(0,Ga.jsx)(WK.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,Ga.jsx)("p",{className:"components-placeholder__error",children:(0,Ga.jsx)("a",{href:r,children:r})}),(0,Ga.jsx)("p",{className:"components-placeholder__error",children:(0,lg.sprintf)((0,lg.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Ei=n(y(),1),Vwe=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:a},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:p}=e,m={title:(0,Ud._x)("Embed","block title"),icon:ps},{icon:d,title:f}=Mj(t)||m,[h,g]=(0,sg.useState)(a),[v,b]=(0,sg.useState)(!1),{invalidateResolution:_}=(0,Bb.useDispatch)(VL.store),{__unstableMarkNextChangeAsNotPersistent:k}=(0,Bb.useDispatch)(k3.store),{preview:x,fetching:w,themeSupportsResponsive:S,cannotEmbed:T,hasResolved:I}=(0,Bb.useSelect)(V=>{let{getEmbedPreview:Q,isPreviewEmbedFallback:Y,isRequestingEmbedPreview:ee,getThemeSupports:te,hasFinishedResolution:oe}=V(VL.store);if(!a)return{fetching:!1,cannotEmbed:!1};let J=Q(a),ce=Y(a),ie=J?.html===!1&&J?.type===void 0,we=J?.data?.status===404,le=!!J&&!ie&&!we;return{preview:le?J:void 0,fetching:ee(a),themeSupportsResponsive:te()["responsive-embeds"],cannotEmbed:!le||ce,hasResolved:oe("getEmbedPreview",[a])}},[a]),D=()=>Fj(i,x,f,o);function L(V){let{className:Q}=i,{html:Y}=x;c({allowResponsive:V,className:wN(Y,Q,o&&V)})}(0,sg.useEffect)(()=>{if(!T||!I||!a)return;let V=a.replace(/\/$/,"");V!==a&&(g(V),b(!1),k(),c({url:V}))},[a,T,I,c,k]),(0,sg.useEffect)(()=>{if(!x||v)return;let V=D();if(s){let Y=hp(e,V);if(Y){k(),c(Y.attributes);return}}Object.keys(V).some(Y=>V[Y]!==i[Y])&&(k(),c(V))},[x,v]);let E=(0,k3.useBlockProps)();if(w)return(0,Ei.jsx)("div",{...E,children:(0,Ei.jsx)(HK,{})});let B=(0,Ud.sprintf)((0,Ud.__)("%s URL"),f);if(!x||T||v)return(0,Ei.jsx)("div",{...E,children:(0,Ei.jsx)(UK,{icon:d,label:B,onFocus:p,onSubmit:V=>{V&&V.preventDefault();let Q=Uv(h),Y=fp(i.className);g(Q),c({url:Q,...Ch(Q)?.attributes,className:Y}),b(!1)},value:h,cannotEmbed:T,onChange:V=>g(V),fallback:s?()=>Oj(h,s):void 0,tryAgain:()=>{_("getEmbedPreview",[h])}})});let{caption:z,type:U,allowResponsive:q,className:G}=D(),W=C(G,e.className);return(0,Ei.jsxs)(Ei.Fragment,{children:[(0,Ei.jsx)(kK,{showEditButton:x&&!T,themeSupportsResponsive:S,blockSupportsResponsive:o,allowResponsive:q,toggleResponsive:L,switchBackToURLInput:()=>b(!0)}),(0,Ei.jsxs)("figure",{...E,className:C(E.className,W,{[`is-type-${U}`]:U,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Ei.jsx)(ZK,{preview:x,previewable:r,className:W,url:h,type:U,caption:z,onCaptionChange:V=>c({caption:V}),isSelected:l,icon:d,label:B,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Ei.jsx)(Ao,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,Ud.__)("Embed caption text"),showToolbarButton:l})]})]})},KK=Vwe;var Gd=n(P(),1),Ib=n(y(),1);function YK({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:a}=e;if(!t)return null;let i=C("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,Ib.jsxs)("figure",{...Gd.useBlockProps.save({className:i}),children:[(0,Ib.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Gd.RichText.isEmpty(r)&&(0,Ib.jsx)(Gd.RichText.Content,{className:(0,Gd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var w3=n($(),1),C3=n(pr(),1);var{name:QK}=qs,Owe={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,C3.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,C3.getFilename)(t)||"")},transform:e=>{let t=Uv(e.textContent.trim());return(0,w3.createBlock)(QK,{url:t,...Ch(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=Uv(t.content?.trim());return(0,w3.createBlock)(QK,{url:r,...Ch(r)?.attributes})}}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:r})=>{let o=`<a href="${e}">${e}</a>`;return t?.trim()&&(o+=`<br />${t}`),(0,w3.createBlock)("core/paragraph",{content:o,className:fp(r)})}}]},XK=Owe;var ke=n(N(),1);function _t(e){return(0,ke.sprintf)((0,ke.__)("%s Embed"),e)}var JK=[{name:"twitter",title:_t("X"),icon:wK,keywords:["x","twitter","tweet",(0,ke.__)("social")],description:(0,ke.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:_t("YouTube"),icon:CK,keywords:[(0,ke.__)("music"),(0,ke.__)("video")],description:(0,ke.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:_t("Facebook"),icon:SK,keywords:[(0,ke.__)("social")],description:(0,ke.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:_t("Instagram"),icon:TK,keywords:[(0,ke.__)("image"),(0,ke.__)("social")],description:(0,ke.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:_t("WordPress"),icon:PK,keywords:[(0,ke.__)("post"),(0,ke.__)("blog")],description:(0,ke.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:_t("SoundCloud"),icon:y3,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:_t("Spotify"),icon:EK,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:_t("Flickr"),icon:BK,keywords:[(0,ke.__)("image")],description:(0,ke.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:_t("Vimeo"),icon:IK,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:_t("Animoto"),icon:RK,description:(0,ke.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:_t("Cloudup"),icon:ps,description:(0,ke.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:_t("CollegeHumor"),icon:ag,description:(0,ke.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:_t("Crowdsignal"),icon:ps,keywords:["polldaddy",(0,ke.__)("survey")],description:(0,ke.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:_t("Dailymotion"),icon:AK,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:_t("Imgur"),icon:AL,description:(0,ke.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:_t("Issuu"),icon:ps,description:(0,ke.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:_t("Kickstarter"),icon:ps,description:(0,ke.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:_t("Mixcloud"),icon:y3,keywords:[(0,ke.__)("music"),(0,ke.__)("audio")],description:(0,ke.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:_t("Pocket Casts"),icon:VK,keywords:[(0,ke.__)("podcast"),(0,ke.__)("audio")],description:(0,ke.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:_t("Reddit"),icon:NK,description:(0,ke.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:_t("ReverbNation"),icon:y3,description:(0,ke.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:_t("Scribd"),icon:ps,description:(0,ke.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:_t("SmugMug"),icon:AL,description:(0,ke.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:_t("Speaker Deck"),icon:ps,description:(0,ke.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:_t("TikTok"),icon:ag,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:_t("TED"),icon:ag,description:(0,ke.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:_t("Tumblr"),icon:DK,keywords:[(0,ke.__)("social")],description:(0,ke.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:_t("VideoPress"),icon:ag,keywords:[(0,ke.__)("video")],description:(0,ke.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:_t("WordPress.tv"),icon:ag,description:(0,ke.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:_t("Amazon Kindle"),icon:LK,keywords:[(0,ke.__)("ebook")],description:(0,ke.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:_t("Pinterest"),icon:MK,keywords:[(0,ke.__)("social"),(0,ke.__)("bookmark")],description:(0,ke.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:_t("Wolfram"),icon:zK,description:(0,ke.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:_t("Bluesky"),icon:OK,description:(0,ke.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];JK.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var eY=JK;var Wd=n(P(),1),$d=n(y(),1),{attributes:tY}=qs,Fwe={attributes:tY,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:a}=e;if(!t)return null;let i=C("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,$d.jsxs)("figure",{...Wd.useBlockProps.save({className:i}),children:[(0,$d.jsx)("div",{className:"wp-block-embed__wrapper",children:`
${t}
`}),!Wd.RichText.isEmpty(r)&&(0,$d.jsx)(Wd.RichText.Content,{tagName:"figcaption",value:r})]})}},Hwe={attributes:tY,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let a=C("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${o}`]:o});return(0,$d.jsxs)("figure",{className:a,children:[`
${e}
`,!Wd.RichText.isEmpty(t)&&(0,$d.jsx)(Wd.RichText.Content,{tagName:"figcaption",value:t})]})}},jwe=[Fwe,Hwe],rY=jwe;var{name:oY}=qs,nY={icon:ps,edit:KK,save:YK,transforms:XK,variations:eY,deprecated:rY},Uwe=()=>R({name:oY,metadata:qs,settings:nY});var GL={};K(GL,{init:()=>t3e,metadata:()=>T3,name:()=>SY,settings:()=>P3});var pg=n(N(),1);var CY=n($(),1);var wo=n(P(),1),ms=n(N(),1),Xt=n(y(),1),Gwe={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:a,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=wo.RichText.isEmpty(o)?(0,ms.__)("PDF embed"):(0,ms.sprintf)((0,ms.__)("Embed of %s."),o),m=!wo.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,Xt.jsxs)("div",{...wo.useBlockProps.save(),children:[c&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,Xt.jsx)("a",{id:d,href:a,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Xt.jsx)(wo.RichText.Content,{value:o})}),l&&(0,Xt.jsx)("a",{href:t,className:C("wp-block-file__button",(0,wo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Xt.jsx)(wo.RichText.Content,{value:s})})]})}},Wwe={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:a,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=wo.RichText.isEmpty(o)?(0,ms.__)("PDF embed"):(0,ms.sprintf)((0,ms.__)("Embed of %s."),o),m=!wo.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,Xt.jsxs)("div",{...wo.useBlockProps.save(),children:[c&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,Xt.jsx)("a",{id:d,href:a,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Xt.jsx)(wo.RichText.Content,{value:o})}),l&&(0,Xt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Xt.jsx)(wo.RichText.Content,{value:s})})]})}},$we={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:r,textLinkHref:o,textLinkTarget:a,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=wo.RichText.isEmpty(r)?(0,ms.__)("PDF embed"):(0,ms.sprintf)((0,ms.__)("Embed of %s."),r);return t&&(0,Xt.jsxs)("div",{...wo.useBlockProps.save(),children:[s&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!wo.RichText.isEmpty(r)&&(0,Xt.jsx)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0,children:(0,Xt.jsx)(wo.RichText.Content,{value:r})}),i&&(0,Xt.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Xt.jsx)(wo.RichText.Content,{value:l})})]})}},qwe=[Gwe,Wwe,$we],aY=qwe;var HL=n(Ar(),1),ug=n(O(),1),cg=n(F(),1),sn=n(P(),1),uY=n(H(),1),pY=n(ve(),1),xu=n(N(),1);var mY=n(re(),1),jL=n(Sr(),1),dY=n(pr(),1);var an=n(N(),1),ln=n(O(),1),iY=n(P(),1);var zo=n(y(),1);function lY({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:p,textLinkHref:m,attachmentPage:d}=e,f=Z(),h=[{value:p,label:(0,an.__)("URL")}];return d&&(h=[{value:p,label:(0,an.__)("Media file")},{value:d,label:(0,an.__)("Attachment page")}]),(0,zo.jsx)(zo.Fragment,{children:(0,zo.jsxs)(iY.InspectorControls,{children:[p.endsWith(".pdf")&&(0,zo.jsxs)(ln.__experimentalToolsPanel,{label:(0,an.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,zo.jsx)(ln.__experimentalToolsPanelItem,{label:(0,an.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,zo.jsx)(ln.ToggleControl,{label:(0,an.__)("Show inline embed"),help:l?(0,an.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,zo.jsx)(ln.__experimentalToolsPanelItem,{label:(0,an.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,zo.jsx)(ln.RangeControl,{label:(0,an.__)("Height in pixels"),min:S3,max:Math.max(FL,c),value:c,onChange:u})})]}),(0,zo.jsxs)(ln.__experimentalToolsPanel,{label:(0,an.__)("Settings"),resetAll:()=>{o(p),a(!1),i(!0)},dropdownMenuProps:f,children:[(0,zo.jsx)(ln.__experimentalToolsPanelItem,{label:(0,an.__)("Link to"),isShownByDefault:!0,hasValue:()=>m!==p,onDeselect:()=>o(p),children:(0,zo.jsx)(ln.SelectControl,{label:(0,an.__)("Link to"),value:m,options:h,onChange:o})}),(0,zo.jsx)(ln.__experimentalToolsPanelItem,{label:(0,an.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>a(!1),children:(0,zo.jsx)(ln.ToggleControl,{label:(0,an.__)("Open in new tab"),checked:t,onChange:a})}),(0,zo.jsx)(ln.__experimentalToolsPanelItem,{label:(0,an.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,zo.jsx)(ln.ToggleControl,{label:(0,an.__)("Show download button"),checked:r,onChange:i})})]})]})})}var cY=()=>window.navigator.pdfViewerEnabled?!0:!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!(sY("AcroPDF.PDF")||sY("PDF.PdfCtrl"))),sY=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var Xr=n(y(),1),S3=200,FL=2e3;function Zwe({text:e,disabled:t}){let{createNotice:r}=(0,cg.useDispatch)(jL.store),o=(0,pY.useCopyToClipboard)(e,()=>{r("info",(0,xu.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Xr.jsx)(ug.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,xu.__)("Copy URL")})}function Kwe({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:a,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:p,displayPreview:m,previewHeight:d}=e,[f,h]=(0,uY.useState)(e.blob),{media:g}=(0,cg.useSelect)(A=>({media:a?A(mY.store).getEntityRecord("postType","attachment",a,{context:"view"}):void 0}),[a]),{createErrorNotice:v}=(0,cg.useDispatch)(jL.store),{toggleSelection:b}=(0,cg.useDispatch)(sn.store);Ws({url:f,onChange:_,onError:k});function _(A){if(!A||!A.url){r({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),h();return}if((0,HL.isBlobURL)(A.url)){h(A.url);return}let z=(A.mime||A.mime_type)==="application/pdf"||(0,dY.getFilename)(A.url).toLowerCase().endsWith(".pdf"),U={displayPreview:z?e.displayPreview??!0:void 0,previewHeight:z?e.previewHeight??600:void 0};r({href:A.url,fileName:A.title,textLinkHref:A.url,id:A.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...U}),h()}function k(A){r({href:void 0}),v(A,{type:"snackbar"})}function x(A){r({textLinkHref:A})}function w(A){r({textLinkTarget:A?"_blank":!1})}function S(A){r({showDownloadButton:A})}function T(A){r({displayPreview:A})}function I(A,z,U,q){b(!0);let G=parseInt(d+q.height,10);r({previewHeight:G})}function D(A){let z=Math.max(parseInt(A,10),S3);r({previewHeight:z})}let L=g&&g.link,E=(0,sn.useBlockProps)({className:C(!!f&&(0,ug.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),B=cY()&&m;return!l&&!f?(0,Xr.jsx)("div",{...E,children:(0,Xr.jsx)(sn.MediaPlaceholder,{icon:(0,Xr.jsx)(sn.BlockIcon,{icon:X1}),labels:{title:(0,xu.__)("File"),instructions:(0,xu.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:_,onError:k,accept:"*"})}):(0,Xr.jsxs)(Xr.Fragment,{children:[(0,Xr.jsx)(lY,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:L},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:x,changeOpenInNewWindow:w,changeShowDownloadButton:S,displayPreview:m,changeDisplayPreview:T,previewHeight:d,changePreviewHeight:D}),(0,Xr.jsxs)(sn.BlockControls,{group:"other",children:[(0,Xr.jsx)(sn.MediaReplaceFlow,{mediaId:a,mediaURL:l,accept:"*",onSelect:_,onError:k,onReset:()=>_(void 0)}),(0,Xr.jsx)(Zwe,{text:l,disabled:(0,HL.isBlobURL)(l)})]}),(0,Xr.jsxs)("div",{...E,children:[B&&(0,Xr.jsxs)(ug.ResizableBox,{size:{height:d,width:"100%"},minHeight:S3,maxHeight:FL,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:I,showHandle:t,children:[(0,Xr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,xu.__)("Embed of the selected PDF file.")}),!t&&(0,Xr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Xr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Xr.jsx)(sn.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,xu.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:A=>r({fileName:sb(A)}),href:s}),u&&(0,Xr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Xr.jsx)(sn.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,xu.__)("Download button text"),className:C("wp-block-file__button",(0,sn.__experimentalGetElementClassName)("button")),value:p,withoutInteractiveFormatting:!0,placeholder:(0,xu.__)("Add text\u2026"),onChange:A=>r({downloadButtonText:sb(A)})})})]})]})]})}var fY=Kwe;var T3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},blob:{type:"string",role:"local"},href:{type:"string",role:"content"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",selector:"a:not([download])",role:"content"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href",role:"content"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"rich-text",source:"rich-text",selector:"a[download]",role:"content"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"};var ku=n(P(),1),ds=n(y(),1);function hY({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:a,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,p=ku.RichText.isEmpty(o)?"PDF embed":o.toString(),m=!ku.RichText.isEmpty(o),d=m?r:void 0;return t&&(0,ds.jsxs)("div",{...ku.useBlockProps.save(),children:[c&&(0,ds.jsx)(ds.Fragment,{children:(0,ds.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":p})}),m&&(0,ds.jsx)("a",{id:d,href:a,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ds.jsx)(ku.RichText.Content,{value:o})}),l&&(0,ds.jsx)("a",{href:t,className:C("wp-block-file__button",(0,ku.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,ds.jsx)(ku.RichText.Content,{value:s})})]})}var Nb=n(Ar(),1),qd=n($(),1),vY=n(F(),1),bY=n(re(),1),yY=n(N(),1),_Y=n(pr(),1),gY=(0,yY._x)("Download","button label"),UL=(e,t,r)=>({type:"block",blocks:[e],isMatch:({id:o})=>{if(!o)return!1;let{getEntityRecord:a}=(0,vY.select)(bY.store),i=a("postType","attachment",o,{context:"view"});return!!i&&i.mime_type.includes(t)},transform:o=>(0,qd.createBlock)(e,{[r]:o.href,caption:o.fileName,id:o.id,anchor:o.anchor})}),Qwe={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,Nb.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,qd.createBlock)("core/video",{blob:(0,Nb.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,qd.createBlock)("core/image",{blob:(0,Nb.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,qd.createBlock)("core/audio",{blob:(0,Nb.createBlobURL)(r)})):t.push((0,qd.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:gY}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,qd.createBlock)("core/file",{href:t,fileName:e.caption||(0,_Y.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:gY})}}],to:[UL("core/audio","audio","src"),UL("core/video","video","src"),UL("core/image","image","url")]},xY=Qwe;var kY=n(N(),1),Xwe=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,kY._x)("Download","button label")}}],wY=Xwe;var{fieldsKey:Jwe,formKey:e3e}=j(CY.privateApis),{name:SY}=T3,P3={icon:X1,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,pg._x)("Armstrong_Small_Step","Name of the file")}},transforms:xY,deprecated:aY,edit:fY,save:hY,variations:wY};window.__experimentalContentOnlyInspectorFields&&(P3[Jwe]=[{id:"file",label:(0,pg.__)("File"),type:"media",Edit:{control:"media",allowedTypes:[],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.href}),setValue:({value:e})=>({id:e.id,href:e.url})},{id:"fileName",label:(0,pg.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,pg.__)("Button Text"),type:"text",Edit:"rich-text"}],P3[e3e]={fields:["file","fileName","downloadButtonText"]});var t3e=()=>R({name:SY,metadata:T3,settings:P3});var KL={};K(KL,{init:()=>l3e,metadata:()=>I3,name:()=>LY,settings:()=>RY});var DY=n(bu(),1);var Vo=n(N(),1),fs=n(P(),1),hs=n(O(),1),TY=n(F(),1);var WL=n(N(),1),E3=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,WL.__)("Your form has been submitted successfully")+"</mark>"}]]],B3=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,WL.__)("There was an error submitting your form.")+"</mark>"}]]];var ma=n(y(),1),r3e=[E3,B3,["core/form-input",{type:"text",label:(0,Vo.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,Vo.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,Vo.__)("Comment"),required:!0}],["core/form-submit-button",{}]],o3e=({attributes:e,setAttributes:t,clientId:r})=>{let o=Z(),a=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,fs.useBlockProps)(),{hasInnerBlocks:p}=(0,TY.useSelect)(d=>{let{getBlock:f}=d(fs.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),m=(0,fs.useInnerBlocksProps)(u,{template:r3e,renderAppender:p?void 0:fs.InnerBlocks.ButtonBlockAppender});return(0,ma.jsxs)(ma.Fragment,{children:[(0,ma.jsx)(fs.InspectorControls,{children:(0,ma.jsxs)(hs.__experimentalToolsPanel,{dropdownMenuProps:o,label:(0,Vo.__)("Settings"),resetAll:a,children:[(0,ma.jsx)(hs.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,Vo.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,ma.jsx)(hs.SelectControl,{label:(0,Vo.__)("Submissions method"),options:[{label:(0,Vo.__)("Send email"),value:"email"},{label:(0,Vo.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,Vo.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,Vo.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,ma.jsx)(hs.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Vo.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,ma.jsx)(hs.TextControl,{autoComplete:"off",label:(0,Vo.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,Vo.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,ma.jsxs)(fs.InspectorControls,{group:"advanced",children:[(0,ma.jsx)(hs.SelectControl,{label:(0,Vo.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,Vo.__)("Select the method to use for form submissions.")}),(0,ma.jsx)(hs.TextControl,{autoComplete:"off",label:(0,Vo.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,Vo.__)("The URL where the form should be submitted."),type:"url"})]}),(0,ma.jsx)("form",{...m,encType:c==="email"?"text/plain":null})]})},PY=o3e;var I3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"widgets",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var N3=n(P(),1),$L=n(y(),1);function EY({attributes:e}){let t=N3.useBlockProps.save(),{submissionMethod:r}=e;return(0,$L.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,$L.jsx)(N3.InnerBlocks.Content,{})})}var xl=n(N(),1);var a3e=[{name:"comment-form",title:(0,xl.__)("Experimental Comment form"),description:(0,xl.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,xl.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,xl.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,xl.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"wp-privacy-form",title:(0,xl.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,xl.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[E3,B3,["core/paragraph",{content:(0,xl.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,xl.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,xl.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,xl.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"}],BY=a3e;var lc=n(P(),1),qL=n(y(),1),i3e={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){let{submissionMethod:t}=e,r=(0,lc.__experimentalGetColorClassesAndStyles)(e),o=(0,lc.getTypographyClassesAndStyles)(e),a=(0,lc.__experimentalGetSpacingClassesAndStyles)(e),i=lc.useBlockProps.save({style:{...r.style,...o.style,...a.style},id:e.anchor});return(0,qL.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,qL.jsx)(lc.InnerBlocks.Content,{})})}},IY=[i3e];var D3=n(M(),1),ZL=n(y(),1),NY=(0,ZL.jsx)(D3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ZL.jsx)(D3.Path,{d:"M18 16H6c-1.1 0-2 .9-2 2s.9 2 2 2h12c1.1 0 2-.9 2-2s-.9-2-2-2Zm0 2.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h12c.3 0 .5.2.5.5s-.2.5-.5.5ZM13 13H4v1.5h9V13Zm-7-2h12c1.1 0 2-.9 2-2s-.9-2-2-2H6c-1.1 0-2 .9-2 2s.9 2 2 2Zm0-2.5h12c.3 0 .5.2.5.5s-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5ZM13 4H4v1.5h9V4Z"})});var{name:LY}=I3,RY={icon:NY,edit:PY,save:EY,deprecated:IY,variations:BY,example:{}},l3e=()=>{let e=["core/form"];return(0,DY.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,o,{getBlock:a,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(a(o)?.name===l||i(o,l).length)return!1;return!0}),R({name:LY,metadata:I3,settings:RY})};var QL={};K(QL,{init:()=>y3e,metadata:()=>R3,name:()=>KY,settings:()=>YY});var VY=n(Db(),1),gs=n(P(),1),OY=n(Tn(),1),Bi=n(y(),1),FY=e=>(0,VY.default)((0,OY.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),m3e={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:o,inlineLabel:a,required:i,placeholder:l,value:s}=e,c=(0,gs.__experimentalGetBorderClassesAndStyles)(e),u=(0,gs.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=C("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=gs.useBlockProps.save();return t==="hidden"?(0,Bi.jsx)("input",{type:t,name:r,value:s}):(0,Bi.jsx)("div",{...f,children:(0,Bi.jsxs)("label",{className:C("wp-block-form-input__label",{"is-label-inline":a}),children:[(0,Bi.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Bi.jsx)(gs.RichText.Content,{value:o})}),(0,Bi.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||FY(o),required:i,"aria-required":i,placeholder:l||void 0,style:p})]})})}},d3e={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:o,inlineLabel:a,required:i,placeholder:l,value:s}=e,c=(0,gs.__experimentalGetBorderClassesAndStyles)(e),u=(0,gs.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=C("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,Bi.jsx)("input",{type:t,name:r,value:s}):(0,Bi.jsxs)("label",{className:C("wp-block-form-input__label",{"is-label-inline":a}),children:[(0,Bi.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Bi.jsx)(gs.RichText.Content,{value:o})}),(0,Bi.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||FY(o),required:i,"aria-required":i,placeholder:l||void 0,style:p})]})}},f3e=[m3e,d3e],HY=f3e;var Ln=n(N(),1),vs=n(P(),1),bs=n(O(),1),jY=n(H(),1);var lo=n(y(),1);function h3e({attributes:e,setAttributes:t,className:r}){let{type:o,name:a,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,p=(0,vs.useBlockProps)(),m=Z(),d=(0,jY.useRef)(),f=o==="textarea"?"textarea":"input",h=(0,vs.__experimentalUseBorderProps)(e),g=(0,vs.__experimentalUseColorProps)(e);d.current&&d.current.focus();let v=o==="checkbox"||o==="radio",b=(0,lo.jsxs)(lo.Fragment,{children:[o!=="hidden"&&(0,lo.jsx)(vs.InspectorControls,{children:(0,lo.jsxs)(bs.__experimentalToolsPanel,{label:(0,Ln.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:m,children:[o!=="checkbox"&&(0,lo.jsx)(bs.__experimentalToolsPanelItem,{label:(0,Ln.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,lo.jsx)(bs.CheckboxControl,{label:(0,Ln.__)("Inline label"),checked:l,onChange:k=>{t({inlineLabel:k})}})}),(0,lo.jsx)(bs.__experimentalToolsPanelItem,{label:(0,Ln.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,lo.jsx)(bs.CheckboxControl,{label:(0,Ln.__)("Required"),checked:s,onChange:k=>{t({required:k})}})})]})}),(0,lo.jsxs)(vs.InspectorControls,{group:"advanced",children:[(0,lo.jsx)(bs.TextControl,{autoComplete:"off",label:(0,Ln.__)("Name"),value:a,onChange:k=>{t({name:k})},help:(0,Ln.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')}),o==="hidden"&&(0,lo.jsx)(bs.TextControl,{autoComplete:"off",label:(0,Ln.__)("Value"),value:u,onChange:k=>t({value:k}),help:(0,Ln.__)("Sets the stored value for this hidden field.")})]})]}),_=(0,lo.jsx)(vs.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:k=>t({label:k}),"aria-label":i?(0,Ln.__)("Label"):(0,Ln.__)("Empty label"),"data-empty":!i,placeholder:(0,Ln.__)("Type the label for this input")});return o==="hidden"?(0,lo.jsxs)("div",{...p,children:[b,(0,lo.jsx)("span",{className:"wp-block-form-input__label is-input-hidden","data-message":(0,Ln.__)("Hidden field")})]}):(0,lo.jsxs)("div",{...p,children:[b,(0,lo.jsxs)("span",{className:C("wp-block-form-input__label",{"is-label-inline":l||o==="checkbox"}),children:[!v&&_,(0,lo.jsx)(f,{type:o==="textarea"?void 0:o,className:C(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,Ln.__)("Optional placeholder text"),placeholder:c?void 0:(0,Ln.__)("Optional placeholder\u2026"),value:c,onChange:k=>t({placeholder:k.target.value}),"aria-required":s,style:{...h.style,...g.style}}),v&&_]})]})}var UY=h3e;var R3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"widgets",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var GY=n(Db(),1),wu=n(P(),1),WY=n(Tn(),1),sc=n(y(),1),v3e=e=>(0,GY.default)((0,WY.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function $Y({attributes:e}){let{type:t,name:r,label:o,inlineLabel:a,required:i,placeholder:l,value:s}=e,c=(0,wu.__experimentalGetBorderClassesAndStyles)(e),u=(0,wu.__experimentalGetColorClassesAndStyles)(e),p={...c.style,...u.style},m=C("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=wu.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,sc.jsx)("input",{type:t,name:r,value:s}):(0,sc.jsx)("div",{...f,children:(0,sc.jsxs)("label",{className:C("wp-block-form-input__label",{"is-label-inline":a}),children:[!h&&(0,sc.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,sc.jsx)(wu.RichText.Content,{value:o})}),(0,sc.jsx)(d,{className:m,type:t==="textarea"?void 0:t,name:r||v3e(o),required:i,"aria-required":i,placeholder:l||void 0,style:p}),h&&(0,sc.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,sc.jsx)(wu.RichText.Content,{value:o})})]})})}var cn=n(N(),1),b3e=[{name:"text",title:(0,cn.__)("Text Input"),description:(0,cn.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,cn.__)("Textarea Input"),description:(0,cn.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="textarea"},{name:"checkbox",title:(0,cn.__)("Checkbox Input"),description:(0,cn.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,cn.__)("Email Input"),description:(0,cn.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,cn.__)("URL Input"),description:(0,cn.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,cn.__)("Telephone Input"),description:(0,cn.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,cn.__)("Number Input"),description:(0,cn.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"},{name:"hidden",title:(0,cn.__)("Hidden Input"),icon:"visibility",description:(0,cn.__)("A hidden input field."),attributes:{type:"hidden"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="hidden"}],qY=b3e;var A3=n(M(),1),YL=n(y(),1),ZY=(0,YL.jsx)(A3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,YL.jsx)(A3.Path,{d:"M5.547 18.892A.99.99 0 0 0 6 19h.72v1H6a1.99 1.99 0 0 1-.908-.22l.455-.888ZM9.12 20H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.587-.22c-.272.14-.58.22-.907.22h-.72v-1H18a.99.99 0 0 0 .453-.108l.454.888ZM5.108 17.547a.99.99 0 0 0 0 .906l-.89.454a1.99 1.99 0 0 1 0-1.815l.89.455Zm14.672-.455a1.99 1.99 0 0 1 0 1.815l-.888-.454a.99.99 0 0 0 0-.906l.888-.455ZM6.72 17H6a.99.99 0 0 0-.453.108l-.455-.89A1.99 1.99 0 0 1 6 16h.72v1ZM18 16c.327 0 .635.08.907.219l-.454.89A.99.99 0 0 0 18 17h-.72v-1H18Zm-8.88 1H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1ZM5.5 14.28H4.25v-1H5.5v1Zm2.5 0H6.5v-1H8v1Zm2.5 0H9v-1h1.5v1Zm2.25 0H11.5v-1h1.25v1ZM18 7a2 2 0 1 1 0 4H6a2 2 0 1 1 0-4h12ZM6 8.5a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H6Zm7-3H4V4h9v1.5Z"})});var{name:KY}=R3,YY={icon:ZY,deprecated:HY,edit:UY,save:$Y,variations:qY,example:{}},y3e=()=>R({name:KY,metadata:R3,settings:YY});var JL={};K(JL,{init:()=>w3e,metadata:()=>z3,name:()=>tQ,settings:()=>rQ});var QY=n(N(),1),M3=n(P(),1),XY=n(y(),1),_3e=[["core/buttons",{},[["core/button",{text:(0,QY.__)("Submit"),tagName:"button",type:"submit"}]]]],x3e=()=>{let e=(0,M3.useBlockProps)(),t=(0,M3.useInnerBlocksProps)(e,{template:_3e,templateLock:"all"});return(0,XY.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},JY=x3e;var z3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"widgets",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var V3=n(P(),1),XL=n(y(),1);function eQ(){let e=V3.useBlockProps.save();return(0,XL.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,XL.jsx)(V3.InnerBlocks.Content,{})})}var{name:tQ}=z3,rQ={edit:JY,save:eQ,example:{}},w3e=()=>R({name:tQ,metadata:z3,settings:rQ});var eR={};K(eR,{init:()=>E3e,metadata:()=>F3,name:()=>cQ,settings:()=>uQ});var O3=n(N(),1),Mp=n(P(),1),oQ=n(F(),1);var nQ=n(y(),1),C3e=[["core/paragraph",{content:(0,O3.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],S3e=({attributes:e,clientId:t})=>{let{type:r}=e,o=(0,Mp.useBlockProps)({className:C("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:a}=(0,oQ.useSelect)(l=>{let{getBlock:s}=l(Mp.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,Mp.useInnerBlocksProps)(o,{template:C3e,renderAppender:a?void 0:Mp.InnerBlocks.ButtonBlockAppender});return(0,nQ.jsx)("div",{...i,"data-message-success":(0,O3.__)("Submission success notification"),"data-message-error":(0,O3.__)("Submission error notification")})},aQ=S3e;var F3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"widgets",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var H3=n(P(),1);var iQ=n(y(),1);function lQ({attributes:e}){let{type:t}=e;return(0,iQ.jsx)("div",{...H3.useInnerBlocksProps.save(H3.useBlockProps.save({className:C("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var Zd=n(N(),1),P3e=[{name:"form-submission-success",title:(0,Zd.__)("Form Submission Success"),description:(0,Zd.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,Zd.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="success"},{name:"form-submission-error",title:(0,Zd.__)("Form Submission Error"),description:(0,Zd.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,Zd.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="error"}],sQ=P3e;var{name:cQ}=F3,uQ={icon:ed,edit:aQ,save:lQ,variations:sQ,example:{}},E3e=()=>R({name:cQ,metadata:F3,settings:uQ});var fR={};K(fR,{init:()=>_4e,metadata:()=>e4,name:()=>bX,settings:()=>yX});var Vr=n(P(),1),dQ=n($(),1);var cc="none",uc="media",mg="lightbox",pc="attachment",pQ="file",mQ="post",Lb="large";var Ue=n(y(),1),fQ="file",hQ="post";function dg(e){return Math.min(3,e?.images?.length)}function B3e(e,t){switch(t){case fQ:return{href:e?.source_url||e?.url,linkDestination:uc};case hQ:return{href:e?.link,linkDestination:pc};case uc:return{href:e?.source_url||e?.url,linkDestination:uc};case pc:return{href:e?.link,linkDestination:pc};case cc:return{href:void 0,linkDestination:cc}}return{}}function fg(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>I3e(l,e.sizeSlug,t)),{images:o,ids:a,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function I3e(e,t,r){return(0,dQ.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...B3e(e,r)})}var N3e={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){let{caption:t,columns:r,imageCrop:o}=e,a=C("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Vr.useBlockProps.save({className:a}),l=Vr.useInnerBlocksProps.save(i);return(0,Ue.jsxs)("figure",{...l,children:[l.children,!Vr.RichText.isEmpty(t)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},D3e={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){let{images:t,columns:r=dg(e),imageCrop:o,caption:a,linkTo:i}=e,l=`columns-${r} ${o?"is-cropped":""}`;return(0,Ue.jsxs)("figure",{...Vr.useBlockProps.save({className:l}),children:[(0,Ue.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case fQ:c=s.fullUrl||s.url;break;case hQ:c=s.link;break}let u=(0,Ue.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id,"data-full-url":s.fullUrl,"data-link":s.link,className:s.id?`wp-image-${s.id}`:null});return(0,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[c?(0,Ue.jsx)("a",{href:c,children:u}):u,!Vr.RichText.isEmpty(s.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Vr.RichText.isEmpty(a)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a})]})},migrate(e){return fg(e)}},L3e={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||e==="attachment"||e==="media"},migrate(e){return fg(e)},save({attributes:e}){let{images:t,columns:r=dg(e),imageCrop:o,caption:a,linkTo:i}=e;return(0,Ue.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ue.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Ue.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[s?(0,Ue.jsx)("a",{href:s,children:c}):c,!Vr.RichText.isEmpty(l.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Vr.RichText.isEmpty(a)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a})]})}},R3e={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some(t=>typeof t=="string")},migrate(e){return fg(e)},save({attributes:e}){let{images:t,columns:r=dg(e),imageCrop:o,caption:a,linkTo:i}=e;return(0,Ue.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ue.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Ue.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[s?(0,Ue.jsx)("a",{href:s,children:c}):c,!Vr.RichText.isEmpty(l.caption)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Vr.RichText.isEmpty(a)&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a})]})}},A3e={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=dg(e),imageCrop:o,linkTo:a}=e;return(0,Ue.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(a){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,Ue.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-full-url":i.fullUrl,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[l?(0,Ue.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return fg(e)}},M3e={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some((r,o)=>!r&&t[o]!==null?!0:parseInt(r,10)!==t[o]))},migrate(e){return fg(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=dg(e),imageCrop:o,linkTo:a}=e;return(0,Ue.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(a){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,Ue.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,Ue.jsx)("li",{className:"blocks-gallery-item",children:(0,Ue.jsxs)("figure",{children:[l?(0,Ue.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Ue.jsx)(Vr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},z3e={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=dg(e),align:o,imageCrop:a,linkTo:i}=e,l=C(`columns-${r}`,{alignnone:o==="none","is-cropped":a});return(0,Ue.jsx)("div",{className:l,children:t.map(s=>{let c;switch(i){case"media":c=s.url;break;case"attachment":c=s.link;break}let u=(0,Ue.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Ue.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Ue.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return fg(e)}},gQ=[N3e,D3e,L3e,R3e,A3e,M3e,z3e];var St=n(O(),1),so=n(P(),1),Ob=n(H(),1),He=n(N(),1),Fb=n(F(),1),uX=n($(),1),pR=n(Ar(),1),pX=n(Sr(),1);var vQ=n(P(),1);var bQ=n(y(),1),j3=(0,bQ.jsx)(vQ.BlockIcon,{icon:nv});function U3(e){return e?Math.min(3,e):3}var G3=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([a])=>["alt","id","link"].includes(a)));r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(r.fullUrl=o),r};var mc=20,Kd="none",hg="media",gg="attachment",tR="custom",yQ=["noopener"],zp=["image"];var rR=["flex","grid"],Rb="full";function Ab(e,t,r,o,a){switch(r||t){case pQ:case uc:return{href:e?.source_url||e?.url,linkDestination:hg,lightbox:a?.enabled?{...o?.lightbox,enabled:!1}:void 0};case mQ:case pc:return{href:e?.link,linkDestination:gg,lightbox:a?.enabled?{...o?.lightbox,enabled:!1}:void 0};case mg:return{href:void 0,lightbox:a?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:Kd};case cc:return{href:void 0,linkDestination:Kd,lightbox:void 0}}return{}}function _Q(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function V3e(e){let t=e;return e!==void 0&&t&&(yQ.forEach(r=>{let o=new RegExp("\\b"+r+"\\b","gi");t=t.replace(o,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function Mb(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=V3e(t),{linkTarget:r,rel:o}}function xQ(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function oR(e){return zp.some(t=>e.type.indexOf(t)===0)}function Yd({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var nR=n(N(),1);var W3=n(y(),1);function kQ(e){let{attributes:t,isSelected:r,setAttributes:o,insertBlocksAfter:a,blockProps:i,__unstableLayoutClassNames:l,isContentLocked:s,multiGallerySelection:c}=e,{align:u,columns:p,imageCrop:m}=t;return(0,W3.jsxs)("figure",{...i,className:C(i.className,l,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":m}),children:[i.children,(0,W3.jsx)(Ao,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:a,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,nR.__)("Gallery caption text"),placeholder:(0,nR.__)("Add gallery caption")})]})}var wQ=n(H(),1);function CQ(e,t,r){return(0,wQ.useMemo)(()=>o(),[e,t]);function o(){if(!e||e.length===0)return;let{imageSizes:a}=r(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=a.reduce((p,m)=>{let d=c.sizes?.[m.slug]?.url,f=c.media_details?.sizes?.[m.slug]?.source_url;return{...p,[m.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return a.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var $3=n(H(),1);function SQ(e,t){let[r,o]=(0,$3.useState)([]);return(0,$3.useMemo)(()=>a(),[e,t]);function a(){let i=!1,l=r.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&o([...l,...s]),s.length>0?s:null}}var PQ=n(F(),1),EQ=n(re(),1),TQ=[];function BQ(e){return(0,PQ.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?TQ:t(EQ.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??TQ},[e])}var ys=n(P(),1),QQ=n(F(),1);var Qd=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),a=e;return o.forEach(i=>{a=a?.[i]}),a??r};var DQ=n(NQ(),1);function O3e(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,DQ.getCSSValueFromRawStyle)(Qd(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function F3e(e,t){if(!e||!t||!Array.isArray(t))return e;let r=t.find(o=>o?.name===e);return r?.href?r?.href:e}function LQ(e,t){if(!e||!t)return e;let r=O3e(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url&&(r.url=F3e(r.url,t?._links?.["wp:theme-file"])),r}var MQ={mobile:"480px",tablet:"782px"},zQ=/^(\d+|\d*\.\d+)(px|em|rem)$/,H3e=16;function j3e(e){return"mobile"in e||"tablet"in e}function U3e(e){return!e||typeof e!="object"?{}:j3e(e)?e:e.settings?.viewport??{}}function G3e(e){return typeof e=="string"&&zQ.test(e.trim())}function aR(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(zQ);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*H3e}function iR(e){let t=U3e(e),r={},o={};Object.keys(MQ).forEach(s=>{let c=s,u=t[c],p=aR(u);p!==void 0&&G3e(u)&&(r[c]=u.trim(),o[c]=p)});let a=Object.keys(r);if(!a.length)return{...MQ};if(a.length===1)return r;let i=r.mobile,l=r.tablet;return o.mobile>=o.tablet?{mobile:i}:{mobile:i,tablet:l}}function VQ(e){let t=iR(e),r={};return t.mobile&&(r["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(r["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),r}function q3(e,t,r,{resolveRefs:o=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let a=l=>{Object.keys(l).forEach(s=>{let c=l[s];if(typeof c=="object"&&c!==null)if(c.ref!==void 0)if(typeof c.ref!="string"||c.ref.trim()==="")delete l[s];else{let u=Qd(e,c.ref);u!=null?l[s]=u:delete l[s]}else a(c),Object.keys(c).length===0&&delete l[s]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return o&&a(i),i}var cR="default";function jQ(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===cR)&&(!r||r===cR)}function W3e(e){return jQ(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==cR)}function $3e(e,t){let r=W3e(t);return r.length?Qd(e,r):e}var q3e=new Set(["blocks","variations","css"]),lR=Object.freeze({value:{},sources:{}}),Z3e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function Vp(e){let t=Z3e[e];return t?{...t}:null}function Op(e,t){return!e||!t?null:{styles:e,source:t}}function K3e(e){return e.join(".")}function Y3e(e){return{...e}}function UQ(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function sR(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function Fp(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!q3e.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}UQ(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var OQ=new Set(["backgroundImage"]);function GQ(e,t,r,o,a,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let l of Object.keys(t)){let s=t[l];if(UQ(s))continue;if(sR(s)){if(s.ref.trim()==="")continue;let u=Qd(r,s.ref);if(u==null||sR(u))continue;s=u}let c=[...i,l];if(!OQ.has(l)&&s!==null&&typeof s=="object"&&!Array.isArray(s)&&!sR(s)){let u=e[l]&&typeof e[l]=="object"&&!Array.isArray(e[l])?e[l]:{};e[l]=GQ({...u},s,r,o,a,c)}else e[l]=OQ.has(l)&&s!==null&&typeof s=="object"&&!Array.isArray(s)?{...s}:s,o&&a&&(a[K3e(c)]=Y3e(o))}return e}function Z3(e,t){if(!e)return null;let r=$3e(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var Q3e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function X3e(e){return e.startsWith("elements.")?!1:Q3e.some(t=>e===t||e.startsWith(`${t}.`))}function WQ(e,t){if(!e||typeof e!="object")return;let[r,...o]=t;if(o.length===0){delete e[r];return}let a=e[r];a&&typeof a=="object"&&(WQ(a,o),Object.keys(a).length===0&&delete e[r])}function J3e(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&X3e(r)&&(WQ(e,r.split(".")),delete t[r])}function e4e(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let a=LQ(o,{...t,_links:r??void 0});a!==void 0&&(e.background.backgroundImage=a)}function FQ(e,{blockName:t,variationName:r=null,elements:o=null,viewport:a=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return lR;let l=e.styles,s={viewport:a,pseudoState:i},c=l,u=l.blocks?.[t]??null,p=(o??[]).map(v=>l.elements?.[v]??null).filter(v=>!!v),m=r?q3(e,t,r)??null:null,d=[Op(Fp(c),Vp("root")),...p.map(v=>Op(Fp(v),Vp("element"))),u?Op(Fp(u),Vp("block")):null,m?Op(Fp(m),Vp("blockVariation")):null];jQ(s)||d.push(Op(Fp(Z3(c,s)),Vp("root")),...p.map(v=>Op(Fp(Z3(v,s)),Vp("element"))),u?Op(Fp(Z3(u,s)),Vp("block")):null,m?Op(Fp(Z3(m,s)),Vp("blockVariation")):null);let f=d.filter(Boolean);if(f.length===0)return lR;let h={},g=f.reduce((v,b)=>GQ(v,b.styles,e,b.source,h),{});return J3e(g,h),e4e(g,e,e._links??null),{value:g,sources:h}}var t4e={},HQ=new WeakMap;function $Q(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return FQ(e,t);let o=HQ.get(r);o||(o=new WeakMap,HQ.set(r,o));let a=e?._links??t4e,i=o.get(a);i||(i=new Map,o.set(a,i));let l=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,s=(t.blockName||"")+""+(t.variationName||"")+""+l;if(i.has(s))return i.get(s);let c=FQ(e,t);return i.set(s,c),c}var qQ=n(_N(),1),{lock:ZQ,unlock:det}=(0,qQ.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/global-styles-engine");var vg={};ZQ(vg,{getResponsiveMediaQueries:VQ,getViewportBreakpoints:iR,getViewportBreakpointValueInPixels:aR,resolveStyle:$Q,getVariationStyle:q3});var{getResponsiveMediaQueries:r4e}=j(vg),{globalStylesDataKey:o4e}=j(ys.privateApis),n4e="core/gallery",K3="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";function KQ(e,t){let r=K3;return t&&(r=typeof t=="string"?(0,ys.__experimentalGetGapCSSValue)(t)||K3:(0,ys.__experimentalGetGapCSSValue)(t?.left)||K3),`${e} {
--wp--style--unstable-gallery-gap: ${r==="0"?"0px":r}
}`}function YQ(e){if(Object.hasOwn(e?.spacing||{},"blockGap"))return e.spacing.blockGap}function XQ({style:e,clientId:t}){let r=`#block-${t}`,[o]=(0,ys.useSettings)("viewport"),i=(0,QQ.useSelect)(p=>p(ys.store).getSettings()?.[o4e],[])?.blocks?.[n4e]||{},l=YQ(e),s=i?.spacing?.blockGap??K3,u=KQ(r,l===void 0?s:l);return Object.entries(r4e(o)).forEach(([p,m])=>{let d=YQ(e?.[p]),f=l===void 0?i?.[p]?.spacing?.blockGap:void 0,h=d===void 0?f:d;h!=null&&(u+=`${m}{${KQ(r,h)}}`)}),(0,ys.useStyleOverride)({css:u}),null}var Vb=n(H(),1),J3=n(F(),1),rX=n(P(),1),X3=n(re(),1),oX=n($(),1);var Y3=n(N(),1),Hp="core/attached-media",bg="date",yg="desc",a4e={[Hp]:{title:(0,Y3.__)("Use attached images"),description:(0,Y3.__)("Images attached to the post."),emptyMessage:(0,Y3.__)("Images attached to the post will appear here.")}};function Q3(e){return a4e[e]}var zb=100;function JQ(e,{postId:t}){let{source:r,args:o={}}=e??{};return r===Hp&&t?{parent:t,per_page:zb,media_type:"image",orderby:o.orderBy==="date"||o.orderBy==="title"?o.orderBy:bg,order:o.order==="asc"||o.order==="desc"?o.order:yg}:null}var eX=[];function i4e(e,t){let{sizeSlug:r,linkTo:o,linkTarget:a,aspectRatio:i}=t,l=!!i&&i!=="auto";return{id:e.id,...G3(e,r),...Ab(e,o),...Mb(a,t),sizeSlug:r,caption:e.caption?.raw||"",alt:e.alt_text||"",aspectRatio:l?i:void 0,scale:l?"cover":void 0}}function tX(e,t){return e.map(r=>(0,oX.createBlock)("core/image",i4e(r,t)))}function nX({attributes:e,setAttributes:t,clientId:r,postId:o,postType:a}){let{dynamicContent:i}=e,l=!!a,s=Q3(i?.source),c=i?.args?.orderBy??bg,u=i?.args?.order??yg,{replaceInnerBlocks:p}=(0,J3.useDispatch)(rX.store),m=(0,Vb.useMemo)(()=>i?JQ(i,{postId:o}):null,[i,o]),{dynamicMedia:d,dynamicMediaTotal:f,isResolvingDynamic:h}=(0,J3.useSelect)(E=>{if(!m)return{dynamicMedia:eX,dynamicMediaTotal:0,isResolvingDynamic:!1};let B=["postType","attachment",m];return{dynamicMedia:E(X3.store).getEntityRecords(...B)??eX,dynamicMediaTotal:E(X3.store).getEntityRecordsTotalItems(...B)??0,isResolvingDynamic:!E(X3.store).hasFinishedResolution("getEntityRecords",B)}},[m]),g=f>zb,{sizeSlug:v,linkTo:b,linkTarget:_,aspectRatio:k}=e,x=(0,Vb.useMemo)(()=>({sizeSlug:v,linkTo:b,linkTarget:_,aspectRatio:k}),[v,b,_,k]),w=(0,Vb.useMemo)(()=>tX(d,x),[d,x]),S=(0,Vb.useMemo)(()=>({allowResize:e.allowResize??!1,imageCrop:e.imageCrop,fixedHeight:e.fixedHeight,navigationButtonType:e.navigationButtonType}),[e.allowResize,e.imageCrop,e.fixedHeight,e.navigationButtonType]);function T(){t({dynamicContent:{source:Hp}}),p(r,[])}function I(){p(r,tX(d,x)),t({dynamicContent:void 0})}function D(E,B){let A={...i?.args};delete A.orderBy,delete A.order,E!==void 0&&(E!==bg||B!==yg)&&(A.orderBy=E,A.order=B);let z={...i};Object.keys(A).length?z.args=A:delete z.args,t({dynamicContent:z})}function L(){t({dynamicContent:{source:i.source}})}return{dynamicContent:i,canUseDynamicSource:l,sourceDescriptor:s,hasMoreImagesThanCap:g,dynamicMediaTotal:f,sourceOrderby:c,sourceOrder:u,dynamicMedia:d,dynamicImageBlocks:w,isResolvingDynamic:h,galleryContext:S,enableDynamicMode:T,convertToStatic:I,setSourceOrder:D,resetSource:L}}var hr=n(N(),1),aX=n(H(),1),Jr=n(O(),1),jp=n(P(),1);var jt=n(y(),1),l4e=[{label:(0,hr.__)("Newest to oldest"),value:"date/desc"},{label:(0,hr.__)("Oldest to newest"),value:"date/asc"},{label:(0,hr.__)("A \u2192 Z"),value:"title/asc"},{label:(0,hr.__)("Z \u2192 A"),value:"title/desc"}];function s4e({orderby:e,order:t,onChange:r}){return(0,jt.jsx)(Jr.SelectControl,{label:(0,hr.__)("Order by"),value:`${e}/${t}`,options:l4e,onChange:o=>{let[a,i]=o.split("/");r({orderby:a,order:i})}})}function iX({dynamic:e,dropdownMenuProps:t,hasImages:r}){let{dynamicContent:o,canUseDynamicSource:a,sourceDescriptor:i,sourceOrderby:l,sourceOrder:s,setSourceOrder:c,convertToStatic:u,enableDynamicMode:p,resetSource:m,isResolvingDynamic:d,hasMoreImagesThanCap:f,dynamicMediaTotal:h}=e,g=!!o,[v,b]=(0,aX.useState)(!1);function _(){r?b(!0):p()}return g?(0,jt.jsxs)(Jr.__experimentalToolsPanel,{label:(0,hr.__)("Source"),resetAll:m,dropdownMenuProps:t,children:[(0,jt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,jt.jsx)("p",{className:"wp-block-gallery__source-description",children:i?.description??(0,hr.__)("Dynamic images.")}),(0,jt.jsx)(Jr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:u,disabled:d,accessibleWhenDisabled:!0,children:(0,hr.__)("Convert to individual images")})]}),f&&(0,jt.jsx)(Jr.Notice,{className:"wp-block-gallery__source-notice",status:"warning",isDismissible:!1,children:(0,hr.sprintf)((0,hr.__)("Only the first %1$d of %2$d images will be displayed."),zb,h)}),(0,jt.jsx)(Jr.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,hr.__)("Order by"),hasValue:()=>l!==bg||s!==yg,onDeselect:()=>c(void 0,void 0),children:(0,jt.jsx)(s4e,{orderby:l,order:s,onChange:({orderby:k,order:x})=>c(k,x)})})]}):a?(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Jr.PanelBody,{title:(0,hr.__)("Source"),children:(0,jt.jsx)("div",{className:"wp-block-gallery__source-settings",children:(0,jt.jsx)(Jr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:_,children:(0,hr.__)("Use images attached to the post")})})}),v&&(0,jt.jsx)(Jr.__experimentalConfirmDialog,{isOpen:!0,title:(0,hr.__)("Use images attached to the post?"),__experimentalHideHeader:!1,confirmButtonText:(0,hr.__)("Use attached images"),onConfirm:()=>{p(),b(!1)},onCancel:()=>b(!1),size:"medium",children:(0,hr.__)("The images in this gallery will be replaced, but will remain in the media library.")})]}):null}function c4e({imageBlocks:e}){let{children:t,ref:r,className:o}=(0,jp.__experimentalUseBlockPreview)({blocks:e});return(0,jt.jsx)("div",{ref:r,className:o,style:{display:"contents"},children:t})}function lX({dynamic:e,blockProps:t,innerBlocksProps:r,attributes:o,setAttributes:a,isSelected:i,insertBlocksAfter:l,isContentLocked:s,multiGallerySelection:c}){let{sourceDescriptor:u,dynamicImageBlocks:p,galleryContext:m,isResolvingDynamic:d,convertToStatic:f}=e,h=(0,jp.useBlockEditingMode)(),g=d?(0,hr.__)("Loading images\u2026"):u?.emptyMessage??(0,hr.__)("Dynamic images will appear here.");return(0,jt.jsxs)(jt.Fragment,{children:[h==="default"&&(0,jt.jsx)(jp.BlockControls,{group:"other",children:(0,jt.jsx)(Jr.ToolbarButton,{onClick:f,disabled:d,children:(0,hr.__)("Convert to images")})}),(0,jt.jsxs)("figure",{...t,children:[p.length?(0,jt.jsx)(jp.BlockContextProvider,{value:m,children:(0,jt.jsx)(c4e,{imageBlocks:p})}):(0,jt.jsx)(Jr.Placeholder,{icon:j3,label:(0,hr.__)("Gallery"),instructions:g,children:d&&(0,jt.jsx)(Jr.Spinner,{})}),(0,jt.jsx)(Ao,{attributes:o,setAttributes:a,isSelected:i,insertBlocksAfter:l,showToolbarButton:!c&&!s,className:"blocks-gallery-caption",label:(0,hr.__)("Gallery caption text"),placeholder:(0,hr.__)("Add gallery caption")})]}),r.children]})}var ot=n(y(),1),u4e=8,sX=[{icon:Z1,label:(0,He.__)("Link images to attachment pages"),value:pc,noticeText:(0,He.__)("Attachment Pages")},{icon:cp,label:(0,He.__)("Link images to media files"),value:uc,noticeText:(0,He.__)("Media Files")},{icon:Jm,label:(0,He.__)("Enlarge on click"),value:mg,noticeText:(0,He.__)("Lightbox effect"),infoText:(0,He.__)("Scale images with a lightbox effect")},{icon:av,label:(0,He._x)("None","Media item link option"),value:cc,noticeText:(0,He.__)("None")}],p4e=[{label:(0,He.__)("Icon"),value:"icon"},{label:(0,He.__)("Text"),value:"text"},{label:(0,He.__)("Both"),value:"both"}],uR=["image"],m4e=(0,He.__)("Drag and drop images, upload, or choose from your library."),d4e={name:"core/image"},cX=[];function mX(e){let{setAttributes:t,attributes:r,className:o,clientId:a,isSelected:i,insertBlocksAfter:l,isContentLocked:s,context:c,__unstableLayoutClassNames:u}=e,p=c?.postId,m=c?.postType,d=(0,so.useBlockEditingMode)(),[f,h,g,v]=(0,so.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),b=f?.allowEditing?sX:sX.filter(ae=>ae.value!==mg),{align:_,navigationButtonType:k,columns:x,imageCrop:w,randomOrder:S,linkTarget:T,linkTo:I,sizeSlug:D,aspectRatio:L}=r,{__unstableMarkNextChangeAsNotPersistent:E,replaceInnerBlocks:B,updateBlockAttributes:A,selectBlock:z}=(0,Fb.useDispatch)(so.store),{createSuccessNotice:U,createErrorNotice:q}=(0,Fb.useDispatch)(pX.store),{getBlock:G,getSettings:W,innerBlockImages:V,multiGallerySelection:Q}=(0,Fb.useSelect)(ae=>{let{getBlockName:Ve,getMultiSelectedBlockClientIds:$e,getSettings:Lt,getBlock:tt}=ae(so.store),kr=$e();return{getBlock:tt,getSettings:Lt,innerBlockImages:tt(a)?.innerBlocks??cX,multiGallerySelection:kr.length&&kr.every(ea=>Ve(ea)==="core/gallery")}},[a]),Y=(0,Ob.useMemo)(()=>V?.map(ae=>({clientId:ae.clientId,id:ae.attributes.id,url:ae.attributes.url,attributes:ae.attributes,fromSavedContent:!!ae.originalContent})),[V]),ee=BQ(V),te=SQ(Y,ee),oe=!!Y.length,J=!!r.dynamicContent,ce=nX({attributes:r,setAttributes:t,clientId:a,postId:p,postType:m}),ie=J?ce.dynamicMedia.length:Y.length,we;J?we=I===mg:f?.enabled?we=Y.filter(ae=>ae.attributes?.lightbox?.enabled===void 0||ae.attributes?.lightbox?.enabled===!0).length>0:we=Y.filter(ae=>ae.attributes.lightbox?.enabled).length>0;let le=g?.map(({name:ae,ratio:Ve})=>({label:ae,value:Ve})),de=h?.map(({name:ae,ratio:Ve})=>({label:ae,value:Ve})),ge=[{label:(0,He._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...v?de||[]:[],...le||[]];(0,Ob.useEffect)(()=>{te?.forEach(ae=>{E(),A(ae.clientId,{...me(ae.attributes),id:ae.id,align:void 0})})},[te]);let ne=CQ(J?ce.dynamicMedia:ee,i,W);function me(ae){let Ve=ae.id?ee.find(({id:tt})=>tt===ae.id):null,$e;ae.className&&ae.className!==""&&($e=ae.className);let Lt;return ae.linkTarget||ae.rel?Lt={linkTarget:ae.linkTarget,rel:ae.rel}:Lt=Mb(T,r),{...G3(Ve,D),...Ab(Ve,I,ae?.linkDestination),...Lt,className:$e,sizeSlug:D,caption:ae.caption.length>0?ae.caption:Ve.caption?.raw,alt:ae.alt||Ve.alt_text,aspectRatio:L==="auto"?void 0:L}}function se(ae){let Ve=ae.type;return uR.some($e=>Ve?.indexOf($e)===0)||ae.blob}function Ne(ae){let Ve=Object.prototype.toString.call(ae)==="[object FileList]",$e=Ve?Array.from(ae).map(rt=>rt.url?rt:{blob:(0,pR.createBlobURL)(rt)}):ae;$e.every(se)||q((0,He.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Lt=$e.filter(rt=>rt.url||se(rt)).map(rt=>rt.url?rt:{blob:rt.blob||(0,pR.createBlobURL)(rt)}),tt=Lt.reduce((rt,Sn,zm)=>(rt[Sn.id]=zm,rt),{}),kr=Ve?V:V.filter(rt=>Lt.find(Sn=>Sn.id===rt.attributes.id)),ci=Lt.filter(rt=>!kr.find(Sn=>rt.id===Sn.attributes.id)).map(rt=>(0,uX.createBlock)("core/image",{id:rt.id,blob:rt.blob,url:rt.url,caption:rt.caption,alt:rt.alt}));B(a,kr.concat(ci).sort((rt,Sn)=>tt[rt.attributes.id]-tt[Sn.attributes.id])),ci?.length>0&&z(ci[0].clientId)}function De(ae){q(ae,{type:"snackbar"})}function X(ae){t({linkTo:ae});let Ve={},$e=[];G(a).innerBlocks.forEach(tt=>{$e.push(tt.clientId);let kr=tt.attributes.id?ee.find(({id:ea})=>ea===tt.attributes.id):null;Ve[tt.clientId]=Ab(kr,ae,!1,tt.attributes,f)}),A($e,Ve,{uniqueByBlock:!0});let Lt=[...b].find(tt=>tt.value===ae);U((0,He.sprintf)((0,He.__)("All gallery image links updated to: %s"),Lt.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Ce(ae){t({columns:ae})}function pe(){t({imageCrop:!w})}function ct(){t({randomOrder:!S})}function he(ae){let Ve=ae?"_blank":void 0;t({linkTarget:Ve});let $e={},Lt=[];G(a).innerBlocks.forEach(kr=>{Lt.push(kr.clientId),$e[kr.clientId]=Mb(Ve,kr.attributes)}),A(Lt,$e,{uniqueByBlock:!0});let tt=ae?(0,He.__)("All gallery images updated to open in new tab"):(0,He.__)("All gallery images updated to not open in new tab");U(tt,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function ze(ae){t({sizeSlug:ae});let Ve={},$e=[];G(a).innerBlocks.forEach(tt=>{$e.push(tt.clientId);let kr=tt.attributes.id?ee.find(({id:ea})=>ea===tt.attributes.id):null;Ve[tt.clientId]=xQ(kr,ae)}),A($e,Ve,{uniqueByBlock:!0});let Lt=ne.find(tt=>tt.value===ae);U((0,He.sprintf)((0,He.__)("All gallery image sizes updated to: %s"),Lt?.label??ae),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function Ct(ae){t({aspectRatio:ae});let Ve={},$e=[];G(a).innerBlocks.forEach(tt=>{$e.push(tt.clientId),Ve[tt.clientId]={aspectRatio:ae==="auto"?void 0:ae}}),A($e,Ve,!0);let Lt=ge.find(tt=>tt.value===ae);U((0,He.sprintf)((0,He.__)("All gallery images updated to aspect ratio: %s"),Lt?.label||ae),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Ob.useEffect)(()=>{I||(E(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||cc}))},[I]);let Me=oe&&Y.some(ae=>!!ae.id),Do={addToGallery:!1,disableMediaButtons:Y.some(ae=>!ae.id&&ae.url?.indexOf("blob:")===0),value:{}},Lo=(0,so.useBlockProps)({className:C(o,"has-nested-images",J&&[u,"blocks-gallery-grid",{[`align${_}`]:_,[`columns-${x}`]:x!==void 0,"columns-default":x===void 0,"is-cropped":w}])}),bo=(0,so.useInnerBlocksProps)(Lo,{defaultBlock:d4e,directInsert:!0,orientation:"horizontal",renderAppender:!1,allowedBlocks:J?cX:void 0}),Zo=Z();if(!oe&&!J)return(0,ot.jsxs)("div",{...bo,children:[bo.children,(0,ot.jsx)(so.MediaPlaceholder,{handleUpload:!1,icon:j3,labels:{title:(0,He.__)("Gallery"),instructions:m4e},onSelect:Ne,allowedTypes:uR,multiple:!0,onError:De,...Do,children:d==="default"&&(0,ot.jsx)(St.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:ce.enableDynamicMode,children:Q3(Hp).title})})]});let Jn=I&&I!=="none";return(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(so.InspectorControls,{children:[(0,ot.jsx)(iX,{dynamic:ce,dropdownMenuProps:Zo,hasImages:oe}),(0,ot.jsxs)(St.__experimentalToolsPanel,{label:(0,He.__)("Settings"),resetAll:()=>{t({navigationButtonType:"icon",columns:void 0,imageCrop:!0,randomOrder:!1}),Ct("auto"),D!==Lb&&ze(Lb),T&&he(!1)},dropdownMenuProps:Zo,children:[ie>1&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Columns"),hasValue:()=>!!x&&x!==ie,onDeselect:()=>Ce(void 0),children:(0,ot.jsx)(St.RangeControl,{label:(0,He.__)("Columns"),value:x||U3(ie),onChange:Ce,min:1,max:Math.min(u4e,ie),required:!0})}),ne?.length>0&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Resolution"),hasValue:()=>D!==Lb,onDeselect:()=>ze(Lb),children:(0,ot.jsx)(St.SelectControl,{label:(0,He.__)("Resolution"),help:(0,He.__)("Select the size of the source images."),value:D,options:ne,onChange:ze,hideCancelButton:!0})}),(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Crop images to fit"),hasValue:()=>!w,onDeselect:()=>t({imageCrop:!0}),children:(0,ot.jsx)(St.ToggleControl,{label:(0,He.__)("Crop images to fit"),checked:!!w,onChange:pe})}),(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Randomize order"),hasValue:()=>!!S,onDeselect:()=>t({randomOrder:!1}),children:(0,ot.jsx)(St.ToggleControl,{label:(0,He.__)("Randomize order"),checked:!!S,onChange:ct})}),Jn&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,He.__)("Open images in new tab"),hasValue:()=>!!T,onDeselect:()=>he(!1),children:(0,ot.jsx)(St.ToggleControl,{label:(0,He.__)("Open images in new tab"),checked:T==="_blank",onChange:he})}),ge.length>1&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{hasValue:()=>!!L&&L!=="auto",label:(0,He.__)("Aspect ratio"),onDeselect:()=>Ct("auto"),isShownByDefault:!0,children:(0,ot.jsx)(St.SelectControl,{label:(0,He.__)("Aspect ratio"),help:(0,He.__)("Set a consistent aspect ratio for all images in the gallery."),value:L,options:ge,onChange:Ct})}),f?.allowEditing&&we&&(0,ot.jsx)(St.__experimentalToolsPanelItem,{label:(0,He.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>k!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,ot.jsx)(St.__experimentalToggleGroupControl,{label:(0,He.__)("Navigation button type"),value:k,onChange:ae=>t({navigationButtonType:ae}),isBlock:!0,help:(0,He.__)("Adjust the appearance of buttons in the lightbox."),children:p4e.map(ae=>(0,ot.jsx)(St.__experimentalToggleGroupControlOption,{value:ae.value,label:ae.label},ae.value))})})]})]}),(0,ot.jsx)(so.BlockControls,{group:"block",children:(0,ot.jsx)(St.ToolbarDropdownMenu,{icon:fi,label:(0,He.__)("Link"),children:({onClose:ae})=>(0,ot.jsx)(St.MenuGroup,{children:b.map(Ve=>{let $e=I===Ve.value;return(0,ot.jsx)(St.MenuItem,{isSelected:$e,className:C("components-dropdown-menu__menu-item",{"is-active":$e}),iconPosition:"left",icon:Ve.icon,onClick:()=>{X(Ve.value),ae()},role:"menuitemradio",info:Ve.infoText,children:Ve.label},Ve.value)})})})}),(0,ot.jsxs)(ot.Fragment,{children:[!Q&&!J&&(0,ot.jsx)(so.BlockControls,{group:"other",children:(0,ot.jsx)(so.MediaReplaceFlow,{allowedTypes:uR,handleUpload:!1,onSelect:Ne,name:(0,He.__)("Add"),multiple:!0,mediaIds:Y.filter(ae=>ae.id).map(ae=>ae.id),addToGallery:Me,variant:"toolbar"})}),(0,ot.jsx)(XQ,{style:r.style,clientId:a})]}),J?(0,ot.jsx)(lX,{...e,dynamic:ce,blockProps:Lo,innerBlocksProps:bo,multiGallerySelection:Q}):(0,ot.jsx)(kQ,{...e,isContentLocked:s,images:Y,blockProps:bo,insertBlocksAfter:l,multiGallerySelection:Q})]})}var e4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",usesContext:["galleryId","postId","postType"],allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},dynamicContent:{type:"object"},navigationButtonType:{type:"string",default:"icon",enum:["icon","text","both"]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption",role:"content"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1},aspectRatio:{type:"string",default:"auto"}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight",navigationButtonType:"navigationButtonType"},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,radius:!0}},html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:{sides:["horizontal","vertical"],__experimentalDefault:"var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )"},__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Cu=n(P(),1),t4=n(y(),1);function dX({attributes:e}){let{caption:t,columns:r,imageCrop:o,dynamicContent:a}=e,i=!Cu.RichText.isEmpty(t)&&(0,t4.jsx)(Cu.RichText.Content,{tagName:"figcaption",className:C("blocks-gallery-caption",(0,Cu.__experimentalGetElementClassName)("caption")),value:t});if(a)return i||null;let l=C("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),s=Cu.useBlockProps.save({className:l}),c=Cu.useInnerBlocksProps.save(s);return(0,t4.jsxs)("figure",{...c,children:[c.children,i]})}var kl=n($(),1),fX=n(Ar(),1),mR=n(bu(),1);var h4e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],hX=e=>e.map(t=>(0,kl.createBlock)(t.name,t.attributes,hX(t.innerBlocks||[])));function g4e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:a})=>(0,kl.createBlock)("core/image",{url:r,id:o?parseInt(o,10):null,alt:a,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,mR.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",g4e);function v4e(e,t){let o=(Array.isArray(t)?t:[t]).find(a=>a.name==="core/gallery"&&a.innerBlocks.length>0&&!a.attributes.images?.length>0&&!e.name.includes("core/"));if(o){let a=o.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=a.map(({id:l})=>l);o.attributes.images=a,o.attributes.ids=i}return e}(0,mR.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",v4e);var b4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:r}=e[0];t=e.every(i=>i.align===t)?t:void 0,r=e.every(i=>i.sizeSlug===r)?r:void 0;let a=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,kl.createBlock)("core/image",i)));return(0,kl.createBlock)("core/gallery",{align:t,sizeSlug:r},a)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:o,size:a}}){let i=h4e(e).map(c=>parseInt(c,10)),l=cc;return r==="post"?l=pc:r==="file"&&(l=uc),(0,kl.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:o==="rand",...a&&{sizeSlug:a}},i.map(c=>(0,kl.createBlock)("core/image",{id:c,...a&&{sizeSlug:a}})))},isMatch({named:e}){return e.ids!==void 0}},{type:"files",priority:1,isMatch(e){return e.length!==1&&e.every(t=>t.type.indexOf("image/")===0)},transform(e){let t=e.map(r=>(0,kl.createBlock)("core/image",{blob:(0,fX.createBlobURL)(r)}));return(0,kl.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:o,caption:a,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:p,linkDestination:m,linkTarget:d,anchor:f,className:h}})=>(0,kl.createBlock)("core/image",{align:e,url:r,alt:o,caption:a,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:p,linkDestination:m,linkTarget:d,anchor:f,className:h})):(0,kl.createBlock)("core/image",{align:e})},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let{allowResize:r,aspectRatio:o,caption:a,columns:i,fixedHeight:l,ids:s,imageCrop:c,images:u,linkTarget:p,linkTo:m,navigationButtonType:d,randomOrder:f,shortCodeTransforms:h,sizeSlug:g,...v}=e;return(0,kl.createBlock)("core/group",{...v,layout:{type:"grid",columnCount:i??U3(t.length)}},hX(t))}}]},gX=b4e;var dR=n(N(),1);var y4e=[{name:"dynamic-gallery",title:(0,dR.__)("Dynamic Gallery"),description:(0,dR.__)("Display images from a source, such as those attached to the current post."),attributes:{dynamicContent:{source:Hp}},isActive:e=>!!e.dynamicContent,scope:[]}],vX=y4e;var{name:bX}=e4,yX={icon:nv,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:gX,variations:vX,edit:mX,save:dX,deprecated:gQ},_4e=()=>R({name:bX,metadata:e4,settings:yX});var bR={};K(bR,{init:()=>I4e,metadata:()=>o4,name:()=>l4,settings:()=>LX});var i4=n(N(),1);var Rn=n(P(),1),Ii=n(y(),1),hR=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:r,customBackgroundColor:o,...a}=e;return{...a,style:t}},x4e=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,Ii.jsx)(e,{...Rn.useInnerBlocksProps.save(Rn.useBlockProps.save())})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate:e=>{let{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){let{tagName:t}=e;return(0,Ii.jsx)(t,{...Rn.useBlockProps.save(),children:(0,Ii.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Ii.jsx)(Rn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:hR,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:a}=e,i=(0,Rn.getColorClassName)("background-color",t),l=(0,Rn.getColorClassName)("color",o),s=C(i,l,{"has-text-color":o||a,"has-background":t||r});return(0,Ii.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:a},children:(0,Ii.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Ii.jsx)(Rn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:hR,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:a}=e,i=(0,Rn.getColorClassName)("background-color",t),l=(0,Rn.getColorClassName)("color",o),s=C(i,{"has-text-color":o||a,"has-background":t||r});return(0,Ii.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:a},children:(0,Ii.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Ii.jsx)(Rn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:hR,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,Rn.getColorClassName)("background-color",t),a=C(o,{"has-background":t||r});return(0,Ii.jsx)("div",{className:a,style:{backgroundColor:o?void 0:r},children:(0,Ii.jsx)(Rn.InnerBlocks.Content,{})})}}],_X=x4e;var r4=n(F(),1),Di=n(P(),1),TX=n(H(),1),PX=n(N(),1);var xX=n(F(),1),kX=n(P(),1),gR=n(N(),1),wX=n($(),1),$a=n(O(),1),Hb=n(H(),1),Wa=n(y(),1),k4e=(e="group")=>({group:(0,Wa.jsx)($a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wa.jsx)($a.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,Wa.jsx)($a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wa.jsx)($a.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,Wa.jsx)($a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wa.jsx)($a.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,Wa.jsx)($a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Wa.jsx)($a.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})})?.[e];function CX({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:o,backgroundColor:a,textColor:i,fontSize:l}=e,[s,c]=(0,Hb.useState)(!r&&!a&&!l&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,Hb.useEffect)(()=>{(r||a||l||i||o||t==="flex")&&c(!1)},[a,l,i,o,t,r]),[s,c]}function w4e({name:e,onSelect:t}){let r=(0,xX.useSelect)(a=>a(wX.store).getBlockVariations(e,"block"),[e]),o=(0,kX.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Hb.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,Wa.jsx)("div",{...o,children:(0,Wa.jsx)($a.Placeholder,{instructions:(0,gR.__)("Group blocks together. Select a layout:"),children:(0,Wa.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,gR.__)("Block variations"),children:r.map(a=>(0,Wa.jsx)("li",{children:(0,Wa.jsx)($a.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:k4e(a.name),iconSize:48,onClick:()=>t(a),className:"wp-block-group-placeholder__variation-button",label:`${a.title}: ${a.description}`})},a.name))})})})}var SX=w4e;var Ni=n(y(),1),{HTMLElementControl:C4e}=j(Di.privateApis);function S4e({tagName:e,onSelectTagName:t,clientId:r}){return(0,Ni.jsx)(Di.InspectorControls,{group:"advanced",children:(0,Ni.jsx)(C4e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,PX.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})}function T4e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:a,themeSupportsLayout:i}=(0,r4.useSelect)(x=>{let{getBlock:w,getSettings:S}=x(Di.store),T=w(o);return{hasInnerBlocks:!!(T&&T.innerBlocks.length),themeSupportsLayout:S()?.supportsLayout}},[o]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:p="default"}=u,m=i||p==="flex"||p==="grid",d=(0,TX.useRef)(),f=(0,Di.useBlockProps)({ref:d}),[h,g]=CX({attributes:e,usedLayoutType:p,hasInnerBlocks:a}),v;h?v=!1:a||(v=Di.InnerBlocks.ButtonBlockAppender);let b=(0,Di.useInnerBlocksProps)(m?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:v}),{selectBlock:_}=(0,r4.useDispatch)(Di.store),k=x=>{r(x.attributes),_(o,-1),g(!1)};return(0,Ni.jsxs)(Ni.Fragment,{children:[(0,Ni.jsx)(S4e,{tagName:l,onSelectTagName:x=>r({tagName:x}),clientId:o}),h&&(0,Ni.jsxs)("div",{children:[b.children,(0,Ni.jsx)(SX,{name:t,onSelect:k})]}),m&&!h&&(0,Ni.jsx)(l,{...b}),!m&&!h&&(0,Ni.jsx)(l,{...f,children:(0,Ni.jsx)("div",{...b})})]})}var EX=T4e;var o4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0,minWidth:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var n4=n(P(),1),BX=n(y(),1);function IX({attributes:{tagName:e}}){return(0,BX.jsx)(e,{...n4.useInnerBlocksProps.save(n4.useBlockProps.save())})}var a4=n($(),1),E4e={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((a,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(a)?l:a},void 0),o=e.map(a=>(0,a4.cloneSanitizedBlock)(a));return(0,a4.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},NX=E4e;var An=n(N(),1);var vR={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,An.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,An.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,An.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,An.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,An.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,An.__)("Six.")}}]},B4e=[{name:"group",title:(0,An.__)("Group"),description:(0,An.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:ed},{name:"group-row",title:(0,An._x)("Row","single horizontal line"),description:(0,An.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:mI,example:vR},{name:"group-stack",title:(0,An.__)("Stack"),description:(0,An.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:TI,example:vR},{name:"group-grid",title:(0,An.__)("Grid"),description:(0,An.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:$l,example:vR}],DX=B4e;var{name:l4}=o4,LX={icon:ed,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,i4.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,i4.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,i4.__)("Read more")}}],viewportWidth:600},transforms:NX,edit:EX,save:IX,deprecated:_X,variations:DX},I4e=()=>R({name:l4,metadata:o4,settings:LX});var wR={};K(wR,{init:()=>q4e,metadata:()=>p4,name:()=>d4,settings:()=>f4});var Gp=n(N(),1),kg=n($(),1);var da=n(P(),1);var dc=n(y(),1),yR={className:!1,anchor:!0},s4={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},_g=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},RX=["left","right","center"],xg=e=>{let{align:t,...r}=e;return RX.includes(t)?{...r,textAlign:t}:e},N4e={supports:yR,attributes:{...s4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(_g(xg(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:a,customTextColor:i}=e,l="h"+r,s=(0,da.getColorClassName)("color",a),c=C({[s]:s});return(0,dc.jsx)(da.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:o})}},D4e={attributes:{...s4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(_g(xg(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:a,textColor:i}=e,l="h"+a,s=(0,da.getColorClassName)("color",i),c=C({[s]:s,[`has-text-align-${t}`]:t});return(0,dc.jsx)(da.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})},supports:yR},L4e={supports:yR,attributes:{...s4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>be(_g(xg(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:a,textColor:i}=e,l="h"+a,s=(0,da.getColorClassName)("color",i),c=C({[s]:s,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,dc.jsx)(da.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})}},R4e={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:s4,isEligible:({align:e})=>RX.includes(e),migrate:e=>be(_g(xg(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,a="h"+o,i=C({[`has-text-align-${t}`]:t});return(0,dc.jsx)(a,{...da.useBlockProps.save({className:i}),children:(0,dc.jsx)(da.RichText.Content,{value:r})})}},A4e={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:o}=e,a="h"+o,i=C({[`has-text-align-${t}`]:t});return(0,dc.jsx)(a,{...da.useBlockProps.save({className:i}),children:(0,dc.jsx)(da.RichText.Content,{value:r})})},migrate:e=>be(_g(xg(e)))},M4e={supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r,level:o}=e,a="h"+o,i=C({[`has-text-align-${t}`]:t});return(0,dc.jsx)(a,{...da.useBlockProps.save({className:i}),children:(0,dc.jsx)(da.RichText.Content,{value:r})})},migrate:e=>be(_g(xg(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},z4e=[M4e,A4e,R4e,L4e,D4e,N4e],AX=z4e;var zX=n(N(),1),VX=n(H(),1),u4=n(F(),1),Xd=n(P(),1);var MX=n(Db(),1),_R={},V4e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},O4e=e=>(0,MX.default)(V4e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),c4=(e,t)=>{let r=O4e(t);if(r==="")return null;delete _R[e];let o=r,a=0;for(;Object.values(_R).includes(o);)a+=1,o=r+"-"+a;return o},xR=(e,t)=>{_R[e]=t};var OX=n(y(),1);function F4e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:a,style:i,clientId:l}=e;wt(e);let{content:s,level:c,placeholder:u,anchor:p}=t,m="h"+c,d=(0,Xd.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,u4.useSelect)(v=>{let{getGlobalBlockCount:b,getSettings:_}=v(Xd.store);return{canGenerateAnchors:!!_().generateAnchors||b("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,u4.useDispatch)(Xd.store);return(0,VX.useEffect)(()=>{if(f)return!p&&s&&(h(),r({anchor:c4(l,s)})),xR(l,p),()=>xR(l,null)},[p,s,l,f,r,h]),(0,OX.jsx)(Xd.RichText,{identifier:"content",tagName:m,value:s,onChange:v=>{let b={content:v};f&&(!p||!v||c4(l,s)===p)&&(b.anchor=c4(l,v)),r(b)},onMerge:o,onReplace:a,onRemove:a?()=>a([]):void 0,placeholder:u||(0,zX.__)("Heading"),...d})}var FX=F4e;var p4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var m4=n(P(),1),kR=n(y(),1);function HX({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,kR.jsx)(o,{...m4.useBlockProps.save(),children:(0,kR.jsx)(m4.RichText.Content,{value:t})})}var Up=n($(),1);function jX(e){return Number(e.substr(1))}var j4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:o,style:a}=t,i=a?.typography?.textAlign;return(0,Up.createBlock)("core/heading",{...mu(t,"core/heading",({content:l})=>({content:l})),content:r,anchor:o,...i&&{style:{typography:{textAlign:i}}}})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let r={children:e,attributes:t?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){let t=(0,Up.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=jX(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,Up.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,Up.createBlock)("core/heading",{level:e,content:t})}})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,Up.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:o}=t,a=o?.typography?.textAlign;return(0,Up.createBlock)("core/paragraph",{...mu(t,"core/paragraph",({content:i})=>({content:i})),content:r,...a&&{style:{typography:{textAlign:a}}}})})}]},UX=j4e;var jb=n(N(),1);var U4e=[hE,vE,yE,xE,wE,SE],G4e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,jb.sprintf)((0,jb.__)("Heading %d"),e),description:(0,jb.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:U4e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],GX=G4e;var{fieldsKey:W4e,formKey:$4e}=j(kg.privateApis),{name:d4}=p4,f4={icon:PE,example:{attributes:{content:(0,Gp.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:o}=e,a=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(a||i))return a||r;if(t==="breadcrumb"&&a)return a;if(t==="accessibility")return i?(0,Gp.sprintf)((0,Gp.__)("Level %1$s. %2$s"),o,r):(0,Gp.sprintf)((0,Gp.__)("Level %s. Empty."),o)},transforms:UX,deprecated:AX,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:FX,save:HX,variations:GX};window.__experimentalContentOnlyInspectorFields&&(f4[W4e]=[{id:"content",label:(0,Gp.__)("Content"),type:"text",Edit:"rich-text"}],f4[$4e]={fields:["content"]});var q4e=()=>{let e=R({name:d4,metadata:p4,settings:f4}),t=(0,kg.getBlockType)(d4)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,kg.unregisterBlockVariation)(d4,`h${r}`)}),e};var CR={};K(CR,{init:()=>Y4e,metadata:()=>h4,name:()=>JX,settings:()=>eJ});var XX=n(N(),1);var h4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string",role:"content"},opensInNewTab:{type:"boolean",default:!1},description:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var Wp=n(P(),1),fa=n(O(),1),qa=n(N(),1),WX=n(F(),1),$X=n(re(),1);var qX=n(Tn(),1);var Co=n(y(),1),K4e=e=>e.preventDefault();function ZX({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:a,frontPageId:i,frontPageTemplateId:l}=(0,WX.useSelect)(g=>{let{getEntityRecord:v,getDefaultTemplateId:b,canUser:_}=g($X.store),k=v("root","__unstableBase")?.home,w=_("read",{kind:"root",name:"site"})?v("root","site"):null,S=w?.show_on_front==="page"?w?.page_on_front:null,T=S?null:b({slug:"front-page"});return{homeUrl:k,onNavigateToEntityRecord:g(Wp.store).getSettings().onNavigateToEntityRecord,frontPageId:S,frontPageTemplateId:T}},[]),{textColor:s,backgroundColor:c,style:u}=r,{label:p,opensInNewTab:m,description:d}=e,f=Z(),h=(0,Wp.useBlockProps)({className:C("wp-block-navigation-item",{"has-text-color":!!s||!!u?.color?.text,[`has-${s}-color`]:!!s,"has-background":!!c||!!u?.color?.background,[`has-${c}-background-color`]:!!c}),style:{color:u?.color?.text,backgroundColor:u?.color?.background}});return(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)(Wp.InspectorControls,{group:"content",children:(0,Co.jsxs)(fa.__experimentalToolsPanel,{label:(0,qa.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,Co.jsx)(fa.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,qa.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Co.jsx)(fa.TextControl,{label:(0,qa.__)("Text"),value:p?(0,qX.__unstableStripHTML)(p):"",onChange:g=>{t({label:g})},autoComplete:"off"})}),(0,Co.jsx)(fa.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,qa.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Co.jsx)(fa.CheckboxControl,{label:(0,qa.__)("Open in new tab"),checked:m,onChange:g=>t({opensInNewTab:g})})}),a&&(i||l)&&(0,Co.jsx)(fa.Button,{variant:"secondary",onClick:()=>{a(i?{postId:i,postType:"page"}:{postId:l,postType:"wp_template"})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qa.__)("Edit")}),o&&(0,Co.jsx)(fa.Button,{variant:"secondary",href:o,target:"_blank",icon:Q1,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qa.__)("View")}),(0,Co.jsx)(fa.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,qa.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,Co.jsx)(fa.TextareaControl,{label:(0,qa.__)("Description"),value:d||"",onChange:g=>{t({description:g})},help:(0,qa.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,Co.jsx)("div",{...h,children:(0,Co.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:K4e,children:[(0,Co.jsx)(Wp.RichText,{identifier:"label",className:"wp-block-home-link__label",value:p??(0,qa.__)("Home"),onChange:g=>{t({label:g})},"aria-label":(0,qa.__)("Home link text"),placeholder:(0,qa.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),d&&(0,Co.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]})})]})}var KX=n(P(),1),YX=n(y(),1);function QX(){return(0,YX.jsx)(KX.InnerBlocks.Content,{})}var{name:JX}=h4,eJ={icon:BE,edit:ZX,save:QX,example:{attributes:{label:(0,XX._x)("Home Link","block example")}}},Y4e=()=>R({name:JX,metadata:h4,settings:eJ});var PR={};K(PR,{init:()=>tCe,metadata:()=>b4,name:()=>hJ,settings:()=>gJ});var fJ=n(N(),1);var Cg=n(N(),1),v4=n(H(),1),Za=n(P(),1),ef=n($(),1),Sg=n(F(),1),cJ=n(xd(),1),_s=n(O(),1);var Li=n(N(),1),Ub=n(H(),1),lJ=n(F(),1),un=n(O(),1),wg=n(P(),1);var sJ=n(ve(),1);var tJ=n(H(),1),g4=n(P(),1),rJ=n(O(),1),oJ=n(F(),1),nJ=n(N(),1),Jd=n(y(),1),Q4e=`
html,body,:root {
margin: 0 !important;
padding: 0 !important;
overflow: visible !important;
min-height: auto !important;
}
`;function aJ({content:e,isSelected:t}){let r=(0,oJ.useSelect)(a=>a(g4.store).getSettings().styles,[]),o=(0,tJ.useMemo)(()=>[Q4e,...(0,g4.transformStyles)((r??[]).filter(a=>a.css))],[r]);return(0,Jd.jsxs)(Jd.Fragment,{children:[(0,Jd.jsx)(rJ.SandBox,{html:e,styles:o,title:(0,nJ.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Jd.jsx)("div",{className:"block-library-html__preview-overlay"})]})}function iJ(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let r=t.body.querySelector('style[data-wp-block-html="css"]'),o=r?r.textContent.trim():"";r&&r.remove();let a=t.body.querySelector('script[data-wp-block-html="js"]'),i=a?a.textContent.trim():"";return a&&a.remove(),{html:t.body.innerHTML.trim(),css:o,js:i}}function SR({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
${t}
</style>`),r.trim()&&o.push(`<script data-wp-block-html="js">
${r}
<\/script>`),e.trim()&&o.push(e),o.join(`
`)}var Et=n(y(),1),{Tabs:$p}=j(un.privateApis);function TR({onRequestClose:e,content:t,onUpdate:r}){let{html:o,css:a,js:i}=iJ(t),[l,s]=(0,Ub.useState)(o),[c,u]=(0,Ub.useState)(a),[p,m]=(0,Ub.useState)(i),[d,f]=(0,Ub.useState)(!1),h=(0,sJ.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:g}=(0,lJ.useSelect)(x=>({canUserUseUnfilteredHTML:x(wg.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),v=!g&&(a.trim()||i.trim()),b=()=>{r(SR({html:l,css:g?c:"",js:g?p:""}))},_=()=>{b(),e()},k=()=>{f(x=>!x)};return(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)(un.Modal,{title:(0,Li.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:d,__experimentalHideHeader:!0,children:(0,Et.jsx)($p,{orientation:"horizontal",defaultTabId:"html",children:(0,Et.jsxs)(un.__experimentalVStack,{expanded:!0,children:[(0,Et.jsxs)(un.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Et.jsx)("div",{children:(0,Et.jsxs)($p.TabList,{children:[(0,Et.jsx)($p.Tab,{tabId:"html",children:"HTML"}),g&&(0,Et.jsx)($p.Tab,{tabId:"css",children:"CSS"}),g&&(0,Et.jsx)($p.Tab,{tabId:"js",children:(0,Li.__)("JavaScript")})]})}),!h&&(0,Et.jsx)("div",{children:(0,Et.jsx)(un.Button,{__next40pxDefaultSize:!0,icon:d?CI:Jm,label:(0,Li.__)("Enable/disable fullscreen"),onClick:k,variant:"tertiary"})})]}),v&&(0,Et.jsx)(un.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,Li.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Et.jsxs)(un.Flex,{direction:h?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Et.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Et.jsx)($p.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Et.jsx)(wg.PlainText,{value:l,onChange:s,placeholder:(0,Li.__)("Write HTML\u2026"),"aria-label":(0,Li.__)("HTML"),className:"block-library-html__modal-editor",async:!0})}),g&&(0,Et.jsx)($p.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Et.jsx)(wg.PlainText,{value:c,onChange:u,placeholder:(0,Li.__)("Write CSS\u2026"),"aria-label":(0,Li.__)("CSS"),className:"block-library-html__modal-editor",async:!0})}),g&&(0,Et.jsx)($p.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Et.jsx)(wg.PlainText,{value:p,onChange:m,placeholder:(0,Li.__)("Write JavaScript\u2026"),"aria-label":(0,Li.__)("JavaScript"),className:"block-library-html__modal-editor",async:!0})})]}),(0,Et.jsx)("div",{className:"block-library-html__preview",children:(0,Et.jsx)(aJ,{content:SR({html:l,css:c,js:p})})})]}),(0,Et.jsxs)(un.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Et.jsx)(un.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Li.__)("Cancel")}),(0,Et.jsx)(un.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:_,children:(0,Li.__)("Update")})]})]})})})})}var Mn=n(y(),1),{InnerContent:X4e}=j(Za.privateApis);function uJ({clientId:e,attributes:t}){let[r,o]=(0,v4.useState)(!1),a=(0,Sg.useRegistry)(),{updateBlock:i,replaceInnerBlocks:l}=(0,Sg.useDispatch)(Za.store),s=(0,Sg.useSelect)(p=>{let m=p(Za.store).getBlock(e);return m?(0,ef.getBlockContent)(m):""},[e]),c=(0,Za.useBlockProps)({className:"block-library-html__edit"}),u=p=>{if(p===s)return;let[m]=(0,ef.parse)(`<!-- wp:html -->
${p}
<!-- /wp:html -->`),d=m?.innerBlocks??[],f=a.select(Za.store).getBlocks(e),h=f.length===d.length&&f.every((g,v)=>(0,ef.serialize)(g)===(0,ef.serialize)(d[v]));a.batch(()=>{i(e,{innerContent:m?.innerContent??(p?[p]:[])}),h||l(e,d,!1)})};return(0,v4.useEffect)(()=>{t.content&&((0,cJ.default)("The content attribute on the Custom HTML block",{since:"7.1",alternative:"inner content"}),i(e,{attributes:{content:void 0},innerContent:[t.content]}))},[t.content]),s?.trim()?(0,Mn.jsxs)("div",{...c,children:[(0,Mn.jsx)(Za.BlockControls,{children:(0,Mn.jsx)(_s.ToolbarGroup,{children:(0,Mn.jsx)(_s.ToolbarButton,{onClick:()=>o(!0),children:(0,Cg.__)("Edit code")})})}),(0,Mn.jsx)(Za.InspectorControls,{children:(0,Mn.jsx)(_s.__experimentalVStack,{className:"block-library-html__edit-code",expanded:!0,children:(0,Mn.jsx)(_s.Button,{className:"block-library-html__edit-code-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(!0),children:(0,Cg.__)("Edit code")})})}),(0,Mn.jsx)(X4e,{clientId:e}),r&&(0,Mn.jsx)(TR,{onRequestClose:()=>o(!1),content:s,onUpdate:u})]}):(0,Mn.jsxs)("div",{...c,children:[(0,Mn.jsx)(_s.Placeholder,{icon:(0,Mn.jsx)(Za.BlockIcon,{icon:G1}),label:(0,Cg.__)("Custom HTML"),instructions:(0,Cg.__)("Add custom HTML code and preview how it looks."),children:(0,Mn.jsx)(_s.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>o(!0),children:(0,Cg.__)("Edit HTML")})}),r&&(0,Mn.jsx)(TR,{onRequestClose:()=>o(!1),content:s,onUpdate:u})]})}var b4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",role:"local"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0},listView:!0,customCSS:!1,visibility:!1},editorStyle:"wp-block-html-editor"};function pJ(){return null}var y4=n($(),1),mJ=n(es(),1),eCe={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>{let t=(0,mJ.create)({html:e}).text,[r]=(0,y4.parse)(`<!-- wp:html -->
${t}
<!-- /wp:html -->`);return r??(0,y4.createBlock)("core/html",{},[],[t])}}]},dJ=eCe;var{name:hJ}=b4,gJ={icon:NE,example:{innerContent:["<marquee>"+(0,fJ.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"]},edit:uJ,save:pJ,transforms:dJ},tCe=()=>R({name:hJ,metadata:b4,settings:gJ});var LR={};K(LR,{init:()=>sCe,metadata:()=>k4,name:()=>IJ,settings:()=>NJ});var Ai=n(N(),1),ha=n(O(),1);var pn=n(P(),1),CJ=n(H(),1),Eg=n(M(),1),SJ=n(F(),1),TJ=n(re(),1);var x4=n(N(),1),Pg=n(O(),1);var Wb=n(H(),1),wJ=n(ve(),1),BR=n(F(),1),IR=n(re(),1);var ER=n(N(),1),bJ=n(O(),1),yJ=n(ve(),1),_4=n(H(),1),_J=n(Tn(),1);var fc=n(y(),1),vJ=20;function xJ({icons:e,onChange:t,value:r}){let o=(0,yJ.useAsyncList)(e,{step:vJ}),a=(0,_4.useRef)(),i=e?.findIndex(s=>s.name===r)??-1,l=i>=0&&(o.length>=i+vJ||o.length===e.length);return(0,_4.useLayoutEffect)(()=>{let s=a.current;!l||!s||(0,_J.getScrollContainer)(s)?.scrollTop||s.scrollIntoView({block:"center"})},[l]),(0,fc.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,fc.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,ER.__)("Icon library"),children:o.map(s=>(0,fc.jsxs)(bJ.Button,{ref:s.name===r?a:void 0,className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(s.name),variant:s.name===r?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,fc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,fc.jsx)(_o,{html:s.content})}),(0,fc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:s.label})]},s.name))}):(0,fc.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,fc.jsx)("p",{children:(0,ER.__)("No results found.")})})})}var kJ=n(Db(),1);function Tg(e=""){return e=(0,kJ.default)(e),e=e.trim().toLowerCase(),e}function rCe(e,t){let r=Tg(t),o=Tg(e.title),a=0;return r===o?a+=30:o.startsWith(r)?a+=20:r.split(" ").every(s=>o.includes(s))&&(a+=10),a}function Gb(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,rCe(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,a])=>a-o),r.map(([o])=>o)}var Ri=n(y(),1);function NR({onClose:e,value:t,onChange:r}){let[o,a]=(0,Wb.useState)(""),[i,l]=(0,Wb.useState)(null),s=(0,wJ.useDebounce)(a,300),c=(0,BR.useSelect)(h=>h(IR.store).getEntityRecords("root","iconCollection"),[]),u=t?.split("/")[0],p=i??(c?.some(({slug:h})=>h===u)?u:c?.[0]?.slug)??null,{icons:m,hasResolvedIcons:d}=(0,BR.useSelect)(h=>{if(p===null)return{icons:null,hasResolvedIcons:!1};let g=p===""?{}:{collection:p},{getEntityRecords:v,hasFinishedResolution:b}=h(IR.store);return{icons:v("root","icon",g),hasResolvedIcons:b("getEntityRecords",["root","icon",g])}},[p]),f=(0,Wb.useMemo)(()=>{if(!m)return[];if(o){let h=Tg(o);return m.filter(g=>{let v=Tg(g.name),b=Tg(g.label);return v.includes(h)||b.includes(h)})}return m},[o,m]);return(0,Ri.jsx)(Pg.Modal,{className:"wp-block-icon__inserter-modal",title:(0,x4.__)("Icon library"),onRequestClose:e,isFullScreen:!0,children:(0,Ri.jsxs)(kp.Root,{className:"wp-block-icon__inserter",orientation:"vertical",value:p,onValueChange:l,children:[(0,Ri.jsxs)(_p,{direction:"column",gap:"lg",className:"wp-block-icon__inserter-sidebar",children:[(0,Ri.jsx)(Pg.SearchControl,{value:o,onChange:s}),(0,Ri.jsxs)(kp.List,{children:[(0,Ri.jsx)(kp.Tab,{value:"",children:(0,x4.__)("All")}),c?.map(h=>(0,Ri.jsx)(kp.Tab,{value:h.slug,children:h.label},h.slug))]})]}),[{slug:""},...c??[]].map(h=>(0,Ri.jsx)(kp.Panel,{tabIndex:-1,value:h.slug,className:"wp-block-icon__inserter-panel",children:d?(0,Ri.jsx)(xJ,{icons:f,onChange:r,value:t}):(0,Ri.jsx)("div",{className:"wp-block-icon__inserter-loading",role:"status","aria-label":(0,x4.__)("Loading\u2026"),children:(0,Ri.jsx)(Pg.Spinner,{})})},h.slug))]})})}var Ut=n(y(),1),oCe=({className:e,style:t})=>(0,Ut.jsxs)(Eg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:C("wp-block-icon__placeholder",e),style:t,children:[(0,Ut.jsx)(Eg.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,Ut.jsx)(Eg.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function nCe({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:a,flipVertical:i,rotation:l}=e,[s,c]=(0,CJ.useState)(!1),u=(0,pn.useBlockEditingMode)()==="contentOnly",p=(0,pn.__experimentalUseColorProps)(e),m=(0,pn.__experimentalGetSpacingClassesAndStyles)(e),d=(0,pn.__experimentalUseBorderProps)(e),f=(0,pn.getDimensionsClassesAndStyles)(e),g=(0,SJ.useSelect)(w=>{let{getEntityRecord:S}=w(TJ.store);return r?S("root","icon",r):null},[r])?.content||"",v={"is-flip-horizontal":a,"is-flip-vertical":i},b=l?{rotate:`${l}deg`}:{},_=(0,Ut.jsxs)(Ut.Fragment,{children:[r&&(0,Ut.jsxs)(pn.BlockControls,{group:"block",children:[(0,Ut.jsx)(ha.ToolbarButton,{icon:WP,label:(0,Ai.__)("Flip horizontal"),isPressed:a,onClick:()=>t({flipHorizontal:!a})}),(0,Ut.jsx)(ha.ToolbarButton,{icon:qP,label:(0,Ai.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,Ut.jsx)(ha.ToolbarButton,{icon:uI,label:(0,Ai.__)("Rotate"),onClick:()=>t({rotation:((l||0)+90)%360})})]}),(0,Ut.jsxs)(pn.BlockControls,{group:"other",children:[(0,Ut.jsx)(ha.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,Ai.__)("Replace"):(0,Ai.__)("Choose icon")}),u&&r&&(0,Ut.jsx)(ha.DropdownMenu,{icon:"",toggleProps:{as:ha.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,Ai.__)("Label"),children:()=>(0,Ut.jsx)(ha.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,Ai.__)("Label"),value:o||"",onChange:w=>t({ariaLabel:w}),help:(0,Ai.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),k=Z(),x=r&&(0,Ut.jsx)(Ut.Fragment,{children:(0,Ut.jsx)(pn.InspectorControls,{group:"settings",children:(0,Ut.jsx)(ha.__experimentalToolsPanel,{label:(0,Ai.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:k,children:(0,Ut.jsx)(ha.__experimentalToolsPanelItem,{label:(0,Ai.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,Ut.jsx)(ha.TextControl,{label:(0,Ai.__)("Label"),help:(0,Ai.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:w=>t({ariaLabel:w})})})})})});return(0,Ut.jsxs)(Ut.Fragment,{children:[_,x,(0,Ut.jsx)("div",{...(0,pn.useBlockProps)(),children:g?(0,Ut.jsx)(_o,{html:g,wrapperProps:{className:C(p.className,d.className,m.className,f.className,v),style:{...p.style,...d.style,...m.style,...f.style,...b}}}):(0,Ut.jsx)(oCe,{className:C(d.className,m.className,f.className,v),style:{...d.style,...m.style,...f.style,...b,height:"auto"}})}),s&&(0,Ut.jsx)(NR,{onClose:()=>c(!1),value:e.icon,onChange:w=>{t({icon:w}),c(!1)}})]})}var PJ=nCe;var k4={apiVersion:3,$schema:"https://schemas.wp.org/trunk/block.json",name:"core/icon",title:"Icon",category:"media",description:"Insert an SVG icon.",keywords:["icon","svg"],textdomain:"default",attributes:{icon:{type:"string",role:"content"},flipHorizontal:{type:"boolean",default:!1},flipVertical:{type:"boolean",default:!1},rotation:{type:"number",default:0}},supports:{anchor:!0,ariaLabel:{__experimentalSkipSerialization:!0},align:["left","center","right"],html:!1,color:{__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}},spacing:{padding:!0,margin:!0,__experimentalSkipSerialization:["padding"],__experimentalDefaultControls:{margin:!1,padding:!1}},dimensions:{width:!0,__experimentalSkipSerialization:["width"],__experimentalDefaultControls:{width:!0}}},selectors:{root:".wp-block-icon svg",css:".wp-block-icon",spacing:{margin:".wp-block-icon"}},style:"wp-block-icon",editorStyle:"wp-block-icon-editor"};var w4=n(O(),1),DR=n(y(),1),iCe=(0,DR.jsx)(w4.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,DR.jsx)(w4.Path,{d:"M6 9.5h3.5V6H6v3.5Zm5 .5a1 1 0 0 1-.898.995L10 11H5.5l-.103-.005a1 1 0 0 1-.892-.893L4.5 10V5.5a1 1 0 0 1 1-1H10a1 1 0 0 1 1 1V10ZM18.25 7.75a2 2 0 1 0-4 0 2 2 0 0 0 4 0Zm1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM6.88 13.535a1 1 0 0 1 1.74 0l2.534 4.472a1 1 0 0 1-.87 1.493H5.216a1 1 0 0 1-.87-1.493l2.534-4.472ZM6.074 18h3.352L7.75 15.041l-1.676 2.96ZM14.952 13h2.596a1 1 0 0 1 .866.5l1.298 2.25a1 1 0 0 1 0 1L18.414 19l-.074.11a1 1 0 0 1-.792.39h-2.596a1 1 0 0 1-.792-.39l-.074-.11-1.298-2.25a1.001 1.001 0 0 1 0-1l1.298-2.25a1 1 0 0 1 .866-.5Zm-.72 3.25 1.01 1.75h2.017l1.009-1.75-1.01-1.75h-2.017l-1.01 1.75Z"})}),EJ=iCe;var lCe=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],BJ=lCe;var{name:IJ}=k4,NJ={icon:EJ,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:BJ,edit:PJ},sCe=()=>R({name:IJ,metadata:k4,settings:NJ});var FR={};K(FR,{init:()=>OCe,metadata:()=>N4,name:()=>mee,settings:()=>L4});var Zp=n(N(),1);var pee=n($(),1);var Ke=n(P(),1);var Ae=n(y(),1),cCe={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,width:l,height:s}=e,u=(0,Ae.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),p={};return l?p={width:l}:(a==="left"||a==="right")&&(p={maxWidth:"50%"}),(0,Ae.jsxs)("figure",{className:a?`align${a}`:null,style:p,children:[i?(0,Ae.jsx)("a",{href:i,children:u}):u,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]})}},uCe={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,width:l,height:s,id:c}=e,u=(0,Ae.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Ae.jsxs)("figure",{className:a?`align${a}`:null,children:[i?(0,Ae.jsx)("a",{href:i,children:u}):u,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]})}},pCe={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,width:l,height:s,id:c}=e,u=C({[`align${a}`]:a,"is-resized":l||s}),p=(0,Ae.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Ae.jsxs)("figure",{className:u,children:[i?(0,Ae.jsx)("a",{href:i,children:p}):p,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]})}},mCe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,id:p,linkTarget:m,sizeSlug:d,title:f}=e,h=l||void 0,g=C({[`align${a}`]:a,[`size-${d}`]:d,"is-resized":c||u}),v=(0,Ae.jsx)("img",{src:t,alt:r,className:p?`wp-image-${p}`:null,width:c,height:u,title:f}),b=(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)("a",{className:s,href:i,target:m,rel:h,children:v}):v,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]});return a==="left"||a==="right"||a==="center"?(0,Ae.jsx)("div",{...Ke.useBlockProps.save(),children:(0,Ae.jsx)("figure",{className:g,children:b})}):(0,Ae.jsx)("figure",{...Ke.useBlockProps.save({className:g}),children:b})}},dCe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,id:p,linkTarget:m,sizeSlug:d,title:f}=e,h=l||void 0,g=C({[`align${a}`]:a,[`size-${d}`]:d,"is-resized":c||u}),v=(0,Ae.jsx)("img",{src:t,alt:r,className:p?`wp-image-${p}`:null,width:c,height:u,title:f}),b=(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)("a",{className:s,href:i,target:m,rel:h,children:v}):v,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{tagName:"figcaption",value:o})]});return(0,Ae.jsx)("figure",{...Ke.useBlockProps.save({className:g}),children:b})}},fCe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{height:t,width:r}=e;return{...e,width:typeof r=="number"?`${r}px`:r,height:typeof t=="number"?`${t}px`:t}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),_=C({[`align${a}`]:a,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=C(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Ae.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m},width:c,height:u,title:g}),w=(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Ae.jsx)("figure",{...Ke.useBlockProps.save({className:_}),children:w})}},hCe={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{width:t,height:r}=e;return{...e,width:typeof t=="number"?`${t}px`:t,height:typeof r=="number"?`${r}px`:r}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),_=C({[`align${a}`]:a,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=C(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Ae.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m,width:c,height:u},width:c,height:u,title:g}),w=(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Ae.jsx)("figure",{...Ke.useBlockProps.save({className:_}),children:w})}},gCe={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...r}){if(!r.behaviors?.lightbox)return r;let{behaviors:{lightbox:{enabled:o}}}=r,a={...r,lightbox:{enabled:o}};return delete a.behaviors,a},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,id:d,linkTarget:f,sizeSlug:h,title:g}=e,v=l||void 0,b=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),_=C({[`align${a}`]:a,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),k=C(b.className,{[`wp-image-${d}`]:!!d}),x=(0,Ae.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...b.style,aspectRatio:p,objectFit:m,width:c,height:u},title:g}),w=(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)("a",{className:s,href:i,target:f,rel:v,children:x}):x,!Ke.RichText.isEmpty(o)&&(0,Ae.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Ae.jsx)("figure",{...Ke.useBlockProps.save({className:_}),children:w})}},vCe={attributes:{blob:{type:"string",role:"local"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},focalPoint:{type:"object"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},save({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:v,metadata:{bindings:b={}}={}}=e,_=l||void 0,k=(0,Ke.__experimentalGetBorderClassesAndStyles)(e),x=(0,Ke.__experimentalGetShadowClassesAndStyles)(e),w=C({alignnone:a==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!k.className||k.style&&Object.keys(k.style).length>0}),S=C(k.className,{[`wp-image-${f}`]:!!f}),T=(0,Ae.jsx)("img",{src:t,alt:r,className:S||void 0,style:{...k.style,...x.style,aspectRatio:p,objectFit:m,objectPosition:d&&m?Yd(d):void 0,width:c,height:u},title:v}),I=!Ke.RichText.isEmpty(o)||b.caption||b?.__default?.source==="core/pattern-overrides",D=(0,Ae.jsxs)(Ae.Fragment,{children:[i?(0,Ae.jsx)("a",{className:s,href:i,target:h,rel:_,children:T}):T,I&&(0,Ae.jsx)(Ke.RichText.Content,{className:(0,Ke.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Ae.jsx)("figure",{...Ke.useBlockProps.save({className:w}),children:D})}},DJ=[vCe,gCe,hCe,fCe,dCe,mCe,pCe,uCe,cCe];var Ng=n(Ar(),1),$b=n($(),1),JJ=n(O(),1),tf=n(F(),1),va=n(P(),1),qp=n(H(),1),gc=n(N(),1);var eee=n(Sr(),1),tee=n(ve(),1),I4=n(pr(),1),ree=n(RJ(),1);var Oe=n(O(),1),Ig=n(ve(),1),hc=n(F(),1),At=n(P(),1),Or=n(H(),1),Be=n(N(),1),zR=n(pr(),1),Bg=n($(),1);var $J=n(Sr(),1),B4=n(re(),1);var ga=n(O(),1),C4=n(P(),1),AJ=n(Tn(),1),MJ=n(H(),1),RR=n(N(),1),zJ=n(F(),1);var VJ=n(pr(),1),Ka=n(y(),1),bCe=e=>{window.requestAnimationFrame(()=>{let[t]=AJ.focus.tabbable.find(e?.current);t&&t.focus()})};function AR({url:e,filename:t,itemGroupProps:r,className:o,label:a}){return(0,Ka.jsx)(ga.__experimentalItemGroup,{...r,as:"span",children:(0,Ka.jsxs)(ga.__experimentalHStack,{justify:"flex-start",children:[(0,Ka.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,Ka.jsx)(ga.FlexBlock,{children:(0,Ka.jsx)(ga.__experimentalTruncate,{numberOfLines:1,className:o,children:t??a})})]})})}function S4({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:a,onSelectURL:i,onError:l,onReset:s,isUploading:c=!1,emptyLabel:u=(0,RR.__)("Media")}){let{getSettings:p}=(0,zJ.useSelect)(C4.store),m=f=>{let{mediaUpload:h}=p();h&&h({allowedTypes:o,filesList:f,onFileChange([g]){a(g)},onError:l,multiple:!1})},d=(0,MJ.useRef)();return(0,Ka.jsxs)("div",{ref:d,className:"block-library-utils__media-control",children:[(0,Ka.jsx)(C4.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:a,onSelectURL:i,onError:l,name:(0,Ka.jsx)(AR,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,VJ.getFilename)(r)||u}),renderToggle:f=>(0,Ka.jsx)(ga.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,Ka.jsx)(ga.Spinner,{}):f.children}),onReset:s}),t&&s&&(0,Ka.jsx)(ga.Button,{label:(0,RR.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:iI,onClick:()=>{s(),bCe(d)}}),(0,Ka.jsx)(ga.DropZone,{onFilesDrop:m})]})}var T4=n(re(),1),P4=n(P(),1),jJ=n(Tn(),1),E4=n(F(),1),wl=n(H(),1);function OJ(e){return typeof e!="string"||!(0,jJ.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function yCe(e){let t=e?.caption;if(typeof t=="string")return OJ(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return OJ(t.raw)}function MR(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:yCe(e)}}function FJ(e){return e||""}function _Ce(e,t,r){if(!t||!r)return{};let o=MR(t),a=MR(r),i={},l=FJ(e.alt);o.alt!==a.alt&&(l===o.alt||!l)&&(i.alt=a.alt);let s=FJ(e.caption);return o.caption!==void 0&&a.caption!==void 0&&o.caption!==a.caption&&(s===o.caption||!s)&&(i.caption=a.caption||void 0),i}var{openMediaEditorModalKey:xCe}=j(P4.privateApis);function kCe({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function HJ(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=MR(e).caption!==void 0;return t&&r}function UJ({attributes:e,setAttributes:t,onClose:r}){let{id:o,url:a,alt:i,caption:l}=e,s=(0,E4.useRegistry)(),c=(0,E4.useSelect)(b=>b(P4.store).getSettings()[xCe],[]),u=(0,wl.useRef)({id:o,url:a,alt:i,caption:l?.toString()}),p=(0,wl.useRef)(),m=(0,wl.useRef)(0);(0,wl.useEffect)(()=>{u.current={id:o,url:a,alt:i,caption:l?.toString()}},[i,l,o,a]);let d=(0,wl.useCallback)(b=>s.select(T4.store).getEditedEntityRecord("postType","attachment",b),[s]),f=(0,wl.useCallback)(async b=>{let _=s.resolveSelect(T4.store);try{return await _.getEntityRecord("postType","attachment",b)}catch{return}},[s]),h=(0,wl.useCallback)(async b=>{let{invalidateResolution:_}=s.dispatch(T4.store);return _("getEntityRecord",["postType","attachment",b]),f(b)},[s,f]),g=(0,wl.useCallback)(async({id:b,url:_})=>{if(typeof b!="number")return;let k=p.current;p.current=void 0;let x=++m.current,w={},S=u.current;if(b!==S.id&&(w.id=b,w.url=_??S.url,u.current={...u.current,id:w.id,url:w.url}),k){let T=await h(b);if(x!==m.current)return;let I=u.current,D=_Ce(I,k,T);Object.keys(D).length&&Object.assign(w,D)}Object.keys(w).length&&(u.current={...u.current,...w},t(w))},[h,t]),v=(0,wl.useCallback)(async()=>{if(!o||!c)return;let b=d(o),_=kCe(u.current),k=HJ(b)?void 0:await f(o);p.current=k||(HJ(b)?b:_)||b,c({id:o,onUpdate:g,onClose:r})},[d,g,o,r,c,f]);return o&&c?v:void 0}var ue=n(y(),1),{DimensionsTool:GJ,isDefaultBlockStyleState:wCe,ResolutionTool:CCe,mediaEditKey:SCe,mediaSideloadFromUrlKey:WJ}=j(At.privateApis),TCe=[{value:"cover",label:(0,Be._x)("Cover","Scale option for dimensions control"),help:(0,Be.__)("Image covers the space evenly.")},{value:"contain",label:(0,Be._x)("Contain","Scale option for dimensions control"),help:(0,Be.__)("Image is contained without distortion.")}],PCe={placement:"bottom-start"},ECe=({href:e,children:t})=>e?(0,ue.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function BCe({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:a,lockTitleControlsMessage:i}){let[l,s]=(0,Or.useState)(null),[c,u]=(0,Or.useState)(!1),[p,m]=(0,Or.useState)(!1);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Oe.ToolbarItem,{ref:s,children:d=>(0,ue.jsx)(Oe.DropdownMenu,{icon:j1,label:(0,Be.__)("More"),toggleProps:{...d,description:(0,Be.__)("Displays more controls.")},popoverProps:PCe,children:({onClose:f})=>(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Oe.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Be._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ue.jsx)(Oe.MenuItem,{onClick:()=>{m(!0),f()},"aria-haspopup":"dialog",children:(0,Be.__)("Title text")})]})})}),c&&(0,ue.jsx)(Oe.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Oe.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Be.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,ue.jsx)(ue.Fragment,{children:o}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Oe.ExternalLink,{href:(0,Be.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Be.__)("Describe the purpose of the image.")}),(0,ue.jsx)("br",{}),(0,Be.__)("Leave empty if decorative.")]})})})}),p&&(0,ue.jsx)(Oe.Popover,{placement:"bottom-start",anchor:l,onClose:()=>m(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Oe.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Be.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:a,help:a?(0,ue.jsx)(ue.Fragment,{children:i}):(0,Or.createInterpolateElement)((0,Be.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ue.jsx)(Oe.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function qJ({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:a,insertBlocksAfter:i,onReplace:l,onSelectImage:s,onSelectURL:c,onUploadError:u,context:p,clientId:m,blockEditingMode:d,parentLayoutType:f,maxContentWidth:h}){let{url:g="",alt:v,align:b,id:_,href:k,rel:x,linkClass:w,linkDestination:S,title:T,width:I,height:D,aspectRatio:L,scale:E,focalPoint:B,linkTarget:A,sizeSlug:z,lightbox:U,metadata:q,isDecorative:G}=r,[W,V]=(0,Or.useState)(),[Q,Y]=(0,Or.useState)(null),[ee,te]=(0,Or.useState)({}),[oe,J]=(0,Or.useState)(0),ce=(0,Ig.useResizeObserver)(([_e])=>{if(!Q){let[Rt]=_e.borderBoxSize;te({width:Rt.inlineSize,height:Rt.blockSize})}J(_e.target.offsetTop)}),ie=(0,Or.useCallback)(()=>{J(W?.offsetTop??0)},[W]),we=(0,Ig.useMergeRefs)([V,ce]),{allowResize:le=!0}=p,{image:de,attachmentResolutionError:ge}=(0,hc.useSelect)(_e=>{let Rt=_&&a?_e(B4.store).getEntityRecord("postType","attachment",_,{context:"view"}):null,il=_&&a?_e(B4.store).getResolutionError("getEntityRecord",["postType","attachment",_,{context:"view"}]):null;return{image:Rt,attachmentResolutionError:il}},[_,a]),{canInsertCover:ne,imageEditing:me,imageSizes:se,maxWidth:Ne,editMediaEntity:De}=(0,hc.useSelect)(_e=>{let{getBlockRootClientId:Rt,canInsertBlockType:il,getSettings:Ra}=_e(At.store),B1=Rt(m),op=Ra();return{imageEditing:op.imageEditing,imageSizes:op.imageSizes,maxWidth:op.maxWidth,editMediaEntity:op?.[SCe],canInsertCover:il("core/cover",B1)}},[m]),{getBlock:X,getSettings:Ce}=(0,hc.useSelect)(At.store),pe=(0,Or.useRef)(),ct=(0,Or.useCallback)(()=>pe.current?.focus(),[]),he=UJ({attributes:r,setAttributes:o,onClose:ct}),{replaceBlocks:ze,toggleSelection:Ct,__unstableMarkNextChangeAsNotPersistent:Me}=(0,hc.useDispatch)(At.store),{createErrorNotice:No,createSuccessNotice:Do}=(0,hc.useDispatch)($J.store),{editEntityRecord:Lo}=(0,hc.useDispatch)(B4.store),bo=(0,Ig.useViewportMatch)("medium"),Zo=["wide","full"].includes(b),[{loadedNaturalWidth:Jn,loadedNaturalHeight:ae},Ve]=(0,Or.useState)({}),[$e,Lt]=(0,Or.useState)(!1),tt=d==="default",kr=d==="contentOnly",ea=le&&tt,ci=le&&tt&&!Zo&&bo,rt=!!e||t,Sn=se.filter(({slug:_e})=>de?.media_details?.sizes?.[_e]?.source_url).map(({name:_e,slug:Rt})=>({value:Rt,label:_e}));(0,Or.useEffect)(()=>{!_||!a||ge?.status===404&&(Me(),o({id:void 0}))},[_,a,ge,o,Me]);let zm=a&&VR(_,g)&&!!Ce()[WJ],{naturalWidth:La,naturalHeight:ol}=(0,Or.useMemo)(()=>({naturalWidth:W?.naturalWidth||Jn||void 0,naturalHeight:W?.naturalHeight||ae||void 0}),[Jn,ae,W?.complete]);function rp(){Lt(!0);let _e=hp({attributes:{url:g}});_e!==void 0&&l&&l(_e)}function Hs(_e){Lt(!1),Ve({loadedNaturalWidth:_e.target?.naturalWidth,loadedNaturalHeight:_e.target?.naturalHeight})}function Ul(_e){o(_e)}function eu(_e){_e&&!pi?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!_e&&pi?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function S1(){pi?.enabled&&pi?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Le(_e){o({title:_e})}function bt(_e){o({alt:_e})}function cr(_e){o({isDecorative:_e||void 0,..._e&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let wr=_e=>{W&&W.style.setProperty("object-position",Yd(_e))};function qr(_e){let Rt=de?.media_details?.sizes?.[_e]?.source_url;if(!Rt)return null;o({url:Rt,sizeSlug:_e})}function ta(){let _e=Ce()[WJ];_e&&_e({url:g,onSuccess(Rt){s(Rt),Do((0,Be.__)("Image uploaded."),{type:"snackbar"})},onError(Rt){No(Rt,{type:"snackbar"})}})}let Vm=a&&(_&&La&&ol&&me&&!!De)&&!!he&&!kr&&!rt;function sh(){ze(m,(0,Bg.switchToBlockType)(X(m),"core/cover"))}let nl=(0,Oe.__experimentalUseCustomUnits)({availableUnits:["px"]}),[pi]=(0,At.useSettings)("lightbox"),ch=!!U&&U?.enabled!==pi?.enabled||pi?.allowEditing,Om=!!U?.enabled||!U&&!!pi?.enabled,Q2=Z(),js=(0,hc.useSelect)(_e=>{if(!a)return;let{getSelectedBlockStyleState:Rt}=j(_e(At.store));return Rt(m)},[m,a]),mi=!wCe(js),T1=Kh(js),s9=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"width"}),c9=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"height"}),P1=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"aspectRatio"}),Fm=Ci({attributes:r,selectedState:js,hasSelectedStyleState:mi,attributeKey:"scale",styleKey:"objectFit"}),Hm=_e=>{o(Yh({style:r.style,selectedState:js,hasSelectedStyleState:mi,nextDimensions:_e,dimensionKeyMap:{scale:"objectFit"}}))},uh=ea&&(rR.includes(f)?(0,ue.jsx)(GJ,{panelId:m,value:{aspectRatio:P1,scale:Fm},onChange:({aspectRatio:_e})=>{Hm({aspectRatio:_e,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},T1):(0,ue.jsx)(GJ,{panelId:m,value:{width:s9,height:c9,scale:Fm,aspectRatio:P1},onChange:({width:_e,height:Rt,scale:il,aspectRatio:Ra})=>{Hm({width:!_e&&Rt?"auto":_e,height:Rt,aspectRatio:Ra,scale:il})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:TCe,unitsOptions:nl,tools:Zo?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},T1)),u9=()=>{o({lightbox:void 0}),qr(Rb)},nr=q?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:al=!1,lockHrefControls:tu=!1,lockAltControls:Us=!1,lockAltControlsMessage:p9,lockTitleControls:jm=!1,lockTitleControlsMessage:uF,hideCaptionControls:Nve=!1}=(0,hc.useSelect)(_e=>{if(!a)return{};let{url:Rt,alt:il,title:Ra,caption:B1}=q?.bindings||{},op=!!p["pattern/overrides"],m9=(0,Bg.getBlockBindingsSource)(Rt?.source),ph=(0,Bg.getBlockBindingsSource)(il?.source),np=(0,Bg.getBlockBindingsSource)(Ra?.source);return{lockUrlControls:!!Rt&&!m9?.canUserEditValue?.({select:_e,context:p,args:Rt?.args}),lockHrefControls:op||nr,hideCaptionControls:!!B1,lockAltControls:!!il&&!ph?.canUserEditValue?.({select:_e,context:p,args:il?.args}),lockAltControlsMessage:ph?.label?(0,Be.sprintf)((0,Be.__)("Connected to %s"),ph.label):(0,Be.__)("Connected to dynamic data"),lockTitleControls:!!Ra&&!np?.canUserEditValue?.({select:_e,context:p,args:Ra?.args}),lockTitleControlsMessage:np?.label?(0,Be.sprintf)((0,Be.__)("Connected to %s"),np.label):(0,Be.__)("Connected to dynamic data")}},[nr,p,a,q?.bindings]),pF=a&&!tu&&!al&&!G,mF=a&&ne&&!kr,Dve=pF||Vm||mF,dF=a&&!al&&(0,ue.jsx)(ue.Fragment,{children:(0,ue.jsx)(At.BlockControls,{group:kr?"inline":"other",children:(0,ue.jsx)(At.MediaReplaceFlow,{mediaId:_,mediaURL:g,allowedTypes:zp,onSelect:s,onSelectURL:c,onError:u,name:g?(0,Be.__)("Replace"):(0,Be.__)("Add image"),onReset:()=>s(void 0),variant:"toolbar"})})}),Lve=window?.__experimentalContentOnlyInspectorFields,fF=(0,ue.jsxs)(ue.Fragment,{children:[Dve&&(0,ue.jsxs)(At.BlockControls,{group:"block",children:[pF&&(0,ue.jsx)(At.__experimentalImageURLInputUI,{url:k||"",onChangeUrl:Ul,linkDestination:S,mediaUrl:de&&de.source_url||g,mediaLink:de&&de.link,linkTarget:A,linkClass:w,rel:x,showLightboxSetting:ch,lightboxEnabled:Om,onSetLightbox:eu,resetLightbox:S1}),Vm&&(0,ue.jsx)(Oe.ToolbarButton,{ref:pe,onClick:he,"aria-haspopup":"dialog",icon:Xm,label:(0,Be.__)("Crop")}),mF&&(0,ue.jsx)(Oe.ToolbarButton,{icon:lB,label:(0,Be.__)("Add text over image"),onClick:sh})]}),zm&&(0,ue.jsx)(At.BlockControls,{children:(0,ue.jsx)(Oe.ToolbarGroup,{children:(0,ue.jsx)(Oe.ToolbarButton,{onClick:ta,icon:nu,label:(0,Be.__)("Upload to Media Library")})})}),kr&&(0,ue.jsx)(At.BlockControls,{group:"block",children:(0,ue.jsx)(BCe,{attributes:r,setAttributes:o,lockAltControls:Us,lockAltControlsMessage:p9,lockTitleControls:jm,lockTitleControlsMessage:uF})}),!Lve&&a&&(0,ue.jsx)(At.InspectorControls,{group:"content",children:(0,ue.jsxs)(Oe.__experimentalToolsPanel,{label:(0,Be.__)("Media"),resetAll:()=>{s(void 0),o({isDecorative:!1})},dropdownMenuProps:Q2,children:[!al&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Image"),hasValue:()=>!!g,onDeselect:()=>s(void 0),isShownByDefault:!0,children:(0,ue.jsx)(S4,{mediaId:_,mediaUrl:g,alt:v,filename:de?.media_details?.sizes?.full?.file||de?.slug||(0,zR.getFilename)(g),allowedTypes:zp,onSelect:s,onSelectURL:c,onError:u,onReset:()=>s(void 0),isUploading:rt,emptyLabel:(0,Be.__)("Add image")})}),!G&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>o({alt:void 0}),children:(0,ue.jsx)(Oe.TextareaControl,{label:(0,Be.__)("Alternative text"),value:v||"",onChange:bt,readOnly:Us,help:Us?(0,ue.jsx)(ue.Fragment,{children:p9}):(0,ue.jsx)(Oe.ExternalLink,{href:(0,Be.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Be.__)("Describe the purpose of the image.")})})}),!Us&&!Om&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!G,onDeselect:()=>o({isDecorative:!1}),children:(0,ue.jsx)(Oe.CheckboxControl,{label:(0,Be.__)("Mark as decorative"),checked:!!G,onChange:cr,help:(0,Be.__)("Hidden from assistive technologies.")})})]})}),(0,ue.jsxs)(At.InspectorControls,{group:"dimensions",resetAllFilter:_e=>Qh({attributes:_e,selectedState:js,hasSelectedStyleState:mi,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[uh,!mi&&g&&E&&(0,ue.jsx)(Oe.__experimentalToolsPanelItem,{label:(0,Be.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!B,onDeselect:()=>o({focalPoint:void 0}),panelId:m,children:(0,ue.jsx)(Oe.FocalPointPicker,{label:(0,Be.__)("Focal point"),url:g,value:B,onDragStart:wr,onDrag:wr,onChange:_e=>o({focalPoint:_e})})})]}),!!Sn.length&&(0,ue.jsx)(At.InspectorControls,{children:(0,ue.jsx)(Oe.__experimentalToolsPanel,{label:(0,Be.__)("Settings"),resetAll:u9,dropdownMenuProps:Q2,children:(0,ue.jsx)(CCe,{value:z,defaultValue:Rb,onChange:qr,options:Sn})})}),(0,ue.jsx)(At.InspectorControls,{group:"advanced",children:(0,ue.jsx)(Oe.TextControl,{label:(0,Be.__)("Title attribute"),value:T||"",onChange:Le,readOnly:jm,help:jm?(0,ue.jsx)(ue.Fragment,{children:uF}):(0,Or.createInterpolateElement)((0,Be.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ue.jsx)(Oe.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),X2=(0,zR.getFilename)(g),E1;G?E1=X2?(0,Be.sprintf)((0,Be.__)("This image has been marked as decorative; its file name is %s"),X2):(0,Be.__)("This image has been marked as decorative."):v?E1=v:X2?E1=(0,Be.sprintf)((0,Be.__)("This image has an empty alt attribute; its file name is %s"),X2):E1=(0,Be.__)("This image has an empty alt attribute");let hF=(0,At.__experimentalUseBorderProps)(r),Rve=(0,At.__experimentalGetShadowClassesAndStyles)(r),{postType:Ave,postId:gF,queryId:Mve}=p,zve=Number.isFinite(Mve),Vve=(0,ue.jsx)(ECe,{href:k,children:e&&$e?(0,ue.jsx)(Oe.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ue.jsx)(Oe.Spinner,{})}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("img",{src:e||g,alt:E1,onError:rp,onLoad:Hs,ref:we,className:hF.className,width:La,height:ol,style:{aspectRatio:L,...Q?{width:ee.width+Q.width,height:ee.height+Q.height}:(()=>{let _e={};return I==="auto"?_e.width="auto":I!=null&&(_e.width=typeof I=="number"?`${I}px`:I),D==="auto"||D===void 0||D===null?_e.height="auto":_e.height=typeof D=="number"?`${D}px`:D,_e})(),objectFit:E,objectPosition:B&&E?Yd(B):void 0,...hF.style,...Rve.style}}),rt&&(0,ue.jsx)(Oe.Spinner,{})]})}),vF;if(ci&&a&&!rt&&!rR.includes(f)){let _e=L&&_Q(L),Rt=ee.width/ee.height,il=La/ol,Ra=_e||Rt||il||1,B1=La<ol?mc:mc*Ra,op=ol<La?mc:mc/Ra,m9=Ne*2.5,ph=h||m9,np=!1,J2=!1;b==="center"?(np=!0,J2=!0):(0,Be.isRTL)()?b==="left"?np=!0:J2=!0:b==="right"?J2=!0:np=!0,vF=(0,ue.jsx)(Oe.ResizableBox,{ref:ie,style:{position:"absolute",inset:`${oe}px 0 0 0`},size:ee,minWidth:B1,maxWidth:ph,minHeight:op,maxHeight:ph/Ra,lockAspectRatio:Ra,enable:{top:!1,right:np,bottom:!0,left:J2},onResizeStart:()=>{Ct(!1)},onResize:(Fve,Hve,d9,e_)=>{Y(e_)},onResizeStop:(Fve,Hve,d9,e_)=>{if(Ct(!0),Y(null),te(bF=>({width:bF.width+e_.width,height:bF.height+e_.height})),h&&La>=h&&Math.abs(d9.offsetWidth-h)<10){o({width:void 0,height:void 0});return}o({width:`${d9.offsetWidth}px`,height:"auto",aspectRatio:Ra===il?void 0:String(Ra)})},resizeRatio:b==="center"?2:1})}if(!g&&!e)return(0,ue.jsxs)(ue.Fragment,{children:[dF,fF]});let Ove=()=>{Lo("postType",Ave,gF,{featured_media:_}),Do((0,Be.__)("Post featured image updated."),{type:"snackbar"})};return(0,ue.jsxs)(ue.Fragment,{children:[dF,fF,!zve&&gF&&_?(0,ue.jsx)(At.BlockSettingsMenuControls,{children:({canEdit:_e,selectedClientIds:Rt})=>_e&&Rt.length===1&&m===Rt[0]&&(0,ue.jsx)(Oe.MenuItem,{onClick:Ove,children:(0,Be.__)("Set as featured image")})}):null,Vve,vF,!G&&(0,ue.jsx)(Ao,{attributes:r,setAttributes:o,isSelected:a,insertBlocksAfter:i,label:(0,Be.__)("Image caption text"),showToolbarButton:a&&(tt||kr)&&!Nve})]})}var ZJ=n(H(),1),KJ=n(ve(),1),YJ=n(y(),1);function QJ(){let[e,{width:t}]=(0,KJ.useResizeObserver)(),r=(0,ZJ.useRef)();return[(0,YJ.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:r,children:e}),t]}var xs=n(y(),1),ICe=(e,t)=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([o])=>["alt","id","link","caption"].includes(o)));return r.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,r},VR=(e,t)=>t&&!e&&!(0,Ng.isBlobURL)(t);function XJ(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function NCe({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:a,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:p,id:m,width:d,height:f,sizeSlug:h,aspectRatio:g,scale:v,align:b,metadata:_}=e,[k,x]=(0,qp.useState)(e.blob),w=(0,qp.useRef)(),S=c?.type||c?.default?.type,T=!S||S!=="flex"&&S!=="grid",[I,D]=QJ(),[L,{width:E}]=(0,tee.useResizeObserver)(),B=E&&E<160,A=(0,qp.useRef)();(0,qp.useEffect)(()=>{A.current=p},[p]);let{__unstableMarkNextChangeAsNotPersistent:z,replaceBlock:U}=(0,tf.useDispatch)(va.store);(0,qp.useEffect)(()=>{["wide","full"].includes(b)&&(z(),t({width:void 0,height:void 0}))},[z,b,t]);let{getSettings:q,getBlockRootClientId:G,getBlockName:W,canInsertBlockType:V}=(0,tf.useSelect)(va.store),Q=(0,va.useBlockEditingMode)(),{createErrorNotice:Y}=(0,tf.useDispatch)(eee.store);function ee(pe){Y(pe,{type:"snackbar"}),x(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function te(pe){pe.length===1&&x((0,Ng.createBlobURL)(pe[0]))}function oe(pe){let ct=w.current?.ownerDocument.defaultView;if(pe.every(he=>he instanceof ct.File)){let he=pe,ze=G(s);he.some(Me=>!oR(Me))&&Y((0,gc.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ct=he.filter(Me=>oR(Me)).map(Me=>(0,$b.createBlock)("core/image",{blob:(0,Ng.createBlobURL)(Me)}));if(W(ze)==="core/gallery")U(s,Ct);else if(V("core/gallery",ze)){let Me=(0,$b.createBlock)("core/gallery",{},Ct);U(s,Me)}}}function J(pe){if(Array.isArray(pe)){oe(pe);return}if(!pe||!pe.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),x();return}if((0,Ng.isBlobURL)(pe.url)){x(pe.url);return}let{imageDefaultSize:ct}=q(),he=Rb;h&&XJ(pe,h)?he=h:XJ(pe,ct)&&(he=ct);let ze=ICe(pe,he);if(typeof ze.caption=="string"&&ze.caption.includes(`
`)&&(ze.caption=ze.caption.replace(/\n/g,"<br>")),A.current&&!ze.caption){let{caption:Do,...Lo}=ze;ze=Lo}let Ct;(!pe.id||pe.id!==m)&&(Ct={sizeSlug:he});let Me=e.linkDestination;if(!Me)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Kd){case"file":case hg:Me=hg;break;case"post":case gg:Me=gg;break;case tR:Me=tR;break;case Kd:Me=Kd;break}let No;switch(Me){case hg:No=pe.url;break;case gg:No=pe.link;break}ze.href=No,t({blob:void 0,...ze,...Ct,linkDestination:Me}),x()}function ce(pe){let ct=(0,I4.getProtocol)(pe)?pe:(0,I4.prependHTTPS)(pe);ct!==u&&(t({blob:void 0,url:ct,id:void 0,sizeSlug:q().imageDefaultSize}),x())}Ws({url:k,allowedTypes:zp,onChange:J,onError:ee});let we=VR(m,u)?u:void 0,le=(0,tf.useSelect)(pe=>!window.__clientSideMediaProcessing||!m?!1:pe(ree.store).isUploadingById(m),[m]),de=!!u&&(0,xs.jsx)("img",{alt:(0,gc.__)("Edit image"),title:(0,gc.__)("Edit image"),className:"edit-image-preview",src:u}),ge=(0,va.__experimentalUseBorderProps)(e),ne=(0,va.__experimentalGetShadowClassesAndStyles)(e),me=C(o,{"is-transient":!!k||le,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!ge.className||ge.style&&Object.keys(ge.style).length>0}),se=(0,va.useBlockProps)({ref:w,className:me}),{lockUrlControls:Ne=!1,lockUrlControlsMessage:De}=(0,tf.useSelect)(pe=>{if(!r)return{};let ct=(0,$b.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!ct?.canUserEditValue?.({select:pe,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:ct?.label?(0,gc.sprintf)((0,gc.__)("Connected to %s"),ct.label):(0,gc.__)("Connected to dynamic data")}},[l,r,_?.bindings?.url]),X=f==="auto"?void 0:f;return(0,xs.jsxs)(xs.Fragment,{children:[(0,xs.jsxs)("figure",{...se,children:[(0,xs.jsx)(qJ,{temporaryURL:k,isSideloading:le,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:a,onReplace:i,onSelectImage:J,onSelectURL:ce,onUploadError:ee,context:l,clientId:s,blockEditingMode:Q,parentLayoutType:S,maxContentWidth:D}),(0,xs.jsx)(va.MediaPlaceholder,{icon:(0,xs.jsx)(va.BlockIcon,{icon:cp}),onSelect:J,onSelectURL:ce,onFilesPreUpload:te,onError:ee,placeholder:pe=>(0,xs.jsxs)(JJ.Placeholder,{className:C("block-editor-media-placeholder",{[ge.className]:!!ge.className&&!r}),icon:!B&&(Ne?vB:cp),withIllustration:!r||B,label:!B&&(0,gc.__)("Image"),instructions:!Ne&&!B&&(0,gc.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&X)&&g?g:void 0,width:X&&g?"100%":d,height:d&&g?"100%":X,objectFit:v,...ge.style,...ne.style},children:[Ne&&!B&&De,!Ne&&!B&&pe,L]}),allowedTypes:zp,handleUpload:pe=>pe.length===1,value:{id:m,src:we},mediaPreview:de,disableMediaButtons:k||u})]}),r&&T&&I]})}var oee=NCe;var N4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","navigationButtonType","postId","postType","queryId","galleryId"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},focalPoint:{type:"object"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"},isDecorative:{type:"boolean",default:!1}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{dimensions:".wp-block-image img, .wp-block-image .components-placeholder",border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"};var ks=n(P(),1);var Su=n(y(),1);function nee({attributes:e}){let{url:t,alt:r,caption:o,align:a,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:p,scale:m,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:v,isDecorative:b,metadata:{bindings:_={}}={}}=e,k=l||void 0,x=(0,ks.__experimentalGetBorderClassesAndStyles)(e),w=(0,ks.__experimentalGetShadowClassesAndStyles)(e),S=C({alignnone:a==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),T=C(x.className,{[`wp-image-${f}`]:!!f}),I=(0,Su.jsx)("img",{src:t,alt:r,className:T||void 0,style:(()=>{let E={...x.style,...w.style,aspectRatio:p,objectFit:m,objectPosition:d&&m?Yd(d):void 0};return(c!==void 0||u!==void 0)&&(c==="auto"?E.width="auto":c!=null&&(E.width=typeof c=="number"?`${c}px`:c),u==="auto"||u===void 0||u===null?E.height="auto":E.height=typeof u=="number"?`${u}px`:u),E})(),title:v,role:b?"none":void 0}),D=!ks.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",L=(0,Su.jsxs)(Su.Fragment,{children:[i?(0,Su.jsx)("a",{className:s,href:i,target:h,rel:k,children:I}):I,D&&(0,Su.jsx)(ks.RichText.Content,{className:(0,ks.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Su.jsx)("figure",{...ks.useBlockProps.save({className:S}),children:L})}var D4=n(Ar(),1),Dg=n($(),1),see=n(F(),1),cee=n(re(),1);function LCe(e){let{align:t,anchor:r,className:o,style:a}=e,i=a?.spacing?.margin;return{...t&&{align:t},...r&&{anchor:r},...o&&{className:o},...i&&{style:{spacing:{margin:i}}}}}function aee(e,t){if(!e||!t?.split(/[?#]/)[0]?.toLowerCase().endsWith(".gif"))return null;let o=(0,see.select)(cee.store).getEntityRecord("postType","attachment",e,{context:"view"}),a=o?.media_details;if(!a?.animated_video||!o?.source_url)return null;let i=o.source_url.slice(0,o.source_url.lastIndexOf("/")+1);return{src:i+a.animated_video,poster:a.animated_video_poster?i+a.animated_video_poster:void 0,width:a.width,height:a.height}}function RCe(e,{shortcode:t}){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=t.content;let o=r.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==r;)o=o.parentNode;return o&&o.parentNode.removeChild(o),r.innerHTML.trim()}function OR(e,t){let{body:r}=document.implementation.createHTMLDocument("");r.innerHTML=e;let{firstElementChild:o}=r;if(o&&o.nodeName==="A")return o.getAttribute(t)||void 0}var iee={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function lee(e){return e&&/^\d+$/.test(e)?`${e}px`:void 0}var ACe=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...iee,a:{attributes:["href","rel","target"],classes:["*"],children:iee},figcaption:{children:e}}}}),MCe={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:ACe,transform:e=>{let t=e.querySelector("img"),r=e.className+" "+t.className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(r),a=e.id===""?void 0:e.id,i=o?o[1]:void 0,l=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(r),s=l?Number(l[1]):void 0,c=e.querySelector("a"),u=c&&c.href?"custom":void 0,p=c&&c.href?c.href:void 0,m=c&&c.rel?c.rel:void 0,d=c&&c.className?c.className:void 0,f=lee(t.getAttribute("width")),h=lee(t.getAttribute("height")),g=parseInt(f,10),v=parseInt(h,10),b=g&&v?String(g/v):void 0,_=f||(h?"auto":void 0),k=f?"auto":h,x=(0,Dg.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:s,linkDestination:u,href:p,rel:m,linkClass:d,anchor:a,width:_,height:k,aspectRatio:b});return(0,D4.isBlobURL)(x.url)&&(x.blob=x.url,delete x.url),(0,Dg.createBlock)("core/image",x)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,Dg.createBlock)("core/image",{blob:(0,D4.createBlobURL)(r)}))}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:RCe},href:{shortcode:(e,{shortcode:t})=>OR(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>OR(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>OR(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}],to:[{type:"block",blocks:["core/video"],isMatch:({id:e,url:t})=>!!aee(e,t),transform(e){let{id:t,url:r,caption:o}=e,a=aee(t,r);return(0,Dg.createBlock)("core/video",{...LCe(e),id:t,src:a.src,poster:a.poster,caption:o,controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0,width:a.width,height:a.height})}}]},uee=MCe;var{fieldsKey:zCe,formKey:VCe}=j(pee.privateApis),{name:mee}=N4,L4={icon:cp,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Zp.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){let{caption:o,alt:a,url:i}=e;return i?a?a+(o?". "+o:""):o||"":(0,Zp.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:uee,edit:oee,save:nee,deprecated:DJ};window.__experimentalContentOnlyInspectorFields&&(L4[zCe]=[{id:"image",label:(0,Zp.__)("Image"),type:"media",Edit:{control:"media",allowedTypes:["image"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption}),setValue:({value:e})=>({id:e.id,url:e.url,alt:e.alt,caption:e.caption})},{id:"link",label:(0,Zp.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget}),isVisible:e=>!e.isDecorative},{id:"caption",label:(0,Zp.__)("Caption"),type:"text",Edit:"rich-text",isVisible:e=>!e.isDecorative},{id:"alt",label:(0,Zp.__)("Alt text"),type:"text",isVisible:e=>!e.isDecorative},{id:"isDecorative",label:(0,Zp.__)("Mark as decorative"),type:"boolean",setValue:({value:e})=>({isDecorative:e||void 0,...e&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}],L4[VCe]={fields:["image","link","caption","alt","isDecorative"]});var OCe=()=>R({name:mee,metadata:N4,settings:L4});var HR={};K(HR,{init:()=>GCe,metadata:()=>R4,name:()=>vee,settings:()=>bee});var R4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayContent:{type:"string",default:"excerpt",enum:["none","excerpt","full"]}},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-latest-comments"};var A4=n(P(),1),Vn=n(O(),1),zn=n(N(),1),dee=n(ap(),1),fee=n(ve(),1);var co=n(y(),1),HCe=1,jCe=100;function hee({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:a,displayDate:i,displayContent:l}=e,s=Z(),{content:c,status:u,error:p}=(0,dee.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),m=(0,fee.useDisabled)(),d=(0,A4.useBlockProps)({ref:m});return(0,co.jsxs)(co.Fragment,{children:[(0,co.jsx)(A4.InspectorControls,{children:(0,co.jsxs)(Vn.__experimentalToolsPanel,{label:(0,zn.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,co.jsx)(Vn.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,zn.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,co.jsx)(Vn.ToggleControl,{label:(0,zn.__)("Display avatar"),checked:a,onChange:()=>t({displayAvatar:!a})})}),(0,co.jsx)(Vn.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,zn.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,co.jsx)(Vn.ToggleControl,{label:(0,zn.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,co.jsx)(Vn.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,zn.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,co.jsx)(Vn.SelectControl,{label:(0,zn.__)("Display content"),value:l,options:[{label:(0,zn.__)("No content"),value:"none"},{label:(0,zn.__)("Excerpt"),value:"excerpt"},{label:(0,zn.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,co.jsx)(Vn.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,zn.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,co.jsx)(Vn.RangeControl,{label:(0,zn.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:HCe,max:jCe,required:!0})})]})}),u==="loading"&&(0,co.jsx)("div",{...d,children:(0,co.jsx)(Vn.Spinner,{})}),u==="error"&&(0,co.jsx)("div",{...d,children:(0,co.jsx)("p",{children:(0,zn.sprintf)((0,zn.__)("Error: %s"),p)})}),u==="success"&&(0,co.jsx)(_o,{wrapperProps:d,html:c})]})}var UCe={attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},gee=[UCe];var{name:vee}=R4,bee={icon:$1,example:{},edit:hee,deprecated:gee},GCe=()=>R({name:vee,metadata:R4,settings:bee});var GR={};K(GR,{init:()=>tSe,metadata:()=>rf,name:()=>Tee,settings:()=>Pee});var rf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{anchor:!0,align:!0,html:!1,layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var $Ce={anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,layout:!0,spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},qCe={postLayout:{type:"string",default:"list"},columns:{type:"number",default:3}},yee=e=>!e.categories||typeof e.categories!="string"?e:{...e,categories:[{id:Number(e.categories)}]},ZCe=e=>{let{postLayout:t,columns:r,...o}=e;return t?{...o,layout:{type:t==="grid"?"grid":"default",...t==="grid"&&r&&{columnCount:r}}}:e},_ee=[{attributes:{...rf.attributes,...qCe,categories:{type:["array","string"]}},supports:$Ce,migrate:e=>ZCe(yee(e)),isEligible:({postLayout:e})=>e,save:()=>null},{attributes:{...rf.attributes,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:yee,isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var Xe=n(O(),1),Ge=n(N(),1),Lg=n(Lw(),1),vc=n(P(),1),qb=n(F(),1);var jR=n(re(),1),wee=n(Sr(),1),Cee=n(ve(),1),See=n(H(),1);var xee=10,kee=100,M4=55;var Ie=n(y(),1),KCe={per_page:-1,_fields:"id,name",context:"view"},YCe={per_page:-1,has_published_posts:["post"],context:"view"},QCe=[{value:"none",icon:W9,label:(0,Ge.__)("None")},{value:"left",icon:kB,label:(0,Ge.__)("Left")},{value:"center",icon:_B,label:(0,Ge.__)("Center")},{value:"right",icon:CB,label:(0,Ge.__)("Right")}];function XCe(e,t){let r=e._embedded?.["wp:featuredmedia"]?.["0"];return{url:r?.media_details?.sizes?.[t]?.source_url??r?.source_url,alt:r?.alt_text}}function JCe(e){return e._embedded?.author?.[0]}function eSe({attributes:e,setAttributes:t}){let{postsToShow:r,order:o,orderBy:a,categories:i,selectedAuthor:l,displayFeaturedImage:s,displayPostContentRadio:c,displayPostContent:u,displayPostDate:p,displayAuthor:m,excerptLength:d,featuredImageAlign:f,featuredImageSizeSlug:h,featuredImageSizeWidth:g,featuredImageSizeHeight:v,addLinkToFeaturedImage:b}=e,{imageSizes:_,defaultImageWidth:k,defaultImageHeight:x,categoriesList:w,authorList:S}=(0,qb.useSelect)(E=>{let{getEntityRecords:B,getUsers:A}=E(jR.store),z=E(vc.store).getSettings();return{defaultImageWidth:z.imageDimensions?.[h]?.width??0,defaultImageHeight:z.imageDimensions?.[h]?.height??0,imageSizes:z.imageSizes,categoriesList:B("taxonomy","category",KCe),authorList:A(YCe)}},[h]),T=Z(),I=_.filter(({slug:E})=>E!=="full").map(({name:E,slug:B})=>({value:B,label:E})),D=w?.reduce((E,B)=>(E[B.name]=B,E),{})??{},L=E=>{if(E.some(z=>typeof z=="string"&&!D[z]))return;let A=E.map(z=>typeof z=="string"?D[z]:z);if(A.includes(null))return!1;t({categories:A})};return(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsxs)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:M4}),dropdownMenuProps:T,children:[(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Ge.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display post content"),checked:u,onChange:E=>t({displayPostContent:E})})}),u&&(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>c!=="excerpt",label:(0,Ge.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.RadioControl,{label:(0,Ge.__)("Content length"),selected:c,options:[{label:(0,Ge.__)("Excerpt"),value:"excerpt"},{label:(0,Ge.__)("Full post"),value:"full_post"}],onChange:E=>t({displayPostContentRadio:E})})}),u&&c==="excerpt"&&(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>d!==M4,label:(0,Ge.__)("Max number of words"),onDeselect:()=>t({excerptLength:M4}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.RangeControl,{label:(0,Ge.__)("Max number of words"),value:d,onChange:E=>t({excerptLength:E}),min:xee,max:kee})})]}),(0,Ie.jsxs)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:T,children:[(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Ge.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display author name"),checked:m,onChange:E=>t({displayAuthor:E})})}),(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ge.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display post date"),checked:p,onChange:E=>t({displayPostDate:E})})})]}),(0,Ie.jsxs)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:T,children:[(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ge.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Display featured image"),checked:s,onChange:E=>t({displayFeaturedImage:E})})}),s&&(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>h!=="thumbnail"||g!==null||v!==null,label:(0,Ge.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,Ie.jsx)(vc.__experimentalImageSizeControl,{onChange:E=>{let B={};E.hasOwnProperty("width")&&(B.featuredImageSizeWidth=E.width),E.hasOwnProperty("height")&&(B.featuredImageSizeHeight=E.height),t(B)},slug:h,width:g,height:v,imageWidth:k,imageHeight:x,imageSizeOptions:I,imageSizeHelp:(0,Ge.__)("Select the size of the source image."),onChangeImage:E=>t({featuredImageSizeSlug:E,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,Ge.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",label:(0,Ge.__)("Image alignment"),value:f||"none",onChange:E=>t({featuredImageAlign:E!=="none"?E:void 0}),children:QCe.map(({value:E,icon:B,label:A})=>(0,Ie.jsx)(Xe.__experimentalToggleGroupControlOptionIcon,{value:E,icon:B,label:A},E))})}),(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,Ge.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.ToggleControl,{label:(0,Ge.__)("Add link to featured image"),checked:b,onChange:E=>t({addLinkToFeaturedImage:E})})})]})]}),(0,Ie.jsx)(Xe.__experimentalToolsPanel,{label:(0,Ge.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),dropdownMenuProps:T,children:(0,Ie.jsx)(Xe.__experimentalToolsPanelItem,{hasValue:()=>o!=="desc"||a!=="date"||r!==5||i?.length>0||!!l,label:(0,Ge.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,Ie.jsx)(Xe.QueryControls,{order:o,orderBy:a,numberOfItems:r,onOrderChange:E=>t({order:E}),onOrderByChange:E=>t({orderBy:E}),onNumberOfItemsChange:E=>t({postsToShow:E}),categorySuggestions:D,onCategoryChange:L,selectedCategories:i,onAuthorChange:E=>t({selectedAuthor:E!==""?Number(E):void 0}),authorList:S??[],selectedAuthorId:l})})})]})}function UR({attributes:e,setAttributes:t,__unstableLayoutClassNames:r}){let o=(0,Cee.useInstanceId)(UR),{postsToShow:a,order:i,orderBy:l,categories:s,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:p,displayPostContent:m,displayPostDate:d,displayAuthor:f,layout:h,postLayout:g,columns:v,excerptLength:b,featuredImageAlign:_,featuredImageSizeSlug:k,featuredImageSizeWidth:x,featuredImageSizeHeight:w,addLinkToFeaturedImage:S}=e,{type:T,minimumColumnWidth:I}=h||{},D=T||(g==="grid"?"grid":"default"),L=h?.columnCount??(T?void 0:v)??3,{latestPosts:E}=(0,qb.useSelect)(Y=>{let{getEntityRecords:ee}=Y(jR.store),te=s&&s.length>0?s.map(J=>J.id):[],oe=Object.fromEntries(Object.entries({categories:te,author:c,order:i,orderby:l,per_page:a,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,J])=>typeof J<"u"));return{latestPosts:ee("postType","post",oe)}},[a,i,l,s,c]),{createWarningNotice:B}=(0,qb.useDispatch)(wee.store),A=Y=>{Y.preventDefault(),B((0,Ge.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${o}`,type:"snackbar"})},z=!!E?.length,U=(0,Ie.jsx)(vc.InspectorControls,{children:(0,Ie.jsx)(eSe,{attributes:e,setAttributes:t})}),q=(0,vc.useBlockProps)({className:C(r,{"wp-block-latest-posts__list":!0,"is-grid":D==="grid","has-dates":d,"has-author":f,[`columns-${L}`]:D==="grid"&&L,"has-native-responsive-grid":D==="grid"&&L&&I})});if(!z)return(0,Ie.jsxs)("div",{...q,children:[U,(0,Ie.jsx)(Xe.Placeholder,{icon:mv,label:(0,Ge.__)("Latest Posts"),children:Array.isArray(E)?(0,Ge.__)("No posts found."):(0,Ie.jsx)(Xe.Spinner,{})})]});let G=E.length>a?E.slice(0,a):E,W=Y=>t({layout:{...h,...Y},postLayout:void 0,columns:void 0}),V=[{icon:ql,title:(0,Ge._x)("List view","Latest posts block display setting"),onClick:()=>W({type:"default"}),isActive:D==="default"||D==="constrained"},{icon:$l,title:(0,Ge._x)("Grid view","Latest posts block display setting"),onClick:()=>W({type:"grid",columnCount:L}),isActive:D==="grid"}],Q=(0,Lg.getSettings)().formats.date;return(0,Ie.jsxs)(Ie.Fragment,{children:[U,(0,Ie.jsx)(vc.BlockControls,{children:(0,Ie.jsx)(Xe.ToolbarGroup,{controls:V})}),(0,Ie.jsx)("ul",{...q,children:G.map(Y=>{let ee=Y.title.rendered.trim(),te=Y.excerpt.rendered,oe=JCe(Y),J=document.createElement("div");J.innerHTML=te,te=J.textContent||J.innerText||"";let{url:ce,alt:ie}=XCe(Y,k),we=C({"wp-block-latest-posts__featured-image":!0,[`align${_}`]:!!_}),le=u&&ce,de=le&&(0,Ie.jsx)("img",{src:ce,alt:ie,style:{maxWidth:x,maxHeight:w}}),ne=b<te.trim().split(" ").length&&Y.excerpt.raw===""?(0,Ie.jsxs)(Ie.Fragment,{children:[te.trim().split(" ",b).join(" "),(0,See.createInterpolateElement)((0,Ge.sprintf)((0,Ge.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),ee||(0,Ge.__)("(no title)")),{a:(0,Ie.jsx)("a",{className:"wp-block-latest-posts__read-more",href:Y.link,rel:"noopener",onClick:A}),span:(0,Ie.jsx)("span",{className:"screen-reader-text"})})]}):te;return(0,Ie.jsxs)("li",{children:[le&&(0,Ie.jsx)("div",{className:we,children:S?(0,Ie.jsx)("a",{href:Y.link,onClick:A,children:de}):de}),(0,Ie.jsx)("a",{className:"wp-block-latest-posts__post-title",href:Y.link,dangerouslySetInnerHTML:ee?{__html:ee}:void 0,onClick:A,children:ee?null:(0,Ge.__)("(no title)")}),f&&oe&&(0,Ie.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Ge.sprintf)((0,Ge.__)("by %s"),oe.name)}),d&&Y.date_gmt&&(0,Ie.jsx)("time",{dateTime:(0,Lg.format)("c",Y.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,Lg.dateI18n)(Q,Y.date_gmt)}),m&&p==="excerpt"&&(0,Ie.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:ne}),m&&p==="full_post"&&(0,Ie.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:Y.content.rendered.trim()}})]},Y.id)})})]})}var{name:Tee}=rf,Pee={icon:bv,example:{},edit:UR,deprecated:_ee},tSe=()=>R({name:Tee,metadata:rf,settings:Pee});var ZR={};K(ZR,{init:()=>gSe,metadata:()=>H4,name:()=>Hee,settings:()=>jee});var Mg=n(N(),1);var ws=n(P(),1);var Rg=n($(),1),z4={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function WR(e){let t=e.getAttribute("type"),r={ordered:e.tagName==="OL",anchor:e.id?e.id:void 0,start:e.getAttribute("start")?parseInt(e.getAttribute("start"),10):void 0,reversed:e.hasAttribute("reversed")?!0:void 0,type:t&&z4[t]?z4[t]:void 0},o=Array.from(e.children).map(a=>{let i=Array.from(a.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,Rg.createBlock)("core/list-item",{content:a.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let p={content:u.join("").trim()},m=[WR(l)];return(0,Rg.createBlock)("core/list-item",p,m)});return(0,Rg.createBlock)("core/list",r,o)}function V4(e){let{values:t,start:r,reversed:o,ordered:a,type:i,...l}=e,s=document.createElement(a?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),o&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,Rg.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function Eee(e){let{type:t}=e;return t&&z4[t]?{...e,type:z4[t]}:e}var Tu=n(y(),1),rSe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:o,reversed:a,start:i}=e;return(0,Tu.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({type:o,reversed:a,start:i}),children:(0,Tu.jsx)(ws.RichText.Content,{value:r,multiline:"li"})})},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},oSe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:r,type:o,reversed:a,start:i}=e;return(0,Tu.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({type:o,reversed:a,start:i}),children:(0,Tu.jsx)(ws.RichText.Content,{value:r,multiline:"li"})})},migrate:V4},nSe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible({type:e}){return!!e},save({attributes:e}){let{ordered:t,type:r,reversed:o,start:a}=e;return(0,Tu.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({type:r,reversed:o,start:a}),children:(0,Tu.jsx)(ws.InnerBlocks.Content,{})})},migrate:Eee},aSe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,type:r,reversed:o,start:a}=e;return(0,Tu.jsx)(t?"ol":"ul",{...ws.useBlockProps.save({reversed:o,start:a,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Tu.jsx)(ws.InnerBlocks.Content,{})})}},Bee=[aSe,nSe,oSe,rSe];var Ss=n(P(),1),O4=n(O(),1),Kp=n(F(),1),Cs=n(N(),1);var Aee=n($(),1),F4=n(H(),1),Mee=n(xd(),1);var Mi=n(N(),1),Iee=n(P(),1),Cl=n(O(),1);var bc=n(y(),1),iSe=[{label:(0,Mi.__)("Numbers"),value:"decimal"},{label:(0,Mi.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Mi.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Mi.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Mi.__)("Lowercase Roman numerals"),value:"lower-roman"}],lSe=({setAttributes:e,reversed:t,start:r,type:o})=>{let a=Z();return(0,bc.jsx)(Iee.InspectorControls,{children:(0,bc.jsxs)(Cl.__experimentalToolsPanel,{label:(0,Mi.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:a,children:[(0,bc.jsx)(Cl.__experimentalToolsPanelItem,{label:(0,Mi.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,bc.jsx)(Cl.SelectControl,{label:(0,Mi.__)("List style"),options:iSe,value:o||"decimal",onChange:i=>e({type:i})})}),(0,bc.jsx)(Cl.__experimentalToolsPanelItem,{label:(0,Mi.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,bc.jsx)(Cl.TextControl,{label:(0,Mi.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(r)?r.toString(10):"",step:"1"})}),(0,bc.jsx)(Cl.__experimentalToolsPanelItem,{label:(0,Mi.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,bc.jsx)(Cl.ToggleControl,{label:(0,Mi.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},Nee=lSe;var Dee=n(H(),1),Lee=n(y(),1);function sSe(e,t){let{ordered:r,...o}=e;return(0,Lee.jsx)(r?"ol":"ul",{ref:t,...o})}var Ree=(0,Dee.forwardRef)(sSe);var Ya=n(y(),1),cSe={name:"core/list-item"},uSe=[["core/list-item"]];function pSe(e,t){let r=(0,Kp.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,Kp.useDispatch)(Ss.store);(0,F4.useEffect)(()=>{if(!e.values)return;let[i,l]=V4(e);(0,Mee.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),a(t,l)})},[e.values])}function mSe(e){let{replaceBlocks:t,selectionChange:r}=(0,Kp.useDispatch)(Ss.store),{getBlockRootClientId:o,getBlockAttributes:a,getBlock:i}=(0,Kp.useSelect)(Ss.store);return(0,F4.useCallback)(()=>{let l=o(e),s=a(l),c=(0,Aee.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function dSe({clientId:e}){let t=mSe(e),r=(0,Kp.useSelect)(o=>{let{getBlockRootClientId:a,getBlockName:i}=o(Ss.store);return i(a(e))==="core/list-item"},[e]);return(0,Ya.jsx)(Ya.Fragment,{children:(0,Ya.jsx)(O4.ToolbarButton,{icon:(0,Cs.isRTL)()?rv:ov,title:(0,Cs.__)("Outdent"),description:(0,Cs.__)("Outdent list item"),disabled:!r,onClick:t})})}function zee({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:a,reversed:i,start:l}=e,s=(0,Ss.useBlockProps)({style:{listStyleType:o&&a!=="decimal"?a:void 0}}),c=(0,Ss.useInnerBlocksProps)(s,{defaultBlock:cSe,directInsert:!0,template:uSe,templateLock:!1,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0});pSe(e,r);let u=(0,Ya.jsxs)(Ss.BlockControls,{group:"block",children:[(0,Ya.jsx)(O4.ToolbarButton,{icon:(0,Cs.isRTL)()?J1:ev,title:(0,Cs.__)("Unordered"),description:(0,Cs.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,Ya.jsx)(O4.ToolbarButton,{icon:(0,Cs.isRTL)()?tv:ll,title:(0,Cs.__)("Ordered"),description:(0,Cs.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,Ya.jsx)(dSe,{clientId:r})]});return(0,Ya.jsxs)(Ya.Fragment,{children:[(0,Ya.jsx)(Ree,{ordered:o,reversed:i,start:l,...c}),u,o&&(0,Ya.jsx)(Nee,{setAttributes:t,reversed:i,start:l,type:a})]})}var H4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"An organized collection of items displayed in a specific order.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalBorder:{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}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0},listView:!0},selectors:{border:".wp-block-list:not(.wp-block-list .wp-block-list)"},editorStyle:"wp-block-list-editor",style:"wp-block-list"};var j4=n(P(),1),$R=n(y(),1);function Vee({attributes:e}){let{ordered:t,type:r,reversed:o,start:a}=e;return(0,$R.jsx)(t?"ol":"ul",{...j4.useBlockProps.save({reversed:o,start:a,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,$R.jsx)(j4.InnerBlocks.Content,{})})}var Pu=n($(),1),Ag=n(es(),1);function Oee({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function qR(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...qR(o)]:qR(o))}var hSe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Pu.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,Ag.create)({html:e[0].content});t=(0,Ag.split)(r,`
`).map(o=>(0,Pu.createBlock)("core/list-item",{content:(0,Ag.toHTMLString)({value:o})}))}return(0,Pu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:Oee(e).ol,ul:Oee(e).ul}),transform:WR},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Pu.createBlock)("core/list",{},[(0,Pu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Pu.createBlock)("core/list",{ordered:!0},[(0,Pu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>qR(r).map(o=>(0,Pu.createBlock)(e,{content:o}))}))]},Fee=hSe;var{name:Hee}=H4,jee={icon:ql,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Mg.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Mg.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Mg.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Mg.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Mg.__)("The Queen of Hearts.")}}]},transforms:Fee,edit:zee,save:Vee,deprecated:Bee},gSe=()=>R({name:Hee,metadata:H4,settings:jee});var YR={};K(YR,{init:()=>_Se,metadata:()=>G4,name:()=>Qee,settings:()=>Xee});var Yp=n(N(),1),U4=n(P(),1),Xp=n(O(),1),Qp=n(H(),1),Uee=n(F(),1),Gee=n(Rh(),1);var zi=n(y(),1),{Badge:vSe}=j(Xp.privateApis);function Wee({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:a}=e,[i,l]=(0,Qp.useState)(),[s,c]=(0,Qp.useState)(null),[u,p]=(0,Qp.useState)(),m=(0,Qp.useRef)(o),{__unstableMarkNextChangeAsNotPersistent:d}=(0,Uee.useDispatch)(U4.store);(0,Qp.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{p(()=>h.default),m.current&&(d(),t({mathML:h.default(m.current,{displayMode:!0})}))})},[m,t,d]);let f=(0,U4.useBlockProps)({ref:l,position:"relative"});return(0,zi.jsxs)("div",{...f,children:[a?(0,zi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:a}}):"\u200B",r&&(0,zi.jsx)(Xp.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,zi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,zi.jsxs)(Xp.__experimentalVStack,{spacing:1,children:[(0,zi.jsx)(Xp.TextareaControl,{__next40pxDefaultSize:!0,label:(0,Yp.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:o,className:"wp-block-math__textarea-control",onChange:h=>{if(!u){t({latex:h});return}let g="";try{g=u(h,{displayMode:!0}),c(null)}catch(v){c(v.message),(0,Gee.speak)((0,Yp.sprintf)((0,Yp.__)("Error parsing mathematical expression: %s"),v.message))}t({mathML:g,latex:h})},placeholder:(0,Yp.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,zi.jsxs)(zi.Fragment,{children:[(0,zi.jsx)(vSe,{intent:"error",className:"wp-block-math__error",children:(0,Yp.sprintf)((0,Yp.__)("Error: %s"),s)}),(0,zi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var G4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/math",title:"Math",category:"text",description:"Display mathematical notation using LaTeX.",keywords:["equation","formula","latex","mathematics"],textdomain:"default",supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var $ee=n(P(),1),KR=n(y(),1);function qee({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,KR.jsx)("div",{...$ee.useBlockProps.save(),children:(0,KR.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var Zee=n(P(),1),Kee=n(y(),1),ySe={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,Kee.jsx)("math",{...Zee.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},Yee=[ySe];var{name:Qee}=G4,Xee={icon:qE,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">\u2212</mo><mi>b</mi><mo>\xB1</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>\u2212</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:Wee,save:qee,deprecated:Yee},_Se=()=>R({name:Qee,metadata:G4,settings:Xee});var aA={};K(aA,{init:()=>ESe,metadata:()=>W4,name:()=>bte,settings:()=>Y4});var hte=n(N(),1);var gte=n(P(),1),vte=n($(),1);var W4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List Item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"An individual item within a list.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",role:"content"}},supports:{anchor:!0,html:!1,className:!1,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,background:!0,__experimentalDefaultControls:{text:!0}},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}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-list > li",border:".wp-block-list:not(.wp-block-list .wp-block-list) > li"}};var _c=n(P(),1),yc=n(N(),1),nA=n(O(),1);var cte=n(ve(),1),ute=n(F(),1),pte=n(Ks(),1);var Jee=n(H(),1),zg=n(F(),1),QR=n(P(),1),ete=n($(),1);function Eu(){let e=(0,zg.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:o,updateBlockListSettings:a}=(0,zg.useDispatch)(QR.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:p,getBlockListSettings:m}=(0,zg.useSelect)(QR.store);function d(f){let h=i(f),g=i(h);if(g&&l(g)==="core/list-item")return g}return(0,Jee.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let h=f[0];if(l(h)!=="core/list-item")return;let g=d(h);if(!g)return;let v=i(h),b=f[f.length-1],k=s(v).slice(c(b)+1);return e.batch(()=>{if(k.length){let x=s(h)[0];if(!x){let w=(0,ete.cloneBlock)(p(v),{},[]);x=w.clientId,o(w,0,h,!1),a(x,m(v))}t(k,v,x)}t(f,v,i(g),c(g)+1),s(v).length||r(v,!1)}),!0},[])}var tte=n(H(),1),$4=n(F(),1),XR=n(P(),1),Zb=n($(),1);function Kb(e){let{replaceBlocks:t,selectionChange:r,multiSelect:o}=(0,$4.useDispatch)(XR.store),{getBlock:a,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,$4.useSelect)(XR.store);return(0,tte.useCallback)(()=>{let p=c(),m=p?u():[e],d=m.map(b=>(0,Zb.cloneBlock)(a(b))),f=i(e),h=(0,Zb.cloneBlock)(a(f));h.innerBlocks?.length||(h.innerBlocks=[(0,Zb.createBlock)("core/list")]),h.innerBlocks[h.innerBlocks.length-1].innerBlocks.push(...d);let g=l(),v=s();return t([f,...m],[h]),p?o(d[0].clientId,d[d.length-1].clientId):r(d[0].clientId,v.attributeKey,v.clientId===g.clientId?g.offset:v.offset,v.offset),!0},[e])}var of=n($(),1),rte=n(ve(),1),ote=n(es(),1),nte=n(Ks(),1),q4=n(F(),1),JR=n(P(),1);var{subscribeOwnedListener:kSe}=j(ote.privateApis);function eA(e){let{replaceBlocks:t,selectionChange:r}=(0,q4.useDispatch)(JR.store),{getBlock:o,getBlockAttributes:a,getBlockRootClientId:i,getBlockIndex:l,getBlockName:s}=(0,q4.useSelect)(JR.store),c=Eu();return(0,rte.useRefEffect)(u=>{function p(m){if(m.defaultPrevented||m.keyCode!==nte.ENTER)return;let{content:d}=a(e)??{};if(d?.length)return;if(m.preventDefault(),s(i(i(e)))==="core/list-item"){c();return}let h=o(i(e)),g=l(e),v=(0,of.cloneBlock)({...h,innerBlocks:h.innerBlocks.slice(0,g)}),b=(0,of.createBlock)((0,of.getDefaultBlockName)()),_=[...h.innerBlocks[g].innerBlocks[0]?.innerBlocks||[],...h.innerBlocks.slice(g+1)],k=_.length?[(0,of.cloneBlock)({...h,innerBlocks:_})]:[];t(h.clientId,[v,b,...k],1),r(b.clientId)}return kSe(u,"keydown",p,!0)},[])}var ate=n(ve(),1),ite=n(es(),1),Yb=n(Ks(),1),lte=n(P(),1),ste=n(F(),1);var{subscribeOwnedListener:wSe}=j(ite.privateApis);function tA(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:o}=(0,ste.useSelect)(lte.store),a=Kb(e),i=Eu();return(0,ate.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:p,altKey:m,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==Yb.SPACE&&u!==Yb.TAB||m||d||f)return;let h=t(),g=r();h.offset===0&&g.offset===0&&(p?u===Yb.TAB&&i()&&c.preventDefault():o(e)!==0&&a()&&c.preventDefault())}return wSe(l,"keydown",s,!0)},[e,a])}var Vg=n(F(),1),rA=n(P(),1),Z4=n($(),1);function oA(e,t){let r=(0,Vg.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:a,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,Vg.useSelect)(rA.store),{mergeBlocks:u,moveBlocksToPosition:p,removeBlock:m,insertBlocks:d}=(0,Vg.useDispatch)(rA.store),f=Eu();function h(v){let b=i(v);return b.length?h(b[b.length-1]):v}function g(v){let b=l(v),_=l(b);if(_&&s(_)==="core/list-item")return _}return v=>{function b(_,k){r.batch(()=>{let[x]=i(k);x&&(o(k)===_&&!i(_).length?p([x],k,_):p(i(x),x,l(_))),u(_,k)})}if(v){let _=i(e)[0],k,x=e;if(_)k=i(_)[0];else for(;!(k=a(x));){let w=g(x);if(!w)break;x=w}if(k)g(k)?f(k):b(e,k);else{let w=l(x),S=a(w);if(S)if(s(S)==="core/list")r.batch(()=>{p(i(S),S,w),m(S,!1)});else{let I=(0,Z4.switchToBlockType)(c(S),"core/list")?.[0]?.innerBlocks;I?.length&&r.batch(()=>{d(I,void 0,w,!1),m(S,!1)})}}}else{if(g(e)){f(e);return}let _=o(e);if(_){let x=h(_);b(x,e);return}let k=i(e);(0,Z4.isUnmodifiedBlock)(c(e),"content")&&k.length>0?r.batch(()=>{f(i(k[0])),m(e,!0)}):t(v)}}}var Vi=n(y(),1);function CSe({clientId:e}){let t=Kb(e),r=Eu(),{canIndent:o,canOutdent:a}=(0,ute.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(_c.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,Vi.jsxs)(Vi.Fragment,{children:[(0,Vi.jsx)(nA.ToolbarButton,{icon:(0,yc.isRTL)()?rv:ov,title:(0,yc.__)("Outdent"),shortcut:pte.displayShortcut.shift("Tab"),description:(0,yc.__)("Outdent list item"),disabled:!a,onClick:()=>r()}),(0,Vi.jsx)(nA.ToolbarButton,{icon:(0,yc.isRTL)()?QP:JP,title:(0,yc.__)("Indent"),shortcut:"Tab",description:(0,yc.__)("Indent list item"),disabled:!o,onClick:()=>t()})]})}function mte({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:a,content:i}=e,l=(0,_c.useBlockProps)(),s=(0,_c.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=eA(r),u=tA(r),p=oA(r,o);return(0,Vi.jsxs)(Vi.Fragment,{children:[(0,Vi.jsxs)("li",{...s,children:[(0,Vi.jsx)(_c.RichText,{ref:(0,cte.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:m=>t({content:m}),value:i,"aria-label":(0,yc.__)("List text"),placeholder:a||(0,yc.__)("List"),onMerge:p}),s.children]}),(0,Vi.jsx)(_c.BlockControls,{group:"block",children:(0,Vi.jsx)(CSe,{clientId:r})})]})}var Og=n(P(),1),Qb=n(y(),1);function dte({attributes:e}){return(0,Qb.jsxs)("li",{...Og.useBlockProps.save(),children:[(0,Qb.jsx)(Og.RichText.Content,{value:e.content}),(0,Qb.jsx)(Og.InnerBlocks.Content,{})]})}var K4=n($(),1),SSe={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,K4.createBlock)("core/paragraph",e),...t.map(r=>(0,K4.cloneBlock)(r))]}]},fte=SSe;var{fieldsKey:TSe,formKey:PSe}=j(vte.privateApis),{name:bte}=W4,Y4={icon:OE,edit:mte,save:dte,merge(e,t){return{...e,content:e.content+t.content}},transforms:fte,[j(gte.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,o=e?.metadata?.name,a=r?.trim().length>0;if(t==="list-view"&&(o||a))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(Y4[TSe]=[{id:"content",label:(0,hte.__)("Content"),type:"text",Edit:"rich-text"}],Y4[PSe]={fields:["content"]});var ESe=()=>R({name:bte,metadata:W4,settings:Y4});var iA={};K(iA,{init:()=>ISe,metadata:()=>X4,name:()=>_te,settings:()=>xte});var Q4=n(P(),1),Jp=n(O(),1),nf=n(N(),1);var Oi=n(y(),1);function yte({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,a=Z();return(0,Oi.jsxs)(Oi.Fragment,{children:[(0,Oi.jsx)(Q4.InspectorControls,{children:(0,Oi.jsxs)(Jp.__experimentalToolsPanel,{label:(0,nf.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:a,children:[(0,Oi.jsx)(Jp.__experimentalToolsPanelItem,{label:(0,nf.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Oi.jsx)(Jp.ToggleControl,{label:(0,nf.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,Oi.jsx)(Jp.__experimentalToolsPanelItem,{label:(0,nf.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Oi.jsx)(Jp.ToggleControl,{label:(0,nf.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,Oi.jsx)("div",{...(0,Q4.useBlockProps)({className:"logged-in"}),children:(0,Oi.jsx)("a",{href:"#login-pseudo-link",children:(0,nf.__)("Log out")})})]})}var X4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},example:{viewportWidth:350},supports:{anchor:!0,className:!0,color:{background:!0,text:!1,gradients:!0,link:!0},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}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:_te}=X4,xte={icon:jE,edit:yte},ISe=()=>R({name:_te,metadata:X4,settings:xte});var mA={};K(mA,{init:()=>JSe,metadata:()=>cC,name:()=>jte,settings:()=>uC});var ey=n(N(),1);var Hte=n($(),1);var gr=n(P(),1),lA=n(ve(),1);var kte=n(N(),1),xc="full",Xb=15,J4="none",eC="media",tC="attachment",wte=[["core/paragraph",{placeholder:(0,kte._x)("Content\u2026","content placeholder")}]];var Re=n(y(),1),rC=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},Cte=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},af=50,kc=()=>{},Ste=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},Fg=e=>e.align?e:{...e,align:"wide"},oC={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},sA={...oC,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Tte={...sA,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},NSe={...Tte,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},cA={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Pte={...cA,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},DSe={...Pte,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},LSe={attributes:NSe,supports:DSe,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=i?(0,Re.jsx)("img",{src:i,alt:r,className:b||null}):null;d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?Cte(i,p):{},S;l!==af&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()})]}):(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},RSe={attributes:Tte,supports:Pte,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?Cte(i,p):{},S;l!==af&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()})]}):(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Fg,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},ASe={attributes:sA,supports:cA,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?rC(i,p):{},S;l!==af&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()})]}):(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Fg},MSe={attributes:sA,supports:cA,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=(0,Re.jsx)("img",{src:i,alt:r,className:b||null});d&&(_=(0,Re.jsx)("a",{className:m,href:d,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:i})},x=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),w=u?rC(i,p):{},S;l!==af&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return(0,Re.jsxs)("div",{...gr.useBlockProps.save({className:x,style:T}),children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[a]||kc)()}),(0,Re.jsx)("div",{...gr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Fg},zSe={attributes:{...oC,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,lA.compose)(Ste,Fg),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:p,imageFill:m,focalPoint:d,linkClass:f,href:h,linkTarget:g,rel:v}=e,b=v||void 0,_=(0,Re.jsx)("img",{src:s,alt:a,className:u&&l==="image"?`wp-image-${u}`:null});h&&(_=(0,Re.jsx)("a",{className:f,href:h,target:g,rel:b,children:_}));let k={image:()=>_,video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},x=(0,gr.getColorClassName)("background-color",t),w=C({"has-media-on-the-right":i==="right","has-background":x||r,[x]:x,"is-stacked-on-mobile":o,[`is-vertically-aligned-${p}`]:p,"is-image-fill":m}),S=m?rC(s,d):{},T;return c!==af&&(T=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:w,style:{backgroundColor:x?void 0:r,gridTemplateColumns:T},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(k[l]||kc)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(gr.InnerBlocks.Content,{})})]})}},VSe={attributes:{...oC,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,lA.compose)(Ste,Fg),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:p,imageFill:m,focalPoint:d}=e,f={image:()=>(0,Re.jsx)("img",{src:s,alt:a,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},h=(0,gr.getColorClassName)("background-color",t),g=C({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":o,[`is-vertically-aligned-${p}`]:p,"is-image-fill":m}),v=m?rC(s,d):{},b;return c!==af&&(b=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:g,style:{backgroundColor:h?void 0:r,gridTemplateColumns:b},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[l]||kc)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(gr.InnerBlocks.Content,{})})]})}},OSe={attributes:{...oC,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Fg,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:a,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,Re.jsx)("img",{src:s,alt:a}),video:()=>(0,Re.jsx)("video",{controls:!0,src:s})},p=(0,gr.getColorClassName)("background-color",t),m=C({"has-media-on-the-right":i==="right",[p]:p,"is-stacked-on-mobile":o}),d;return c!==af&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Re.jsxs)("div",{className:m,style:{backgroundColor:p?void 0:r,gridTemplateColumns:d},children:[(0,Re.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||kc)()}),(0,Re.jsx)("div",{className:"wp-block-media-text__content",children:(0,Re.jsx)(gr.InnerBlocks.Content,{})})]})}},Ete=[LSe,RSe,ASe,MSe,zSe,VSe,OSe];var mn=n(N(),1),iC=n(F(),1),lC=n(H(),1),Oo=n(P(),1),Fr=n(O(),1),sC=n(Ar(),1);var Jb=n(re(),1);var Hg=n(O(),1),wc=n(P(),1),Ite=n(N(),1),Nte=n(ve(),1),uA=n(F(),1),pA=n(H(),1),aC=n(Ar(),1),Dte=n(Sr(),1);function nC(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var On=n(y(),1),Lte=["image","video"],FSe=()=>{},HSe=(0,pA.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let a=(0,Nte.useViewportMatch)("small","<");return(0,On.jsx)(Hg.ResizableBox,{ref:o,showHandle:e&&(!a||!t),...r})});function jSe({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:a}){return(0,On.jsx)(wc.BlockControls,{group:"other",children:(0,On.jsx)(wc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Lte,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:a,onReset:()=>r(void 0)})})}function Bte({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:a}=(0,uA.useDispatch)(Dte.store),i=s=>{a(s,{type:"snackbar"})},l=s=>{s.length===1&&r({url:(0,aC.createBlobURL)(s[0])})};return(0,On.jsx)(wc.MediaPlaceholder,{icon:(0,On.jsx)(wc.BlockIcon,{icon:sv}),labels:{title:(0,Ite.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:Lte,onFilesPreUpload:l,onError:i,disableMediaButtons:t})}function USe(e,t){let{className:r,commitWidthChange:o,focalPoint:a,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:p,mediaType:m,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:g,enableResize:v,toggleUseFeaturedImage:b,useFeaturedImage:_,featuredImageURL:k,featuredImageAlt:x,refMedia:w}=e,S=!u&&(0,aC.isBlobURL)(d),{toggleSelection:T}=(0,uA.useDispatch)(wc.store);if(d||k||_){let I=()=>{T(!1)},D=(z,U,q)=>{g(parseInt(q.style.width))},L=(z,U,q)=>{T(!0),o(parseInt(q.style.width))},E={right:v&&p==="left",left:v&&p==="right"},B=m==="image"&&i?nC(d||k,a):{},A={image:()=>_&&k?(0,On.jsx)("img",{ref:w,src:k,alt:x,style:B}):d&&(0,On.jsx)("img",{ref:w,src:d,alt:c,style:B}),video:()=>(0,On.jsx)("video",{controls:!0,ref:w,src:d})};return(0,On.jsxs)(HSe,{as:"figure",className:C(r,"editor-media-container__resizer",{"is-transient":S}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:E,onResizeStart:I,onResize:D,onResizeStop:L,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,On.jsx)(jSe,{onSelectMedia:h,mediaUrl:_&&k?k:d,mediaId:u,toggleUseFeaturedImage:b,useFeaturedImage:_}),(A[m]||FSe)(),S&&(0,On.jsx)(Hg.Spinner,{}),!_&&(0,On.jsx)(Bte,{...e}),!k&&_&&(0,On.jsx)(Hg.Placeholder,{className:"wp-block-media-text--placeholder-image",style:B,withIllustration:!0})]})}return(0,On.jsx)(Bte,{...e})}var Rte=(0,pA.forwardRef)(USe);var gt=n(y(),1),{ResolutionTool:GSe}=j(Oo.privateApis),Ate=e=>Math.max(Xb,Math.min(e,100-Xb));function Mte(e,t){return e?.media_details?.sizes?.[t]?.source_url}function WSe({attributes:{linkDestination:e,href:t},setAttributes:r}){return o=>{if(!o||!o.url){r({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});return}(0,sC.isBlobURL)(o.url)&&(o.type=(0,sC.getBlobTypeByURL)(o.url));let a,i;o.media_type?o.media_type==="image"?a="image":a="video":a=o.type,a==="image"&&(i=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=e,s=t;if(a==="image"){if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||J4){case"file":case eC:l=eC;break;case"post":case tC:l=tC;break;case J4:default:l=J4;break}switch(l){case eC:s=o.url;break;case tC:s=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:a,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:s,linkDestination:l,focalPoint:void 0,useFeaturedImage:!1})}}function $Se({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,iC.useSelect)(i=>{let{getSettings:l}=i(Oo.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let a=o.filter(({slug:i})=>Mte(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,gt.jsx)(GSe,{value:t,defaultValue:xc,options:a,onChange:r})}function qSe({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:a}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:p,linkTarget:m,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:v,mediaWidth:b,mediaSizeSlug:_,rel:k,verticalAlignment:x,allowedBlocks:w,useFeaturedImage:S}=e,[T]=(0,Jb.useEntityProp)("postType",a,"featured_media",o),{featuredImageMedia:I}=(0,iC.useSelect)(me=>({featuredImageMedia:T&&S?me(Jb.store).getEntityRecord("postType","attachment",T,{context:"view"}):void 0}),[T,S]),{image:D}=(0,iC.useSelect)(me=>({image:f&&t?me(Jb.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),L=S?I?.source_url:"",E=S?I?.alt_text:"",B=()=>{r({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!S})},A=(0,lC.useRef)(),z=me=>{let{style:se}=A.current,{x:Ne,y:De}=me;se.objectPosition=`${Ne*100}% ${De*100}%`},[U,q]=(0,lC.useState)(null),G=WSe({attributes:e,setAttributes:r}),W=me=>{r(me)},V=me=>{q(Ate(me))},Q=me=>{r({mediaWidth:Ate(me)}),q(null)},Y=C({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${x}`]:x,"is-image-fill-element":s}),ee=`${U||b}%`,te=h==="right"?`1fr ${ee}`:`${ee} 1fr`,oe={gridTemplateColumns:te,msGridColumns:te},J=me=>{r({mediaAlt:me})},ce=me=>{r({verticalAlignment:me})},ie=me=>{let se=Mte(D,me);if(!se)return null;r({mediaUrl:se,mediaSizeSlug:me})},we=Z(),le=(0,gt.jsxs)(Fr.__experimentalToolsPanel,{label:(0,mn.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),ie(xc)},dropdownMenuProps:we,children:[(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,mn.__)("Media width"),isShownByDefault:!0,hasValue:()=>b!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,gt.jsx)(Fr.RangeControl,{label:(0,mn.__)("Media width"),value:U||b,onChange:Q,min:Xb,max:100-Xb})}),(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,mn.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,gt.jsx)(Fr.ToggleControl,{label:(0,mn.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),g==="image"&&(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,mn.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,gt.jsx)(Fr.ToggleControl,{label:(0,mn.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(v||L)&&g==="image"&&(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,mn.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,gt.jsx)(Fr.FocalPointPicker,{label:(0,mn.__)("Focal point"),url:S&&L?L:v,value:i,onChange:me=>r({focalPoint:me}),onDragStart:z,onDrag:z})}),g==="image"&&v&&!S&&(0,gt.jsx)(Fr.__experimentalToolsPanelItem,{label:(0,mn.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,gt.jsx)(Fr.TextareaControl,{label:(0,mn.__)("Alternative text"),value:d,onChange:J,help:(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Fr.ExternalLink,{href:(0,mn.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,mn.__)("Describe the purpose of the image.")}),(0,gt.jsx)("br",{}),(0,mn.__)("Leave empty if decorative.")]})})}),g==="image"&&!S&&(0,gt.jsx)($Se,{image:D,value:_,onChange:ie})]}),de=(0,Oo.useBlockProps)({className:Y,style:oe}),ge=(0,Oo.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:wte,allowedBlocks:w}),ne=(0,Oo.useBlockEditingMode)();return(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Oo.InspectorControls,{children:le}),(0,gt.jsxs)(Oo.BlockControls,{group:"block",children:[ne==="default"&&(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Oo.BlockVerticalAlignmentControl,{onChange:ce,value:x}),(0,gt.jsx)(Fr.ToolbarButton,{icon:$B,title:(0,mn.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,gt.jsx)(Fr.ToolbarButton,{icon:ZB,title:(0,mn.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),g==="image"&&!S&&(0,gt.jsx)(Oo.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:W,linkDestination:p,mediaType:g,mediaUrl:D&&D.source_url,mediaLink:D&&D.link,linkTarget:m,linkClass:u,rel:k})]}),(0,gt.jsxs)("div",{...de,children:[h==="right"&&(0,gt.jsx)("div",{...ge}),(0,gt.jsx)(Rte,{className:"wp-block-media-text__media",onSelectMedia:G,onWidthChange:V,commitWidthChange:Q,refMedia:A,enableResize:ne==="default",toggleUseFeaturedImage:B,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:v,mediaWidth:b,useFeaturedImage:S,featuredImageURL:L,featuredImageAlt:E}),h!=="right"&&(0,gt.jsx)("div",{...ge})]})]})}var zte=qSe;var cC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",role:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"};var jg=n(P(),1);var Ts=n(y(),1),KSe=50,Vte=()=>{};function Ote({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:a,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:p,linkClass:m,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||xc,v=h||void 0,b=C({[`wp-image-${s}`]:s&&a==="image",[`size-${g}`]:s&&a==="image"}),_=u?nC(i,p):{},k=i?(0,Ts.jsx)("img",{src:i,alt:r,className:b||null,style:_}):null;d&&(k=(0,Ts.jsx)("a",{className:m,href:d,target:f,rel:v,children:k}));let x={image:()=>k,video:()=>(0,Ts.jsx)("video",{controls:!0,src:i})},w=C({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),S;l!==KSe&&(S=o==="right"?`auto ${l}%`:`${l}% auto`);let T={gridTemplateColumns:S};return o==="right"?(0,Ts.jsxs)("div",{...jg.useBlockProps.save({className:w,style:T}),children:[(0,Ts.jsx)("div",{...jg.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ts.jsx)("figure",{className:"wp-block-media-text__media",children:(x[a]||Vte)()})]}):(0,Ts.jsxs)("div",{...jg.useBlockProps.save({className:w,style:T}),children:[(0,Ts.jsx)("figure",{className:"wp-block-media-text__media",children:(x[a]||Vte)()}),(0,Ts.jsx)("div",{...jg.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var lf=n($(),1),YSe={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,lf.createBlock)("core/media-text",{mediaAlt:e,mediaId:r,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:r})=>(0,lf.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:r,backgroundType:o,customGradient:a,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:p,url:m,useFeaturedImage:d},f)=>{let h={};return a?h={style:{color:{gradient:a}}}:i&&(h={style:{color:{background:i}}}),u?.color?.text&&(h.style={color:{...h.style?.color,text:u.color.text}}),(0,lf.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:o,mediaUrl:m,textColor:p,useFeaturedImage:d,...h},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:r,anchor:o})=>(0,lf.createBlock)("core/image",{alt:e,id:t,url:r,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:r})=>(0,lf.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:o,gradient:a,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:p,useFeaturedImage:m},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let h={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||m?50:100,focalPoint:o,gradient:a,id:l,overlayColor:r,textColor:p,url:c,useFeaturedImage:m,...f};return(0,lf.createBlock)("core/cover",h,d)}}]},Fte=YSe;var{fieldsKey:QSe,formKey:XSe}=j(Hte.privateApis),{name:jte}=cC,uC={icon:KE,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ey.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,ey.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:Fte,edit:zte,save:Ote,deprecated:Ete};window.__experimentalContentOnlyInspectorFields&&(uC[QSe]=[{id:"media",label:(0,ey.__)("Media"),type:"media",Edit:{control:"media",allowedTypes:["image","video"],multiple:!1},getValue:({item:e})=>({id:e.mediaId,url:e.mediaUrl,mediaType:e.mediaType,link:e.mediaLink}),setValue:({value:e})=>({mediaId:e.id,mediaUrl:e.url,mediaType:e.mediaType,mediaLink:e.link})},{id:"link",label:(0,ey.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.href,rel:e.rel,linkTarget:e.linkTarget}),setValue:({value:e})=>({href:e.url,rel:e.rel,linkTarget:e.linkTarget})}],uC[XSe]={fields:["media","link"]});var JSe=()=>R({name:jte,metadata:cC,settings:uC});var dA={};K(dA,{init:()=>t6e,metadata:()=>mC,name:()=>ty,settings:()=>Xte});var Qte=n($(),1);var Bu=n(N(),1),Ute=n(H(),1),Gte=n(O(),1),Wte=n($(),1),pC=n(F(),1),sf=n(P(),1),$te=n(Tn(),1),Ug=n(y(),1);function qte({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,a=!!o,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,pC.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(sf.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,pC.useDispatch)(sf.store);function c(){s(t,(0,Wte.createBlock)("core/html",{},[],[o]))}let u=[],p,m=(0,Ug.jsx)(Gte.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,Bu.__)("Keep as HTML")},"convert");return a&&!i&&(!r||r==="core/freeform")?l?(p=(0,Bu.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(m)):p=(0,Bu.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):a&&l?(p=(0,Bu.sprintf)((0,Bu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),r),u.push(m)):p=(0,Bu.sprintf)((0,Bu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,Ug.jsxs)("div",{...(0,sf.useBlockProps)({className:"has-warning"}),children:[(0,Ug.jsx)(sf.Warning,{actions:u,children:p}),(0,Ug.jsx)(Ute.RawHTML,{children:(0,$te.safeHTML)(o)})]})}var mC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn\u2019t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1}};var Zte=n(H(),1),Kte=n(y(),1);function Yte({attributes:e}){return(0,Kte.jsx)(Zte.RawHTML,{children:e.originalContent})}var{name:ty}=mC,Xte={name:ty,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,Qte.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:qte,save:Yte},t6e=()=>R({name:ty,metadata:mC,settings:Xte});var fA={};K(fA,{init:()=>l6e,metadata:()=>fC,name:()=>lre,settings:()=>hC});var are=n(N(),1),ire=n($(),1);var em=n(N(),1),Gg=n(O(),1),Wg=n(P(),1),dC=n($(),1);var Ps=n(y(),1),r6e=(0,em.__)("Read more");function Jte({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let a=Z();return(0,Ps.jsxs)(Ps.Fragment,{children:[(0,Ps.jsx)(Wg.InspectorControls,{children:(0,Ps.jsx)(Gg.__experimentalToolsPanel,{label:(0,em.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:a,children:(0,Ps.jsx)(Gg.__experimentalToolsPanelItem,{label:(0,em.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,Ps.jsx)(Gg.ToggleControl,{label:(0,em.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,em.__)("The excerpt is hidden."):(0,em.__)("The excerpt is visible.")})})})}),(0,Ps.jsx)("div",{...(0,Wg.useBlockProps)(),children:(0,Ps.jsx)(Wg.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,em.__)('"Read more" text'),value:e,placeholder:r6e,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:r?()=>r((0,dC.createBlock)((0,dC.getDefaultBlockName)())):void 0})})]})}var fC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:"",role:"content"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1},editorStyle:"wp-block-more-editor"};var ere=n(H(),1),tre=n(y(),1);function rre({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,tre.jsx)(ere.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
`)})}var ore=n($(),1),n6e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:r}=e.dataset,o={};return t&&(o.customText=t),r===""&&(o.noTeaser=!0),(0,ore.createBlock)("core/more",o)}}]},nre=n6e;var{fieldsKey:a6e,formKey:i6e}=j(ire.privateApis),{name:lre}=fC,hC={icon:eB,example:{},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility")return e.customText},transforms:nre,edit:Jte,save:rre};window.__experimentalContentOnlyInspectorFields&&(hC[a6e]=[{id:"customText",label:(0,are.__)("Content"),type:"text",Edit:"rich-text"}],hC[i6e]={fields:["customText"]});var l6e=()=>R({name:lre,metadata:fC,settings:hC});var ZA={};K(ZA,{init:()=>gTe,metadata:()=>gC,name:()=>Vne,settings:()=>One});var pS=n(N(),1);var Ane=n(F(),1),Mne=n(re(),1),zne=n(Jo(),1);var gC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/icon","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},submenuVisibility:{type:"string",enum:["hover","click","always"],default:"hover"},overlayMenu:{type:"string",default:"mobile"},overlay:{type:"string"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",submenuVisibility:"submenuVisibility",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{anchor:!0,align:["wide","full"],ariaLabel:!0,contentRole:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"};var dr=n(H(),1),Je=n(P(),1),lm=n(re(),1),Is=n(F(),1),eo=n(O(),1),Mt=n(N(),1),sS=n(Rh(),1);var Ene=n($(),1),Bne=n(ve(),1);var $g=n(re(),1),ure=n(F(),1);var Fi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},sre=["core/navigation-link/page","core/navigation-link"],hA={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},cre=["postType","wp_navigation",hA],Cc="navigation-overlay";function qg(e){let t=(0,$g.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:a}=(0,ure.useSelect)(h=>c6e(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:p,isResolving:m,hasResolved:d}=(0,$g.useEntityRecords)("postType","wp_navigation",hA),f=e?p?.length>1:p?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:a,navigationMenus:p,isResolvingNavigationMenus:m,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function c6e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:a}=e($g.store),i=["postType","wp_navigation",t],l=r(...i),s=o(...i),c=a("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var Yg=n(O(),1),oy=n(N(),1);var gA=n(Rh(),1),mre=n(H(),1),dre=n(re(),1);var pre=n(N(),1),ry=n(y(),1),u6e=({isVisible:e=!0})=>(0,ry.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,ry.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,ry.jsx)(na,{icon:od}),(0,pre.__)("Navigation")]})}),vC=u6e;var Es=n(O(),1);var ba=n(N(),1),bC=n(Jo(),1),Zg=n(H(),1),yC=n(re(),1);var Sl=n(y(),1);function p6e(e,t,r){return e?r==="publish"?(0,bC.decodeEntities)(e):(0,ba.sprintf)((0,ba.__)("%1$s (%2$s)"),(0,bC.decodeEntities)(e),r):(0,ba.sprintf)((0,ba.__)("(no title %s)"),t)}function m6e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:a,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,ba.__)("Create from '%s'"),[c,u]=(0,Zg.useState)(!1);a=a||s;let{records:p}=(0,yC.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:m,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:g,isNavigationMenuMissing:v}=qg(e),[b]=(0,yC.useEntityProp)("postType","wp_navigation","title",e),_=(0,Zg.useMemo)(()=>m?.map(({id:A,title:z,status:U},q)=>{let G=p6e(z?.rendered,q+1,U);return{value:A,label:G,ariaLabel:(0,ba.sprintf)(a,G),disabled:c||d||!f}})||[],[m,a,d,f,c]),k=!!m?.length,x=!!p?.length,w=!!g,S=!!h,T=k&&!e,I=!k&&f,D=f&&e===null,L=e&&v,E="";return d?E=(0,ba.__)("Loading\u2026"):T||I||D||L?E=(0,ba.__)("Choose or create a Navigation Menu"):E=b,(0,Zg.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,D,I,T]),(0,Sl.jsx)(Es.DropdownMenu,{label:E,icon:cv,toggleProps:{size:"small"},children:({onClose:A})=>(0,Sl.jsxs)(Sl.Fragment,{children:[w&&k&&(0,Sl.jsx)(Es.MenuGroup,{label:(0,ba.__)("Menus"),children:(0,Sl.jsx)(Es.MenuItemsChoice,{value:e,onSelect:z=>{t(z),A()},choices:_})}),S&&x&&(0,Sl.jsx)(Es.MenuGroup,{label:(0,ba.__)("Import Classic Menus"),children:p?.map(z=>{let U=(0,bC.decodeEntities)(z.name);return(0,Sl.jsx)(Es.MenuItem,{onClick:async()=>{u(!0),await r(z),u(!1),A()},"aria-label":(0,ba.sprintf)(s,U),disabled:c||d||!f,children:U},z.id)})}),h&&(0,Sl.jsx)(Es.MenuGroup,{label:(0,ba.__)("Tools"),children:(0,Sl.jsx)(Es.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),A()},disabled:c||d||!f,children:(0,ba.__)("Create new Menu")})})]})})}var Kg=m6e;var Fn=n(y(),1);function fre({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:a,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolving:c,hasResolved:u}=(0,dre.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,mre.useEffect)(()=>{e&&(c&&(0,gA.speak)((0,oy.__)("Loading navigation block setup options\u2026")),u&&(0,gA.speak)((0,oy.__)("Navigation block setup options ready.")))},[u,c,e]);let p=c&&a;return(0,Fn.jsx)(Fn.Fragment,{children:(0,Fn.jsxs)(Yg.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Fn.jsx)(vC,{isVisible:!e}),(0,Fn.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,Fn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Fn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Fn.jsx)(na,{icon:od})," ",(0,oy.__)("Navigation")]}),(0,Fn.jsx)("hr",{}),p&&(0,Fn.jsx)(Yg.Spinner,{}),(0,Fn.jsx)(Kg,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,Fn.jsx)("hr",{}),o&&(0,Fn.jsx)(Yg.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,oy.__)("Start empty")})]})})]})})}var vA=n(O(),1),Xg=n(N(),1),bA=n(P(),1),hre=n(F(),1),gre=n(re(),1);var ny=n(M(),1);var Qg=n(y(),1);function Sc({icon:e}){return e==="menu"?(0,Qg.jsx)(na,{icon:QE}):(0,Qg.jsxs)(ny.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Qg.jsx)(ny.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Qg.jsx)(ny.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function ya(e,t){return e&&t?e+"//"+t:null}var Hi=n(y(),1);function yA({children:e,id:t,isOpen:r,isResponsive:o,onToggle:a,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:p,onNavigateToEntityRecord:m}){let d=(0,hre.useSelect)(x=>x(gre.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!p,h=C("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!s.color||!!s?.class,[(0,bA.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,bA.getColorClassName)("background-color",l?.slug)]:!!l?.slug},{"is-menu-open":r,"hidden-by-default":i}),g=f?{}:{color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},v=C("wp-block-navigation__responsive-container-open",{"always-shown":i}),b=`${t}-modal`,_={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,Xg.__)("Menu")}},k=()=>{if(p&&m){let x=ya(d,p);m({postId:x,postType:"wp_template_part"});return}a(!0)};return(0,Hi.jsxs)(Hi.Fragment,{children:[!r&&(0,Hi.jsxs)(vA.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,Xg.__)("Open menu"),className:v,onClick:k,children:[c&&(0,Hi.jsx)(Sc,{icon:u}),!c&&(0,Xg.__)("Menu")]}),(0,Hi.jsx)("div",{className:h,style:g,id:b,children:(0,Hi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Hi.jsxs)("div",{..._,children:[(0,Hi.jsxs)(vA.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,Xg.__)("Close menu"),onClick:()=>a(!1),children:[c&&(0,Hi.jsx)(na,{icon:Km}),!c&&(0,Xg.__)("Close")]}),(0,Hi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${b}-content`,children:e})]})})})]})}var vre=n(re(),1),Jg=n(P(),1),bre=n(F(),1),yre=n(H(),1);var _A=n(y(),1);function _re({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:a,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,bre.useSelect)(v=>{let{getBlockCount:b,hasSelectedInnerBlock:_,getSelectedBlockClientId:k}=v(Jg.store),x=k();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!b(x),hasSelectedDescendant:_(e,!0),isSelected:x===e}},[e]),[c,u,p]=(0,vre.useEntityBlockEditor)("postType","wp_navigation"),m=l||a&&!i,d=(0,yre.useMemo)(()=>(0,_A.jsx)(vC,{}),[]),f=!!c?.length,h=!t&&!f&&!l,g=(0,Jg.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:p,prioritizedInserterBlocks:sre,defaultBlock:Fi,directInsert:!0,orientation:r,templateLock:o,renderAppender:l||a&&!i||s||m?Jg.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,_A.jsx)("div",{...g})}var xre=n(O(),1),kre=n(re(),1),wre=n(N(),1),Cre=n(y(),1);function Sre(){let[e,t]=(0,kre.useEntityProp)("postType","wp_navigation","title");return(0,Cre.jsx)(xre.TextControl,{label:(0,wre.__)("Menu name"),value:e,onChange:t})}var Ere=n(P(),1),xA=n(O(),1),Bre=n(re(),1),Ire=n(F(),1),cf=n(H(),1);function Tre(e,t){return!Pre(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var Pre=(e,t,r)=>{if(e===t)return!0;if(typeof e=="object"&&e!==null&&e!==void 0&&typeof t=="object"&&t!==null&&t!==void 0){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let o in e)if(t.hasOwnProperty(o)){if(r&&r(o,e))return!0;if(!Pre(e[o],t[o],r))return!1}else return!1;return!0}return!1};var Nre=n(y(),1),d6e={};function Dre({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,cf.useRef)();(0,cf.useEffect)(()=>{o?.current||(o.current=e)},[e]);let a=Tre(o?.current,e),i=(0,cf.useContext)(xA.Disabled.Context),l=(0,Ere.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:Fi,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,Ire.useSelect)(p=>{if(i)return d6e;let{hasFinishedResolution:m,isSavingEntityRecord:d}=p(Bre.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:m("getEntityRecords",cre)}},[i]);return(0,cf.useEffect)(()=>{i||s||!c||!r||!a||t(null,e)},[e,t,i,s,c,a,r]),(0,Nre.jsx)(s?xA.Disabled:"div",{...l})}var xC=n(O(),1),kC=n(re(),1),Lre=n(F(),1),Rre=n(H(),1),_C=n(N(),1),uf=n(y(),1);function Are({onDelete:e}){let[t,r]=(0,Rre.useState)(!1),o=(0,kC.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:a}=(0,Lre.useDispatch)(kC.store);return(0,uf.jsxs)(uf.Fragment,{children:[(0,uf.jsx)(xC.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,_C.__)("Delete menu")}),t&&(0,uf.jsx)(xC.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{a("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,_C.__)("Delete"),size:"medium",children:(0,_C.__)("Are you sure you want to delete this Navigation Menu?")})]})}var ay=n(H(),1),Mre=n(F(),1),zre=n(Sr(),1);function f6e({name:e,message:t=""}={}){let r=(0,ay.useRef)(),{createWarningNotice:o,removeNotice:a}=(0,Mre.useDispatch)(zre.store),i=(0,ay.useCallback)(s=>{r.current||(r.current=e,o(s||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),l=(0,ay.useCallback)(()=>{r.current&&(a(r.current),r.current=null)},[r,a]);return[i,l]}var wC=f6e;var Tc=n(O(),1),tm=n(N(),1);var ji=n(y(),1);function Vre({setAttributes:e,hasIcon:t,icon:r}){return(0,ji.jsxs)(ji.Fragment,{children:[(0,ji.jsx)(Tc.__experimentalToolsPanelItem,{label:(0,tm.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,ji.jsx)(Tc.ToggleControl,{label:(0,tm.__)("Show icon button"),help:(0,tm.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,ji.jsx)(Tc.__experimentalToolsPanelItem,{label:(0,tm.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,ji.jsxs)(Tc.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,tm.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,ji.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,tm.__)("handle"),label:(0,ji.jsx)(Sc,{icon:"handle"})}),(0,ji.jsx)(Tc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,tm.__)("menu"),label:(0,ji.jsx)(Sc,{icon:"menu"})})]})})]})}var LC=n(O(),1),poe=n(N(),1),moe=n(H(),1);var Tl=n(H(),1),eoe=n(ve(),1),BC=n(re(),1),IC=n(F(),1),_a=n(O(),1),dn=n(N(),1),CA=n(Jo(),1),toe=n(Sr(),1);var $re=n(H(),1),PC=n(F(),1),qre=n(re(),1),Zre=n(P(),1),Kre=n(N(),1),mf=n($(),1);var rm=function(){return rm=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},rm.apply(this,arguments)};function Ore(e){return e.toLowerCase()}var h6e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],g6e=/[^A-Z0-9]+/gi;function CC(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?h6e:r,a=t.stripRegexp,i=a===void 0?g6e:a,l=t.transform,s=l===void 0?Ore:l,c=t.delimiter,u=c===void 0?" ":c,p=Fre(Fre(e,o,"$1\0$2"),i,"\0"),m=0,d=p.length;p.charAt(m)==="\0";)m++;for(;p.charAt(d-1)==="\0";)d--;return p.slice(m,d).split("\0").map(s).join(u)}function Fre(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,a){return o.replace(a,r)},e)}function Hre(e){return e.charAt(0).toUpperCase()+e.substr(1)}function v6e(e){return Hre(e.toLowerCase())}function jre(e,t){return t===void 0&&(t={}),CC(e,rm({delimiter:" ",transform:v6e},t))}function Ure(e,t){return t===void 0&&(t={}),CC(e,rm({delimiter:"."},t))}function SC(e,t){return t===void 0&&(t={}),Ure(e,rm({delimiter:"-"},t))}function kA(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function wA(e,t,r){if(!e)return;t(kA(e).color);let o=e,a=kA(o).backgroundColor;for(;a==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,a=kA(o).backgroundColor;r(a)}function pf(e,t){let{textColor:r,customTextColor:o,backgroundColor:a,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:p}=e,m={};return t&&s?m.customTextColor=s:t&&l?m.textColor=l:o?m.customTextColor=o:r?m.textColor=r:p?.color?.text&&(m.customTextColor=p.color.text),t&&u?m.customBackgroundColor=u:t&&c?m.backgroundColor=c:i?m.customBackgroundColor=i:a?m.backgroundColor=a:p?.color?.background&&(m.customTextColor=p.color.background),m}function TC(e){return{className:C("wp-block-navigation__submenu-container",{"has-text-color":!!(e.textColor||e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!!(e.backgroundColor||e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var Gre=(e,t)=>{let r=e.toLowerCase(),o=t.map(i=>i.title.rendered.toLowerCase());if(!o.includes(r))return e;let a=2;for(;o.includes(`${r} ${a}`);)a++;return`${e} ${a}`},Wre=e=>SC(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function Yre(e){let{saveEntityRecord:t}=(0,PC.useDispatch)(qre.store),r=(0,PC.useSelect)(a=>j(a(Zre.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,$re.useCallback)(async()=>{let a=e.filter(u=>u.title?.rendered),i=Gre((0,Kre.__)("Navigation Overlay"),a),l=Wre(i),s="";if(r?.content){let u=(0,mf.parse)(r.content,{__unstableSkipMigrationLogs:!0});s=(0,mf.serialize)(u)}else s=(0,mf.serialize)([(0,mf.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:l,title:i,content:s,area:Cc},{throwOnError:!0})},[e,t,r])}var iy=n(O(),1),Qre=n(N(),1),Xre=n(H(),1),EC=n(y(),1);function b6e({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,Xre.createInterpolateElement)((0,Qre.__)("The selected overlay template part is missing or has been deleted. <clearButton>Reset to default overlay</clearButton> or <createButton>create a new overlay</createButton>."),{clearButton:(0,EC.jsx)(iy.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,EC.jsx)(iy.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,EC.jsx)(iy.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var Jre=b6e;var So=n(y(),1);function SA({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:a,setIsCreatingOverlay:i}){let l=(0,eoe.useInstanceId)(SA,"wp-block-navigation__overlay-selector-heading"),{records:s,isResolving:c,hasResolved:u}=(0,BC.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:p}=(0,IC.useDispatch)(toe.store),m=(0,IC.useSelect)(B=>B(BC.store).getCurrentTheme()?.stylesheet,[]),[d,f]=(0,Tl.useState)(!1),h=a!==void 0?a:d,g=i!==void 0?i:f,v=(0,Tl.useMemo)(()=>s?s.filter(B=>B.area===Cc):[],[s]),b=Yre(v),_=(0,Tl.useMemo)(()=>!e||!v?null:v.find(B=>B.slug===e),[e,v]),k=(0,Tl.useMemo)(()=>{let B=[{label:(0,dn.__)("Default"),value:""}];if(!u||c)return B;let A=v.map(z=>({label:z.title?.rendered?(0,CA.decodeEntities)(z.title.rendered):z.slug,value:z.slug}));return e&&!_&&A.unshift({label:(0,dn.sprintf)((0,dn.__)("%s (missing)"),e),value:e}),[...B,...A]},[v,u,c,e,_]),x=B=>{r({overlay:B||void 0})},w=()=>{if(!e||!_||!o)return;let B=_.theme||m,z={postId:ya(B,e),postType:"wp_template_part"};t==="mobile"&&(z.viewport="mobile"),o(z)},S=(0,Tl.useCallback)(async()=>{try{g(!0);let B=await b();if(r({overlay:B.slug}),o){let A=B.theme||m,U={postId:ya(A,B.slug),postType:"wp_template_part"};t==="mobile"&&(U.viewport="mobile"),o(U)}else g(!1)}catch(B){let A=B instanceof Error&&"code"in B&&B.message&&B.code!=="unknown_error"?B.message:(0,dn.__)("An error occurred while creating the overlay.");p(A,{type:"snackbar"}),g(!1)}},[b,r,o,p,m,g,t]),T=(0,Tl.useCallback)(()=>{r({overlay:void 0})},[r]),I=c||h,D=(0,Tl.useMemo)(()=>e&&u&&!c&&!_,[e,u,c,_]),L=(0,Tl.useMemo)(()=>v.length===0&&u?(0,dn.__)("No overlays found."):(0,dn.__)("Select an overlay for navigation."),[v.length,u]),E=(0,Tl.useMemo)(()=>_?(0,dn.sprintf)((0,dn.__)("Edit overlay: %s"),_.title?.rendered?(0,CA.decodeEntities)(_.title.rendered):_.slug):(0,dn.__)("Edit overlay"),[_]);return(0,So.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,So.jsx)("h3",{id:l,className:"wp-block-navigation__overlay-selector-header",children:(0,dn.__)("Overlay template")}),u&&(v.length===0||h&&v.length===1)?(0,So.jsx)(So.Fragment,{children:(0,So.jsx)(_a.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:S,disabled:I,accessibleWhenDisabled:!0,isBusy:h,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,dn.__)("Create overlay")})}):(0,So.jsxs)(So.Fragment,{children:[(0,So.jsx)(_a.Button,{size:"small",icon:vh,onClick:S,disabled:I,accessibleWhenDisabled:!0,isBusy:h,label:(0,dn.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,So.jsxs)(_a.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,So.jsx)(_a.FlexBlock,{children:(0,So.jsx)(_a.SelectControl,{label:(0,dn.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":l,value:e||"",options:k,onChange:x,disabled:c,accessibleWhenDisabled:!0,help:L})}),e&&u&&_&&(0,So.jsx)(_a.FlexItem,{children:(0,So.jsx)(_a.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:w,disabled:!o,accessibleWhenDisabled:!0,label:E,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,dn.__)("Edit")})})]}),D&&(0,So.jsx)(Jre,{onClear:T,onCreate:S,isCreating:h})]}),(0,So.jsx)(_a.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,So.jsx)(_a.__experimentalText,{variant:"muted",isBlock:!0,className:"wp-block-navigation__overlay-help-text",children:(0,dn.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var e0=n(O(),1),df=n(N(),1),t0=n(y(),1);function roe({overlayMenu:e,setAttributes:t}){return(0,t0.jsxs)(e0.__experimentalToggleGroupControl,{label:(0,df.__)("Overlay Visibility"),"aria-label":(0,df.__)("Configure overlay visibility"),value:e,help:(0,df.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,t0.jsx)(e0.__experimentalToggleGroupControlOption,{value:"never",label:(0,df.__)("Off")}),(0,t0.jsx)(e0.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,df.__)("Mobile")}),(0,t0.jsx)(e0.__experimentalToggleGroupControlOption,{value:"always",label:(0,df.__)("Always")})]})}var DC=n(O(),1),NC=n(N(),1);var Nu=n(O(),1),r0=n(N(),1);var Iu=n(y(),1);function ooe({hasIcon:e,icon:t,setAttributes:r}){return(0,Iu.jsxs)(Nu.__experimentalVStack,{spacing:4,children:[(0,Iu.jsx)(Nu.ToggleControl,{label:(0,r0.__)("Show icon button"),help:(0,r0.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,Iu.jsxs)(Nu.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,r0.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,Iu.jsx)(Nu.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,r0.__)("handle"),label:(0,Iu.jsx)(Sc,{icon:"handle"})}),(0,Iu.jsx)(Nu.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,r0.__)("menu"),label:(0,Iu.jsx)(Sc,{icon:"menu"})})]})]})}var Hn=n(y(),1);function noe({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:a,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,Hn.jsxs)(Hn.Fragment,{children:[(0,Hn.jsxs)(DC.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,NC.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[o&&(0,Hn.jsxs)(Hn.Fragment,{children:[(0,Hn.jsx)(Sc,{icon:a}),(0,Hn.jsx)(na,{icon:Km})]}),!o&&(0,Hn.jsxs)(Hn.Fragment,{children:[(0,Hn.jsx)("span",{children:(0,NC.__)("Menu")}),(0,Hn.jsx)("span",{children:(0,NC.__)("Close")})]})]}),t&&(0,Hn.jsx)(DC.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,Hn.jsx)(ooe,{hasIcon:o,icon:a,setAttributes:i})})]}):null}var aoe=n(F(),1),ioe=n(re(),1),TA=n(H(),1),loe=n($(),1),soe=n(O(),1),coe=n(N(),1),PA=n(P(),1);var ff=n(y(),1);function uoe({overlay:e,currentTheme:t}){let r=(0,TA.useMemo)(()=>!e||!t?null:ya(t,e),[t,e]),{content:o,editedBlocks:a,hasResolved:i}=(0,aoe.useSelect)(s=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=s(ioe.store),p=c("postType","wp_template_part",r,{context:"view"});return{content:p?.content,editedBlocks:p?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),l=(0,TA.useMemo)(()=>r?a&&a.length>0?a:o&&typeof o=="string"?(0,loe.parse)(o):[]:null,[r,a,o]);return e?i?(0,ff.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,coe.__)("Navigation Overlay template part preview"),role:"region",children:(0,ff.jsx)(PA.BlockPreview.Async,{placeholder:(0,ff.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,ff.jsx)(PA.BlockPreview,{blocks:l,viewportWidth:400,minHeight:200})})}):(0,ff.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,ff.jsx)(soe.Spinner,{})}):null}var om=n(y(),1);function doe({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:a,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:p,currentTheme:m,hasOverlays:d}){let[f,h]=(0,moe.useState)(!1);return(0,om.jsx)(LC.PanelBody,{title:(0,poe.__)("Overlay"),initialOpen:!0,children:(0,om.jsxs)(LC.__experimentalVStack,{spacing:4,children:[(0,om.jsx)(roe,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,om.jsx)(noe,{isResponsive:p,overlayMenuPreview:a,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,om.jsx)(SA,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:h}),e!=="never"&&t&&d&&!f&&(0,om.jsx)(uoe,{overlay:t,currentTheme:m})]})})}var zC=n(F(),1),BA=n(re(),1),n0=n(H(),1),Pc=n(N(),1);var ly=n($(),1),goe=n(bu(),1);var EA=n(H(),1),RC=n(P(),1),foe=n(F(),1),hoe=n(re(),1);function o0(e){if(e===void 0)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if(e!=="post-type"&&e!=="taxonomy")throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:e==="taxonomy"?"core/term-data":"core/post-data",args:{field:"link"}}}}function Ui({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,RC.useBlockBindingsUtils)(e),{metadata:o,id:a,kind:i,type:l}=t,s=(0,RC.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!a,u=i==="post-type"?"core/post-data":"core/term-data",p=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:m,entityRecord:d}=(0,foe.useSelect)(g=>{if(!p||!a)return{isBoundEntityAvailable:!1,entityRecord:null};let v=i==="post-type",b=i==="taxonomy";if(!v&&!b)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:k}=g(hoe.store),x=b?"taxonomy":"postType",w=l==="tag"?"post_tag":l,S=_(x,w,a);return{isBoundEntityAvailable:k("getEntityRecord",[x,w,a])?S!==void 0:!0,entityRecord:S||null}},[i,l,a,p,s]),f=(0,EA.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,EA.useCallback)(g=>{let v=g?.kind??i;if(v)try{let b=o0(v);r(b)}catch(b){console.warn("Failed to create entity binding:",b.message)}},[r,i]);return{hasUrlBinding:p,isBoundEntityAvailable:m,entityRecord:d,clearBinding:f,createBinding:h}}function voe(e){if(!e)return null;let t=_6e(e),r=boe(t);return(0,goe.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function boe(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[m]=(0,ly.parse)(i.content.raw);return m||(0,ly.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=y6e(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?boe(i.children,t+1):{};r={...r,...u};let p=(0,ly.createBlock)(l,s,c);return r[i.id]=p.clientId,p}),mapping:r}}function y6e({title:e,xfn:t,classes:r,attr_title:o,object:a,object_id:i,description:l,url:s,type:c,target:u},p,m){a&&a==="post_tag"&&(a="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...a?.length&&{type:a},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...o?.length&&{title:o},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:o0(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...p==="core/navigation-submenu"&&{isTopLevelItem:m===0},...p==="core/navigation-link"&&{isTopLevelLink:m===0}}}function _6e(e,t="id",r="parent"){let o=Object.create(null),a=[];for(let i of e)o[i[t]]={...i,children:[]},i[r]?(o[i[r]]=o[i[r]]||{},o[i[r]].children=o[i[r]].children||[],o[i[r]].children.push(o[i[t]])):a.push(o[i[t]]);return a}var IA="success",MC="error",VC="pending",x6e="idle",AC=null;function k6e(e,{throwOnError:t=!1}={}){let r=(0,zC.useRegistry)(),{editEntityRecord:o}=(0,zC.useDispatch)(BA.store),[a,i]=(0,n0.useState)(x6e),[l,s]=(0,n0.useState)(null),c=(0,n0.useCallback)(async(p,m,d="publish")=>{let f,h;try{h=await r.resolveSelect(BA.store).getMenuItems({menus:p,per_page:-1,context:"view"})}catch(v){throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to fetch classic menu "%s" from API.'),m),{cause:v})}if(h===null)throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to fetch classic menu "%s" from API.'),m));let{innerBlocks:g}=voe(h);try{f=await e(m,g,d),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(v){throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to create Navigation Menu "%s".'),m),{cause:v})}return f},[e,o,r]);return{convert:(0,n0.useCallback)(async(p,m,d)=>{if(AC!==p){if(AC=p,!p||!m){s("Unable to convert menu. Missing menu details."),i(MC);return}return i(VC),s(null),await c(p,m,d).then(f=>(i(IA),AC=null,f)).catch(f=>{if(s(f?.message),i(MC),AC=null,t)throw new Error((0,Pc.sprintf)((0,Pc.__)('Unable to create Navigation Menu "%s".'),m),{cause:f})})}},[c,t]),status:a,error:l}}var yoe=k6e;var Noe=n($(),1),Doe=n(re(),1),Loe=n(F(),1),i0=n(H(),1);var Coe=n(O(),1),Soe=n(re(),1),Toe=n(F(),1),OC=n(H(),1),sy=n(N(),1);var _oe=n(P(),1),xoe=n(re(),1),koe=n(F(),1);var a0=e=>e==="header"?dE:e==="footer"?KP:e==="sidebar"?_I:e==="navigation-overlay"?rB:Pv;function woe(e){return(0,koe.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(_oe.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(xoe.store),c=l(),p=(c?.default_template_part_areas||[]).map(m=>({...m,icon:a0(m.icon)}));for(let m of i){let d=r(m),{theme:f=c?.stylesheet,slug:h}=d.attributes,g=ya(f,h),v=s("postType","wp_template_part",g);if(v?.area)return p.find(b=>b.area!=="uncategorized"&&b.area===v.area)?.label}},[e])}var w6e=["postType","wp_navigation",{status:"draft",per_page:-1}],C6e=["postType","wp_navigation",{per_page:-1,status:"publish"}];function Poe(e){let t=(0,OC.useContext)(Coe.Disabled.Context),r=woe(t?void 0:e),o=(0,Toe.useRegistry)();return(0,OC.useCallback)(async()=>{if(t)return"";let{getEntityRecords:a}=o.resolveSelect(Soe.store),[i,l]=await Promise.all([a(...w6e),a(...C6e)]),s=r?(0,sy.sprintf)((0,sy.__)("%s menu"),r):(0,sy.__)("Menu"),c=[...i,...l].reduce((p,m)=>m?.title?.raw?.startsWith(s)?p+1:p,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,o])}var Eoe="success",FC="error",Boe="pending",Ioe="idle";function Roe(e){let[t,r]=(0,i0.useState)(Ioe),[o,a]=(0,i0.useState)(null),[i,l]=(0,i0.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,Loe.useDispatch)(Doe.store),u=Poe(e);return{create:(0,i0.useCallback)(async(m=null,d=[],f)=>{if(m&&typeof m!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(FC),new Error("Value of supplied title argument was not a string.");r(Boe),a(null),l(null),m||(m=await u().catch(g=>{throw l(g?.message),r(FC),new Error("Failed to create title when saving new Navigation Menu.",{cause:g})}));let h={title:m,content:(0,Noe.serialize)(d),status:f};return s("postType","wp_navigation",h).then(g=>(a(g),r(Eoe),f!=="publish"&&c("postType","wp_navigation",g.id,{status:"publish"}),g)).catch(g=>{throw l(g?.message),r(FC),new Error("Unable to save new Navigation Menu",{cause:g})})},[s,c,u]),status:t,value:o,error:i,isIdle:t===Ioe,isPending:t===Boe,isSuccess:t===Eoe,isError:t===FC}}var Aoe=n(F(),1),Moe=n(P(),1),S6e=[];function zoe(e){return(0,Aoe.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:a}=t(Moe.store),i=r(e).innerBlocks,l=!!i?.length,s=l?S6e:o(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:a(e,!0)}},[e])}var Voe=n(pr(),1),HC=n(O(),1),Ooe=n(N(),1),Foe=n(y(),1),T6e=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=HC.Button;return r&&(o=HC.MenuItem),(0,Foe.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,Voe.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,Ooe.__)("Manage menus")})},Hoe=T6e;var im=n(P(),1),wy=n(O(),1),oS=n(F(),1),am=n(N(),1),xne=n(H(),1);var joe=n(P(),1),UC=n(O(),1),Uoe=n(N(),1),GC=n(H(),1),jC=n(y(),1);function P6e({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,GC.useState)(!1),a=()=>{o(!0),e()},i=(0,GC.createInterpolateElement)((0,Uoe.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,jC.jsx)(UC.Button,{__next40pxDefaultSize:!0,onClick:a,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,jC.jsx)(UC.Notice,{status:"warning",isDismissible:!1,children:i}):(0,jC.jsx)(joe.Warning,{children:i})}var WC=P6e;var hf=n($(),1);var Gi=n(O(),1),cy=n(F(),1),Bs=n(N(),1),l0=n(P(),1);var Fo=n(y(),1),E6e={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},B6e=["core/navigation-link","core/navigation-submenu"];function I6e({block:e,onClose:t,expandedState:r,expand:o,setInsertedBlock:a}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,cy.useDispatch)(l0.store),c=e.clientId,u=!B6e.includes(e.name);return(0,Fo.jsx)(Gi.MenuItem,{icon:Zm,disabled:u,onClick:()=>{let m=(0,hf.createBlock)(Fi.name,Fi.attributes);if(e.name==="core/navigation-submenu")i(m,e.innerBlocks.length,c,!1);else{let d=(0,hf.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[m],!1)}a(m),r[e.clientId]||o(e.clientId),t()},children:(0,Bs.__)("Add submenu link")})}function Goe(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:o,moveBlocksUp:a,removeBlocks:i,duplicateBlocks:l,insertBeforeBlock:s,insertAfterBlock:c}=(0,cy.useDispatch)(l0.store),u=(0,Bs.sprintf)((0,Bs.__)("Remove %s"),(0,l0.BlockTitle)({clientId:r,maximumLength:25})),{rootClientId:p,canDuplicate:m,canInsertBlock:d,isFirst:f,isLast:h}=(0,cy.useSelect)(g=>{let{getBlockRootClientId:v,canInsertBlockType:b,getDirectInsertBlock:_,getBlockIndex:k,getBlockCount:x}=g(l0.store),{getDefaultBlockName:w}=g(hf.store),S=v(r),T=b(w(),S),I=S?_(S):null;return{rootClientId:S,canDuplicate:!!t&&(0,hf.hasBlockSupport)(t.name,"multiple",!0)&&b(t.name,S),canInsertBlock:(T||!!I)&&!!t&&b(t.name,S),isFirst:k(r)===0,isLast:k(r)===x(S)-1}},[r,t]);return(0,Fo.jsx)(Gi.DropdownMenu,{icon:cv,label:(0,Bs.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:E6e,noIcons:!0,...e,children:({onClose:g})=>(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsxs)(Gi.MenuGroup,{children:[(0,Fo.jsx)(Gi.MenuItem,{icon:bP,disabled:f,accessibleWhenDisabled:!0,onClick:()=>{a([r],p),g()},children:(0,Bs.__)("Move up")}),(0,Fo.jsx)(Gi.MenuItem,{icon:j1,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{o([r],p),g()},children:(0,Bs.__)("Move down")}),(0,Fo.jsx)(I6e,{block:t,onClose:g,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock}),m&&(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{l([r]),g()},children:(0,Bs.__)("Duplicate")}),d&&(0,Fo.jsxs)(Fo.Fragment,{children:[(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{s(r),g()},children:(0,Bs.__)("Add before")}),(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{c(r),g()},children:(0,Bs.__)("Add after")})]})]}),(0,Fo.jsx)(Gi.MenuGroup,{children:(0,Fo.jsx)(Gi.MenuItem,{onClick:()=>{i([r],!1),g()},children:u})})]})})}var fne=n(P(),1),hne=n(F(),1);var jo=n(O(),1),Jt=n(N(),1),cne=n(Tn(),1),gy=n(P(),1),XC=n(F(),1),une=n(re(),1);var $oe=n(H(),1),qoe=n(F(),1),Zoe=n(P(),1),Koe=n(Tn(),1),Yoe=n(NA(),1);var DA=n(NA(),1),uy=n(pr(),1),N6e=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",o=(h,g=null)=>{try{let v=g||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,v)}catch{return null}},a=o(e);if(!a)return!0;let i=o(t,e);if(!i)return!0;let l=a.hostname,s=i.hostname,c=r((0,uy.getPath)(a.toString())),u=r((0,uy.getPath)(i.toString()));if(l!==s||c!==u)return!0;let p=a.searchParams.get("p"),m=i.searchParams.get("p");if(p&&m&&p!==m)return!0;let d=a.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||p&&f||d&&m)},py=(e={},t,r={})=>{let{label:o="",kind:a="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:p,kind:m=a,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),g=c?.replace(/http(s?):\/\//gi,"")??"",b=f&&f!==o&&h!==g?(0,DA.escapeHTML)(f):o||(0,DA.escapeHTML)(g),_=d==="post_tag"?"tag":d.replace("-","_"),k=["post","page","tag","category"].indexOf(_)>-1,w=!m&&!k||m==="custom"?"custom":m,S={...c!==void 0?{url:c&&encodeURI((0,uy.safeDecodeURI)(c))}:{},...b&&{label:b},...u!==void 0&&{opensInNewTab:u},...w&&{kind:w},..._&&_!=="URL"&&{type:_}};c&&!p&&r.id?N6e(r.url,c)&&(S.id=void 0,S.kind="custom",S.type="custom"):p&&Number.isInteger(p)?S.id=p:r.id&&(S.kind=w,S.type=_),t(S);let T="id"in S?S.id:r.id,I="kind"in S?S.kind:r.kind;return{isEntityLink:!!T&&I!=="custom",attributes:S}};function gf({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:a}=(0,qoe.useDispatch)(Zoe.store),{hasUrlBinding:i,createBinding:l,clearBinding:s}=Ui({clientId:e,attributes:t});return(0,$oe.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},p=t.label?(0,Koe.__unstableStripHTML)(t.label):"",m=c.title??"",d=o&&c.title!==void 0&&m!==p,f=d?{label:(0,Yoe.escapeHTML)(m)}:{};if((!t.label||t.label===""||d)&&(u.title=c.title),!c.id&&i)s(),a(e,{url:c.url,kind:"custom",type:"custom",id:void 0,...f});else{let{isEntityLink:g,attributes:v}=py(u,r,t);g?l(v):s(),Object.keys(f).length&&a(e,f)}},[t,o,e,i,l,s,r,a])}var YC=n(Tn(),1),vf=n(O(),1),fy=n(N(),1),QC=n(P(),1),jn=n(H(),1),rne=n(re(),1);var VA=n(ve(),1);var one=n(pr(),1);var Qa=n(O(),1),Wi=n(N(),1),dy=n(F(),1),ZC=n(re(),1),Xoe=n(Sr(),1),RA=n(Jo(),1),AA=n(H(),1);var Qoe=n(O(),1),$C=n(N(),1);var my=n(ve(),1);var nm=n(y(),1);function D6e({className:e,onBack:t}){return(0,nm.jsx)(Qoe.Button,{className:e,icon:(0,$C.isRTL)()?hP:mP,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,$C.__)("Back")})}function LA({className:e,title:t,description:r,onBack:o,children:a}){let i=(0,my.useInstanceId)(LA,"link-ui-dialog-title"),l=(0,my.useInstanceId)(LA,"link-ui-dialog-description"),s=(0,my.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,nm.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,nm.jsxs)(vi,{children:[(0,nm.jsx)("h2",{id:i,children:t}),(0,nm.jsx)("p",{id:l,children:r})]}),(0,nm.jsx)(D6e,{className:c,onBack:o}),a]})}var qC=LA;var Pl=n(y(),1);function Joe({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[a,i]=(0,AA.useState)(o),[l,s]=(0,AA.useState)(!0),c=a.trim().length>0,{lastError:u,isSaving:p}=(0,dy.useSelect)(v=>({lastError:v(ZC.store).getLastEntitySaveError("postType",e),isSaving:v(ZC.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:m}=(0,dy.useDispatch)(ZC.store),{createSuccessNotice:d,createErrorNotice:f}=(0,dy.useDispatch)(Xoe.store);async function h(v){if(v.preventDefault(),!(p||!c))try{let b=await m("postType",e,{title:a,status:l?"publish":"draft"},{throwOnError:!0});if(b){let _={id:b.id,type:e,title:(0,RA.decodeEntities)(b.title.rendered),url:b.link,kind:"post-type"};d((0,Wi.sprintf)((0,Wi.__)("%s page created successfully."),(0,RA.decodeEntities)(b.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,Wi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let g=p||!c;return(0,Pl.jsx)(qC,{className:"link-ui-page-creator",title:(0,Wi.__)("Create page"),description:(0,Wi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,Pl.jsx)(Qa.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,Pl.jsx)("form",{onSubmit:h,children:(0,Pl.jsxs)(Qa.__experimentalVStack,{spacing:4,children:[(0,Pl.jsx)(Qa.TextControl,{label:(0,Wi.__)("Title"),onChange:i,placeholder:(0,Wi.__)("No title"),value:a}),(0,Pl.jsx)(Qa.CheckboxControl,{label:(0,Wi.__)("Publish"),help:(0,Wi.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:l,onChange:s}),u&&(0,Pl.jsx)(Qa.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,Pl.jsxs)(Qa.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,Pl.jsx)(Qa.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:p,accessibleWhenDisabled:!0,children:(0,Wi.__)("Cancel")}),(0,Pl.jsx)(Qa.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:p,"aria-disabled":g,children:(0,Wi.__)("Create page")})]})]})})})})}var MA=n(N(),1),ene=n(F(),1),KC=n(P(),1);var zA=n(y(),1),{PrivateQuickInserter:L6e}=j(KC.privateApis);function R6e({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,ene.useSelect)(a=>{let{getBlockRootClientId:i}=a(KC.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,zA.jsx)(qC,{className:"link-ui-block-inserter",title:(0,MA.__)("Add block"),description:(0,MA.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,zA.jsx)(L6e,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var tne=R6e;var Xa=n(y(),1);function OA(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e,perPage:20};case"category":return{type:"term",subtype:"category",perPage:20};case"tag":return{type:"term",subtype:"post_tag",perPage:20};case"post_format":return{type:"post-format",perPage:20};default:return t==="taxonomy"?{type:"term",subtype:e,perPage:20}:t==="post-type"?{type:"post",subtype:e,perPage:20}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function A6e(e,t){let{label:r,url:o,opensInNewTab:a,type:i,kind:l,id:s}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:p}=e.entity||{},{image:m,badges:d}=hy({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:p}),{clientId:f}=e,h=i||"page",[g,v]=(0,jn.useState)(!1),[b,_]=(0,jn.useState)(!1),[k,x]=(0,jn.useState)(null),[w,S]=(0,jn.useState)(""),T=(0,jn.useRef)(""),I=V=>{T.current=V,S(V)},D=(0,jn.useRef)(),L=(0,jn.useRef)(),E=(0,jn.useRef)(),B=(0,rne.useResourcePermissions)({kind:"postType",name:h}),{isBoundEntityAvailable:A}=Ui({clientId:f,attributes:e.link}),z=(0,jn.useMemo)(()=>({url:o,opensInNewTab:a,title:r&&(0,YC.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:l,type:i,id:s,image:m,badges:d}),[r,a,o,l,i,s,m,d,c]),U=V=>{e.onChange(V),_(!1),x(!0),I("")},q=(0,VA.useInstanceId)(Du,"link-ui-link-control__title"),G=(0,VA.useInstanceId)(Du,"link-ui-link-control__description");(0,jn.useEffect)(()=>{k&&D.current&&(k?.current?k.current.focus():(YC.focus.tabbable.find(D.current)[0]||D.current).focus(),x(!1))},[k]);let W=(0,QC.useBlockEditingMode)();return(0,Xa.jsxs)(vf.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!g&&!b&&(0,Xa.jsxs)("div",{ref:D,role:"dialog","aria-labelledby":q,"aria-describedby":G,children:[(0,Xa.jsxs)(vi,{children:[(0,Xa.jsx)("h2",{id:q,children:(0,fy.__)("Add link")}),(0,Xa.jsx)("p",{id:G,children:(0,fy.__)("Search for and add a link to your Navigation.")})]}),(0,Xa.jsx)(QC.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:z,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:OA(i,l),onChange:e.onChange,onInputChange:V=>{T.current=V},inputValue:w,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:A,forceIsEditingLink:z?.url?!1:void 0,renderControlBottom:()=>z?.url?.length?null:(0,Xa.jsx)(M6e,{addPageButtonRef:L,addBlockButtonRef:E,setAddingBlock:()=>{v(!0)},setAddingPage:()=>{_(!0)},canAddPage:B?.canCreate&&i==="page",canAddBlock:W==="default"})})]}),g&&(0,Xa.jsx)(tne,{clientId:e.clientId,onBack:()=>{v(!1),x(E),I(T.current)},onBlockInsert:e?.onBlockInsert}),b&&(0,Xa.jsx)(Joe,{postType:h,onBack:()=>{_(!1),x(L),I(T.current)},onPageCreated:U,initialTitle:T.current&&!(0,one.isURL)(T.current)?T.current:""})]})}var Du=(0,jn.forwardRef)(A6e),M6e=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:a,canAddBlock:i})=>{let l="listbox";return!a&&!i?null:(0,Xa.jsxs)(vf.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[a&&(0,Xa.jsx)(vf.Button,{__next40pxDefaultSize:!0,ref:e,icon:vh,onClick:s=>{s.preventDefault(),o(!0)},"aria-haspopup":l,children:(0,fy.__)("Create page")}),i&&(0,Xa.jsx)(vf.Button,{__next40pxDefaultSize:!0,ref:t,icon:vh,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,fy.__)("Add block")})]})};var fn=n(N(),1),jA=n(pr(),1),nne=n(P(),1),FA=n(F(),1),HA=n(re(),1);var{useRemoteUrlData:z6e,isHashLink:ane,isRelativePath:V6e}=j(nne.privateApis);function O6e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function F6e(e,t){if(e==="/")return!0;if(!e||!t)return!1;try{let r=new URL(e,t),o=new URL(t);if(r.hostname!==o.hostname)return!1;let a=r.pathname.replace(/\/$/,""),i=o.pathname.replace(/\/$/,"");return a===i}catch{return!1}}function H6e({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,jA.safeDecodeURI)(e),o=!1;if(V6e(e)||ane(e))return{displayUrl:r,isExternal:!1};try{let a=new URL(e),i=new URL(t).host;if(a.host===i){let l=a.pathname+a.search+a.hash;l.endsWith("/")&&l.length>1&&(l=l.slice(0,-1)),r=l}else o=!0}catch{o=!0}return{displayUrl:r,isExternal:o}}function j6e({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:a,hasBinding:i,isEntityAvailable:l}){let s=[];if(e&&(o?s.push({label:(0,fn.__)("External link"),intent:"default"}):ane(e)?s.push({label:(0,fn.__)("Internal link"),intent:"default"}):F6e(e,t)?s.push({label:(0,fn.__)("Homepage"),intent:"default"}):r&&r!=="custom"?s.push({label:O6e(r),intent:"default"}):s.push({label:(0,fn.__)("Page"),intent:"default"})),i&&!l)s.push({label:(0,fn.sprintf)((0,fn.__)("Missing %s"),r),intent:"error"});else if(!e)s.push({label:(0,fn.__)("No link selected"),intent:"error"});else if(a){let u={publish:{label:(0,fn.__)("Published"),intent:"success"},future:{label:(0,fn.__)("Scheduled"),intent:"warning"},draft:{label:(0,fn.__)("Draft"),intent:"warning"},pending:{label:(0,fn.__)("Pending"),intent:"warning"},private:{label:(0,fn.__)("Private"),intent:"default"},trash:{label:(0,fn.__)("Trash"),intent:"error"}}[a];u&&s.push(u)}return s}function U6e(e){let t=e?.title;return typeof t=="string"?t:t&&"rendered"in t?t.rendered||(0,fn.__)("(no title)"):e?.name}function hy({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:a}){let i=(0,FA.useSelect)(f=>f(HA.store).getEntityRecord("root","__unstableBase")?.home,[]),l=U6e(t),{richData:s}=z6e(l?null:e),{displayUrl:c,isExternal:u}=H6e({linkUrl:e,homeUrl:i}),p=(0,FA.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:h}=f(HA.store),g=h("postType","attachment",t.featured_media);return g?.media_details?.sizes?.thumbnail?.source_url||g?.media_details?.sizes?.medium?.source_url||g?.source_url||null},[t?.featured_media]),m=j6e({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:a});return{title:e?l||s?.title||(0,jA.safeDecodeURI)(e):(0,fn.__)("Add link"),url:c,image:p,badges:m}}var ine=n(F(),1),lne=n(re(),1),sne=n(P(),1),bf=(e,t,r,o)=>{let a=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,sne.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,ine.useSelect)(m=>{if(!a)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=m(lne.store),h=d("postType",t,r),v=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:v}},[a,l,o,t,r]);return[a&&i&&(c||s&&s==="trash"),s==="draft"]};var Ho=n(y(),1),{LinkPicker:G6e,isHashLink:W6e,isRelativePath:$6e}=j(gy.privateApis);function q6e(e,t){if(t==="post-type")switch(e){case"post":return(0,Jt.__)("post");case"page":return(0,Jt.__)("page");default:return e||(0,Jt.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,Jt.__)("category");case"tag":return(0,Jt.__)("tag");default:return e||(0,Jt.__)("term")}return e||(0,Jt.__)("item")}function vy({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:a,url:i,description:l,rel:s,opensInNewTab:c}=e,u=Z(),{hasUrlBinding:p,isBoundEntityAvailable:m,entityRecord:d}=Ui({clientId:r,attributes:e}),[f,h]=bf(e.kind,e.type,d?.id,p),g="";f||p&&!m?g=JC():h&&(g=Z6e({type:e.type,kind:e.kind}));let v=gf({clientId:r,attributes:e,setAttributes:t}),b=(0,XC.useSelect)(I=>I(gy.store).getSettings().onNavigateToEntityRecord,[]),_=(0,XC.useSelect)(I=>I(une.store).getEntityRecord("root","__unstableBase")?.home,[]),x=(0,XC.useSelect)(I=>I(gy.store).getBlockEditingMode(r),[r])==="contentOnly",w=hy({url:i,entityRecord:d,type:e.type,hasBinding:p,isEntityAvailable:m}),S=!!i&&(!W6e(i)||$6e(i)&&!i.startsWith("/")),T=S&&i.startsWith("/")&&_?_+i:i;return(0,Ho.jsxs)(jo.__experimentalToolsPanel,{label:(0,Jt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,Jt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Ho.jsx)(jo.TextControl,{label:(0,Jt.__)("Text"),value:a?(0,cne.__unstableStripHTML)(a):"",onChange:I=>{t({label:I})},autoComplete:"off"})}),o&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,Jt.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Ho.jsx)(G6e,{preview:w,onSelect:v,suggestionsQuery:OA(e.type,e.kind),label:(0,Jt.__)("Link to"),help:g||void 0})}),(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Jt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Ho.jsx)(jo.CheckboxControl,{label:(0,Jt.__)("Open in new tab"),checked:c,onChange:I=>t({opensInNewTab:I})})}),!!i&&p&&m&&d?.id&&e.kind==="post-type"&&b&&(0,Ho.jsx)(jo.Button,{variant:"secondary",onClick:()=>{b({postId:d.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Jt.__)("Edit")}),S&&(0,Ho.jsx)(jo.Button,{variant:"secondary",href:T,target:"_blank",icon:Q1,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Jt.__)("View")})]}),(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Jt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!x,children:(0,Ho.jsx)(jo.TextareaControl,{label:(0,Jt.__)("Description"),value:l||"",onChange:I=>{t({description:I})},help:(0,Jt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Ho.jsx)(jo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Jt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!x,children:(0,Ho.jsx)(jo.TextControl,{label:(0,Jt.__)("Rel attribute"),value:s||"",onChange:I=>{t({rel:I})},autoComplete:"off",help:(0,Jt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function JC(){return(0,Jt.__)("This link is invalid and will not appear on your site. Please update the link.")}function Z6e({type:e,kind:t}){let r=q6e(e,t);return(0,Jt.sprintf)((0,Jt.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var UA=n(N(),1),pne=n(Jo(),1),GA=n(y(),1);function by({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let a=t?(0,UA.__)("Invalid"):(0,UA.__)("Draft");return(0,GA.jsx)("div",{className:C("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,GA.jsx)("span",{children:`${(0,pne.decodeEntities)(e)} (${a})`.trim()})})}var mne=n(F(),1),dne=n(P(),1);function yy(e){return(0,mne.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:a}=t(dne.store),i=r(),l=a(e,"core/navigation")[0];return i===l||o(l,!0)},[e])}var eS=n(H(),1),_y=e=>{let[t,r]=(0,eS.useState)(!1);return(0,eS.useEffect)(()=>{let{ownerDocument:o}=e.current;function a(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return o.addEventListener("dragstart",a),o.addEventListener("dragend",i),o.addEventListener("dragenter",l),()=>{o.removeEventListener("dragstart",a),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",l)}},[e]),t};function xy(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,o=r.getSelection(),a=t.createRange();a.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(a)}var gne=n(y(),1),K6e=["core/navigation-link","core/navigation-submenu"];function tS({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:o,removeBlock:a}=(0,hne.useDispatch)(fne.store),i=K6e?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=Ui({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let p=()=>{!t?.attributes?.url&&t?.clientId&&a(t.clientId,!1),r(null)},m=f=>h=>{f&&o(f,h)},d=f=>{t?.clientId&&f&&a(t.clientId,!1),r(f)};return(0,gne.jsx)(Du,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{p()},onChange:f=>{let{isEntityLink:h,attributes:g}=py(f,m(t?.clientId),t?.attributes);h?c(g):u(),r(null)}})}var rS=n(O(),1),vne=n(N(),1),bne=n(P(),1);var ky=n(y(),1),{useBlockDisplayTitle:Y6e}=j(bne.privateApis),Q6e=(0,vne.__)("Switch to '%s'");function yne({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:a,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,isManageMenusButtonDisabled:c}){let u=Y6e({clientId:e,context:"list-view"});return(0,ky.jsxs)(rS.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,ky.jsx)(rS.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,ky.jsx)(Kg,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:a,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,actionLabel:Q6e,isManageMenusButtonDisabled:c})]})}var xa=n(y(),1),X6e=(0,am.__)("Switch to '%s'"),{PrivateListView:J6e,PrivateBlockContext:eTe,useListViewPanelState:tTe,useBlockDisplayTitle:rTe}=j(im.privateApis),_ne=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:a,expandRevision:i})=>{let l=(0,oS.useSelect)(p=>!!p(im.store).getBlockCount(e),[e]),{openListViewContentPanel:s}=j((0,oS.useDispatch)(im.store)),{navigationMenu:c}=qg(t);if(t&&o)return(0,xa.jsx)(WC,{onCreateNew:a,isNotice:!0});if(r)return(0,xa.jsx)(wy.Spinner,{});let u=c?(0,am.sprintf)((0,am.__)("Structure for Navigation Menu: %s"),c?.title||(0,am.__)("Untitled menu")):(0,am.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,xa.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!l&&(0,xa.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,am.__)("This Navigation Menu is empty.")}),(0,xa.jsx)(J6e,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:Goe,additionalBlockContent:tS,onSelect:s},`${e}-${i}`)]})},oTe=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:a=null,onCreateNew:i,onSelectClassicMenu:l,onSelectNavigationMenu:s,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:p}=(0,xne.useContext)(eTe),m=rTe({clientId:t,context:"list-view"}),d=p,{isOpened:f,expandRevision:h,handleToggle:g}=tTe(t);return d?(0,xa.jsx)(im.InspectorControls,{group:"list",children:(0,xa.jsxs)(wy.PanelBody,{title:m,opened:f,onToggle:g,children:[u==="default"&&(0,xa.jsx)(Kg,{currentMenuId:a,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:X6e,isManageMenusButtonDisabled:c}),(0,xa.jsx)(_ne,{...e,expandRevision:h})]})}):(0,xa.jsx)(im.InspectorControls,{group:"list",children:(0,xa.jsxs)(wy.PanelBody,{title:null,children:[(0,xa.jsx)(yne,{clientId:t,blockEditingMode:u,currentMenuId:a,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,xa.jsx)(_ne,{...e,expandRevision:h})]})})},nS=oTe;var WA=n(y(),1);function aS({id:e,children:t}){return(0,WA.jsx)(vi,{children:(0,WA.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var kne=n(re(),1),iS=n(N(),1);var wne=n(y(),1);function Cne({id:e}){let[t]=(0,kne.useEntityProp)("postType","wp_navigation","title"),r=(0,iS.sprintf)((0,iS.__)('Navigation Menu: "%s"'),t);return(0,wne.jsx)(aS,{id:e,children:r})}var $A=n(F(),1),Sne=n(re(),1);function Cy(){let e=(0,$A.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,$A.select)(Sne.store),a=t?.(),i=r?.();return a==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===Cc:!1}var lS=n(P(),1);var{getResponsiveMediaQueries:nTe}=j(vg),Tne={left:"flex-start",center:"center",right:"flex-end","space-between":"space-between"};function Pne({clientId:e,layout:t,style:r}){let[o]=(0,lS.useSettings)("viewport"),a=`#block-${e}`,i=Object.entries(nTe(o)).map(([l,s])=>{let c=r?.[l]?.layout;if(!c||typeof c!="object"||Array.isArray(c)||!Object.keys(c).length)return"";let u={...t,...c},p=Object.hasOwn(Tne,u.justifyContent)?u.justifyContent:"left",m=Tne[p],d=u.orientation==="vertical",f="center";d&&(f=["center","right"].includes(p)?m:"flex-start");let h=d&&p==="left"?"initial":m,g={"--navigation-layout-justification-setting":m,"--navigation-layout-direction":d?"column":"row","--navigation-layout-wrap":u.flexWrap==="nowrap"?"nowrap":"wrap","--navigation-layout-justify":h,"--navigation-layout-align":f},v=Object.entries(g).map(([b,_])=>`${b}: ${_};`).join("");return`${s}{${a} {${v}}}`}).join("");(0,lS.useStyleOverride)({css:i})}var xe=n(y(),1),{isNavigationPostEditorKey:aTe}=j(Je.privateApis);function iTe({clientId:e}){let{insertBlock:t}=(0,Is.useDispatch)(Je.store),{getBlockCount:r}=(0,Is.useSelect)(Je.store),o=(0,dr.useCallback)(()=>{let a=r(e),i=(0,Ene.createBlock)(Fi.name,{kind:Fi.attributes.kind,type:Fi.attributes.type});t(i,a,e)},[e,t,r]);return(0,xe.jsx)(Je.BlockControls,{children:(0,xe.jsx)(eo.ToolbarGroup,{children:(0,xe.jsx)(eo.ToolbarButton,{name:"add-page",icon:ou,onClick:o,children:(0,Mt.__)("Add page")})})})}function lTe({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:a,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:p}){let[m,d]=(0,dr.useState)(),[f,h]=(0,dr.useState)(),[g,v]=(0,dr.useState)(),[b,_]=(0,dr.useState)(),k=(0,Is.useSelect)(()=>Cy(),[]);(0,dr.useEffect)(()=>{wA(u.current,h,d);let S=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');S&&(a.color||l.color)&&wA(S,_,v)},[a.color,l.color,u]);let x=(0,Je.__experimentalUseMultipleOriginColorsAndGradients)();if(!x.hasColorsOrGradients)return null;let w=[{colorValue:e.color,label:(0,Mt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Mt.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return w.push({colorValue:a.color,label:p||k?(0,Mt.__)("Submenu text"):(0,Mt.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:p||k?(0,Mt.__)("Submenu background"):(0,Mt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}),(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Je.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:w,panelId:c,...x,gradients:[],disableCustomGradients:!0}),(0,xe.jsx)(Je.ContrastChecker,{backgroundColor:m,textColor:f}),(0,xe.jsx)(Je.ContrastChecker,{backgroundColor:g,textColor:b})]})}function sTe({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:a,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:p,overlayTextColor:m,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{submenuVisibility:g,overlayMenu:v,overlay:b,showSubmenuIcon:_,templateLock:k,layout:{justifyContent:x,orientation:w="horizontal",flexWrap:S="wrap"}={},hasIcon:T,icon:I="handle"}=e,D=e.ref;Pne({clientId:r,layout:e.layout,style:e.style});let L=(0,dr.useCallback)(nr=>{t({ref:nr})},[t]),E=`navigationMenu/${D}`,B=(0,Je.useHasRecursion)(E),{isPreviewMode:A,onNavigateToEntityRecord:z,currentTheme:U,editorDisabledResponsive:q,hasSelectedStyleState:G}=(0,Is.useSelect)(nr=>{let{getSettings:al,hasSelectedStyleState:tu}=j(nr(Je.store)),Us=al();return{isPreviewMode:Us.isPreviewMode,onNavigateToEntityRecord:Us?.onNavigateToEntityRecord,currentTheme:nr(lm.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!Us?.[aTe],hasSelectedStyleState:tu(r)}},[r]),W=A?!1:B,V=(0,Je.useBlockEditingMode)(),{records:Q}=(0,lm.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[Y,ee]=wC({name:"block-library/core/navigation/status"}),[te,oe]=wC({name:"block-library/core/navigation/classic-menu-conversion"}),[J,ce]=wC({name:"block-library/core/navigation/permissions/update"}),{create:ie,status:we,error:le,value:de,isPending:ge,isSuccess:ne,isError:me}=Roe(r),se=async()=>{await ie("")},{hasUncontrolledInnerBlocks:Ne,uncontrolledInnerBlocks:De,isInnerBlockSelected:X,innerBlocks:Ce}=zoe(r),{replaceInnerBlocks:pe,selectBlock:ct,__unstableMarkNextChangeAsNotPersistent:he}=(0,Is.useDispatch)(Je.store);(0,dr.useEffect)(()=>{w==="horizontal"&&g==="always"&&(he(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[w,g,t,he]);let ze=(0,dr.useRef)(!1),Ct=(0,Is.useSelect)(nr=>{if(Ce.some(jm=>jm.name==="core/navigation-submenu"))return!0;let tu=Ce.find(jm=>jm.name==="core/page-list");if(!tu)return ze.current=!1,!1;if(ze.current)return!0;let{getBlocks:Us}=nr(Je.store);return Us(tu.clientId).length>0?(ze.current=!0,!0):!1},[Ce]),{records:Me}=(0,lm.useEntityRecords)("postType","wp_template_part",{per_page:-1}),No=Me?.some(nr=>nr.area===Cc)??!1,[Do,Lo]=(0,dr.useState)(!1),[bo,Zo]=(0,dr.useState)(!1),{hasResolvedNavigationMenus:Jn,isNavigationMenuResolved:ae,isNavigationMenuMissing:Ve,canUserUpdateNavigationMenu:$e,hasResolvedCanUserUpdateNavigationMenu:Lt,canUserDeleteNavigationMenu:tt,hasResolvedCanUserDeleteNavigationMenu:kr,canUserCreateNavigationMenus:ea,isResolvingCanUserCreateNavigationMenus:ci,hasResolvedCanUserCreateNavigationMenus:rt}=qg(D),Sn=Jn&&Ve,{convert:zm,status:La,error:ol}=yoe(ie),rp=La===VC,Hs=(0,dr.useCallback)((nr,al={focusNavigationBlock:!1})=>{let{focusNavigationBlock:tu}=al;L(nr),tu&&ct(r)},[ct,r,L]),Ul=!Ve&&ae,eu=Ne&&!Ul,{getNavigationFallbackId:S1}=j((0,Is.useSelect)(lm.store)),Le=D||eu?null:S1();(0,dr.useEffect)(()=>{D||eu||!Le||(he(),L(Le))},[D,L,eu,Le,he]);let bt=(0,dr.useRef)(),cr=(0,Is.useSelect)(()=>Cy(),[]),wr=cr?"div":"nav",qr=!D&&!ge&&!rp&&Jn&&Q?.length===0&&!Ne,ta=!Jn||ge||rp||!!(D&&!Ul&&!rp),ui=e.style?.typography?.textDecoration,Vm=(0,Is.useSelect)(nr=>nr(Je.store).__unstableHasActiveBlockOverlayActive(r),[r]),sh=(0,dr.useRef)(!1);(0,dr.useEffect)(()=>{cr&&(v!=="never"&&t({overlayMenu:"never"}),!sh.current&&!D&&(sh.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,cr,v,D,t]);let nl=v!=="never"&&!q,pi=(0,Je.useBlockProps)({ref:bt,className:C(a,{"items-justified-right":x==="right","items-justified-space-between":x==="space-between","items-justified-left":x==="left","items-justified-center":x==="center","is-vertical":w==="vertical","no-wrap":S==="nowrap","is-responsive":nl,"has-text-color":!!s.color||!!s?.class,[(0,Je.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Je.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${ui}`]:ui,"block-editor-block-content-overlay":Vm},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),ch=async nr=>zm(nr.id,nr.name,"draft"),Om=nr=>{Hs(nr)};(0,dr.useEffect)(()=>{ee(),ge&&(0,sS.speak)((0,Mt.__)("Creating Navigation Menu.")),ne&&(Hs(de?.id,{focusNavigationBlock:!0}),Y((0,Mt.__)("Navigation Menu successfully created."))),me&&Y((0,Mt.__)("Failed to create Navigation Menu."))},[we,le,de?.id,me,ne,ge,Hs,ee,Y]),(0,dr.useEffect)(()=>{oe(),La===VC&&(0,sS.speak)((0,Mt.__)("Classic menu importing.")),La===IA&&(te((0,Mt.__)("Classic menu imported successfully.")),Hs(de?.id,{focusNavigationBlock:!0})),La===MC&&te((0,Mt.__)("Classic menu import failed."))},[La,ol,oe,te,de?.id,Hs]),(0,dr.useEffect)(()=>{!o&&!X&&ce(),(o||X)&&(D&&!Sn&&Lt&&!$e&&J((0,Mt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!D&&rt&&!ea&&J((0,Mt.__)("You do not have permission to create Navigation Menus.")))},[o,X,$e,Lt,ea,rt,D,ce,J,Sn]);let Q2=ea||$e,js=C("wp-block-navigation__overlay-menu-preview",{open:bo}),mi=!_&&g!=="click"&&g!=="always"?(0,Mt.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'):"",T1=(0,dr.useRef)(!0);(0,dr.useEffect)(()=>{!T1.current&&mi&&(0,sS.speak)(mi),T1.current=!1},[mi]);let s9=(0,Bne.useInstanceId)(Vre,"overlay-menu-preview"),c9=Z(),P1=(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Je.InspectorControls,{children:Ct&&(0,xe.jsx)(eo.__experimentalToolsPanel,{label:(0,Mt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:c9,children:Ct&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Mt.__)("Submenus")}),(0,xe.jsx)(eo.__experimentalToolsPanelItem,{hasValue:()=>g!=="hover",label:(0,Mt.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,xe.jsxs)(eo.__experimentalToggleGroupControl,{label:(0,Mt.__)("Submenu Visibility"),value:g,onChange:nr=>{let al={submenuVisibility:nr};nr==="always"?al.showSubmenuIcon=!1:(nr==="click"||g==="always")&&(al.showSubmenuIcon=!0),t(al)},isBlock:!0,children:[(0,xe.jsx)(eo.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Mt.__)("Hover")}),(0,xe.jsx)(eo.__experimentalToggleGroupControlOption,{value:"click",label:(0,Mt.__)("Click")}),w==="vertical"&&(0,xe.jsx)(eo.__experimentalToggleGroupControlOption,{value:"always",label:(0,Mt.__)("Always")})]})}),(0,xe.jsx)(eo.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,Mt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:g==="click"||g==="always",isShownByDefault:!0,children:(0,xe.jsx)(eo.ToggleControl,{checked:_,onChange:nr=>{t({showSubmenuIcon:nr})},disabled:g==="click"||g==="always",label:(0,Mt.__)("Show arrow")})}),mi&&(0,xe.jsx)(eo.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:mi})]})})}),!cr&&(0,xe.jsx)(Je.InspectorControls,{children:(0,xe.jsx)(doe,{overlayMenu:v,overlay:b,setAttributes:t,onNavigateToEntityRecord:z,overlayMenuPreview:bo,setOverlayMenuPreview:Zo,hasIcon:T,icon:I,overlayMenuPreviewClasses:js,overlayMenuPreviewId:s9,isResponsive:nl,currentTheme:U,hasOverlays:No})}),!G&&(0,xe.jsx)(Je.InspectorControls,{group:"color",children:(0,xe.jsx)(lTe,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:m,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:p,clientId:r,navRef:bt,hasCustomOverlay:!!b})})]}),Fm=`${r}-desc`,Hm=v==="always",uh=!Q2||!Jn;if(eu&&!ge)return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(nS,{clientId:r,createNavigationMenuIsSuccess:ne,createNavigationMenuIsError:me,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:uh,onCreateNew:se,onSelectClassicMenu:ch,onSelectNavigationMenu:Om,isLoading:ta,blockEditingMode:V}),V==="default"&&P1,(0,xe.jsxs)(wr,{...pi,"aria-describedby":qr?void 0:Fm,children:[(0,xe.jsx)(aS,{id:Fm,children:(0,Mt.__)("Unsaved Navigation Menu.")}),(0,xe.jsx)(yA,{id:r,onToggle:Lo,isOpen:Do,hasIcon:T,icon:I,isResponsive:nl,isHiddenByDefault:Hm,overlayBackgroundColor:u,overlayTextColor:m,overlay:b,onNavigateToEntityRecord:z,children:(0,xe.jsx)(Dre,{createNavigationMenu:ie,blocks:De,hasSelection:o||X})})]})]});if(D&&Ve)return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(nS,{clientId:r,createNavigationMenuIsSuccess:ne,createNavigationMenuIsError:me,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:uh,onCreateNew:se,onSelectClassicMenu:ch,onSelectNavigationMenu:Om,isLoading:ta,blockEditingMode:V}),(0,xe.jsx)(wr,{...pi,children:(0,xe.jsx)(WC,{onCreateNew:se})})]});if(Ul&&W)return(0,xe.jsx)("div",{...pi,children:(0,xe.jsx)(Je.Warning,{children:(0,Mt.__)("Block cannot be rendered inside itself.")})});let u9=f||fre;return qr&&f?(0,xe.jsx)(wr,{...pi,children:(0,xe.jsx)(u9,{isSelected:o,currentMenuId:D,clientId:r,canUserCreateNavigationMenus:ea,isResolvingCanUserCreateNavigationMenus:ci,onSelectNavigationMenu:Om,onSelectClassicMenu:ch,onCreateEmpty:se})}):(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(nS,{clientId:r,createNavigationMenuIsSuccess:ne,createNavigationMenuIsError:me,currentMenuId:D,isNavigationMenuMissing:Ve,isManageMenusButtonDisabled:uh,onCreateNew:se,onSelectClassicMenu:ch,onSelectNavigationMenu:Om,isLoading:ta,blockEditingMode:V}),V==="default"&&P1,(0,xe.jsx)(lm.EntityProvider,{kind:"postType",type:"wp_navigation",id:D,children:(0,xe.jsxs)(Je.RecursionProvider,{uniqueId:E,children:[V==="contentOnly"&&Ul&&(0,xe.jsx)(iTe,{clientId:r}),V==="default"&&Ul&&(0,xe.jsxs)(Je.InspectorControls,{group:"advanced",children:[Lt&&$e&&(0,xe.jsx)(Sre,{}),kr&&tt&&(0,xe.jsx)(Are,{onDelete:()=>{pe(r,[]),Y((0,Mt.__)("Navigation Menu successfully deleted."))}}),(0,xe.jsx)(Hoe,{disabled:uh,className:"wp-block-navigation-manage-menus-button"})]}),(0,xe.jsxs)(wr,{...pi,"aria-describedby":!qr&&!ta?Fm:void 0,children:[ta&&!Hm&&(0,xe.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,xe.jsx)(eo.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!ta||Hm)&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Cne,{id:Fm}),(0,xe.jsx)(yA,{id:r,onToggle:Lo,hasIcon:T,icon:I,isOpen:Do,isResponsive:nl,isHiddenByDefault:Hm,overlayBackgroundColor:u,overlayTextColor:m,overlay:b,onNavigateToEntityRecord:z,children:Ul&&(0,xe.jsx)(_re,{clientId:r,hasCustomPlaceholder:!!f,templateLock:k,orientation:w})})]})]})]})})]})}var Ine=(0,Je.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(sTe);var Nne=n(P(),1),Dne=n(y(),1);function Lne({attributes:e}){if(!e.ref)return(0,Dne.jsx)(Nne.InnerBlocks.Content,{})}var sm=n(P(),1),s0=n(ve(),1);var cm=n(y(),1),qA={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},c0=({navigationMenuId:e,...t})=>({...t,ref:e}),cS=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:r,...o}=e;return(t||r)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...r&&{orientation:r}}}),o},uS=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},cTe={attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:uS},uTe={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:c0},pTe={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,s0.compose)(c0,cS,uS)},mTe={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})},migrate:(0,s0.compose)(c0,cS,Zt,uS),isEligible({style:e}){return e?.typography?.fontFamily}},dTe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},fTe=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=qA[t];if(o&&r.startsWith(o)){let a=r.slice(o.length);return t==="textDecoration"&&a==="strikethrough"?[t,"line-through"]:[t,a]}return[t,r]}))}}},hTe=[cTe,uTe,pTe,mTe,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,s0.compose)(c0,cS,Zt,dTe,uS),save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in qA){let r=e.style.typography[t];if(r&&r.startsWith(qA[t]))return!0}return!1},migrate:(0,s0.compose)(c0,cS,Zt,fTe)},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,s0.compose)(c0,e=>{let{rgbTextColor:t,rgbBackgroundColor:r,...o}=e;return{...o,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,cm.jsx)(sm.InnerBlocks.Content,{})}}],Rne=hTe;var{name:Vne}=gC,One={icon:od,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,pS.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pS.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,pS.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Ine,save:Lne,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Ane.select)(Mne.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,zne.decodeEntities)(t.title)},deprecated:Rne},gTe=()=>R({name:Vne,metadata:gC,settings:One});var YA={};K(YA,{init:()=>STe,metadata:()=>mS,name:()=>Kne,settings:()=>vS});var um=n(N(),1);var Wne=n(P(),1),$ne=n(bu(),1),qne=n($(),1);var mS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{anchor:!0,reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},selectors:{states:{"-current":".wp-block-navigation .current-menu-item"}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var dS=n($(),1),Sy=n(F(),1),Ty=n(O(),1),fS=n(Ks(),1),El=n(N(),1),hn=n(P(),1),hS=n(pr(),1),ka=n(H(),1);var gS=n(ve(),1);var fr=n(y(),1),bTe={name:"core/navigation-link"},yTe=["core/navigation-link","core/navigation-submenu"];function _Te(e){let t="";switch(e){case"post":t=(0,El.__)("Select post");break;case"page":t=(0,El.__)("Select page");break;case"category":t=(0,El.__)("Select category");break;case"tag":t=(0,El.__)("Select tag");break;default:t=(0,El.__)("Add link")}return t}function KA({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:a,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:p,url:m,description:d,kind:f,metadata:h}=e,{maxNestingLevel:g}=l,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:b,selectBlock:_}=(0,Sy.useDispatch)(hn.store),[k,x]=(0,ka.useState)(t&&!m),[w,S]=(0,ka.useState)(null),T=(0,ka.useRef)(null),I=_y(T),D=(0,El.__)("Add label\u2026"),L=(0,ka.useRef)(),E=(0,ka.useRef)(),B=(0,ka.useRef)(u===void 0),A=(0,ka.useRef)(!1),{isAtMaxNesting:z,isTopLevelLink:U,isParentOfSelectedBlock:q,hasChildren:G,parentBlockClientId:W,isSubmenu:V}=(0,Sy.useSelect)(Me=>{let{getBlockCount:No,getBlockName:Do,getBlockRootClientId:Lo,hasSelectedInnerBlock:bo,getBlockParentsByBlockName:Zo}=Me(hn.store),Jn=Lo(s),ae=Do(Jn),Ve=ae==="core/navigation",$e=Ve?Jn:Zo(s,"core/navigation")[0],Lt=ae==="core/navigation-submenu"?Jn:$e;return{isAtMaxNesting:Zo(s,yTe).length>=g,isTopLevelLink:Ve,isParentOfSelectedBlock:bo(s,!0),hasChildren:!!No(s),parentBlockClientId:Lt,isSubmenu:ae==="core/navigation-submenu"}},[s,g]),Q=yy(s),{getBlocks:Y}=(0,Sy.useSelect)(hn.store),{hasUrlBinding:ee,isBoundEntityAvailable:te,entityRecord:oe}=Ui({clientId:s,attributes:e}),J=gf({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),[ce,ie]=bf(f,p,c,Q),we=(0,ka.useCallback)(()=>{let Me=Y(s);Me.length===0&&(Me=[(0,dS.createBlock)("core/navigation-link")],_(Me[0].clientId));let No=(0,dS.createBlock)("core/navigation-submenu",e,Me);v(s,No)},[Y,s,_,v,e]);(0,ka.useEffect)(()=>{B.current&&t&&_(W)},[]),(0,ka.useEffect)(()=>{G&&(b(),we())},[G,b,we]),(0,ka.useEffect)(()=>{if(!(!B.current||!m||!k)){if(B.current=!1,(0,hS.isURL)((0,hS.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))xy(L);else if(_(s,null),V){let Me=Y(W);Me.length===1&&Me[0].clientId===s&&(A.current=!0)}}},[m,k,B,u]);function le(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)}let{textColor:de,customTextColor:ge,backgroundColor:ne,customBackgroundColor:me}=pf(l,!U);function se(Me){fS.isKeyboardEvent.primary(Me,"k")&&(Me.preventDefault(),Me.stopPropagation(),x(!0))}let Ne=(0,gS.useInstanceId)(KA),De=ee&&!te,X=De?(0,El.sprintf)("navigation-link-edit-%d-desc",Ne):void 0,Ce=(0,hn.useBlockProps)({ref:(0,gS.useMergeRefs)([S,T]),className:C("wp-block-navigation-item",{"is-editing":t||q,"is-dragging-within":I,"has-link":!!m,"has-child":G,"has-text-color":!!de||!!ge,[(0,hn.getColorClassName)("color",de)]:!!de,"has-background":!!ne||me,[(0,hn.getColorClassName)("background-color",ne)]:!!ne}),"aria-describedby":X,"aria-invalid":De,style:{color:!de&&ge,backgroundColor:!ne&&me},onKeyDown:se}),pe=(0,hn.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:bTe,directInsert:!0,renderAppender:!1}),ct=!m&&!(ee&&te)||ce||ie||ee&&!te;ct&&(Ce.onClick=()=>{x(!0)});let he=C("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":ct}),ze=_Te(p),Ct=JC();return(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(hn.BlockControls,{children:(0,fr.jsxs)(Ty.ToolbarGroup,{children:[(0,fr.jsx)(Ty.ToolbarButton,{name:"link",icon:fi,title:(0,El.__)("Link"),shortcut:fS.displayShortcut.primary("k"),onClick:()=>{x(!0)}}),!z&&(0,fr.jsx)(Ty.ToolbarButton,{name:"submenu",icon:Zm,title:(0,El.__)("Add submenu"),onClick:we})]})}),(0,fr.jsx)(hn.InspectorControls,{group:"content",children:(0,fr.jsx)(vy,{attributes:e,setAttributes:r,clientId:s})}),(0,fr.jsxs)("div",{...Ce,children:[De&&(0,fr.jsx)(vi,{id:X,children:Ct}),(0,fr.jsxs)("a",{className:he,children:[!m&&!h?.bindings?.url?(0,fr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,fr.jsx)("span",{children:ze})}):(0,fr.jsxs)(fr.Fragment,{children:[!ce&&!ie&&(0,fr.jsxs)(fr.Fragment,{children:[(0,fr.jsx)(hn.RichText,{ref:L,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:Me=>r({label:Me}),onMerge:a,onReplace:i,__unstableOnSplitAtEnd:o?()=>o((0,dS.createBlock)("core/navigation-link")):void 0,"aria-label":(0,El.__)("Navigation link text"),placeholder:D,withoutInteractiveFormatting:!0}),d&&(0,fr.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(ce||ie)&&(0,fr.jsx)(by,{label:u,isInvalid:ce,isDraft:ie,className:"wp-block-navigation-link__label"})]}),k&&(0,fr.jsx)(Du,{ref:E,clientId:s,link:e,entity:{entityRecord:oe,hasBinding:ee,isEntityAvailable:te},onClose:()=>{if(x(!1),!m&&!ee&&i){i([]);return}if(A.current&&(A.current=!1,T.current?.nextElementSibling)){let Me=T.current.nextElementSibling.querySelector(".block-editor-button-block-appender");Me&&Me.focus()}},anchor:w,onRemove:le,onChange:J})]}),(0,fr.jsx)("div",{...pe})]})]})}var Fne=n(P(),1),Hne=n(y(),1);function jne(){return(0,Hne.jsx)(Fne.InnerBlocks.Content,{})}function xTe(e){switch(e){case"post":return bv;case"page":return ou;case"tag":return Nv;case"category":return sp;default:return FP}}function Une(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(a,i)=>a.type===i.type,o=e.variations.map(a=>({...a,...!a.icon&&{icon:xTe(a.name)},...!a.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var gn=n($(),1),kTe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,gn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,gn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,gn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,gn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,gn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,gn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,gn.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,gn.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,gn.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,gn.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,gn.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,gn.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,gn.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,gn.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:a})=>(0,gn.createBlock)("core/buttons",{},[(0,gn.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:a?"_blank":void 0})])}]},Gne=kTe;var Zne=n(y(),1),{fieldsKey:wTe,formKey:CTe}=j(qne.privateApis),{name:Kne}=mS,vS={icon:Z1,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,um.sprintf)((0,um._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:KA,save:jne,example:{attributes:{label:(0,um._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,Zne.jsx)(Wne.InnerBlocks.Content,{})}}],transforms:Gne};window.__experimentalContentOnlyInspectorFields&&(vS[wTe]=[{id:"label",label:(0,um.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,um.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],vS[CTe]={fields:["label","link"]});var STe=()=>((0,$ne.addFilter)("blocks.registerBlockType","core/navigation-link",Une),R({name:Kne,metadata:mS,settings:vS}));var XA={};K(XA,{init:()=>ITe,metadata:()=>bS,name:()=>iae,settings:()=>CS});var Ey=n(N(),1),aae=n($(),1);var bS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"},isParentSubmenu:{type:"boolean",default:!0}},providesContext:{"core/isInsideSubmenu":"isParentSubmenu"},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","submenuVisibility","style"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var _S=n(F(),1),Py=n(O(),1),xS=n(Ks(),1),u0=n(N(),1),uo=n(P(),1),kS=n(pr(),1),Ns=n(H(),1);var Xne=n(Rh(),1),Jne=n($(),1),wS=n(ve(),1);var yS=n(O(),1),QA=n(y(),1),Yne=()=>(0,QA.jsx)(yS.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,QA.jsx)(yS.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Hr=n(y(),1),Qne=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function eae({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:a,context:i,clientId:l}){let{label:s,url:c,description:u,kind:p,type:m,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,submenuVisibility:g}=i,b=(0,uo.useBlockEditingMode)()!=="default"?!0:g==="click",{hasUrlBinding:_,isBoundEntityAvailable:k,entityRecord:x}=Ui({clientId:l,attributes:e}),w=gf({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:S,replaceBlock:T}=(0,_S.useDispatch)(uo.store),[I,D]=(0,Ns.useState)(!1),[L,E]=(0,Ns.useState)(null),B=(0,Ns.useRef)(null),A=_y(B),z=(0,u0.__)("Add text\u2026"),U=(0,Ns.useRef)(),{parentCount:q,isParentOfSelectedBlock:G,isImmediateParentOfSelectedBlock:W,hasChildren:V,selectedBlockHasChildren:Q,onlyDescendantIsEmptyLink:Y}=(0,_S.useSelect)(pe=>{let{hasSelectedInnerBlock:ct,getSelectedBlockClientId:he,getBlockParentsByBlockName:ze,getBlock:Ct,getBlockCount:Me,getBlockOrder:No}=pe(uo.store),Do,Lo=he(),bo=No(Lo);if(bo?.length===1){let Zo=Ct(bo[0]);Do=Zo?.name==="core/navigation-link"&&!Zo?.attributes?.label}return{parentCount:ze(l,"core/navigation-submenu").length,isParentOfSelectedBlock:ct(l,!0),isImmediateParentOfSelectedBlock:ct(l,!1),hasChildren:!!Me(l),selectedBlockHasChildren:!!bo?.length,onlyDescendantIsEmptyLink:Do}},[l]),ee=yy(l),te=(0,wS.usePrevious)(V),[oe,J]=bf(p,m,d,ee);(0,Ns.useEffect)(()=>{!b&&!c&&D(!0)},[]),(0,Ns.useEffect)(()=>{t||D(!1)},[t]),(0,Ns.useEffect)(()=>{I&&c&&(0,kS.isURL)((0,kS.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&xy(U)},[c]);let{textColor:ce,customTextColor:ie,backgroundColor:we,customBackgroundColor:le}=pf(i,q>0);function de(pe){xS.isKeyboardEvent.primary(pe,"k")&&(pe.preventDefault(),pe.stopPropagation(),D(!0))}let ge=(0,uo.useBlockProps)({ref:(0,wS.useMergeRefs)([E,B]),className:C("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":A,"has-link":!!c,"has-child":V,"has-text-color":!!ce||!!ie,[(0,uo.getColorClassName)("color",ce)]:!!ce,"has-background":!!we||le,[(0,uo.getColorClassName)("background-color",we)]:!!we,"open-on-click":b,"open-always":g==="always"}),style:{color:!ce&&ie,backgroundColor:!we&&le},onKeyDown:de}),ne=pf(i,!0),me=q>=h?Qne.filter(pe=>pe!=="core/navigation-submenu"):Qne,se=TC(ne),Ne=(0,uo.useInnerBlocksProps)(se,{allowedBlocks:me,defaultBlock:Fi,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||W&&!Q||V?uo.InnerBlocks.ButtonBlockAppender:!1}),De=b?"button":"a";function X(){let pe=(0,Jne.createBlock)("core/navigation-link",e);T(l,pe)}(0,Ns.useEffect)(()=>{!V&&te&&(S(),X())},[V,te]);let Ce=!Q||Y;return(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(uo.BlockControls,{children:(0,Hr.jsxs)(Py.ToolbarGroup,{children:[!b&&(0,Hr.jsx)(Py.ToolbarButton,{name:"link",icon:fi,title:(0,u0.__)("Link"),shortcut:xS.displayShortcut.primary("k"),onClick:()=>{D(!0)}}),(0,Hr.jsx)(Py.ToolbarButton,{name:"revert",icon:nI,title:(0,u0.__)("Convert to Link"),onClick:X,className:"wp-block-navigation__submenu__revert",disabled:!Ce})]})}),(0,Hr.jsx)(uo.InspectorControls,{group:"content",children:(0,Hr.jsx)(vy,{attributes:e,setAttributes:r,clientId:l,isLinkEditable:!b})}),(0,Hr.jsxs)("div",{...ge,children:[(0,Hr.jsxs)(De,{className:"wp-block-navigation-item__content",children:[!oe&&!J&&(0,Hr.jsxs)(Hr.Fragment,{children:[(0,Hr.jsx)(uo.RichText,{ref:U,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:pe=>r({label:pe}),onMerge:o,onReplace:a,"aria-label":(0,u0.__)("Navigation link text"),placeholder:z,withoutInteractiveFormatting:!0,onClick:()=>{!b&&!c&&D(!0)}}),u&&(0,Hr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(oe||J)&&(0,Hr.jsx)(by,{label:s,isInvalid:oe,isDraft:J,className:"wp-block-navigation-item__label"}),!b&&I&&(0,Hr.jsx)(Du,{clientId:l,link:e,entity:{entityRecord:x,hasBinding:_,isEntityAvailable:k},onClose:()=>{D(!1)},anchor:L,onRemove:()=>{r({url:""}),(0,Xne.speak)((0,u0.__)("Link removed."),"assertive")},onChange:w})]}),(f||b)&&(0,Hr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Hr.jsx)(Yne,{})}),(0,Hr.jsx)("div",{...Ne})]})]})}var tae=n(P(),1),rae=n(y(),1);function oae(){return(0,rae.jsx)(tae.InnerBlocks.Content,{})}var yf=n($(),1),PTe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,yf.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,yf.createBlock)("core/search")}]},nae=PTe;var{fieldsKey:ETe,formKey:BTe}=j(aae.privateApis),{name:iae}=bS,CS={icon:({context:e})=>e==="list-view"?ou:Zm,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:eae,example:{attributes:{label:(0,Ey._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:oae,transforms:nae};window.__experimentalContentOnlyInspectorFields&&(CS[ETe]=[{id:"label",label:(0,Ey.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Ey.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],CS[BTe]={fields:["label","link"]});var ITe=()=>R({name:iae,metadata:bS,settings:CS});var eM={};K(eM,{init:()=>LTe,metadata:()=>SS,name:()=>hae,settings:()=>gae});var lae=n(N(),1),sae=n(P(),1),JA=n(y(),1);function cae(){return(0,JA.jsx)("div",{...(0,sae.useBlockProps)(),children:(0,JA.jsx)("span",{children:(0,lae.__)("Page break")})})}var SS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1},editorStyle:"wp-block-nextpage-editor"};var uae=n(H(),1),pae=n(y(),1);function mae(){return(0,pae.jsx)(uae.RawHTML,{children:"<!--nextpage-->"})}var dae=n($(),1),DTe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,dae.createBlock)("core/nextpage",{})}}]},fae=DTe;var{name:hae}=SS,gae={icon:cB,example:{},transforms:fae,edit:cae,save:mae},LTe=()=>R({name:hae,metadata:SS,settings:gae});var rM={};K(rM,{init:()=>ATe,metadata:()=>TS,name:()=>_ae,settings:()=>xae});var yae=n(bu(),1);var p0=n(P(),1),Ec=n(O(),1),Lu=n(N(),1);var wa=n(y(),1);function vae({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,a=r==="icon"||r==="both",i=r==="text"||r==="both",l=o||(0,Lu.__)("Close"),s=(0,p0.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=Z();return(0,wa.jsxs)(wa.Fragment,{children:[(0,wa.jsx)(p0.InspectorControls,{children:(0,wa.jsx)(Ec.__experimentalToolsPanel,{label:(0,Lu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,wa.jsx)(Ec.__experimentalToolsPanelItem,{label:(0,Lu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,wa.jsxs)(Ec.__experimentalToggleGroupControl,{label:(0,Lu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,children:[(0,wa.jsx)(Ec.__experimentalToggleGroupControlOption,{value:"icon",label:(0,Lu.__)("Icon")}),(0,wa.jsx)(Ec.__experimentalToggleGroupControlOption,{value:"text",label:(0,Lu.__)("Text")}),(0,wa.jsx)(Ec.__experimentalToggleGroupControlOption,{value:"both",label:(0,Lu.__)("Both")})]})})})}),(0,wa.jsxs)("button",{...s,type:"button","aria-label":i?void 0:(0,Lu.__)("Close"),children:[a&&(0,wa.jsx)(na,{icon:Km}),i&&(0,wa.jsx)(p0.RichText,{identifier:"text",value:l,onChange:u=>t({text:u}),tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var TS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-overlay-close",title:"Navigation Overlay Close",category:"design",description:"A customizable button to close overlays.",keywords:["close","overlay","navigation","menu"],textdomain:"default",attributes:{displayMode:{type:"string",enum:["icon","text","both"],default:"icon"},text:{type:"string"}},supports:{color:{gradients:!1,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-navigation-overlay-close"};var PS=n(M(),1),tM=n(y(),1),bae=(0,tM.jsx)(PS.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,tM.jsx)(PS.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12ZM15 8l-3 3-3-3-1.1 1.1 3 3-3 3L9 16.2l3-3 3 3 1.1-1.1-3-3 3-3L15 8Z"})});var{name:_ae}=TS,xae={icon:bae,edit:vae},ATe=()=>((0,yae.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:Cy()),R({name:_ae,metadata:TS,settings:xae}));var nM={};K(nM,{init:()=>FTe,metadata:()=>ES,name:()=>Eae,settings:()=>Bae});var ES={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern Placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}};var Sae=n($(),1),pm=n(F(),1),IS=n(H(),1),mm=n(P(),1),Tae=n(re(),1),NS=n(N(),1);var kae=n(F(),1),oM=new WeakMap;function wae(){let e=(0,kae.useRegistry)();if(!oM.has(e)){let t=new Map;oM.set(e,zTe.bind(null,t))}return oM.get(e)}function zTe(e,{name:t,blocks:r}){let o=[...r];for(;o.length;){let a=o.shift();for(let i of a.innerBlocks??[])o.unshift(i);a.name==="core/pattern"&&VTe(e,t,a.attributes.slug)}}function VTe(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),Cae(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function Cae(e,t,r=new Set,o=new Set){r.add(t),o.add(t);let a=e.get(t)??new Set;for(let i of a)if(r.has(i)){if(o.has(i))return!0}else if(Cae(e,i,r,o))return!0;return o.delete(t),!1}var BS=n(y(),1),OTe=({attributes:e,clientId:t})=>{let r=(0,pm.useRegistry)(),o=(0,pm.useSelect)(g=>g(mm.store).__experimentalGetParsedPattern(e.slug),[e.slug]),a=(0,pm.useSelect)(g=>g(Tae.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,pm.useDispatch)(mm.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,pm.useSelect)(mm.store),[p,m]=(0,IS.useState)(!1),d=wae();function f(g){return g.innerBlocks.find(v=>v.name==="core/template-part")&&(g.innerBlocks=g.innerBlocks.map(v=>(v.name==="core/template-part"&&v.attributes.theme===void 0&&(v.attributes.theme=a),v))),g.name==="core/template-part"&&g.attributes.theme===void 0&&(g.attributes.theme=a),g}(0,IS.useEffect)(()=>{if(!p&&o?.blocks){try{d(o)}catch{m(!0);return}window.queueMicrotask(()=>{let g=c(t),v=o.blocks.map(_=>(0,Sae.cloneBlock)(f(_)));v.length===1&&o.categories?.length>0&&(v[0].attributes={...v[0].attributes,metadata:{...v[0].attributes.metadata,categories:o.categories,patternName:o.name,name:v[0].attributes.metadata.name||o.title}});let b=u(g);r.batch(()=>{s(),l(g,"default"),s(),i(t,v),s(),l(g,b)})})}},[t,p,o,s,i,u,l,c]);let h=(0,mm.useBlockProps)();return p?(0,BS.jsx)("div",{...h,children:(0,BS.jsx)(mm.Warning,{children:(0,NS.sprintf)((0,NS.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,BS.jsx)("div",{...h})},Pae=OTe;var{name:Eae}=ES,Bae={edit:Pae},FTe=()=>R({name:Eae,metadata:ES,settings:Bae});var sM={};K(sM,{init:()=>WTe,metadata:()=>DS,name:()=>Oae,settings:()=>Fae});var DS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility","core/isInsideSubmenu"],supports:{anchor:!0,reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},color:{text:!0,background:!0,link:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var Mae=n($(),1),Wn=n(P(),1),Gn=n(O(),1),Un=n(N(),1),Bc=n(H(),1),zae=n(re(),1),RS=n(F(),1);var aM=n($(),1),Iae=n(F(),1),Nae=n(P(),1);function jTe(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:a,title:i,link:l,type:s,parent:c})=>{let u=r[a]?.innerBlocks??[];r[a]=(0,aM.createBlock)("core/navigation-link",{id:a,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:o0(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[a])):o.push(r[a])}),o}function Dae(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=Dae(r.innerBlocks,t);if(o)return o}}return null}function UTe(e=[],t=null){let r=jTe(e);if(t){let a=Dae(r,t);a&&a.innerBlocks&&(r=a.innerBlocks)}let o=a=>{a.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let p=(0,aM.createBlock)("core/navigation-submenu",c,u);s[l]=p}})};return o(r),r}function Lae({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:a,selectBlock:i}=(0,Iae.useDispatch)(Nae.store);return()=>{let l=UTe(t,o);a(e,l),i(r)}}var Iy=n(O(),1),iM=n(ve(),1),By=n(N(),1),_f=n(y(),1),lM=(0,By.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function LS({onClick:e,onClose:t,disabled:r}){return(0,_f.jsxs)(Iy.Modal,{onRequestClose:t,title:(0,By.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,iM.useInstanceId)(LS,"wp-block-page-list-modal__description")},children:[(0,_f.jsx)("p",{id:(0,iM.useInstanceId)(LS,"wp-block-page-list-modal__description"),children:lM}),(0,_f.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,_f.jsx)(Iy.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,By.__)("Cancel")}),(0,_f.jsx)(Iy.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,By.__)("Edit")})]})]})}var Bt=n(y(),1),Rae=100,Aae=()=>{};function GTe({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:a,parentPageID:i}){if(!r)return(0,Bt.jsx)("div",{...e,children:(0,Bt.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,Bt.jsx)(Gn.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(a===null)return(0,Bt.jsx)("div",{...e,children:(0,Bt.jsx)(Gn.Notice,{status:"warning",isDismissible:!1,children:(0,Un.__)("Page List: Cannot retrieve Pages.")})});if(a.length===0)return(0,Bt.jsx)("div",{...e,children:(0,Bt.jsx)(Gn.Notice,{status:"info",isDismissible:!1,children:(0,Un.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let l=a.find(s=>s.id===i);return l?.title?.rendered?(0,Bt.jsx)("div",{...e,children:(0,Bt.jsx)(Wn.Warning,{children:(0,Un.sprintf)((0,Un.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,Bt.jsx)("div",{...e,children:(0,Bt.jsx)(Gn.Notice,{status:"warning",isDismissible:!1,children:(0,Un.__)("Page List: Cannot retrieve Pages.")})})}if(a.length>0)return(0,Bt.jsx)("ul",{...t})}function Vae({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:a}=r,[i,l]=(0,Bc.useState)(!1),s=(0,Bc.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=Z(),{records:p,hasResolved:m}=(0,zae.useEntityRecords)("postType","page",{per_page:Rae,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&p?.length>0&&p?.length<=Rae,f=(0,Bc.useMemo)(()=>p===null?new Map:p.sort((D,L)=>D.menu_order===L.menu_order?D.title.rendered.localeCompare(L.title.rendered):D.menu_order-L.menu_order).reduce((D,L)=>{let{parent:E}=L;return D.has(E)?D.get(E).push(L):D.set(E,[L]),D},new Map),[p]),h=(0,Wn.useBlockProps)({className:C("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Wn.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Wn.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),g=(0,Bc.useMemo)(function I(D=0,L=0){let E=f.get(D);return E?.length?E.reduce((B,A)=>{let z=f.has(A.id),U={value:A.id,label:"\u2014 ".repeat(L)+A.title.rendered,rawName:A.title.rendered};return B.push(U),z&&B.push(...I(A.id,L+1)),B},[]):[]},[f]),v=(0,Bc.useMemo)(function I(D=a){let L=f.get(D);return L?.length?L.reduce((E,B)=>{let A=f.has(B.id),z={id:B.id,label:B.title?.rendered?.trim()!==""?B.title?.rendered:(0,Un.__)("(no title)"),title:B.title?.rendered?.trim()!==""?B.title?.rendered:(0,Un.__)("(no title)"),link:B.url,hasChildren:A},U=null,q=I(B.id);return U=(0,Mae.createBlock)("core/page-list-item",z,q),E.push(U),E},[]):[]},[f,a]),{hasSelectedChild:b,parentClientId:_,hasDraggedChild:k,isChildOfNavigation:x}=(0,RS.useSelect)(I=>{let{getBlockParentsByBlockName:D,hasSelectedInnerBlock:L,hasDraggedInnerBlock:E}=I(Wn.store),B=D(t,"core/navigation",!0);return{isChildOfNavigation:B.length>0,hasSelectedChild:L(t,!0),hasDraggedChild:E(t,!0),parentClientId:B[0]}},[t]),w=Lae({clientId:t,pages:p,parentClientId:_,parentPageID:a}),S=(0,Wn.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:x?!1:"all",onInput:Aae,onChange:Aae,value:v}),{selectBlock:T}=(0,RS.useDispatch)(Wn.store);return(0,Bc.useEffect)(()=>{(b||k)&&(s(),T(_))},[b,k,_,T,s]),(0,Bt.jsxs)(Bt.Fragment,{children:[(g.length>0||d)&&(0,Bt.jsx)(Wn.InspectorControls,{children:(0,Bt.jsxs)(Gn.__experimentalToolsPanel,{label:(0,Un.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:u,children:[g.length>0&&(0,Bt.jsx)(Gn.__experimentalToolsPanelItem,{label:(0,Un.__)("Parent Page"),hasValue:()=>a!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,Bt.jsx)(Gn.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Un.__)("Parent"),value:a,options:g,onChange:I=>o({parentPageID:I??0}),help:(0,Un.__)("Choose a page to show only its subpages.")})}),d&&(0,Bt.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,Bt.jsx)("p",{children:lM}),(0,Bt.jsx)(Gn.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!m,onClick:w,children:(0,Un.__)("Edit")})]})]})}),d&&(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsx)(Wn.BlockControls,{group:"other",children:(0,Bt.jsx)(Gn.ToolbarButton,{title:(0,Un.__)("Edit"),onClick:s,children:(0,Un.__)("Edit")})}),i&&(0,Bt.jsx)(LS,{onClick:w,onClose:c,disabled:!m})]}),(0,Bt.jsx)(GTe,{blockProps:h,innerBlocksProps:S,hasResolvedPages:m,blockList:v,pages:p,parentPageID:a})]})}var{name:Oae}=DS,Fae={icon:uB,example:{},edit:Vae},WTe=()=>R({name:Oae,metadata:DS,settings:Fae});var dM={};K(dM,{init:()=>ZTe,metadata:()=>AS,name:()=>Uae,settings:()=>Gae});var AS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick","submenuVisibility"],supports:{anchor:!0,reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var zS=n(P(),1),Hae=n(F(),1),pM=n(re(),1),mM=n(Tn(),1);var MS=n(O(),1),cM=n(y(),1),uM=()=>(0,cM.jsx)(MS.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,cM.jsx)(MS.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Ca=n(y(),1);function qTe(){return(0,Hae.useSelect)(e=>{if(!e(pM.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(pM.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function jae({context:e,attributes:t}){let{id:r,label:o,link:a,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=qTe(),u=e.submenuVisibility,p=u==="click",m=pf(e,!0),d=TC(m),f=(0,zS.useBlockProps)(d,{className:"wp-block-pages-list__item"}),h=(0,zS.useInnerBlocksProps)(f);return(0,Ca.jsxs)("li",{className:C("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":p,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&p?(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,mM.safeHTML)(o)}}),(0,Ca.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Ca.jsx)(uM,{})})]}):(0,Ca.jsx)("a",{className:C("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:a,dangerouslySetInnerHTML:{__html:(0,mM.safeHTML)(l)}}),i&&(0,Ca.jsxs)(Ca.Fragment,{children:[!p&&e.showSubmenuIcon&&(0,Ca.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,Ca.jsx)(uM,{})}),(0,Ca.jsx)("ul",{...h})]})]},r)}var{name:Uae}=AS,Gae={__experimentalLabel:({label:e})=>e,icon:ou,example:{},edit:jae},ZTe=()=>R({name:Uae,metadata:AS,settings:Gae});var yM={};K(yM,{init:()=>a8e,metadata:()=>g0,name:()=>GS,settings:()=>US});var jS=n(N(),1);var pie=n($(),1);var Wae=n(H(),1),To=n(P(),1),fM=n(N(),1),Ic=n(y(),1),m0={className:!1},hM={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},VS=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;let t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});let{customTextColor:r,customBackgroundColor:o,customFontSize:a,...i}=e;return{...i,style:t}},d0=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:Zpt,...Ny}=hM,KTe=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:hM,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:r,dropCap:o,direction:a}=e,i=C({"has-drop-cap":t===((0,fM.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Ic.jsx)("p",{...To.useBlockProps.save({className:i,dir:a}),children:(0,Ic.jsx)(To.RichText.Content,{value:r})})},migrate:d0},{supports:m0,attributes:{...Ny,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:d0,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:a}=e,i=C({"has-drop-cap":t===((0,fM.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Ic.jsx)("p",{...To.useBlockProps.save({className:i,dir:a}),children:(0,Ic.jsx)(To.RichText.Content,{value:r})})}},{supports:m0,attributes:{...Ny,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return VS(d0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:a,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:p}=e,m=(0,To.getColorClassName)("color",i),d=(0,To.getColorClassName)("background-color",a),f=(0,To.getFontSizeClass)(c),h=C({"has-text-color":i||s,"has-background":a||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:s,fontSize:f?void 0:u};return(0,Ic.jsx)(To.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:p})}},{supports:m0,attributes:{...Ny,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return VS(d0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:a,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:p}=e,m=(0,To.getColorClassName)("color",i),d=(0,To.getColorClassName)("background-color",a),f=(0,To.getFontSizeClass)(c),h=C({"has-text-color":i||s,"has-background":a||l,"has-drop-cap":o,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:l,color:m?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,Ic.jsx)(To.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:p})}},{supports:m0,attributes:{...Ny,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return VS(d0(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:a,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:p}=e,m=(0,To.getColorClassName)("color",l),d=(0,To.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=C({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":a,[f]:f,[m]:m,[d]:d}),g={backgroundColor:d?void 0:s,color:m?void 0:c,fontSize:f?void 0:p,textAlign:r};return(0,Ic.jsx)(To.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:o})}},{supports:m0,attributes:{...Ny,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:a,backgroundColor:i,textColor:l,fontSize:s}=e,c=C({[`align${t}`]:t,"has-background":i,"has-drop-cap":a});return(0,Ic.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:o})},migrate(e){return VS(d0({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&e.backgroundColor[0]==="#"?e.backgroundColor:void 0}))}},{supports:m0,attributes:{...hM,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Ic.jsx)(Wae.RawHTML,{children:e.content})},migrate:e=>e}],$ae=KTe;var Ja=n(N(),1),h0=n(O(),1),Uo=n(P(),1),oie=n(F(),1),nie=n($(),1);var aie=n(H(),1);var qae=n(H(),1),Zae=n(ve(),1),Kae=n(es(),1),Yae=n(Ks(),1),f0=n(F(),1),gM=n(P(),1),Ru=n($(),1);var{subscribeOwnedListener:YTe}=j(Kae.privateApis);function Qae(e){let{batch:t}=(0,f0.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:a}=(0,f0.useDispatch)(gM.store),{getBlockRootClientId:i,getBlockIndex:l,getBlockOrder:s,getBlockName:c,getBlock:u,canInsertBlockType:p}=(0,f0.useSelect)(gM.store),m=(0,qae.useRef)(e);return m.current=e,(0,Zae.useRefEffect)(d=>{function f(h){if(h.defaultPrevented||h.keyCode!==Yae.ENTER)return;let{content:g,clientId:v}=m.current;if(g.length)return;let b=i(v);if(!(0,Ru.hasBlockSupport)(c(b),"__experimentalOnEnter",!1))return;let _=s(b),k=_.indexOf(v);if(k===_.length-1){let E=b;for(;!p(c(v),i(E));)E=i(E);typeof E=="string"&&(h.preventDefault(),r([v],b,i(E),l(E)+1));return}let x=(0,Ru.getDefaultBlockName)(),w=c(b),S=i(b);if(!p(x,S)||!p(w,S))return;h.preventDefault();let T=u(b),I=(0,Ru.cloneBlock)({...T,innerBlocks:T.innerBlocks.slice(0,k)}),D=(0,Ru.createBlock)(x),L=(0,Ru.cloneBlock)({...T,innerBlocks:T.innerBlocks.slice(k+1)});t(()=>{o(b,[I,D,L]),a(D.clientId)})}return YTe(d,"keydown",f,!0)},[])}var Xae=n(ve(),1),OS=n(H(),1),Jae=n(xd(),1),eie=n(F(),1),tie=n(P(),1);function rie(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,eie.useDispatch)(tie.store),a=(0,Xae.useEvent)(()=>{(0,Jae.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,OS.useRef)();(0,OS.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,a())},[e,a])}var $i=n(y(),1),{PrivateBlockContext:QTe}=j(Uo.privateApis);function XTe({direction:e,setDirection:t}){return(0,Ja.isRTL)()&&(0,$i.jsx)(h0.ToolbarButton,{icon:aE,title:(0,Ja._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function vM(e){return e===((0,Ja.isRTL)()?"left":"right")||e==="center"}function JTe({clientId:e,attributes:t,setAttributes:r,name:o}){let[a]=(0,Uo.useSettings)("typography.dropCap"),i=(0,oie.useSelect)(m=>{let{hasSelectedStyleState:d}=j(m(Uo.store));return d(e)},[e]);if(!a||i)return null;let{style:l,dropCap:s}=t,c=l?.typography?.textAlign,u;vM(c)?u=(0,Ja.__)("Not available for aligned text."):s?u=(0,Ja.__)("Showing large initial letter."):u=(0,Ja.__)("Show a large initial letter.");let p=(0,nie.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,$i.jsx)(Uo.InspectorControls,{group:"typography",children:(0,$i.jsx)(h0.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ja.__)("Drop cap"),isShownByDefault:p,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,$i.jsx)(h0.ToggleControl,{label:(0,Ja.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:u,disabled:vM(c)})})})}function e8e({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:a,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:p,placeholder:m,style:d}=e,f=d?.typography?.textAlign;rie(e.align,d,a);let h=(0,Uo.useBlockProps)({ref:Qae({clientId:i,content:c}),className:C({"has-drop-cap":vM(f)?!1:p}),style:{direction:u}}),g=(0,Uo.useBlockEditingMode)(),{ariaLabel:v}=(0,aie.useContext)(QTe);return(0,$i.jsxs)($i.Fragment,{children:[g==="default"&&(0,$i.jsx)(Uo.BlockControls,{group:"block",children:(0,$i.jsx)(XTe,{direction:u,setDirection:b=>a({direction:b})})}),l&&(0,$i.jsx)(JTe,{name:s,clientId:i,attributes:e,setAttributes:a}),(0,$i.jsx)(Uo.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:b=>a({content:b}),onMerge:t,onReplace:r,onRemove:o,"aria-label":v??(Uo.RichText.isEmpty(c)?(0,Ja.__)("Empty block; start writing or type forward slash to choose a block"):(0,Ja.__)("Block: Paragraph")),"data-empty":Uo.RichText.isEmpty(c),placeholder:m||(0,Ja.__)("Type / to choose a block"),"data-custom-placeholder":m?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var iie=e8e;var g0={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{align:["wide","full"],splitting:!0,editableRoot:!0,anchor:!0,className:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,textColumns:!0,textIndent:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},selectors:{root:"p",typography:{textIndent:".wp-block-paragraph + .wp-block-paragraph"}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var FS=n(P(),1),lie=n(N(),1),bM=n(y(),1);function sie({attributes:e}){let{content:t,dropCap:r,direction:o,style:a}=e,i=a?.typography?.textAlign,l=C({"has-drop-cap":i===((0,lie.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,bM.jsx)("p",{...FS.useBlockProps.save({className:l,dir:o}),children:(0,bM.jsx)(FS.RichText.Content,{value:t})})}var HS=n($(),1);var{name:cie}=g0,r8e={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,HS.getBlockAttributes)(cie,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,HS.createBlock)(cie,t)}}]},uie=r8e;var{fieldsKey:o8e,formKey:n8e}=j(pie.privateApis),{name:GS}=g0,US={icon:mB,example:{attributes:{content:(0,jS.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){let r=e?.metadata?.name;if((t==="list-view"||t==="breadcrumb")&&r)return r;if(t==="accessibility"){if(r)return r;let{content:o}=e;return!o||o.length===0?(0,jS.__)("Empty"):o}},transforms:uie,deprecated:$ae,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:iie,save:sie};window.__experimentalContentOnlyInspectorFields&&(US[o8e]=[{id:"content",label:(0,jS.__)("Content"),type:"text",Edit:"rich-text"}],US[n8e]={fields:["content"]});var a8e=()=>R({name:GS,metadata:g0,settings:US});var IM={};K(IM,{init:()=>q8e,metadata:()=>WS,name:()=>Wie,settings:()=>$ie});var WS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/playlist",title:"Playlist",category:"media",description:"Embed a simple playlist.",keywords:["music","sound"],textdomain:"default",allowedBlocks:["core/playlist-track"],attributes:{type:{type:"string",default:"audio"},order:{type:"string",default:"asc"},showTracklist:{type:"boolean",default:!0},showImages:{type:"boolean",default:!0},showPlayButtonArtwork:{type:"boolean",default:!1},showArtists:{type:"boolean",default:!0},showNumbers:{type:"boolean",default:!0},showTrackLength:{type:"boolean",default:!0},waveformStyle:{type:"string",enum:["bars","mirror","line","blocks","dots","seekbar"],default:"bars"},waveformColor:{type:"string"},waveformGradient:{type:"string"},waveformBackgroundColor:{type:"string"},waveformBackgroundGradient:{type:"string"},caption:{type:"string"}},providesContext:{showArtists:"showArtists",showImages:"showImages"},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:!0,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var Wo=n(H(),1),Ir=n(P(),1),vr=n(O(),1),Ay=n(F(),1),Hie=n(Sr(),1),mt=n(N(),1);var BM=n($(),1),jie=n(Ar(),1);var Dc=n(H(),1),ZS=n(ve(),1),Ry=n(N(),1);function Cie(e){let t=-1/0;for(let r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return t}function Nc(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function mie(e){return Nc(typeof e=="number"?`${e}px`:e)}function l8e(e){if(typeof e!="string"||e==="")return!1;try{let t=new URL(e,"http://localhost/");return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function Go(e,t=0,r=1){return Math.max(t,Math.min(e,r))}function s8e(e){return e===void 0?void 0:e==="true"}function die(e){if(typeof e=="string"&&e.trim().startsWith("["))try{return JSON.parse(e)}catch{}return e}function Sie(e){let t={},r=(l,s=l)=>{let c=s8e(e.dataset[s]);c!==void 0&&(t[l]=c)},o=(l,s=l,c=!1)=>{let u=e.dataset[s];u&&(t[l]=c?parseFloat(u):parseInt(u,10))},a=(l,s=l)=>{let c=e.dataset[s];c&&(t[l]=/^\d+(\.\d+)?$/.test(c.trim())?parseFloat(c):c)},i=(l,s=l)=>{let c=e.dataset[s];if(c)try{t[l]=JSON.parse(c)}catch(u){console.warn(`[WaveformPlayer] Invalid ${s} JSON:`,u)}};return e.dataset.src&&(t.url=e.dataset.src),e.dataset.url&&(t.url=e.dataset.url),o("height"),o("samples"),e.dataset.preload&&(t.preload=e.dataset.preload),e.dataset.crossOrigin&&(t.crossOrigin=e.dataset.crossOrigin),e.dataset.audioMode&&(t.audioMode=e.dataset.audioMode),e.dataset.style&&(t.waveformStyle=e.dataset.style),e.dataset.waveformStyle&&(t.waveformStyle=e.dataset.waveformStyle),e.dataset.waveformGradient&&(t.waveformGradient=e.dataset.waveformGradient),o("barWidth"),o("barSpacing"),o("barRadius"),e.dataset.buttonAlign&&(t.buttonAlign=e.dataset.buttonAlign),e.dataset.layout&&(t.layout=e.dataset.layout),e.dataset.buttonStyle&&(t.buttonStyle=e.dataset.buttonStyle),a("buttonSize"),a("buttonRadius"),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=die(e.dataset.waveformColor)),e.dataset.progressColor&&(t.progressColor=die(e.dataset.progressColor)),e.dataset.color&&(t.waveformColor=e.dataset.color),e.dataset.theme&&(t.colorPreset=e.dataset.theme),r("autoplay"),r("showControls"),r("showInfo"),r("showTime"),r("showHoverTime"),r("seekHandle"),r("showBPM","showBpm"),o("bpm"),r("singlePlay"),r("playOnSeek"),e.dataset.title&&(t.title=e.dataset.title),e.dataset.artist&&(t.artist=e.dataset.artist),e.dataset.album&&(t.album=e.dataset.album),e.dataset.artwork&&(t.artwork=e.dataset.artwork),e.dataset.artworkPosition&&(t.artworkPosition=e.dataset.artworkPosition),e.dataset.waveform&&(t.waveform=e.dataset.waveform),i("markers"),o("playbackRate","playbackRate",!0),r("showPlaybackSpeed"),i("playbackRates"),r("enableMediaSession"),r("showMarkers"),r("accessibleSeek"),e.dataset.seekLabel&&(t.seekLabel=e.dataset.seekLabel),e.dataset.seekValueText&&(t.seekValueText=e.dataset.seekValueText),e.dataset.errorText&&(t.errorText=e.dataset.errorText),e.dataset.playPauseLabel&&(t.playPauseLabel=e.dataset.playPauseLabel),e.dataset.speedLabel&&(t.speedLabel=e.dataset.speedLabel),e.dataset.artworkAlt&&(t.artworkAlt=e.dataset.artworkAlt),e.dataset.unknownTrackText&&(t.unknownTrackText=e.dataset.unknownTrackText),e.dataset.playIcon&&(t.playIcon=e.dataset.playIcon),e.dataset.pauseIcon&&(t.pauseIcon=e.dataset.pauseIcon),t}function c8e(e,...t){let r=0;return e.replace(/%(?:(\d+)\$)?s/g,(o,a)=>{let i=a?Number(a)-1:r++;return t[i]??o})}function Au(e){if(!e||isNaN(e)||e<0)return"0:00";let t=Math.floor(e/3600),r=Math.floor(e%3600/60),o=Math.floor(e%60);return t>0?`${t}:${r.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`:`${r}:${o.toString().padStart(2,"0")}`}var u8e=0;function p8e(e){let t=e||"audio",r=5381;for(let o=0;o<t.length;o++)r=(r<<5)+r+t.charCodeAt(o)|0;return`wp_${(r>>>0).toString(36)}_${(u8e++).toString(36)}`}function Tie(e){if(!e)return"Audio";let t=e.split("/");return t[t.length-1].split(".")[0].replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())}function m8e(e){let t=typeof e=="string"?e.match(/\d+/g):null;if(!t||t.length<3)return null;let[r,o,a]=t.map(Number);return(r*299+o*587+a*114)/1e3}function fie(...e){let t={};for(let r of e)for(let o in r)r[o]!==null&&r[o]!==void 0&&(t[o]=r[o]);return t}function d8e(e,t){let r;return function(...o){let a=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(a,t)}}function $S(e,t){if(e.length===t)return e;if(e.length===0||t===0)return[];let r=[];if(t>e.length){let o=(e.length-1)/(t-1);for(let a=0;a<t;a++){let i=a*o,l=Math.floor(i),s=Math.ceil(i),c=i-l;if(s>=e.length)r.push(e[e.length-1]);else if(l===s)r.push(e[l]);else{let u=e[l]*(1-c)+e[s]*c;r.push(u)}}}else{let o=e.length/t;for(let a=0;a<t;a++){let i=Math.floor(a*o),l=Math.floor((a+1)*o),s=0,c=0;for(let u=i;u<=l&&u<e.length;u++)e[u]>s&&(s=e[u]),c++;if(c===0){let u=Math.min(Math.round(a*o),e.length-1);s=e[u]}r.push(s)}}return r}function Ds(e,t,r,o){if(!Array.isArray(t))return t;if(t.length<2)return t[0];let a=r.width,i=r.height,l=o&&o.waveformGradient,[s,c,u,p]=l==="horizontal"?[0,0,a,0]:l==="diagonal"?[0,0,a,i]:[0,0,0,i];try{let m=e.createLinearGradient(s,c,u,p);return t.forEach((d,f)=>m.addColorStop(f/(t.length-1),d)),m}catch{return t[0]}}function v0(e,t,r,o,a,i){if((Array.isArray(i)?i.some(l=>l>0):i>0)&&typeof e.roundRect=="function"){let l=Math.min(o/2,Math.abs(a)/2),s=c=>Go(c,0,l);e.beginPath(),e.roundRect(t,r,o,a,Array.isArray(i)?i.map(s):s(i)),e.fill()}else e.fillRect(t,r,o,a)}function Pie(e,t){return(e.barRadius||0)*t}function f8e(e,t){let r=Pie(e,t);return[r,r,0,0]}function hie(e,t,r,o,a){let i=a/2;e.beginPath(),e.moveTo(t,o-i),e.lineTo(r-i,o-i),e.arc(r-i,o,i,-Math.PI/2,Math.PI/2),e.lineTo(t,o+i),e.arc(t,o,i,Math.PI/2,-Math.PI/2),e.closePath()}function _M(e,t,r,o,a){let i=window.devicePixelRatio||1,l=a.barWidth*i,s=a.barSpacing*i,c=Math.floor(t.width/(l+s)),u=$S(r,c),p=t.height,m=o*t.width,d=f8e(a,i),f=Ds(e,a.color,t,a),h=Ds(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height),e.fillStyle=f;for(let g=0;g<u.length;g++){let v=g*(l+s);if(v+l>t.width)break;let b=u[g]*p*.9,_=p-b;v0(e,v,_,l,b,d)}e.save(),e.beginPath(),e.rect(0,0,m,p),e.clip(),e.fillStyle=h;for(let g=0;g<u.length;g++){let v=g*(l+s);if(v>m)break;let b=u[g]*p*.9,_=p-b;v0(e,v,_,l,b,d)}e.restore()}function h8e(e,t,r,o,a){let i=window.devicePixelRatio||1,l=a.barWidth*i,s=a.barSpacing*i,c=Math.floor(t.width/(l+s)),u=$S(r,c),p=t.height,m=p/2,d=o*t.width,f=Pie(a,i),h=[f,f,0,0],g=[0,0,f,f],v=Ds(e,a.color,t,a),b=Ds(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height),e.fillStyle=v;for(let _=0;_<u.length;_++){let k=_*(l+s);if(k+l>t.width)break;let x=u[_]*p*.45;v0(e,k,m-x,l,x,h),v0(e,k,m,l,x,g)}e.save(),e.beginPath(),e.rect(0,0,d,p),e.clip(),e.fillStyle=b;for(let _=0;_<u.length;_++){let k=_*(l+s);if(k>d)break;let x=u[_]*p*.45;v0(e,k,m-x,l,x,h),v0(e,k,m,l,x,g)}e.restore()}function g8e(e,t,r,o,a){let i=t.width,l=t.height,s=l/2,c=l*.35;e.clearRect(0,0,i,l);let u=(p,m,d=1,f=!1)=>{let h=Ds(e,p,t,a),g=Array.isArray(p)?p[p.length-1]:p;f&&(e.shadowBlur=12,e.shadowColor=g),e.strokeStyle=h,e.lineWidth=m,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,s);let v=[],b=Math.floor(r.length*d);for(let _=0;_<b;_++){let k=_/(r.length-1)*i,x=r[_],w=Math.sin(_*.1)*x,S=s+w*c;v.push({x:k,y:S})}for(let _=0;_<v.length-1;_++){let k=v[_].x+(v[_+1].x-v[_].x)*.5,x=v[_].y,w=v[_+1].x-(v[_+1].x-v[_].x)*.5,S=v[_+1].y;e.bezierCurveTo(k,x,w,S,v[_+1].x,v[_+1].y)}e.stroke(),f&&(e.shadowBlur=0)};e.strokeStyle="rgba(255, 255, 255, 0.03)",e.lineWidth=.5,e.beginPath(),e.moveTo(0,s),e.lineTo(i,s),e.stroke();for(let p=0;p<=10;p++){let m=i/10*p;e.beginPath(),e.moveTo(m,0),e.lineTo(m,l),e.stroke()}u(a.color,2,1,!1),o>0&&u(a.progressColor,3,o,!0)}function gie(e,t,r,o,a){let i=window.devicePixelRatio||1,l=(a.barWidth||3)*i,s=(a.barSpacing||1)*i,c=Math.floor(t.width/(l+s)),u=$S(r,c),p=t.height,m=4*i,d=2*i,f=o*t.width,h=p/2,g=Ds(e,a.color,t,a),v=Ds(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height);for(let b=0;b<u.length;b++){let _=b*(l+s);if(_+l>t.width)break;let k=u[b]*p*.9,x=Math.floor(k/(m+d));e.fillStyle=_<f?v:g;for(let w=0;w<x;w++){let S=w*(m+d);e.fillRect(_,h-S-m,l,m),w>0&&e.fillRect(_,h+S,l,m)}}}function vie(e,t,r,o,a){let i=window.devicePixelRatio||1,l=(a.barWidth||2)*i,s=(a.barSpacing||3)*i,c=Math.floor(t.width/(l+s)),u=$S(r,c),p=t.height,m=Math.max(1.5*i,l/2),d=o*t.width,f=p/2,h=Ds(e,a.color,t,a),g=Ds(e,a.progressColor,t,a);e.clearRect(0,0,t.width,t.height);for(let v=0;v<u.length;v++){let b=v*(l+s)+l/2;if(b>t.width)break;let _=u[v]*p*.9;e.fillStyle=b<d?g:h,e.beginPath(),e.arc(b,f-_/2,m,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(b,f+_/2,m,0,Math.PI*2),e.fill()}}function v8e(e,t,r,o,a){let i=t.width,l=t.height,s=l/2,c=4,u=c/2,p=!!a.seekActive;if(e.clearRect(0,0,i,l),e.fillStyle=Ds(e,a.color,t,a)||"rgba(255, 255, 255, 0.2)",hie(e,u,i,s,c),e.fill(),o>0){let m=Math.max(u*2,o*i);e.save(),e.globalAlpha=a.seekHandle&&!p?.7:1,e.fillStyle=Ds(e,a.progressColor,t,a)||"rgba(255, 255, 255, 0.9)",hie(e,u,m,s,c),e.fill(),e.restore()}}var b8e={bars:_M,bar:_M,mirror:h8e,line:g8e,blocks:gie,block:gie,dots:vie,dot:vie,seekbar:v8e};function y8e(e,t,r,o,a){(b8e[a.waveformStyle]||_M)(e,t,r,o,a)}function _8e(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=x8e(t,r);if(o.length<2)return 120;let a=[];for(let c=1;c<o.length;c++)a.push((o[c]-o[c-1])/r);let i={};a.forEach(c=>{let u=60/c,p=Math.round(u/3)*3;p>60&&p<200&&(i[p]=(i[p]||0)+1)});let l=0,s=120;for(let[c,u]of Object.entries(i))u>l&&(l=u,s=parseInt(c));return s<70&&i[s*2]?s*=2:s>160&&i[Math.round(s/2)]&&(s=Math.round(s/2)),s-1}catch(t){return console.warn("[WaveformPlayer] BPM detection failed:",t),null}}function x8e(e,t){let r=[],o=0;for(let a=0;a<e.length-2048;a+=1024){let i=0;for(let c=a;c<a+2048;c++)i+=e[c]*e[c];i=i/2048;let l=i-o,s=o*1.8+.01;if(l>s&&i>.01){let c=r[r.length-1]||0,u=t*.15;a-c>u&&r.push(a)}o=i*.8+o*.2}return r}function k8e(e,t=1800){let r=e.length/t,o=e.numberOfChannels,a=[];for(let l=0;l<o;l++){let s=e.getChannelData(l);for(let c=0;c<t;c++){let u=~~(c*r),p=~~(u+r),m=0,d=0;for(let h=u;h<p;h++){let g=s[h];g>d&&(d=g),g<m&&(m=g)}let f=Math.max(Math.abs(d),Math.abs(m));(l===0||f>a[c])&&(a[c]=f)}}let i=Cie(a);return i>0?a.map(l=>l/i):a}async function bie(e,t=1800,r=!1){let o;try{let a=window.AudioContext||window.webkitAudioContext;o=new a;let i=await(await fetch(e)).arrayBuffer(),l=await o.decodeAudioData(i),s=k8e(l,t);s=C8e(s);let c=null;return r&&(c=_8e(l)),{peaks:s,bpm:c}}finally{o&&o.close()}}function w8e(e=1800){let t=[];for(let r=0;r<e;r++){let o=Math.random()*.5+.3,a=Math.sin(r/e*Math.PI*4)*.2;t.push(Go(o+a,.1,1))}return t}function C8e(e,t=.95){let r=Cie(e);if(r===0||r>t)return e;let o=t/r;return e.map(a=>a*o)}function yie(e){let t=document.documentElement,r=document.body;return t.classList.contains(e)||t.classList.contains(`${e}-mode`)||t.classList.contains(`theme-${e}`)||t.getAttribute("data-theme")===e||t.getAttribute("data-color-scheme")===e||r.classList.contains(e)||r.classList.contains(`${e}-mode`)||r.getAttribute("data-theme")===e}function xM(){if(yie("dark"))return"dark";if(yie("light"))return"light";try{let e=getComputedStyle(document.body).backgroundColor,t=m8e(e);if(t!==null){if(t>128)return"light";if(t<128)return"dark"}}catch{}if(window.matchMedia){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}var Dy={dark:{waveformColor:"rgba(255, 255, 255, 0.3)",progressColor:"rgba(255, 255, 255, 0.9)"},light:{waveformColor:"rgba(0, 0, 0, 0.2)",progressColor:"rgba(0, 0, 0, 0.8)"}};function _ie(e){if(e&&Dy[e])return Dy[e];let t=xM();return Dy[t]}var xie={url:"",height:64,samples:1800,preload:"metadata",crossOrigin:null,audioMode:"self",playbackRate:1,showPlaybackSpeed:!1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],buttonAlign:"auto",layout:"default",buttonStyle:"circle",buttonSize:null,buttonRadius:null,waveformStyle:"mirror",barWidth:2,barSpacing:0,barRadius:1,waveformGradient:"vertical",colorPreset:null,waveformColor:null,progressColor:null,autoplay:!1,showControls:!0,showInfo:!0,showTime:!0,showHoverTime:!1,seekHandle:!1,showBPM:!1,bpm:null,singlePlay:!0,playOnSeek:!0,enableMediaSession:!0,markers:[],showMarkers:!0,accessibleSeek:!0,seekLabel:null,seekValueText:null,title:null,artist:null,artwork:null,artworkPosition:"info",album:"",errorText:"Unable to load audio",playPauseLabel:"Play/Pause",speedLabel:"Playback speed",artworkAlt:"Album artwork",unknownTrackText:"Unknown Track",playIcon:'<svg viewBox="0 0 24 24" width="16" height="16"><path d="M8 5v14l11-7z"/></svg>',pauseIcon:'<svg viewBox="0 0 24 24" width="16" height="16"><path d="M6 4h4v16H6zM14 4h4v16h-4z"/></svg>',onLoad:null,onPlay:null,onPause:null,onEnd:null,onError:null,onTimeUpdate:null,onNextTrack:null,onPreviousTrack:null},S8e={bars:{barWidth:3,barSpacing:1},mirror:{barWidth:2,barSpacing:2},line:{barWidth:2,barSpacing:0},blocks:{barWidth:4,barSpacing:2},dots:{barWidth:3,barSpacing:3},seekbar:{barWidth:1,barSpacing:0}},T8e="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="4" fill="#71717a" fill-opacity="0.15"/><g fill="none" stroke="#a1a1aa" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="17" r="2.2"/><circle cx="17" cy="15" r="2.2"/><path d="M10.2 17V7l9-1.6v9"/></g></svg>'),kie=5,wie=10,P8e='button, a[href], input, [role="slider"]',Ly=class vn{static instances=new Map;static currentlyPlaying=null;constructor(t,r={}){if(this.container=typeof t=="string"?document.querySelector(t):t,!this.container)throw new Error("[WaveformPlayer] Container element not found");let o=Sie(this.container),a={...r};a.style&&!a.waveformStyle&&(a.waveformStyle=a.style),a.src&&!a.url&&(a.url=a.src),this.options=fie(xie,o,a);let i=_ie(this.options.colorPreset);this._autoTheme=this.options.colorPreset==null||!Dy[this.options.colorPreset],this._presetKeys=[],this._scheme=this.options.colorPreset&&Dy[this.options.colorPreset]?this.options.colorPreset:xM();for(let[s,c]of Object.entries(i))(this.options[s]===null||this.options[s]===void 0)&&(this.options[s]=c,this._presetKeys.push(s));let l=S8e[this.options.waveformStyle];l&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=l.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=l.barSpacing)),this.audio=null,this.canvas=null,this.ctx=null,this.waveformData=[],this.progress=0,this._activeMarkerIndex=-1,this._markerLabelTimer=null,this.isPlaying=!1,this.isLoading=!1,this.hasError=!1,this.updateTimer=null,this.resizeObserver=null,this._ac=new AbortController,this.id=this.container.id||p8e(this.options.url),vn.instances.set(this.id,this),vn._watchTheme(),this.init(),setTimeout(()=>{this._emit("waveformplayer:ready",{player:this,url:this.options.url})},100)}_emit(t,r,o=!1){let a=new CustomEvent(t,{bubbles:!0,cancelable:o,detail:r});return this.container.dispatchEvent(a),a}_requestSeek(t){this._emit("waveformplayer:request-seek",{...this._buildTrackDetail(),percent:t},!0).defaultPrevented||(this.progress=t,this.drawWaveform?.())}init(){this.createDOM(),this.createAudio(),this.initPlaybackSpeed(),this.initKeyboardControls(),this.initSeekControl(),this.bindEvents(),this.setupResizeObserver(),requestAnimationFrame(()=>{this.resizeCanvas(),this.options.url&&this.load(this.options.url).then(()=>{this.options.autoplay&&this.play()?.catch(()=>{})}).catch(t=>{console.error("[WaveformPlayer] Failed to load audio:",t)})})}createDOM(){this.container.innerHTML="",this.container.className="waveform-player";let t=this.options.buttonAlign;t==="auto"&&(this.options.waveformStyle==="bars"?t="bottom":t="center"),this.options.layout==="preview"&&this.container.classList.add("waveform-layout-preview"),this.container.classList.toggle("waveform-theme-light",this._scheme==="light");let r=[];this.options.buttonSize!=null&&r.push(`--wfp-btn-size: ${mie(this.options.buttonSize)}`),this.options.buttonRadius!=null&&r.push(`--wfp-btn-radius: ${mie(this.options.buttonRadius)}`);let o=r.length?` style="${r.join("; ")};"`:"",a=this.options.artworkPosition==="button"&&this.options.artwork,i=a?`<img class="waveform-btn-artwork" src="${Nc(this.options.artwork)}" alt="" aria-hidden="true">`:"",l=this.options.showControls?`
<button class="waveform-btn${this.options.buttonStyle==="minimal"?" waveform-btn-minimal":""}${a?" waveform-btn-has-artwork":""}" aria-label="${Nc(this.options.playPauseLabel)}"${o}>
${i}
<span class="waveform-icon-play">${this.options.playIcon}</span>
<span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span>
</button>
`:"",s=this.options.showInfo?`
<div class="waveform-info">
${this.options.artworkPosition!=="button"&&this.options.artwork?`
<img class="waveform-artwork" src="${Nc(this.options.artwork)}" alt="${Nc(this.options.artworkAlt)}" style="
width: 40px;
height: 40px;
border-radius: 4px;
object-fit: cover;
flex-shrink: 0;
">
`:""}
<div class="waveform-text">
<span class="waveform-title"></span>
${this.options.artist?`<span class="waveform-artist">${Nc(this.options.artist)}</span>`:""}
</div>
<div class="waveform-meta" style="display: flex; align-items: center; gap: 1rem;">
${this.options.showBPM?`
<span class="waveform-bpm" style="display: none;">
<span class="bpm-value">--</span> BPM
</span>
`:""}
${this.options.showPlaybackSpeed?`
<div class="waveform-speed">
<button class="speed-btn" aria-label="${Nc(this.options.speedLabel)}" aria-haspopup="menu" aria-expanded="false">
<span class="speed-value">1x</span>
</button>
<div class="speed-menu" role="menu" aria-label="${Nc(this.options.speedLabel)}" style="display: none;">
${this.options.playbackRates.map(c=>`<button class="speed-option" role="menuitemradio" tabindex="-1" aria-checked="false" data-rate="${c}">${c}x</button>`).join("")}
</div>
</div>
`:""}
${this.options.showTime?`
<span class="waveform-time">
<span class="time-current">0:00</span> / <span class="time-total">0:00</span>
</span>
`:""}
</div>
</div>
`:"";this.container.innerHTML=`
<div class="waveform-player-inner">
<div class="waveform-body">
<div class="waveform-track waveform-align-${t}">
${l}
<div class="waveform-container">
<canvas></canvas>
<div class="waveform-markers"></div>
<div class="waveform-loading" style="display:none;"></div>
<div class="waveform-error" style="display:none;" role="alert">
<span class="waveform-error-text">${Nc(this.options.errorText)}</span>
</div>
</div>
</div>
${s}
</div>
</div>
`,this.playBtn=this.container.querySelector(".waveform-btn"),this.canvas=this.container.querySelector("canvas"),this.ctx=this.canvas.getContext("2d"),this.titleEl=this.container.querySelector(".waveform-title"),this.artistEl=this.container.querySelector(".waveform-artist"),this.artworkEl=this.container.querySelector(".waveform-artwork, .waveform-btn-artwork"),this.bindArtworkFallback(this.artworkEl),this.currentTimeEl=this.container.querySelector(".time-current"),this.totalTimeEl=this.container.querySelector(".time-total"),this.bpmEl=this.container.querySelector(".waveform-bpm"),this.bpmValueEl=this.container.querySelector(".bpm-value"),this.loadingEl=this.container.querySelector(".waveform-loading"),this.errorEl=this.container.querySelector(".waveform-error"),this.markersContainer=this.container.querySelector(".waveform-markers"),this.speedBtn=this.container.querySelector(".speed-btn"),this.speedMenu=this.container.querySelector(".speed-menu"),this.resizeCanvas(),this.updateBPMDisplay()}bindArtworkFallback(t){t&&t.addEventListener("error",()=>{t.src.startsWith("data:")||(t.src=T8e)},{signal:this._ac.signal})}createArtworkElement(){let t=document.createElement("img");return t.className="waveform-artwork",t.style.width="40px",t.style.height="40px",t.style.borderRadius="4px",t.style.objectFit="cover",t.style.flexShrink="0",this.bindArtworkFallback(t),t}createButtonArtworkElement(){let t=document.createElement("img");return t.className="waveform-btn-artwork",t.alt="",t.setAttribute("aria-hidden","true"),this.bindArtworkFallback(t),t}createArtistElement(){let t=document.createElement("span");return t.className="waveform-artist",t}syncArtist(t){if(this.options.artist=t||null,!!this.options.showInfo){if(!t){this.artistEl?.remove(),this.artistEl=null;return}if(!this.artistEl){let r=this.container.querySelector(".waveform-title");if(!r)return;this.artistEl=this.createArtistElement(),r.after(this.artistEl)}this.artistEl.textContent=t,this.artistEl.style.display=""}}syncButtonArtwork(t){if(this.playBtn){if(!t){this.artworkEl?.remove(),this.artworkEl=null,this.playBtn.classList.remove("waveform-btn-has-artwork");return}this.artworkEl||(this.artworkEl=this.createButtonArtworkElement(),this.playBtn.prepend(this.artworkEl)),this.artworkEl.src=t,this.playBtn.classList.add("waveform-btn-has-artwork")}}syncArtwork(t,r=""){if(this.options.artwork=t||null,this.options.artworkAlt=r||"",this.options.artworkPosition==="button"){this.syncButtonArtwork(this.options.artwork);return}if(this.options.showInfo){if(!t){this.artworkEl?.remove(),this.artworkEl=null;return}if(!this.artworkEl){let o=this.container.querySelector(".waveform-text");if(!o)return;this.artworkEl=this.createArtworkElement(),o.before(this.artworkEl)}this.artworkEl.src=t,this.artworkEl.alt=r||""}}createAudio(){if(this.options.audioMode==="external"){this.audio=null;return}this.audio=new Audio,this.audio.preload=this.options.preload||"metadata",this.options.crossOrigin&&(this.audio.crossOrigin=this.options.crossOrigin)}initPlaybackSpeed(){this.audio&&this.options.playbackRate&&this.options.playbackRate!==1&&(this.audio.playbackRate=this.options.playbackRate),this.options.showPlaybackSpeed&&this.initSpeedControls()}initSpeedControls(){let t=this.container.querySelector(".speed-btn"),r=this.container.querySelector(".speed-menu");if(!t||!r)return;let o=()=>Array.from(r.querySelectorAll(".speed-option")),a=()=>r.style.display!=="none",i=c=>{if(r.style.display=c?"block":"none",t.setAttribute("aria-expanded",c?"true":"false"),c){let u=o();(u.find(p=>p.getAttribute("aria-checked")==="true")||u[0])?.focus()}},l=c=>{let u=o();u.length&&u[(c+u.length)%u.length].focus()},s=c=>{this.setPlaybackRate(parseFloat(c.dataset.rate)),i(!1),t.focus()};t.addEventListener("click",c=>{c.stopPropagation(),i(!a())},{signal:this._ac.signal}),document.addEventListener("click",()=>i(!1),{signal:this._ac.signal}),r.addEventListener("click",c=>{c.stopPropagation();let u=c.target.closest(".speed-option");u&&s(u)},{signal:this._ac.signal}),t.closest(".waveform-speed")?.addEventListener("keydown",c=>{let u=o(),p=u.indexOf(document.activeElement);if(!a()){(c.key==="ArrowDown"||c.key==="ArrowUp")&&document.activeElement===t&&(c.preventDefault(),i(!0));return}switch(c.key){case"ArrowDown":c.preventDefault(),l(p<0?0:p+1);break;case"ArrowUp":c.preventDefault(),l(p<0?u.length-1:p-1);break;case"Home":c.preventDefault(),l(0);break;case"End":c.preventDefault(),l(u.length-1);break;case"Escape":c.preventDefault(),i(!1),t.focus();break;case"Tab":i(!1);break}},{signal:this._ac.signal}),this.updateSpeedUI()}initKeyboardControls(){this.container.setAttribute("tabindex","-1"),this.container.addEventListener("click",t=>{t.target.closest(P8e)||(vn.getAllInstances().forEach(r=>{r!==this&&r.container.setAttribute("tabindex","-1")}),this.container.setAttribute("tabindex","0"),this.container.focus())},{signal:this._ac.signal}),this.container.addEventListener("keydown",t=>{if(document.activeElement!==this.container)return;let r=t.key,o=!!this.audio,a=o?this.audio.currentTime:0;if(o&&r>="0"&&r<="9"){t.preventDefault(),this.seekToPercent(parseInt(r)/10);return}let i={" ":()=>this.togglePlay()};o&&(i.ArrowLeft=()=>this.seekTo(Go(a-5,0,this.audio.duration)),i.ArrowRight=()=>this.seekTo(Go(a+5,0,this.audio.duration)),i.ArrowUp=()=>this.setVolume(Go(this.audio.volume+.1)),i.ArrowDown=()=>this.setVolume(Go(this.audio.volume-.1)),i.m=i.M=()=>this.audio.muted=!this.audio.muted),i[r]&&(t.preventDefault(),i[r]())},{signal:this._ac.signal})}initSeekControl(){this.options.accessibleSeek&&(this.seekEl=this.container.querySelector(".waveform-container"),this.seekEl&&(this.seekEl.setAttribute("role","slider"),this.seekEl.setAttribute("tabindex","0"),this.seekEl.setAttribute("aria-valuemin","0"),this.applySeekLabel(),this.updateSeekAccessibility(),this.seekEl.addEventListener("keydown",t=>{if(t.key===" "||t.key==="Spacebar"){t.preventDefault(),t.stopPropagation(),this.togglePlay();return}let r=this.getSeekDuration();if(!r)return;let o=this.getSeekCurrentTime(),a;switch(t.key){case"ArrowLeft":case"ArrowDown":a=o-kie;break;case"ArrowRight":case"ArrowUp":a=o+kie;break;case"PageDown":a=o-wie;break;case"PageUp":a=o+wie;break;case"Home":a=0;break;case"End":a=r;break;default:return}t.preventDefault(),t.stopPropagation(),this.seekToSeconds(a)},{signal:this._ac.signal})))}getSeekDuration(){return this.options.audioMode==="external"?this._extDuration||0:this.audio&&Number.isFinite(this.audio.duration)?this.audio.duration:0}getSeekCurrentTime(){return this.options.audioMode==="external"?this.progress*(this._extDuration||0):this.audio&&Number.isFinite(this.audio.currentTime)?this.audio.currentTime:0}seekToSeconds(t){let r=this.getSeekDuration();if(!r)return;let o=Go(t,0,r);if(this.options.audioMode==="external"){this._requestSeek(o/r),this.updateSeekAccessibility();return}this.seekTo(o)}applySeekLabel(t=this.options.title){if(!this.seekEl)return;let r=this.options.seekLabel||t||"Seek";this.seekEl.setAttribute("aria-label",r)}updateSeekAccessibility(){if(!this.seekEl)return;let t=this.getSeekDuration(),r=Math.min(this.getSeekCurrentTime(),t);this.seekEl.setAttribute("aria-valuemax",String(Math.round(t))),this.seekEl.setAttribute("aria-valuenow",String(Math.round(r))),this.seekEl.setAttribute("aria-valuetext",c8e(this.options.seekValueText||"%1$s of %2$s",Au(r),Au(t)))}initMediaSession(){if(!("mediaSession"in navigator)||!this.options.enableMediaSession||!this.audio)return;this._applyMediaMetadata(),navigator.mediaSession.setActionHandler("play",()=>this.play()),navigator.mediaSession.setActionHandler("pause",()=>this.pause()),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.seekTo(Go(this.audio.currentTime-10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Go(this.audio.currentTime+10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekto",o=>{o.seekTime!==null&&this.seekTo(o.seekTime)});let t=this.options.onNextTrack,r=this.options.onPreviousTrack;try{navigator.mediaSession.setActionHandler("nexttrack",typeof t=="function"?()=>t(this):null)}catch{}try{navigator.mediaSession.setActionHandler("previoustrack",typeof r=="function"?()=>r(this):null)}catch{}}_applyMediaMetadata(){!("mediaSession"in navigator)||!this.options.enableMediaSession||(navigator.mediaSession.metadata=new MediaMetadata({title:this.options.title||this.options.unknownTrackText,artist:this.options.artist||"",album:this.options.album||"",artwork:this.options.artwork?[{src:this.options.artwork,sizes:"512x512",type:"image/jpeg"}]:[]}))}_updateMediaSession(t){if(!(!("mediaSession"in navigator)||!this.options.enableMediaSession||!this.audio))try{t==="playing"&&this.initMediaSession(),navigator.mediaSession.playbackState=t;let r=this.audio.duration;navigator.mediaSession.setPositionState&&r&&isFinite(r)&&navigator.mediaSession.setPositionState({duration:r,playbackRate:this.audio.playbackRate||1,position:Go(this.audio.currentTime,0,r)})}catch{}}bindEvents(){this.playBtn&&this.playBtn.addEventListener("click",()=>this.togglePlay()),this.audio&&(this.audio.addEventListener("loadstart",()=>this.setLoading(!0)),this.audio.addEventListener("loadedmetadata",()=>this.onMetadataLoaded()),this.audio.addEventListener("canplay",()=>this.setLoading(!1)),this.audio.addEventListener("play",()=>this.onPlay()),this.audio.addEventListener("pause",()=>this.onPause()),this.audio.addEventListener("ended",()=>this.onEnded()),this.audio.addEventListener("error",r=>this.onError(r))),this.canvas.addEventListener("click",r=>this.handleCanvasClick(r)),this._dragging=!1,this._seekHover=!1,this._handleNear=!1,this.canvas.addEventListener("pointerenter",()=>{this._seekHover=!0,this.drawWaveform(),this._updateSeekHandle()}),this.canvas.addEventListener("pointerleave",()=>{this._seekHover=!1,this._handleNear=!1,this._dragging||this._hideHoverTip(),this.drawWaveform(),this._updateSeekHandle()}),this.canvas.addEventListener("pointerdown",r=>{if(!(r.pointerType==="mouse"&&r.button!==0)){this._dragging=!0;try{this.canvas.setPointerCapture(r.pointerId)}catch{}this._scrubTo(r.clientX)}}),this.canvas.addEventListener("pointermove",r=>{if(this._dragging){this._scrubTo(r.clientX);return}let o=this.canvas.getBoundingClientRect();o.width&&(this._handleNear=Math.abs(r.clientX-o.left-this.progress*o.width)<=10,this._updateSeekHandle())});let t=r=>{if(this._dragging){this._dragging=!1,this._suppressClick=!0;try{this.canvas.releasePointerCapture(r.pointerId)}catch{}this._seekFromPointer(r.clientX),!this._seekHover&&!this.options.showHoverTime&&this._hideHoverTip(),this._updateSeekHandle()}};this.canvas.addEventListener("pointerup",t),this.canvas.addEventListener("pointercancel",t),this.setupHoverTime(),this.setupSeekHandle(),this.resizeHandler=d8e(()=>this.resizeCanvas(),100),window.addEventListener("resize",this.resizeHandler)}setupResizeObserver(){"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(()=>{this.resizeCanvas()}),this.canvas?.parentElement&&this.resizeObserver.observe(this.canvas.parentElement))}async load(t){try{this.setLoading(!0),this.progress=0,this.hasError=!1,this.audio&&(this.audio.src=t,await new Promise((o,a)=>{let i=()=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),o()},l=s=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),a(s)};this.audio.addEventListener("loadedmetadata",i),this.audio.addEventListener("error",l)}));let r=this.options.title||Tie(t);if(this.titleEl&&(this.titleEl.textContent=r),this.applySeekLabel(r),this.options.waveform)this.setWaveformData(this.options.waveform);else try{let o=await bie(t,this.options.samples,this.options.showBPM);this.waveformData=o.peaks,o.bpm&&(this.detectedBPM=o.bpm,this.updateBPMDisplay())}catch(o){console.warn("[WaveformPlayer] Using placeholder waveform:",o),this.waveformData=w8e(this.options.samples)}this.drawWaveform(),this.renderMarkers(),this.options.onLoad&&this.options.onLoad(this)}catch(r){this.onError(r)}finally{this.setLoading(!1)}}async loadTrack(t,r=null,o=null,a={}){let i=Object.prototype.hasOwnProperty.call(a,"artwork"),l=Object.prototype.hasOwnProperty.call(a,"artworkAlt");this.isPlaying&&this.pause(),this.audio&&(this.audio.src="",this.audio.load()),this.hasError=!1,this.errorEl&&(this.errorEl.style.display="none"),this.canvas&&(this.canvas.style.opacity="1"),this.playBtn&&(this.playBtn.disabled=!1),this.progress=0,this.waveformData=[],this.options=fie(this.options,{url:t,title:r===null?this.options.title:r,artist:o===null?this.options.artist:o,...a}),i&&(this.options.artwork=a.artwork||null),l?this.options.artworkAlt=a.artworkAlt||"":i&&(this.options.artworkAlt=this.options.artwork?xie.artworkAlt:""),a.preload&&this.audio&&(this.audio.preload=a.preload),a.crossOrigin&&this.audio&&(this.audio.crossOrigin=a.crossOrigin),o!==null&&this.syncArtist(o),(i||l)&&this.syncArtwork(i?a.artwork:this.options.artwork,l?a.artworkAlt:this.options.artworkAlt),this.options.markers=a.markers||[],this.options.waveform=a.waveform||null,await this.load(t),a.autoplay!==!1&&this.play()?.catch(()=>{})}setWaveformData(t){if(typeof t=="string"&&t.trim().endsWith(".json")){fetch(t.trim()).then(r=>r.json()).then(r=>{this.waveformData=Array.isArray(r)?r:r.peaks||[],r.markers&&!this.options.markers?.length&&(this.options.markers=r.markers,this.renderMarkers()),this.drawWaveform()}).catch(()=>{});return}if(typeof t=="string")try{let r=JSON.parse(t);this.waveformData=Array.isArray(r)?r:[]}catch{this.waveformData=t.split(",").map(Number)}else this.waveformData=Array.isArray(t)?t:[];this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||y8e(this.ctx,this.canvas,this.waveformData,this.progress,{...this.options,waveformStyle:this.options.waveformStyle||"bars",color:this.options.waveformColor,progressColor:this.options.progressColor,seekActive:this._seekHover||this._dragging})}resizeCanvas(){if(!this.canvas||this.isDestroying)return;let t=window.devicePixelRatio||1,r=this.canvas.parentElement.getBoundingClientRect();this.canvas.width=r.width*t,this.canvas.height=this.options.height*t,this.canvas.parentElement.style.height=this.options.height+"px",this.drawWaveform()}renderMarkers(){if(!this.markersContainer||(this.markersContainer.innerHTML="",this._activeMarkerIndex=-1,clearTimeout(this._markerLabelTimer),!this.options.showMarkers||!this.options.markers?.length))return;let t=this.getSeekDuration();t&&this.options.markers.forEach((r,o)=>{if(r.time>t){console.warn(`[WaveformPlayer] Marker "${r.label}" at ${r.time}s exceeds audio duration of ${t}s`);return}let a=r.time/t*100,i=document.createElement("button");i.className="waveform-marker",i.style.left=`${a}%`,i.style.backgroundColor=r.color||"rgba(255, 255, 255, 0.5)",i.setAttribute("aria-label",r.label),i.setAttribute("data-time",r.time);let l=document.createElement("span");l.className="waveform-marker-tooltip",l.textContent=r.label,i.appendChild(l),i.addEventListener("click",s=>{s.stopPropagation(),this.seekTo(r.time),this.options.playOnSeek&&!this.isPlaying&&this.play()}),this.markersContainer.appendChild(i)})}setActiveMarker(t){this.markersContainer&&this.markersContainer.querySelectorAll(".waveform-marker").forEach((r,o)=>r.classList.toggle("active",o===t))}updateActiveMarker(){if(!this.markersContainer)return;let t=this.markersContainer.querySelectorAll(".waveform-marker");if(!t.length)return;let r=this.getSeekDuration(),o=r?this.progress*r:0,a=-1,i=-1/0;t.forEach((l,s)=>{let c=parseFloat(l.getAttribute("data-time"));Number.isFinite(c)&&c<=o+.05&&c>i&&(i=c,a=s)}),a!==this._activeMarkerIndex&&(this._activeMarkerIndex=a,this.setActiveMarker(a),clearTimeout(this._markerLabelTimer),t.forEach((l,s)=>l.classList.toggle("show-label",s===a)),a>=0&&(this._markerLabelTimer=setTimeout(()=>{this.markersContainer?.querySelectorAll(".waveform-marker").forEach(l=>l.classList.remove("show-label"))},2500)))}setupHoverTime(){if(!this.seekEl)return;let t=document.createElement("div");t.className="waveform-hover-time",t.setAttribute("aria-hidden","true"),this.seekEl.appendChild(t),this.hoverTimeEl=t,this.options.showHoverTime&&(this.seekEl.addEventListener("pointermove",r=>{this._dragging||this._updateHoverTip(r.clientX)}),this.seekEl.addEventListener("pointerleave",()=>{this._dragging||this._hideHoverTip()}))}_updateHoverTip(t){let r=this.hoverTimeEl;if(!r)return;let o=this.getSeekDuration();if(!o){r.style.opacity="0";return}let a=this.canvas.getBoundingClientRect(),i=Go((t-a.left)/a.width);r.textContent=Au(i*o),r.style.left=i*100+"%",r.style.opacity="1"}_hideHoverTip(){this.hoverTimeEl&&(this.hoverTimeEl.style.opacity="0")}_scrubTo(t){let r=this.canvas.getBoundingClientRect();if(!r.width)return;this.progress=Go((t-r.left)/r.width),this.drawWaveform(),this._updateSeekHandle();let o=this.getSeekDuration();o&&this.currentTimeEl?(this.currentTimeEl.textContent=Au(this.progress*o),this._hideHoverTip()):this._updateHoverTip(t)}setupSeekHandle(){if(!this.options.seekHandle||this.options.waveformStyle!=="seekbar"||!this.seekEl)return;let t=document.createElement("div");t.className="waveform-seek-handle",t.setAttribute("aria-hidden","true"),this.seekEl.appendChild(t),this.seekHandleEl=t}_updateSeekHandle(){let t=this.seekHandleEl;t&&(t.style.left=this.progress*100+"%",t.classList.toggle("is-visible",this._seekHover||this._dragging),t.classList.toggle("is-active",this._dragging||this._handleNear))}handleCanvasClick(t){if(this._suppressClick){this._suppressClick=!1;return}this._seekFromPointer(t.clientX)}_seekFromPointer(t){let r=this.canvas.getBoundingClientRect();if(!r.width)return;let o=Go((t-r.left)/r.width);if(this.options.audioMode==="external"){this._requestSeek(o);return}!this.audio||!this.audio.duration||this.seekToPercent(o)}setLoading(t){this.isLoading=t,this.loadingEl&&(this.loadingEl.style.display=t?"block":"none"),this.seekEl&&this.seekEl.setAttribute("aria-busy",t?"true":"false")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=Au(this.audio.duration)),this.renderMarkers(),this.updateSeekAccessibility())}setPlayButtonState(t){if(!this.playBtn)return;this.playBtn.classList.toggle("playing",t);let r=this.playBtn.querySelector(".waveform-icon-play"),o=this.playBtn.querySelector(".waveform-icon-pause");r&&(r.style.display=t?"none":"flex"),o&&(o.style.display=t?"flex":"none")}onPlay(){this.isDestroying||(this.isPlaying=!0,this.setPlayButtonState(!0),this.startSmoothUpdate(),this._updateMediaSession("playing"),this._emit("waveformplayer:play",{player:this,url:this.options.url}),this.options.onPlay&&this.options.onPlay(this))}onPause(){this.isDestroying||(this.isPlaying=!1,this.setPlayButtonState(!1),this.stopSmoothUpdate(),this._updateMediaSession("paused"),this._emit("waveformplayer:pause",{player:this,url:this.options.url}),this.options.onPause&&this.options.onPause(this))}onEnded(){if(this.isDestroying)return;let t=this.audio.duration;this.progress=0,this.audio.currentTime=0,this.drawWaveform(),this.currentTimeEl&&(this.currentTimeEl.textContent="0:00"),this._emit("waveformplayer:ended",{player:this,url:this.options.url,currentTime:t,duration:t}),this.onPause(),this.options.onEnd&&this.options.onEnd(this)}onError(t){this.isDestroying||(console.error("[WaveformPlayer] Audio error:",t),this.hasError=!0,this.setLoading(!1),this.errorEl&&(this.errorEl.style.display="flex"),this.canvas&&(this.canvas.style.opacity="0.2"),this.playBtn&&(this.playBtn.disabled=!0),this.options.onError&&this.options.onError(t,this))}startSmoothUpdate(){this.stopSmoothUpdate();let t=()=>{this.isPlaying&&this.audio&&this.audio.duration&&(this.updateProgress(),this.updateTimer=requestAnimationFrame(t))};this.updateTimer=requestAnimationFrame(t)}stopSmoothUpdate(){this.updateTimer&&(cancelAnimationFrame(this.updateTimer),this.updateTimer=null)}updateProgress(){if(!this.audio||!this.audio.duration||this._dragging)return;let t=this.audio.currentTime/this.audio.duration;Math.abs(t-this.progress)>.001&&(this.progress=t,this.drawWaveform(),this._updateSeekHandle()),this.currentTimeEl&&(this.currentTimeEl.textContent=Au(this.audio.currentTime)),this._emit("waveformplayer:timeupdate",{player:this,currentTime:this.audio.currentTime,duration:this.audio.duration,progress:this.progress,url:this.options.url}),this.options.onTimeUpdate&&this.options.onTimeUpdate(this.audio.currentTime,this.audio.duration,this),this.updateActiveMarker(),this.updateSeekAccessibility()}updateBPMDisplay(){let t=this.options.bpm||this.detectedBPM;this.bpmEl&&this.bpmValueEl&&t&&(this.bpmValueEl.textContent=Math.round(t),this.bpmEl.style.display="inline-flex")}refreshTheme(){if(!this._autoTheme)return;this._scheme=xM();let t=_ie(this.options.colorPreset);for(let r of this._presetKeys||[])r in t&&(this.options[r]=t[r]);this._applyThemeColors()}_applyThemeColors(){this.container.classList.toggle("waveform-theme-light",this._scheme==="light"),this.canvas&&this.drawWaveform()}static _watchTheme(){if(vn._themeWatch||typeof document>"u")return;let t=()=>requestAnimationFrame(()=>{vn.instances.forEach(i=>{try{i.refreshTheme()}catch{}})}),r={attributes:!0,attributeFilter:["class","data-theme","data-color-scheme","style"]},o=new MutationObserver(t);o.observe(document.documentElement,r),document.body&&o.observe(document.body,r);let a=null;try{a=window.matchMedia("(prefers-color-scheme: dark)"),a.addEventListener("change",t)}catch{}vn._themeWatch={obs:o,mq:a,refresh:t}}updateSpeedUI(){if(!this.audio)return;let t=this.container.querySelector(".speed-value");if(t){let r=this.audio.playbackRate;t.textContent=r===1?"1x":`${r}x`}this.container.querySelectorAll(".speed-option").forEach(r=>{let o=parseFloat(r.dataset.rate)===this.audio.playbackRate;r.classList.toggle("active",o),r.setAttribute("aria-checked",o?"true":"false")})}play(){if(this.options.singlePlay&&vn.currentlyPlaying&&vn.currentlyPlaying!==this&&vn.currentlyPlaying.pause(),this.options.audioMode==="external"){this._emit("waveformplayer:request-play",this._buildTrackDetail(),!0).defaultPrevented||(vn.currentlyPlaying=this);return}return vn.currentlyPlaying=this,this.audio.play()}pause(){if(vn.currentlyPlaying===this&&(vn.currentlyPlaying=null),this.options.audioMode==="external"){this._emit("waveformplayer:request-pause",this._buildTrackDetail(),!0);return}this.audio.pause()}_buildTrackDetail(){return{url:this.options.url,title:this.options.title,artist:this.options.artist,artwork:this.options.artwork,markers:this.options.markers,waveform:this.options.waveform,id:this.id,player:this}}setPlayingState(t){let r=this.isPlaying;this.isPlaying=!!t,this.setPlayButtonState(this.isPlaying),this.isPlaying&&!r?(this.startSmoothUpdate?.(),this._emit("waveformplayer:play",{player:this,url:this.options.url}),this.options.onPlay&&this.options.onPlay(this)):!this.isPlaying&&r&&(this.stopSmoothUpdate?.(),this._emit("waveformplayer:pause",{player:this,url:this.options.url}),this.options.onPause&&this.options.onPause(this))}setProgress(t,r){!r||r<=0||(this.progress=Go(t/r),this.currentTimeEl&&(this.currentTimeEl.textContent=Au(t)),this._extDuration=r,this.totalTimeEl&&(!this.totalTimeEl.dataset._extSet||this.totalTimeEl.dataset._extDur!==String(r))&&(this.totalTimeEl.textContent=Au(r),this.totalTimeEl.dataset._extSet="1",this.totalTimeEl.dataset._extDur=String(r)),this.drawWaveform?.(),this.updateActiveMarker(),this._emit("waveformplayer:timeupdate",{player:this,currentTime:t,duration:r,progress:this.progress,url:this.options.url}),this.options.onTimeUpdate&&this.options.onTimeUpdate(t,r,this),this.progress>=1?this._extEnded||(this._extEnded=!0,this._emit("waveformplayer:ended",{player:this,url:this.options.url,currentTime:r,duration:r}),this.options.onEnd&&this.options.onEnd(this)):this._extEnded=!1,this.updateSeekAccessibility())}togglePlay(){this.isPlaying?this.pause():this.play()}seekTo(t){this.audio&&this.audio.duration&&(this.audio.currentTime=Go(t,0,this.audio.duration),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Go(t),this.updateProgress())}setVolume(t){let r=Number(t);this.audio&&Number.isFinite(r)&&(this.audio.volume=Go(r))}setPlaybackRate(t){if(!this.audio)return;let r=Go(t,.5,2);this.audio.playbackRate=r,this.options.playbackRate=r,this.updateSpeedUI()}destroy(){this.isDestroying=!0,this._emit("waveformplayer:destroy",{player:this,url:this.options.url}),this.pause(),this.stopSmoothUpdate(),clearTimeout(this._markerLabelTimer),this._ac?.abort(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),vn.instances.delete(this.id),vn.currentlyPlaying===this&&(vn.currentlyPlaying=null),this.audio&&(this.audio.pause(),this.audio.src="",this.audio.load(),this.audio=null),this.container.innerHTML="",this.canvas=null,this.ctx=null,this.playBtn=null,this.waveformData=[]}static getInstance(t){if(typeof t=="string"){let r=this.instances.get(t);if(r)return r;let o=document.getElementById(t);if(o)return Array.from(this.instances.values()).find(a=>a.container===o)}if(t instanceof HTMLElement)return Array.from(this.instances.values()).find(r=>r.container===t)}static getAllInstances(){return Array.from(this.instances.values())}static destroyAll(){this.instances.forEach(t=>t.destroy()),this.instances.clear()}static async generateWaveformData(t,r=1800){try{return(await bie(t,r)).peaks}catch(o){throw console.error("[WaveformPlayer] Failed to generate waveform:",o),o}}static getPeaksUrl(t){if(!t)return;let r=t.replace(/\.(mp3|wav|ogg|flac|m4a|aac)(\?[^#]*)?(#.*)?$/i,".json$2$3");return r===t?void 0:r}};Ly.utils={formatTime:Au,extractTitleFromUrl:Tie,escapeHtml:Nc,isSafeHref:l8e,parseDataAttributes:Sie};var wM=()=>typeof window<"u"&&typeof document<"u";function kM(){wM()&&document.querySelectorAll("[data-waveform-player]").forEach(e=>{if(e.dataset.waveformInitialized!=="true")try{new Ly(e),e.dataset.waveformInitialized="true"}catch(t){console.error("[WaveformPlayer] Failed to initialize:",t,e)}})}wM()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",kM):kM());Ly.init=kM;wM()&&(window.WaveformPlayer=Ly);var Eie=Ly;var E8e=100,B8e="Seek";function Nie(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Die(e){let t=e?.trim().match(/^[\w-]+-gradient\((.*)\)$/i);if(!t)return[];let r=[],o=0,a="";for(let i of t[1]){if(i==="("?++o:i===")"&&--o,i===","&&o===0){r.push(a.trim()),a="";continue}a+=i}return a.trim()&&r.push(a.trim()),r}function I8e(e){let t=e.match(/^([\w-]+)\(/);if(!t||!["color","color-mix","hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba","var"].includes(t[1].toLowerCase()))return;let o=0,a=!1;for(let i=0;i<e.length;i++){let l=e[i];if(l==="("?(a=!0,++o):l===")"&&--o,a&&o===0)return e.slice(0,i+1)}}function N8e(e){let t=I8e(e);if(t)return t;let[r]=e.split(/\s+/);if(Br(r).isValid())return r}function D8e(e){let r=Die(e)[0],o=r?.match(/^(-?\d+(?:\.\d+)?)deg$/i);if(o){let s=(Number(o[1])%360+360)%360;return s===90||s===270?"horizontal":s===0||s===180?"vertical":"diagonal"}if(!r?.startsWith("to "))return;let a=r.toLowerCase().replace(/^to\s+/,""),i=a.includes("left")||a.includes("right"),l=a.includes("top")||a.includes("bottom");if(i&&l)return"diagonal";if(i)return"horizontal";if(l)return"vertical"}function L8e(e,t){if(!t||Br(t).isValid())return t;let r=e.ownerDocument.createElement("span");if(r.style.color=t,!r.style.color)return t;e.appendChild(r);let o=Nie(r).color;return r.remove(),o&&Br(o).isValid()?o:t}function CM(e,t){let r=R8e(t)?.map(o=>L8e(e,o)).filter(o=>Br(o).isValid());return r?.length>1?r:void 0}function Bie(e,t){return Array.isArray(e)?e.map(r=>Br(r).alpha(t).toRgbString()):Br(e).alpha(t).toRgbString()}function Lie(e){return Array.isArray(e)?e[e.length-1]:e}function R8e(e){let t=Die(e).map(N8e).filter(Boolean);return t.length>1?t:void 0}function Iie(e){return Array.isArray(e)?JSON.stringify(e):e}function A8e(e,t,r,o){let a=r||Nie(e).color,i=CM(e,o),l=i||t||a,s=Bie(l,.3),c=Bie(l,.6),u=i?D8e(o):void 0;return{textColor:a,waveformColor:s,progressColor:c,...u&&{waveformGradient:u}}}function M8e({url:e,title:t,artist:r,artwork:o,waveformColor:a,progressColor:i,waveformGradient:l,buttonColor:s,seekLabel:c,seekValueText:u,height:p=E8e,waveformStyle:m="bars"}){let d=document.createElement("div");return d.setAttribute("data-waveform-player",""),d.setAttribute("data-url",e),d.setAttribute("data-height",String(p)),d.setAttribute("data-waveform-style",m),d.setAttribute("data-waveform-color",Iie(a)),d.setAttribute("data-progress-color",Iie(i)),l&&d.setAttribute("data-waveform-gradient",l),d.setAttribute("data-button-color",s),d.setAttribute("data-seek-label",Rie(c)),u&&d.setAttribute("data-seek-value-text",u),d.setAttribute("data-text-color",s),d.setAttribute("data-text-secondary-color",s),t&&d.setAttribute("data-title",t),r&&d.setAttribute("data-artist",r),o&&d.setAttribute("data-artwork",o),d}function SM(e,{backgroundColor:t,backgroundGradient:r,textColor:o,playButtonColor:a,playButtonGradient:i}={}){let l=e.querySelector(".waveform-container"),s=e.querySelector(".waveform-btn"),c=Lie(CM(e,i)||a);c?e.style.setProperty("--wfp-button-color",c):e.style.removeProperty("--wfp-button-color"),o?(e.style.setProperty("--wfp-text-color",o),e.style.setProperty("--wfp-text-secondary-color",o)):(e.style.removeProperty("--wfp-text-color"),e.style.removeProperty("--wfp-text-secondary-color")),s&&(i?s.style.background=i:s.style.removeProperty("background")),l&&(r?l.style.background=r:t?(l.style.removeProperty("background"),l.style.backgroundColor=t):(l.style.removeProperty("background"),l.style.removeProperty("background-color")))}function z8e(e,t){let o=Br(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function V8e(e,{play:t="Play",pause:r="Pause"}={}){let o=e.querySelector(".waveform-btn");if(!o)return;o.setAttribute("aria-label",t);let a=()=>o.setAttribute("aria-label",r),i=()=>o.setAttribute("aria-label",t);return e.addEventListener("waveformplayer:play",a),e.addEventListener("waveformplayer:pause",i),e.addEventListener("waveformplayer:ended",i),()=>{e.removeEventListener("waveformplayer:play",a),e.removeEventListener("waveformplayer:pause",i),e.removeEventListener("waveformplayer:ended",i)}}function Rie(e){return e||B8e}function Aie(e,t){let r=Rie(t);e.options.seekLabel=r,e.applySeekLabel?.(r);let o=e?.container?.querySelector(".waveform-container");o&&o.setAttribute("aria-label",r)}function qS(e,t){if(!t){e.classList.remove("has-play-button-artwork"),e.style.removeProperty("--wp--playlist--play-button-artwork");return}e.classList.add("has-play-button-artwork"),e.style.setProperty("--wp--playlist--play-button-artwork",`url(${JSON.stringify(t)})`)}function O8e(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function Mie(e,{src:t,title:r,artist:o,image:a,imageAlt:i,waveformColor:l,waveformGradient:s,textColor:c,backgroundColor:u,backgroundGradient:p,autoPlay:m,onEnded:d,labels:f,waveformStyle:h,showPlayButtonArtwork:g=!1}){let v=g?void 0:a,{textColor:b,waveformColor:_,progressColor:k,waveformGradient:x}=A8e(e,l,c,s),w=CM(e,s),S=Lie(w||l),T=M8e({url:t,title:r,artist:o,artwork:v,waveformColor:_,progressColor:k,waveformGradient:x,buttonColor:b,seekLabel:r||f?.seek,seekValueText:f?.seekValueText,waveformStyle:h});e.appendChild(T);let I=new Eie(T);I.artworkEl&&(I.artworkEl.alt=i||""),SM(T,{backgroundColor:u,backgroundGradient:p,textColor:b,playButtonColor:g?void 0:S,playButtonGradient:g?void 0:s});let D,L={ready:()=>{z8e(T,S||b),g&&qS(T,a),D=V8e(T,f),m&&I.play()?.catch(O8e)},ended:()=>d?.()};return T.addEventListener("waveformplayer:ready",L.ready),T.addEventListener("waveformplayer:ended",L.ended),{instance:I,container:T,destroy:()=>{D?.(),T.removeEventListener("waveformplayer:ready",L.ready),T.removeEventListener("waveformplayer:ended",L.ended),I.destroy(),T.remove()}}}var zie=n(y(),1);function F8e(e,{title:t,artist:r,image:o,imageAlt:a},i){let{instance:l,container:s}=e,c=i?void 0:o;l.titleEl&&(l.titleEl.textContent=t??""),Aie(l,t||(0,Ry.__)("Seek")),typeof l.syncArtist=="function"?l.syncArtist(r||""):l.artistEl&&(l.artistEl.textContent=r??"",l.artistEl.style.display=r?"":"none"),typeof l.syncArtwork=="function"?l.syncArtwork(c||null,c&&a||""):l.artworkEl&&c&&(l.artworkEl.src=c,l.artworkEl.alt=a||""),i&&qS(s,o)}function Vie({src:e,title:t,artist:r,image:o,imageAlt:a,color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u,waveformStyle:p,onEnded:m,showPlayButtonArtwork:d=!1}){let f=(0,ZS.useEvent)(m),h=(0,Dc.useRef)(),g=!!e,v=(0,Dc.useRef)({src:e,title:t,artist:r,image:o,imageAlt:a}),b=(0,Dc.useRef)({color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u});(0,Dc.useEffect)(()=>{v.current={src:e,title:t,artist:r,image:o,imageAlt:a}},[e,t,r,o,a]),(0,Dc.useEffect)(()=>{b.current={color:i,gradient:l,backgroundColor:s,backgroundGradient:c,textColor:u}},[i,l,s,c,u]),(0,Dc.useEffect)(()=>{h.current?.container&&SM(h.current.container,{backgroundColor:s,backgroundGradient:c,textColor:u,playButtonColor:d?void 0:i,playButtonGradient:d?void 0:l})},[s,c,i,l,d,u]);let _=(0,ZS.useRefEffect)(k=>{if(!g)return;let x=!1,w;function S(){if(x)return;let I=Mie(k,{src:v.current.src,title:v.current.title,artist:v.current.artist,image:v.current.image,imageAlt:v.current.imageAlt,waveformColor:b.current.color,waveformGradient:b.current.gradient,backgroundColor:b.current.backgroundColor,backgroundGradient:b.current.backgroundGradient,textColor:b.current.textColor,waveformStyle:p,labels:{seek:(0,Ry.__)("Seek"),seekValueText:(0,Ry._x)("%1$s of %2$s","audio current time of total duration")},onEnded:()=>f?.(),showPlayButtonArtwork:d});h.current=I;let{destroy:D}=I;w=D}let T=setTimeout(S,100);return()=>{x=!0,clearTimeout(T),h.current=void 0,w?.()}},[f,g,p,i,l,u,d]);return(0,Dc.useEffect)(()=>{if(h.current?.instance){let k=h.current;k&&F8e(k,{title:t,artist:r,image:o,imageAlt:a},d)}},[t,r,o,a,d]),(0,Dc.useEffect)(()=>{if(e&&h.current?.instance){let k=h.current.instance.isPlaying;h.current.instance.loadTrack(e,v.current.title,v.current.artist,{artwork:d?void 0:v.current.image,artworkAlt:d?"":v.current.imageAlt}).then(()=>{d&&h.current?.container&&qS(h.current.container,v.current.image),k||h.current?.instance.pause()})}},[e,d]),(0,zie.jsx)("div",{ref:_,className:"wp-block-playlist__waveform-player"})}var Oie=n(H(),1),KS=(0,Oie.createContext)({currentTrackClientId:null,setCurrentTrackClientId:()=>{},addTracks:void 0});var TM=n(N(),1);function PM(e){let t=e?.src??e?.url;return t?.endsWith("/images/media/audio.svg")?{image:"",imageAlt:""}:{image:t,imageAlt:t?e?.alt||e?.alt_text||"":void 0}}function YS(e){return{id:e.id||e.url,src:e.url,title:e.title,artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,TM.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,TM.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,...PM(e?.image)}}var We=n(y(),1),EM=["audio"],H8e=/\.(aac|aif|aiff|flac|m4a|m4b|mp3|oga|ogg|opus|wav|weba)$/i,QS="bars",j8e="[object FileList]",U8e=[{label:(0,mt._x)("Bars","waveform style option"),value:"bars"},{label:(0,mt._x)("Mirror","waveform style option"),value:"mirror"},{label:(0,mt._x)("Line","waveform style option"),value:"line"},{label:(0,mt._x)("Blocks","waveform style option"),value:"blocks"},{label:(0,mt._x)("Dots","waveform style option"),value:"dots"},{label:(0,mt._x)("Seekbar","waveform style option"),value:"seekbar"}];function G8e(e){return Object.prototype.toString.call(e)==="[object File]"||typeof File<"u"&&e instanceof File}function W8e(e){return e.type?e.type.startsWith("audio/"):H8e.test(e.name)}function Fie(e){return e.id??e.src??e.blob}var $8e=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:a})=>{let{order:i,showTracklist:l,showNumbers:s,showImages:c,showPlayButtonArtwork:u,showArtists:p,showTrackLength:m,waveformStyle:d=QS,waveformColor:f,waveformGradient:h,waveformBackgroundColor:g,waveformBackgroundGradient:v}=e,b=(0,Ir.useBlockProps)(),_=`${a}-waveform`,{replaceInnerBlocks:k,selectBlock:x}=(0,Ay.useDispatch)(Ir.store),{createErrorNotice:w}=(0,Ay.useDispatch)(Hie.store),S=Z(),T=(0,Ir.__experimentalUseMultipleOriginColorsAndGradients)(),I=(0,Wo.useMemo)(()=>T.colors.flatMap(X=>X?.colors??[]),[T.colors]),D=(0,Wo.useMemo)(()=>T.gradients.flatMap(X=>X?.gradients??[]),[T.gradients]),L=I.length>0||!T.disableCustomColors,E=D.length>0||!T.disableCustomGradients,B=h,A=v,z,U,q=(0,Wo.useCallback)(X=>{w(X,{type:"snackbar"})},[w]),[G,W]=(0,Wo.useState)(null),{innerBlockTracks:V}=(0,Ay.useSelect)(X=>{let{getBlock:Ce}=X(Ir.store);return{innerBlockTracks:Ce(a)?.innerBlocks??[]}},[a]),Q=(0,Wo.useMemo)(()=>V.filter(X=>!!X.attributes.src||!!X.attributes.blob),[V]),Y=(0,Wo.useMemo)(()=>Q.map(X=>({...X.attributes,clientId:X.clientId})),[Q]);(0,Wo.useEffect)(()=>{if(Q.length===0){G!==null&&W(null);return}Q.some(Ce=>Ce.clientId===G)||W(Q[0].clientId)},[G,W,Q]);let ee=(0,Wo.useCallback)(X=>{if(!X)return[];let Ce=[X];Object.prototype.toString.call(X)===j8e?Ce=Array.from(X):Array.isArray(X)&&(Ce=X);let pe=!1,ct=Ce.map(he=>{if(G8e(he))return W8e(he)?(0,BM.createBlock)("core/playlist-track",{blob:(0,jie.createBlobURL)(he),title:he.name}):(pe=!0,null);let ze=YS(he);return ze.src?(0,BM.createBlock)("core/playlist-track",ze):null}).filter(Boolean);return pe&&q((0,mt.__)("Only audio files can be added to a playlist.")),ct},[q]),te=(0,Wo.useCallback)(X=>{let Ce=ee(X);Ce.length!==0&&(W(Ce[0]?.clientId??null),k(a,Ce))},[a,ee,k,W]),oe=(0,Wo.useCallback)(X=>{let Ce=new Set(Q.map(he=>Fie(he.attributes)).filter(Boolean)),pe=ee(X).filter(he=>!Ce.has(Fie(he.attributes)));if(pe.length===0)return;let ct=[...Q,...pe];W(pe[0].clientId),k(a,ct),x(pe[0].clientId)},[a,ee,k,x,W,Q]),J=(0,Wo.useMemo)(()=>({currentTrackClientId:G,setCurrentTrackClientId:W,addTracks:oe}),[G,oe,W]),ce=Y.find(X=>X.clientId===G)??Y[0],ie=(0,Wo.useCallback)(()=>{let X=Y.findIndex(pe=>pe.clientId===G),Ce=Y[X+1]||Y[0];Ce?.clientId&&W(Ce.clientId)},[G,W,Y]),we=(0,Wo.useCallback)(X=>{let Ce=[...V].sort((pe,ct)=>{let he=pe.attributes.title||"",ze=ct.attributes.title||"";return X==="asc"?he.localeCompare(ze):ze.localeCompare(he)});k(a,Ce),W(Ce[0]?.clientId??null),t({order:X})},[a,V,k,t,W]);function le(X){return Ce=>{t({[X]:Ce})}}let de=(0,Wo.useCallback)(X=>{t({waveformStyle:X===QS?void 0:X})},[t]);function ge(X){if(!(X!==void 0)&&z==="gradient"){z=void 0;return}z="color",t({waveformColor:X,waveformGradient:void 0})}function ne(X){if(!(X!==void 0)&&z==="color"){z=void 0;return}z="gradient",t({waveformGradient:X,waveformColor:void 0})}function me(X){if(!(X!==void 0)&&U==="gradient"){U=void 0;return}U="color",t({waveformBackgroundColor:X,waveformBackgroundGradient:void 0})}function se(X){if(!(X!==void 0)&&U==="color"){U=void 0;return}U="gradient",t({waveformBackgroundGradient:X,waveformBackgroundColor:void 0})}let Ne=[];(L||E)&&Ne.push({colorValue:L?f:void 0,gradientValue:E?B:void 0,label:(0,mt.__)("Waveform & Play button"),onColorChange:L?ge:void 0,onGradientChange:E?ne:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformColor:void 0,waveformGradient:void 0})},{colorValue:L?g:void 0,gradientValue:E?A:void 0,label:(0,mt.__)("Waveform background"),onColorChange:L?me:void 0,onGradientChange:E?se:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})});let De=(0,Ir.useInnerBlocksProps)(b,{__experimentalAppenderTagName:"li",renderAppender:!1});return Y.length===0?(0,We.jsx)("div",{...b,className:C("is-placeholder",b.className),children:(0,We.jsx)(Ir.MediaPlaceholder,{icon:(0,We.jsx)(Ir.BlockIcon,{icon:dv}),labels:{title:(0,mt.__)("Playlist"),instructions:(0,mt.__)("Upload an audio file or pick one from your media library.")},onSelect:te,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:EM,onError:q})}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(Ir.BlockControls,{group:"other",children:(0,We.jsx)(Ir.MediaReplaceFlow,{name:(0,mt.__)("Add"),onSelect:oe,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:EM,onError:q})}),(0,We.jsx)(Ir.InspectorControls,{children:(0,We.jsxs)(vr.__experimentalToolsPanel,{label:(0,mt.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,showPlayButtonArtwork:!1,order:"asc"})},dropdownMenuProps:S,children:[(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show tracklist"),onChange:le("showTracklist"),checked:l})}),l&&(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show artist name in tracklist"),isShownByDefault:!0,hasValue:()=>p!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show artist name in tracklist"),onChange:le("showArtists"),checked:p})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show track numbers in tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show track numbers in tracklist"),onChange:le("showNumbers"),checked:s})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show track duration in tracklist"),isShownByDefault:!0,hasValue:()=>m!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show track duration in tracklist"),onChange:le("showTrackLength"),checked:m})})]}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show tracklist images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show tracklist images"),onChange:le("showImages"),checked:c})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Show track image on play button"),isShownByDefault:!0,hasValue:()=>u===!0,onDeselect:()=>t({showPlayButtonArtwork:!1}),children:(0,We.jsx)(vr.ToggleControl,{label:(0,mt.__)("Show track image on play button"),onChange:le("showPlayButtonArtwork"),checked:u===!0})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,We.jsx)(vr.SelectControl,{label:(0,mt.__)("Order"),value:i,options:[{label:(0,mt.__)("Descending"),value:"desc"},{label:(0,mt.__)("Ascending"),value:"asc"}],onChange:X=>we(X)})})]})}),(0,We.jsx)(Ir.InspectorControls,{group:"styles",children:(0,We.jsxs)(vr.__experimentalToolsPanel,{label:(0,mt.__)("Waveform"),resetAll:()=>{t({waveformStyle:void 0,waveformColor:void 0,waveformGradient:void 0,waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})},panelId:_,dropdownMenuProps:S,children:[Ne.length>0&&(0,We.jsx)("div",{className:"wp-block-playlist__waveform-color-controls",children:(0,We.jsx)(Ir.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:Ne,panelId:_,...T})}),(0,We.jsx)(vr.__experimentalToolsPanelItem,{label:(0,mt.__)("Shape"),isShownByDefault:!0,hasValue:()=>d!==QS,onDeselect:()=>de(QS),panelId:_,children:(0,We.jsx)(vr.SelectControl,{label:(0,mt.__)("Shape"),value:d,options:U8e,onChange:de})})]})}),(0,We.jsxs)("figure",{...b,children:[(0,We.jsx)(Ir.MediaPlaceholder,{onSelect:oe,accept:"audio/*",multiple:!0,handleUpload:!1,disableMediaButtons:!0,allowedTypes:EM,onError:q}),(0,We.jsx)(vr.Disabled,{isDisabled:!r,children:(0,We.jsx)(Vie,{src:ce?.src,title:ce?.title,artist:ce?.artist,image:ce?.image,imageAlt:ce?.imageAlt,waveformStyle:d,color:f,gradient:B,backgroundColor:g,backgroundGradient:A,onEnded:ie,showPlayButtonArtwork:u===!0})}),(0,We.jsx)("ol",{className:C("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!l,"wp-block-playlist__tracklist-show-numbers":s,"wp-block-playlist__tracklist-length-is-hidden":!m}),children:(0,We.jsx)(KS.Provider,{value:J,children:De.children})}),(0,We.jsx)(Ao,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,mt.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},Uie=$8e;var Mu=n(P(),1),My=n(y(),1);function Gie({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:a,showTrackLength:i}=e,l=Mu.useBlockProps.save(),s=Mu.useInnerBlocksProps.save(l);return(0,My.jsxs)("figure",{...s,children:[(0,My.jsx)("ol",{className:C("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!o,"wp-block-playlist__tracklist-artist-is-hidden":!a,"wp-block-playlist__tracklist-length-is-hidden":!i,"wp-block-playlist__tracklist-show-numbers":r}),children:s.children}),!Mu.RichText.isEmpty(t)&&(0,My.jsx)(Mu.RichText.Content,{tagName:"figcaption",className:(0,Mu.__experimentalGetElementClassName)("caption"),value:t})]})}var{name:Wie}=WS,$ie={icon:dv,edit:Uie,save:Gie},q8e=()=>R({name:Wie,metadata:WS,settings:$ie});var NM={};K(NM,{init:()=>Q8e,metadata:()=>XS,name:()=>Qie,settings:()=>Xie});var XS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/playlist-track",title:"Playlist track",category:"media",parent:["core/playlist"],description:"Playlist track.",keywords:["music","sound"],textdomain:"default",usesContext:["showArtists","showImages"],attributes:{blob:{type:"string",role:"local"},id:{type:"number"},src:{type:"string"},type:{type:"string",default:"audio"},album:{type:"string"},artist:{type:"string"},image:{type:"string"},imageAlt:{type:"string"},length:{type:"string"},title:{type:"string"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var qie=n(Ar(),1),dm=n(H(),1),to=n(P(),1),$n=n(O(),1);var Zie=n(F(),1),Kie=n(Sr(),1),jr=n(N(),1);var e6=n(Tn(),1);var nt=n(y(),1),JS=["audio"],K8e=["image"],Y8e=({attributes:e,setAttributes:t,context:r,clientId:o,isSelected:a})=>{let{id:i,src:l,album:s,artist:c,image:u,imageAlt:p,length:m,title:d}=e,[f,h]=(0,dm.useState)(e.blob),g=r?.showArtists,v=r?.showImages??!0,b=(0,dm.useRef)(),_=(0,to.useBlockProps)(),{currentTrackClientId:k,setCurrentTrackClientId:x,addTracks:w}=(0,dm.useContext)(KS),{createErrorNotice:S}=(0,Zie.useDispatch)(Kie.store);function T(B){S(B,{type:"snackbar"})}let I=!!l||!!f;(0,dm.useEffect)(()=>{a&&I&&k!==o&&x(o)},[a,I,o,k,x]),Ws({url:f,allowedTypes:JS,onChange:D,onError:T});function D(B){if(!B||!B.url){t({blob:void 0,id:void 0,artist:void 0,album:void 0,image:void 0,imageAlt:void 0,length:void 0,title:void 0,url:void 0}),h();return}if((0,qie.isBlobURL)(B.url)){h(B.url);return}t({blob:void 0,...YS(B)}),h()}function L(B){t(PM(B))}function E(){t({image:void 0,imageAlt:void 0}),b.current.focus()}return I?(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(to.BlockControls,{group:"other",children:(0,nt.jsx)(to.MediaReplaceFlow,{name:(0,jr.__)("Replace"),onSelect:D,accept:"audio/*",mediaId:i,mediaURL:l,allowedTypes:JS,onError:T,variant:"toolbar"})}),!!w&&(0,nt.jsx)(to.BlockControls,{group:"block",children:(0,nt.jsx)(to.MediaReplaceFlow,{name:(0,jr.__)("Add"),onSelect:w,accept:"audio/*",multiple:!0,handleUpload:!1,allowedTypes:JS,onError:T,variant:"toolbar"})}),(0,nt.jsx)(to.InspectorControls,{children:(0,nt.jsxs)($n.PanelBody,{title:(0,jr.__)("Settings"),children:[(0,nt.jsx)($n.TextControl,{label:(0,jr.__)("Artist"),value:c?(0,e6.__unstableStripHTML)(c):"",onChange:B=>{t({artist:B})}}),(0,nt.jsx)($n.TextControl,{label:(0,jr.__)("Album"),value:s?(0,e6.__unstableStripHTML)(s):"",onChange:B=>{t({album:B})}}),(0,nt.jsx)($n.TextControl,{label:(0,jr.__)("Title"),value:d?(0,e6.__unstableStripHTML)(d):"",onChange:B=>{t({title:B})}}),(0,nt.jsx)(to.MediaUploadCheck,{children:(0,nt.jsxs)($n.BaseControl,{children:[(0,nt.jsx)($n.BaseControl.VisualLabel,{children:(0,jr.__)("Track image")}),(0,nt.jsxs)("div",{className:"editor-video-poster-control",children:[!!u&&(0,nt.jsx)("img",{src:u,alt:(0,jr.__)("Preview of the track image")}),(0,nt.jsx)(to.MediaUpload,{title:(0,jr.__)("Select image"),onSelect:L,allowedTypes:K8e,render:({open:B})=>(0,nt.jsx)($n.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:B,ref:b,children:u?(0,jr.__)("Replace"):(0,jr.__)("Select")})}),!!u&&(0,nt.jsx)($n.Button,{__next40pxDefaultSize:!0,onClick:E,variant:"tertiary",children:(0,jr.__)("Remove")})]})]})}),!!u&&(0,nt.jsx)($n.TextareaControl,{label:(0,jr.__)("Alternative text"),value:p||"",onChange:B=>t({imageAlt:B}),help:(0,nt.jsx)(uu,{openInNewTab:!0,href:(0,jr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,jr.__)("Describe the purpose of the image.")})})]})}),(0,nt.jsxs)("li",{..._,children:[!!f&&(0,nt.jsx)($n.Spinner,{}),(0,nt.jsxs)("button",{className:"wp-block-playlist-track__button",onClick:()=>x(o),"aria-current":k===o?"true":"false",children:[v&&!!u&&(0,nt.jsx)("img",{className:"wp-block-playlist-track__image",src:u,alt:p||""}),(0,nt.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,nt.jsx)(to.PlainText,{tagName:"span",className:"wp-block-playlist-track__title",value:d,placeholder:(0,jr.__)("Add title"),onChange:B=>{t({title:B})},__experimentalVersion:2}),g&&(0,nt.jsx)(to.PlainText,{tagName:"span",className:"wp-block-playlist-track__artist",value:c,placeholder:(0,jr.__)("Add artist"),onChange:B=>t({artist:B}),__experimentalVersion:2})]}),(0,nt.jsxs)("span",{className:"wp-block-playlist-track__length",children:[m&&(0,nt.jsx)("span",{className:"screen-reader-text",children:(0,jr.__)("Duration:")}),m]}),(0,nt.jsx)("span",{className:"screen-reader-text",children:(0,jr.__)("Play")})]})]})]}):(0,nt.jsx)("div",{..._,children:(0,nt.jsx)(to.MediaPlaceholder,{icon:(0,nt.jsx)(to.BlockIcon,{icon:ru}),labels:{title:(0,jr.__)("Track"),instructions:(0,jr.__)("Upload an audio file or pick one from your media library.")},onSelect:D,accept:"audio/*",allowedTypes:JS,value:e,onError:T})})},Yie=Y8e;var{name:Qie}=XS,Xie={icon:ru,edit:Yie},Q8e=()=>R({name:Qie,metadata:XS,settings:Xie});var LM={};K(LM,{init:()=>o7e,metadata:()=>t6,name:()=>lle,settings:()=>sle});var ile=n(N(),1);var t6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author (deprecated)",category:"theme",description:"This block is deprecated. Please use the Avatar block, the Author Name block, and the Author Biography block instead.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId","queryId"],supports:{inserter:!1,anchor:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},filter:{duotone:!0}},selectors:{filter:{duotone:".wp-block-post-author .wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"};var Sa=n(P(),1),Dr=n(O(),1),ole=n(ve(),1),r6=n(re(),1),kf=n(F(),1),o6=n(H(),1),DM=n(Jo(),1),Nr=n(N(),1),nle=n($(),1);var xf=n($(),1),ele=n(N(),1),tle=n(P(),1);var{cleanEmptyObject:Jie}=j(tle.privateApis);function rle(e,t){let{avatarSize:r,byline:o,showAvatar:a,showBio:i,isLink:l,linkTarget:s,textAlign:c,style:u,...p}=e,m=a&&t.some(g=>g.name==="core/avatar"),d=o&&t.some(g=>g.name==="core/paragraph"),f=t.some(g=>g.name==="core/post-author-name"),h=i&&t.some(g=>g.name==="core/post-author-biography");return(0,xf.createBlock)("core/group",{...p,style:Jie({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[m&&(0,xf.createBlock)("core/avatar",{size:r,style:Jie({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,xf.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[d&&(0,xf.createBlock)("core/paragraph",{content:o,placeholder:(0,ele.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,xf.createBlock)("core/post-author-name",{isLink:l,linkTarget:s,style:{typography:{fontSize:"1em",textAlign:c}}}),h&&(0,xf.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var dt=n(y(),1),{InspectorControlsLastItem:J8e}=j(Sa.privateApis),e7e={who:"authors",per_page:100,_fields:"id,name",context:"view"};function t7e({value:e,onChange:t}){let[r,o]=(0,o6.useState)(""),{authors:a,isLoading:i}=(0,kf.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(r6.store),p={...e7e};return r&&(p.search=r,p.search_columns=["name"]),{authors:c(p),isLoading:u("getUsers",[p])}},[r]),l=(0,o6.useMemo)(()=>{let s=(a??[]).map(p=>({value:p.id,label:(0,DM.decodeEntities)(p.name)})),c=s.findIndex(p=>e?.id===p.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,DM.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Nr.__)("(No author)")}]),[...u,...s]},[a,e]);return(0,dt.jsx)(Dr.ComboboxControl,{label:(0,Nr.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,ole.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function r7e({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:a,setAttributes:i,clientId:l}){let s=Number.isFinite(o),c=Z(),u=Vv(),{authorDetails:p,canAssignAuthor:m,supportsAuthor:d}=(0,kf.useSelect)(A=>{let{getEditedEntityRecord:z,getUser:U,getPostType:q}=A(r6.store),G=z("postType",t,r),W=G?.author;return{authorDetails:W?U(W,{context:"view"}):null,supportsAuthor:q(t)?.supports?.author??!1,canAssignAuthor:!!G?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,kf.useSelect)(A=>A(nle.store).getBlockTypes(),[]),{editEntityRecord:h}=(0,kf.useDispatch)(r6.store),{replaceBlock:g}=(0,kf.useDispatch)(Sa.store),{textAlign:v,showAvatar:b,showBio:_,byline:k,isLink:x,linkTarget:w,avatarSize:S}=a,T=[],I=p?.name||(0,Nr.__)("Post Author");p?.avatar_urls&&Object.keys(p.avatar_urls).forEach(A=>{T.push({value:A,label:`${A} x ${A}`})});let D=(0,Sa.useBlockProps)({className:C({[`has-text-align-${v}`]:v})}),L=A=>{h("postType",t,r,{author:A})},E=!!r&&!s&&m;if(!d&&t!==void 0)return(0,dt.jsx)("div",{...D,children:(0,Nr.sprintf)((0,Nr.__)("This post type (%s) does not support the author."),t)});function B(){g(l,rle(a,f))}return(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(Sa.InspectorControls,{children:(0,dt.jsxs)(Dr.__experimentalToolsPanel,{label:(0,Nr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[E&&(0,dt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,dt.jsx)(t7e,{value:p,onChange:L})}),(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!b,onDeselect:()=>i({showAvatar:!0}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Show avatar"),checked:b,onChange:()=>i({showAvatar:!b})})}),b&&(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>S!==48,onDeselect:()=>i({avatarSize:48}),children:(0,dt.jsx)(Dr.SelectControl,{label:(0,Nr.__)("Avatar size"),value:S,options:T,onChange:A=>{i({avatarSize:Number(A)})}})}),(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>i({showBio:void 0}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Show bio"),checked:!!_,onChange:()=>i({showBio:!_})})}),(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>i({isLink:!1}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Link author name to author page"),checked:x,onChange:()=>i({isLink:!x})})}),x&&(0,dt.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Nr.__)("Link target"),isShownByDefault:!0,hasValue:()=>w!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,dt.jsx)(Dr.ToggleControl,{label:(0,Nr.__)("Open in new tab"),onChange:A=>i({linkTarget:A?"_blank":"_self"}),checked:w==="_blank"})})]})}),f.some(A=>A.name==="core/group")&&(0,dt.jsx)(J8e,{children:(0,dt.jsxs)(Dr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,dt.jsx)(Dr.__experimentalText,{as:"p",children:(0,Nr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,dt.jsx)(Dr.Button,{variant:"primary",onClick:B,__next40pxDefaultSize:!0,children:(0,Nr.__)("Recreate")})]})}),(0,dt.jsx)(Sa.BlockControls,{group:"block",children:(0,dt.jsx)(Sa.AlignmentControl,{value:v,onChange:A=>{i({textAlign:A})}})}),(0,dt.jsxs)("div",{...D,children:[b&&(0,dt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,dt.jsx)("img",{width:S,src:p?.avatar_urls?.[S]||u,alt:p?.name||(0,Nr.__)("Default Avatar")})}),(0,dt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!Sa.RichText.isEmpty(k)||e)&&(0,dt.jsx)(Sa.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Nr.__)("Post author byline text"),placeholder:(0,Nr.__)("Write byline\u2026"),value:k,onChange:A=>i({byline:A})}),(0,dt.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,dt.jsx)("a",{href:"#post-author-pseudo-link",onClick:A=>A.preventDefault(),children:I}):I}),_&&(0,dt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:p?.description}})]})]})]})}var ale=r7e;var{name:lle}=t6,sle={icon:ad,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,ile.__)("Posted by")}},edit:ale},o7e=()=>R({name:lle,metadata:t6,settings:sle});var RM={};K(RM,{init:()=>s7e,metadata:()=>n6,name:()=>hle,settings:()=>gle});var n6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-name"};var a6=n(P(),1),cle=n(F(),1),Lc=n(N(),1),ule=n(re(),1),fm=n(O(),1);var qi=n(y(),1);function a7e(e){wt(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:a,postId:i}}=e,{authorName:l,supportsAuthor:s}=(0,cle.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:g}=d(ule.store),v=f("postType",a,i)?.author;return{authorName:v?h(v):null,supportsAuthor:g(a)?.supports?.author??!1}},[a,i]),c=(0,a6.useBlockProps)(),u=l?.name||(0,Lc.__)("Author Name"),p=t?(0,qi.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,m=Z();return(0,qi.jsxs)(qi.Fragment,{children:[(0,qi.jsx)(a6.InspectorControls,{children:(0,qi.jsxs)(fm.__experimentalToolsPanel,{label:(0,Lc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:m,children:[(0,qi.jsx)(fm.__experimentalToolsPanelItem,{label:(0,Lc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,qi.jsx)(fm.ToggleControl,{label:(0,Lc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,qi.jsx)(fm.__experimentalToolsPanelItem,{label:(0,Lc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,qi.jsx)(fm.ToggleControl,{label:(0,Lc.__)("Open in new tab"),onChange:d=>o({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,qi.jsx)("div",{...c,children:!s&&a!==void 0?(0,Lc.sprintf)((0,Lc.__)("This post type (%s) does not support the author."),a):p})]})}var ple=a7e;var i7e={attributes:{isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},mle=[i7e];var dle=n($(),1),l7e={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,dle.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},fle=l7e;var{name:hle}=n6,gle={icon:ad,transforms:fle,edit:ple,deprecated:mle},s7e=()=>R({name:hle,metadata:n6,settings:gle});var AM={};K(AM,{init:()=>m7e,metadata:()=>i6,name:()=>wle,settings:()=>Cle});var i6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-biography"};var vle=n(P(),1),ble=n(F(),1),yle=n(N(),1),_le=n(re(),1);var zy=n(y(),1);function u7e(e){wt(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,ble.useSelect)(l=>{let{getEditedEntityRecord:s,getUser:c}=l(_le.store),u=s("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),a=(0,vle.useBlockProps)(),i=o?.description||(0,yle.__)("Author Biography");return(0,zy.jsx)(zy.Fragment,{children:(0,zy.jsx)("div",{...a,dangerouslySetInnerHTML:{__html:i}})})}var xle=u7e;var p7e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},kle=[p7e];var{name:wle}=i6,Cle={icon:ad,edit:xle,deprecated:kle},m7e=()=>R({name:wle,metadata:i6,settings:Cle});var MM={};K(MM,{init:()=>h7e,metadata:()=>l6,name:()=>Ble,settings:()=>Ile});var l6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}};var Vy=n(N(),1),b0=n(O(),1),Sle=n(H(),1);var s6=n(P(),1),wf=n(y(),1),f7e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Tle({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,Sle.useState)(e),a=(0,s6.useBlockProps)(),i=(0,s6.useInnerBlocksProps)(a,{template:f7e});return e?(0,wf.jsx)("div",{...i}):(0,wf.jsx)("div",{...a,children:(0,wf.jsxs)(b0.Placeholder,{icon:X9,label:(0,Vy._x)("Post Comment","block title"),instructions:(0,Vy.__)("To show a comment, input the comment ID."),children:[(0,wf.jsx)(b0.TextControl,{value:e,onChange:l=>o(parseInt(l))}),(0,wf.jsx)(b0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,Vy.__)("Save")})]})})}var c6=n(P(),1),Ple=n(y(),1);function Ele(){let e=c6.useBlockProps.save(),t=c6.useInnerBlocksProps.save(e);return(0,Ple.jsx)("div",{...t})}var{name:Ble}=l6,Ile={icon:$1,edit:Tle,save:Ele},h7e=()=>R({name:Ble,metadata:l6,settings:Ile});var zM={};K(zM,{init:()=>y7e,metadata:()=>u6,name:()=>Ole,settings:()=>Fle});var u6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",usesContext:["postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var Nle=n(P(),1),p6=n(H(),1),Dle=n(_b(),1),Lle=n(pr(),1),Rle=n(y(),1);function Ale({context:e}){let{postId:t}=e,[r,o]=(0,p6.useState)(),a=(0,Nle.useBlockProps)();(0,p6.useEffect)(()=>{if(!t)return;let s=t;(0,Dle.default)({path:(0,Lle.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{s===t&&o(c.headers.get("X-WP-Total"))})},[t]);let i=t&&r!==void 0,l={...a.style,textDecoration:i?a.style?.textDecoration:void 0};return(0,Rle.jsx)("div",{...a,style:l,children:i?r:"0"})}var Mle=n($(),1),v7e={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Mle.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},zle=v7e;var b7e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Vle=[b7e];var{name:Ole}=u6,Fle={icon:fv,edit:Ale,transforms:zle,deprecated:Vle},y7e=()=>R({name:Ole,metadata:u6,settings:Fle});var OM={};K(OM,{init:()=>k7e,metadata:()=>m6,name:()=>Gle,settings:()=>Wle});var m6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",usesContext:["postId","postType"],supports:{anchor:!0,html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],example:{attributes:{style:{typography:{textAlign:"center"}}}}};var Hle=n(P(),1),jle=n(ve(),1),d6=n(N(),1);var Oy=n(y(),1);function VM({context:e}){let{postId:t,postType:r}=e,o=(0,jle.useInstanceId)(VM),a=(0,d6.sprintf)("comments-form-edit-%d-desc",o),i=(0,Hle.useBlockProps)({"aria-describedby":a});return(0,Oy.jsxs)("div",{...i,children:[(0,Oy.jsx)(Sw,{postId:t,postType:r}),(0,Oy.jsx)(vi,{id:a,children:(0,d6.__)("Comments form disabled in editor.")})]})}var x7e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,heading:!0,link:!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}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Ule=[x7e];var{name:Gle}=m6,Wle={icon:BB,edit:VM,deprecated:Ule},k7e=()=>R({name:Gle,metadata:m6,settings:Wle});var FM={};K(FM,{init:()=>P7e,metadata:()=>f6,name:()=>tse,settings:()=>rse});var f6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-comments-link"};var $le=n(P(),1),g6=n(H(),1),qle=n(F(),1),Zle=n(_b(),1),Kle=n(pr(),1),Cf=n(N(),1),Yle=n(re(),1),h6=n(y(),1);function C7e({context:e}){let{postType:t,postId:r}=e,[o,a]=(0,g6.useState)(),i=(0,$le.useBlockProps)();(0,g6.useEffect)(()=>{if(!r)return;let c=r;(0,Zle.default)({path:(0,Kle.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&a(u.headers.get("X-WP-Total"))})},[r]);let l=(0,qle.useSelect)(c=>c(Yle.store).getEditedEntityRecord("postType",t,r),[t,r]),s;if(o!==void 0){let c=parseInt(o);c===0?s=(0,Cf.__)("No comments"):s=(0,Cf.sprintf)((0,Cf._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,h6.jsx)("div",{...i,children:l?.link&&s!==void 0?(0,h6.jsx)("a",{href:l?.link+"#comments",onClick:c=>c.preventDefault(),children:s}):(0,h6.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Cf.__)("No comments")})})}var Qle=C7e;var Xle=n($(),1),S7e={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Xle.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Jle=S7e;var T7e={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,html:!1,spacing:{margin:!0,padding:!0},color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},ese=[T7e];var{name:tse}=f6,rse={edit:Qle,icon:fv,transforms:Jle,deprecated:ese},P7e=()=>R({name:tse,metadata:f6,settings:rse});var HM={};K(HM,{init:()=>z7e,metadata:()=>v6,name:()=>lse,settings:()=>sse});var v6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{tagName:{type:"string",default:"div"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0}},dimensions:{minHeight:!0},spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Sf=n(N(),1),Ur=n(P(),1),ose=n($(),1),Tf=n(re(),1),nse=n(F(),1),ase=n(H(),1);var er=n(y(),1),{HTMLElementControl:B7e}=j(Ur.privateApis);function I7e({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:a,tagName:i="div"}){let[,,l]=(0,Tf.useEntityProp)("postType",o,"content",a),s=(0,Ur.useBlockProps)({className:t}),c=(0,ase.useMemo)(()=>l?.raw?(0,ose.parse)(l.raw):[],[l?.raw]),u=(0,Ur.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,er.jsx)("div",{...u}):l?.protected?(0,er.jsx)(i,{...s,children:(0,er.jsx)(Ur.Warning,{children:(0,Sf.__)("This content is password protected.")})}):(0,er.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function N7e({blockProps:e,blocks:t,onInput:r,onChange:o,tagName:a="div"}){let i=(0,Ur.useInnerBlocksProps)(e,{value:t,onInput:r,onChange:o,renderAppender:t?.length?void 0:Ur.InnerBlocks.DefaultBlockAppender});return(0,er.jsx)(a,{...i})}function D7e({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[a,i,l]=(0,Tf.useEntityBlockEditor)("postType",r,{id:o}),s=(0,nse.useSelect)(u=>u(Tf.store).getEntityRecord("postType",r,o)!==void 0||u(Tf.store).hasFinishedResolution("getEntityRecord",["postType",r,o]),[r,o]),c=(0,Ur.useBlockProps)({className:"entry-content"});return s?(0,er.jsx)(N7e,{blockProps:c,blocks:a,onInput:i,onChange:l,tagName:t}):(0,er.jsx)(t,{...c})}function L7e(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:a,tagName:i}=e,l=Jk("postType",r,o);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,er.jsx)(D7e,{...e}):(0,er.jsx)(I7e,{parentLayout:e.parentLayout,layoutClassNames:a,userCanEdit:l,postType:r,postId:o,tagName:i})}function R7e({layoutClassNames:e}){let t=(0,Ur.useBlockProps)({className:e});return(0,er.jsxs)("div",{...t,children:[(0,er.jsx)("p",{children:(0,Sf.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,er.jsx)("p",{children:(0,Sf.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,er.jsx)("p",{children:(0,Sf.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function A7e(){let e=(0,Ur.useBlockProps)();return(0,er.jsx)("div",{...e,children:(0,er.jsx)(Ur.Warning,{children:(0,Sf.__)("Block cannot be rendered inside itself.")})})}function M7e({tagName:e,onSelectTagName:t,clientId:r}){return(0,er.jsx)(Ur.InspectorControls,{group:"advanced",children:(0,er.jsx)(B7e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Sf.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function ise({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:a,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,Ur.useHasRecursion)(l);return l&&s&&c?(0,er.jsx)(A7e,{}):(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(M7e,{tagName:t,onSelectTagName:p=>{r({tagName:p})},clientId:o}),(0,er.jsx)(Ur.RecursionProvider,{uniqueId:l,children:l&&s?(0,er.jsx)(L7e,{context:e,parentLayout:i,layoutClassNames:a}):(0,er.jsx)(R7e,{layoutClassNames:a})})]})}var{name:lse}=v6,sse={icon:LB,edit:ise},z7e=()=>R({name:lse,metadata:v6,settings:sse});var jM={};K(jM,{init:()=>W7e,metadata:()=>b6,name:()=>hse,settings:()=>gse});var b6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display a custom date.",textdomain:"default",attributes:{datetime:{type:"string",role:"content"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var cse=n(re(),1),y0=n(H(),1),Pf=n(Lw(),1),ei=n(P(),1),Zi=n(O(),1),Ta=n(N(),1);var use=n(Ks(),1),Fy=n(F(),1),pse=n($(),1);var Po=n(y(),1);function mse(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:a,name:i}=e;wt(e);let{datetime:l,format:s,isLink:c}=t,u=(0,ei.useBlockProps)(),p=Z(),[m,d]=(0,y0.useState)(null),f=(0,y0.useMemo)(()=>({anchor:m}),[m]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,Fy.useDispatch)(ei.store);(0,y0.useEffect)(()=>{l===void 0&&(h(),a({datetime:new Date}))},[l]);let g=Number.isFinite(o),v=(0,Pf.getSettings)(),{postType:b,siteFormat:_=v.formats.date,siteTimeFormat:k=v.formats.time}=(0,Fy.useSelect)(I=>{let{getPostType:D,getEntityRecord:L}=I(cse.store),E=L("root","site");return{siteFormat:E?.date_format,siteTimeFormat:E?.time_format,postType:r?D(r):null}},[r]),x=(0,Fy.useSelect)(I=>I(pse.store).getActiveBlockVariation(i,t)?.name,[i,t]),w=(0,ei.useBlockEditingMode)(),S=l||new Date,T=(0,Po.jsx)("time",{dateTime:(0,Pf.dateI18n)("c",S),ref:d,children:s==="human-diff"?(0,Pf.humanTimeDiff)(S):(0,Pf.dateI18n)(s||_,S)});return c&&l&&(T=(0,Po.jsx)("a",{href:"#post-date-pseudo-link",onClick:I=>I.preventDefault(),children:T})),(0,Po.jsxs)(Po.Fragment,{children:[(w==="default"||!g)&&x!=="post-date-modified"&&(!g||!x)&&(0,Po.jsx)(ei.BlockControls,{group:"block",children:(0,Po.jsx)(Zi.ToolbarGroup,{children:(0,Po.jsx)(Zi.Dropdown,{popoverProps:f,renderContent:({onClose:I})=>(0,Po.jsx)(ei.__experimentalPublishDateTimePicker,{title:x==="post-date"?(0,Ta.__)("Publish Date"):(0,Ta.__)("Date"),currentDate:l,onChange:D=>a({datetime:D}),is12Hour:O7e(k),onClose:I,dateOrder:(0,Ta._x)("dmy","date order")}),renderToggle:({isOpen:I,onToggle:D})=>{let L=E=>{!I&&E.keyCode===use.DOWN&&(E.preventDefault(),D())};return(0,Po.jsx)(Zi.ToolbarButton,{"aria-expanded":I,icon:nd,title:(0,Ta.__)("Change Date"),onClick:D,onKeyDown:L})}})})}),(0,Po.jsx)(ei.InspectorControls,{children:(0,Po.jsxs)(Zi.__experimentalToolsPanel,{label:(0,Ta.__)("Settings"),resetAll:()=>{a({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:p,children:[(0,Po.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ta.__)("Date Format"),onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Po.jsx)(ei.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:I=>a({format:I})})}),(0,Po.jsx)(Zi.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:b?.labels?.singular_name?(0,Ta.sprintf)((0,Ta.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Ta.__)("Link to post"),onDeselect:()=>a({isLink:!1}),isShownByDefault:!0,children:(0,Po.jsx)(Zi.ToggleControl,{label:b?.labels?.singular_name?(0,Ta.sprintf)((0,Ta.__)("Link to %s"),b.labels.singular_name.toLowerCase()):(0,Ta.__)("Link to post"),onChange:()=>a({isLink:!c}),checked:c})})]})}),(0,Po.jsx)("div",{...u,children:T})]})}function O7e(e){return/(?:^|[^\\])[aAgh]/.test(e)}var F7e={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},H7e={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({metadata:{bindings:{datetime:{source:e,args:{key:t,...r}},...o},...a},...i}){return be({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...o},...a},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},j7e={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({className:e,displayType:t,metadata:r,...o}){if(t==="date"||t==="modified")return t==="modified"&&(e=C(e,"wp-block-post-date__modified-date")),be({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},U7e={attributes:{textAlign:{type:"string"},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(){return null},migrate(e){return be(Zt(e))},isEligible({style:e}){return e?.typography?.fontFamily}},dse=[F7e,H7e,j7e,U7e];var Hy=n(N(),1),G7e=[{name:"post-date",title:(0,Hy.__)("Post Date"),description:(0,Hy.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="date"},{name:"post-date-modified",title:(0,Hy.__)("Modified Date"),description:(0,Hy.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="modified"}],fse=G7e;var{name:hse}=b6,gse={icon:vv,edit:mse,deprecated:dse,variations:fse},W7e=()=>R({name:hse,metadata:b6,settings:gse});var GM={};K(GM,{init:()=>K7e,metadata:()=>y6,name:()=>wse,settings:()=>Cse});var y6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,textColumns:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"};var _6=n(re(),1),bse=n(H(),1),zu=n(P(),1),Vu=n(O(),1),Pa=n(N(),1),yse=n(F(),1);var po=n(y(),1),vse="\u2026";function _se(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:a,isSelected:i,context:{postId:l,postType:s,queryId:c}}=e;wt(e);let u=Number.isFinite(c),p=Jk("postType",s,l),[m,d,{rendered:f,protected:h}={}]=(0,_6.useEntityProp)("postType",s,"excerpt",l),g=Z(),v=(0,yse.useSelect)(E=>s==="page"?!0:!!E(_6.store).getPostType(s)?.supports?.excerpt,[s]),b=p&&!u&&v,_=(0,zu.useBlockProps)(),k=(0,Pa._x)("words","Word count type. Do not translate!"),x=(0,bse.useMemo)(()=>{if(!f)return"";let E=new window.DOMParser().parseFromString(f,"text/html");return E.body.textContent||E.body.innerText||""},[f]);if(!s||!l)return(0,po.jsx)("div",{..._,children:(0,po.jsx)("p",{children:(0,Pa.__)("This block will display the excerpt.")})});if(h&&!p)return(0,po.jsx)("div",{..._,children:(0,po.jsx)(zu.Warning,{children:(0,Pa.__)("The content is currently protected and does not have the available excerpt.")})});let w=(0,po.jsx)(zu.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Pa.__)("\u201CRead more\u201D link text"),placeholder:(0,Pa.__)('Add "read more" link text'),value:t,onChange:E=>a({moreText:E}),withoutInteractiveFormatting:!0}),S=C("wp-block-post-excerpt__excerpt",{"is-inline":!r}),T=(m||x).trim(),I="";if(k==="words")I=T.split(/\s+/,o).join(" ");else if(k==="characters_excluding_spaces"){let E=T.split("",o).join(""),B=E.length-E.replaceAll(" ","").length;I=T.split("",o+B).join("")}else k==="characters_including_spaces"&&(I=T.split("",o).join(""));let D=I!==T,L=b?(0,po.jsx)(zu.RichText,{className:S,"aria-label":(0,Pa.__)("Excerpt text"),value:i?T:(D?I+vse:T)||(0,Pa.__)("No excerpt found"),onChange:d,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,po.jsx)("p",{className:S,children:D?I+vse:T||(0,Pa.__)("No excerpt found")});return(0,po.jsxs)(po.Fragment,{children:[(0,po.jsx)(zu.InspectorControls,{children:(0,po.jsxs)(Vu.__experimentalToolsPanel,{label:(0,Pa.__)("Settings"),resetAll:()=>{a({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:g,children:[(0,po.jsx)(Vu.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Pa.__)("Show link on new line"),onDeselect:()=>a({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,po.jsx)(Vu.ToggleControl,{label:(0,Pa.__)("Show link on new line"),checked:r,onChange:E=>a({showMoreOnNewLine:E})})}),(0,po.jsx)(Vu.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,Pa.__)("Max number of words"),onDeselect:()=>a({excerptLength:55}),isShownByDefault:!0,children:(0,po.jsx)(Vu.RangeControl,{label:(0,Pa.__)("Max number of words"),value:o,onChange:E=>{a({excerptLength:E})},min:"10",max:"100"})})]})}),(0,po.jsxs)("div",{..._,children:[L,!r&&" ",r?(0,po.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:w}):w]})]})}var UM=n($(),1),q7e={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,UM.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,UM.createBlock)("core/post-content")}]},xse=q7e;var Z7e={attributes:{textAlign:{type:"string"},moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textColumns:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},kse=[Z7e];var{name:wse}=y6,Cse={icon:AB,transforms:xse,edit:_se,deprecated:kse},K7e=()=>R({name:wse,metadata:y6,settings:Cse});var $M={};K($M,{init:()=>l9e,metadata:()=>x6,name:()=>Vse,settings:()=>Ose});var x6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{anchor:!0,align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{dimensions:".wp-block-post-featured-image img",border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"};var Rse=n(Ar(),1),jy=n(re(),1),Uy=n(F(),1),Eo=n(O(),1),Lr=n(P(),1),ym=n(H(),1),qn=n(N(),1);var Ase=n(Sr(),1);var hm=n(N(),1),Sse=n(O(),1),k6=n(P(),1);var Tse=n(y(),1),{DimensionsTool:Q7e}=j(k6.privateApis),X7e="cover",J7e=["aspectRatio","width","height","scale"],e9e=[{value:"cover",label:(0,hm._x)("Cover","Scale option for Image dimension control"),help:(0,hm.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,hm._x)("Contain","Scale option for Image dimension control"),help:(0,hm.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,hm._x)("Fill","Scale option for Image dimension control"),help:(0,hm.__)("Image will be stretched and distorted to completely fill the space.")}],t9e=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:a=!1})=>{let{style:i}=t,l=Kh(o),s=Ci({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"aspectRatio"}),c=Ci({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"width"}),u=Ci({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"height"}),p=Ci({attributes:t,selectedState:o,hasSelectedStyleState:a,attributeKey:"scale",styleKey:"objectFit"}),[m]=(0,k6.useSettings)("spacing.units"),d=(0,Sse.__experimentalUseCustomUnits)({availableUnits:m||["px","%","vw","em","rem"]});return(0,Tse.jsx)(Q7e,{panelId:e,value:{aspectRatio:s,width:c,height:u,scale:p},onChange:h=>{let g={...h,width:!h.width&&h.height?"auto":h.width};r(Yh({style:i,selectedState:o,hasSelectedStyleState:a,nextDimensions:g,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:J7e}))},defaultScale:X7e,defaultAspectRatio:"auto",scaleOptions:e9e,unitsOptions:d},l)},Pse=t9e;var C6=n(O(),1),vm=n(P(),1),Ese=n(ve(),1),w6=n(N(),1),gm=n(y(),1),r9e=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:a})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,vm.__experimentalUseGradient)(),c=(0,vm.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,gm.jsxs)(gm.Fragment,{children:[(0,gm.jsx)(vm.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:l,label:(0,w6.__)("Overlay"),onColorChange:a,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,gm.jsx)(C6.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,w6.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,gm.jsx)(C6.RangeControl,{label:(0,w6.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0})})]}):null},Bse=(0,Ese.compose)([(0,vm.withColors)({overlayColor:"background-color"})])(r9e);var bm=n(P(),1),Nse=n(ve(),1);function Ise(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var Dse=n(y(),1),o9e=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:a}=(0,bm.__experimentalUseGradient)(),i=(0,bm.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,bm.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:a,...l.style};return!i.hasColorsOrGradients||!r?null:(0,Dse.jsx)("span",{"aria-hidden":"true",className:C("wp-block-post-featured-image__overlay",Ise(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":a,[o]:o},l.className),style:s})},WM=(0,Nse.compose)([(0,bm.withColors)({overlayColor:"background-color"})])(o9e);var Ye=n(y(),1),Lse=["image"],{isDefaultBlockStyleState:n9e,ResolutionTool:a9e}=j(Lr.privateApis),_0=e=>e!=null&&e!=="",Mse="full";function i9e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,Uy.useSelect)(i=>{let{getSettings:l}=i(Lr.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let a=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Ye.jsx)(a9e,{value:t,defaultValue:Mse,options:a,onChange:r})}function zse({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:a,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:p,scale:m,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:g}=t,[v,b]=(0,ym.useState)(),[_,k]=(0,jy.useEntityProp)("postType",a,"featured_media",o),[x]=(0,jy.useEntityProp)("postType",a,"content",o),w=(0,ym.useMemo)(()=>{if(_)return _;if(!g)return;let ie=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(x);return ie?.groups?.attrs&&JSON.parse(ie.groups.attrs)?.id},[_,g,x]),{media:S,postType:T,postPermalink:I,selectedStyleState:D}=(0,Uy.useSelect)(ie=>{let{getEntityRecord:we,getPostType:le,getEditedEntityRecord:de}=ie(jy.store),{getSelectedBlockStyleState:ge}=j(ie(Lr.store));return{media:w&&we("postType","attachment",w,{context:"view"}),postType:a&&le(a),postPermalink:de("postType",a,o)?.link,selectedStyleState:ge(e)}},[e,w,a,o]),L=!n9e(D),E=S?.media_details?.sizes?.[d]?.source_url||S?.source_url,B=(0,Lr.useBlockProps)({className:C({"is-transient":v})}),A=(0,Lr.__experimentalUseBorderProps)(t),z=(0,Lr.__experimentalGetShadowClassesAndStyles)(t),U=(0,Lr.useBlockEditingMode)(),q=c==="auto"?void 0:c,G=ie=>(0,Ye.jsx)(Eo.Placeholder,{className:C("block-editor-media-placeholder",A.className),withIllustration:!0,style:{aspectRatio:q,height:_0(u)?u:_0(p)&&"auto",width:_0(p)?p:!!c&&"100%",...A.style,...z.style},children:ie}),W=ie=>{ie?.id&&k(ie.id),ie?.url&&(0,Rse.isBlobURL)(ie.url)&&b(ie.url)},V=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),k(0)};(0,ym.useEffect)(()=>{E&&v&&b()},[E,v]);let{createErrorNotice:Q}=(0,Uy.useDispatch)(Ase.store),Y=ie=>{Q(ie,{type:"snackbar"}),b()},ee=Z(),te=U==="default"&&(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)(Lr.InspectorControls,{group:"color",children:(0,Ye.jsx)(Bse,{attributes:t,setAttributes:r,clientId:e})}),(0,Ye.jsx)(Lr.InspectorControls,{group:"dimensions",resetAllFilter:ie=>Qh({attributes:ie,selectedState:D,hasSelectedStyleState:L,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,Ye.jsx)(Pse,{clientId:e,attributes:t,setAttributes:r,media:S,selectedStyleState:D,hasSelectedStyleState:L})}),(w||l||!o)&&(0,Ye.jsx)(Lr.InspectorControls,{children:(0,Ye.jsxs)(Eo.__experimentalToolsPanel,{label:(0,qn.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Mse})},dropdownMenuProps:ee,children:[(0,Ye.jsx)(Eo.__experimentalToolsPanelItem,{label:T?.labels?.singular_name?(0,qn.sprintf)((0,qn.__)("Link to %s"),T.labels.singular_name):(0,qn.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,Ye.jsx)(Eo.ToggleControl,{label:(0,qn.__)("Make image a link"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,Ye.jsx)(Eo.__experimentalToolsPanelItem,{label:(0,qn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ye.jsx)(Eo.ToggleControl,{label:(0,qn.__)("Open in new tab"),onChange:ie=>r({linkTarget:ie?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,Ye.jsx)(Eo.__experimentalToolsPanelItem,{label:(0,qn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,Ye.jsx)(Eo.TextControl,{label:(0,qn.__)("Link relation"),help:(0,ym.createInterpolateElement)((0,qn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ye.jsx)(Eo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ie=>r({rel:ie})})}),!!S&&(0,Ye.jsx)(i9e,{image:S,value:d,onChange:ie=>r({sizeSlug:ie})})]})})]}),oe;if(!w&&(l||!o))return(0,Ye.jsxs)(Ye.Fragment,{children:[te,(0,Ye.jsxs)("div",{...B,children:[s?(0,Ye.jsx)("a",{href:I,target:h,children:G()}):G(),(0,Ye.jsx)(WM,{attributes:t,setAttributes:r,clientId:e})]})]});let J=(0,qn.__)("Add a featured image"),ce={...A.style,...z.style,aspectRatio:q,height:_0(u)?u:_0(p)&&"auto",width:_0(p)?p:!!c&&"100%",objectFit:!!(u||c)&&m};return!w&&!v?oe=(0,Ye.jsx)(Lr.MediaPlaceholder,{onSelect:W,accept:"image/*",allowedTypes:Lse,onError:Y,placeholder:G,mediaLibraryButton:({open:ie})=>(0,Ye.jsx)(Eo.Button,{__next40pxDefaultSize:!0,icon:nu,variant:"primary",label:J,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ie()}})}):oe=!S&&!v?G():(0,Ye.jsxs)(Ye.Fragment,{children:[(0,Ye.jsx)("img",{className:A.className,src:v||E,alt:S&&S?.alt_text?(0,qn.sprintf)((0,qn.__)("Featured image: %s"),S.alt_text):(0,qn.__)("Featured image"),style:ce}),v&&(0,Ye.jsx)(Eo.Spinner,{})]}),(0,Ye.jsxs)(Ye.Fragment,{children:[!v&&te,!!S&&!l&&(0,Ye.jsx)(Lr.BlockControls,{group:"other",children:(0,Ye.jsx)(Lr.MediaReplaceFlow,{mediaId:w,mediaURL:E,allowedTypes:Lse,accept:"image/*",onSelect:W,onError:Y,onReset:V})}),(0,Ye.jsxs)("figure",{...B,children:[s?(0,Ye.jsx)("a",{href:I,target:h,children:oe}):oe,(0,Ye.jsx)(WM,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:Vse}=x6,Ose={icon:zB,edit:zse},l9e=()=>R({name:Vse,metadata:x6,settings:Ose});var qM={};K(qM,{init:()=>u9e,metadata:()=>S6,name:()=>qse,settings:()=>Zse});var $se=n(N(),1);var S6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{type:{type:"string",default:"next"},label:{type:"string",role:"content"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{anchor:!0,reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"};var bn=n(O(),1),Ef=n(P(),1),br=n(N(),1),Fse=n(F(),1),Hse=n(re(),1);var Rr=n(y(),1);function jse({context:{postType:e},attributes:{type:t,label:r,showTitle:o,linkLabel:a,arrow:i,taxonomy:l},setAttributes:s}){let c=t==="next",u=c?(0,br.__)("Next"):(0,br.__)("Previous"),m={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];o&&(u=c?(0,br.__)("Next: "):(0,br.__)("Previous: "));let d=c?(0,br.__)("Next post"):(0,br.__)("Previous post"),f=(0,Ef.useBlockProps)(),h=(0,Fse.useSelect)(b=>{let{getTaxonomies:_}=b(Hse.store);return _({type:e,per_page:-1})},[e]),g=()=>{let b={label:(0,br.__)("Unfiltered"),value:""},_=(h??[]).filter(({visibility:k})=>!!k?.publicly_queryable).map(k=>({value:k.slug,label:k.name}));return[b,..._]},v=Z();return(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(Ef.InspectorControls,{children:(0,Rr.jsxs)(bn.__experimentalToolsPanel,{label:(0,br.__)("Settings"),resetAll:()=>{s({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:v,children:[(0,Rr.jsx)(bn.__experimentalToolsPanelItem,{label:(0,br.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>s({showTitle:!1}),children:(0,Rr.jsx)(bn.ToggleControl,{label:(0,br.__)("Display the title as a link"),help:(0,br.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>s({showTitle:!o})})}),o&&(0,Rr.jsx)(bn.__experimentalToolsPanelItem,{label:(0,br.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>s({linkLabel:!1}),children:(0,Rr.jsx)(bn.ToggleControl,{label:(0,br.__)("Include the label as part of the link"),checked:!!a,onChange:()=>s({linkLabel:!a})})}),(0,Rr.jsx)(bn.__experimentalToolsPanelItem,{label:(0,br.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>s({arrow:"none"}),children:(0,Rr.jsxs)(bn.__experimentalToggleGroupControl,{label:(0,br.__)("Arrow"),value:i,onChange:b=>{s({arrow:b})},help:(0,br.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Rr.jsx)(bn.__experimentalToggleGroupControlOption,{value:"none",label:(0,br._x)("None","Arrow option for Next/Previous link")}),(0,Rr.jsx)(bn.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,br._x)("Arrow","Arrow option for Next/Previous link")}),(0,Rr.jsx)(bn.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,br._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Rr.jsx)(Ef.InspectorControls,{group:"advanced",children:(0,Rr.jsx)(bn.SelectControl,{label:(0,br.__)("Filter by taxonomy"),value:l,options:g(),onChange:b=>s({taxonomy:b}),help:(0,br.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Rr.jsxs)("div",{...f,children:[!c&&m&&(0,Rr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:m}),(0,Rr.jsx)(Ef.RichText,{tagName:"a",identifier:"label","aria-label":d,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:b=>s({label:b})}),o&&(0,Rr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:b=>b.preventDefault(),children:(0,br.__)("An example title")}),c&&m&&(0,Rr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:m})]})]})}var Bf=n(N(),1);var Use=[{name:"post-previous",title:(0,Bf.__)("Previous Post"),description:(0,Bf.__)("Displays the post link that precedes the current post."),icon:GB,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Bf.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Bf.__)("Next Post"),description:(0,Bf.__)("Displays the post link that follows the current post."),icon:aB,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Bf.__)("Next post"),arrow:"arrow"}}}];Use.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Gse=Use;var c9e={attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string",role:"content"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},supports:{anchor:!0,reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Wse=[c9e];var{name:qse}=S6,Zse={edit:jse,variations:Gse,deprecated:Wse,example:{attributes:{label:(0,$se.__)("Next post"),arrow:"arrow"}}},u9e=()=>R({name:qse,metadata:S6,settings:Zse});var ZM={};K(ZM,{init:()=>g9e,metadata:()=>T6,name:()=>tce,settings:()=>rce});var T6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",ancestor:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination","postType","postId"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!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}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var x0=n(H(),1),Kse=n(F(),1),Gy=n(N(),1),Bl=n(P(),1),P6=n(O(),1),Yse=n(re(),1);var Zn=n(y(),1),m9e=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function d9e({classList:e}){let t=(0,Bl.useInnerBlocksProps)({className:C("wp-block-post",e)},{template:m9e,__unstableDisableLayoutClassNames:!0});return(0,Zn.jsx)("li",{...t})}function f9e({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:a}){let i=(0,Bl.__experimentalUseBlockPreview)({blocks:e,props:{className:C("wp-block-post",r)}}),l=()=>{a(t)};return(0,Zn.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var h9e=(0,x0.memo)(f9e);function Qse({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:a,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:p,inherit:m,taxQuery:d,parents:f,pages:h,format:g,excludeCurrent:v,...b}={},templateSlug:_,previewPostType:k,postId:x},attributes:{layout:w},__unstableLayoutClassNames:S}){let{type:T,columnCount:I=3,minimumColumnWidth:D}=w||{},[L,E]=(0,x0.useState)(),{posts:B,blocks:A}=(0,Kse.useSelect)(W=>{let{getEntityRecords:V,getTaxonomies:Q}=W(Yse.store),{getBlocks:Y}=W(Bl.store),ee=m&&_?.startsWith("category-")&&V("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:_.replace("category-","")}),te=m&&_?.startsWith("tag-")&&V("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:_.replace("tag-","")}),oe={offset:o||0,order:i,orderby:l};if(d&&!m){let ie=Q({type:a,per_page:-1,context:"view"}),we=(de,ge="")=>Object.entries(de||{}).reduce((ne,[me,se])=>{let Ne=ie?.find(({slug:De})=>De===me);return Ne?.rest_base&&se?.length&&(ne[Ne.rest_base+ge]=se),ne},{}),le=we(d.include);d.exclude&&Object.assign(le,we(d.exclude,"_exclude")),Object.keys(le).length&&Object.assign(oe,le)}r&&(oe.per_page=r),s&&(oe.author=s),c&&(oe.search=c),u?.length&&(oe.exclude=u),f?.length&&(oe.parent=f),g?.length&&(oe.format=g),v&&x&&(oe.exclude?oe.exclude=[...oe.exclude,x]:oe.exclude=[x]),["exclude","only"].includes(p)&&(oe.sticky=p==="only"),["","ignore"].includes(p)&&(delete oe.sticky,oe.ignore_sticky=p==="ignore");let J=a;return m&&(_?.startsWith("archive-")?(oe.postType=_.replace("archive-",""),J=oe.postType):ee?oe.categories=ee[0]?.id:te?oe.tags=te[0]?.id:_?.startsWith("taxonomy-post_format")&&(oe.format=_.replace("taxonomy-post_format-post-format-",""))),{posts:V("postType",k||J,{...oe,...b}),blocks:Y(t)}},[r,o,i,l,t,s,c,a,u,p,m,_,d,f,g,b,k]),z=(0,x0.useMemo)(()=>B?.map(W=>({postType:W.type,postId:W.id,classList:W.class_list??""})),[B]),U=(0,Bl.useBlockProps)({className:C(S,{[`columns-${I}`]:T==="grid"&&I,"has-native-responsive-grid":T==="grid"&&I&&D})});if(!B)return(0,Zn.jsx)("p",{...U,children:(0,Zn.jsx)(P6.Spinner,{})});if(!B.length)return(0,Zn.jsxs)("p",{...U,children:[" ",(0,Gy.__)("No results found.")]});let q=W=>e({layout:{...w,...W}}),G=[{icon:ql,title:(0,Gy._x)("List view","Post template block display setting"),onClick:()=>q({type:"default"}),isActive:T==="default"||T==="constrained"},{icon:$l,title:(0,Gy._x)("Grid view","Post template block display setting"),onClick:()=>q({type:"grid",columnCount:I}),isActive:T==="grid"}];return(0,Zn.jsxs)(Zn.Fragment,{children:[(0,Zn.jsx)(Bl.BlockControls,{children:(0,Zn.jsx)(P6.ToolbarGroup,{controls:G})}),(0,Zn.jsx)("ul",{...U,children:z&&z.map(W=>(0,Zn.jsxs)(Bl.BlockContextProvider,{value:W,children:[W.postId===(L||z[0]?.postId)?(0,Zn.jsx)(d9e,{classList:W.classList}):null,(0,Zn.jsx)(h9e,{blocks:A,blockContextId:W.postId,classList:W.classList,setActiveBlockContextId:E,isHidden:W.postId===(L||z[0]?.postId)})]},W.postId))})]})}var Xse=n(P(),1),Jse=n(y(),1);function ece(){return(0,Jse.jsx)(Xse.InnerBlocks.Content,{})}var{name:tce}=T6,rce={icon:td,edit:Qse,save:ece},g9e=()=>R({name:tce,metadata:T6,settings:rce});var KM={};K(KM,{init:()=>x9e,metadata:()=>E6,name:()=>fce,settings:()=>hce});var dce=n(bu(),1);var E6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},usesContext:["postId","postType"],example:{viewportWidth:350},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-terms"};var Ou=n(P(),1),B6=n($(),1),I6=n(O(),1),lce=n(F(),1),sce=n(Jo(),1),_m=n(N(),1),cce=n(re(),1);var oce=n(re(),1),nce=n(F(),1),b9e=[];function ace({postId:e,term:t}){let{slug:r}=t;return(0,nce.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:b9e,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=o(oce.store),s=["taxonomy",r,{post:e,per_page:-1,context:"view"}],c=i(...s);return{postTerms:c,isLoading:l("getEntityRecords",s),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,r])}var Kn=n(y(),1),ice=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function uce({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:a,insertBlocksAfter:i}){let{term:l,separator:s,prefix:c,suffix:u}=e,{postId:p,postType:m}=r,d=(0,lce.useSelect)(k=>{if(!l)return{};let{getTaxonomy:x}=k(cce.store),w=x(l);return w?.visibility?.publicly_queryable?w:{}},[l]),{postTerms:f,hasPostTerms:h,isLoading:g}=ace({postId:p,term:d}),v=p&&m,b=(0,Ou.useBlockDisplayInformation)(t),_=(0,Ou.useBlockProps)({className:l&&`taxonomy-${l}`});return(0,Kn.jsxs)(Kn.Fragment,{children:[(0,Kn.jsx)(Ou.InspectorControls,{group:"advanced",children:(0,Kn.jsx)(I6.TextControl,{autoComplete:"off",label:(0,_m.__)("Separator"),value:s||"",onChange:k=>{a({separator:k})},help:(0,_m.__)("Enter character(s) used to separate terms.")})}),(0,Kn.jsxs)("div",{..._,children:[g&&v&&(0,Kn.jsx)(I6.Spinner,{}),!g&&(o||c)&&(0,Kn.jsx)(Ou.RichText,{identifier:"prefix",allowedFormats:ice,className:"wp-block-post-terms__prefix","aria-label":(0,_m.__)("Prefix"),placeholder:(0,_m.__)("Prefix")+" ",value:c,onChange:k=>a({prefix:k}),tagName:"span"}),(!v||!l)&&(0,Kn.jsx)("span",{children:b.title}),v&&!g&&h&&f.map(k=>(0,Kn.jsx)("a",{href:k.link,onClick:x=>x.preventDefault(),rel:"tag",children:(0,sce.decodeEntities)(k.name)},k.id)).reduce((k,x)=>(0,Kn.jsxs)(Kn.Fragment,{children:[k,(0,Kn.jsx)("span",{className:"wp-block-post-terms__separator",children:s||" "}),x]})),v&&!g&&!h&&(d?.labels?.no_terms||(0,_m.__)("Term items not found.")),!g&&(o||u)&&(0,Kn.jsx)(Ou.RichText,{identifier:"suffix",allowedFormats:ice,className:"wp-block-post-terms__suffix","aria-label":(0,_m.__)("Suffix"),placeholder:" "+(0,_m.__)("Suffix"),value:u,onChange:k=>a({suffix:k}),tagName:"span",__unstableOnSplitAtEnd:i?()=>i((0,B6.createBlock)((0,B6.getDefaultBlockName)())):void 0})]})]})}var y9e={category:bh,post_tag:FB};function pce(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:y9e[o.name]??bh}));return{...e,variations:r}}var _9e={attributes:{textAlign:{type:"string"},term:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},supports:{anchor:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},mce=[_9e];var{name:fce}=E6,hce={icon:bh,edit:uce,deprecated:mce},x9e=()=>((0,dce.addFilter)("blocks.registerBlockType","core/template-part",pce),R({name:fce,metadata:E6,settings:hce}));var YM={};K(YM,{init:()=>T9e,metadata:()=>N6,name:()=>Cce,settings:()=>Sce});var N6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-time-to-read",title:"Time to Read",category:"theme",description:"Show minutes required to finish reading the post. Can also show a word count.",textdomain:"default",usesContext:["postId","postType"],attributes:{displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var Yn=n(N(),1),bce=n(H(),1),D6=n(P(),1),k0=n(O(),1),yce=n($(),1),L6=n(re(),1),_ce=n(vce(),1);var Rc=n(y(),1);function w9e({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:a,averageReadingSpeed:i}=e,{postId:l,postType:s}=r,c=Z(),[u]=(0,L6.useEntityProp)("postType",s,"content",l),[p]=(0,L6.useEntityBlockEditor)("postType",s,{id:l}),m=(0,bce.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:p}):p?f=(0,yce.__unstableSerializeAndClean)(p):f=u;let h=(0,Yn._x)("words","Word count type. Do not translate!"),g=(0,_ce.count)(f||"",h);if(a==="time"){if(o){let b=Math.max(1,Math.round(g/i*1.2)),_=Math.max(1,Math.round(g/i*.8));_===b&&(b=b+1);let k=(0,Yn._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,Yn.sprintf)(k,_,b)}let v=Math.max(1,Math.round(g/i));return(0,Yn.sprintf)((0,Yn._n)("%s minute","%s minutes",v),v)}if(a==="words")return h==="words"?(0,Yn.sprintf)((0,Yn._n)("%s word","%s words",g),g.toLocaleString()):(0,Yn.sprintf)((0,Yn._n)("%s character","%s characters",g),g.toLocaleString())},[u,p,o,a,i]),d=(0,D6.useBlockProps)();return(0,Rc.jsxs)(Rc.Fragment,{children:[a==="time"&&(0,Rc.jsx)(D6.InspectorControls,{children:(0,Rc.jsx)(k0.__experimentalToolsPanel,{label:(0,Yn.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,Rc.jsx)(k0.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Yn._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Rc.jsx)(k0.ToggleControl,{label:(0,Yn.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,Rc.jsx)("div",{...d,children:m})]})}var xce=w9e;var Wy=n(N(),1);var C9e=[{name:"time-to-read",title:(0,Wy.__)("Time to Read"),description:(0,Wy.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:Mv,isDefault:!0},{name:"word-count",title:(0,Wy.__)("Word Count"),description:(0,Wy.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:lN}],kce=C9e;var S9e={attributes:{textAlign:{type:"string"},displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},wce=[S9e];var{name:Cce}=N6,Sce={icon:Mv,edit:xce,variations:kce,example:{},deprecated:wce},T9e=()=>R({name:Cce,metadata:N6,settings:Sce});var QM={};K(QM,{init:()=>I9e,metadata:()=>R6,name:()=>Ice,settings:()=>Nce});var R6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1,role:"content"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},placeholder:{type:"string"}},example:{viewportWidth:350},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-title"};var Yi=n(P(),1),Ki=n(O(),1),ti=n(N(),1),A6=n($(),1),$y=n(re(),1),Tce=n(F(),1),Pce=n(H(),1);var tr=n(y(),1);function Ece({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:a,placeholder:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:p}){let m=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,Tce.useSelect)(T=>d?!1:T($y.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",g,v]=(0,$y.useEntityProp)("postType",s,"title",c),[b]=(0,$y.useEntityProp)("postType",s,"link",c),_=p?()=>{p((0,A6.createBlock)((0,A6.getDefaultBlockName)()))}:void 0,k=(0,Yi.useBlockProps)(),x=(0,Yi.useBlockEditingMode)(),w=Z(),S=(0,tr.jsx)(m,{...k,children:i||(0,ti.__)("Title")});return s&&c&&(S=f?(0,tr.jsx)(Yi.PlainText,{tagName:m,placeholder:(0,ti.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...k}):(0,tr.jsx)(m,{...k,dangerouslySetInnerHTML:{__html:v?.rendered||(0,ti.__)("(no title)")}})),r&&s&&c&&(S=f?(0,tr.jsx)(m,{...k,children:(0,tr.jsx)(Yi.PlainText,{tagName:"a",href:b,target:a,rel:o,placeholder:h.length?null:(0,ti.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,tr.jsx)(m,{...k,children:(0,tr.jsx)("a",{href:b,target:a,rel:o,onClick:T=>T.preventDefault(),dangerouslySetInnerHTML:{__html:v?.rendered||(0,ti.__)("(no title)")}})})),(0,tr.jsxs)(tr.Fragment,{children:[x==="default"&&(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(Yi.BlockControls,{group:"block",children:(0,tr.jsx)(Yi.HeadingLevelDropdown,{value:e,options:t,onChange:T=>l({level:T})})}),(0,tr.jsx)(Yi.InspectorControls,{children:(0,tr.jsxs)(Ki.__experimentalToolsPanel,{label:(0,ti.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:w,children:[(0,tr.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ti.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>l({isLink:!1}),children:(0,tr.jsx)(Ki.ToggleControl,{label:(0,ti.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ti.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>a==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,tr.jsx)(Ki.ToggleControl,{label:(0,ti.__)("Open in new tab"),onChange:T=>l({linkTarget:T?"_blank":"_self"}),checked:a==="_blank"})}),(0,tr.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,ti.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>l({rel:""}),children:(0,tr.jsx)(Ki.TextControl,{label:(0,ti.__)("Link relation"),help:(0,Pce.createInterpolateElement)((0,ti.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,tr.jsx)(Ki.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:T=>l({rel:T})})})]})]})})]}),S]})}var E9e={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},B9e={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Bce=[E9e,B9e];var{name:Ice}=R6,Nce={icon:Zl,edit:Ece,deprecated:Bce},I9e=()=>R({name:Ice,metadata:R6,settings:Nce});var tz={};K(tz,{init:()=>A9e,metadata:()=>V6,name:()=>zce,settings:()=>F6});var ez=n(N(),1);var Mce=n($(),1);var XM=n(N(),1),M6=n(P(),1),z6=n($(),1),Dce=n(y(),1);function Lce({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:a,style:i}){let{content:l}=e,s=(0,M6.useBlockProps)({style:i});return(0,Dce.jsx)(M6.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,XM.__)("Preformatted text"),placeholder:(0,XM.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:a?()=>a((0,z6.createBlock)((0,z6.getDefaultBlockName)())):void 0})}var V6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-preformatted"};var O6=n(P(),1),JM=n(y(),1);function Rce({attributes:e}){let{content:t}=e;return(0,JM.jsx)("pre",{...O6.useBlockProps.save(),children:(0,JM.jsx)(O6.RichText.Content,{value:t})})}var qy=n($(),1),D9e={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,qy.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&!(e.children.length===1&&e.firstChild.nodeName==="CODE"),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,qy.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,qy.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,qy.createBlock)("core/verse",e)}]},Ace=D9e;var{fieldsKey:L9e,formKey:R9e}=j(Mce.privateApis),{name:zce}=V6,F6={icon:jB,example:{attributes:{content:(0,ez.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
Window, very small in the distance, illuminated.
All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;`)}},transforms:Ace,edit:Lce,save:Rce,merge(e,t){return{content:e.content+`
`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(F6[L9e]=[{id:"content",label:(0,ez.__)("Content"),type:"text",Edit:"rich-text"}],F6[R9e]={fields:["content"]});var A9e=()=>R({name:zce,metadata:V6,settings:F6});var rz={};K(rz,{init:()=>Z9e,metadata:()=>j6,name:()=>qce,settings:()=>U6});var Yy=n(N(),1);var $ce=n($(),1);var at=n(P(),1),Oce=n(F(),1);var If="is-style-solid-color";var Gt=n(y(),1),Zy={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Vce(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Nf(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var M9e={attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,a=!at.RichText.isEmpty(r);return(0,Gt.jsx)("figure",{...at.useBlockProps.save({className:C({[`has-text-align-${t}`]:t})}),children:(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(at.RichText.Content,{tagName:"p",value:o}),a&&(0,Gt.jsx)(at.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:be},z9e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!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,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},save({attributes:e}){let{textAlign:t,citation:r,value:o}=e,a=!at.RichText.isEmpty(r);return(0,Gt.jsx)("figure",{...at.useBlockProps.save({className:C({[`has-text-align-${t}`]:t})}),children:(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(at.RichText.Content,{value:o,multiline:!0}),a&&(0,Gt.jsx)(at.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return be({value:Nf(e),...t})}},V9e={attributes:{...Zy},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0}},save({attributes:e}){let{mainColor:t,customMainColor:r,customTextColor:o,textColor:a,value:i,citation:l,className:s}=e,c=s?.includes(If),u,p;if(c){let h=(0,at.getColorClassName)("background-color",t);u=C({"has-background":h||r,[h]:h}),p={backgroundColor:h?void 0:r}}else r&&(p={borderColor:r});let m=(0,at.getColorClassName)("color",a),d=C({"has-text-color":a||o,[m]:m}),f=m?void 0:{color:o};return(0,Gt.jsx)("figure",{...at.useBlockProps.save({className:u,style:p}),children:(0,Gt.jsxs)("blockquote",{className:d,style:f,children:[(0,Gt.jsx)(at.RichText.Content,{value:i,multiline:!0}),!at.RichText.isEmpty(l)&&(0,Gt.jsx)(at.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:a,...i}){let l=t?.includes(If),s;return o&&(l?s={color:{background:o}}:s={border:{color:o}}),a&&s&&(s.color={...s.color,text:a}),be({value:Nf(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},O9e={attributes:{...Zy,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:a,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(If),p,m;if(u){let g=(0,at.getColorClassName)("background-color",t);p=C({"has-background":g||r,[g]:g}),m={backgroundColor:g?void 0:r}}else r?m={borderColor:r}:t&&(m={borderColor:Vce(c)});let d=(0,at.getColorClassName)("color",o),f=(o||a)&&C("has-text-color",{[d]:d});return(0,Gt.jsx)("figure",{className:p,style:m,children:(0,Gt.jsxs)("blockquote",{className:f,style:d?void 0:{color:a},children:[(0,Gt.jsx)(at.RichText.Content,{value:i,multiline:!0}),!at.RichText.isEmpty(l)&&(0,Gt.jsx)(at.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:a,customTextColor:i,...l}){let s=t?.includes(If),c;if(a&&(s?c={color:{background:a}}:c={border:{color:a}}),i&&c&&(c.color={...c.color,text:i}),!s&&o&&r){let u=Vce(r);if(u)return{value:Nf(e),...l,className:t,style:{border:{color:u}}}}return be({value:Nf(e),className:t,backgroundColor:s?o:void 0,borderColor:s?void 0:o,textAlign:s?"left":void 0,...l,style:c})}},F9e={attributes:Zy,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:a,value:i,citation:l,className:s}=e,c=s?.includes(If),u,p;if(c)u=(0,at.getColorClassName)("background-color",t),u||(p={backgroundColor:r});else if(r)p={borderColor:r};else if(t){let h=(0,Oce.select)(at.store).getSettings().colors??[];p={borderColor:(0,at.getColorObjectByAttributeValues)(h,t).color}}let m=(0,at.getColorClassName)("color",o),d=o||a?C("has-text-color",{[m]:m}):void 0;return(0,Gt.jsx)("figure",{className:u,style:p,children:(0,Gt.jsxs)("blockquote",{className:d,style:m?void 0:{color:a},children:[(0,Gt.jsx)(at.RichText.Content,{value:i,multiline:!0}),!at.RichText.isEmpty(l)&&(0,Gt.jsx)(at.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:a,...i}){let l=t?.includes(If),s={};return o&&(l?s={color:{background:o}}:s={border:{color:o}}),a&&s&&(s.color={...s.color,text:a}),be({value:Nf(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},H9e={attributes:{...Zy},save({attributes:e}){let{value:t,citation:r}=e;return(0,Gt.jsxs)("blockquote",{children:[(0,Gt.jsx)(at.RichText.Content,{value:t,multiline:!0}),!at.RichText.isEmpty(r)&&(0,Gt.jsx)(at.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:Nf(e),...t}}},j9e={attributes:{...Zy,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:r,align:o}=e;return(0,Gt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Gt.jsx)(at.RichText.Content,{value:t,multiline:!0}),!at.RichText.isEmpty(r)&&(0,Gt.jsx)(at.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:Nf(e),...t}}},Fce=[M9e,z9e,V9e,O9e,F9e,H9e,j9e];var Ky=n(N(),1),w0=n(P(),1),H6=n($(),1);var Hce="figure";var jce="blockquote";var Fu=n(y(),1);function U9e(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:a}=e;wt(e);let{citation:i,value:l}=t,s=(0,w0.useBlockProps)(),c=!w0.RichText.isEmpty(i)||o;return(0,Fu.jsx)(Fu.Fragment,{children:(0,Fu.jsx)(Hce,{...s,children:(0,Fu.jsxs)(jce,{children:[(0,Fu.jsx)(w0.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>r({value:u}),"aria-label":(0,Ky.__)("Pullquote text"),placeholder:(0,Ky.__)("Add quote")}),c&&(0,Fu.jsx)(w0.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,Ky.__)("Pullquote citation text"),placeholder:(0,Ky.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:a?()=>a((0,H6.createBlock)((0,H6.getDefaultBlockName)())):void 0})]})})})}var Uce=U9e;var j6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"};var C0=n(P(),1),S0=n(y(),1);function Gce({attributes:e}){let{citation:t,value:r}=e,o=!C0.RichText.isEmpty(t);return(0,S0.jsx)("figure",{...C0.useBlockProps.save(),children:(0,S0.jsxs)("blockquote",{children:[(0,S0.jsx)(C0.RichText.Content,{tagName:"p",value:r}),o&&(0,S0.jsx)(C0.RichText.Content,{tagName:"cite",value:t})]})})}var Hu=n($(),1),T0=n(es(),1),W9e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Hu.createBlock)("core/pullquote",{value:(0,T0.toHTMLString)({value:(0,T0.join)(e.map(({content:t})=>(0,T0.create)({html:t})),`
`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Hu.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let r=[];return e&&r.push((0,Hu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,Hu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,Hu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Hu.createBlock)("core/heading",{content:t});let r=(0,Hu.createBlock)("core/heading",{content:e});return t?[r,(0,Hu.createBlock)("core/heading",{content:t})]:r}}]},Wce=W9e;var{fieldsKey:$9e,formKey:q9e}=j($ce.privateApis),{name:qce}=j6,U6={icon:YB,example:{attributes:{value:(0,Yy.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Yy.__)("Matt Mullenweg")}},transforms:Wce,edit:Uce,save:Gce,deprecated:Fce};window.__experimentalContentOnlyInspectorFields&&(U6[$9e]=[{id:"value",label:(0,Yy.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,Yy.__)("Citation"),type:"text",Edit:"rich-text"}],U6[q9e]={fields:["value","citation"]});var Z9e=()=>R({name:qce,metadata:j6,settings:U6});var yz={};K(yz,{init:()=>SPe,metadata:()=>G6,name:()=>wpe,settings:()=>Cpe});var G6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[],excludeCurrent:null}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug","postType"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"};var spe=n(F(),1),cpe=n(H(),1),upe=n(P(),1);var oT=n(F(),1),ope=n(ve(),1),r2=n(H(),1),Nl=n(P(),1),npe=n(N(),1),ape=n(re(),1);var nue=n(O(),1),Z6=n(N(),1);var Ac=n(F(),1),Lf=n(H(),1),Qy=n(re(),1),W6=n(P(),1),Zce=n(Jo(),1),Df=n(N(),1),ju=n($(),1),Xy=e=>{let t=e?.reduce((r,o)=>{let{mapById:a,mapByName:i,names:l}=r;return a[o.id]=o,i[o.name]=o,l.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Y9e=(e,t)=>{let r=t.split("."),o=e;return r.forEach(a=>{o=o?.[a]}),o},oz=(e,t)=>(e||[]).map(r=>({...r,name:(0,Zce.decodeEntities)(Y9e(r,t))})),Kce=()=>{let e=(0,Ac.useSelect)(a=>{let{getPostTypes:i}=a(Qy.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Lf.useMemo)(()=>{if(e?.length)return e.reduce((a,i)=>(a[i.slug]=i.taxonomies,a),{})},[e]),r=(0,Lf.useMemo)(()=>(e||[]).map(({labels:a,slug:i})=>({label:a.singular_name,value:i})),[e]),o=(0,Lf.useMemo)(()=>e?.length?e.reduce((a,i)=>(a[i.slug]=i.supports?.["post-formats"]||!1,a),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},$6=e=>{let t=(0,Ac.useSelect)(r=>{let{getTaxonomies:o,getPostType:a}=r(Qy.store);return a(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,Lf.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Yce(e){return(0,Ac.useSelect)(t=>{let r=t(Qy.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function Qce(e){let t=(0,Ac.useSelect)(r=>!!r(Qy.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Lf.useMemo)(()=>{let r=[{label:(0,Df.__)("Newest to oldest"),value:"date/desc"},{label:(0,Df.__)("Oldest to newest"),value:"date/asc"},{label:(0,Df.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Df.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Df.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Df.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function Xce(e){return(0,Ac.useSelect)(t=>t(ju.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function ri(e,t){return e?e.includes(t):!0}var Jce=(e,t)=>{let{query:{postType:r,inherit:o},namespace:a}=t,i=e.map(c=>(0,ju.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:o},a&&(c.attributes.namespace=a),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function eue(e,t){return(0,Ac.useSelect)(r=>{let o=r(ju.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:a,getPatternsByBlockTypes:i}=r(W6.store),l=a(e);return i(`core/query/${o}`,l).length>0?`core/query/${o}`:"core/query"},[e,t])}function tue(e){let{activeVariationName:t,blockVariations:r}=(0,Ac.useSelect)(a=>{let{getActiveBlockVariation:i,getBlockVariations:l}=a(ju.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Lf.useMemo)(()=>{let a=l=>!l.attributes?.namespace;if(!t)return r.filter(a);let i=r.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:r.filter(a)},[t,r])}var rue=(e,t)=>(0,Ac.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:a}=r(W6.store),i=o(e);return a(t,i)},[t,e]),q6=e=>(0,Ac.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(W6.store);return r(e).some(a=>{let i=o(a),l=Object.is((0,ju.getBlockSupport)(i,"interactivity"),!0),s=(0,ju.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function oue(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,o=["404","blank","single","page","custom"],a=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=a),t=o.includes(r),{isSingular:t,templateType:r}}var Jy=n(y(),1);function aue({enhancedPagination:e,setAttributes:t,clientId:r}){let o=q6(r),a=(0,Z6.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o&&(a=(0,Z6.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,Jy.jsx)(Jy.Fragment,{children:(0,Jy.jsx)(nue.ToggleControl,{label:(0,Z6.__)("Reload full page"),help:a,checked:!e,disabled:o,onChange:i=>{t({enhancedPagination:!i})}})})}var ft=n(O(),1),cz=n(F(),1),uz=n(re(),1),zt=n(N(),1),Zue=n(ve(),1),Q6=n(H(),1);var iue=n(O(),1),P0=n(N(),1),lue=n(y(),1),Q9e=[{label:(0,P0.__)("Newest to oldest"),value:"date/desc"},{label:(0,P0.__)("Oldest to newest"),value:"date/asc"},{label:(0,P0.__)("A \u2192 Z"),value:"title/asc"},{label:(0,P0.__)("Z \u2192 A"),value:"title/desc"}];function X9e({order:e,orderBy:t,orderByOptions:r=Q9e,onChange:o}){return(0,lue.jsx)(iue.SelectControl,{label:(0,P0.__)("Order by"),value:`${t}/${e}`,options:r,onChange:a=>{let[i,l]=a.split("/");o({order:l,orderBy:i})}})}var sue=X9e;var cue=n(N(),1),uue=n(O(),1),pue=n(F(),1),mue=n(re(),1);var due=n(y(),1),J9e={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function ePe({value:e,onChange:t}){let r=(0,pue.useSelect)(c=>{let{getUsers:u}=c(mue.store);return u(J9e)},[]);if(!r)return null;let o=Xy(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let p=o.mapById[u];return p&&c.push({id:u,value:p.name}),c},[]),l=(c,u)=>{let p=u?.id||c[u]?.id;if(p)return p},s=c=>{let u=Array.from(c.reduce((p,m)=>{let d=l(o.mapByName,m);return d&&p.add(d),p},new Set));t({author:u.join(",")})};return(0,due.jsx)(uue.FormTokenField,{label:(0,cue.__)("Authors"),value:i,suggestions:o.names,onChange:s,help:""})}var fue=ePe;var gue=n(N(),1),vue=n(O(),1),nz=n(F(),1),az=n(re(),1),Uu=n(H(),1),bue=n(ve(),1);var yue=n(y(),1),Rf=[],hue={order:"asc",_fields:"id,title",context:"view"};function tPe({parents:e,postType:t,onChange:r}){let[o,a]=(0,Uu.useState)(""),[i,l]=(0,Uu.useState)(Rf),[s,c]=(0,Uu.useState)(Rf),u=(0,bue.useDebounce)(a,250),{searchResults:p,searchHasResolved:m}=(0,nz.useSelect)(v=>{if(!o)return{searchResults:Rf,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=v(az.store),k=["postType",t,{...hue,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:b(...k),searchHasResolved:_("getEntityRecords",k)}},[o,t,e]),d=(0,nz.useSelect)(v=>{if(!e?.length)return Rf;let{getEntityRecords:b}=v(az.store);return b("postType",t,{...hue,include:e,per_page:e.length})},[e,t]);(0,Uu.useEffect)(()=>{if(e?.length||l(Rf),!d?.length)return;let v=Xy(oz(d,"title.rendered")),b=e.reduce((_,k)=>{let x=v.mapById[k];return x&&_.push({id:k,value:x.name}),_},[]);l(b)},[e,d]);let f=(0,Uu.useMemo)(()=>p?.length?Xy(oz(p,"title.rendered")):Rf,[p]);(0,Uu.useEffect)(()=>{m&&c(f.names)},[f.names,m]);let h=(v,b)=>{let _=b?.id||v?.[b]?.id;if(_)return _},g=v=>{let b=Array.from(v.reduce((_,k)=>{let x=h(f.mapByName,k);return x&&_.add(x),_},new Set));c(Rf),r({parents:b})};return(0,yue.jsx)(vue.FormTokenField,{label:(0,gue.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:g,help:""})}var _ue=tPe;var K6=n(O(),1),iz=n(F(),1),lz=n(re(),1),Gu=n(H(),1),wue=n(ve(),1),Cue=n(Jo(),1),Y6=n(N(),1);var xm=n(y(),1),E0=[],xue={order:"asc",_fields:"id,name",context:"view"},rPe=(e,t)=>{let r=t?.id||e?.find(a=>a.name===t)?.id;if(r)return r;let o=t.toLocaleLowerCase();return e?.find(a=>a.name.toLocaleLowerCase()===o)?.id};function Sue({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,a=$6(r);return a?.length?(0,xm.jsx)(K6.__experimentalVStack,{spacing:4,children:a.map(i=>{let l=o?.include?.[i.slug]||[],s=o?.exclude?.[i.slug]||[],c=(u,p)=>{let m={...o?.[p],[i.slug]:u};u.length||delete m[i.slug];let d={...o,[p]:Object.keys(m).length?m:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,xm.jsxs)(Gu.Fragment,{children:[(0,xm.jsx)(kue,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,xm.jsx)(kue,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,Y6.sprintf)((0,Y6.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function kue({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:a}){let[i,l]=(0,Gu.useState)(""),[s,c]=(0,Gu.useState)(E0),[u,p]=(0,Gu.useState)(E0),m=(0,wue.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,iz.useSelect)(v=>{if(!i)return{searchResults:E0,searchHasResolved:!0};let{getEntityRecords:b,hasFinishedResolution:_}=v(lz.store),k=[...t,...r],x=["taxonomy",e.slug,{...xue,search:i,orderby:"name",exclude:k,per_page:20}];return{searchResults:b(...x),searchHasResolved:_("getEntityRecords",x)}},[i,e.slug,t,r]),h=(0,iz.useSelect)(v=>{if(!t?.length)return E0;let{getEntityRecords:b}=v(lz.store);return b("taxonomy",e.slug,{...xue,include:t,per_page:t.length})},[e.slug,t]);return(0,Gu.useEffect)(()=>{if(t?.length||c(E0),!h?.length)return;let v=t.reduce((b,_)=>{let k=h.find(x=>x.id===_);return k&&b.push({id:_,value:k.name}),b},[]);c(v)},[t,h]),(0,Gu.useEffect)(()=>{f&&p(d.map(v=>v.name))},[d,f]),(0,xm.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,xm.jsx)(K6.FormTokenField,{label:a,value:s,onInputChange:m,suggestions:u,displayTransform:Cue.decodeEntities,onChange:v=>{let b=new Set;for(let _ of v){let k=rPe(d,_);k&&b.add(k)}p(E0),o(Array.from(b))},help:""})})}var Tue=n(O(),1),Pue=n(F(),1),Eue=n(re(),1),Il=n(N(),1),Bue=n(y(),1),oPe=[{value:"aside",label:(0,Il.__)("Aside")},{value:"audio",label:(0,Il.__)("Audio")},{value:"chat",label:(0,Il.__)("Chat")},{value:"gallery",label:(0,Il.__)("Gallery")},{value:"image",label:(0,Il.__)("Image")},{value:"link",label:(0,Il.__)("Link")},{value:"quote",label:(0,Il.__)("Quote")},{value:"standard",label:(0,Il.__)("Standard")},{value:"status",label:(0,Il.__)("Status")},{value:"video",label:(0,Il.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function nPe(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function Iue({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,Pue.useSelect)(s=>({supportedFormats:s(Eue.store).getThemeSupports().formats}),[]),a=oPe.filter(s=>o.includes(s.value)),i=r.map(s=>a.find(c=>c.value===s)?.label).filter(Boolean),l=a.filter(s=>!r.includes(s.value)).map(s=>s.label);return(0,Bue.jsx)(Tue.FormTokenField,{label:(0,Il.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:nPe(s,a)})},help:"",__experimentalExpandOnFocus:!0})}var Nue=n(O(),1),Af=n(N(),1),Due=n(y(),1),aPe=[{label:(0,Af.__)("Include"),value:""},{label:(0,Af.__)("Ignore"),value:"ignore"},{label:(0,Af.__)("Exclude"),value:"exclude"},{label:(0,Af.__)("Only"),value:"only"}];function Lue({value:e,onChange:t}){return(0,Due.jsx)(Nue.SelectControl,{label:(0,Af.__)("Sticky posts"),options:aPe,value:e,onChange:t,help:(0,Af.__)("Sticky posts always appear first, regardless of their publish date.")})}var Mue=n(O(),1),zue=n(N(),1),Vue=n(y(),1),Rue=1,Aue=100,iPe=({perPage:e,offset:t=0,onChange:r})=>(0,Vue.jsx)(Mue.RangeControl,{label:(0,zue.__)("Items per page"),min:Rue,max:Aue,onChange:o=>{isNaN(o)||o<Rue||o>Aue||r({perPage:o,offset:t})},value:parseInt(e,10)}),Oue=iPe;var Hue=n(O(),1),jue=n(N(),1),Uue=n(y(),1),Fue=0,lPe=100,sPe=({offset:e=0,onChange:t})=>(0,Uue.jsx)(Hue.__experimentalNumberControl,{label:(0,jue.__)("Offset"),value:e,min:Fue,onChange:r=>{isNaN(r)||r<Fue||r>lPe||t({offset:r})}}),Gue=sPe;var Wue=n(O(),1),sz=n(N(),1),$ue=n(y(),1),cPe=({pages:e,onChange:t})=>(0,$ue.jsx)(Wue.__experimentalNumberControl,{label:(0,sz.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,sz.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),que=cPe;var Ze=n(y(),1);function Kue(e){let{attributes:t,setQuery:r,isSingular:o,shouldExcludeCurrentPost:a}=e,{query:i}=t,{order:l,orderBy:s,author:c,pages:u,postType:p,perPage:m,offset:d,sticky:f,inherit:h,taxQuery:g,parents:v,format:b,excludeCurrent:_}=i,k=Xce(t),x=p==="post",{postTypesTaxonomiesMap:w,postTypesSelectOptions:S,postTypeFormatSupportMap:T}=Kce(),I=$6(p),D=Yce(p),L=X=>{let Ce={postType:X},pe=w[X];if(pe?.length&&g){let he=No=>Object.entries(No||{}).reduce((Do,[Lo,bo])=>(pe.includes(Lo)&&(Do[Lo]=bo),Do),{}),ze={},Ct=he(g.include);Object.keys(Ct).length&&(ze.include=Ct);let Me=he(g.exclude);Object.keys(Me).length&&(ze.exclude=Me),Ce.taxQuery=Object.keys(ze).length?ze:void 0}X!=="post"&&(Ce.sticky=""),Ce.parents=[],T[X]||(Ce.format=[]),r(Ce)},[E,B]=(0,Q6.useState)(i.search),A=(0,Q6.useMemo)(()=>(0,Zue.debounce)(X=>{r({search:X})},250),[r]),z=Qce(p),U=ri(k,"inherit"),q=!h&&ri(k,"postType"),G=(0,zt.__)("Post type"),W=(0,zt.__)("Select the type of content to display: posts, pages, or custom post types."),V=!h&&ri(k,"order"),Q=!h&&x&&ri(k,"sticky"),Y=U||q||V||Q,ee=!!I?.length&&ri(k,"taxQuery"),te=ri(k,"author"),oe=ri(k,"search"),J=ri(k,"parents")&&D,ce=T[p],ie=(0,cz.useSelect)(X=>{if(!ce||!ri(k,"format"))return!1;let Ce=X(uz.store).getThemeSupports();return Ce.formats&&Ce.formats.length>0&&Ce.formats.some(pe=>pe!=="standard")},[k,ce]),we=a&&ri(k,"excludeCurrent"),le=(0,cz.useSelect)(X=>X(uz.store).getPostType(p)?.labels.singular_name,[p]),de=ee||te||oe||J||ie||we,ge=Z(),ne=ri(k,"postCount"),me=ri(k,"offset"),se=ri(k,"pages"),Ne=ne||me||se,De=o&&h;return(0,Ze.jsxs)(Ze.Fragment,{children:[Y&&(0,Ze.jsxs)(ft.__experimentalToolsPanel,{label:(0,zt.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:ge,children:[U&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!h,label:(0,zt.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Ze.jsxs)(ft.__experimentalVStack,{spacing:4,children:[(0,Ze.jsxs)(ft.__experimentalToggleGroupControl,{label:(0,zt.__)("Query type"),isBlock:!0,onChange:X=>{r({inherit:X==="default"})},help:h?(0,zt.__)("Display a list of posts or custom post types based on the current template."):(0,zt.__)("Display a list of posts or custom post types based on specific criteria."),value:h?"default":"custom",children:[(0,Ze.jsx)(ft.__experimentalToggleGroupControlOption,{value:"default",label:(0,zt.__)("Default")}),(0,Ze.jsx)(ft.__experimentalToggleGroupControlOption,{value:"custom",label:(0,zt.__)("Custom")})]}),De&&(0,Ze.jsx)(ft.Notice,{status:"warning",isDismissible:!1,children:(0,zt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),q&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>p!=="post",label:G,onDeselect:()=>L("post"),isShownByDefault:!0,children:S.length>2?(0,Ze.jsx)(ft.SelectControl,{options:S,value:p,label:G,onChange:L,help:W}):(0,Ze.jsx)(ft.__experimentalToggleGroupControl,{isBlock:!0,value:p,label:G,onChange:L,help:W,children:S.map(X=>(0,Ze.jsx)(ft.__experimentalToggleGroupControlOption,{value:X.value,label:X.label},X.value))})}),V&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>l!=="desc"||s!=="date",label:(0,zt.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Ze.jsx)(sue,{order:l,orderBy:s,orderByOptions:z,onChange:r})}),Q&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,zt.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Ze.jsx)(Lue,{value:f,onChange:X=>r({sticky:X})})})]}),!h&&Ne&&(0,Ze.jsxs)(ft.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,zt.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:ge,children:[(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Items per page"),hasValue:()=>m>0,children:(0,Ze.jsx)(Oue,{perPage:m,offset:d,onChange:r})}),(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Offset"),hasValue:()=>d>0,onDeselect:()=>r({offset:0}),children:(0,Ze.jsx)(Gue,{offset:d,onChange:r})}),(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Max pages to show"),hasValue:()=>u>0,onDeselect:()=>r({pages:0}),children:(0,Ze.jsx)(que,{pages:u,onChange:r})})]}),!h&&de&&(0,Ze.jsxs)(ft.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,zt.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[],excludeCurrent:null}),B("")},dropdownMenuProps:ge,children:[ee&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some(X=>Object.values(X||{}).some(Ce=>!!Ce?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Ze.jsx)(Sue,{onChange:r,query:i})}),te&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,zt.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Ze.jsx)(fue,{value:c,onChange:r})}),oe&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!E,label:(0,zt.__)("Keyword"),onDeselect:()=>{r({search:""}),B("")},children:(0,Ze.jsx)(ft.TextControl,{label:(0,zt.__)("Keyword"),value:E,onChange:X=>{A(X),B(X)}})}),J&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!v?.length,label:(0,zt.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Ze.jsx)(_ue,{parents:v,postType:p,onChange:r})}),ie&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,zt.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Ze.jsx)(Iue,{onChange:r,query:i})}),we&&(0,Ze.jsx)(ft.__experimentalToolsPanelItem,{label:(0,zt.__)("Exclude"),hasValue:()=>_!==null,onDeselect:()=>r({excludeCurrent:null}),children:(0,Ze.jsx)(ft.ToggleControl,{label:(0,zt.__)("Exclude current"),help:(0,zt.sprintf)((0,zt.__)("Exclude the current %s from the query."),le),checked:!!_,onChange:X=>{r({excludeCurrent:!!X})}})})]})]})}var I0=n(O(),1),e2=n(N(),1),X6=n(H(),1),Que=n(F(),1),Xue=n(P(),1);var B0=n(y(),1),Yue="wp-block-query-enhanced-pagination-modal__description";function Jue({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[o,a]=(0,X6.useState)(!1),i=q6(e),{__unstableMarkNextChangeAsNotPersistent:l}=(0,Que.useDispatch)(Xue.store);(0,X6.useEffect)(()=>{t&&i&&(l(),r({enhancedPagination:!1}),a(!0))},[t,i,r,l]);let s=()=>{a(!1)},c=(0,e2.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,e2.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return o&&(0,B0.jsx)(I0.Modal,{title:(0,e2.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:Yue},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:s,children:(0,B0.jsxs)(I0.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,B0.jsx)("span",{id:Yue,children:c}),(0,B0.jsx)(I0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:s,children:(0,e2.__)("OK")})]})})}var L0=n(O(),1),mz=n(N(),1),rpe=n(F(),1),tT=n(P(),1);var N0=n(H(),1),epe=n(F(),1),eT=n(O(),1),D0=n(P(),1),J6=n(N(),1);var Wu=n(y(),1);function tpe({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,Wu.jsx)(eT.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,J6.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,Wu.jsx)(pz,{clientId:e,attributes:t})})}function t2(e,t){let r=eue(e,t),o=rue(e,r);return(0,N0.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function pz({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[a,i]=(0,N0.useState)(""),{replaceBlock:l,selectBlock:s}=(0,epe.useDispatch)(D0.store),c=t2(e,t),u=(0,N0.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),p=(0,N0.useMemo)(()=>Gb(c,a),[c,a]),m=(d,f)=>{let{newBlocks:h,queryClientIds:g}=Jce(f,t);l(e,h),g[0]&&s(g[0])};return(0,Wu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,Wu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,Wu.jsx)(eT.SearchControl,{onChange:i,value:a,label:(0,J6.__)("Search"),placeholder:(0,J6.__)("Search")})}),(0,Wu.jsx)(D0.BlockContextProvider,{value:u,children:(0,Wu.jsx)(D0.__experimentalBlockPatternsList,{blockPatterns:p,onClickPattern:m,showTitlesAsTooltip:r})})]})}var Mf=n(y(),1);function uPe({clientId:e,attributes:t,hasInnerBlocks:r}){if(!t2(e,t).length)return null;let a=r?(0,mz.__)("Change design"):(0,mz.__)("Choose pattern");return(0,Mf.jsx)(tT.BlockControls,{group:"other",children:(0,Mf.jsx)(L0.__experimentalDropdownContentWrapper,{children:(0,Mf.jsx)(L0.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Mf.jsx)(L0.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:a}),renderContent:()=>(0,Mf.jsx)(pz,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function rT(e){return(0,rpe.useSelect)(r=>{let{isLockedBlock:o}=j(r(tT.store));return o(e.clientId)},[e.clientId])?null:(0,Mf.jsx)(uPe,{...e})}var Qi=n(y(),1),{HTMLElementControl:pPe}=j(Nl.privateApis),mPe=3,dPe=[["core/post-template"]];function dz({attributes:e,setAttributes:t,clientId:r,context:o,name:a,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:p}={}}=e,{templateSlug:m,postType:d}=o,{isSingular:f,templateType:h}=oue(m),{__unstableMarkNextChangeAsNotPersistent:g}=(0,oT.useDispatch)(Nl.store),v=(0,ope.useInstanceId)(dz),b=(0,Nl.useBlockProps)(),_=(0,Nl.useInnerBlocksProps)(b,{template:dPe}),{postsPerPage:k}=(0,oT.useSelect)(S=>{let{getSettings:T}=S(Nl.store),{getEntityRecord:I,getEntityRecordEdits:D,canUser:L}=S(ape.store),E=L("read",{kind:"root",name:"site"})?+I("root","site")?.posts_per_page:+T().postsPerPage;return{postsPerPage:+D("root","site")?.posts_per_page||E||mPe}},[]),x=f&&!p&&(s.postType===d||s.postType===h),w=(0,r2.useCallback)(S=>t(T=>({query:{...T.query,...S}})),[t]);return(0,r2.useEffect)(()=>{let S={};(p&&s.perPage!==k||!s.perPage&&k)&&(S.perPage=k),!x&&s.excludeCurrent!==null&&(S.excludeCurrent=null),Object.keys(S).length&&(g(),w(S))},[s.perPage,s.excludeCurrent,p,k,x,g,w]),(0,r2.useEffect)(()=>{Number.isFinite(l)||(g(),t({queryId:v}))},[l,v,g,t]),(0,Qi.jsxs)(Qi.Fragment,{children:[i&&(0,Qi.jsx)(rT,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Qi.jsx)(Jue,{attributes:e,setAttributes:t,clientId:r}),(0,Qi.jsx)(Nl.InspectorControls,{children:(0,Qi.jsx)(Kue,{name:a,attributes:e,setQuery:w,setAttributes:t,clientId:r,isSingular:f,shouldExcludeCurrentPost:x})}),(0,Qi.jsxs)(Nl.InspectorControls,{group:"advanced",children:[(0,Qi.jsx)(pPe,{tagName:u,onChange:S=>t({tagName:S}),clientId:r,options:[{label:(0,npe.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Qi.jsx)(aue,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Qi.jsx)(u,{..._})]})}var aT=n(F(),1),iT=n($(),1),fz=n(H(),1),zf=n(P(),1),o2=n(O(),1),nT=n(N(),1),ipe=n(ve(),1);var Mc=n(y(),1);function lpe({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:a}){let[i,l]=(0,fz.useState)(!1),[s,c]=(0,fz.useState)(0),u=(0,ipe.useResizeObserver)(([_])=>{c(_.contentRect.width)}),m=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,aT.useSelect)(_=>{let{getActiveBlockVariation:k,getBlockType:x}=_(iT.store);return{blockType:x(r),activeBlockVariation:k(r,e)}},[r,e]),h=!!t2(t,e).length,g=f?.icon?.src||f?.icon||d?.icon?.src,v=f?.title||d?.title,b=(0,zf.useBlockProps)({ref:u});return i?(0,Mc.jsx)(fPe,{clientId:t,attributes:e,icon:g,label:v}):(0,Mc.jsxs)("div",{...b,children:[a&&(0,Mc.jsx)(rT,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Mc.jsxs)(o2.Placeholder,{className:"block-editor-media-placeholder",icon:!m&&g,label:!m&&v,instructions:!m&&(0,nT.__)("Choose a pattern for the query loop or start blank."),withIllustration:m,children:[!!h&&!m&&(0,Mc.jsx)(o2.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,nT.__)("Choose")}),!m&&(0,Mc.jsx)(o2.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,nT.__)("Start blank")})]})]})}function fPe({clientId:e,attributes:t,icon:r,label:o}){let a=tue(t),{replaceInnerBlocks:i}=(0,aT.useDispatch)(zf.store),l=(0,zf.useBlockProps)();return(0,Mc.jsx)("div",{...l,children:(0,Mc.jsx)(zf.__experimentalBlockVariationPicker,{icon:r,label:o,variations:a,onSelect:s=>{s.innerBlocks&&i(e,(0,iT.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var Vf=n(y(),1),hPe=e=>{let{clientId:t,attributes:r}=e,[o,a]=(0,cpe.useState)(!1),l=(0,spe.useSelect)(s=>!!s(upe.store).getBlocks(t).length,[t])?dz:lpe;return(0,Vf.jsxs)(Vf.Fragment,{children:[(0,Vf.jsx)(l,{...e,openPatternSelectionModal:()=>a(!0)}),o&&(0,Vf.jsx)(tpe,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:a})]})},ppe=hPe;var lT=n(P(),1),mpe=n(y(),1);function dpe({attributes:{tagName:e="div"}}){let t=lT.useBlockProps.save(),r=lT.useInnerBlocksProps.save(t);return(0,mpe.jsx)(e,{...r})}var n2=n(N(),1);var zc=n(O(),1),$u=n(y(),1),fpe=(0,$u.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(zc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),hpe=(0,$u.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(zc.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),gpe=(0,$u.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(zc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),vpe=(0,$u.jsx)(zc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,$u.jsx)(zc.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var hz=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],gPe=[{name:"title-date",title:(0,n2.__)("Title & Date"),icon:fpe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],hz]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,n2.__)("Title & Excerpt"),icon:hpe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,n2.__)("Title, Date, & Excerpt"),icon:gpe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],hz,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,n2.__)("Image, Date, & Title"),icon:vpe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],hz,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],bpe=gPe;var sT=n($(),1),Qn=n(P(),1);var Of=n(y(),1),{cleanEmptyObject:gz}=j(Qn.privateApis),vz=e=>{let{query:t}=e,{categoryIds:r,tagIds:o,taxQuery:a,...i}=t;return(r?.length||o?.length)&&(i.taxQuery={include:{category:r?.length?r:void 0,post_tag:o?.length?o:void 0}}),Object.keys(a||{}).length&&(i.taxQuery={include:a}),{...e,query:i}},ype=(e,t)=>{let{style:r,backgroundColor:o,gradient:a,textColor:i,...l}=e;if(!(o||a||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=gz({...r,color:void 0,elements:{...r.elements,link:void 0}})),vPe(t)){let u=t[0],m=r?.color||r?.elements?.link||u.attributes.style?gz({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,sT.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:a,textColor:i,style:m},u.innerBlocks);return[l,[d]]}let c=(0,sT.createBlock)("core/group",{backgroundColor:o,gradient:a,textColor:i,style:gz({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},vPe=(e=[])=>e.length===1&&e[0].name==="core/group",bz=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:o=null,...a}=t;return r||o?{...e,layout:{...a,contentSize:o,type:"constrained"}}:e},_pe=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=_pe(r.innerBlocks));return t},xpe=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=xpe(r.innerBlocks,t))}),e),R0=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let a=_pe(t);if(!a)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,sT.createBlock)("core/post-template",{...a.attributes,layout:{type:s,...l&&{columnCount:l}}},a.innerBlocks);return[o,xpe(t,c)]},bPe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){let r=vz(e),{layout:o,...a}=r,i={...a,displayLayout:r.layout};return R0(i,t)},save(){return(0,Of.jsx)(Qn.InnerBlocks.Content,{})}},yPe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){let r=vz(e),[o,a]=ype(r,t),i=bz(o);return R0(i,a)},save({attributes:{tagName:e="div"}}){let t=Qn.useBlockProps.save(),r=Qn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})}},_Pe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){let{style:t,backgroundColor:r,gradient:o,textColor:a}=e;return r||o||a||t?.color||t?.elements?.link},migrate(e,t){let[r,o]=ype(e,t),a=bz(r);return R0(a,o)},save({attributes:{tagName:e="div"}}){let t=Qn.useBlockProps.save(),r=Qn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})}},xPe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){let t=Qn.useBlockProps.save(),r=Qn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=bz(e);return R0(r,t)}},kPe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){let t=Qn.useBlockProps.save(),r=Qn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:R0},wPe={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0,contentRole:!0},save({attributes:{tagName:e="div"}}){let t=Qn.useBlockProps.save(),r=Qn.useInnerBlocksProps.save(t);return(0,Of.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=vz(e);return R0(r,t)}},CPe=[wPe,kPe,xPe,_Pe,yPe,bPe],kpe=CPe;var{name:wpe}=G6,Cpe={icon:rd,edit:ppe,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1,excludeCurrent:null}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:dpe,variations:bpe,deprecated:kpe},SPe=()=>R({name:wpe,metadata:G6,settings:Cpe});var _z={};K(_z,{init:()=>EPe,metadata:()=>cT,name:()=>Dpe,settings:()=>Lpe});var Npe=n(N(),1);var cT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No Results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",ancestor:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var uT=n(P(),1),Spe=n(N(),1),Tpe=n(y(),1),PPe=[["core/paragraph",{placeholder:(0,Spe.__)("Add text or blocks that will display when a query returns no results.")}]];function Ppe(){let e=(0,uT.useBlockProps)(),t=(0,uT.useInnerBlocksProps)(e,{template:PPe});return(0,Tpe.jsx)("div",{...t})}var Epe=n(P(),1),Bpe=n(y(),1);function Ipe(){return(0,Bpe.jsx)(Epe.InnerBlocks.Content,{})}var{name:Dpe}=cT,Lpe={icon:rd,edit:Ppe,save:Ipe,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Npe.__)("No posts were found.")}}]}},EPe=()=>R({name:Dpe,metadata:cT,settings:Lpe});var wz={};K(wz,{init:()=>DPe,metadata:()=>pT,name:()=>Gpe,settings:()=>Wpe});var pT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"};var mT=n(N(),1),qu=n(P(),1),dT=n(F(),1),a2=n(O(),1),Vpe=n(H(),1);var Ff=n(N(),1),A0=n(O(),1),M0=n(y(),1);function Rpe({value:e,onChange:t}){return(0,M0.jsxs)(A0.__experimentalToggleGroupControl,{label:(0,Ff.__)("Arrow"),value:e,onChange:t,help:(0,Ff.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,M0.jsx)(A0.__experimentalToggleGroupControlOption,{value:"none",label:(0,Ff._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,M0.jsx)(A0.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Ff._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,M0.jsx)(A0.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Ff._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var xz=n(N(),1),Ape=n(O(),1),Mpe=n(y(),1);function zpe({value:e,onChange:t}){return(0,Mpe.jsx)(Ape.ToggleControl,{label:(0,xz.__)("Show label text"),help:(0,xz.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Dl=n(y(),1),IPe=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function Ope({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let a=(0,dT.useSelect)(u=>{let{getBlocks:p}=u(qu.store);return p(o)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,dT.useDispatch)(qu.store),l=Z(),s=(0,qu.useBlockProps)(),c=(0,qu.useInnerBlocksProps)(s,{template:IPe});return(0,Vpe.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,Dl.jsxs)(Dl.Fragment,{children:[a&&(0,Dl.jsx)(qu.InspectorControls,{children:(0,Dl.jsxs)(a2.__experimentalToolsPanel,{label:(0,mT.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,Dl.jsx)(a2.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,mT.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Dl.jsx)(Rpe,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,Dl.jsx)(a2.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,mT.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,Dl.jsx)(zpe,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,Dl.jsx)("nav",{...c})]})}var Fpe=n(P(),1),Hpe=n(y(),1);function jpe(){return(0,Hpe.jsx)(Fpe.InnerBlocks.Content,{})}var fT=n(P(),1),kz=n(y(),1),NPe=[{save(){return(0,kz.jsx)("div",{...fT.useBlockProps.save(),children:(0,kz.jsx)(fT.InnerBlocks.Content,{})})}}],Upe=NPe;var{name:Gpe}=pT,Wpe={icon:kv,edit:Ope,save:jpe,deprecated:Upe},DPe=()=>R({name:Gpe,metadata:pT,settings:Wpe});var Sz={};K(Sz,{init:()=>APe,metadata:()=>hT,name:()=>qpe,settings:()=>Zpe});var hT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var Cz=n(N(),1),gT=n(P(),1),i2=n(y(),1),RPe={none:"",arrow:"\u2192",chevron:"\xBB"};function $pe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let a=RPe[r];return(0,i2.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,gT.useBlockProps)(),children:[o&&(0,i2.jsx)(gT.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Cz.__)("Next page link"),placeholder:(0,Cz.__)("Next Page"),value:e,onChange:i=>t({label:i})}),a&&(0,i2.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:a})]})}var{name:qpe}=hT,Zpe={icon:yv,edit:$pe},APe=()=>R({name:qpe,metadata:hT,settings:Zpe});var Tz={};K(Tz,{init:()=>VPe,metadata:()=>vT,name:()=>Ype,settings:()=>Qpe});var vT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"};var s2=n(N(),1),bT=n(P(),1),z0=n(O(),1);var Xi=n(y(),1),l2=(e,t="a",r="")=>(0,Xi.jsx)(t,{className:`page-numbers ${r}`,children:e},e),zPe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(l2(r));t.push(l2(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(l2(e+1+r));return t.push(l2("...","span","dots")),t.push(l2(e*2+3)),(0,Xi.jsx)(Xi.Fragment,{children:t})};function Kpe({attributes:e,setAttributes:t}){let{midSize:r}=e,o=zPe(parseInt(r,10)),a=Z();return(0,Xi.jsxs)(Xi.Fragment,{children:[(0,Xi.jsx)(bT.InspectorControls,{children:(0,Xi.jsx)(z0.__experimentalToolsPanel,{label:(0,s2.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:a,children:(0,Xi.jsx)(z0.__experimentalToolsPanelItem,{label:(0,s2.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,Xi.jsx)(z0.RangeControl,{label:(0,s2.__)("Number of links"),help:(0,s2.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:r,onChange:i=>{t({midSize:parseInt(i,10)})},min:0,max:5,withInputField:!1})})})}),(0,Xi.jsx)("div",{...(0,bT.useBlockProps)(),children:o})]})}var{name:Ype}=vT,Qpe={icon:_v,edit:Kpe,example:{}},VPe=()=>R({name:Ype,metadata:vT,settings:Qpe});var Ez={};K(Ez,{init:()=>HPe,metadata:()=>yT,name:()=>Jpe,settings:()=>eme});var yT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var Pz=n(N(),1),_T=n(P(),1),c2=n(y(),1),FPe={none:"",arrow:"\u2190",chevron:"\xAB"};function Xpe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let a=FPe[r];return(0,c2.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,_T.useBlockProps)(),children:[a&&(0,c2.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:a}),o&&(0,c2.jsx)(_T.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Pz.__)("Previous page link"),placeholder:(0,Pz.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:Jpe}=yT,eme={icon:xv,edit:Xpe},HPe=()=>R({name:Jpe,metadata:yT,settings:eme});var Dz={};K(Dz,{init:()=>$Pe,metadata:()=>xT,name:()=>sme,settings:()=>cme});var xT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},example:{attributes:{type:"search"}},usesContext:["query"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-query-title"};var Ll=n(P(),1),Rl=n(O(),1),rr=n(N(),1);var Bz=n(re(),1),Iz=n(F(),1);function tme(){let e=(0,Iz.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),p=c(),m=u()||(p==="wp_template"?s():null);return m?l(Bz.store).getEditedEntityRecord("postType","wp_template",m)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o,a=!1,i;if(t)t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r;else{let l=e?.match(/^(author)$|^author-(.+)$/);l&&(a=!0,l[2]&&(i=l[2]))}return(0,Iz.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(Bz.store),p,m;if(r&&(p=c(r)?.labels?.singular_name),o){let d=s("taxonomy",r,{slug:o,per_page:1});d&&d[0]&&(m=d[0].name)}if(a&&(p="Author",i)){let d=u({slug:i});d&&d[0]&&(m=d[0].name)}return{archiveTypeLabel:p,archiveNameLabel:m}},[i,a,r,o])}var rme=n(re(),1),Nz=n(F(),1);function ome(e){let t=(0,Nz.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,Nz.useSelect)(r=>{let{getPostType:o}=r(rme.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var It=n(y(),1),UPe=["archive","search","post-type"];function nme(e){wt(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:a,showSearchTerm:i},setAttributes:l,context:{query:s}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=tme(),{postTypeLabel:p}=ome(s?.postType),m=Z(),d=r===0?"p":`h${r}`,f=(0,Ll.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!UPe.includes(t))return(0,It.jsx)("div",{...f,children:(0,It.jsx)(Ll.Warning,{children:(0,rr.__)("Provided type is not supported.")})});let h;if(t==="archive"){let g;c?a?u?g=(0,rr.sprintf)((0,rr._x)("%1$s: %2$s","archive label"),c,u):g=(0,rr.sprintf)((0,rr.__)("%s: Name"),c):u?g=u:g=(0,rr.sprintf)((0,rr.__)("%s name"),c):g=a?(0,rr.__)("Archive type: Name"):(0,rr.__)("Archive title"),h=(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(Ll.InspectorControls,{children:(0,It.jsx)(Rl.__experimentalToolsPanel,{label:(0,rr.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:m,children:(0,It.jsx)(Rl.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,rr.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,It.jsx)(Rl.ToggleControl,{label:(0,rr.__)("Show archive type in title"),onChange:()=>l({showPrefix:!a}),checked:a})})})}),(0,It.jsx)(d,{...f,children:g})]})}if(t==="search"&&(h=(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(Ll.InspectorControls,{children:(0,It.jsx)(Rl.__experimentalToolsPanel,{label:(0,rr.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:m,children:(0,It.jsx)(Rl.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,rr.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,It.jsx)(Rl.ToggleControl,{label:(0,rr.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,It.jsx)(d,{...f,children:i?(0,rr.__)("Search results for: \u201Csearch term\u201D"):(0,rr.__)("Search results")})]})),t==="post-type"){let g;p?a?g=(0,rr.sprintf)((0,rr.__)('Post Type: "%s"'),p):g=p:g=a?(0,rr.__)("Post Type: Name"):(0,rr.__)("Name"),h=(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(Ll.InspectorControls,{children:(0,It.jsx)(Rl.__experimentalToolsPanel,{label:(0,rr.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:m,children:(0,It.jsx)(Rl.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,rr.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,It.jsx)(Rl.ToggleControl,{label:(0,rr.__)("Show post type label"),onChange:()=>l({showPrefix:!a}),checked:a})})})}),(0,It.jsx)(d,{...f,children:g})]})}return(0,It.jsxs)(It.Fragment,{children:[(0,It.jsx)(Ll.BlockControls,{group:"block",children:(0,It.jsx)(Ll.HeadingLevelDropdown,{value:r,options:o,onChange:g=>l({level:g})})}),h]})}var Hf=n(N(),1);var ame=[{isDefault:!0,name:"archive-title",title:(0,Hf.__)("Archive Title"),description:(0,Hf.__)("Display the archive title based on the queried object."),icon:Zl,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Hf.__)("Search Results Title"),description:(0,Hf.__)("Display the search results title based on the queried object."),icon:Zl,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Hf.__)("Post Type Label"),description:(0,Hf.__)("Display the post type label based on the queried object."),icon:Zl,attributes:{type:"post-type"},scope:["inserter"]}];ame.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var ime=ame;var GPe={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},WPe={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},lme=[GPe,WPe];var{name:sme}=xT,cme={icon:Zl,edit:nme,variations:ime,deprecated:lme},$Pe=()=>R({name:sme,metadata:xT,settings:cme});var Az={};K(Az,{init:()=>ZPe,metadata:()=>kT,name:()=>mme,settings:()=>dme});var kT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-total",title:"Query Total",category:"theme",ancestor:["core/query"],description:"Display the total number of results in a query.",textdomain:"default",attributes:{displayType:{type:"string",default:"total-results"}},usesContext:["queryId","query"],supports:{anchor:!0,align:["wide","full"],html:!1,spacing:{margin:!0,padding:!0},color:{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}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var wT=n(P(),1),CT=n(O(),1),V0=n(N(),1);var km=n(O(),1),jf=n(y(),1),Lz=(0,jf.jsx)(km.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jf.jsx)(km.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),Rz=(0,jf.jsx)(km.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jf.jsx)(km.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),ume=(0,jf.jsx)(km.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jf.jsx)(km.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});var Ls=n(y(),1);function pme({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,wT.useBlockProps)(),a=()=>{switch(r){case"total-results":return Lz;case"range-display":return Rz}},i=[{role:"menuitemradio",title:(0,V0.__)("Total results"),isActive:r==="total-results",icon:Lz,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,V0.__)("Range display"),isActive:r==="range-display",icon:Rz,onClick:()=>{t({displayType:"range-display"})}}],l=(0,Ls.jsx)(wT.BlockControls,{children:(0,Ls.jsx)(CT.ToolbarGroup,{children:(0,Ls.jsx)(CT.ToolbarDropdownMenu,{icon:a(),label:(0,V0.__)("Change display type"),controls:i})})});return(0,Ls.jsxs)("div",{...o,children:[l,r==="total-results"?(0,Ls.jsx)(Ls.Fragment,{children:(0,V0.__)("12 results found")}):r==="range-display"?(0,Ls.jsx)(Ls.Fragment,{children:(0,V0.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:mme}=kT,dme={icon:ume,edit:pme},ZPe=()=>R({name:mme,metadata:kT,settings:dme});var zz={};K(zz,{init:()=>aEe,metadata:()=>TT,name:()=>kme,settings:()=>wme});var Mz=n(N(),1);var u2=n($(),1),mo=n(P(),1),yn=n(y(),1),wm=e=>{let{value:t,...r}=e;return[{...r},t?(0,u2.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,u2.createBlock)("core/paragraph",{content:o})):(0,u2.createBlock)("core/paragraph")]},fme=["left","right","center"],Uf=(e,t)=>{let{align:r,...o}=e;return[fme.includes(r)?{...o,textAlign:r}:e,t]},KPe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],YPe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>fme.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,yn.jsxs)("blockquote",{...mo.useBlockProps.save({className:o}),children:[(0,yn.jsx)(mo.InnerBlocks.Content,{}),!mo.RichText.isEmpty(r)&&(0,yn.jsx)(mo.RichText.Content,{tagName:"cite",value:r})]})},migrate:Uf},QPe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){let{align:t,value:r,citation:o}=e,a=C({[`has-text-align-${t}`]:t});return(0,yn.jsxs)("blockquote",{...mo.useBlockProps.save({className:a}),children:[(0,yn.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,yn.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return Uf(...wm(e))}},XPe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate(e){return Uf(...wm(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,yn.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,yn.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,yn.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})}},JPe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(e.style===2){let{style:t,...r}=e;return Uf(...KPe(...wm(r)))}return Uf(...wm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:a}=e;return(0,yn.jsxs)("blockquote",{className:a===2?"is-large":"",style:{textAlign:t||null},children:[(0,yn.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,yn.jsx)(mo.RichText.Content,{tagName:"cite",value:o})]})}},eEe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){let{style:t,...r}=e;return Uf(...wm(r))}return Uf(...wm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:a}=e;return(0,yn.jsxs)("blockquote",{className:`blocks-quote-style-${a}`,style:{textAlign:t||null},children:[(0,yn.jsx)(mo.RichText.Content,{multiline:!0,value:r}),!mo.RichText.isEmpty(o)&&(0,yn.jsx)(mo.RichText.Content,{tagName:"footer",value:o})]})}},hme=[YPe,QPe,XPe,JPe,eEe];var p2=n(N(),1),Vc=n(P(),1),gme=n(O(),1),ST=n(F(),1),vme=n(H(),1),bme=n(xd(),1);var Zu=n(y(),1),tEe=[["core/paragraph",{}]],rEe=(e,t)=>{let r=(0,ST.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ST.useDispatch)(Vc.store);(0,vme.useEffect)(()=>{if(!e.value)return;let[i,l]=wm(e);(0,bme.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),a(t,l)})},[e.value])};function yme({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:a,isSelected:i}){let{textAlign:l,allowedBlocks:s}=e;rEe(e,o);let c=(0,Vc.useBlockProps)({className:C(a,{[`has-text-align-${l}`]:l})}),u=(0,Vc.useInnerBlocksProps)(c,{template:tEe,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:s});return(0,Zu.jsxs)(Zu.Fragment,{children:[(0,Zu.jsx)(Vc.BlockControls,{group:"block",children:(0,Zu.jsx)(Vc.AlignmentControl,{value:l,onChange:p=>{t({textAlign:p})}})}),(0,Zu.jsxs)(gme.BlockQuotation,{...u,children:[u.children,(0,Zu.jsx)(Ao,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:zv,label:(0,p2.__)("Quote citation"),placeholder:(0,p2.__)("Add citation"),addLabel:(0,p2.__)("Add citation"),removeLabel:(0,p2.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var TT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." \u2014 Julio Cort\xE1zar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],html:!1,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0,padding:!0,margin:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"};var Gf=n(P(),1),m2=n(y(),1);function _me({attributes:e}){let{textAlign:t,citation:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,m2.jsxs)("blockquote",{...Gf.useBlockProps.save({className:o}),children:[(0,m2.jsx)(Gf.InnerBlocks.Content,{}),!Gf.RichText.isEmpty(r)&&(0,m2.jsx)(Gf.RichText.Content,{tagName:"cite",value:r})]})}var d2=n(P(),1),Gr=n($(),1),nEe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Gr.createBlock)("core/quote",{},[(0,Gr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:a,style:i})=>(0,Gr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:a,style:i},[(0,Gr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Gr.createBlock)("core/quote",{},[(0,Gr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Gr.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>e.length===1?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some(({name:t})=>t==="core/quote"),__experimentalConvert:e=>(0,Gr.createBlock)("core/quote",{},e.map(t=>(0,Gr.cloneSanitizedBlock)(t)))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every(({name:t})=>t==="core/paragraph"),transform:({align:e,citation:t,anchor:r,fontSize:o,style:a},i)=>{let l=i.map(({attributes:s})=>`${s.content}`).join("<br>");return(0,Gr.createBlock)("core/pullquote",{value:l,align:e,citation:t,anchor:r,fontSize:o,style:a})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Gr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Gr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Gr.createBlock)("core/verse",{content:r})}},{type:"block",blocks:["core/paragraph"],isMatch:({citation:e},t)=>{let r=t.innerBlocks;return r.length?r.every(o=>o.name==="core/paragraph"?!0:(0,Gr.switchToBlockType)(o,"core/paragraph")!==null):!d2.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Gr.switchToBlockType)(o,"core/paragraph")||[]);return d2.RichText.isEmpty(e)?r:[...r,(0,Gr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Gr.createBlock)("core/group",{anchor:t},d2.RichText.isEmpty(e)?r:[...r,(0,Gr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>d2.RichText.isEmpty(e)?t:[...t,(0,Gr.createBlock)("core/paragraph",{content:e})]},xme=nEe;var{name:kme}=TT,wme={icon:rI,example:{attributes:{citation:(0,Mz.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Mz.__)("In quoting others, we cite ourselves.")}}]},transforms:xme,edit:yme,save:_me,deprecated:hme},aEe=()=>R({name:kme,metadata:TT,settings:wme});var Vz={};K(Vz,{init:()=>bEe,metadata:()=>PT,name:()=>Rme,settings:()=>Ame});var Nme=n(re(),1),Dme=n(F(),1),Lme=n(Jo(),1);var PT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object",default:{}}},providesContext:{"pattern/overrides":"content"},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0},customCSS:!1}};var h2=n(F(),1),g2=n(H(),1),O0=n(re(),1),Oc=n(O(),1),f2=n(N(),1),Wr=n(P(),1),Pme=n(Sme(),1),Eme=n($(),1);var yr=n(y(),1),{useLayoutClasses:lEe}=j(Wr.privateApis),{isOverridableBlock:sEe}=j(Pme.privateApis),cEe=["full","wide","left","right"],uEe=(e,t)=>{let r=(0,g2.useRef)();return(0,g2.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",l=e.some(s=>cEe.includes(s.attributes.align));o=i&&l?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function pEe(){let e=(0,Wr.useBlockProps)();return(0,yr.jsx)("div",{...e,children:(0,yr.jsx)(Wr.Warning,{children:(0,f2.__)("Block cannot be rendered inside itself.")})})}var Tme=()=>{};function Bme(e){let{ref:t}=e.attributes;return(0,Wr.useHasRecursion)(t)?(0,yr.jsx)(pEe,{}):(0,yr.jsx)(Wr.RecursionProvider,{uniqueId:t,children:(0,yr.jsx)(fEe,{...e})})}function mEe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:a}){let i=(0,h2.useSelect)(l=>!!l(O0.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,yr.jsxs)(yr.Fragment,{children:[i&&!!o&&(0,yr.jsx)(Wr.BlockControls,{group:"other",children:(0,yr.jsx)(Oc.ToolbarGroup,{children:(0,yr.jsx)(Oc.ToolbarButton,{onClick:o,children:(0,f2.__)("Edit original")})})}),t&&(0,yr.jsx)(Wr.BlockControls,{group:"other",children:(0,yr.jsx)(Oc.ToolbarGroup,{children:(0,yr.jsx)(Oc.ToolbarButton,{onClick:a,disabled:!r,children:(0,f2.__)("Reset")})})})]})}var dEe={};function fEe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:a}){let{record:i,hasResolved:l}=(0,O0.useEntityRecord)("postType","wp_block",t),[s]=(0,O0.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,h2.useDispatch)(Wr.store),{onNavigateToEntityRecord:p,hasPatternOverridesSource:m,supportedBlockTypesRaw:d}=(0,h2.useSelect)(S=>{let{getSettings:T}=S(Wr.store);return{onNavigateToEntityRecord:T().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,Eme.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:T().__experimentalBlockBindingsSupportedAttributes||dEe}},[]),f=(0,g2.useMemo)(()=>{let S=Object.keys(d),T=I=>I.some(D=>S.includes(D.name)&&sEe(D)?!0:T(D.innerBlocks));return m&&T(s)},[m,s,d]),{alignment:h,layout:g}=uEe(s,o),v=lEe({layout:g},e),b=(0,Wr.useBlockProps)({className:C("block-library-block__reusable-block-container",g&&v,{[`align${h}`]:h})}),_=(0,Wr.useInnerBlocksProps)(b,{layout:g,value:s,onInput:Tme,onChange:Tme,renderAppender:s?.length?void 0:Wr.InnerBlocks.ButtonBlockAppender}),k=()=>{p({postId:t,postType:"wp_block"})},x=()=>{r&&(u(),a({content:void 0}))},w=null;return c&&(w=(0,yr.jsx)(Wr.Warning,{children:(0,f2.__)("Block has been deleted or is unavailable.")})),l||(w=(0,yr.jsx)(Oc.Placeholder,{children:(0,yr.jsx)(Oc.Spinner,{})})),(0,yr.jsxs)(yr.Fragment,{children:[l&&!c&&(0,yr.jsx)(mEe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:p?k:void 0,resetContent:x}),w===null?(0,yr.jsx)("div",{..._}):(0,yr.jsx)("div",{...b,children:w})]})}var hEe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,gEe={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({content:e}){return!!e&&Object.keys(e).every(t=>e[t].values&&hEe(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let o={...t};for(let a in t)o[a]=t[a].values;return{...r,content:o}}return e}},vEe={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({overrides:e}){return!!e},migrate(e){let{overrides:t,...r}=e,o={};return Object.keys(t).forEach(a=>{o[a]=t[a]}),{...r,content:o}}},Ime=[gEe,vEe];var{name:Rme}=PT,Ame={deprecated:Ime,edit:Bme,icon:BI,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Dme.select)(Nme.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,Lme.decodeEntities)(t.title)}},bEe=()=>R({name:Rme,metadata:PT,settings:Ame});var Oz={};K(Oz,{init:()=>_Ee,metadata:()=>ET,name:()=>Vme,settings:()=>Ome});var zme=n(N(),1);var ET={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string",role:"content"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{anchor:!0,html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var H0=n(P(),1),j0=n(O(),1),BT=n($(),1),F0=n(N(),1);var Fc=n(y(),1);function Mme({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let a=(0,H0.useBlockProps)(),i=Z();return(0,Fc.jsxs)(Fc.Fragment,{children:[(0,Fc.jsx)(H0.InspectorControls,{children:(0,Fc.jsx)(j0.__experimentalToolsPanel,{label:(0,F0.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Fc.jsx)(j0.__experimentalToolsPanelItem,{label:(0,F0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Fc.jsx)(j0.ToggleControl,{label:(0,F0.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Fc.jsx)(H0.RichText,{identifier:"content",tagName:"a","aria-label":(0,F0.__)("\u201CRead more\u201D link text"),placeholder:(0,F0.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:o?()=>o((0,BT.createBlock)((0,BT.getDefaultBlockName)())):void 0,withoutInteractiveFormatting:!0,...a})]})}var{name:Vme}=ET,Ome={icon:fi,edit:Mme,example:{attributes:{content:(0,zme.__)("Read more")}}},_Ee=()=>R({name:Vme,metadata:ET,settings:Ome});var Fz={};K(Fz,{init:()=>CEe,metadata:()=>IT,name:()=>Gme,settings:()=>Wme});var IT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:"",role:"content"},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55},openInNewTab:{type:"boolean",default:!1},rel:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var Wf=n(P(),1),xt=n(O(),1),NT=n(H(),1);var Vt=n(N(),1),Fme=n(pr(),1),Hme=n(ap(),1),jme=n(ve(),1);var lt=n(y(),1),kEe=1,wEe=20;function Ume({attributes:e,setAttributes:t,name:r}){let[o,a]=(0,NT.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:p,feedURL:m,itemsToShow:d,openInNewTab:f,rel:h}=e,g=Z();function v(D){return()=>{let L=e[D];t({[D]:!L})}}function b(D){D.preventDefault(),m&&(t({feedURL:(0,Fme.prependHTTPS)(m)}),a(!1))}let{content:_,status:k,error:x}=(0,Hme.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),w=(0,jme.useDisabled)(),S=(0,Wf.useBlockProps)({ref:o?null:w}),T=(0,Vt.__)("RSS URL");if(o)return(0,lt.jsx)("div",{...S,children:(0,lt.jsx)(xt.Placeholder,{icon:wv,label:T,instructions:(0,Vt.__)("Display entries from any RSS or Atom feed."),children:(0,lt.jsxs)("form",{onSubmit:b,className:"wp-block-rss__placeholder-form",children:[(0,lt.jsx)(xt.__experimentalInputControl,{label:T,type:"url",hideLabelFromVision:!0,placeholder:(0,Vt.__)("Enter URL here\u2026"),value:m,onChange:D=>t({feedURL:D}),className:"wp-block-rss__placeholder-input"}),(0,lt.jsx)(xt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Vt.__)("Apply")})]})})});let I=[{icon:nd,title:(0,Vt.__)("Edit RSS URL"),onClick:()=>a(!0)},{icon:ql,title:(0,Vt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:$l,title:(0,Vt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Wf.BlockControls,{children:(0,lt.jsx)(xt.ToolbarGroup,{controls:I})}),(0,lt.jsx)(Wf.InspectorControls,{children:(0,lt.jsxs)(xt.__experimentalToolsPanel,{label:(0,Vt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,lt.jsx)(xt.RangeControl,{label:(0,Vt.__)("Number of items"),value:d,onChange:D=>t({itemsToShow:D}),min:kEe,max:wEe,required:!0})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Display author"),checked:s,onChange:v("displayAuthor")})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Display date"),checked:c,onChange:v("displayDate")})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Display excerpt"),checked:u,onChange:v("displayExcerpt")})}),u&&(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Max number of words in excerpt"),hasValue:()=>p!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,lt.jsx)(xt.RangeControl,{label:(0,Vt.__)("Max number of words in excerpt"),value:p,onChange:D=>t({excerptLength:D}),min:10,max:100,required:!0})}),i==="grid"&&(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,lt.jsx)(xt.RangeControl,{label:(0,Vt.__)("Columns"),value:l,onChange:D=>t({columns:D}),min:2,max:6,required:!0})}),(0,lt.jsx)(xt.__experimentalToolsPanelItem,{label:(0,Vt.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,lt.jsx)(xt.ToggleControl,{label:(0,Vt.__)("Open links in new tab"),checked:f,onChange:D=>t({openInNewTab:D})})})]})}),(0,lt.jsx)(Wf.InspectorControls,{group:"advanced",children:(0,lt.jsx)(xt.TextControl,{label:(0,Vt.__)("Link relation"),help:(0,NT.createInterpolateElement)((0,Vt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,lt.jsx)(xt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:D=>t({rel:D})})}),k==="loading"&&(0,lt.jsx)("div",{...S,children:(0,lt.jsx)(xt.Spinner,{})}),k==="error"&&(0,lt.jsx)("div",{...S,children:(0,lt.jsx)("p",{children:(0,Vt.sprintf)((0,Vt.__)("Error: %s"),x)})}),k==="success"&&(0,lt.jsx)(_o,{wrapperProps:S,html:_})]})}var{name:Gme}=IT,Wme={icon:wv,example:{attributes:{feedURL:"https://wordpress.org"}},edit:Ume},CEe=()=>R({name:Gme,metadata:IT,settings:Wme});var $z={};K($z,{init:()=>BEe,metadata:()=>DT,name:()=>tde,settings:()=>RT});var U0=n(N(),1);var ede=n($(),1);var DT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",role:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",role:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},tagName:{type:"string",default:""}},supports:{anchor:!0,align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},spacing:{margin:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search",selectors:{color:".wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input",border:".wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper"}};var ro=n(P(),1),LT=n(F(),1),v2=n(H(),1),ir=n(O(),1),Kme=n(ve(),1);var Nt=n(N(),1),Yme=n(Tn(),1),Qme=n(Rh(),1);var Hz=50,jz=350,Uz=220;function Gz(e){return e==="%"}var kt=n(y(),1),$me={"":(0,Nt.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,Nt.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,Nt.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},qme="4px",Zme=[25,50,75,100];function Xme({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:a,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:p,align:m,buttonText:d,buttonPosition:f,buttonUseIcon:h,tagName:g,style:v}=t,b=(0,LT.useSelect)(ne=>{let{getBlockParentsByBlockName:me,wasBlockJustInserted:se}=ne(ro.store);return!!me(i,"core/navigation")?.length&&se(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,LT.useDispatch)(ro.store);(0,v2.useEffect)(()=>{b&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,b,r]);let k=v?.border?.radius,x=(0,ro.__experimentalUseBorderProps)(t);typeof k=="number"&&(x={...x,style:{...x.style,borderRadius:`${k}px`}});let w=(0,ro.__experimentalUseColorProps)(t),[S,T]=(0,ro.useSettings)("typography.fluid","layout"),I=(0,ro.getTypographyClassesAndStyles)(t,{typography:{fluid:S},layout:{wideSize:T?.wideSize}}),L=`wp-block-search__width-${(0,Kme.useInstanceId)(ir.__experimentalUnitControl)}`,E=f==="button-inside",B=f==="button-outside",A=f==="no-button",z=f==="button-only",U=z&&!a,q=(0,v2.useRef)(),G=(0,v2.useRef)(),W=(0,ir.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":Hz,px:jz}}),V=()=>C(e,E?"wp-block-search__button-inside":void 0,B?"wp-block-search__button-outside":void 0,A?"wp-block-search__no-button":void 0,z?"wp-block-search__button-only":void 0,!h&&!A?"wp-block-search__text-button":void 0,h&&!A?"wp-block-search__icon-button":void 0,U?"wp-block-search__searchfield-hidden":void 0),Q=[{label:(0,Nt.__)("Button outside"),value:"button-outside"},{label:(0,Nt.__)("Button inside"),value:"button-inside"},{label:(0,Nt.__)("No button"),value:"no-button"},{label:(0,Nt.__)("Button only"),value:"button-only"}],Y=()=>z?{}:{right:m!=="right",left:m==="right"},ee=()=>{let ne=C("wp-block-search__input",A?w.className:void 0,E?void 0:x.className,I.className),me={...A?w.style:{},...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style,...I.style,textDecoration:void 0};return(0,kt.jsx)("input",{type:"search",className:ne,style:me,"aria-label":(0,Nt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Nt.__)("Optional placeholder\u2026"),value:c,onChange:se=>r({placeholder:se.target.value}),ref:q})},te=()=>{let ne=C("wp-block-search__button",w.className,I.className,E?void 0:x.className,h?"has-icon":void 0,(0,ro.__experimentalGetElementClassName)("button")),me={...w.style,...I.style,...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style};return(0,kt.jsxs)(kt.Fragment,{children:[h&&(0,kt.jsx)("button",{type:"button",className:ne,style:me,"aria-label":d?(0,Yme.__unstableStripHTML)(d):(0,Nt.__)("Search"),ref:G,children:(0,kt.jsx)(na,{icon:Cv})}),!h&&(0,kt.jsx)(ro.RichText,{identifier:"buttonText",className:ne,style:me,"aria-label":(0,Nt.__)("Button text"),placeholder:(0,Nt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:se=>r({buttonText:se})})]})},oe=Z(),J=(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)(ro.InspectorControls,{children:(0,kt.jsxs)(ir.__experimentalToolsPanel,{label:(0,Nt.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:oe,children:[(0,kt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Nt.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,kt.jsx)(ir.ToggleControl,{checked:s,label:(0,Nt.__)("Show label"),onChange:ne=>r({showLabel:ne})})}),(0,kt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Nt.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,kt.jsx)(ir.SelectControl,{value:f,label:(0,Nt.__)("Button position"),onChange:ne=>{r({buttonPosition:ne})},options:Q})}),f!=="no-button"&&(0,kt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,Nt.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,kt.jsx)(ir.ToggleControl,{checked:h,label:(0,Nt.__)("Use button with icon"),onChange:ne=>r({buttonUseIcon:ne})})}),(0,kt.jsx)(ir.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Nt.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,kt.jsxs)(ir.__experimentalVStack,{children:[(0,kt.jsx)(ir.__experimentalUnitControl,{label:(0,Nt.__)("Width"),id:L,min:Gz(p)?0:Uz,max:Gz(p)?100:void 0,step:1,onChange:ne=>{let me=ne===""?void 0:parseInt(ne,10);r({width:me})},onUnitChange:ne=>{r({width:ne==="%"?Hz:jz,widthUnit:ne})},__unstableInputWidth:"80px",value:`${u}${p}`,units:W}),(0,kt.jsx)(ir.__experimentalToggleGroupControl,{label:(0,Nt.__)("Percentage Width"),value:Zme.includes(u)&&p==="%"?u:void 0,hideLabelFromVision:!0,onChange:ne=>{r({width:ne,widthUnit:"%"})},isBlock:!0,children:Zme.map(ne=>(0,kt.jsx)(ir.__experimentalToggleGroupControlOption,{value:ne,label:(0,Nt.sprintf)((0,Nt.__)("%d%%"),ne)},ne))})]})})]})}),(0,kt.jsx)(ro.InspectorControls,{group:"advanced",children:(0,kt.jsx)(ir.SelectControl,{label:(0,Nt.__)("HTML element"),value:g??"",options:[{label:(0,Nt.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:ne=>{r({tagName:ne}),(0,Qme.speak)($me[ne].replace(/[<>]/g,""))},help:$me[g??""]})})]}),ce=ne=>ne!==void 0&&parseInt(ne,10)!==0,ie=ne=>ce(ne)?`calc(${ne} + ${qme})`:void 0,we=()=>{let ne=E?x.style:{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius};if(E){if(typeof k=="object"){let{borderTopLeftRadius:se,borderTopRightRadius:Ne,borderBottomLeftRadius:De,borderBottomRightRadius:X}=x.style;return{...ne,borderTopLeftRadius:ie(se),borderTopRightRadius:ie(Ne),borderBottomLeftRadius:ie(De),borderBottomRightRadius:ie(X)}}let me=Number.isInteger(k)?`${k}px`:k;ne.borderRadius=`calc(${me} + ${qme})`}return ne},le=(0,ro.useBlockProps)({className:V(),style:{...I.style,textDecoration:void 0}}),de=C("wp-block-search__label",I.className);return(0,kt.jsxs)(kt.Fragment,{children:[J,(0,kt.jsxs)(g==="search"?"search":"div",{...le,children:[s&&(0,kt.jsx)(ro.RichText,{identifier:"label",className:de,"aria-label":(0,Nt.__)("Label text"),placeholder:(0,Nt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ne=>r({label:ne}),style:I.style}),(0,kt.jsxs)(ir.ResizableBox,{size:{width:u===void 0?"auto":`${u}${p}`,height:"auto"},className:C("wp-block-search__inside-wrapper",E?x.className:void 0),style:we(),minWidth:Uz,enable:Y(),onResizeStart:(ne,me,se)=>{r({width:parseInt(se.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(ne,me,se,Ne)=>{r({width:parseInt(u+Ne.width,10)}),o(!0)},showHandle:a,children:[(E||B||z)&&(0,kt.jsxs)(kt.Fragment,{children:[ee(),te()]}),A&&ee()]})]})]})}var Wz=n(N(),1),TEe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,Wz.__)("Search"),label:(0,Wz.__)("Search")}}],Jme=TEe;var{fieldsKey:PEe,formKey:EEe}=j(ede.privateApis),{name:tde}=DT,RT={icon:Cv,example:{attributes:{buttonText:(0,U0.__)("Search"),label:(0,U0.__)("Search")},viewportWidth:400},variations:Jme,edit:Xme};window.__experimentalContentOnlyInspectorFields&&(RT[PEe]=[{id:"label",label:(0,U0.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,U0.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,U0.__)("Placeholder"),type:"text",Edit:"rich-text"}],RT[EEe]={fields:["label","buttonText","placeholder"]});var BEe=()=>R({name:tde,metadata:DT,settings:RT});var qz={};K(qz,{init:()=>REe,metadata:()=>MT,name:()=>ude,settings:()=>pde});var Cm=n(P(),1),AT=n(O(),1),y2=n(N(),1);var b2=n(H(),1),rde=n(ve(),1);function ode(e,t,r){let[o,a]=(0,b2.useState)(!1),i=(0,rde.usePrevious)(t);(0,b2.useEffect)(()=>{e==="css"&&!t&&!i&&a(!0)},[t,i,e]),(0,b2.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),a(!1))},[o,t,i])}var Ku=n(y(),1),IEe=({tagName:e,setAttributes:t})=>(0,Ku.jsx)(AT.SelectControl,{label:(0,y2.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,y2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,y2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,y2.__)("The <div> element should only be used if the block is a design element with no semantic meaning.")});function nde({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:a,tagName:i}=e,l=(0,Cm.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!a?.color?.background;ode(o,s,t);let u=(0,Cm.getColorClassName)("color",r),p=C({"has-text-color":r||s,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className);return(0,Ku.jsxs)(Ku.Fragment,{children:[(0,Ku.jsx)(Cm.InspectorControls,{group:"advanced",children:(0,Ku.jsx)(IEe,{tagName:i,setAttributes:t})}),(0,Ku.jsx)(i==="hr"?AT.HorizontalRule:i,{...(0,Cm.useBlockProps)({className:p,style:c?{color:s,backgroundColor:s}:void 0})})]})}var MT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"},tagName:{type:"string",enum:["hr","div"],default:"hr"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"};var G0=n(P(),1),ade=n(y(),1);function ide({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:a}=e,i=r?.color?.background,l=(0,G0.__experimentalGetColorClassesAndStyles)(e),s=(0,G0.getColorClassName)("color",t),c=C({"has-text-color":t||i,[s]:s,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,ade.jsx)(a,{...G0.useBlockProps.save({className:c,style:u})})}var Sm=n($(),1),DEe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Sm.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Sm.createBlock)("core/separator",e?.attributes??{}),(0,Sm.createBlock)((0,Sm.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Sm.createBlock)("core/spacer",{anchor:e||void 0})}]},lde=DEe;var _2=n(P(),1),sde=n(y(),1),LEe={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,_2.getColorClassName)("background-color",t),a=(0,_2.getColorClassName)("color",t),i=C({"has-text-color has-background":t||r,[o]:o,[a]:a}),l={backgroundColor:o?void 0:r,color:a?void 0:r};return(0,sde.jsx)("hr",{..._2.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:r,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:r?{color:{background:r}}:void 0,tagName:"hr"}}},cde=[LEe];var{name:ude}=MT,pde={icon:gI,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:lde,edit:nde,save:ide,deprecated:cde},REe=()=>R({name:ude,metadata:MT,settings:pde});var Kz={};K(Kz,{init:()=>OEe,metadata:()=>jT,name:()=>wde,settings:()=>Cde});var zT=n(N(),1),OT=n(P(),1),mde=n(ve(),1),dde=n(O(),1);var VT=n(y(),1);function Zz({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,mde.useInstanceId)(Zz)}`;return(0,VT.jsx)("div",{...(0,OT.useBlockProps)(),children:(0,VT.jsx)(dde.Placeholder,{icon:Tv,label:(0,zT.__)("Shortcode"),children:(0,VT.jsx)(OT.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,zT.__)("Shortcode text"),placeholder:(0,zT.__)("Write shortcode here\u2026"),onChange:a=>t({text:a})})})})}var fde=n(H(),1),hde=n(y(),1);function gde({attributes:e}){return(0,hde.jsx)(fde.RawHTML,{children:e.text})}var FT=n(bde(),1),HT=n($(),1),xde=n(_de(),1),AEe=()=>(0,HT.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),MEe=(e,t)=>{let r=e.trim(),o=(0,xde.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},zEe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,FT.removep)((0,FT.autop)(t))}},priority:20}],get to(){return AEe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>MEe(t,r)),transform:({text:t=""})=>(0,HT.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},kde=zEe;var jT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw",role:"content"}},supports:{className:!1,customClassName:!1,html:!1,customCSS:!1,visibility:!1},editorStyle:"wp-block-shortcode-editor"};var{name:wde}=jT,Cde={icon:Tv,transforms:kde,edit:Zz,save:gde},OEe=()=>R({name:wde,metadata:jT,settings:Cde});var Qz={};K(Qz,{init:()=>WEe,metadata:()=>UT,name:()=>Ide,settings:()=>Nde});var UT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{anchor:!0,html:!1,align:!0,alignWide:!1,color:{text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0},filter:{duotone:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],selectors:{filter:{duotone:".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"};var Yz=n(Ar(),1),Hc=n(H(),1),fo=n(N(),1),Dt=n(O(),1),Sde=n(ve(),1),ho=n(P(),1),Tm=n(F(),1),W0=n(re(),1);var Tde=n(Sr(),1);var je=n(y(),1),GT=["image"],{mediaEditKey:HEe,openMediaEditorModalKey:jEe}=j(ho.privateApis),UEe=({alt:e,attributes:{align:t,width:r,height:o,isLink:a,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:p,siteUrl:m,logoId:d,iconId:f,setIcon:h,canUserEdit:g})=>{let v=(0,Sde.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&v,[{naturalWidth:k,naturalHeight:x},w]=(0,Hc.useState)({}),S=(0,Hc.useRef)(),{toggleSelection:T,__unstableMarkNextChangeAsNotPersistent:I}=(0,Tm.useDispatch)(ho.store),D=Z(),E=(0,ho.useBlockEditingMode)()==="contentOnly",{imageEditing:B,maxWidth:A,title:z,editMediaEntity:U,openMediaEditorModal:q}=(0,Tm.useSelect)(De=>{let X=De(ho.store).getSettings();return{title:De(W0.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:X.imageEditing,maxWidth:X.maxWidth,editMediaEntity:X?.[HEe],openMediaEditorModal:X?.[jEe]}},[]);(0,Hc.useEffect)(()=>{l&&d!==f&&(I(),c({shouldSyncIcon:!1}))},[]);let G=({id:De})=>{typeof De=="number"&&u(De)};function W(){T(!1)}function V(){T(!0)}let Q=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("img",{className:"custom-logo",src:p,alt:e,onLoad:De=>{w({naturalWidth:De.target.naturalWidth,naturalHeight:De.target.naturalHeight})}}),(0,Yz.isBlobURL)(p)&&(0,je.jsx)(Dt.Spinner,{})]}),Y=Q;if(a&&(Y=(0,je.jsx)("a",{href:m,className:"custom-logo-link",rel:"home",title:z,onClick:De=>De.preventDefault(),children:Q})),!_||!k||!x)return(0,je.jsx)("div",{style:{width:r,height:o},children:Y});let ee=120,te=r||ee,oe=k/x,J=te/oe,ce=k<x?mc:Math.ceil(mc*oe),ie=x<k?mc:Math.ceil(mc/oe),we=A*2.5,le=!1,de=!1;t==="center"?(le=!0,de=!0):(0,fo.isRTL)()?t==="left"?le=!0:de=!0:t==="right"?de=!0:le=!0;let ge=d&&k&&x&&B&&!!U,ne=!E,se=!window?.__experimentalUseCustomizerSiteLogoUrl?m+"/wp-admin/options-general.php":m+"/wp-admin/customize.php?autofocus[section]=title_tagline",Ne=(0,Hc.createInterpolateElement)((0,fo.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,je.jsx)("a",{href:se,target:"_blank",rel:"noopener"})});return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(ho.InspectorControls,{children:(0,je.jsxs)(Dt.__experimentalToolsPanel,{label:(0,fo.__)("Settings"),dropdownMenuProps:D,children:[(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,fo.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,je.jsx)(Dt.RangeControl,{label:(0,fo.__)("Image width"),onChange:De=>c({width:De}),min:ce,max:we,initialPosition:Math.min(ee,we),value:r||"",disabled:!_})}),(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!a,label:(0,fo.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,je.jsx)(Dt.ToggleControl,{label:(0,fo.__)("Link image to home"),onChange:()=>c({isLink:!a}),checked:a})}),a&&(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,fo.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,je.jsx)(Dt.ToggleControl,{label:(0,fo.__)("Open in new tab"),onChange:De=>c({linkTarget:De?"_blank":"_self"}),checked:i==="_blank"})}),g&&(0,je.jsx)(Dt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,fo.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,je.jsx)(Dt.ToggleControl,{label:(0,fo.__)("Use as Site Icon"),onChange:De=>{c({shouldSyncIcon:De}),h(De?d:void 0)},checked:!!l,help:Ne})})]})}),ge&&q&&ne&&(0,je.jsx)(ho.BlockControls,{group:"block",children:(0,je.jsx)(Dt.ToolbarButton,{ref:S,onClick:()=>q({id:d,onUpdate:G,onClose:()=>S.current?.focus()}),"aria-haspopup":"dialog",icon:Xm,label:(0,fo.__)("Crop")})}),(0,je.jsx)(Dt.ResizableBox,{size:{width:te,height:J},showHandle:s&&ne,minWidth:ce,maxWidth:we,minHeight:ie,maxHeight:we/oe,lockAspectRatio:!0,enable:{top:!1,right:le,bottom:!0,left:de},onResizeStart:W,onResizeStop:(De,X,Ce,pe)=>{V(),c({width:parseInt(te+pe.width,10),height:parseInt(J+pe.height,10)})},children:Y})]})};function Pde({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:a,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:p,isRequestingMediaItem:m}=(0,Tm.useSelect)(V=>{let{canUser:Q,getEntityRecord:Y,getEditedEntityRecord:ee}=V(W0.store),te=Q("update",{kind:"root",name:"site"}),oe=te?ee("root","site"):void 0,J=Y("root","__unstableBase"),ce=te?oe?.site_logo:J?.site_logo,ie=oe?.site_icon,we=ce&&V(W0.store).getEntityRecord("postType","attachment",ce,{context:"view"}),le=!!ce&&!V(W0.store).hasFinishedResolution("getEntityRecord",["postType","attachment",ce,{context:"view"}]);return{siteLogoId:ce,canUserEdit:te,url:J?.home,mediaItemData:we,isRequestingMediaItem:le,siteIconId:ie}},[]),{getSettings:d}=(0,Tm.useSelect)(ho.store),[f,h]=(0,Hc.useState)(),g=Z(),{editEntityRecord:v}=(0,Tm.useDispatch)(W0.store),b=(V,Q=!1)=>{(i||Q)&&_(V),v("root","site",void 0,{site_logo:V})},_=V=>v("root","site",void 0,{site_icon:V??null}),{alt_text:k,source_url:x}=p??{},w=V=>{if(i===void 0){let Q=!u;r({shouldSyncIcon:Q}),S(V,Q);return}S(V)},S=(V,Q=!1)=>{if(V){if(!V.id&&V.url){h(V.url),b(void 0);return}b(V.id,Q)}},T=()=>{b(null),r({width:void 0})},{createErrorNotice:I}=(0,Tm.useDispatch)(Tde.store),D=V=>{I(V,{type:"snackbar"}),h()},L=V=>{d().mediaUpload({allowedTypes:GT,filesList:V,onFileChange([Q]){if((0,Yz.isBlobURL)(Q?.url)){h(Q.url);return}w(Q)},onError:D,multiple:!1})},E={mediaURL:x,name:x?(0,fo.__)("Replace"):(0,fo.__)("Choose logo"),onSelect:S,onError:D,onReset:T},B=s&&(0,je.jsx)(ho.BlockControls,{group:"other",children:(0,je.jsx)(ho.MediaReplaceFlow,{...E,allowedTypes:GT,variant:"toolbar"})}),A,z=l===void 0||m;z&&(A=(0,je.jsx)(Dt.Spinner,{})),(0,Hc.useEffect)(()=>{x&&f&&h()},[x,f]),(x||f)&&(A=(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(UEe,{alt:k,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||x,setLogo:b,logoId:p?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,je.jsx)(Dt.DropZone,{onFilesDrop:L})]}));let U=V=>{let Q=C("block-editor-media-placeholder",t);return(0,je.jsx)(Dt.Placeholder,{className:Q,preview:A,withIllustration:!0,style:{width:a},children:V})},q=C(t,{"is-default-size":!a,"is-transient":f}),G=(0,ho.useBlockProps)({className:q}),W=(s||x)&&(0,je.jsx)(ho.InspectorControls,{children:(0,je.jsx)(Dt.__experimentalToolsPanel,{label:(0,fo.__)("Media"),dropdownMenuProps:g,children:s?(0,je.jsx)(Dt.__experimentalToolsPanelItem,{hasValue:()=>!!x,label:(0,fo.__)("Logo"),isShownByDefault:!0,children:(0,je.jsx)(S4,{mediaId:l,mediaUrl:x,filename:p?.media_details?.sizes?.full?.file||p?.slug,allowedTypes:GT,onSelect:S,onError:D,onReset:T,isUploading:!!f,emptyLabel:(0,fo.__)("Logo")})}):(0,je.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,je.jsx)(AR,{url:p?.source_url,filename:p?.media_details?.sizes?.full?.file||p?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,je.jsxs)("div",{...G,children:[B,W,(!!x||!!f)&&A,(z||!f&&!x&&!s)&&(0,je.jsx)(Dt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:z&&(0,je.jsx)("span",{className:"components-placeholder__preview",children:(0,je.jsx)(Dt.Spinner,{})})}),!z&&!f&&!x&&s&&(0,je.jsx)(ho.MediaPlaceholder,{onSelect:w,allowedTypes:GT,onError:D,placeholder:U,mediaLibraryButton:({open:V})=>(0,je.jsx)(Dt.Button,{__next40pxDefaultSize:!0,icon:nu,variant:"primary",label:(0,fo.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{V()}})})]})}var Ede=n($(),1),GEe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Ede.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Bde=GEe;var{name:Ide}=UT,Nde={icon:kI,example:{},edit:Pde,transforms:Bde},WEe=()=>R({name:Ide,metadata:UT,settings:Nde});var eV={};K(eV,{init:()=>KEe,metadata:()=>WT,name:()=>Ade,settings:()=>Mde});var WT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.",keywords:["description"],textdomain:"default",attributes:{level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},contentRole:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var qT=n(F(),1),Xz=n(re(),1),Pm=n(P(),1),$T=n(N(),1),ZT=n($(),1);var Yu=n(y(),1);function Dde(e){wt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:a,levelOptions:i}=t,{canUserEdit:l,tagline:s}=(0,qT.useSelect)(f=>{let{canUser:h,getEntityRecord:g,getEditedEntityRecord:v}=f(Xz.store),b=h("update",{kind:"root",name:"site"}),_=b?v("root","site"):{},k=g("root","__unstableBase");return{canUserEdit:b,tagline:b?_?.description:k?.description}},[]),c=a===0?"p":`h${a}`,{editEntityRecord:u}=(0,qT.useDispatch)(Xz.store);function p(f){u("root","site",void 0,{description:f})}let m=(0,Pm.useBlockProps)({className:!l&&!s&&"wp-block-site-tagline__placeholder"}),d=l?(0,Yu.jsx)(Pm.RichText,{allowedFormats:[],onChange:p,"aria-label":(0,$T.__)("Site tagline text"),placeholder:(0,$T.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,ZT.createBlock)((0,ZT.getDefaultBlockName)())):void 0,...m}):(0,Yu.jsx)(c,{...m,children:s||(0,$T.__)("Site Tagline placeholder")});return(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)(Pm.BlockControls,{group:"block",children:(0,Yu.jsx)(Pm.HeadingLevelDropdown,{value:a,options:i,onChange:f=>r({level:f})})}),d]})}var KT=n(O(),1),Jz=n(y(),1),Lde=(0,Jz.jsx)(KT.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,Jz.jsx)(KT.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var qEe={attributes:{textAlign:{type:"string"},level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},ZEe={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Rde=[qEe,ZEe];var{name:Ade}=WT,Mde={icon:Lde,edit:Dde,deprecated:Rde},KEe=()=>R({name:Ade,metadata:WT,settings:Mde});var oV={};K(oV,{init:()=>eBe,metadata:()=>YT,name:()=>Hde,settings:()=>jde});var YT={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it\u2019s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:500},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var QT=n(F(),1),tV=n(re(),1),jc=n(N(),1),Al=n(P(),1),Em=n(O(),1),XT=n($(),1),rV=n(Jo(),1);var $o=n(y(),1);function zde(e){wt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:a,levelOptions:i,isLink:l,linkTarget:s}=t,{canUserEdit:c,title:u}=(0,QT.useSelect)(b=>{let{canUser:_,getEntityRecord:k,getEditedEntityRecord:x}=b(tV.store),w=_("update",{kind:"root",name:"site"}),S=w?x("root","site"):{},T=k("root","__unstableBase");return{canUserEdit:w,title:w?S?.title:T?.name}},[]),{editEntityRecord:p}=(0,QT.useDispatch)(tV.store),m=Z(),d=(0,Al.useBlockEditingMode)();function f(b){p("root","site",void 0,{title:b.trim()})}let h=a===0?"p":`h${a}`,g=(0,Al.useBlockProps)({className:!c&&!u&&"wp-block-site-title__placeholder"}),v=c?(0,$o.jsx)(h,{...g,children:(0,$o.jsx)(Al.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,jc.__)("Site title text"),placeholder:(0,jc.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,XT.createBlock)((0,XT.getDefaultBlockName)())):void 0})}):(0,$o.jsx)(h,{...g,children:l?(0,$o.jsx)("a",{href:"#site-title-pseudo-link",onClick:b=>b.preventDefault(),children:(0,rV.decodeEntities)(u)||(0,jc.__)("Site Title placeholder")}):(0,$o.jsx)("span",{children:(0,rV.decodeEntities)(u)||(0,jc.__)("Site Title placeholder")})});return(0,$o.jsxs)($o.Fragment,{children:[d==="default"&&(0,$o.jsx)(Al.BlockControls,{group:"block",children:(0,$o.jsx)(Al.HeadingLevelDropdown,{value:a,options:i,onChange:b=>r({level:b})})}),(0,$o.jsx)(Al.InspectorControls,{children:(0,$o.jsxs)(Em.__experimentalToolsPanel,{label:(0,jc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:m,children:[(0,$o.jsx)(Em.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,jc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,$o.jsx)(Em.ToggleControl,{label:(0,jc.__)("Make title link to home"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,$o.jsx)(Em.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,jc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,$o.jsx)(Em.ToggleControl,{label:(0,jc.__)("Open in new tab"),onChange:b=>r({linkTarget:b?"_blank":"_self"}),checked:s==="_blank"})})]})}),v]})}var QEe={attributes:{textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},XEe={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Zt,isEligible({style:e}){return e?.typography?.fontFamily}},Vde=[QEe,XEe];var Ode=n($(),1),JEe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Ode.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Fde=JEe;var{name:Hde}=YT,jde={icon:WE,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:zde,transforms:Fde,deprecated:Vde},eBe=()=>R({name:Hde,metadata:YT,settings:jde});var eO={};K(eO,{init:()=>iBe,metadata:()=>Z8,name:()=>Ufe,settings:()=>K8});var JV=n(N(),1);var jfe=n($(),1);var $0=n(Ks(),1),q8=n(F(),1),Ea=n(P(),1),$f=n(H(),1),go=n(O(),1),zfe=n(ve(),1),oi=n(N(),1);var Vfe=n($(),1);var XV=n(N(),1);var JT=n(M(),1),nV=n(y(),1),Ude=()=>(0,nV.jsx)(JT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nV.jsx)(JT.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"})});var e8=n(M(),1),aV=n(y(),1),Gde=()=>(0,aV.jsx)(e8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aV.jsx)(e8.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var t8=n(M(),1),iV=n(y(),1),Wde=()=>(0,iV.jsx)(t8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iV.jsx)(t8.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"})});var r8=n(M(),1),lV=n(y(),1),$de=()=>(0,lV.jsx)(r8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lV.jsx)(r8.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var o8=n(M(),1),sV=n(y(),1),x2=()=>(0,sV.jsx)(o8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sV.jsx)(o8.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 n8=n(M(),1),cV=n(y(),1),qde=()=>(0,cV.jsx)(n8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cV.jsx)(n8.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"})});var a8=n(M(),1),uV=n(y(),1),Zde=()=>(0,uV.jsx)(a8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uV.jsx)(a8.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"})});var i8=n(M(),1),pV=n(y(),1),Kde=()=>(0,pV.jsx)(i8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pV.jsx)(i8.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})});var l8=n(M(),1),mV=n(y(),1),Yde=()=>(0,mV.jsx)(l8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mV.jsx)(l8.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"})});var s8=n(M(),1),dV=n(y(),1),Qde=()=>(0,dV.jsx)(s8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dV.jsx)(s8.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"})});var c8=n(M(),1),fV=n(y(),1),Xde=()=>(0,fV.jsx)(c8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fV.jsx)(c8.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"})});var u8=n(M(),1),hV=n(y(),1),Jde=()=>(0,hV.jsx)(u8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hV.jsx)(u8.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"})});var p8=n(M(),1),gV=n(y(),1),efe=()=>(0,gV.jsx)(p8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gV.jsx)(p8.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"})});var m8=n(M(),1),vV=n(y(),1),tfe=()=>(0,vV.jsx)(m8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vV.jsx)(m8.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"})});var d8=n(M(),1),bV=n(y(),1),rfe=()=>(0,bV.jsx)(d8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bV.jsx)(d8.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"})});var f8=n(M(),1),yV=n(y(),1),ofe=()=>(0,yV.jsx)(f8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yV.jsx)(f8.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"})});var h8=n(M(),1),_V=n(y(),1),nfe=()=>(0,_V.jsx)(h8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_V.jsx)(h8.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"})});var g8=n(M(),1),xV=n(y(),1),afe=()=>(0,xV.jsx)(g8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xV.jsx)(g8.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"})});var v8=n(M(),1),kV=n(y(),1),ife=()=>(0,kV.jsx)(v8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kV.jsx)(v8.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"})});var b8=n(M(),1),wV=n(y(),1),lfe=()=>(0,wV.jsx)(b8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wV.jsx)(b8.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})});var y8=n(M(),1),CV=n(y(),1),sfe=()=>(0,CV.jsx)(y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CV.jsx)(y8.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"})});var _8=n(M(),1),SV=n(y(),1),cfe=()=>(0,SV.jsx)(_8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SV.jsx)(_8.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"})});var x8=n(M(),1),TV=n(y(),1),ufe=()=>(0,TV.jsx)(x8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TV.jsx)(x8.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"})});var k8=n(M(),1),PV=n(y(),1),pfe=()=>(0,PV.jsx)(k8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PV.jsx)(k8.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})});var w8=n(M(),1),EV=n(y(),1),mfe=()=>(0,EV.jsx)(w8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EV.jsx)(w8.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"})});var C8=n(M(),1),BV=n(y(),1),dfe=()=>(0,BV.jsx)(C8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BV.jsx)(C8.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"})});var S8=n(M(),1),IV=n(y(),1),ffe=()=>(0,IV.jsx)(S8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IV.jsx)(S8.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})});var T8=n(M(),1),NV=n(y(),1),hfe=()=>(0,NV.jsx)(T8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NV.jsx)(T8.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})});var P8=n(M(),1),DV=n(y(),1),gfe=()=>(0,DV.jsx)(P8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DV.jsx)(P8.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})});var E8=n(M(),1),LV=n(y(),1),vfe=()=>(0,LV.jsx)(E8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LV.jsx)(E8.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"})});var B8=n(M(),1),RV=n(y(),1),bfe=()=>(0,RV.jsx)(B8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RV.jsx)(B8.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})});var I8=n(M(),1),AV=n(y(),1),yfe=()=>(0,AV.jsx)(I8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AV.jsx)(I8.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"})});var N8=n(M(),1),MV=n(y(),1),_fe=()=>(0,MV.jsx)(N8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MV.jsx)(N8.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"})});var D8=n(M(),1),zV=n(y(),1),xfe=()=>(0,zV.jsx)(D8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zV.jsx)(D8.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})});var L8=n(M(),1),VV=n(y(),1),kfe=()=>(0,VV.jsx)(L8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VV.jsx)(L8.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"})});var R8=n(M(),1),OV=n(y(),1),wfe=()=>(0,OV.jsx)(R8.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,OV.jsx)(R8.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"})});var A8=n(M(),1),FV=n(y(),1),Cfe=()=>(0,FV.jsx)(A8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FV.jsx)(A8.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})});var M8=n(M(),1),HV=n(y(),1),Sfe=()=>(0,HV.jsx)(M8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HV.jsx)(M8.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})});var z8=n(M(),1),jV=n(y(),1),Tfe=()=>(0,jV.jsx)(z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jV.jsx)(z8.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"})});var V8=n(M(),1),UV=n(y(),1),Pfe=()=>(0,UV.jsx)(V8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UV.jsx)(V8.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"})});var O8=n(M(),1),GV=n(y(),1),Efe=()=>(0,GV.jsx)(O8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GV.jsx)(O8.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"})});var F8=n(M(),1),WV=n(y(),1),Bfe=()=>(0,WV.jsx)(F8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WV.jsx)(F8.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"})});var H8=n(M(),1),$V=n(y(),1),Ife=()=>(0,$V.jsx)(H8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$V.jsx)(H8.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"})});var j8=n(M(),1),qV=n(y(),1),Nfe=()=>(0,qV.jsx)(j8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qV.jsx)(j8.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})});var U8=n(M(),1),ZV=n(y(),1),Dfe=()=>(0,ZV.jsx)(U8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,ZV.jsx)(U8.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"})});var G8=n(M(),1),KV=n(y(),1),Lfe=()=>(0,KV.jsx)(G8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KV.jsx)(G8.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})});var W8=n(M(),1),YV=n(y(),1),Rfe=()=>(0,YV.jsx)(W8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YV.jsx)(W8.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"})});var $8=n(M(),1),QV=n(y(),1),Afe=()=>(0,QV.jsx)($8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QV.jsx)($8.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"})});function Mfe(e){return e?.name?{icon:e?.icon??x2,label:e?.title??(0,XV.__)("Social Icon")}:{icon:x2,label:(0,XV.__)("Social Icon")}}var or=n(y(),1),tBe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:a})=>{let{removeBlock:i}=(0,q8.useDispatch)(Ea.store);return(0,or.jsx)(Ea.URLPopover,{anchor:o,"aria-label":(0,oi.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,or.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),o?.focus()},children:(0,or.jsx)("div",{className:"block-editor-url-input",children:(0,or.jsx)(Ea.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,oi.__)("Enter social link"),label:(0,oi.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![$0.BACKSPACE,$0.DELETE].includes(l.keyCode)||i(a)},suffix:(0,or.jsx)(go.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,or.jsx)(go.Button,{icon:RE,label:(0,oi.__)("Apply"),type:"submit",size:"small"})})})})})})},rBe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:a,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,p=Z(),{showLabels:m,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:g}=t,[v,b]=(0,$f.useState)(!1),_=C("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${h}-background-color`]:h}),[k,x]=(0,$f.useState)(null),w=(0,Ea.useBlockEditingMode)()==="contentOnly",{activeVariation:S}=(0,q8.useSelect)(B=>{let{getActiveBlockVariation:A}=B(Vfe.store);return{activeVariation:A(i,e)}},[i,e]),{icon:T,label:I}=Mfe(S),D=c.trim()===""?I:c,L=(0,$f.useRef)(),E=(0,Ea.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,zfe.useMergeRefs)([x,L]),onClick:()=>b(!0),onKeyDown:B=>{B.keyCode===$0.ENTER&&(B.preventDefault(),b(!0))}});return(0,or.jsxs)(or.Fragment,{children:[w&&m&&(0,or.jsx)(Ea.BlockControls,{group:"other",children:(0,or.jsx)(go.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:B,onToggle:A})=>(0,or.jsx)(go.ToolbarButton,{onClick:A,"aria-haspopup":"true","aria-expanded":B,children:(0,oi.__)("Text")}),renderContent:()=>(0,or.jsx)(go.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,oi.__)("Text"),help:(0,oi.__)("Provide a text label or use the default."),value:c,onChange:B=>o({label:B}),placeholder:I})})}),(0,or.jsx)(Ea.InspectorControls,{children:(0,or.jsx)(go.__experimentalToolsPanel,{label:(0,oi.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:p,children:(0,or.jsx)(go.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,oi.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,or.jsx)(go.TextControl,{label:(0,oi.__)("Text"),help:(0,oi.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:B=>o({label:B}),placeholder:I})})})}),(0,or.jsx)(Ea.InspectorControls,{group:"advanced",children:(0,or.jsx)(go.TextControl,{label:(0,oi.__)("Link relation"),help:(0,$f.createInterpolateElement)((0,oi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,or.jsx)(go.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:B=>o({rel:B})})}),(0,or.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:g},children:[(0,or.jsxs)("button",{"aria-haspopup":"dialog",...E,role:"button",children:[(0,or.jsx)(go.Icon,{icon:T}),(0,or.jsx)("span",{className:C("wp-block-social-link-label",{"screen-reader-text":!m}),children:D})]}),r&&v&&(0,or.jsx)(tBe,{url:l,setAttributes:o,setPopover:b,popoverAnchor:k,clientId:a})]})]})},Ofe=rBe;var Z8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social profile or site.",textdomain:"default",attributes:{url:{type:"string",role:"content"},service:{type:"string"},label:{type:"string",role:"content"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{anchor:!0,reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"};var Fe=n(N(),1);var Ffe=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Fe._x)("WordPress","social link block variation name"),icon:Dfe},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Fe._x)("500px","social link block variation name"),icon:tfe},{name:"amazon",attributes:{service:"amazon"},title:(0,Fe._x)("Amazon","social link block variation name"),icon:Ude},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Fe._x)("Bandcamp","social link block variation name"),icon:Gde},{name:"behance",attributes:{service:"behance"},title:(0,Fe._x)("Behance","social link block variation name"),icon:Wde},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Fe._x)("Bluesky","social link block variation name"),icon:$de},{name:"chain",attributes:{service:"chain"},title:(0,Fe._x)("Link","social link block variation name"),icon:x2},{name:"codepen",attributes:{service:"codepen"},title:(0,Fe._x)("CodePen","social link block variation name"),icon:qde},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Fe._x)("DeviantArt","social link block variation name"),icon:Zde},{name:"discord",attributes:{service:"discord"},title:(0,Fe._x)("Discord","social link block variation name"),icon:Kde},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Fe._x)("Dribbble","social link block variation name"),icon:Yde},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Fe._x)("Dropbox","social link block variation name"),icon:Qde},{name:"etsy",attributes:{service:"etsy"},title:(0,Fe._x)("Etsy","social link block variation name"),icon:Xde},{name:"facebook",attributes:{service:"facebook"},title:(0,Fe._x)("Facebook","social link block variation name"),icon:Jde},{name:"feed",attributes:{service:"feed"},title:(0,Fe._x)("RSS Feed","social link block variation name"),icon:efe},{name:"flickr",attributes:{service:"flickr"},title:(0,Fe._x)("Flickr","social link block variation name"),icon:rfe},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Fe._x)("Foursquare","social link block variation name"),icon:ofe},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Fe._x)("Goodreads","social link block variation name"),icon:nfe},{name:"google",attributes:{service:"google"},title:(0,Fe._x)("Google","social link block variation name"),icon:afe},{name:"github",attributes:{service:"github"},title:(0,Fe._x)("GitHub","social link block variation name"),icon:ife},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Fe._x)("Gravatar","social link block variation name"),icon:lfe},{name:"instagram",attributes:{service:"instagram"},title:(0,Fe._x)("Instagram","social link block variation name"),icon:sfe},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Fe._x)("Last.fm","social link block variation name"),icon:cfe},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Fe._x)("LinkedIn","social link block variation name"),icon:ufe},{name:"mail",attributes:{service:"mail"},title:(0,Fe._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:pfe},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Fe._x)("Mastodon","social link block variation name"),icon:mfe},{name:"meetup",attributes:{service:"meetup"},title:(0,Fe._x)("Meetup","social link block variation name"),icon:dfe},{name:"medium",attributes:{service:"medium"},title:(0,Fe._x)("Medium","social link block variation name"),icon:ffe},{name:"patreon",attributes:{service:"patreon"},title:(0,Fe._x)("Patreon","social link block variation name"),icon:hfe},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Fe._x)("Pinterest","social link block variation name"),icon:gfe},{name:"pocket",attributes:{service:"pocket"},title:(0,Fe._x)("Pocket","social link block variation name"),icon:vfe},{name:"reddit",attributes:{service:"reddit"},title:(0,Fe._x)("Reddit","social link block variation name"),icon:bfe},{name:"skype",attributes:{service:"skype"},title:(0,Fe._x)("Skype","social link block variation name"),icon:yfe,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Fe._x)("Snapchat","social link block variation name"),icon:_fe},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Fe._x)("SoundCloud","social link block variation name"),icon:xfe},{name:"spotify",attributes:{service:"spotify"},title:(0,Fe._x)("Spotify","social link block variation name"),icon:kfe},{name:"telegram",attributes:{service:"telegram"},title:(0,Fe._x)("Telegram","social link block variation name"),icon:wfe},{name:"threads",attributes:{service:"threads"},title:(0,Fe._x)("Threads","social link block variation name"),icon:Cfe},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Fe._x)("TikTok","social link block variation name"),icon:Sfe},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Fe._x)("Tumblr","social link block variation name"),icon:Tfe},{name:"twitch",attributes:{service:"twitch"},title:(0,Fe._x)("Twitch","social link block variation name"),icon:Pfe},{name:"twitter",attributes:{service:"twitter"},title:(0,Fe._x)("Twitter","social link block variation name"),icon:Efe},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Fe._x)("Vimeo","social link block variation name"),icon:Bfe},{name:"vk",attributes:{service:"vk"},title:(0,Fe._x)("VK","social link block variation name"),icon:Ife},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Fe._x)("WhatsApp","social link block variation name"),icon:Nfe},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Fe._x)("X","social link block variation name"),icon:Lfe},{name:"yelp",attributes:{service:"yelp"},title:(0,Fe._x)("Yelp","social link block variation name"),icon:Rfe},{name:"youtube",attributes:{service:"youtube"},title:(0,Fe._x)("YouTube","social link block variation name"),icon:Afe}];Ffe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var Hfe=Ffe;var{fieldsKey:nBe,formKey:aBe}=j(jfe.privateApis),{name:Ufe}=Z8,K8={icon:Sv,edit:Ofe,variations:Hfe};window.__experimentalContentOnlyInspectorFields&&(K8[nBe]=[{id:"link",label:(0,JV.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})},{id:"label",label:(0,JV.__)("Label"),type:"text"}],K8[aBe]={fields:["link","label"]});var iBe=()=>R({name:Ufe,metadata:Z8,settings:K8});var rO={};K(rO,{init:()=>dBe,metadata:()=>Q8,name:()=>Yfe,settings:()=>Qfe});var Y8=n(P(),1),tO=n(y(),1),lBe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",o=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),a={...e,className:t?.replace(o,"").trim()},i=t?.match(o)?.[0]?.trim();return i&&Object.assign(a,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),a},sBe=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:lBe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:a}}=e,i=C(a,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,tO.jsx)("ul",{...Y8.useBlockProps.save({className:i,style:l}),children:(0,tO.jsx)(Y8.InnerBlocks.Content,{})})}}],Gfe=sBe;var Wfe=n(H(),1),Bo=n(P(),1),Rs=n(O(),1),Ba=n(N(),1),$fe=n(F(),1);var _n=n(y(),1),cBe=[{label:(0,Ba.__)("Default"),value:""},{label:(0,Ba.__)("Small"),value:"has-small-icon-size"},{label:(0,Ba.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Ba.__)("Large"),value:"has-large-icon-size"},{label:(0,Ba.__)("Huge"),value:"has-huge-icon-size"}];function uBe(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:a,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:p,openInNewTab:m,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:g,hasSelectedStyleState:v}=(0,$fe.useSelect)(L=>{let{getBlockCount:E,hasSelectedInnerBlock:B,hasSelectedStyleState:A}=j(L(Bo.store));return{hasSocialIcons:E(t)>0,hasSelectedChild:B(t),hasSelectedStyleState:A(t)}},[t]),b=i||g,_=r.className?.includes("is-style-logos-only"),k=Z();(0,Wfe.useEffect)(()=>{if(_){let L;return l(E=>(L={iconBackgroundColor:E.iconBackgroundColor,iconBackgroundColorValue:E.iconBackgroundColorValue,customIconBackgroundColor:E.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...L})}},[_,l]);let x=C(f,{"has-visible-labels":d,"has-icon-color":a.color||p,"has-icon-background-color":o.color||u}),w=(0,Bo.useBlockProps)({className:x}),S=(0,Bo.useInnerBlocksProps)(w,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||b?Bo.InnerBlocks.ButtonBlockAppender:void 0}),T=[{value:a.color||p,onChange:L=>{c(L),l({iconColorValue:L})},label:(0,Ba.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];_||T.push({value:o.color||u,onChange:L=>{s(L),l({iconBackgroundColorValue:L})},label:(0,Ba.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let I=(0,Bo.__experimentalUseMultipleOriginColorsAndGradients)(),D=I.hasColorsOrGradients&&!v;return(0,_n.jsxs)(_n.Fragment,{children:[(0,_n.jsx)(Bo.InspectorControls,{children:(0,_n.jsxs)(Rs.__experimentalToolsPanel,{label:(0,Ba.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:k,children:[(0,_n.jsx)(Rs.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Ba.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,_n.jsx)(Rs.SelectControl,{label:(0,Ba.__)("Icon size"),onChange:L=>{l({size:L===""?void 0:L})},value:f??"",options:cBe})}),(0,_n.jsx)(Rs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ba.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,_n.jsx)(Rs.ToggleControl,{label:(0,Ba.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,_n.jsx)(Rs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ba.__)("Open links in new tab"),hasValue:()=>!!m,onDeselect:()=>l({openInNewTab:!1}),children:(0,_n.jsx)(Rs.ToggleControl,{label:(0,Ba.__)("Open links in new tab"),checked:m,onChange:()=>l({openInNewTab:!m})})})]})}),D&&(0,_n.jsxs)(Bo.InspectorControls,{group:"color",children:[T.map(({onChange:L,label:E,value:B,resetAllFilter:A})=>(0,_n.jsx)(Bo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:B,label:E,onColorChange:L,isShownByDefault:!0,resetAllFilter:A,enableAlpha:!0,clearable:!0}],panelId:t,...I},`social-links-color-${E}`)),!_&&(0,_n.jsx)(Bo.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})]}),(0,_n.jsx)("ul",{...S})]})}var pBe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},qfe=(0,Bo.withColors)(pBe)(uBe);var Q8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,html:!1,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},contentRole:!0,listView:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"};var X8=n(P(),1),Zfe=n(y(),1);function Kfe(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:a}}=e,i=C(a,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),l=X8.useBlockProps.save({className:i}),s=X8.useInnerBlocksProps.save(l);return(0,Zfe.jsx)("ul",{...s})}var{name:Yfe}=Q8,Qfe={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:Sv,edit:qfe,save:Kfe,deprecated:Gfe},dBe=()=>R({name:Yfe,metadata:Q8,settings:Qfe});var oO={};K(oO,{init:()=>_Be,metadata:()=>e7,name:()=>phe,settings:()=>mhe});var Xfe=n(P(),1),Jfe=n(y(),1),fBe=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){let{height:t,width:r}=e;return{...e,width:r!==void 0?`${r}px`:void 0,height:t!==void 0?`${t}px`:void 0}},save({attributes:e}){return(0,Jfe.jsx)("div",{...Xfe.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],ehe=fBe;var xn=n(P(),1),ahe=n(O(),1),Z0=n(H(),1),J8=n(F(),1);var q0=n(N(),1),Uc=n(P(),1),Ml=n(O(),1),rhe=n(ve(),1);var k2=0;var ni=n(y(),1),{useSpacingSizes:hBe}=j(Uc.privateApis);function the({label:e,onChange:t,isResizing:r,value:o=""}){let a=(0,rhe.useInstanceId)(Ml.__experimentalUnitControl,"block-spacer-height-input"),i=hBe(),[l]=(0,Uc.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,Ml.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,p]=(0,Ml.__experimentalParseQuantityAndUnitFromRawValue)(o),m=(0,Uc.isValueSpacingPreset)(o)?o:[u,r?"px":p].join("");return(0,ni.jsx)(ni.Fragment,{children:i?.length<2?(0,ni.jsx)(Ml.__experimentalUnitControl,{id:a,isResetValueOnUnitChange:!0,min:k2,onChange:t,value:m,units:c,label:e}):(0,ni.jsx)("div",{className:"tools-panel-item-spacing",children:(0,ni.jsx)(Uc.__experimentalSpacingSizesControl,{values:{all:m},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function ohe({setAttributes:e,orientation:t,height:r,width:o,isResizing:a}){let i=Z();return(0,ni.jsx)(Uc.InspectorControls,{children:(0,ni.jsxs)(Ml.__experimentalToolsPanel,{label:(0,q0.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,ni.jsx)(Ml.__experimentalToolsPanelItem,{label:(0,q0.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,ni.jsx)(the,{label:(0,q0.__)("Width"),value:o,onChange:l=>e({width:l}),isResizing:a})}),t!=="horizontal"&&(0,ni.jsx)(Ml.__experimentalToolsPanelItem,{label:(0,q0.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,ni.jsx)(the,{label:(0,q0.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:a})})]})})}var zl=n(y(),1),{useSpacingSizes:gBe}=j(xn.privateApis),nhe=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:a,isResizing:i,setIsResizing:l,...s})=>{let c=p=>e==="horizontal"?p.clientWidth:p.clientHeight,u=p=>`${c(p)}px`;return(0,zl.jsx)(ahe.ResizableBox,{className:C("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":a}),onResizeStart:(p,m,d)=>{let f=u(d);t(f),r(f)},onResize:(p,m,d)=>{r(u(d)),i||l(!0)},onResizeStop:(p,m,d)=>{let f=c(d);o(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:a,...s})},vBe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:a,__unstableParentLayout:i,className:l})=>{let s=(0,J8.useSelect)(ee=>ee(xn.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=a,{orientation:u,type:p,default:{type:m}={}}=i||{},d=p==="flex"||!p&&m==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:g,style:v={}}=e,{layout:b={}}=v,{selfStretch:_,flexSize:k}=b,x=gBe(),[w,S]=(0,Z0.useState)(!1),[T,I]=(0,Z0.useState)(null),[D,L]=(0,Z0.useState)(null),E=()=>o(!1),B=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:A}=(0,J8.useDispatch)(xn.store),z=ee=>{B(),d&&r({style:{...v,layout:{...b,flexSize:ee,selfStretch:"fixed"}}}),r({height:ee}),I(null)},U=ee=>{B(),d&&r({style:{...v,layout:{...b,flexSize:ee,selfStretch:"fixed"}}}),r({width:ee}),L(null)},q=()=>{if(!d)return T||(0,xn.getSpacingPresetCssVar)(h)||void 0},G=()=>{if(!d)return D||(0,xn.getSpacingPresetCssVar)(g)||void 0},W=f==="horizontal"?D||k:T||k,V={height:f==="horizontal"?24:q(),width:f==="horizontal"?G():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?W:void 0,flexGrow:d&&w?0:void 0},Q=ee=>ee==="horizontal"?(0,zl.jsx)(nhe,{minWidth:k2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:ee,onResizeStart:E,onResize:L,onResizeStop:U,isSelected:t,isResizing:w,setIsResizing:S}):(0,zl.jsx)(zl.Fragment,{children:(0,zl.jsx)(nhe,{minHeight:k2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:ee,onResizeStart:E,onResize:I,onResizeStop:z,isSelected:t,isResizing:w,setIsResizing:S})});(0,Z0.useEffect)(()=>{let ee=te=>{A(),r(te)};if(d&&_!=="fill"&&_!=="fit"&&k===void 0)if(f==="horizontal"){let te=(0,xn.getCustomValueFromPreset)(g,x)||(0,xn.getCustomValueFromPreset)(h,x)||"100px";ee({width:"0px",style:{...v,layout:{...b,flexSize:te,selfStretch:"fixed"}}})}else{let te=(0,xn.getCustomValueFromPreset)(h,x)||(0,xn.getCustomValueFromPreset)(g,x)||"100px";ee({height:"0px",style:{...v,layout:{...b,flexSize:te,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?ee(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||k)&&ee({...f==="horizontal"?{width:k}:{height:k},style:{...v,layout:{...b,flexSize:void 0,selfStretch:void 0}}})},[v,k,h,f,d,b,_,r,x,g,A]);let Y=(0,xn.useBlockEditingMode)();return(0,zl.jsxs)(zl.Fragment,{children:[(0,zl.jsx)("div",{...(0,xn.useBlockProps)({style:V,className:C(l,{"custom-sizes-disabled":s})}),children:Y==="default"&&Q(f)}),!d&&(0,zl.jsx)(ohe,{setAttributes:r,height:T||h,width:D||g,orientation:f,isResizing:w})]})},ihe=vBe;var e7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"};var lhe=n($(),1),yBe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,lhe.createBlock)("core/separator",{anchor:e||void 0})}]},she=yBe;var w2=n(P(),1),che=n(y(),1);function uhe({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:a}={}}=o||{},i=a==="fill"||a==="fit"?void 0:t;return(0,che.jsx)("div",{...w2.useBlockProps.save({style:{height:(0,w2.getSpacingPresetCssVar)(i),width:(0,w2.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:phe}=e7,mhe={icon:sI,transforms:she,edit:ihe,save:uhe,deprecated:ehe},_Be=()=>R({name:phe,metadata:e7,settings:mhe});var iO={};K(iO,{init:()=>wBe,metadata:()=>s7,name:()=>whe,settings:()=>Che});var bhe=n(N(),1),qf=n(P(),1),a7=n(F(),1),yhe=n(H(),1);var n7=n(P(),1),Q0=n(O(),1),o7=n(N(),1),ghe=n(F(),1);var aO=n(N(),1),r7=n(P(),1),C2=n(O(),1),hhe=n(F(),1);var dhe=n(N(),1),fhe=n($(),1),nO=n(P(),1),t7=n(F(),1);function K0(e){let t=(0,t7.useRegistry)(),{insertBlock:r,removeBlock:o,moveBlocksToPosition:a,updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:l}=(0,t7.useDispatch)(nO.store),s=()=>{let{getBlocks:m,getBlockAttributes:d}=t.select(nO.store),f=e?d(e):void 0,h=e?m(e).find(g=>g.name==="core/tab-panels"):void 0;return{tabPanelsClientId:h?.clientId??null,tabPanelBlocks:h?.innerBlocks??[],activeIndex:f?.editorActiveTabIndex??f?.activeTabIndex??0}};return{insertTab:m=>{let{tabPanelsClientId:d,tabPanelBlocks:f}=s();if(!d)return;let h=m??f.length;r((0,fhe.createBlock)("core/tab-panel",{label:(0,dhe.__)("Tab")}),h,d,!1),l(),i(e,{editorActiveTabIndex:h})},removeTab:m=>{let{tabPanelBlocks:d,activeIndex:f}=s(),h=d.length;if(h<=1)return;let g=m??f,v=d[g];if(!v)return;let b=g>=h-1?h-2:g;l(),i(e,{editorActiveTabIndex:b}),o(v.clientId,!1)},moveTab:m=>{let{tabPanelsClientId:d,tabPanelBlocks:f,activeIndex:h}=s();if(!d)return;let g=h+m,v=f[h];!v||g<0||g>=f.length||(l(),i(e,{editorActiveTabIndex:g}),a([v.clientId],d,d,g))}}}var Y0=n(y(),1);function Bm({tabsClientId:e}){let{insertTab:t,removeTab:r}=K0(e),o=(0,hhe.useSelect)(a=>e?(a(r7.store).getBlocks(e).find(l=>l.name==="core/tab-panels")?.innerBlocks.length??0)<=1:!0,[e]);return(0,Y0.jsx)(r7.BlockControls,{group:"other",children:(0,Y0.jsxs)(C2.ToolbarGroup,{children:[(0,Y0.jsx)(C2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>t(),text:(0,aO.__)("Add tab")}),(0,Y0.jsx)(C2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>r(),text:(0,aO.__)("Remove tab"),disabled:o})]})})}var Gc=n(y(),1);function vhe({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,ghe.useDispatch)(n7.store),a=Z();return(0,Gc.jsxs)(Gc.Fragment,{children:[(0,Gc.jsx)(Bm,{tabsClientId:e}),(0,Gc.jsx)(n7.InspectorControls,{children:(0,Gc.jsx)(Q0.__experimentalToolsPanel,{label:(0,o7.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:a,children:(0,Gc.jsx)(Q0.__experimentalToolsPanelItem,{label:(0,o7.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,Gc.jsx)(Q0.CheckboxControl,{label:(0,o7.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var i7=n(y(),1),xBe=[["core/paragraph",{placeholder:(0,bhe.__)("Type / to choose a block")}]];function _he({clientId:e,isSelected:t}){let{activeTabIndex:r,editorActiveTabIndex:o,blockIndex:a,hasInnerBlocksSelected:i,tabsClientId:l}=(0,a7.useSelect)(g=>{let{getBlockRootClientId:v,getBlockIndex:b,hasSelectedInnerBlock:_,getBlockAttributes:k}=g(qf.store),x=v(e),w=v(x),S=k(w)??{},T=b(e),I=_(e,!0);return{activeTabIndex:S.activeTabIndex,editorActiveTabIndex:S.editorActiveTabIndex,blockIndex:T,hasInnerBlocksSelected:I,tabsClientId:w}},[e]),s=o??r,{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,a7.useDispatch)(qf.store);(0,yhe.useEffect)(()=>{(t||i)&&l&&s!==a&&(u(),c(l,{editorActiveTabIndex:a}))},[t,i,l,s,a,c,u]);let p=s===a,m=r===a,d=t||i||p,f=(0,qf.useBlockProps)({hidden:!d,tabIndex:d?0:-1}),h=(0,qf.useInnerBlocksProps)(f,{template:xBe});return(0,i7.jsxs)("section",{...h,children:[(0,i7.jsx)(vhe,{tabsClientId:l,blockIndex:a,isDefaultTab:m}),d&&h.children]})}var l7=n(P(),1),xhe=n(y(),1);function khe(){let e=l7.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=l7.useInnerBlocksProps.save(e);return(0,xhe.jsx)("section",{...t})}var s7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tab-panel",title:"Tab Panel",description:"Content for a tab in a tabbed interface.",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tab-panels"],usesContext:["core/tabs-id"],supports:{anchor:!0,html:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,spacing:{blockGap:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0}},visibility:!1},providesContext:{"core/tab-label":"label"},style:"wp-block-tab-panel"};var{name:whe}=s7,Che={icon:LI,edit:_he,save:khe},wBe=()=>R({name:whe,metadata:s7,settings:Che});var sO={};K(sO,{init:()=>TBe,metadata:()=>u7,name:()=>Bhe,settings:()=>Ihe});var X0=n(P(),1),She=n(F(),1),lO=n(N(),1);var Zf=n(y(),1),CBe=[["core/tab-panel",{label:(0,lO.__)("Tab")}],["core/tab-panel",{label:(0,lO.__)("Tab")}]];function The({clientId:e}){let t=(0,X0.useBlockProps)(),r=(0,X0.useInnerBlocksProps)(t,{template:CBe,templateLock:!1,renderAppender:!1}),o=(0,She.useSelect)(a=>a(X0.store).getBlockRootClientId(e),[e]);return(0,Zf.jsxs)(Zf.Fragment,{children:[(0,Zf.jsx)(Bm,{tabsClientId:o}),(0,Zf.jsx)("div",{...r})]})}var c7=n(P(),1),Phe=n(y(),1);function Ehe(){let e=c7.useBlockProps.save(),t=c7.useInnerBlocksProps.save(e);return(0,Phe.jsx)("div",{...t})}var u7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tab-panels",title:"Tab Panels",description:"Container for tab panel content in a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tab-panel"],supports:{html:!1,visibility:!1,lock:!1,color:{background:!0,text:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var{name:Bhe}=u7,Ihe={icon:q1,edit:The,save:Ehe},TBe=()=>R({name:Bhe,metadata:u7,settings:Ihe});var bO={};K(bO,{init:()=>UBe,metadata:()=>p7,name:()=>Uhe,settings:()=>Ghe});var Wc=n(N(),1);var lr=n(P(),1),st=n(y(),1),Nhe={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},cO={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},PBe={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:cO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:cO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:cO}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:a,caption:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,lr.__experimentalGetColorClassesAndStyles)(e),c=(0,lr.__experimentalGetBorderClassesAndStyles)(e),u=C(s.className,c.className,{"has-fixed-layout":t}),p=!lr.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,st.jsx)(h,{children:f.map(({cells:g},v)=>(0,st.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x,colspan:w,rowspan:S},T)=>{let I=C({[`has-text-align-${x}`]:x});return(0,st.jsx)(lr.RichText.Content,{className:I||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0,colSpan:w,rowSpan:S},T)})},v))})};return(0,st.jsxs)("figure",{...lr.useBlockProps.save(),children:[(0,st.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,st.jsx)(m,{type:"head",rows:r}),(0,st.jsx)(m,{type:"body",rows:o}),(0,st.jsx)(m,{type:"foot",rows:a})]}),p&&(0,st.jsx)(lr.RichText.Content,{tagName:"figcaption",value:i,className:(0,lr.__experimentalGetElementClassName)("caption")})]})}},uO={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},EBe={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:uO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:uO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:uO}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:a,caption:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,lr.__experimentalGetColorClassesAndStyles)(e),c=(0,lr.__experimentalGetBorderClassesAndStyles)(e),u=C(s.className,c.className,{"has-fixed-layout":t}),p=!lr.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,st.jsx)(h,{children:f.map(({cells:g},v)=>(0,st.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x},w)=>{let S=C({[`has-text-align-${x}`]:x});return(0,st.jsx)(lr.RichText.Content,{className:S||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0},w)})},v))})};return(0,st.jsxs)("figure",{...lr.useBlockProps.save(),children:[(0,st.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,st.jsx)(m,{type:"head",rows:r}),(0,st.jsx)(m,{type:"body",rows:o}),(0,st.jsx)(m,{type:"foot",rows:a})]}),p&&(0,st.jsx)(lr.RichText.Content,{tagName:"figcaption",value:i})]})}},pO={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},BBe={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:pO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:pO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:pO}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:o,foot:a,backgroundColor:i,caption:l}=e;if(!r.length&&!o.length&&!a.length)return null;let c=(0,lr.getColorClassName)("background-color",i),u=C(c,{"has-fixed-layout":t,"has-background":!!c}),p=!lr.RichText.isEmpty(l),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,st.jsx)(h,{children:f.map(({cells:g},v)=>(0,st.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x},w)=>{let S=C({[`has-text-align-${x}`]:x});return(0,st.jsx)(lr.RichText.Content,{className:S||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0},w)})},v))})};return(0,st.jsxs)("figure",{...lr.useBlockProps.save(),children:[(0,st.jsxs)("table",{className:u===""?void 0:u,children:[(0,st.jsx)(m,{type:"head",rows:r}),(0,st.jsx)(m,{type:"body",rows:o}),(0,st.jsx)(m,{type:"foot",rows:a})]}),p&&(0,st.jsx)(lr.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Nhe&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Nhe[e.backgroundColor]}}})},mO={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},IBe={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:mO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:mO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:mO}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:a,backgroundColor:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,lr.getColorClassName)("background-color",i),c=C(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:p,rows:m})=>{if(!m.length)return null;let d=`t${p}`;return(0,st.jsx)(d,{children:m.map(({cells:f},h)=>(0,st.jsx)("tr",{children:f.map(({content:g,tag:v,scope:b},_)=>(0,st.jsx)(lr.RichText.Content,{tagName:v,value:g,scope:v==="th"?b:void 0},_))},h))})};return(0,st.jsxs)("table",{className:c,children:[(0,st.jsx)(u,{type:"head",rows:r}),(0,st.jsx)(u,{type:"body",rows:o}),(0,st.jsx)(u,{type:"foot",rows:a})]})}},Dhe=[PBe,EBe,BBe,IBe];var ai=n(H(),1),Io=n(P(),1),Tt=n(N(),1),oo=n(O(),1);var NBe=["align"];function Lhe({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function DBe(e){if(!Im(e.head))return e.head[0];if(!Im(e.body))return e.body[0];if(!Im(e.foot))return e.foot[0]}function Rhe(e,t,r){let{sectionName:o,rowIndex:a,columnIndex:i}=t;return e[o]?.[a]?.cells?.[i]?.[r]}function dO(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:a,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([l,s])=>a&&a!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((p,m)=>LBe({sectionName:l,columnIndex:m,rowIndex:u},t)?r(p):p)})]))}function LBe(e,t){if(!e||!t)return!1;switch(t.type){case"column":return t.type==="column"&&e.columnIndex===t.columnIndex;case"cell":return t.type==="cell"&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function fO(e,{sectionName:t,rowIndex:r,columnCount:o}){let a=DBe(e),i=o===void 0?a?.cells?.length:o;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((l,s)=>{let c=a?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([p])=>NBe.includes(p))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function Ahe(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,a)=>a!==r)}}function Mhe(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,a])=>Im(a)?[o,a]:[o,a.map(i=>Vhe(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function zhe(e,{columnIndex:t}){let r=Object.fromEntries(Object.entries(e).filter(([o])=>["head","body","foot"].includes(o)));return Object.fromEntries(Object.entries(r).map(([o,a])=>Im(a)?[o,a]:[o,a.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function hO(e,t){if(!Im(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return fO(e,{sectionName:t,rowIndex:0,columnCount:r})}function Im(e){return!e||!e.length||e.every(Vhe)}function Vhe(e){return!(e.cells&&e.cells.length)}var vt=n(y(),1),RBe=[{icon:U9,title:(0,Tt.__)("Align column left"),align:"left"},{icon:H9,title:(0,Tt.__)("Align column center"),align:"center"},{icon:q9,title:(0,Tt.__)("Align column right"),align:"right"}],ABe={head:(0,Tt.__)("Header cell text"),body:(0,Tt.__)("Body cell text"),foot:(0,Tt.__)("Footer cell text")},MBe={head:(0,Tt._x)("Header label","table header"),foot:(0,Tt._x)("Footer label","table footer")};function zBe({name:e,...t}){let r=`t${e}`;return(0,vt.jsx)(r,{...t})}function VBe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:a,head:i,foot:l}=e,[s,c]=(0,ai.useState)(2),[u,p]=(0,ai.useState)(2),[m,d]=(0,ai.useState)(),f=(0,Io.__experimentalUseColorProps)(e),h=(0,Io.__experimentalUseBorderProps)(e),g=(0,Io.useBlockEditingMode)(),v=(0,ai.useRef)(),[b,_]=(0,ai.useState)(!1),k=Z();function x(J){p(J)}function w(J){c(J)}function S(J){J.preventDefault(),t(Lhe({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function T(){t({hasFixedLayout:!a})}let I=(0,ai.useCallback)(function(J){m&&t(ce=>dO(ce,m,ie=>({...ie,content:J})))},[m,t]);function D(J){if(!m)return;let ce={type:"column",columnIndex:m.columnIndex},ie=dO(e,ce,we=>({...we,align:J}));t(ie)}function L(){if(m)return Rhe(e,m,"align")}function E(){t(hO(e,"head"))}function B(){t(hO(e,"foot"))}function A(J){if(!m)return;let{sectionName:ce,rowIndex:ie}=m,we=ie+J;t(fO(e,{sectionName:ce,rowIndex:we})),d({sectionName:ce,rowIndex:we,columnIndex:0,type:"cell"})}function z(){A(0)}function U(){A(1)}function q(){if(!m)return;let{sectionName:J,rowIndex:ce}=m;d(),t(Ahe(e,{sectionName:J,rowIndex:ce}))}function G(J=0){if(!m)return;let{columnIndex:ce}=m,ie=ce+J;t(Mhe(e,{columnIndex:ie})),d({rowIndex:0,columnIndex:ie,type:"cell"})}function W(){G(0)}function V(){G(1)}function Q(){if(!m)return;let{sectionName:J,columnIndex:ce}=m;d(),t(zhe(e,{sectionName:J,columnIndex:ce}))}(0,ai.useEffect)(()=>{o||d()},[o]),(0,ai.useEffect)(()=>{b&&(v?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[b]);let Y=["head","body","foot"].filter(J=>!Im(e[J])),ee=[{icon:UI,title:(0,Tt.__)("Insert row before"),isDisabled:!m,onClick:z},{icon:HI,title:(0,Tt.__)("Insert row after"),isDisabled:!m,onClick:U},{icon:WI,title:(0,Tt.__)("Delete row"),isDisabled:!m,onClick:q},{icon:zI,title:(0,Tt.__)("Insert column before"),isDisabled:!m,onClick:W},{icon:AI,title:(0,Tt.__)("Insert column after"),isDisabled:!m,onClick:V},{icon:OI,title:(0,Tt.__)("Delete column"),isDisabled:!m,onClick:Q}],te=Y.map(J=>(0,vt.jsx)(zBe,{name:J,children:e[J].map(({cells:ce},ie)=>(0,vt.jsx)("tr",{children:ce.map((we,le)=>{let de=m?.sectionName===J&&m?.rowIndex===ie&&m?.columnIndex===le;return(0,vt.jsx)(OBe,{name:J,rowIndex:ie,columnIndex:le,onChange:de?I:void 0,setSelectedCell:d,...we},le)})},ie))},J)),oe=!Y.length;return(0,vt.jsxs)("figure",{...(0,Io.useBlockProps)({ref:v}),children:[!oe&&g==="default"&&(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(Io.BlockControls,{group:"block",children:(0,vt.jsx)(Io.AlignmentControl,{label:(0,Tt.__)("Change column alignment"),alignmentControls:RBe,value:L(),onChange:J=>D(J)})}),(0,vt.jsx)(Io.BlockControls,{group:"other",children:(0,vt.jsx)(oo.ToolbarDropdownMenu,{icon:qI,label:(0,Tt.__)("Edit table"),controls:ee})})]}),(0,vt.jsx)(Io.InspectorControls,{children:(0,vt.jsxs)(oo.__experimentalToolsPanel,{label:(0,Tt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:k,children:[(0,vt.jsx)(oo.__experimentalToolsPanelItem,{hasValue:()=>a!==!0,label:(0,Tt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,vt.jsx)(oo.ToggleControl,{label:(0,Tt.__)("Fixed width table cells"),checked:!!a,onChange:T})}),!oe&&(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(oo.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,Tt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,vt.jsx)(oo.ToggleControl,{label:(0,Tt.__)("Header section"),checked:!!(i&&i.length),onChange:E})}),(0,vt.jsx)(oo.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,Tt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,vt.jsx)(oo.ToggleControl,{label:(0,Tt.__)("Footer section"),checked:!!(l&&l.length),onChange:B})})]})]})}),!oe&&(0,vt.jsx)("table",{className:C(f.className,h.className,{"has-fixed-layout":a,"has-individual-borders":(0,oo.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:te}),oe?(0,vt.jsx)(oo.Placeholder,{label:(0,Tt.__)("Table"),icon:(0,vt.jsx)(Io.BlockIcon,{icon:F1,showColors:!0}),instructions:(0,Tt.__)("Insert a table for sharing data."),children:(0,vt.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:S,children:[(0,vt.jsx)(oo.TextControl,{type:"number",label:(0,Tt.__)("Column count"),value:u,onChange:x,min:"1",className:"blocks-table__placeholder-input"}),(0,vt.jsx)(oo.TextControl,{type:"number",label:(0,Tt.__)("Row count"),value:s,onChange:w,min:"1",className:"blocks-table__placeholder-input"}),(0,vt.jsx)(oo.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Tt.__)("Create Table")})]})}):(0,vt.jsx)(Ao,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,Tt.__)("Table caption text"),showToolbarButton:o&&g==="default"})]})}var OBe=(0,ai.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:a,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:p}){return(0,vt.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:a,className:C({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,vt.jsx)(Io.RichText,{identifier:`${t}.${i}.cells.${l}.content`,value:c,onChange:u,onFocus:()=>{p({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":ABe[t],placeholder:MBe[t]})})}),Ohe=VBe;var p7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!0},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-table > table",spacing:".wp-block-table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"};var Vl=n(P(),1),As=n(y(),1);function Fhe({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:a,caption:i}=e;if(!r.length&&!o.length&&!a.length)return null;let s=(0,Vl.__experimentalGetColorClassesAndStyles)(e),c=(0,Vl.__experimentalGetBorderClassesAndStyles)(e),u=C(s.className,c.className,{"has-fixed-layout":t}),p=!Vl.RichText.isEmpty(i),m=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,As.jsx)(h,{children:f.map(({cells:g},v)=>(0,As.jsx)("tr",{children:g.map(({content:b,tag:_,scope:k,align:x,colspan:w,rowspan:S},T)=>{let I=C({[`has-text-align-${x}`]:x});return(0,As.jsx)(Vl.RichText.Content,{className:I||void 0,"data-align":x,tagName:_,value:b,scope:_==="th"?k:void 0,colSpan:w,rowSpan:S},T)})},v))})};return(0,As.jsxs)("figure",{...Vl.useBlockProps.save(),children:[(0,As.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,As.jsx)(m,{type:"head",rows:r}),(0,As.jsx)(m,{type:"body",rows:o}),(0,As.jsx)(m,{type:"foot",rows:a})]}),p&&(0,As.jsx)(Vl.RichText.Content,{tagName:"figcaption",value:i,className:(0,Vl.__experimentalGetElementClassName)("caption")})]})}var Hhe=n($(),1);function gO(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var vO=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),HBe=e=>({table:{children:{thead:{allowEmpty:!0,children:vO(e)},tfoot:{allowEmpty:!0,children:vO(e)},tbody:{allowEmpty:!0,children:vO(e)}}}}),jBe={from:[{type:"raw",selector:"table",schema:HBe,transform:e=>{let t=Array.from(e.children).reduce((r,o)=>{if(!o.children.length)return r;let a=o.nodeName.toLowerCase().slice(1),i=Array.from(o.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,p)=>{let m=gO(p.getAttribute("rowspan")),d=gO(p.getAttribute("colspan")),{textAlign:f}=p.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:p.nodeName.toLowerCase(),content:p.innerHTML,rowspan:m,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[a]=i,r},{});return(0,Hhe.createBlock)("core/table",t)}}]},jhe=jBe;var{name:Uhe}=p7,Ghe={icon:F1,example:{attributes:{head:[{cells:[{content:(0,Wc.__)("Version"),tag:"th"},{content:(0,Wc.__)("Jazz Musician"),tag:"th"},{content:(0,Wc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Wc.__)("Jaco Pastorius"),tag:"td"},{content:(0,Wc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Wc.__)("Betty Carter"),tag:"td"},{content:(0,Wc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Wc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Wc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:jhe,edit:Ohe,save:Fhe,deprecated:Dhe},UBe=()=>R({name:Uhe,metadata:p7,settings:Ghe});var _O={};K(_O,{init:()=>qBe,metadata:()=>m7,name:()=>oge,settings:()=>nge});var Qu=n(N(),1);var m7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"design",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{anchor:!0,ariaLabel:!0,html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-table-of-contents"};var Ms=n(P(),1),Qhe=n($(),1),qo=n(O(),1),P2=n(F(),1),Xhe=n(H(),1),Wt=n(N(),1),Jhe=n(ve(),1),ege=n(Sr(),1);var $c=n(y(),1),Whe="wp-block-table-of-contents__entry";function J0({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,$c.jsx)($c.Fragment,{children:e.map((a,i)=>{let{content:l,link:s}=a.heading,c=s?(0,$c.jsx)("a",{className:Whe,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,$c.jsx)("span",{className:Whe,children:l}),u=o?"ol":"ul";return(0,$c.jsxs)("li",{children:[c,a.children?(0,$c.jsx)(u,{children:(0,$c.jsx)(J0,{nestedHeadingList:a.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}function S2(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let a=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){a=i;break}t.push({heading:r,children:S2(e.slice(o+1,a))})}else t.push({heading:r,children:null})}),t}var $he=n(AQ(),1),qhe=n(F(),1),Zhe=n(Tn(),1),Khe=n(H(),1),T2=n(pr(),1),d7=n(P(),1);function WBe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:a,getClientIdsOfDescendants:i}=e(d7.store),l=e("core/editor").getPermalink()??null,s=a("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[p=""]=a("core/post-content"),m=i(p),d=1;if(s&&c){let v=m.indexOf(t);for(let[b,_]of m.entries()){if(b>=v)break;o(_)==="core/nextpage"&&d++}}let f=[],h=1,g=null;typeof l=="string"&&(g=s?(0,T2.addQueryArgs)(l,{page:h}):l);for(let v of m){let b=o(v);if(b==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(g=(0,T2.addQueryArgs)((0,T2.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&b==="core/heading"){let _=r(v);if(u&&_.level>u)continue;let k=typeof g=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,Zhe.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:k?`${g}#${_.anchor}`:null})}}return f}function $Be(e,t,r){let{getBlockAttributes:o}=e(d7.store),{updateBlockAttributes:a,__unstableMarkNextChangeAsNotPersistent:i}=t(d7.store),l=o(r);if(l===null)return;let s=WBe(e,r);(0,$he.default)(s,l.headings)||window.queueMicrotask(()=>{i(),a(r,{headings:s})})}function Yhe(e){let t=(0,qhe.useRegistry)();(0,Khe.useEffect)(()=>t.subscribe(()=>$Be(t.select,t.dispatch,e)),[t,e])}var sr=n(y(),1);function yO({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:a,setAttributes:i}){Yhe(a);let l=(0,Ms.useBlockProps)(),s=(0,Jhe.useInstanceId)(yO,"table-of-contents"),{createWarningNotice:c}=(0,P2.useDispatch)(ege.store),u=b=>{b.preventDefault(),c((0,Wt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},p=(0,P2.useSelect)(b=>{let{getBlockRootClientId:_,canInsertBlockType:k}=b(Ms.store),x=_(a);return k("core/list",x)},[a]),{replaceBlocks:m}=(0,P2.useDispatch)(Ms.store),d=Z(),f=S2(e),h=(0,sr.jsxs)(Ms.BlockControls,{children:[(0,sr.jsxs)(qo.ToolbarGroup,{children:[(0,sr.jsx)(qo.ToolbarButton,{icon:(0,Wt.isRTL)()?J1:ev,title:(0,Wt.__)("Unordered"),description:(0,Wt.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:o===!1}),(0,sr.jsx)(qo.ToolbarButton,{icon:(0,Wt.isRTL)()?tv:ll,title:(0,Wt.__)("Ordered"),description:(0,Wt.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:o===!0})]}),p&&(0,sr.jsx)(qo.ToolbarGroup,{children:(0,sr.jsx)(qo.ToolbarButton,{onClick:()=>m(a,(0,Qhe.createBlock)("core/list",{ordered:o,values:(0,Xhe.renderToString)((0,sr.jsx)(J0,{nestedHeadingList:f,ordered:o}))})),children:(0,Wt.__)("Convert to static list")})})]}),g=(0,sr.jsx)(Ms.InspectorControls,{children:(0,sr.jsxs)(qo.__experimentalToolsPanel,{label:(0,Wt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,sr.jsx)(qo.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Wt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,sr.jsx)(qo.ToggleControl,{label:(0,Wt.__)("Only include current page"),checked:t,onChange:b=>i({onlyIncludeCurrentPage:b}),help:t?(0,Wt.__)("Only including headings from the current page (if the post is paginated)."):(0,Wt.__)("Include headings from all pages (if the post is paginated).")})}),(0,sr.jsx)(qo.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Wt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,sr.jsx)(qo.SelectControl,{label:(0,Wt.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Wt.__)("All levels")},{value:"1",label:(0,Wt.__)("Heading 1")},{value:"2",label:(0,Wt.__)("Heading 2")},{value:"3",label:(0,Wt.__)("Heading 3")},{value:"4",label:(0,Wt.__)("Heading 4")},{value:"5",label:(0,Wt.__)("Heading 5")},{value:"6",label:(0,Wt.__)("Heading 6")}],onChange:b=>i({maxLevel:b?parseInt(b):void 0}),help:r?(0,Wt.__)("Only include headings up to and including this level."):(0,Wt.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,sr.jsxs)(sr.Fragment,{children:[(0,sr.jsx)("div",{...l,children:(0,sr.jsx)(qo.Placeholder,{icon:(0,sr.jsx)(Ms.BlockIcon,{icon:Iv}),label:(0,Wt.__)("Table of Contents"),instructions:(0,Wt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,sr.jsxs)(sr.Fragment,{children:[(0,sr.jsx)("nav",{...l,children:(0,sr.jsx)(o?"ol":"ul",{children:(0,sr.jsx)(J0,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:o})})}),h,g]})}var tge=n(P(),1);var f7=n(y(),1);function rge({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,f7.jsx)("nav",{...tge.useBlockProps.save(),children:(0,f7.jsx)(r,{children:(0,f7.jsx)(J0,{nestedHeadingList:S2(e),ordered:t})})})}var{name:oge}=m7,nge={icon:Iv,edit:yO,save:rge,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Qu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Qu.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Qu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Qu.__)("Subheading")}}],attributes:{headings:[{content:(0,Qu.__)("Heading"),level:2},{content:(0,Qu.__)("Subheading"),level:3},{content:(0,Qu.__)("Heading"),level:2},{content:(0,Qu.__)("Subheading"),level:3}]}}},qBe=()=>R({name:oge,metadata:m7,settings:nge});var wO={};K(wO,{init:()=>QBe,metadata:()=>g7,name:()=>cge,settings:()=>uge});var t1=n(N(),1),Xn=n(P(),1),r1=n(O(),1),Kf=n(F(),1),Yf=n(H(),1);var e1=n(N(),1),h7=n(P(),1),xO=n(O(),1);var age=n(F(),1);var E2=n(y(),1);function ige({tabsClientId:e}){let{moveTab:t}=K0(e),{tabCount:r,activeIndex:o}=(0,age.useSelect)(a=>{if(!e)return{tabCount:0,activeIndex:0};let{getBlocks:i,getBlockAttributes:l}=a(h7.store),s=l(e);return{tabCount:i(e).find(u=>u.name==="core/tab-panels")?.innerBlocks.length??0,activeIndex:s?.editorActiveTabIndex??s?.activeTabIndex??0}},[e]);return(0,E2.jsxs)(h7.BlockControls,{group:"parent",children:[(0,E2.jsx)(xO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,e1.isRTL)()?dh:I_,label:(0,e1.__)("Move tab before"),onClick:()=>t(-1),disabled:o<=0,accessibleWhenDisabled:!0}),(0,E2.jsx)(xO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,e1.isRTL)()?I_:dh,label:(0,e1.__)("Move tab after"),onClick:()=>t(1),disabled:o>=r-1,accessibleWhenDisabled:!0})]})}var ii=n(y(),1),ZBe=[];function KBe({attributes:e,clientId:t,setAttributes:r,__unstableLayoutClassNames:o}){let{ariaLabel:a}=e,i=(0,Xn.__experimentalUseColorProps)(e),l=(0,Xn.__experimentalUseBorderProps)(e),s=(0,Xn.__experimentalGetSpacingClassesAndStyles)(e),c=Z(),{tabsClientId:u,tabPanels:p,editorActiveTabIndex:m,activeTabIndex:d}=(0,Kf.useSelect)(z=>{let{getBlockRootClientId:U,getBlockAttributes:q,getBlocks:G}=z(Xn.store),W=U(t),V=q(W),Q=G(W)?.find(Y=>Y.name==="core/tab-panels");return{tabsClientId:W,tabPanels:Q?.innerBlocks??ZBe,editorActiveTabIndex:V?.editorActiveTabIndex,activeTabIndex:V?.activeTabIndex??0}},[t]),f=(0,Kf.useRegistry)(),{isBlockSelected:h,hasSelectedInnerBlock:g}=(0,Kf.useSelect)(Xn.store),{updateBlockAttributes:v,selectBlock:b,__unstableMarkNextChangeAsNotPersistent:_}=(0,Kf.useDispatch)(Xn.store),{insertTab:k,removeTab:x}=K0(u),w=m??d,S=(0,Yf.useMemo)(()=>p.map(z=>({label:z.attributes.label||"",clientId:z.clientId})),[p]);function T(z){u&&z!==w&&f.batch(()=>{b(t),_(),v(u,{editorActiveTabIndex:z})})}function I(z,U){let q=S[z];q?.clientId&&v(q.clientId,{label:U})}let D=(0,Yf.useRef)(),L=(0,Yf.useRef)(S.length);(0,Yf.useEffect)(()=>{let z=L.current;if(L.current=S.length,!D.current||S.length===z||!h(u)&&!g(u,!0))return;(q=>{window.requestAnimationFrame(()=>{let G=D.current?.querySelectorAll("button")?.[q];(G?.querySelector("[contenteditable]")??G)?.focus()})})(w)},[w,g,h,u,S.length]);let E=(0,Xn.useBlockProps)({role:"tablist",ref:D,className:o}),B=C(i.className,l.className),A={...i.style,...l.style,...s.style};return(0,ii.jsxs)(ii.Fragment,{children:[(0,ii.jsx)(Xn.InspectorControls,{group:"settings",children:(0,ii.jsx)(r1.__experimentalToolsPanel,{label:(0,t1.__)("Settings"),resetAll:()=>r({ariaLabel:void 0}),dropdownMenuProps:c,children:(0,ii.jsx)(r1.__experimentalToolsPanelItem,{label:(0,t1.__)("Label"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>r({ariaLabel:void 0}),children:(0,ii.jsx)(r1.TextControl,{label:(0,t1.__)("Label"),help:(0,t1.__)("Briefly describe this tab section for screen reader users. Examples: Event information, Product details, and Account settings."),value:a||"",onChange:z=>r({ariaLabel:z||void 0})})})})}),(0,ii.jsx)(ige,{tabsClientId:u}),(0,ii.jsx)(Bm,{tabsClientId:u}),(0,ii.jsx)("div",{...E,children:S.map((z,U)=>(0,ii.jsx)("button",{type:"button",role:"tab","aria-selected":U===w,className:B||void 0,style:A,tabIndex:-1,onFocus:()=>{T(U)},children:(0,ii.jsx)(Xn.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,t1.__)("Tab title"),value:z.label,onChange:G=>I(U,G),__unstableOnSplitAtEnd:()=>k(U+1),onRemove:()=>x(U)})},z.clientId||U))})]})}var lge=KBe;var qc=n(P(),1),kO=n(y(),1);function sge({attributes:e}){let{tabs:t}=e,r=qc.useBlockProps.save({role:"tablist"}),o=(0,qc.__experimentalGetColorClassesAndStyles)(e),a=(0,qc.__experimentalGetBorderClassesAndStyles)(e),i=(0,qc.__experimentalGetSpacingClassesAndStyles)(e),l=C(o.className,a.className),s={...o.style,...a.style,...i.style};return(0,kO.jsx)("div",{...r,children:t.map((c,u)=>(0,kO.jsx)(qc.RichText.Content,{className:l||void 0,style:s,tagName:"button",value:c.label,type:"button",role:"tab"},u))})}var g7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tab-list",title:"Tab List",description:"Display the tab buttons for a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],usesContext:["core/tabs-list"],attributes:{tabs:{type:"array",source:"query",selector:"button",query:{label:{type:"rich-text",source:"rich-text",role:"content"}},default:[]}},supports:{html:!1,ariaLabel:!0,visibility:!1,lock:!1,color:{background:!0,text:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0},layout:{default:{type:"flex",flexWrap:"wrap"},allowVerticalAlignment:!1,allowOrientation:!1,allowWrap:!1},spacing:{padding:!0,blockGap:!0,__experimentalSkipSerialization:["padding"],__experimentalDefaultControls:{padding:!0,blockGap:!0}}},selectors:{border:".wp-block-tab-list button",color:{background:".wp-block-tab-list button",text:".wp-block-tab-list button"},spacing:{padding:".wp-block-tab-list button"}},style:"wp-block-tab-list",editorStyle:"wp-block-tab-list-editor"};var{name:cge}=g7,uge={icon:NI,edit:lge,save:sge},QBe=()=>R({name:cge,metadata:g7,settings:uge});var CO={};K(CO,{init:()=>rIe,metadata:()=>x7,name:()=>gge,settings:()=>vge});var Qf=n(N(),1);var b7=n(P(),1);var v7=n(P(),1),B2=n(F(),1),pge=n(H(),1),XBe=[];function mge(e){let{tabPanels:t,tabListClientId:r}=(0,B2.useSelect)(l=>{let{getBlocks:s}=l(v7.store),c=s(e),u=c.find(m=>m.name==="core/tab-panels"),p=c.find(m=>m.name==="core/tab-list");return{tabPanels:u?.innerBlocks??XBe,tabListClientId:p?.clientId??null}},[e]),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:a}=(0,B2.useDispatch)(v7.store),{getBlockAttributes:i}=(0,B2.useSelect)(v7.store);(0,pge.useEffect)(()=>{if(!r)return;let l=t.map(c=>({label:c.attributes.label||""})),s=i(r)?.tabs??[];JSON.stringify(l)!==JSON.stringify(s)&&(a(),o(r,{tabs:l}))},[t,r,i,o,a])}var y7=n(y(),1),JBe=[["core/tab-list"],["core/tab-panels"]];function eIe({clientId:e}){mge(e);let t=(0,b7.useBlockProps)(),r=(0,b7.useInnerBlocksProps)(t,{__experimentalCaptureToolbars:!0,template:JBe,templateLock:"all",renderAppender:!1});return(0,y7.jsxs)("div",{...r,children:[(0,y7.jsx)(Bm,{tabsClientId:e}),r.children]})}var dge=eIe;var _7=n(P(),1),fge=n(y(),1);function hge(){let e=_7.useBlockProps.save(),t=_7.useInnerBlocksProps.save(e);return(0,fge.jsx)("div",{...t})}var x7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",category:"design",textdomain:"default",allowedBlocks:["core/tab-list","core/tab-panels"],attributes:{activeTabIndex:{type:"number",default:0},editorActiveTabIndex:{type:"number",role:"local"}},supports:{align:!0,anchor:!0,color:{text:!0,background:!0,__experimentalDefaultControls:{text:!0,background:!0}},layout:{allowEditing:!1},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0}},usesContext:["core/tabs-list","core/tabs-id"],style:"wp-block-tabs",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:gge}=x7,vge={icon:KI,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,Qf.__)("Tab 1")},{label:(0,Qf.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,Qf.sprintf)((0,Qf.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Qf.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]}))}]},edit:dge,save:hge},rIe=()=>R({name:gge,metadata:x7,settings:vge});var TO={};K(TO,{init:()=>sIe,metadata:()=>k7,name:()=>Tge,settings:()=>Pge});var SO=n($(),1),oIe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,SO.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,SO.createBlock)("core/categories")}]},bge=oIe;var k7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of popular keywords, each sized by how often it appears.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{anchor:!0,html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var $t=n(O(),1),xge=n(F(),1),Ia=n(N(),1),o1=n(P(),1),kge=n(re(),1),wge=n(ap(),1),Cge=n(ve(),1);var _r=n(y(),1),aIe=1,iIe=100,yge=.1,_ge=100;function lIe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:a,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,o1.useSettings)("spacing.units"),u=Z(),p=(0,$t.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),m=(0,xge.useSelect)(x=>x(kge.store).getTaxonomies({per_page:-1}),[]),d=()=>{let x={label:(0,Ia.__)("- Select -"),value:"",disabled:!0},w=(m??[]).filter(S=>!!S.show_cloud).map(S=>({value:S.slug,label:S.name}));return[x,...w]},f=(x,w)=>{let[S,T]=(0,$t.__experimentalParseQuantityAndUnitFromRawValue)(w);if(!Number.isFinite(S))return;let I={[x]:w};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([D,L])=>{let[E,B]=(0,$t.__experimentalParseQuantityAndUnitFromRawValue)(L);D!==x&&B!==T&&(I[D]=`${E}${T}`)}),t(I)},h=(0,_r.jsx)(o1.InspectorControls,{children:(0,_r.jsxs)($t.__experimentalToolsPanel,{label:(0,Ia.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Ia.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,_r.jsx)($t.SelectControl,{label:(0,Ia.__)("Taxonomy"),options:d(),value:o,onChange:x=>t({taxonomy:x})})}),(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,Ia.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,_r.jsxs)($t.Flex,{gap:4,children:[(0,_r.jsx)($t.FlexItem,{isBlock:!0,children:(0,_r.jsx)($t.__experimentalUnitControl,{label:(0,Ia.__)("Smallest size"),value:l,onChange:x=>{f("smallestFontSize",x)},units:p,min:yge,max:_ge})}),(0,_r.jsx)($t.FlexItem,{isBlock:!0,children:(0,_r.jsx)($t.__experimentalUnitControl,{label:(0,Ia.__)("Largest size"),value:s,onChange:x=>{f("largestFontSize",x)},units:p,min:yge,max:_ge})})]})}),(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Ia.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,_r.jsx)($t.RangeControl,{label:(0,Ia.__)("Number of tags"),value:i,onChange:x=>t({numberOfTags:x}),min:aIe,max:iIe,required:!0})}),(0,_r.jsx)($t.__experimentalToolsPanelItem,{hasValue:()=>a!==!1,label:(0,Ia.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,_r.jsx)($t.ToggleControl,{label:(0,Ia.__)("Show tag counts"),checked:a,onChange:()=>t({showTagCounts:!a})})})]})}),{content:g,status:v,error:b}=(0,wge.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,Cge.useDisabled)(),k=(0,o1.useBlockProps)({ref:_});return(0,_r.jsxs)(_r.Fragment,{children:[h,v==="loading"&&(0,_r.jsx)("div",{...k,children:(0,_r.jsx)($t.Spinner,{})}),v==="error"&&(0,_r.jsx)("div",{...k,children:(0,_r.jsx)("p",{children:(0,Ia.sprintf)((0,Ia.__)("Error: %s"),b)})}),v==="success"&&(0,_r.jsx)(_o,{wrapperProps:k,html:g})]})}var Sge=lIe;var{name:Tge}=k7,Pge={icon:Nv,example:{},edit:Sge,transforms:bge},sIe=()=>R({name:Tge,metadata:k7,settings:Pge});var NO={};K(NO,{init:()=>gIe,metadata:()=>w7,name:()=>m0e,settings:()=>d0e});var c0e=n(re(),1),u0e=n(F(),1);var IO=n(bu(),1),p0e=n(Jo(),1);var w7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"};var t0e=n($(),1),u1=n(F(),1),vo=n(P(),1),Yc=n(O(),1),el=n(N(),1),R2=n(re(),1),r0e=n(H(),1),o0e=n(Sr(),1);var Dm=n(N(),1),Jf=n(O(),1),Lge=n(H(),1),Rge=n(F(),1),Age=n(re(),1);var n1=n(F(),1),C7=n(re(),1),Ege=n(P(),1),Bge=n(H(),1),Ige=n($(),1),PO=n(N(),1);function a1(e,t){let{templateParts:r,isResolving:o}=(0,n1.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(C7.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,Bge.useMemo)(()=>r?r.filter(i=>ya(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function i1(e,t){return(0,n1.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:a,getPatternsByBlockTypes:i}=r(Ege.store),l=a(t);return i(o,l)},[e,t])}function S7(e,t){let{saveEntityRecord:r}=(0,n1.useDispatch)(C7.store);return async(o=[],a=(0,PO.__)("Untitled Template Part"))=>{let i=SC(a).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:a,slug:i,content:(0,Ige.serialize)(o),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function T7(e){return(0,n1.useSelect)(t=>{let r=t(C7.store).getCurrentTheme()?.default_template_part_areas||[],o=r.find(i=>i.area===e),a=r.find(i=>i.area==="uncategorized");return{icon:o?.icon||a?.icon,label:o?.label||(0,PO.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var Nge=n(H(),1),Nm=n(N(),1),zs=n(O(),1),Xu=n(y(),1);function Dge({areaLabel:e,onClose:t,onSubmit:r}){let[o,a]=(0,Nge.useState)(""),i=l=>{l.preventDefault(),r(o)};return(0,Xu.jsx)(zs.Modal,{title:(0,Nm.sprintf)((0,Nm.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Xu.jsx)("form",{onSubmit:i,children:(0,Xu.jsxs)(zs.__experimentalVStack,{spacing:"5",children:[(0,Xu.jsx)(zs.TextControl,{label:(0,Nm.__)("Name"),value:o,onChange:a,placeholder:(0,Nm.__)("Custom Template Part")}),(0,Xu.jsxs)(zs.__experimentalHStack,{justify:"right",children:[(0,Xu.jsx)(zs.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),a("")},children:(0,Nm.__)("Cancel")}),(0,Xu.jsx)(zs.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,Nm.__)("Create")})]})]})})})}var Xf=n(y(),1);function Mge({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:a}){let{templateParts:i,isResolving:l}=a1(e,r),s=i1(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,Rge.useSelect)(h=>{let{getCurrentTheme:g,canUser:v}=h(Age.store);return{isBlockBasedTheme:g()?.is_block_theme,canCreateTemplatePart:v("create",{kind:"postType",name:"wp_template_part"})}},[]),[p,m]=(0,Lge.useState)(!1),d=T7(e),f=S7(e,a);return(0,Xf.jsxs)(Jf.Placeholder,{icon:a0(d.icon),label:d.label,instructions:c?(0,Dm.sprintf)((0,Dm.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,Dm.sprintf)((0,Dm.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,Xf.jsx)(Jf.Spinner,{}),!l&&!!(i.length||s.length)&&(0,Xf.jsx)(Jf.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Dm.__)("Choose")}),!l&&c&&u&&(0,Xf.jsx)(Jf.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{m(!0)},children:(0,Dm.__)("Start blank")}),p&&(0,Xf.jsx)(Dge,{areaLabel:d.label,onClose:()=>m(!1),onSubmit:h=>{f([],h)}})]})}var I2=n(H(),1),Lm=n(N(),1),Oge=n(Sr(),1),Fge=n(F(),1),Hge=n(P(),1),P7=n(O(),1);var zge=n($(),1);function Vge(e){return{name:ya(e.theme,e.slug),title:e.title.rendered,blocks:(0,zge.parse)(e.content.raw),templatePart:e}}var Zc=n(y(),1);function jge({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:a}){let[i,l]=(0,I2.useState)(""),{templateParts:s}=a1(o,r),c=(0,I2.useMemo)(()=>{let g=s.map(v=>Vge(v));return Gb(g,i)},[s,i]),u=i1(o,a),p=(0,I2.useMemo)(()=>Gb(u,i),[u,i]),{createSuccessNotice:m}=(0,Fge.useDispatch)(Oge.store),d=g=>{e({slug:g.slug,theme:g.theme,area:void 0}),m((0,Lm.sprintf)((0,Lm.__)('Template Part "%s" inserted.'),g.title?.rendered||g.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!p.length;return(0,Zc.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,Zc.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,Zc.jsx)(P7.SearchControl,{onChange:l,value:i,label:(0,Lm.__)("Search"),placeholder:(0,Lm.__)("Search")})}),f&&(0,Zc.jsxs)("div",{children:[(0,Zc.jsx)("h2",{children:(0,Lm.__)("Existing template parts")}),(0,Zc.jsx)(Hge.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:g=>{d(g.templatePart)}})]}),!f&&!h&&(0,Zc.jsx)(P7.__experimentalHStack,{alignment:"center",children:(0,Zc.jsx)("p",{children:(0,Lm.__)("No results found.")})})]})}var D2=n(re(),1),E7=n(O(),1),s1=n(N(),1),Zge=n(F(),1),Kge=n(P(),1);var Kc=n(N(),1),N2=n(H(),1),l1=n(F(),1),Ji=n(O(),1),BO=n(re(),1),$ge=n(Sr(),1);var li=n($(),1);function Uge(e){if(e.id_base!=="block"){let o;return e._embedded.about[0].is_multi?o={idBase:e.id_base,instance:e.instance}:o={id:e.id},Gge((0,li.createBlock)("core/legacy-widget",o))}let t=(0,li.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,li.createBlock)((0,li.getGroupingBlockName)(),void 0,EO(r.innerBlocks)):r.innerBlocks.length>0?(0,li.cloneBlock)(r,void 0,EO(r.innerBlocks)):r}function Gge(e){let t=(0,li.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let o=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),a=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!o&&!a});if(t.length)return(0,li.switchToBlockType)(e,t[0].name)}function EO(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Gge(t):(0,li.createBlock)(t.name,t.attributes,EO(t.innerBlocks))).filter(t=>!!t)}var Ju=n(y(),1),Wge={per_page:-1,_fields:"id,name,description,status,widgets"};function qge({area:e,setAttributes:t}){let[r,o]=(0,N2.useState)(""),[a,i]=(0,N2.useState)(!1),l=(0,l1.useRegistry)(),{sidebars:s,hasResolved:c}=(0,l1.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:g}=f(BO.store);return{sidebars:h(Wge),hasResolved:g("getSidebars",[Wge])}},[]),{createErrorNotice:u}=(0,l1.useDispatch)($ge.store),p=S7(e,t),m=(0,N2.useMemo)(()=>{let f=(s??[]).filter(h=>h.id!=="wp_inactive_widgets"&&h.widgets.length>0).map(h=>({value:h.id,label:h.name}));return f.length?[{value:"",label:(0,Kc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Ju.jsx)(Ji.__experimentalSpacer,{marginBottom:"0"});if(c&&!m.length)return null;async function d(f){if(f.preventDefault(),a||!r)return;i(!0);let h=m.find(({value:k})=>k===r),{getWidgets:g}=l.resolveSelect(BO.store),v=await g({sidebar:h.value,_embed:"about"}),b=new Set,_=v.flatMap(k=>{let x=Uge(k);return x||(b.add(k.id_base),[])});await p(_,(0,Kc.sprintf)((0,Kc.__)("Widget area: %s"),h.label)),b.size&&u((0,Kc.sprintf)((0,Kc.__)("Unable to import the following widgets: %s."),Array.from(b).join(", ")),{type:"snackbar"}),i(!1)}return(0,Ju.jsx)(Ji.__experimentalSpacer,{marginBottom:"4",children:(0,Ju.jsxs)(Ji.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Ju.jsx)(Ji.FlexBlock,{children:(0,Ju.jsx)(Ji.SelectControl,{label:(0,Kc.__)("Import widget area"),value:r,options:m,onChange:f=>o(f),disabled:!m.length})}),(0,Ju.jsx)(Ji.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Ju.jsx)(Ji.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:a,"aria-disabled":a||!r,children:(0,Kc._x)("Import","button label")})})]})})}var Vs=n(y(),1),{HTMLElementControl:uIe}=j(Kge.privateApis);function Yge({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:a,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,D2.useEntityProp)("postType","wp_template_part","area",o),[u,p]=(0,D2.useEntityProp)("postType","wp_template_part","title",o),d=(0,Zge.useSelect)(f=>f(D2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,Vs.jsxs)(Vs.Fragment,{children:[r&&(0,Vs.jsxs)(Vs.Fragment,{children:[(0,Vs.jsx)(E7.TextControl,{label:(0,s1.__)("Title"),value:u,onChange:f=>{p(f)},onFocus:f=>f.target.select()}),(0,Vs.jsx)(E7.SelectControl,{label:(0,s1.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,Vs.jsx)(uIe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,s1.sprintf)((0,s1.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}]}),!i&&(0,Vs.jsx)(qge,{area:s,setAttributes:t})]})}var c1=n(re(),1),si=n(P(),1),L2=n(F(),1),Qge=n(H(),1),Xge=n($(),1),B7=n(y(),1);function pIe(e){if((0,si.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return si.InnerBlocks.ButtonBlockAppender}function Jge(e){let t=(0,L2.useSelect)(o=>{let{getSettings:a}=o(si.store);return a()?.supportsLayout},[]),[r]=(0,si.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function mIe({postId:e,layout:t,tagName:r,blockProps:o}){(0,si.useBlockEditingMode)("disabled");let{content:a,editedBlocks:i}=(0,L2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(c1.store),p=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:p.blocks,content:p.content}},[e]),l=(0,Qge.useMemo)(()=>{if(e)return i||(!a||typeof a!="string"?[]:(0,Xge.parse)(a))},[e,i,a]),s=(0,si.useInnerBlocksProps)(o,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:Jge(t)});return(0,B7.jsx)(r,{...s})}function dIe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:a}){let i=(0,L2.useSelect)(d=>d(si.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,c1.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,si.useInnerBlocksProps)(a,{value:l,onInput:s,onChange:c,renderAppender:pIe(t),layout:Jge(r)}),m=(0,si.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,B7.jsx)(o,{...u,...m})}function e0e({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:a}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,L2.useSelect)(c=>({canViewTemplatePart:!!c(c1.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(c1.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,B7.jsx)(l?dIe:mIe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:a}):null}var qt=n(y(),1),n0e=["header","footer","navigation-overlay"];function fIe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:a}){let{templateParts:i}=a1(t,r),l=!!i.length;return e&&l&&n0e.includes(t)?(0,qt.jsx)(Yc.MenuItem,{onClick:()=>{a(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,el.__)("Replace")}):null}function hIe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let a=i1(e,t);return r&&!!a.length&&n0e.includes(e)?(0,qt.jsx)(Yc.PanelBody,{title:(0,el.__)("Design"),children:(0,qt.jsx)(vo.__experimentalBlockPatternsList,{label:(0,el.__)("Templates"),blockPatterns:a,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function a0e({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,u1.useDispatch)(o0e.store),{editEntityRecord:a}=(0,u1.useDispatch)(R2.store),i=(0,u1.useSelect)(B=>B(R2.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,p=ya(s,l),m=(0,vo.useHasRecursion)(p),[d,f]=(0,r0e.useState)(!1),{isResolved:h,hasInnerBlocks:g,isMissing:v,area:b,onNavigateToEntityRecord:_,title:k,canUserEdit:x,canUserEditBlock:w}=(0,u1.useSelect)(B=>{let{getEditedEntityRecord:A,hasFinishedResolution:z}=B(R2.store),{getBlockCount:U,getSettings:q,canEditBlock:G}=B(vo.store),W=["postType","wp_template_part",p],V=p?A(...W):null,Q=V?.area||e.area,Y=p?z("getEditedEntityRecord",W):!1,ee=Y?B(R2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:p}):!1;return{hasInnerBlocks:U(r)>0,isResolved:Y,isMissing:Y&&(!V||Object.keys(V).length===0),area:Q,onNavigateToEntityRecord:q().onNavigateToEntityRecord,title:V?.title,canUserEdit:!!ee,canUserEditBlock:G(r)}},[p,e.area,r]),S=T7(b),T=(0,vo.useBlockProps)(),I=!l,D=!I&&!v&&h,L=c||S.tagName,E=async B=>{await a("postType","wp_template_part",p,{blocks:B.blocks,content:(0,t0e.serialize)(B.blocks)}),o((0,el.sprintf)((0,el.__)('Template Part "%s" updated.'),k||l),{type:"snackbar"})};return!g&&(l&&!s||l&&v)?(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(vo.Warning,{children:(0,el.sprintf)((0,el.__)("Template part has been deleted or is unavailable: %s"),l)})}):D&&m?(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(vo.Warning,{children:(0,el.__)("Block cannot be rendered inside itself.")})}):(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsxs)(vo.RecursionProvider,{uniqueId:p,children:[D&&_&&x&&(0,qt.jsx)(vo.BlockControls,{group:"other",children:(0,qt.jsx)(Yc.ToolbarButton,{onClick:()=>{_({postId:p,postType:"wp_template_part"})},children:(0,el.__)("Edit original")})}),x&&(0,qt.jsx)(vo.InspectorControls,{group:"advanced",children:(0,qt.jsx)(Yge,{tagName:c,setAttributes:t,isEntityAvailable:D,templatePartId:p,defaultWrapper:S.tagName,hasInnerBlocks:g,clientId:r})}),I&&(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(Mge,{area:e.area,templatePartId:p,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,qt.jsx)(vo.BlockSettingsMenuControls,{children:({selectedClientIds:B})=>!w||!(B.length===1&&r===B[0])?null:(0,qt.jsx)(fIe,{isEntityAvailable:D,area:b,clientId:r,templatePartId:p,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f})}),(0,qt.jsx)(vo.InspectorControls,{group:"settings",children:(0,qt.jsx)(hIe,{area:b,clientId:r,isEntityAvailable:D,onSelect:B=>E(B)})}),D&&(0,qt.jsx)(e0e,{tagName:L,blockProps:T,postId:p,hasInnerBlocks:g,layout:u}),!I&&!h&&(0,qt.jsx)(L,{...T,children:(0,qt.jsx)(Yc.Spinner,{})})]}),d&&(0,qt.jsx)(Yc.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,el.sprintf)((0,el.__)("Choose a %s"),S.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,qt.jsx)(jge,{templatePartId:p,clientId:r,area:b,setAttributes:t,onClose:()=>f(!1)})})]})}var i0e=n(re(),1),l0e=n(F(),1);function s0e(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(a,i)=>{let{area:l,theme:s,slug:c}=a;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:p}=(0,l0e.select)(i0e.store),m=p("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return m?.slug?m.slug===i.slug:m?.area===i.area},o=e.variations.map(a=>({...a,...!a.isActive&&{isActive:r},...typeof a.icon=="string"&&{icon:a0(a.icon)}}));return{...e,variations:o}}return e}var{name:m0e}=w7,d0e={icon:Pv,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,u0e.select)(c0e.store),a=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(a)return(0,p0e.decodeEntities)(a.title)||jre(a.slug||"")},edit:a0e},gIe=()=>{(0,IO.addFilter)("blocks.registerBlockType","core/template-part",s0e);let e=["core/post-template","core/post-content"];return(0,IO.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:a,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(a(o)?.name===l||i(o,l).length)return!1;return!0}),R({name:m0e,metadata:w7,settings:d0e})};var AO={};K(AO,{init:()=>yIe,metadata:()=>I7,name:()=>x0e,settings:()=>k0e});var I7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-count",title:"Term Count",category:"theme",description:"Displays the post count of a taxonomy term.",textdomain:"default",usesContext:["termId","taxonomy"],attributes:{bracketType:{type:"string",enum:["none","round","square","curly","angle"],default:"round"}},supports:{anchor:!0,html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-count"};var eh=n(N(),1),N7=n(P(),1),y0e=n(O(),1);var Ol=n(O(),1),Os=n(y(),1),DO=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),f0e=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),h0e=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),g0e=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),v0e=(0,Os.jsx)(Ol.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Os.jsx)(Ol.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});var A2=n(re(),1),LO=n(F(),1);function b0e(e,t){let[r]=(0,A2.useEntityProp)("taxonomy",t,"count",e),o=bIe(),a=!!(e&&t);return{hasContext:a,termCount:a?r||"":o}}function bIe(){let t=(0,LO.useSelect)(a=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=a("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?a(A2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,LO.useSelect)(a=>{if(!r||!o)return"";let{getEntityRecords:i}=a(A2.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].count||""},[r,o])}var Rm=n(y(),1),RO={none:{label:(0,eh.__)("No brackets"),icon:DO},round:{label:(0,eh.__)("Round brackets"),icon:f0e,before:"(",after:")"},square:{label:(0,eh.__)("Square brackets"),icon:h0e,before:"[",after:"]"},curly:{label:(0,eh.__)("Curly brackets"),icon:g0e,before:"{",after:"}"},angle:{label:(0,eh.__)("Angle brackets"),icon:v0e,before:"<",after:">"}};function _0e({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:a}=e,l=b0e(r,o)?.termCount||0,s=(0,N7.useBlockProps)(),c=Object.entries(RO).map(([p,{label:m,icon:d}])=>({role:"menuitemradio",title:m,isActive:a===p,icon:d,onClick:()=>{t({bracketType:p})}})),u=(p,m)=>{let{before:d="",after:f=""}=RO[m]||{};return`${d}${p}${f}`};return(0,Rm.jsxs)(Rm.Fragment,{children:[(0,Rm.jsx)(N7.BlockControls,{group:"block",children:(0,Rm.jsx)(y0e.ToolbarDropdownMenu,{icon:RO[a]?.icon??DO,label:(0,eh.__)("Change bracket type"),controls:c})}),(0,Rm.jsx)("div",{...s,children:u(l,a)})]})}var{name:x0e}=I7,k0e={icon:QI,example:{},edit:_0e},yIe=()=>R({name:x0e,metadata:I7,settings:k0e});var zO={};K(zO,{init:()=>wIe,metadata:()=>D7,name:()=>E0e,settings:()=>B0e});var D7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",usesContext:["termId","taxonomy"],supports:{anchor:!0,align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var C0e=n(N(),1),S0e=n(P(),1);var M2=n(re(),1),MO=n(F(),1);function w0e(e,t){let[r,o,a]=(0,M2.useEntityProp)("taxonomy",t,"description",e),i=xIe(),l=!!(e&&t);return{hasContext:l,setDescription:o,termDescription:l?a?.rendered||r||"":i}}function xIe(){let t=(0,MO.useSelect)(a=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=a("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?a(M2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[1]?r=t[2]?t[2]:t[1]:t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,MO.useSelect)(a=>{if(!r||!o)return"";let{getEntityRecords:i}=a(M2.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].description||""},[r,o])}var Am=n(y(),1);function T0e({context:{termId:e,taxonomy:t}}){let{termDescription:r}=w0e(e,t),o=(0,S0e.useBlockProps)();return(0,Am.jsx)(Am.Fragment,{children:(0,Am.jsx)("div",{...o,children:r?(0,Am.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,Am.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Am.jsx)("span",{children:(0,C0e.__)("Term Description")})})})})}var kIe={attributes:{textAlign:{type:"string"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},P0e=[kIe];var{name:E0e}=D7,B0e={icon:JI,edit:T0e,example:{},deprecated:P0e},wIe=()=>R({name:E0e,metadata:D7,settings:B0e});var VO={};K(VO,{init:()=>PIe,metadata:()=>L7,name:()=>R0e,settings:()=>A0e});var L7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-name",title:"Term Name",category:"theme",description:"Displays the name of a taxonomy term.",keywords:["term title"],textdomain:"default",usesContext:["termId","taxonomy"],attributes:{level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var z2=n(N(),1),Mm=n(P(),1),p1=n(O(),1),N0e=n(Jo(),1);var R7=n(re(),1),A7=n(F(),1);function I0e(e,t){let r=(0,A7.useSelect)(i=>!e||!t?null:i(R7.store).getEntityRecord("taxonomy",t,e),[e,t]),o=SIe(),a=!!(e&&t);return{hasContext:a,term:a?r:o}}function SIe(){let t=(0,A7.useSelect)(a=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=a("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?a(R7.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o;return t&&(t[3]&&(r=t[6]?t[6]:t[4],o=t[7]),r=r==="tag"?"post_tag":r),(0,A7.useSelect)(a=>{if(!r||!o)return null;let{getEntityRecords:i}=a(R7.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]?l[0]:null},[r,o])}var tl=n(y(),1);function D0e({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{level:a=0,isLink:i,levelOptions:l}=e,{term:s}=I0e(r,o),c=s?.name?(0,N0e.decodeEntities)(s.name):(0,z2.__)("Term Name"),u=(0,Mm.useBlockProps)(),p=Z(),m=a===0?"p":`h${a}`,d=c;return i&&(d=(0,tl.jsx)("a",{href:"#term-name-pseudo-link",onClick:f=>f.preventDefault(),children:c})),(0,tl.jsxs)(tl.Fragment,{children:[(0,tl.jsx)(Mm.BlockControls,{group:"block",children:(0,tl.jsx)(Mm.HeadingLevelDropdown,{value:a,options:l,onChange:f=>{t({level:f})}})}),(0,tl.jsx)(Mm.InspectorControls,{children:(0,tl.jsx)(p1.__experimentalToolsPanel,{label:(0,z2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,tl.jsx)(p1.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,z2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,tl.jsx)(p1.ToggleControl,{label:(0,z2.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,tl.jsx)(m,{...u,children:d})]})}var TIe={attributes:{textAlign:{type:"string"},level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},migrate:be,isEligible(e){return!!e.textAlign},save:()=>null},L0e=[TIe];var{name:R0e}=L7,A0e={icon:eN,example:{},edit:D0e,deprecated:L0e},PIe=()=>R({name:R0e,metadata:L7,settings:A0e});var GO={};K(GO,{init:()=>AIe,metadata:()=>M7,name:()=>k1e,settings:()=>w1e});var M7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/terms-query",title:"Terms Query",category:"theme",description:"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.",keywords:["terms","taxonomy","categories","tags","list"],textdomain:"default",attributes:{termQuery:{type:"object",default:{perPage:10,taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1}},tagName:{type:"string",default:"div"}},usesContext:["templateSlug"],providesContext:{termQuery:"termQuery"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0}};var f1e=n(F(),1),h1e=n(P(),1);var p1e=n(H(),1),O7=n(P(),1);var Fs=n(N(),1),Qc=n(O(),1),c1e=n(P(),1);var M0e=n(re(),1),z0e=n(F(),1),V0e=n(H(),1);function z7(){let e=(0,z0e.useSelect)(t=>t(M0e.store).getTaxonomies({per_page:-1}),[]);return(0,V0e.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var O0e=n(O(),1);var F0e=n(y(),1);function H0e({value:e,onChange:t,...r}){let a=z7().map(i=>({label:i.name,value:i.slug}));return(0,F0e.jsx)(O0e.SelectControl,{options:a,value:e,onChange:t,...r})}var V2=n(N(),1),j0e=n(O(),1),U0e=n(y(),1);function G0e({orderBy:e,order:t,onChange:r,...o}){return(0,U0e.jsx)(j0e.SelectControl,{options:[{label:(0,V2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,V2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,V2.__)("Count, high to low"),value:"count/desc"},{label:(0,V2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:a=>{let[i,l]=a.split("/");r(i,l)},...o})}var W0e=n(O(),1),$0e=n(y(),1);function q0e({value:e,onChange:t,...r}){return(0,$0e.jsx)(W0e.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var Z0e=n(O(),1),K0e=n(y(),1);function Y0e({value:e,onChange:t,...r}){return(0,K0e.jsx)(Z0e.ToggleControl,{checked:e,onChange:t,...r})}var F2=n(O(),1),O2=n(N(),1),H2=n(y(),1);function Q0e({value:e,onChange:t,label:r}){return(0,H2.jsxs)(F2.__experimentalToggleGroupControl,{label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,O2.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,O2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,H2.jsx)(F2.__experimentalToggleGroupControlOption,{value:"default",label:(0,O2.__)("Default")}),(0,H2.jsx)(F2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,O2.__)("Custom")})]})}var X0e=n(N(),1),J0e=n(O(),1),e1e=n(y(),1);function t1e({value:e,onChange:t,...r}){return(0,e1e.jsx)(J0e.RangeControl,{value:e,min:0,max:100,onChange:t,help:(0,X0e.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var r1e=n(N(),1),V7=n(P(),1);var OO=n(y(),1),{HTMLElementControl:BIe}=j(V7.privateApis);function o1e({TagName:e,setAttributes:t,clientId:r}){return(0,OO.jsx)(V7.InspectorControls,{group:"advanced",children:(0,OO.jsx)(BIe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,r1e.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var a1e=n(O(),1),FO=n(F(),1),HO=n(re(),1),ep=n(H(),1),i1e=n(ve(),1),jO=n(Jo(),1),l1e=n(y(),1),th=[],n1e={order:"asc",_fields:"id,name",context:"view"};function s1e({value:e,taxonomy:t,onChange:r,...o}){let[a,i]=(0,ep.useState)(""),[l,s]=(0,ep.useState)(th),[c,u]=(0,ep.useState)(th),p=(0,i1e.useDebounce)(i,250),{searchResults:m,searchHasResolved:d}=(0,FO.useSelect)(b=>{if(!a)return{searchResults:th,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:k}=b(HO.store),x=["taxonomy",t,{...n1e,search:a,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...x),searchHasResolved:k("getEntityRecords",x)}},[a,t,e]),f=(0,FO.useSelect)(b=>{if(!e?.length)return th;let{getEntityRecords:_}=b(HO.store);return _("taxonomy",t,{...n1e,include:e,per_page:e.length})},[e,t]);(0,ep.useEffect)(()=>{if(e?.length||s(th),!f?.length)return;let b=e.reduce((_,k)=>{let x=f.find(w=>w.id===k);return x&&_.push({id:k,value:(0,jO.decodeEntities)(x.name)}),_},[]);s(b)},[e,f]);let h=(0,ep.useMemo)(()=>{if(!m?.length)return{names:th,mapByName:{}};let b=[],_={};return m.forEach(k=>{let x=(0,jO.decodeEntities)(k.name);b.push(x),_[x]=k}),{names:b,mapByName:_}},[m]);(0,ep.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let g=(b,_)=>_?.id||b?.[_]?.id;return(0,l1e.jsx)(a1e.FormTokenField,{value:l,onInputChange:p,suggestions:c,onChange:b=>{let _=Array.from(b.reduce((k,x)=>{let w=g(h.mapByName,x);return w&&k.add(w),k},new Set));u(th),r(_)},help:"",...o})}var $r=n(y(),1);function u1e({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:a}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:p,inherit:m,showNested:d,perPage:f,include:h}=i,g=Z(),b=z7().find(A=>A.slug===s)?.hierarchical,_=!!m,k=["taxonomy","category","tag","archive"].includes(a)||a?.startsWith("taxonomy-")||a?.startsWith("category-")||a?.startsWith("tag-"),x=b,w=!!h?.length,S=(0,Fs.__)("Query type"),T=(0,Fs.__)("Taxonomy"),I=(0,Fs.__)("Order by"),D=(0,Fs.__)("Show empty terms"),L=(0,Fs.__)("Show nested terms"),E=(0,Fs.__)("Max terms"),B=(0,Fs.__)("Selected terms");return(0,$r.jsxs)($r.Fragment,{children:[(0,$r.jsx)(c1e.InspectorControls,{children:(0,$r.jsxs)(Qc.__experimentalToolsPanel,{label:(0,Fs.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:g,children:[k&&(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>m!==!1,label:S,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,$r.jsx)(Q0e,{label:S,value:m,onChange:t})}),!_&&(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:T,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,$r.jsx)(H0e,{label:T,value:s,onChange:A=>t({taxonomy:A,include:[]})})}),(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:I,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,$r.jsx)(G0e,{label:I,orderBy:c,order:u,onChange:(A,z)=>{t({orderBy:A,order:z})},disabled:w,help:w?(0,Fs.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:B,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,$r.jsx)(s1e,{label:B,taxonomy:s,value:h,onChange:A=>t({include:A})})}),(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>p!==!0,label:D,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,$r.jsx)(q0e,{label:D,value:p,onChange:A=>t({hideEmpty:A})})}),x&&(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:L,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,$r.jsx)(Y0e,{label:L,value:d,onChange:A=>t({showNested:A}),disabled:w,help:w?(0,Fs.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,$r.jsx)(Qc.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:E,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,$r.jsx)(t1e,{label:E,value:f,onChange:A=>t({perPage:A})})})]})}),(0,$r.jsx)(o1e,{TagName:l,setAttributes:r,clientId:o})]})}var rh=n(y(),1),IIe=[["core/term-template"]];function m1e({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:a}=e,i=(0,O7.useBlockProps)(),l=(0,O7.useInnerBlocksProps)(i,{template:IIe}),s=(0,p1e.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,rh.jsxs)(rh.Fragment,{children:[(0,rh.jsx)(u1e,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,rh.jsx)(a,{...l})]})}var F7=n(F(),1),H7=n($(),1),m1=n(P(),1),UO=n(y(),1);function d1e({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:a,scopeVariations:i}=(0,F7.useSelect)(p=>{let{getActiveBlockVariation:m,getBlockType:d,getBlockVariations:f}=p(H7.store);return{blockType:d(r),activeBlockVariation:m(r,e),scopeVariations:f(r,"block")}},[r,e]),l=a?.icon?.src||a?.icon||o?.icon?.src,s=a?.title||o?.title,{replaceInnerBlocks:c}=(0,F7.useDispatch)(m1.store),u=(0,m1.useBlockProps)();return(0,UO.jsx)("div",{...u,children:(0,UO.jsx)(m1.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:p=>{p.innerBlocks&&c(t,(0,H7.createBlocksFromInnerBlocksTemplate)(p.innerBlocks),!1)}})})}var g1e=n(y(),1),NIe=e=>{let r=(0,f1e.useSelect)(o=>!!o(h1e.store).getBlocks(e.clientId).length,[e.clientId])?m1e:d1e;return(0,g1e.jsx)(r,{...e})},v1e=NIe;var j7=n(P(),1),b1e=n(y(),1);function y1e({attributes:{tagName:e="div"}}){let t=j7.useBlockProps.save(),r=j7.useInnerBlocksProps.save(t);return(0,b1e.jsx)(e,{...r})}var j2=n(N(),1),d1=n(O(),1),U2=n(y(),1),DIe=(0,U2.jsx)(d1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,U2.jsx)(d1.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),LIe=(0,U2.jsx)(d1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,U2.jsx)(d1.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),_1e=["core/term-name",{isLink:!0}],RIe=[{name:"name",title:(0,j2.__)("Name"),description:(0,j2.__)("Display the terms' names."),attributes:{},icon:DIe,scope:["block"],innerBlocks:[["core/term-template",{},[_1e]]]},{name:"name-count",title:(0,j2.__)("Name & Count"),description:(0,j2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:LIe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[_1e,["core/term-count"]]]]]]}],x1e=RIe;var{name:k1e}=M7,w1e={icon:rd,edit:v1e,save:y1e,example:{},variations:x1e},AIe=()=>R({name:k1e,metadata:M7,settings:w1e});var WO={};K(WO,{init:()=>HIe,metadata:()=>U7,name:()=>N1e,settings:()=>D1e});var U7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-template",title:"Term Template",category:"theme",ancestor:["core/terms-query"],description:"Contains the block elements used to render a taxonomy term, like the name, description, and more.",textdomain:"default",usesContext:["termQuery"],supports:{anchor:!0,reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!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}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var C1e=n(O(),1);var f1=n(H(),1),S1e=n(F(),1),G2=n(N(),1),Fl=n(P(),1),T1e=n(re(),1),kn=n(y(),1),zIe=[["core/term-name"]];function VIe({classList:e}){let t=(0,Fl.useInnerBlocksProps)({className:C("wp-block-term",e)},{template:zIe,__unstableDisableLayoutClassNames:!0});return(0,kn.jsx)("li",{...t})}function OIe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:a}){let i=(0,Fl.__experimentalUseBlockPreview)({blocks:e,props:{className:C("wp-block-term",r)}}),l=()=>{a(t)};return(0,kn.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var FIe=(0,f1.memo)(OIe);function P1e({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:a,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:p}){let{type:m,columnCount:d=3}=t||{},[f,h]=(0,f1.useState)(),g={hide_empty:l,order:a,orderby:i,per_page:c||-1};!s&&!u?.length&&(g.parent=0),u?.length&&(g.include=u,g.orderby="include",g.order="asc");let{records:v}=(0,T1e.useEntityRecords)("taxonomy",o,g),b=(0,S1e.useSelect)(w=>w(Fl.store).getBlocks(e),[e]),_=(0,Fl.useBlockProps)({className:p}),k=(0,f1.useMemo)(()=>v?.map(w=>({taxonomy:o,termId:w.id,classList:`term-${w.id}`,termData:w})),[v,o]);if(!v)return(0,kn.jsx)("ul",{..._,children:(0,kn.jsx)("li",{className:"wp-block-term term-loading",children:(0,kn.jsx)("div",{className:"term-loading-placeholder"})})});if(!v.length)return(0,kn.jsxs)("p",{..._,children:[" ",(0,G2.__)("No terms found.")]});let x=w=>r(S=>({layout:{...S.layout,...w}}));return(0,kn.jsxs)(kn.Fragment,{children:[(0,kn.jsx)(Fl.BlockControls,{children:(0,kn.jsx)(C1e.ToolbarGroup,{controls:[{icon:ql,title:(0,G2._x)("List view","Term template block display setting"),onClick:()=>x({type:"default"}),isActive:m==="default"||m==="constrained"},{icon:$l,title:(0,G2._x)("Grid view","Term template block display setting"),onClick:()=>x({type:"grid",columnCount:d}),isActive:m==="grid"}]})}),(0,kn.jsx)("ul",{..._,children:k?.map(w=>(0,kn.jsxs)(Fl.BlockContextProvider,{value:w,children:[w.termId===(f||k[0]?.termId)?(0,kn.jsx)(VIe,{classList:w.classList}):null,(0,kn.jsx)(FIe,{blocks:b,blockContextId:w.termId,classList:w.classList,setActiveBlockContextId:h,isHidden:w.termId===(f||k[0]?.termId)})]},w.termId))})]})}var E1e=n(P(),1),B1e=n(y(),1);function I1e(){return(0,B1e.jsx)(E1e.InnerBlocks.Content,{})}var{name:N1e}=U7,D1e={icon:td,edit:P1e,save:I1e,example:{}},HIe=()=>R({name:N1e,metadata:U7,settings:D1e});var $O={};K($O,{init:()=>GIe,metadata:()=>W7,name:()=>z1e,settings:()=>V1e});var h1=n(N(),1),G7=n(O(),1),Xc=n(P(),1),L1e=n(xd(),1),rl=n(y(),1);function R1e({attributes:e,setAttributes:t}){let{width:r,content:o,columns:a}=e;return(0,L1e.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,rl.jsxs)(rl.Fragment,{children:[(0,rl.jsx)(Xc.BlockControls,{children:(0,rl.jsx)(Xc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,rl.jsx)(Xc.InspectorControls,{children:(0,rl.jsx)(G7.PanelBody,{children:(0,rl.jsx)(G7.RangeControl,{label:(0,h1.__)("Columns"),value:a,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,rl.jsx)("div",{...(0,Xc.useBlockProps)({className:`align${r} columns-${a}`}),children:Array.from({length:a}).map((i,l)=>(0,rl.jsx)("div",{className:"wp-block-column",children:(0,rl.jsx)(Xc.RichText,{tagName:"p",value:o?.[l]?.children,onChange:s=>{t({content:[...o.slice(0,l),{children:s},...o.slice(l+1)]})},"aria-label":(0,h1.sprintf)((0,h1.__)("Column %d text"),l+1),placeholder:(0,h1.__)("New Column")})},`column-${l}`))})]})}var W7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"};var q7=n(P(),1),$7=n(y(),1);function A1e({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,$7.jsx)("div",{...q7.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((a,i)=>(0,$7.jsx)("div",{className:"wp-block-column",children:(0,$7.jsx)(q7.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var Z7=n($(),1),UIe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,Z7.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:a})=>(0,Z7.createBlock)("core/column",{},[(0,Z7.createBlock)("core/paragraph",{content:a})])))}]},M1e=UIe;var{name:z1e}=W7,V1e={transforms:M1e,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:R1e,save:A1e},GIe=()=>R({name:z1e,metadata:W7,settings:V1e});var QO={};K(QO,{init:()=>XIe,metadata:()=>Q7,name:()=>W1e,settings:()=>J7});var YO=n(N(),1);var G1e=n($(),1);var oh=n(P(),1);var g1=n(y(),1),WIe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,g1.jsx)(oh.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:be},$Ie={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,g1.jsx)("pre",{...oh.useBlockProps.save({className:o}),children:(0,g1.jsx)(oh.RichText.Content,{value:r})})},migrate(e){return be(Zt(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},qIe={attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0},color:{gradients:!0,link:!0},dimensions:{minHeight:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0},spacing:{margin:!0,padding:!0},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},save({attributes:e}){let{textAlign:t,content:r}=e,o=C({[`has-text-align-${t}`]:t});return(0,g1.jsx)("pre",{...oh.useBlockProps.save({className:o}),children:(0,g1.jsx)(oh.RichText.Content,{value:r})})},migrate:be,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},O1e=[qIe,$Ie,WIe];var qO=n(N(),1),K7=n(P(),1),Y7=n($(),1);var F1e=n(y(),1);function H1e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:a,insertBlocksAfter:i,style:l}=e,{content:s}=t;wt(e);let c=(0,K7.useBlockProps)({style:l});return(0,F1e.jsx)(K7.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{r({content:u})},"aria-label":(0,qO.__)("Poetry text"),placeholder:(0,qO.__)("Write poetry\u2026"),onRemove:a,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:i?()=>i((0,Y7.createBlock)((0,Y7.getDefaultBlockName)())):void 0})}var Q7={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Poetry",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem","verse","stanza","song","lyrics"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,textAlign:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"};var X7=n(P(),1),ZO=n(y(),1);function j1e({attributes:e}){let{content:t}=e;return(0,ZO.jsx)("pre",{...X7.useBlockProps.save(),children:(0,ZO.jsx)(X7.RichText.Content,{value:t})})}var KO=n($(),1),KIe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,KO.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,KO.createBlock)("core/paragraph",e)}]},U1e=KIe;var{fieldsKey:YIe,formKey:QIe}=j(G1e.privateApis),{name:W1e}=Q7,J7={icon:zv,example:{attributes:{content:(0,YO.__)(`WHAT was he doing, the great god Pan,
Down in the reeds by the river?
Spreading ruin and scattering ban,
Splashing and paddling with hoofs of a goat,
And breaking the golden lilies afloat
With the dragon-fly on the river.`)}},transforms:U1e,deprecated:O1e,merge(e,t){return{content:e.content+`
`+t.content}},edit:H1e,save:j1e};window.__experimentalContentOnlyInspectorFields&&(J7[YIe]=[{id:"content",label:(0,YO.__)("Content"),type:"text",Edit:"rich-text"}],J7[QIe]={fields:["content"]});var XIe=()=>R({name:W1e,metadata:Q7,settings:J7});var eF={};K(eF,{init:()=>hNe,metadata:()=>v1,name:()=>cve,settings:()=>o9});var r9=n(N(),1);var sve=n($(),1);var W2=n(P(),1);var v1={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",role:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",role:"content"},width:{type:"number"},height:{type:"number"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{role:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var $1e=n(y(),1);function b1({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,$1e.jsx)("track",{...o},r??o.src)})}var y1=n(y(),1),{attributes:eNe}=v1,tNe={attributes:eNe,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:a,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:p}=e;return(0,y1.jsxs)("figure",{...W2.useBlockProps.save(),children:[c&&(0,y1.jsx)("video",{autoPlay:t,controls:o,loop:a,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,y1.jsx)(b1,{tracks:p})}),!W2.RichText.isEmpty(r)&&(0,y1.jsx)(W2.RichText.Content,{tagName:"figcaption",value:r})]})}},rNe=[tNe],q1e=rNe;var tve=n(Ar(),1),k1=n(O(),1),Da=n(P(),1),ah=n(H(),1),q2=n(N(),1),rve=n(F(),1);var ove=n(Sr(),1),nve=n(pr(),1);var no=n(N(),1),Na=n(O(),1),$2=n(H(),1),wn=n(y(),1),oNe=[{value:"auto",label:(0,no.__)("Auto")},{value:"metadata",label:(0,no.__)("Metadata")},{value:"none",label:(0,no._x)("None","Preload value")}],nNe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:a,muted:i,playsInline:l,preload:s}=t,c=(0,no.__)("Autoplay may cause usability issues for some users."),u=(0,$2.useCallback)(d=>d?c:null,[]),p=(0,$2.useMemo)(()=>{let d=f=>h=>{e({[f]:h,...f==="autoplay"&&{muted:h,playsInline:h}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),m=(0,$2.useCallback)(d=>{e({preload:d})},[]);return(0,wn.jsxs)(wn.Fragment,{children:[(0,wn.jsx)(Na.__experimentalToolsPanelItem,{label:(0,no.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,wn.jsx)(Na.ToggleControl,{label:(0,no.__)("Autoplay"),onChange:p.autoplay,checked:!!r,help:u})}),(0,wn.jsx)(Na.__experimentalToolsPanelItem,{label:(0,no.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>{e({loop:!1})},children:(0,wn.jsx)(Na.ToggleControl,{label:(0,no.__)("Loop"),onChange:p.loop,checked:!!a})}),(0,wn.jsx)(Na.__experimentalToolsPanelItem,{label:(0,no.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,wn.jsx)(Na.ToggleControl,{label:(0,no.__)("Muted"),onChange:p.muted,checked:!!i,disabled:r,help:r?(0,no.__)("Muted because of Autoplay."):null})}),(0,wn.jsx)(Na.__experimentalToolsPanelItem,{label:(0,no.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,wn.jsx)(Na.ToggleControl,{label:(0,no.__)("Playback controls"),onChange:p.controls,checked:!!o})}),(0,wn.jsx)(Na.__experimentalToolsPanelItem,{label:(0,no.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,wn.jsx)(Na.ToggleControl,{label:(0,no.__)("Play inline"),onChange:p.playsInline,checked:!!l,disabled:r,help:r?(0,no.__)("Play inline enabled because of Autoplay."):(0,no.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,wn.jsx)(Na.__experimentalToolsPanelItem,{label:(0,no.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,wn.jsx)(Na.SelectControl,{label:(0,no.__)("Preload"),value:s,onChange:m,options:oNe,hideCancelButton:!0})})]})},Z1e=nNe;var Ot=n(N(),1),et=n(O(),1),_1=n(P(),1);var Y1e=n(F(),1),nh=n(H(),1),Q1e=n(pr(),1);var Qe=n(y(),1),{Badge:aNe}=j(et.privateApis),K1e=["text/vtt"],iNe="subtitles",lNe=[{label:(0,Ot.__)("Subtitles"),value:"subtitles"},{label:(0,Ot.__)("Captions"),value:"captions"},{label:(0,Ot.__)("Descriptions"),value:"descriptions"},{label:(0,Ot.__)("Chapters"),value:"chapters"},{label:(0,Ot.__)("Metadata"),value:"metadata"}],X1e={src:"",label:"",srcLang:"en",kind:iNe,default:!1};function sNe({tracks:e,onEditPress:t}){let r=e.map((o,a)=>(0,Qe.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Qe.jsx)("span",{children:o.label}),(0,Qe.jsxs)(et.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,Qe.jsx)(aNe,{children:(0,Ot.__)("Default")}),(0,Qe.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(a),"aria-label":(0,Ot.sprintf)((0,Ot._x)("Edit %s","text tracks"),o.label),children:(0,Ot.__)("Edit")})]})]},o.id??o.src));return(0,Qe.jsx)(et.MenuGroup,{label:(0,Ot.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function cNe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:a}){let[i,l]=(0,nh.useState)({...X1e,...e}),{src:s,label:c,srcLang:u,kind:p,default:m}=i,d=s.startsWith("blob:")?"":(0,Q1e.getFilename)(s)||"";return(0,Qe.jsxs)(et.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Qe.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Ot.__)("Edit track")}),(0,Qe.jsxs)("span",{children:[(0,Ot.__)("File"),": ",(0,Qe.jsx)("b",{children:d})]}),(0,Qe.jsxs)(et.__experimentalGrid,{columns:2,gap:4,children:[(0,Qe.jsx)(et.TextControl,{onChange:f=>l(h=>({...h,label:f})),label:(0,Ot.__)("Label"),value:c,help:(0,Ot.__)("Title of track")}),(0,Qe.jsx)(et.TextControl,{onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Ot.__)("Source language"),value:u,help:(0,Ot.__)("Language tag (en, fr, etc.)")})]}),(0,Qe.jsxs)(et.__experimentalVStack,{spacing:"4",children:[(0,Qe.jsx)(et.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:lNe,value:p,label:(0,Ot.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Qe.jsx)(et.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Ot.__)("Set as default track"),checked:m,disabled:!a,onChange:f=>l(h=>({...h,default:f}))}),(0,Qe.jsxs)(et.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Qe.jsx)(et.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Ot.__)("Remove track")}),(0,Qe.jsx)(et.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Ot.__)("Apply")})]})]})]})}function J1e({tracks:e=[],onChange:t}){let r=(0,Y1e.useSelect)(c=>c(_1.store).getSettings().mediaUpload,[]),[o,a]=(0,nh.useState)(null),i=(0,nh.useRef)(),l=(c=[],u=!1)=>{let p=new Map(e.map(d=>[d.id,d])),m=c.map(({id:d,title:f,url:h})=>p.has(d)?p.get(d):{...X1e,id:d,label:f||"",src:h});m.length!==0&&t([...u?e:[],...m])};function s(c){let u=c.target.files;r({allowedTypes:K1e,filesList:u,onFileChange:p=>{if(!Array.isArray(p))return;let m=p.filter(d=>!!d?.id);m.length&&l(m,!0)}})}return(0,nh.useEffect)(()=>{i.current?.focus()},[o]),r?(0,Qe.jsx)(et.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Qe.jsx)(et.ToolbarGroup,{children:(0,Qe.jsx)(et.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||a(null),u()},children:(0,Ot.__)("Text tracks")})}),renderContent:()=>o!==null?(0,Qe.jsx)(cNe,{track:e[o],onChange:c=>{let u=[...e];u[o]=c,t(u)},onClose:()=>a(null),onRemove:()=>{t(e.filter((c,u)=>u!==o)),a(null)},allowSettingDefault:!e.some(c=>c.default)||e[o].default}):(0,Qe.jsxs)(Qe.Fragment,{children:[e.length===0&&(0,Qe.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Qe.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Ot.__)("Text tracks")}),(0,Qe.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Ot.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Qe.jsxs)(et.NavigableMenu,{children:[(0,Qe.jsx)(sNe,{tracks:e,onEditPress:a}),(0,Qe.jsx)(et.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Ot.__)("Add tracks"),children:(0,Qe.jsxs)(_1.MediaUploadCheck,{children:[(0,Qe.jsx)(_1.MediaUpload,{onSelect:l,allowedTypes:K1e,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Qe.jsx)(et.MenuItem,{icon:sv,onClick:c,children:(0,Ot.__)("Open Media Library")})}),(0,Qe.jsx)(et.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Qe.jsx)(et.MenuItem,{icon:nu,onClick:c,children:(0,Ot._x)("Upload","verb")})})]})})]})]})}):null}var x1=n(N(),1);var e9=({controls:e,loop:t,autoplay:r,muted:o,playsInline:a}={})=>!e&&!!t&&!!r&&!!o&&!!a,uNe=[{name:"video",title:(0,x1.__)("Video"),description:(0,x1.__)("Embed a video from your media library or upload a new one."),icon:au,attributes:{controls:!0},isActive:e=>!e9(e),scope:["block","transform"]},{name:"gif",title:(0,x1.__)("GIF"),description:(0,x1.__)("A muted, looping video that plays automatically like an animated GIF."),icon:au,keywords:[(0,x1.__)("animated"),"gif"],attributes:{controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0},isActive:e=>e9(e),scope:["block","transform"]}],eve=uNe;var xr=n(y(),1),XO=["video"];function pNe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:a,onReplace:i}){let l=(0,ah.useRef)(),{id:s,controls:c,poster:u,src:p,tracks:m,width:d,height:f}=t,h=e9(t),g=d&&f?`${d} / ${f}`:void 0,[v,b]=(0,ah.useState)(t.blob),_=Z(),x=(0,Da.useBlockEditingMode)()==="default";Ws({url:v,allowedTypes:XO,onChange:w,onError:I}),(0,ah.useEffect)(()=>{l.current&&l.current.load()},[u]),(0,ah.useEffect)(()=>{h&&l.current?.play().catch(()=>{})},[h,p,u]);function w(B){if(!B||!B.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),b();return}if((0,tve.isBlobURL)(B.url)){b(B.url);return}o({blob:void 0,src:B.url,id:B.id,poster:B.image?.src!==B.icon?B.image?.src:void 0,caption:B.caption}),b()}function S(B){if(B!==p){let A=(0,nve.prependHTTPS)(B),z=hp({attributes:{url:A}});if(z!==void 0&&i){i(z);return}o({blob:void 0,src:A,id:void 0,poster:void 0}),b()}}let{createErrorNotice:T}=(0,rve.useDispatch)(ove.store);function I(B){T(B,{type:"snackbar"})}let D=B=>(0,xr.jsx)(k1.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:au,label:(0,q2.__)("Video"),instructions:(0,q2.__)("Drag and drop a video, upload, or choose from your library."),children:B}),L=C(r,{"is-transient":!!v}),E=(0,Da.useBlockProps)({className:L});return!p&&!v?(0,xr.jsx)("div",{...E,children:(0,xr.jsx)(Da.MediaPlaceholder,{icon:(0,xr.jsx)(Da.BlockIcon,{icon:au}),onSelect:w,onSelectURL:S,accept:"video/*",allowedTypes:XO,value:t,onError:I,placeholder:D})}):(0,xr.jsxs)(xr.Fragment,{children:[e&&(0,xr.jsxs)(xr.Fragment,{children:[(0,xr.jsx)(Da.BlockControls,{children:(0,xr.jsx)(J1e,{tracks:m,onChange:B=>{o({tracks:B})}})}),(0,xr.jsx)(Da.BlockControls,{group:"other",children:(0,xr.jsx)(Da.MediaReplaceFlow,{mediaId:s,mediaURL:p,allowedTypes:XO,accept:"video/*",onSelect:w,onSelectURL:S,onError:I,onReset:()=>w(void 0),variant:"toolbar"})})]}),(0,xr.jsx)(Da.InspectorControls,{children:(0,xr.jsxs)(k1.__experimentalToolsPanel,{label:(0,q2.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:_,children:[(0,xr.jsx)(Z1e,{setAttributes:o,attributes:t}),(0,xr.jsx)(o3,{poster:u,onChange:B=>o({poster:B?.url})})]})}),(0,xr.jsxs)("figure",{...E,children:[(0,xr.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:p||v,ref:l,autoPlay:h,loop:h,muted:h,playsInline:h,width:d,height:f,style:g?{aspectRatio:g}:void 0,children:(0,xr.jsx)(b1,{tracks:m})}),!!v&&(0,xr.jsx)(k1.Spinner,{}),(0,xr.jsx)(Ao,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:a,label:(0,q2.__)("Video caption text"),showToolbarButton:e&&x})]})]})}var ave=pNe;var ih=n(P(),1);var w1=n(y(),1);function ive({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:a,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:p,width:m,height:d}=e,f=m&&d?`${m} / ${d}`:void 0;return(0,w1.jsxs)("figure",{...ih.useBlockProps.save(),children:[c&&(0,w1.jsx)("video",{autoPlay:t,controls:o,loop:a,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,width:m,height:d,style:f?{aspectRatio:f}:void 0,children:(0,w1.jsx)(b1,{tracks:p})}),!ih.RichText.isEmpty(r)&&(0,w1.jsx)(ih.RichText.Content,{className:(0,ih.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var t9=n(Ar(),1),JO=n($(),1),mNe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,JO.createBlock)("core/video",{blob:(0,t9.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:o,ogv:a,flv:i}})=>e||t||r||o||a||i},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>e.nodeName==="P"&&e.children.length===1&&e.firstChild.nodeName==="VIDEO",transform:e=>{let t=e.firstChild,r={autoplay:t.hasAttribute("autoplay")?!0:void 0,controls:t.hasAttribute("controls")?void 0:!1,loop:t.hasAttribute("loop")?!0:void 0,muted:t.hasAttribute("muted")?!0:void 0,preload:t.getAttribute("preload")||void 0,playsInline:t.hasAttribute("playsinline")?!0:void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,t9.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,JO.createBlock)("core/video",r)}}]},lve=mNe;var{fieldsKey:dNe,formKey:fNe}=j(sve.privateApis),{name:cve}=v1,o9={icon:au,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,r9.__)("Wood thrush singing in Central Park, NYC.")}},transforms:lve,variations:eve,deprecated:q1e,edit:ave,save:ive};window.__experimentalContentOnlyInspectorFields&&(o9[dNe]=[{id:"video",label:(0,r9.__)("Video"),type:"media",Edit:{control:"media",allowedTypes:["video"],multiple:!1},getValue:({item:e})=>({id:e.id,url:e.src,caption:e.caption,poster:e.poster}),setValue:({value:e})=>({id:e.id,src:e.url,caption:e.caption,poster:e.poster})},{id:"caption",label:(0,r9.__)("Caption"),type:"text",Edit:"rich-text"}],o9[fNe]={fields:["video","caption"]});var hNe=()=>R({name:cve,metadata:v1,settings:o9});var iF={};K(iF,{init:()=>kNe,metadata:()=>n9,name:()=>i9,settings:()=>yve});var bve=n(es(),1);var lh=n(P(),1),uve=n(re(),1),Z2=n(N(),1),tF=n(O(),1);var Hl=n(y(),1);function pve({context:{postType:e,postId:t}}){let[r,o]=(0,uve.useEntityProp)("postType",e,"meta",t),a=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,lh.useBlockProps)();return a?i.length?(0,Hl.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,Hl.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,Hl.jsx)(lh.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{o({...r,footnotes:JSON.stringify(i.map(p=>p.id===s?{content:u,id:s}:p))})}})," ",(0,Hl.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,Hl.jsx)("div",{...l,children:(0,Hl.jsx)(tF.Placeholder,{icon:(0,Hl.jsx)(lh.BlockIcon,{icon:ll}),label:(0,Z2.__)("Footnotes"),instructions:(0,Z2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,Hl.jsx)("div",{...l,children:(0,Hl.jsx)(tF.Placeholder,{icon:(0,Hl.jsx)(lh.BlockIcon,{icon:ll}),label:(0,Z2.__)("Footnotes"),instructions:(0,Z2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var n9={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{anchor:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"};var Cn=[];for(let e=0;e<256;++e)Cn.push((e+256).toString(16).slice(1));function mve(e,t=0){return(Cn[e[t+0]]+Cn[e[t+1]]+Cn[e[t+2]]+Cn[e[t+3]]+"-"+Cn[e[t+4]]+Cn[e[t+5]]+"-"+Cn[e[t+6]]+Cn[e[t+7]]+"-"+Cn[e[t+8]]+Cn[e[t+9]]+"-"+Cn[e[t+10]]+Cn[e[t+11]]+Cn[e[t+12]]+Cn[e[t+13]]+Cn[e[t+14]]+Cn[e[t+15]]).toLowerCase()}var vNe=new Uint8Array(16);function rF(){return crypto.getRandomValues(vNe)}function bNe(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():yNe(e,t,r)}function yNe(e,t,r){e=e||{};let o=e.random??e.rng?.()??rF();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){if(r=r||0,r<0||r+16>t.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[r+a]=o[a];return t}return mve(o)}var oF=bNe;var nF=n(N(),1);var fve=n(es(),1),tp=n(P(),1),C1=n(F(),1),hve=n(re(),1),a9=n($(),1);var gve=n(y(),1),aF="core/footnote",{usesContextKey:_Ne}=j(tp.privateApis),dve="core/post-content",xNe="core/block",vve={title:(0,nF.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[_Ne]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:a,postId:i}}){let l=(0,C1.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:p,getBlockParentsByBlockName:m}=l.select(tp.store),d=(0,C1.useSelect)(v=>{if(!v(a9.store).getBlockType("core/footnotes"))return!1;let b=v(tp.store).getSettings().allowedBlockTypes;if(b===!1||Array.isArray(b)&&!b.includes("core/footnotes")||typeof v(hve.store).getEntityRecord("postType",a,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:k,getSelectedBlockClientId:x,getBlockName:w}=v(tp.store),S=x();if(!S||w(S)===i9)return!1;let T=k(S,xNe);return!T||T.length===0},[a,i]),{selectionChange:f,insertBlock:h}=(0,C1.useDispatch)(tp.store);if(!d)return null;function g(){l.batch(()=>{let v;if(o)v=t.replacements[t.start]?.attributes?.["data-fn"];else{v=oF();let w=(0,fve.insertObject)(t,{type:aF,attributes:{"data-fn":v},innerHTML:`<a href="#${v}" id="${v}-link">*</a>`},t.end,t.end);w.start=w.end-1,r(w)}let b=s(),_=m(b,dve),k=_.length?c(_[0]):c(),x=null;{let w=[...k];for(;w.length;){let S=w.shift();if(S.name==="core/footnotes"){x=S;break}w.push(...S.innerBlocks)}}if(!x){let w=u(b);for(;w&&p(w)!==dve;)w=u(w);x=(0,a9.createBlock)("core/footnotes"),h(x,void 0,w)}f(x.clientId,v,0,0)})}return(0,gve.jsx)(tp.RichTextToolbarButton,{icon:ll,title:(0,nF.__)("Footnote"),onClick:g,isActive:o})}};var{name:i9}=n9,yve={icon:ll,edit:pve},kNe=()=>{(0,bve.registerFormatType)(aF,vve),R({name:i9,metadata:n9,settings:yve})};function _ve(e){return e&&"__experimental"in e&&e.__experimental!==!1}var wve=n(H(),1),K2=n(F(),1),Jc=n(kve(),1),lF=n(N(),1),Cve=n($(),1),sF=n(P(),1);function wNe(){let{registerShortcut:e}=(0,K2.useDispatch)(Jc.store),{replaceBlocks:t}=(0,K2.useDispatch)(sF.store),{getBlockName:r,getSelectedBlockClientId:o,getBlockAttributes:a}=(0,K2.useSelect)(sF.store),i=(l,s)=>{l.preventDefault();let c=o();if(c===null)return;let u=r(c),p=u==="core/paragraph",m=u==="core/heading";if(!p&&!m)return;let d=s===0?"core/paragraph":"core/heading",f=a(c);if(p&&s===0||m&&f.level===s)return;let h={content:f.content},g=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"&&(h.level=s),g&&(h.style={typography:{textAlign:g}}),t(c,(0,Cve.createBlock)(d,h))};return(0,wve.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,lF.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach(l=>{e({name:`core/block-editor/transform-paragraph-to-heading-${l}`,category:"block-library",description:(0,lF.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,Jc.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,Jc.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,Jc.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,Jc.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,Jc.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,Jc.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,Jc.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var Sve=wNe;var cF={};Lj(cF,{BlockKeyboardShortcuts:Sve,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Cc,NavigationLinkUI:tS});var l9=n(y(),1),CNe=()=>{let e=[yM,FR,wR,fR,ZR,aA,zz,pN,mN,dN,fN,hN,TN,TD,BD,ND,RD,HD,UD,$D,XD,LL,RL,OL,GL,bR,PR,YR,HR,GR,mA,dA,fA,eM,sM,dM,nM,IM,NM,tz,rz,Vz,Fz,$z,qz,Kz,eO,rO,oO,bO,CO,wO,sO,iO,TO,$O,QO,eF,iF,ZA,YA,XA,Qz,oV,eV,yz,NO,vN,QM,GM,$M,HM,LM,RM,MM,zM,FM,jM,KM,qM,ZM,YM,wz,Sz,Tz,Ez,_z,Az,Oz,YD,JD,eL,rL,oL,nL,iL,fL,uL,mL,dL,sL,OM,_O,CR,LR,iA,rM,AO,zO,VO,GO,WO,Dz,AM,PN];return window?.__experimentalEnableFormBlocks&&(e.push(KL),e.push(QL),e.push(JL),e.push(eR)),window?.__experimentalEnableBlockExperiments,e.push(MD),e.filter(Boolean)},Ive=()=>CNe().filter(({metadata:e})=>!_ve(e)),SNe=(e=Ive())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=j((0,Pve.select)(jl.store)).getBootstrappedBlockType(t);(0,jl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},usesContext:Array.from(new Set([...r?.usesContext??[],"postId"])),edit:function({attributes:a,context:i}){let l=(0,Tve.useDisabled)(),s=(0,Eve.useBlockProps)({ref:l}),{content:c,status:u,error:p}=(0,Bve.useServerSideRender)({block:t,attributes:a,urlQueryArgs:{post_id:i?.postId}});return u==="loading"?(0,l9.jsx)("div",{...s,children:(0,Y2.__)("Loading\u2026")}):u==="error"?(0,l9.jsx)("div",{...s,children:(0,Y2.sprintf)((0,Y2.__)("Error loading block: %s"),p)}):(0,l9.jsx)(_o,{wrapperProps:s,html:c})},save:()=>null})}),(0,jl.setDefaultBlockName)(GS),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===gb)&&(0,jl.setFreeformContentHandlerName)(gb),(0,jl.setUnregisteredTypeHandlerName)(ty),(0,jl.setGroupingBlockName)(l4)},TNe=void 0;return Zve(PNe);})();
/*! Bundled license information:
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
(**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
fast-average-color/dist/index.esm.js:
(*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
*/