[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> block-library.min.js (source)

   1  /*! This file is auto-generated */
   2  (function() {
   3  "use strict";var wp;(wp||={}).blockLibrary=(()=>{var s_e=Object.create;var H2=Object.defineProperty;var l_e=Object.getOwnPropertyDescriptor;var c_e=Object.getOwnPropertyNames;var u_e=Object.getPrototypeOf,d_e=Object.prototype.hasOwnProperty;var p_e=(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 Ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J=(e,t)=>{for(var r in t)H2(e,r,{get:t[r],enumerable:!0})},HH=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of c_e(t))!d_e.call(e,n)&&n!==r&&H2(e,n,{get:()=>t[n],enumerable:!(o=l_e(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?s_e(u_e(e)):{},HH(t||!e||!e.__esModule?H2(r,"default",{value:e,enumerable:!0}):r,e)),m_e=e=>HH(H2({},"__esModule",{value:!0}),e);var K=Ae((QLe,jH)=>{jH.exports=window.wp.blocks});var he=Ae((XLe,UH)=>{UH.exports=window.wp.compose});var O=Ae((JLe,WH)=>{WH.exports=window.wp.data});var R=Ae((eAe,GH)=>{GH.exports=window.wp.blockEditor});var sd=Ae((tAe,$H)=>{$H.exports=window.wp.serverSideRender});var D=Ae((rAe,qH)=>{qH.exports=window.wp.i18n});var oP=Ae(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.Doctype=gr.CDATA=gr.Tag=gr.Style=gr.Script=gr.Comment=gr.Directive=gr.Text=gr.Root=gr.isTag=gr.ElementType=void 0;var xi;(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"})(xi=gr.ElementType||(gr.ElementType={}));function g_e(e){return e.type===xi.Tag||e.type===xi.Script||e.type===xi.Style}gr.isTag=g_e;gr.Root=xi.Root;gr.Text=xi.Text;gr.Directive=xi.Directive;gr.Comment=xi.Comment;gr.Script=xi.Script;gr.Style=xi.Style;gr.Tag=xi.Tag;gr.CDATA=xi.CDATA;gr.Doctype=xi.Doctype});var sP=Ae(Xe=>{"use strict";var ld=Xe&&Xe.__extends||(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[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)}})(),Q1=Xe&&Xe.__assign||function(){return Q1=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Q1.apply(this,arguments)};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.cloneNode=Xe.hasChildren=Xe.isDocument=Xe.isDirective=Xe.isComment=Xe.isText=Xe.isCDATA=Xe.isTag=Xe.Element=Xe.Document=Xe.CDATA=Xe.NodeWithChildren=Xe.ProcessingInstruction=Xe.Comment=Xe.Text=Xe.DataNode=Xe.Node=void 0;var Ha=oP(),aP=(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),iP(this,t)},e})();Xe.Node=aP;var j2=(function(e){ld(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})(aP);Xe.DataNode=j2;var KH=(function(e){ld(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ha.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(j2);Xe.Text=KH;var YH=(function(e){ld(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ha.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(j2);Xe.Comment=YH;var QH=(function(e){ld(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=Ha.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(j2);Xe.ProcessingInstruction=QH;var U2=(function(e){ld(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})(aP);Xe.NodeWithChildren=U2;var XH=(function(e){ld(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ha.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(U2);Xe.CDATA=XH;var JH=(function(e){ld(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ha.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(U2);Xe.Document=JH;var ej=(function(e){ld(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?Ha.ElementType.Script:r==="style"?Ha.ElementType.Style:Ha.ElementType.Tag);var s=e.call(this,n)||this;return s.name=r,s.attribs=o,s.type=i,s}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 n,i;return{name:o,value:r.attribs[o],namespace:(n=r["x-attribsNamespace"])===null||n===void 0?void 0:n[o],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[o]}})},enumerable:!1,configurable:!0}),t})(U2);Xe.Element=ej;function tj(e){return(0,Ha.isTag)(e)}Xe.isTag=tj;function rj(e){return e.type===Ha.ElementType.CDATA}Xe.isCDATA=rj;function oj(e){return e.type===Ha.ElementType.Text}Xe.isText=oj;function nj(e){return e.type===Ha.ElementType.Comment}Xe.isComment=nj;function aj(e){return e.type===Ha.ElementType.Directive}Xe.isDirective=aj;function ij(e){return e.type===Ha.ElementType.Root}Xe.isDocument=ij;function h_e(e){return Object.prototype.hasOwnProperty.call(e,"children")}Xe.hasChildren=h_e;function iP(e,t){t===void 0&&(t=!1);var r;if(oj(e))r=new KH(e.data);else if(nj(e))r=new YH(e.data);else if(tj(e)){var o=t?nP(e.children):[],n=new ej(e.name,Q1({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Q1({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Q1({},e["x-attribsPrefix"])),r=n}else if(rj(e)){var o=t?nP(e.children):[],i=new XH(o);o.forEach(function(u){return u.parent=i}),r=i}else if(ij(e)){var o=t?nP(e.children):[],s=new JH(o);o.forEach(function(u){return u.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(aj(e)){var l=new QH(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}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}Xe.cloneNode=iP;function nP(e){for(var t=e.map(function(o){return iP(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var cP=Ae(ec=>{"use strict";var v_e=ec&&ec.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),y_e=ec&&ec.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&v_e(t,e,r)};Object.defineProperty(ec,"__esModule",{value:!0});ec.DomHandler=void 0;var lP=oP(),cd=sP();y_e(sP(),ec);var sj={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},lj=(function(){function e(t,r,o){this.dom=[],this.root=new cd.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=sj),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??sj,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new cd.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?lP.ElementType.Tag:void 0,n=new cd.Element(t,r,void 0,o);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(t){var r=this.lastNode;if(r&&r.type===lP.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new cd.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===lP.ElementType.Comment){this.lastNode.data+=t;return}var r=new cd.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new cd.Text(""),r=new cd.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 cd.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})();ec.DomHandler=lj;ec.default=lj});var cj=Ae(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.CARRIAGE_RETURN_PLACEHOLDER_REGEX=nn.CARRIAGE_RETURN_PLACEHOLDER=nn.CARRIAGE_RETURN_REGEX=nn.CARRIAGE_RETURN=nn.CASE_SENSITIVE_TAG_NAMES_MAP=nn.CASE_SENSITIVE_TAG_NAMES=void 0;nn.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"];nn.CASE_SENSITIVE_TAG_NAMES_MAP=nn.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});nn.CARRIAGE_RETURN="\r";nn.CARRIAGE_RETURN_REGEX=new RegExp(nn.CARRIAGE_RETURN,"g");nn.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");nn.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(nn.CARRIAGE_RETURN_PLACEHOLDER,"g")});var uP=Ae(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.formatAttributes=uj;Bg.escapeSpecialCharacters=x_e;Bg.revertEscapedCharacters=dj;Bg.formatDOM=pj;var W2=cP(),X1=cj();function b_e(e){return X1.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function uj(e){for(var t={},r=0,o=e.length;r<o;r++){var n=e[r];t[n.name]=n.value}return t}function __e(e){e=e.toLowerCase();var t=b_e(e);return t||e}function x_e(e){return e.replace(X1.CARRIAGE_RETURN_REGEX,X1.CARRIAGE_RETURN_PLACEHOLDER)}function dj(e){return e.replace(X1.CARRIAGE_RETURN_PLACEHOLDER_REGEX,X1.CARRIAGE_RETURN)}function pj(e,t,r){t===void 0&&(t=null);for(var o=[],n,i=0,s=e.length;i<s;i++){var l=e[i];switch(l.nodeType){case 1:{var c=__e(l.nodeName);n=new W2.Element(c,uj(l.attributes)),n.children=pj(c==="template"?l.content.childNodes:l.childNodes,n);break}case 3:n=new W2.Text(dj(l.nodeValue));break;case 8:n=new W2.Comment(l.nodeValue);break;default:continue}var u=o[i-1]||null;u&&(u.next=n),n.parent=t,n.prev=u,n.next=null,o.push(n)}return r&&(n=new W2.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),n.next=o[0]||null,n.parent=t,o.unshift(n),o[1]&&(o[1].prev=o[0])),o}});var _j=Ae(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.default=C_e;var k_e=uP(),mj="html",fj="head",G2="body",w_e=/<([a-zA-Z]+[0-9]?)/,gj=/<head[^]*>/i,hj=/<body[^]*>/i,q2=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},dP=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},vj=typeof window=="object"&&window.DOMParser;typeof vj=="function"&&(yj=new vj,bj="text/html",dP=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),yj.parseFromString(e,bj)},q2=dP);var yj,bj;typeof document=="object"&&document.implementation&&(J1=document.implementation.createHTMLDocument(),q2=function(e,t){if(t){var r=J1.documentElement.querySelector(t);return r&&(r.innerHTML=e),J1}return J1.documentElement.innerHTML=e,J1});var J1,$2=typeof document=="object"&&document.createElement("template"),pP;$2&&$2.content&&(pP=function(e){return $2.innerHTML=e,$2.content.childNodes});function C_e(e){var t,r;e=(0,k_e.escapeSpecialCharacters)(e);var o=e.match(w_e),n=o&&o[1]?o[1].toLowerCase():"";switch(n){case mj:{var i=dP(e);if(!gj.test(e)){var s=i.querySelector(fj);(t=s?.parentNode)===null||t===void 0||t.removeChild(s)}if(!hj.test(e)){var s=i.querySelector(G2);(r=s?.parentNode)===null||r===void 0||r.removeChild(s)}return i.querySelectorAll(mj)}case fj:case G2:{var l=q2(e).querySelectorAll(n);return hj.test(e)&&gj.test(e)?l[0].parentNode.childNodes:l}default:{if(pP)return pP(e);var s=q2(e,G2).querySelector(G2);return s.childNodes}}}});var xj=Ae(ev=>{"use strict";var S_e=ev&&ev.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ev,"__esModule",{value:!0});ev.default=B_e;var T_e=S_e(_j()),P_e=uP(),E_e=/<(![a-zA-Z\s]+)>/;function B_e(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(E_e),r=t?t[1]:void 0;return(0,P_e.formatDOM)((0,T_e.default)(e),null,r)}});var kj=Ae(Z2=>{var N_e=0;Z2.SAME=N_e;var I_e=1;Z2.CAMELCASE=I_e;Z2.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 Cj=Ae(cl=>{"use strict";function R_e(e){return an.hasOwnProperty(e)?an[e]:null}function ca(e,t,r,o,n,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var an={},D_e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];D_e.forEach(e=>{an[e]=new ca(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{an[e]=new ca(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{an[e]=new ca(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{an[e]=new ca(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=>{an[e]=new ca(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{an[e]=new ca(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{an[e]=new ca(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{an[e]=new ca(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{an[e]=new ca(e,5,!1,e.toLowerCase(),null,!1,!1)});var fP=/[\-\:]([a-z])/g,gP=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(fP,gP);an[t]=new ca(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(fP,gP);an[t]=new ca(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(fP,gP);an[t]=new ca(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{an[e]=new ca(e,1,!1,e.toLowerCase(),null,!1,!1)});var L_e="xlinkHref";an[L_e]=new ca("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{an[e]=new ca(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:A_e,SAME:M_e,possibleStandardNames:wj}=kj(),z_e=":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",V_e=z_e+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",F_e=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+V_e+"]*$")),O_e=Object.keys(wj).reduce((e,t)=>{let r=wj[t];return r===M_e?e[t]=t:r===A_e?e[t.toLowerCase()]=t:e[t]=r,e},{});cl.BOOLEAN=3;cl.BOOLEANISH_STRING=2;cl.NUMERIC=5;cl.OVERLOADED_BOOLEAN=4;cl.POSITIVE_NUMERIC=6;cl.RESERVED=0;cl.STRING=1;cl.getPropertyInfo=R_e;cl.isCustomAttribute=F_e;cl.possibleStandardNames=O_e});var Me=Ae((mAe,Sj)=>{Sj.exports=window.React});var Ij=Ae((fAe,Nj)=>{"use strict";var Tj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H_e=/\n/g,j_e=/^\s*/,U_e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,W_e=/^:\s*/,G_e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$_e=/^[;\s]*/,q_e=/^\s+|\s+$/g,Z_e=`
   4  `,Pj="/",Ej="*",qp="",K_e="comment",Y_e="declaration";function Q_e(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 n(g){var h=g.match(H_e);h&&(r+=h.length);var v=g.lastIndexOf(Z_e);o=~v?g.length-v:o+g.length}function i(){var g={line:r,column:o};return function(h){return h.position=new s(g),u(),h}}function s(g){this.start=g,this.end={line:r,column:o},this.source=t.source}s.prototype.content=e;function l(g){var h=new Error(t.source+":"+r+":"+o+": "+g);if(h.reason=g,h.filename=t.source,h.line=r,h.column=o,h.source=e,!t.silent)throw h}function c(g){var h=g.exec(e);if(h){var v=h[0];return n(v),e=e.slice(v.length),h}}function u(){c(j_e)}function d(g){var h;for(g=g||[];h=p();)h!==!1&&g.push(h);return g}function p(){var g=i();if(!(Pj!=e.charAt(0)||Ej!=e.charAt(1))){for(var h=2;qp!=e.charAt(h)&&(Ej!=e.charAt(h)||Pj!=e.charAt(h+1));)++h;if(h+=2,qp===e.charAt(h-1))return l("End of comment missing");var v=e.slice(2,h-2);return o+=2,n(v),e=e.slice(h),o+=2,g({type:K_e,comment:v})}}function m(){var g=i(),h=c(U_e);if(h){if(p(),!c(W_e))return l("property missing ':'");var v=c(G_e),x=g({type:Y_e,property:Bj(h[0].replace(Tj,qp)),value:v?Bj(v[0].replace(Tj,qp)):qp});return c($_e),x}}function f(){var g=[];d(g);for(var h;h=m();)h!==!1&&(g.push(h),d(g));return g}return u(),f()}function Bj(e){return e?e.replace(q_e,qp):qp}Nj.exports=Q_e});var Rj=Ae(tv=>{"use strict";var X_e=tv&&tv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tv,"__esModule",{value:!0});tv.default=e2e;var J_e=X_e(Ij());function e2e(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,J_e.default)(e),n=typeof t=="function";return o.forEach(i=>{if(i.type!=="declaration")return;let{property:s,value:l}=i;n?t(s,l,i):l&&(r=r||{},r[s]=l)}),r}});var Lj=Ae(K2=>{"use strict";Object.defineProperty(K2,"__esModule",{value:!0});K2.camelCase=void 0;var t2e=/^--[a-zA-Z0-9_-]+$/,r2e=/-([a-z])/g,o2e=/^[^-]+$/,n2e=/^-(webkit|moz|ms|o|khtml)-/,a2e=/^-(ms)-/,i2e=function(e){return!e||o2e.test(e)||t2e.test(e)},s2e=function(e,t){return t.toUpperCase()},Dj=function(e,t){return"".concat(t,"-")},l2e=function(e,t){return t===void 0&&(t={}),i2e(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(a2e,Dj):e=e.replace(n2e,Dj),e.replace(r2e,s2e))};K2.camelCase=l2e});var Mj=Ae((vP,Aj)=>{"use strict";var c2e=vP&&vP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u2e=c2e(Rj()),d2e=Lj();function hP(e,t){var r={};return!e||typeof e!="string"||(0,u2e.default)(e,function(o,n){o&&n&&(r[(0,d2e.camelCase)(o,t)]=n)}),r}hP.default=hP;Aj.exports=hP});var yP=Ae(ua=>{"use strict";var p2e=ua&&ua.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});ua.returnFirstArg=ua.canTextBeChildOfNode=ua.ELEMENTS_WITH_NO_TEXT_CHILDREN=ua.PRESERVE_CUSTOM_ATTRIBUTES=void 0;ua.isCustomComponent=h2e;ua.setStyleProp=y2e;var m2e=Me(),f2e=p2e(Mj()),g2e=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function h2e(e,t){return e.includes("-")?!g2e.has(e):!!(t&&typeof t.is=="string")}var v2e={reactCompat:!0};function y2e(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,f2e.default)(e,v2e)}catch{t.style={}}}}ua.PRESERVE_CUSTOM_ATTRIBUTES=Number(m2e.version.split(".")[0])>=16;ua.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var b2e=function(e){return!ua.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};ua.canTextBeChildOfNode=b2e;var _2e=function(e){return e};ua.returnFirstArg=_2e});var _P=Ae(bP=>{"use strict";Object.defineProperty(bP,"__esModule",{value:!0});bP.default=C2e;var rv=Cj(),zj=yP(),x2e=["checked","value"],k2e=["input","select","textarea"],w2e={reset:!0,submit:!0};function C2e(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&w2e[e.type]);for(var n in e){var i=e[n];if((0,rv.isCustomAttribute)(n)){r[n]=i;continue}var s=n.toLowerCase(),l=Vj(s);if(l){var c=(0,rv.getPropertyInfo)(l);switch(x2e.includes(l)&&k2e.includes(t)&&!o&&(l=Vj("default"+s)),r[l]=i,c&&c.type){case rv.BOOLEAN:r[l]=!0;break;case rv.OVERLOADED_BOOLEAN:i===""&&(r[l]=!0);break}continue}zj.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,zj.setStyleProp)(e.style,r),r}function Vj(e){return rv.possibleStandardNames[e]}});var Oj=Ae(nv=>{"use strict";var S2e=nv&&nv.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nv,"__esModule",{value:!0});nv.default=Fj;var xP=Me(),T2e=S2e(_P()),ov=yP(),P2e={cloneElement:xP.cloneElement,createElement:xP.createElement,isValidElement:xP.isValidElement};function Fj(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",n=t.transform||ov.returnFirstArg,i=t.library||P2e,s=i.cloneElement,l=i.createElement,c=i.isValidElement,u=e.length,d=0;d<u;d++){var p=e[d];if(o){var m=t.replace(p,d);if(c(m)){u>1&&(m=s(m,{key:m.key||d})),r.push(n(m,p,d));continue}}if(p.type==="text"){var f=!p.data.trim().length;if(f&&p.parent&&!(0,ov.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,d));continue}var g=p,h={};E2e(g)?((0,ov.setStyleProp)(g.attribs.style,g.attribs),h=g.attribs):g.attribs&&(h=(0,T2e.default)(g.attribs,g.name));var v=void 0;switch(p.type){case"script":case"style":p.children[0]&&(h.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?h.defaultValue=p.children[0].data:p.children&&p.children.length&&(v=Fj(p.children,t));break;default:continue}u>1&&(h.key=d),r.push(n(l(p.name,h,v),p,d))}return r.length===1?r[0]:r}function E2e(e){return ov.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,ov.isCustomComponent)(e.name,e.attribs)}});var wP=Ae(So=>{"use strict";var kP=So&&So.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(So,"__esModule",{value:!0});So.htmlToDOM=So.domToReact=So.attributesToProps=So.Text=So.ProcessingInstruction=So.Element=So.Comment=void 0;So.default=I2e;var Hj=kP(xj());So.htmlToDOM=Hj.default;var B2e=kP(_P());So.attributesToProps=B2e.default;var jj=kP(Oj());So.domToReact=jj.default;var Y2=cP();Object.defineProperty(So,"Comment",{enumerable:!0,get:function(){return Y2.Comment}});Object.defineProperty(So,"Element",{enumerable:!0,get:function(){return Y2.Element}});Object.defineProperty(So,"ProcessingInstruction",{enumerable:!0,get:function(){return Y2.ProcessingInstruction}});Object.defineProperty(So,"Text",{enumerable:!0,get:function(){return Y2.Text}});var N2e={lowerCaseAttributeNames:!1};function I2e(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,jj.default)((0,Hj.default)(e,t?.htmlparser2||N2e),t):[]}});var da=Ae((kAe,Wj)=>{Wj.exports=window.wp.dom});var b=Ae((wAe,Gj)=>{Gj.exports=window.ReactJSXRuntime});var H=Ae((PAe,Zj)=>{Zj.exports=window.wp.element});var z=Ae((BAe,Kj)=>{Kj.exports=window.wp.primitives});var V=Ae((LHe,Yj)=>{Yj.exports=window.wp.components});var Or=Ae((AHe,Qj)=>{Qj.exports=window.wp.blob});var ne=Ae((MHe,Xj)=>{Xj.exports=window.wp.coreData});var dr=Ae((Lje,LU)=>{LU.exports=window.wp.url});var Wo=Ae((zje,FU)=>{FU.exports=window.wp.htmlEntities});var EW=Ae((gWe,PW)=>{PW.exports=window.ReactDOM});var AW=Ae(LW=>{"use strict";var Yg=Me();function mke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fke=typeof Object.is=="function"?Object.is:mke,gke=Yg.useState,hke=Yg.useEffect,vke=Yg.useLayoutEffect,yke=Yg.useDebugValue;function bke(e,t){var r=t(),o=gke({inst:{value:r,getSnapshot:t}}),n=o[0].inst,i=o[1];return vke(function(){n.value=r,n.getSnapshot=t,hR(n)&&i({inst:n})},[e,r,t]),hke(function(){return hR(n)&&i({inst:n}),e(function(){hR(n)&&i({inst:n})})},[e]),yke(r),r}function hR(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!fke(e,r)}catch{return!0}}function _ke(e,t){return t()}var xke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_ke:bke;LW.useSyncExternalStore=Yg.useSyncExternalStore!==void 0?Yg.useSyncExternalStore:xke});var zW=Ae((AWe,MW)=>{"use strict";MW.exports=AW()});var zR=Ae((gKe,MG)=>{MG.exports=window.wp.privateApis});var Uy=Ae((NKe,ZG)=>{ZG.exports=window.wp.a11y});var xr=Ae((HQe,iq)=>{iq.exports=window.wp.notices});var uc=Ae((QXe,jq)=>{jq.exports=window.wp.keycodes});var Lm=Ae((rJe,Gq)=>{Gq.exports=window.wp.deprecated});var hl=Ae((PJe,oZ)=>{oZ.exports=window.wp.richText});var A3=Ae((xrt,eY)=>{eY.exports=window.wp.date});var fb=Ae((Jrt,gY)=>{gY.exports=window.wp.apiFetch});var Ad=Ae((Rnt,XQ)=>{XQ.exports=window.wp.hooks});var UJ=Ae((nst,jJ)=>{jJ.exports=window.wp.styleEngine});var qJ=Ae((sst,$J)=>{"use strict";$J.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,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],r.get(n[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(n of t.entries())if(!r.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(t[n]!==r[n])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(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=o;n--!==0;){var s=i[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var IA=Ae((Ylt,eC)=>{var tte={\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"},rte=Object.keys(tte).join("|"),z6e=new RegExp(rte,"g"),V6e=new RegExp(rte,"");function F6e(e){return tte[e]}var ote=function(e){return e.replace(z6e,F6e)},O6e=function(e){return!!e.match(V6e)};eC.exports=ote;eC.exports.has=O6e;eC.exports.remove=ote});var rre=Ae((xut,tre)=>{tre.exports=window.wp.uploadMedia});var zS=Ae((bgt,uie)=>{uie.exports=window.wp.escapeHtml});var jde=Ae((_2t,Hde)=>{Hde.exports=window.wp.wordcount});var Wfe=Ae((u5t,Ufe)=>{Ufe.exports=window.wp.patterns});var zge=Ae((h3t,Mge)=>{Mge.exports=window.wp.autop});var Fge=Ae((v3t,Vge)=>{Vge.exports=window.wp.shortcode});var ZLe={};J(ZLe,{__experimentalGetCoreBlocks:()=>Zbe,__experimentalRegisterExperimentalCoreBlocks:()=>qLe,privateApis:()=>BH,registerCoreBlocks:()=>$Le});var rl=a(K(),1),Wbe=a(he(),1),Gbe=a(O(),1),$be=a(R(),1),qbe=a(sd(),1),D2=a(D(),1);function ZH(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ZH(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function f_e(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ZH(e))&&(o&&(o+=" "),o+=t);return o}var T=f_e;var CP=a(wP(),1),ul=a(wP(),1),Uj=CP.default.default||CP.default;var $j=a(da(),1),qj=a(b(),1),R2e=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:s,attribs:l,parent:c,children:u})=>{if(s==="tag"&&i){let d=(0,ul.attributesToProps)(l||{}),p=i;if(!c){let m={...d,...e,className:T(d.className,e.className),style:{...d.style||{},...e.style||{}}};return(0,qj.jsx)(p,{...m,children:(0,ul.domToReact)(u,r)})}}}},o=(0,$j.safeHTML)(t);return Uj(o,r)},To=R2e;var WI={};J(WI,{init:()=>z2e,metadata:()=>Nw,name:()=>iU,settings:()=>sU});var UI=a(D(),1);var Q2=a(H(),1),pa=(0,Q2.forwardRef)(({icon:e,size:t=24,style:r,...o},n)=>{let i=e.props.style,s=i||r?{...i,...r}:void 0;return(0,Q2.cloneElement)(e,{width:t,height:t,...o,...s?{style:s}:{},ref:n})});var av=a(z(),1),iv=a(b(),1),SP=(0,iv.jsxs)(av.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,iv.jsx)(av.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,iv.jsx)(av.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var Zp=a(z(),1),Kp=a(b(),1),TP=(0,Kp.jsxs)(Zp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Kp.jsx)(Zp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,Kp.jsx)(Zp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,Kp.jsx)(Zp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,Kp.jsx)(Zp.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var Yp=a(z(),1),Qp=a(b(),1),PP=(0,Qp.jsxs)(Yp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Qp.jsx)(Yp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,Qp.jsx)(Yp.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,Qp.jsx)(Yp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,Qp.jsx)(Yp.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var X2=a(z(),1),EP=a(b(),1),Xp=(0,EP.jsx)(X2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EP.jsx)(X2.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 J2=a(z(),1),BP=a(b(),1),NP=(0,BP.jsx)(J2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,BP.jsx)(J2.Path,{d:"M7.5 5H16.5M4 12H20M7.5 19H16.5",vectorEffect:"non-scaling-stroke"})});var ex=a(z(),1),IP=a(b(),1),RP=(0,IP.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,IP.jsx)(ex.Path,{d:"M4 5H13M4 12H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var Ng=a(z(),1),sv=a(b(),1),DP=(0,sv.jsxs)(Ng.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,sv.jsx)(Ng.Path,{d:"M5 5H19M5 19H19",vectorEffect:"non-scaling-stroke"}),(0,sv.jsx)(Ng.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var tx=a(z(),1),LP=a(b(),1),AP=(0,LP.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,LP.jsx)(tx.Path,{d:"M11 5H20M4 12H20M11 19H20",vectorEffect:"non-scaling-stroke"})});var rx=a(z(),1),MP=a(b(),1),zP=(0,MP.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MP.jsx)(rx.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 ox=a(z(),1),VP=a(b(),1),Jp=(0,VP.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VP.jsx)(ox.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 nx=a(z(),1),FP=a(b(),1),OP=(0,FP.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FP.jsx)(nx.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 ax=a(z(),1),HP=a(b(),1),lv=(0,HP.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HP.jsx)(ax.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 ix=a(z(),1),jP=a(b(),1),UP=(0,jP.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jP.jsx)(ix.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var sx=a(z(),1),WP=a(b(),1),GP=(0,WP.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WP.jsx)(sx.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 lx=a(z(),1),$P=a(b(),1),qP=(0,$P.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$P.jsx)(lx.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 cx=a(z(),1),ZP=a(b(),1),cv=(0,ZP.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZP.jsx)(cx.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 ux=a(z(),1),KP=a(b(),1),YP=(0,KP.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KP.jsx)(ux.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 em=a(z(),1),tm=a(b(),1),ud=(0,tm.jsxs)(em.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,tm.jsx)(em.Path,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H9C9.69036 4.75 10.25 5.30964 10.25 6V9C10.25 9.69036 9.69036 10.25 9 10.25H6C5.30964 10.25 4.75 9.69036 4.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,tm.jsx)(em.Path,{d:"M4.75 15C4.75 14.3096 5.30964 13.75 6 13.75H9C9.69036 13.75 10.25 14.3096 10.25 15V18C10.25 18.6904 9.69036 19.25 9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15Z",vectorEffect:"non-scaling-stroke"}),(0,tm.jsx)(em.Path,{d:"M13.75 6C13.75 5.30964 14.3096 4.75 15 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V9C19.25 9.69036 18.6904 10.25 18 10.25H15C14.3096 10.25 13.75 9.69036 13.75 9V6Z",vectorEffect:"non-scaling-stroke"}),(0,tm.jsx)(em.Path,{d:"M13.75 15C13.75 14.3096 14.3096 13.75 15 13.75H18C18.6904 13.75 19.25 14.3096 19.25 15V18C19.25 18.6904 18.6904 19.25 18 19.25H15C14.3096 19.25 13.75 18.6904 13.75 18V15Z",vectorEffect:"non-scaling-stroke"})]});var dx=a(z(),1),QP=a(b(),1),uv=(0,QP.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QP.jsx)(dx.Path,{d:"M7 11L12 15L17 11",vectorEffect:"non-scaling-stroke"})});var px=a(z(),1),XP=a(b(),1),JP=(0,XP.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,XP.jsx)(px.Path,{d:"M13.5 8.5L10.5 12L13.5 15.5",vectorEffect:"non-scaling-stroke"})});var mx=a(z(),1),eE=a(b(),1),fx=(0,eE.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,eE.jsx)(mx.Path,{d:"M14 6.5L9 12L14 17.5",vectorEffect:"non-scaling-stroke"})});var gx=a(z(),1),tE=a(b(),1),rE=(0,tE.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,tE.jsx)(gx.Path,{d:"M10.5 8.5L13.5 12L10.5 15.5",vectorEffect:"non-scaling-stroke"})});var hx=a(z(),1),oE=a(b(),1),Ig=(0,oE.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,oE.jsx)(hx.Path,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})});var vx=a(z(),1),nE=a(b(),1),aE=(0,nE.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nE.jsx)(vx.Path,{d:"M7 13L12 9L17 13",vectorEffect:"non-scaling-stroke"})});var yx=a(z(),1),iE=a(b(),1),dv=(0,iE.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iE.jsx)(yx.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 bx=a(z(),1),sE=a(b(),1),rm=(0,sE.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,sE.jsx)(bx.Path,{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})});var _x=a(z(),1),lE=a(b(),1),pv=(0,lE.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lE.jsx)(_x.Path,{d:"M7.99997 7L3.70708 11.2929C3.31655 11.6834 3.31655 12.3166 3.70708 12.7071L7.99997 17M16 17L20.2929 12.7071C20.6834 12.3166 20.6834 11.6834 20.2929 11.2929L16 7",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var xx=a(z(),1),cE=a(b(),1),uE=(0,cE.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cE.jsx)(xx.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 kx=a(z(),1),dE=a(b(),1),pE=(0,dE.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dE.jsx)(kx.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 Rg=a(z(),1),Dg=a(b(),1),mv=(0,Dg.jsxs)(Rg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Dg.jsx)(Rg.Path,{d:"M13.25 10C13.25 10.6904 12.6904 11.25 12 11.25C11.3096 11.25 10.75 10.6904 10.75 10C10.75 9.30964 11.3096 8.75 12 8.75C12.6904 8.75 13.25 9.30964 13.25 10Z",fill:"currentColor",stroke:"none"}),(0,Dg.jsx)(Rg.Path,{d:"M8 18.0476V16C8 14.8954 8.89543 14 10 14H14C15.1046 14 16 14.8954 16 16V18.0476M13.25 10C13.25 10.6904 12.6904 11.25 12 11.25C11.3096 11.25 10.75 10.6904 10.75 10C10.75 9.30964 11.3096 8.75 12 8.75C12.6904 8.75 13.25 9.30964 13.25 10Z",vectorEffect:"non-scaling-stroke"}),(0,Dg.jsx)(Rg.Path,{d:"M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99593 19.25 12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var om=a(z(),1),Lg=a(b(),1),mE=(0,Lg.jsxs)(om.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Lg.jsx)(om.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,Lg.jsx)(om.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,Lg.jsx)(om.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var wx=a(z(),1),fE=a(b(),1),gE=(0,fE.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fE.jsx)(wx.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 Cx=a(z(),1),hE=a(b(),1),vE=(0,hE.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hE.jsx)(Cx.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 Sx=a(z(),1),yE=a(b(),1),bE=(0,yE.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yE.jsx)(Sx.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 Tx=a(z(),1),_E=a(b(),1),fv=(0,_E.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_E.jsx)(Tx.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 Px=a(z(),1),xE=a(b(),1),gv=(0,xE.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xE.jsx)(Px.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 hv=a(z(),1),vv=a(b(),1),nm=(0,vv.jsxs)(hv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,vv.jsx)(hv.Path,{d:"M20.25 18.75V5.25C20.25 4.42157 19.5784 3.75 18.75 3.75H5.25C4.42157 3.75 3.75 4.42157 3.75 5.25V18.75C3.75 19.5784 4.42157 20.25 5.25 20.25H18.75C19.5784 20.25 20.25 19.5784 20.25 18.75Z",vectorEffect:"non-scaling-stroke"}),(0,vv.jsx)(hv.Path,{d:"M11.5 13.4V3.75H16.5V13.4L14 10.3L11.5 13.4Z",fill:"currentColor",stroke:"none"})]});var Ex=a(z(),1),kE=a(b(),1),am=(0,kE.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kE.jsx)(Ex.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 Bx=a(z(),1),wE=a(b(),1),im=(0,wE.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wE.jsx)(Bx.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 Nx=a(z(),1),CE=a(b(),1),SE=(0,CE.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CE.jsx)(Nx.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 yv=a(z(),1),bv=a(b(),1),TE=(0,bv.jsxs)(yv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,bv.jsx)(yv.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,bv.jsx)(yv.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var Ix=a(z(),1),PE=a(b(),1),EE=(0,PE.jsx)(Ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PE.jsx)(Ix.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})});var Rx=a(z(),1),BE=a(b(),1),_v=(0,BE.jsx)(Rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BE.jsx)(Rx.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 Dx=a(z(),1),NE=a(b(),1),xv=(0,NE.jsx)(Dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NE.jsx)(Dx.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 Lx=a(z(),1),IE=a(b(),1),RE=(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:"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 Ax=a(z(),1),DE=a(b(),1),LE=(0,DE.jsx)(Ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DE.jsx)(Ax.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 Mx=a(z(),1),AE=a(b(),1),ME=(0,AE.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AE.jsx)(Mx.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 zx=a(z(),1),zE=a(b(),1),VE=(0,zE.jsx)(zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zE.jsx)(zx.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 Vx=a(z(),1),FE=a(b(),1),OE=(0,FE.jsx)(Vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FE.jsx)(Vx.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 Fx=a(z(),1),HE=a(b(),1),kv=(0,HE.jsx)(Fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HE.jsx)(Fx.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=a(z(),1),jE=a(b(),1),wv=(0,jE.jsx)(Ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jE.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 Hx=a(z(),1),UE=a(b(),1),Cv=(0,UE.jsx)(Hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UE.jsx)(Hx.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 jx=a(z(),1),WE=a(b(),1),gs=(0,WE.jsx)(jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WE.jsx)(jx.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 Ux=a(z(),1),GE=a(b(),1),$E=(0,GE.jsx)(Ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GE.jsx)(Ux.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 Wx=a(z(),1),qE=a(b(),1),Sv=(0,qE.jsx)(Wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qE.jsx)(Wx.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 Gx=a(z(),1),ZE=a(b(),1),Tv=(0,ZE.jsx)(Gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZE.jsx)(Gx.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 $x=a(z(),1),KE=a(b(),1),sm=(0,KE.jsx)($x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KE.jsx)($x.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 qx=a(z(),1),YE=a(b(),1),lm=(0,YE.jsx)(qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YE.jsx)(qx.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 Zx=a(z(),1),QE=a(b(),1),ki=(0,QE.jsx)(Zx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QE.jsx)(Zx.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 Kx=a(z(),1),XE=a(b(),1),Pv=(0,XE.jsx)(Kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XE.jsx)(Kx.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 Yx=a(z(),1),JE=a(b(),1),eB=(0,JE.jsx)(Yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JE.jsx)(Yx.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 Qx=a(z(),1),tB=a(b(),1),rB=(0,tB.jsx)(Qx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tB.jsx)(Qx.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var Xx=a(z(),1),oB=a(b(),1),nB=(0,oB.jsx)(Xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oB.jsx)(Xx.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 Jx=a(z(),1),aB=a(b(),1),iB=(0,aB.jsx)(Jx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aB.jsx)(Jx.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 ek=a(z(),1),sB=a(b(),1),lB=(0,sB.jsx)(ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sB.jsx)(ek.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var tk=a(z(),1),cB=a(b(),1),uB=(0,cB.jsx)(tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cB.jsx)(tk.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 rk=a(z(),1),dB=a(b(),1),pB=(0,dB.jsx)(rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dB.jsx)(rk.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 ok=a(z(),1),mB=a(b(),1),fB=(0,mB.jsx)(ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mB.jsx)(ok.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var nk=a(z(),1),gB=a(b(),1),hB=(0,gB.jsx)(nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gB.jsx)(nk.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var ak=a(z(),1),vB=a(b(),1),yB=(0,vB.jsx)(ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vB.jsx)(ak.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 ik=a(z(),1),bB=a(b(),1),dd=(0,bB.jsx)(ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,bB.jsx)(ik.Path,{d:"M3.75 16.2031L8.6 12.7L12 15L16 11L20.25 15.2517M5 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V5C20.25 4.30964 19.6904 3.75 19 3.75H5C4.30964 3.75 3.75 4.30964 3.75 5V19C3.75 19.6904 4.30964 20.25 5 20.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var sk=a(z(),1),_B=a(b(),1),xB=(0,_B.jsx)(sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_B.jsx)(sk.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 lk=a(z(),1),kB=a(b(),1),cm=(0,kB.jsx)(lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kB.jsx)(lk.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 ck=a(z(),1),wB=a(b(),1),Ev=(0,wB.jsx)(ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wB.jsx)(ck.Path,{d:"M9.5 12H12.5M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10.2333M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75H14.7667M8.5 19.5L16.5 4.5",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var uk=a(z(),1),CB=a(b(),1),wi=(0,CB.jsx)(uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,CB.jsx)(uk.Path,{d:"M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75",vectorEffect:"non-scaling-stroke"})});var dk=a(z(),1),SB=a(b(),1),TB=(0,SB.jsx)(dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SB.jsx)(dk.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 pk=a(z(),1),PB=a(b(),1),dl=(0,PB.jsx)(pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PB.jsx)(pk.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 mk=a(z(),1),EB=a(b(),1),BB=(0,EB.jsx)(mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EB.jsx)(mk.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 fk=a(z(),1),NB=a(b(),1),um=(0,NB.jsx)(fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,NB.jsx)(fk.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 gk=a(z(),1),IB=a(b(),1),RB=(0,IB.jsx)(gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IB.jsx)(gk.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 hk=a(z(),1),DB=a(b(),1),LB=(0,DB.jsx)(hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DB.jsx)(hk.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 vk=a(z(),1),AB=a(b(),1),MB=(0,AB.jsx)(vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AB.jsx)(vk.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var Bv=a(z(),1),Nv=a(b(),1),Iv=(0,Nv.jsxs)(Bv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Nv.jsx)(Bv.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Nv.jsx)(Bv.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 yk=a(z(),1),zB=a(b(),1),VB=(0,zB.jsx)(yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,zB.jsx)(yk.Path,{d:"M5 12H19M5 18.25H19M5 5.75H19",vectorEffect:"non-scaling-stroke"})});var bk=a(z(),1),FB=a(b(),1),Rv=(0,FB.jsx)(bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FB.jsx)(bk.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var _k=a(z(),1),OB=a(b(),1),HB=(0,OB.jsx)(_k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OB.jsx)(_k.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var xk=a(z(),1),jB=a(b(),1),UB=(0,jB.jsx)(xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jB.jsx)(xk.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 Dv=a(z(),1),Lv=a(b(),1),dm=(0,Lv.jsxs)(Dv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Lv.jsx)(Dv.Path,{d:"M9 16L13.5 12.8421L15 8L10.5 11.1579L9 16Z",fill:"currentColor",stroke:"none"}),(0,Lv.jsx)(Dv.Path,{d:"M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var kk=a(z(),1),WB=a(b(),1),Av=(0,WB.jsx)(kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,WB.jsx)(kk.Path,{d:"M7 17.5L12 12L7 6.5M13 17.5L18 12L13 6.5",vectorEffect:"non-scaling-stroke"})});var wk=a(z(),1),GB=a(b(),1),$B=(0,GB.jsx)(wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GB.jsx)(wk.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 Ck=a(z(),1),qB=a(b(),1),ZB=(0,qB.jsx)(Ck.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qB.jsx)(Ck.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 Mv=a(z(),1),zv=a(b(),1),lu=(0,zv.jsxs)(Mv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,zv.jsx)(Mv.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,zv.jsx)(Mv.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 Ag=a(z(),1),Mg=a(b(),1),KB=(0,Mg.jsxs)(Ag.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Mg.jsx)(Ag.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,Mg.jsx)(Ag.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,Mg.jsx)(Ag.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var Vv=a(z(),1),Fv=a(b(),1),YB=(0,Fv.jsxs)(Vv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Fv.jsx)(Vv.Path,{d:"M10.75 20V4.75L14.75 4.75M14.75 20V4.75M14.75 4.75H18.5",vectorEffect:"non-scaling-stroke"}),(0,Fv.jsx)(Vv.Path,{d:"M5.75 9C5.75 11.3472 7.65279 13.25 10 13.25H10.75V4.75H10C7.65279 4.75 5.75 6.65279 5.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Sk=a(z(),1),QB=a(b(),1),pm=(0,QB.jsx)(Sk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QB.jsx)(Sk.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var Tk=a(z(),1),XB=a(b(),1),Ov=(0,XB.jsx)(Tk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XB.jsx)(Tk.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 Pk=a(z(),1),JB=a(b(),1),eN=(0,JB.jsx)(Pk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JB.jsx)(Pk.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.4zM19.5 12l-4 3V9z"})});var Ek=a(z(),1),tN=a(b(),1),Hv=(0,tN.jsx)(Ek.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tN.jsx)(Ek.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 Bk=a(z(),1),rN=a(b(),1),oN=(0,rN.jsx)(Bk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rN.jsx)(Bk.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 Nk=a(z(),1),nN=a(b(),1),zg=(0,nN.jsx)(Nk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nN.jsx)(Nk.Path,{d:"M12 18V6M18 12H6",vectorEffect:"non-scaling-stroke"})});var Vg=a(z(),1),jv=a(b(),1),aN=(0,jv.jsxs)(Vg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,jv.jsx)(Vg.Path,{d:"M5 4.75H19M5 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,jv.jsx)(Vg.Rect,{x:"7",y:"9",width:"10",height:"6",fill:"currentColor",stroke:"none"})]});var Fg=a(z(),1),Uv=a(b(),1),iN=(0,Uv.jsxs)(Fg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Uv.jsx)(Fg.Path,{d:"M5 4.75H13M5 19.25H13",vectorEffect:"non-scaling-stroke"}),(0,Uv.jsx)(Fg.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var Og=a(z(),1),Wv=a(b(),1),sN=(0,Wv.jsxs)(Og.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Wv.jsx)(Og.Path,{d:"M11 4.75H19M11 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,Wv.jsx)(Og.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var Ik=a(z(),1),lN=a(b(),1),mm=(0,lN.jsx)(Ik.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lN.jsx)(Ik.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 Rk=a(z(),1),cN=a(b(),1),Hg=(0,cN.jsx)(Rk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cN.jsx)(Rk.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 Dk=a(z(),1),uN=a(b(),1),Gv=(0,uN.jsx)(Dk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uN.jsx)(Dk.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 Lk=a(z(),1),dN=a(b(),1),pN=(0,dN.jsx)(Lk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dN.jsx)(Lk.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 Ak=a(z(),1),mN=a(b(),1),fN=(0,mN.jsx)(Ak.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mN.jsx)(Ak.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 Mk=a(z(),1),gN=a(b(),1),hN=(0,gN.jsx)(Mk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gN.jsx)(Mk.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var $v=a(z(),1),qv=a(b(),1),Zv=(0,qv.jsxs)($v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,qv.jsx)($v.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,qv.jsx)($v.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 zk=a(z(),1),vN=a(b(),1),yN=(0,vN.jsx)(zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vN.jsx)(zk.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 Vk=a(z(),1),bN=a(b(),1),_N=(0,bN.jsx)(Vk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bN.jsx)(Vk.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 Fk=a(z(),1),xN=a(b(),1),Kv=(0,xN.jsx)(Fk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xN.jsx)(Fk.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 Ok=a(z(),1),kN=a(b(),1),wN=(0,kN.jsx)(Ok.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kN.jsx)(Ok.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 Hk=a(z(),1),CN=a(b(),1),SN=(0,CN.jsx)(Hk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CN.jsx)(Hk.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 jk=a(z(),1),TN=a(b(),1),PN=(0,TN.jsx)(jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,TN.jsx)(jk.Path,{d:"M17 6.5L12 12L17 17.5M11 6.5L6 12L11 17.5",vectorEffect:"non-scaling-stroke"})});var Yv=a(z(),1),Qv=a(b(),1),EN=(0,Qv.jsxs)(Yv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qv.jsx)(Yv.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,Qv.jsx)(Yv.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]});var Xv=a(z(),1),Jv=a(b(),1),BN=(0,Jv.jsxs)(Xv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Jv.jsx)(Xv.Path,{d:"M10 18L4 18L4 6L10 6L10 18Z",fill:"currentColor",stroke:"none"}),(0,Jv.jsx)(Xv.Path,{d:"M13 9.25H20M20 14.75H13",vectorEffect:"non-scaling-stroke"})]});var ey=a(z(),1),ty=a(b(),1),NN=(0,ty.jsxs)(ey.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ty.jsx)(ey.Path,{d:"M20 18L14 18L14 6L20 6L20 18Z",fill:"currentColor",stroke:"none"}),(0,ty.jsx)(ey.Path,{d:"M4 9.25H11M11 14.75H4",vectorEffect:"non-scaling-stroke"})]});var ry=a(z(),1),oy=a(b(),1),IN=(0,oy.jsxs)(ry.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,oy.jsx)(ry.Path,{d:"M4 4.75H20M4 19.25H20",vectorEffect:"non-scaling-stroke"}),(0,oy.jsx)(ry.Path,{d:"M4.75 9.75C4.75 9.19772 5.19772 8.75 5.75 8.75H18.25C18.8023 8.75 19.25 9.19772 19.25 9.75V14.25C19.25 14.8023 18.8023 15.25 18.25 15.25H5.75C5.19771 15.25 4.75 14.8023 4.75 14.25V9.75Z",vectorEffect:"non-scaling-stroke"})]});var Uk=a(z(),1),RN=a(b(),1),ny=(0,RN.jsx)(Uk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RN.jsx)(Uk.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var Wk=a(z(),1),DN=a(b(),1),ay=(0,DN.jsx)(Wk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DN.jsx)(Wk.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 Gk=a(z(),1),LN=a(b(),1),iy=(0,LN.jsx)(Gk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LN.jsx)(Gk.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 $k=a(z(),1),AN=a(b(),1),sy=(0,AN.jsx)($k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AN.jsx)($k.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var qk=a(z(),1),MN=a(b(),1),zN=(0,MN.jsx)(qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MN.jsx)(qk.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 Zk=a(z(),1),VN=a(b(),1),FN=(0,VN.jsx)(Zk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VN.jsx)(Zk.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 Kk=a(z(),1),ON=a(b(),1),HN=(0,ON.jsx)(Kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,ON.jsx)(Kk.Path,{d:"M7 12H17",vectorEffect:"non-scaling-stroke"})});var Yk=a(z(),1),jN=a(b(),1),UN=(0,jN.jsx)(Yk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,jN.jsx)(Yk.Path,{d:"M11.5 18.75H5.25V12.5M5.25 18.75L18.75 5.25M18.75 11.5V5.25H12.5",vectorEffect:"non-scaling-stroke"})});var Qk=a(z(),1),WN=a(b(),1),GN=(0,WN.jsx)(Qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,WN.jsx)(Qk.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 Xk=a(z(),1),$N=a(b(),1),qN=(0,$N.jsx)(Xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$N.jsx)(Xk.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 ly=a(z(),1),cy=a(b(),1),uy=(0,cy.jsxs)(ly.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cy.jsx)(ly.Path,{d:"M6.25 17.75L6.25 19.25L4.75 19.25L4.75 17.75L6.25 17.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,cy.jsx)(ly.Path,{d:"M4.75 11H5C9.41828 11 13 14.5817 13 19V19.25M19 19.25V19C19 11.268 12.732 5 5 5H4.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var Jk=a(z(),1),ZN=a(b(),1),KN=(0,ZN.jsx)(Jk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,ZN.jsx)(Jk.Path,{d:"M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z",vectorEffect:"non-scaling-stroke"})});var ew=a(z(),1),YN=a(b(),1),QN=(0,YN.jsx)(ew.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YN.jsx)(ew.Path,{d:"M3.75 7V11.75M3.75 16.5V11.75M3.75 11.75H20.25M20.25 11.75V16.5M20.25 11.75V7",vectorEffect:"non-scaling-stroke"})});var tw=a(z(),1),XN=a(b(),1),dy=(0,XN.jsx)(tw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XN.jsx)(tw.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 rw=a(z(),1),JN=a(b(),1),py=(0,JN.jsx)(rw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JN.jsx)(rw.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 ow=a(z(),1),eI=a(b(),1),tI=(0,eI.jsx)(ow.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eI.jsx)(ow.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 nw=a(z(),1),rI=a(b(),1),oI=(0,rI.jsx)(nw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,rI.jsx)(nw.Path,{d:"M5.07325 14.1472L8.71429 12L12.5 13.3333L15.75 11C15.75 11 17.934 11.9169 19.2032 12.8281M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})});var aw=a(z(),1),nI=a(b(),1),aI=(0,nI.jsx)(aw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nI.jsx)(aw.Path,{d:"M5.75 12V18.25H12M12 5.75H18.25V12",vectorEffect:"non-scaling-stroke"})});var iw=a(z(),1),iI=a(b(),1),sI=(0,iI.jsx)(iw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iI.jsx)(iw.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 sw=a(z(),1),lI=a(b(),1),my=(0,lI.jsx)(sw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lI.jsx)(sw.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 lw=a(z(),1),cI=a(b(),1),uI=(0,cI.jsx)(lw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cI.jsx)(lw.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 cw=a(z(),1),dI=a(b(),1),pI=(0,dI.jsx)(cw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dI.jsx)(cw.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 uw=a(z(),1),mI=a(b(),1),fI=(0,mI.jsx)(uw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mI.jsx)(uw.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 dw=a(z(),1),gI=a(b(),1),hI=(0,gI.jsx)(dw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gI.jsx)(dw.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 pw=a(z(),1),vI=a(b(),1),yI=(0,vI.jsx)(pw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vI.jsx)(pw.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 mw=a(z(),1),bI=a(b(),1),_I=(0,bI.jsx)(mw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bI.jsx)(mw.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 fy=a(z(),1),gy=a(b(),1),hy=(0,gy.jsxs)(fy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,gy.jsx)(fy.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,gy.jsx)(fy.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 fw=a(z(),1),xI=a(b(),1),kI=(0,xI.jsx)(fw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xI.jsx)(fw.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 gw=a(z(),1),wI=a(b(),1),CI=(0,wI.jsx)(gw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wI.jsx)(gw.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 hw=a(z(),1),SI=a(b(),1),TI=(0,SI.jsx)(hw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SI.jsx)(hw.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 vw=a(z(),1),PI=a(b(),1),EI=(0,PI.jsx)(vw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PI.jsx)(vw.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 yw=a(z(),1),BI=a(b(),1),NI=(0,BI.jsx)(yw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BI.jsx)(yw.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 bw=a(z(),1),II=a(b(),1),vy=(0,II.jsx)(bw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,II.jsx)(bw.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 yy=a(z(),1),by=a(b(),1),RI=(0,by.jsxs)(yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,by.jsx)(yy.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,by.jsx)(yy.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 _w=a(z(),1),DI=a(b(),1),LI=(0,DI.jsx)(_w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,DI.jsx)(_w.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 _y=a(z(),1),xy=a(b(),1),AI=(0,xy.jsxs)(_y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,xy.jsx)(_y.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,xy.jsx)(_y.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 ky=a(z(),1),wy=a(b(),1),Cy=(0,wy.jsxs)(ky.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,wy.jsx)(ky.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,wy.jsx)(ky.Path,{d:"M15 15L11.75 12.25V8",vectorEffect:"non-scaling-stroke"})]});var xw=a(z(),1),MI=a(b(),1),pl=(0,MI.jsx)(xw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,MI.jsx)(xw.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var kw=a(z(),1),zI=a(b(),1),cu=(0,zI.jsx)(kw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,zI.jsx)(kw.Path,{d:"M4.75 15V19.25H12M12 19.25V4.5M12 19.25H19.25V15M17.5 10L12 4.5L6.5 10",vectorEffect:"non-scaling-stroke"})});var ww=a(z(),1),VI=a(b(),1),Sy=(0,VI.jsx)(ww.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VI.jsx)(ww.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 Cw=a(z(),1),FI=a(b(),1),uu=(0,FI.jsx)(Cw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FI.jsx)(Cw.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 Sw=a(z(),1),OI=a(b(),1),HI=(0,OI.jsx)(Sw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OI.jsx)(Sw.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 Dn=a(R(),1),Ci=a(D(),1),Uo=a(V(),1),jg=a(O(),1),Ew=a(K(),1);var Tw=a(O(),1),fm=a(H(),1),pd=a(Or(),1),jI=a(R(),1),Jj=a(ne(),1),eU=a(he(),1);function Pw(e,t,r){return(0,Tw.useSelect)(o=>o(Jj.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function tc(e={}){let t=(0,fm.useRef)(e),r=(0,fm.useRef)(!1),{getSettings:o}=(0,Tw.useSelect)(jI.store);(0,fm.useLayoutEffect)(()=>{t.current=e}),(0,fm.useEffect)(()=>{if(r.current||!t.current.url||!(0,pd.isBlobURL)(t.current.url))return;let n=(0,pd.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:s,onChange:l,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[n],allowedTypes:s,onFileChange:([d])=>{(0,pd.isBlobURL)(d?.url)||((0,pd.revokeBlobURL)(i),l(d),r.current=!1)},onError:d=>{(0,pd.revokeBlobURL)(i),c(d),r.current=!1}}))},[o])}function Ty(){return(0,Tw.useSelect)(t=>{let{getSettings:r}=t(jI.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function X(){return(0,eU.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var Br=a(b(),1),tU="core/accordion-item",D2e="core/accordion-heading",L2e={name:tU};function rU({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:n},clientId:i,setAttributes:s,isSelected:l}){let c=(0,jg.useRegistry)(),{getBlockOrder:u}=(0,jg.useSelect)(Dn.store),d=(0,Dn.useBlockProps)({role:"group"}),p=X(),{updateBlockAttributes:m,insertBlock:f}=(0,jg.useDispatch)(Dn.store),h=(0,Dn.useBlockEditingMode)()==="contentOnly",v=(0,Dn.useInnerBlocksProps)(d,{defaultBlock:L2e,directInsert:!0});return(0,Br.jsxs)(Br.Fragment,{children:[l&&!h&&(0,Br.jsxs)(Br.Fragment,{children:[(0,Br.jsx)(Dn.BlockControls,{children:(0,Br.jsx)(Uo.ToolbarGroup,{children:(0,Br.jsx)(Dn.HeadingLevelDropdown,{value:o,options:n,onChange:k=>{let y=u(i),w=[];y.forEach(C=>{let S=u(C);w.push(...S)}),c.batch(()=>{s({headingLevel:k}),m(w,{level:k})})}})})}),(0,Br.jsx)(Dn.BlockControls,{group:"other",children:(0,Br.jsx)(Uo.ToolbarButton,{onClick:()=>{let k=(0,Ew.createBlock)(tU,{},[(0,Ew.createBlock)(D2e,{level:o}),(0,Ew.createBlock)("core/accordion-panel",{})]);f(k,void 0,i)},children:(0,Ci.__)("Add item")})})]}),(0,Br.jsx)(Dn.InspectorControls,{children:(0,Br.jsxs)(Uo.__experimentalToolsPanel,{label:(0,Ci.__)("Settings"),resetAll:()=>{s({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,Br.jsx)(Uo.__experimentalToolsPanelItem,{label:(0,Ci.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>s({autoclose:!1}),children:(0,Br.jsx)(Uo.ToggleControl,{label:(0,Ci.__)("Auto-close"),onChange:k=>{s({autoclose:k})},checked:e,help:(0,Ci.__)("Automatically close accordions when a new one is opened.")})}),(0,Br.jsx)(Uo.__experimentalToolsPanelItem,{label:(0,Ci.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>s({showIcon:!0}),children:(0,Br.jsx)(Uo.ToggleControl,{label:(0,Ci.__)("Show icon"),onChange:k=>{s({showIcon:k,iconPosition:k?t:"right"})},checked:r,help:(0,Ci.__)("Display a plus icon next to the accordion header.")})}),r&&(0,Br.jsx)(Uo.__experimentalToolsPanelItem,{label:(0,Ci.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>s({iconPosition:"right"}),children:(0,Br.jsxs)(Uo.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Ci.__)("Icon Position"),value:t,onChange:k=>{s({iconPosition:k})},children:[(0,Br.jsx)(Uo.__experimentalToggleGroupControlOption,{label:(0,Ci.__)("Left"),value:"left"}),(0,Br.jsx)(Uo.__experimentalToggleGroupControlOption,{label:(0,Ci.__)("Right"),value:"right"})]})})]})},"setting"),(0,Br.jsx)("div",{...v})]})}var Bw=a(R(),1),oU=a(b(),1);function nU(){let e=Bw.useBlockProps.save({role:"group"});return(0,oU.jsx)("div",{...Bw.useInnerBlocksProps.save(e)})}var Nw={$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 aU=a(K(),1);function M(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,aU.registerBlockType)({name:o,...t},r)}var{name:iU}=Nw,M2e=[["core/accordion-item"]],sU={icon:PP,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,UI.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,UI.__)("Suspendisse commodo lacus, interdum et.")}}]}]},template:M2e,templateInsertUpdatesSelection:!0,edit:rU,save:nU},z2e=()=>M({name:iU,metadata:Nw,settings:sU});var GI={};J(GI,{init:()=>O2e,metadata:()=>Rw,name:()=>pU,settings:()=>mU});var Py=a(D(),1),md=a(R(),1),lU=a(O(),1),Ug=a(V(),1);var rc=a(b(),1);function cU({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:n}=e,i=X(),{isSelected:s}=(0,lU.useSelect)(u=>o||n?{isSelected:!0}:{isSelected:u(md.store).hasSelectedInnerBlock(t,!0)},[t,o,n]),l=(0,md.useBlockProps)({className:T({"is-open":n||s})}),c=(0,md.useInnerBlocksProps)(l,{templateLock:"all",directInsert:!0});return(0,rc.jsxs)(rc.Fragment,{children:[(0,rc.jsx)(md.InspectorControls,{children:(0,rc.jsx)(Ug.__experimentalToolsPanel,{label:(0,Py.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,rc.jsx)(Ug.__experimentalToolsPanelItem,{label:(0,Py.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,rc.jsx)(Ug.ToggleControl,{label:(0,Py.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,Py.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,rc.jsx)("div",{...c})]})}var Iw=a(R(),1);var uU=a(b(),1);function dU({attributes:e}){let{openByDefault:t}=e,r=Iw.useBlockProps.save({className:T({"is-open":t})}),o=Iw.useInnerBlocksProps.save(r);return(0,uU.jsx)("div",{...o})}var Rw={$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:pU}=Rw,F2e=[["core/accordion-heading"],["core/accordion-panel"]],mU={icon:TP,template:F2e,templateInsertUpdatesSelection:!0,edit:cU,save:dU},O2e=()=>M({name:pU,metadata:Rw,settings:mU});var $I={};J($I,{init:()=>G2e,metadata:()=>Dw,name:()=>_U,settings:()=>xU});var fU=a(D(),1),gU=a(H(),1),hs=a(R(),1),hU=a(O(),1),gm=a(b(),1);function vU({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":s}=r,l="h"+s,{__unstableMarkNextChangeAsNotPersistent:c}=(0,hU.useDispatch)(hs.store);(0,gU.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,d]=(0,hs.useSettings)("typography.fluid","layout"),p=(0,hs.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:d?.wideSize}}),m=(0,hs.useBlockProps)({className:T({"has-icon":i,"has-icon-left":i&&n==="left","has-icon-right":i&&n==="right"})}),f=(0,hs.__experimentalGetSpacingClassesAndStyles)(e);return(0,gm.jsx)(l,{...m,children:(0,gm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,gm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,gm.jsx)(hs.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:g=>t({title:g}),placeholder:(0,fU.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,gm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var fd=a(R(),1),hm=a(b(),1);function yU({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),s=(0,fd.getTypographyClassesAndStyles)(e),l=fd.useBlockProps.save({className:T({"has-icon":n,"has-icon-left":n&&o==="left","has-icon-right":n&&o==="right"})}),c=(0,fd.__experimentalGetSpacingClassesAndStyles)(e);return(0,hm.jsx)(i,{...l,children:(0,hm.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,hm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,hm.jsx)(fd.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:s.style.letterSpacing,textDecoration:s.style.textDecoration}}),n&&o==="right"&&(0,hm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Dw={$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:{spacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle",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 ma=a(R(),1),sn=a(b(),1),j2e={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:n}=e,i="h"+(t||3),s=ma.useBlockProps.save(),l=(0,ma.__experimentalGetSpacingClassesAndStyles)(e);return(0,sn.jsx)(i,{...s,children:(0,sn.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:l.style,children:[n&&o==="left"&&(0,sn.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,sn.jsx)(ma.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&o==="right"&&(0,sn.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},U2e={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:n}=e,i="h"+(t||3),s=(0,ma.getTypographyClassesAndStyles)(e),l=ma.useBlockProps.save(),c=(0,ma.__experimentalGetSpacingClassesAndStyles)(e);return(0,sn.jsx)(i,{...l,children:(0,sn.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,sn.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,sn.jsx)(ma.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:s.style.letterSpacing,textDecoration:s.style.textDecoration}}),n&&o==="right"&&(0,sn.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},W2e={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:n}=e,i="h"+(t||3),s=(0,ma.getTypographyClassesAndStyles)(e),l=ma.useBlockProps.save(),c=(0,ma.__experimentalGetSpacingClassesAndStyles)(e);return(0,sn.jsx)(i,{...l,children:(0,sn.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,sn.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,sn.jsx)(ma.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:s.style.letterSpacing,textDecoration:s.style.textDecoration}}),n&&o==="right"&&(0,sn.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},bU=[W2e,U2e,j2e];var{name:_U}=Dw,xU={icon:SP,edit:vU,save:yU,deprecated:bU},G2e=()=>M({name:_U,metadata:Dw,settings:xU});var qI={};J(qI,{init:()=>Z2e,metadata:()=>Aw,name:()=>PU,settings:()=>EU});var Wg=a(R(),1),kU=a(O(),1),wU=a(b(),1);function CU({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:n,templateLock:i}=e,s=t["core/accordion-open-by-default"],{hasSelection:l}=(0,kU.useSelect)(d=>{if(o||s)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:m,hasSelectedInnerBlock:f}=d(Wg.store),g=p(r);return{hasSelection:m(g)||f(g,!0)}},[r,o,s]),c=(0,Wg.useBlockProps)({hidden:!l,role:"region"}),u=(0,Wg.useInnerBlocksProps)(c,{allowedBlocks:n,templateLock:i});return(0,wU.jsx)("div",{...u})}var Lw=a(R(),1),SU=a(b(),1);function TU(){let e=Lw.useBlockProps.save({role:"region"}),t=Lw.useInnerBlocksProps.save(e);return(0,SU.jsx)("div",{...t})}var Aw={$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:{__experimentalOnEnter:!0,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:PU}=Aw,q2e=[["core/paragraph",{}]],EU={icon:gv,template:q2e,edit:CU,save:TU},Z2e=()=>M({name:PU,metadata:Aw,settings:EU});var ZI={};J(ZI,{init:()=>Y2e,metadata:()=>Mw,name:()=>RU,settings:()=>DU});var Mw={$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 fa=a(V(),1),ln=a(D(),1),zw=a(R(),1),BU=a(sd(),1),NU=a(he(),1);var so=a(b(),1);function IU({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:n,displayAsDropdown:i,type:s}=e,l=X(),{content:c,status:u,error:d}=(0,BU.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,NU.useDisabled)(),m=(0,zw.useBlockProps)({ref:p});return(0,so.jsxs)(so.Fragment,{children:[(0,so.jsx)(zw.InspectorControls,{children:(0,so.jsxs)(fa.__experimentalToolsPanel,{label:(0,ln.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:l,children:[(0,so.jsx)(fa.__experimentalToolsPanelItem,{label:(0,ln.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,so.jsx)(fa.ToggleControl,{label:(0,ln.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,so.jsx)(fa.__experimentalToolsPanelItem,{label:(0,ln.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,so.jsx)(fa.ToggleControl,{label:(0,ln.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,so.jsx)(fa.__experimentalToolsPanelItem,{label:(0,ln.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,so.jsx)(fa.ToggleControl,{label:(0,ln.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,so.jsx)(fa.__experimentalToolsPanelItem,{label:(0,ln.__)("Group by"),isShownByDefault:!0,hasValue:()=>s!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,so.jsx)(fa.SelectControl,{label:(0,ln.__)("Group by"),options:[{label:(0,ln.__)("Year"),value:"yearly"},{label:(0,ln.__)("Month"),value:"monthly"},{label:(0,ln.__)("Week"),value:"weekly"},{label:(0,ln.__)("Day"),value:"daily"}],value:s,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,so.jsx)("div",{...m,children:(0,so.jsx)(fa.Spinner,{})}),u==="error"&&(0,so.jsx)("div",{...m,children:(0,so.jsx)("p",{children:(0,ln.sprintf)((0,ln.__)("Error: %s"),d)})}),u==="success"&&(0,so.jsx)(To,{wrapperProps:m,html:c})]})}var{name:RU}=Mw,DU={icon:zP,example:{},edit:IU},Y2e=()=>M({name:RU,metadata:Mw,settings:DU});var YI={};J(YI,{init:()=>rxe,metadata:()=>Vw,name:()=>YU,settings:()=>QU});var Vw={$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 vm=a(R(),1),ja=a(V(),1),vs=a(D(),1),Ow=a(dr(),1);var Ey=a(ne(),1),gd=a(D(),1),AU=a(O(),1);function MU(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 zU({commentId:e}){let[t]=(0,Ey.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,Ey.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:s}=MU(n),l=Ty();return{src:o?o[o.length-1]:l,minSize:i,maxSize:s,alt:r?(0,gd.sprintf)((0,gd.__)("%s Avatar"),r):(0,gd.__)("Default Avatar")}}function VU({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,AU.useSelect)(u=>{let{getEditedEntityRecord:d,getUser:p}=u(Ey.store);if(e)return{authorDetails:p(e)};let m=d("postType",r,t)?.author;return{authorDetails:m?p(m):null}},[r,t,e]),n=o?.avatar_urls?Object.values(o.avatar_urls):null,i=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:s,maxSize:l}=MU(i),c=Ty();return{src:n?n[n.length-1]:c,minSize:s,maxSize:l,alt:o?(0,gd.sprintf)((0,gd.__)("%s Avatar"),o?.name):(0,gd.__)("Default Avatar")}}var KI=a(D(),1),OU=a(V(),1),HU=a(O(),1),jU=a(ne(),1),Fw=a(H(),1),UU=a(he(),1),WU=a(Wo(),1),GU=a(b(),1),X2e={who:"authors",per_page:100,_fields:"id,name",context:"view"};function $U({value:e,onChange:t}){let[r,o]=(0,Fw.useState)(""),{authors:n,isLoading:i}=(0,HU.useSelect)(l=>{let{getUsers:c,isResolving:u}=l(jU.store),d={...X2e};return r&&(d.search=r,d.search_columns=["name"]),{authors:c(d),isLoading:u("getUsers",[d])}},[r]),s=(0,Fw.useMemo)(()=>(n??[]).map(l=>({value:l.id,label:(0,WU.decodeEntities)(l.name)})),[n]);return(0,GU.jsx)(OU.ComboboxControl,{label:(0,KI.__)("User"),help:(0,KI.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:s,onFilterValueChange:(0,UU.debounce)(o,300),isLoading:i})}var $t=a(b(),1),qU=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let n=X();return(0,$t.jsx)(vm.InspectorControls,{children:(0,$t.jsxs)(ja.__experimentalToolsPanel,{label:(0,vs.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,$t.jsx)(ja.__experimentalToolsPanelItem,{label:(0,vs.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,$t.jsx)(ja.RangeControl,{label:(0,vs.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,$t.jsx)(ja.__experimentalToolsPanelItem,{label:(0,vs.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,$t.jsx)(ja.ToggleControl,{label:(0,vs.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,$t.jsx)(ja.__experimentalToolsPanelItem,{label:(0,vs.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,$t.jsx)(ja.ToggleControl,{label:(0,vs.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,$t.jsx)(ja.__experimentalToolsPanelItem,{label:(0,vs.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,$t.jsx)($U,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},J2e=({children:e,isLink:t})=>t?(0,$t.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,ZU=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:n})=>{let i=(0,vm.__experimentalUseBorderProps)(t),s=(0,Ow.addQueryArgs)((0,Ow.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,$t.jsx)("div",{...o,children:(0,$t.jsx)(J2e,{isLink:t.isLink,children:(0,$t.jsx)(ja.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(l,c,u,d)=>{e({size:parseInt(t.size+(d.height||d.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,vs.isRTL)(),bottom:!0,left:(0,vs.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,$t.jsx)("img",{src:s,alt:r.alt,className:T("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},exe=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:n}=t,i=(0,vm.useBlockProps)(),s=zU({commentId:n});return(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(qU,{avatar:s,setAttributes:r,attributes:e,selectUser:!1}),(0,$t.jsx)(ZU,{attributes:e,avatar:s,blockProps:i,isSelected:o,setAttributes:r})]})},txe=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:n,postType:i}=t,s=VU({userId:e?.userId,postId:n,postType:i}),l=(0,vm.useBlockProps)();return(0,$t.jsxs)($t.Fragment,{children:[(0,$t.jsx)(qU,{selectUser:!0,attributes:e,avatar:s,setAttributes:r}),(0,$t.jsx)(ZU,{attributes:e,avatar:s,blockProps:l,isSelected:o,setAttributes:r})]})};function KU(e){return e?.context?.commentId||e?.context?.commentId===null?(0,$t.jsx)(exe,{...e}):(0,$t.jsx)(txe,{...e})}var{name:YU}=Vw,QU={icon:mv,edit:KU,example:{}},rxe=()=>M({name:YU,metadata:Vw,settings:QU});var jD={};J(jD,{init:()=>x5e,metadata:()=>U5,name:()=>Dq,settings:()=>W5});var HD=a(D(),1);var Rq=a(K(),1);var QI=a(R(),1),By=a(b(),1),XU=[{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:n,src:i}=e;return(0,By.jsxs)("figure",{children:[(0,By.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!QI.RichText.isEmpty(r)&&(0,By.jsx)(QI.RichText.Content,{tagName:"figcaption",value:r})]})}}];var xq=a(Or(),1),Si=a(V(),1);var ym=a(Me(),1);function Hw({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=ym.useRef(e!==void 0),[i,s]=ym.useState(t),l=n?e:i,c=ym.useCallback(u=>{n||s(u)},[]);return[l,c]}var oxe=a(Me(),1),Ny={...oxe};var eW=a(Me(),1),JU={};function lo(e,t){let r=eW.useRef(JU);return r.current===JU&&(r.current=e(t)),r}var XI=Ny.useInsertionEffect,nxe=XI&&XI!==Ny.useLayoutEffect?XI:e=>e();function He(e){let t=lo(axe).current;return t.next=e,nxe(t.effect),t.trampoline}function axe(){let e={next:void 0,callback:ixe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ixe(){}var du=a(Me(),1);var tW=a(Me(),1),sxe=()=>{},Ze=typeof document<"u"?tW.useLayoutEffect:sxe;var jw=a(Me(),1),JI=jw.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function rW(){return jw.useContext(JI)}var oW=a(b(),1);function Uw(e){let{children:t,elementsRef:r,labelsRef:o,onMapChange:n}=e,i=He(n),[,s]=du.useState(!1),l=lo(cxe).current,c=lo(lxe).current,u=du.useRef(0),d=du.useRef(!0),p=du.useRef([]),m=du.useRef(null),f=He(()=>{d.current||(d.current=!0,s(w=>!w))}),g=He((w,C)=>{c.set(w,C),f()}),h=He(w=>{c.delete(w),f()}),v=He(w=>{let C=new Map;return r.current.length=0,o&&(o.current.length=0),w.forEach(S=>{C.set(S.element,{...S.registration.metadata??{},index:S.index}),r.current[S.index]=S.element,o&&(o.current[S.index]=S.registration.label!==void 0?S.registration.label:S.registration.textRef?.current?.textContent??S.element.textContent)}),u.current=r.current.length,C});function x(w){if(m.current?.disconnect(),m.current=null,typeof MutationObserver!="function"||w.length<2)return;let C=new MutationObserver(P=>{if(!pxe(P))return;let N=null;for(let I of w)if(I.isConnected){if(N&&nW(N,I)>0){C.disconnect(),f();return}N=I}});m.current=C;let S=new Set;for(let P=1;P<w.length;P+=1){let N=dxe(w[P-1],w[P]);N&&S.add(N)}S.forEach(P=>C.observe(P,{childList:!0}))}let _=He(()=>{let[w,C]=uxe(c),S=v(w);x(C),p.current=w,d.current=!1,l.forEach(P=>P(S)),i(S)});Ze(()=>(d.current||v(p.current),()=>{r.current=[],o&&(o.current=[])}),[r,o,v]),Ze(()=>{d.current&&_()}),Ze(()=>()=>{m.current?.disconnect(),d.current=!0},[]);let k=He(w=>(l.add(w),()=>{l.delete(w)})),y=du.useMemo(()=>({register:g,unregister:h,subscribeMapChange:k,nextIndexRef:u}),[g,h,k,u]);return(0,oW.jsx)(JI.Provider,{value:y,children:t})}function lxe(){return new Map}function cxe(){return new Set}function uxe(e){let t=new Set,r=[],o=[];e.forEach((i,s)=>{if(!s.isConnected)return;let l=i.index,c={index:l??-1,element:s,registration:i};l===null?o.push(c):l>=0&&(t.add(l),r.push(c))});let n=0;return o.sort((i,s)=>nW(i.element,s.element)),o.forEach(i=>{for(;t.has(n);)n+=1;i.index=n,r.push(i),n+=1}),t.size>0&&r.sort((i,s)=>i.index-s.index),[r,o.map(i=>i.element)]}function dxe(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}function pxe(e){for(let t of e)for(let r=0;r<t.removedNodes.length;r+=1)if(t.removedNodes[r].isConnected)return!0;return!1}function nW(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function mxe(e,t){return function(o,...n){let i=new URL(e);return i.searchParams.set("code",o.toString()),n.forEach(s=>i.searchParams.append("args[]",s)),`$t} error #$o}; visit $i} for the full message.`}}var fxe=mxe("https://base-ui.com/production-error","Base UI"),ys=fxe;var xm=a(Me(),1);function bm(e,t,r,o){let n=lo(iW).current;return gxe(n,e,t,r,o)&&sW(n,[e,t,r,o]),n.callback}function aW(e){let t=lo(iW).current;return hxe(t,e)&&sW(t,e),t.callback}function iW(){return{callback:null,cleanup:null,refs:[]}}function gxe(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function hxe(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function sW(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 n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=i(r);typeof s=="function"&&(o[n]=s);break}case"object":{i.current=r;break}default:}}e.cleanup=()=>{for(let n=0;n<t.length;n+=1){let i=t[n];if(i!=null)switch(typeof i){case"function":{let s=o[n];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var cW=a(Me(),1);var lW=a(Me(),1),vxe=parseInt(lW.version,10);function Ww(e){return vxe>=e}function eR(e){if(!cW.isValidElement(e))return null;let t=e,r=t.props;return(Ww(19)?r?.ref:t.ref)??null}function Iy(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Hr(){}var _m=Object.freeze([]),Ua=Object.freeze({});function uW(e,t){let r={};for(let o in e){let n=e[o];if(t?.hasOwnProperty(o)){let i=t[o](n);i!=null&&Object.assign(r,i);continue}n===!0?r[`data-$o.toLowerCase()}`]="":n&&(r[`data-$o.toLowerCase()}`]=n.toString())}return r}function dW(e,t){return typeof e=="function"?e(t):e}function pW(e,t){return typeof e=="function"?e(t):e}var tR={};function jr(e,t,r,o,n){if(!r&&!o&&!n&&!e)return Gw(t);let i=Gw(e);return t&&(i=Ry(i,t)),r&&(i=Ry(i,r)),o&&(i=Ry(i,o)),n&&(i=Ry(i,n)),i}function mW(e){if(e.length===0)return tR;if(e.length===1)return Gw(e[0]);let t=Gw(e[0]);for(let r=1;r<e.length;r+=1)t=Ry(t,e[r]);return t}function Gw(e){return rR(e)?{...gW(e,tR)}:yxe(e)}function Ry(e,t){return rR(t)?gW(t,e):bxe(e,t)}function yxe(e){let t={...e};for(let r in t){let o=t[r];fW(r,o)&&(t[r]=hW(o))}return t}function bxe(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=Iy(e.style,o);break}case"className":{e[r]=oR(e.className,o);break}default:fW(r,o)?e[r]=_xe(e[r],o):e[r]=o}}return e}function fW(e,t){let r=e.charCodeAt(0),o=e.charCodeAt(1),n=e.charCodeAt(2);return r===111&&o===110&&n>=65&&n<=90&&(typeof t=="function"||typeof t>"u")}function rR(e){return typeof e=="function"}function gW(e,t){return rR(e)?e(t):e??tR}function _xe(e,t){return t?e?(...r)=>{let o=r[0];if(vW(o)){let i=o;Dy(i);let s=t(...r);return i.baseUIHandlerPrevented||e?.(...r),s}let n=t(...r);return e?.(...r),n}:hW(t):e}function hW(e){return e&&((...t)=>{let r=t[0];return vW(r)&&Dy(r),e(...t)})}function Dy(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function oR(e,t){return t?e?t+" "+e:t:e}function vW(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var nR=a(Me(),1);function _r(e,t,r={}){let o=t.render,n=xxe(t,r);if(r.enabled===!1)return null;let i=r.state??Ua;return Cxe(e,o,n,i)}function xxe(e,t={}){let{className:r,style:o,render:n}=e,{state:i=Ua,ref:s,props:l,stateAttributesMapping:c,enabled:u=!0}=t,d=u?dW(r,i):void 0,p=u?pW(o,i):void 0,m=u?uW(i,c):Ua,f=u&&l?kxe(l):void 0,g=u?Iy(m,f)??{}:Ua;return typeof document<"u"&&(u?Array.isArray(s)?g.ref=aW([g.ref,eR(n),...s]):g.ref=bm(g.ref,eR(n),s):bm(null,null)),u?(d!==void 0&&(g.className=oR(g.className,d)),p!==void 0&&(g.style=Iy(g.style,p)),g):Ua}function kxe(e){return Array.isArray(e)?mW(e):jr(void 0,e)}var wxe=Symbol.for("react.lazy");function Cxe(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=jr(r,t.props);n.ref=r.ref;let i=t;return i?.$$typeof===wxe&&(i=xm.Children.toArray(t)[0]),xm.cloneElement(i,n)}if(e&&typeof e=="string")return Sxe(e,r);throw new Error(ys(8))}function Sxe(e,t){return e==="button"?(0,nR.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,nR.createElement)("img",{alt:"",...t,key:t.key}):xm.createElement(e,t)}var $w=a(Me(),1);var yW=0;function Txe(e,t="mui"){let[r,o]=$w.useState(e),n=e||r;return $w.useEffect(()=>{r==null&&(yW+=1,o(`$t}-$yW}`))},[r,t]),n}var bW=Ny.useId;function _W(e,t){if(bW!==void 0){let r=bW();return e??(t?`$t}-$r}`:r)}return Txe(e,t)}function Wa(e){return _W(e,"base-ui")}var bs={};J(bs,{cancelOpen:()=>eke,chipRemovePress:()=>Mxe,clearPress:()=>Axe,closePress:()=>Dxe,closeWatcher:()=>qxe,decrementPress:()=>Fxe,disabled:()=>rke,drag:()=>Qxe,escapeKey:()=>$xe,focusOut:()=>Gxe,imperativeAction:()=>ake,incrementPress:()=>Vxe,initial:()=>nke,inputBlur:()=>jxe,inputChange:()=>Oxe,inputClear:()=>Hxe,inputPaste:()=>Uxe,inputPress:()=>Wxe,itemPress:()=>Rxe,keyboard:()=>Kxe,linkPress:()=>Lxe,listNavigation:()=>Zxe,missing:()=>oke,none:()=>Pxe,outsidePress:()=>Ixe,pointer:()=>Yxe,scrub:()=>Jxe,siblingOpen:()=>tke,swipe:()=>ike,trackPress:()=>zxe,triggerFocus:()=>Nxe,triggerHover:()=>Bxe,triggerPress:()=>Exe,wheel:()=>Xxe,windowResize:()=>ske});var Pxe="none",Exe="trigger-press",Bxe="trigger-hover",Nxe="trigger-focus",Ixe="outside-press",Rxe="item-press",Dxe="close-press",Lxe="link-press",Axe="clear-press",Mxe="chip-remove-press",zxe="track-press",Vxe="increment-press",Fxe="decrement-press",Oxe="input-change",Hxe="input-clear",jxe="input-blur",Uxe="input-paste",Wxe="input-press",Gxe="focus-out",$xe="escape-key",qxe="close-watcher",Zxe="list-navigation",Kxe="keyboard",Yxe="pointer",Qxe="drag",Xxe="wheel",Jxe="scrub",eke="cancel-open",tke="sibling-open",rke="disabled",oke="missing",nke="initial",ake="imperative-action",ike="swipe",ske="window-resize";function Gg(e,t,r,o){let n=!1,i=!1,s=o??Ua;return{reason:e,event:t??new Event("base-ui"),cancel(){n=!0},allowPropagation(){i=!0},get isCanceled(){return n},get isPropagationAllowed(){return i},trigger:r,...s}}var iR=a(Me(),1);var xW=a(Me(),1);function qw(e){xW.useEffect(e,_m)}var Zw=null,jUe=globalThis.requestAnimationFrame,aR=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 n=0;n<r.length;n+=1)r[n]?.(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)}},Kw=new aR;var oc=class e{static create(){return new e}static request(t){return Kw.request(t)}static cancel(t){return Kw.cancel(t)}currentId=Zw;request(t){this.cancel(),this.currentId=Kw.request(()=>{this.currentId=Zw,t()})}cancel=()=>{this.currentId!==Zw&&(Kw.cancel(this.currentId),this.currentId=Zw)};disposeEffect=()=>this.cancel};function kW(){let e=lo(oc.create).current;return qw(e.disposeEffect),e}function $g(e,t=!1,r=!1){let[o,n]=iR.useState(e&&t?"idle":void 0),[i,s]=iR.useState(e);return e&&!i&&(s(!0),n("starting")),!e&&i&&o!=="ending"&&!r&&n("ending"),!e&&!i&&o==="ending"&&n(void 0),Ze(()=>{if(!e&&i&&o!=="ending"&&r){let l=oc.request(()=>{n("ending")});return()=>{oc.cancel(l)}}},[e,i,o,r]),Ze(()=>{if(!e||t)return;let l=oc.request(()=>{n(void 0)});return()=>{oc.cancel(l)}},[t,e]),Ze(()=>{if(!e||!t)return;e&&i&&o!=="idle"&&n("starting");let l=oc.request(()=>{n("idle")});return()=>{oc.cancel(l)}},[t,e,i,o]),{mounted:i,setMounted:s,transitionStatus:o}}var km=a(Me(),1);function Yw(e={}){let{guess:t,label:r,metadata:o,textRef:n,index:i}=e,{register:s,unregister:l,subscribeMapChange:c,nextIndexRef:u}=rW(),d=km.useRef(-1),[p,m]=km.useState(i==null&&t?()=>{if(d.current===-1){let v=u.current;u.current+=1,d.current=v}return d.current}:-1),f=i??p,g=km.useRef(null),h=km.useCallback(v=>{let x=g.current;x&&l(x),g.current=v,v&&s(v,{metadata:o??null,index:i??null,label:r,textRef:n})},[i,s,l,o,r,n]);return Ze(()=>{if(i==null)return c(v=>{let x=g.current?v.get(g.current)?.index:null;x!=null&&m(x)})},[i,c]),{ref:h,index:f}}var lke={"data-starting-style":""},cke={"data-ending-style":""},Qw={transitionStatus(e){return e==="starting"?lke:e==="ending"?cke:null}};var Zg=a(Me(),1);function sR(){return typeof window<"u"}function wm(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wW(e){return sR()?e instanceof Element||e instanceof wm(e).Element:!1}function nc(e){return sR()?e instanceof HTMLElement||e instanceof wm(e).HTMLElement:!1}function CW(e){return!sR()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wm(e).ShadowRoot}function Xw(e){return wm(e).getComputedStyle(e)}var Jw=a(Me(),1),lR=Jw.createContext(void 0);function qg(e=!1){let t=Jw.useContext(lR);if(t===void 0&&!e)throw new Error(ys(16));return t}var SW=a(Me(),1);function TW(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:n=0,isNativeButton:i}=e,s=o&&t!==!1,l=o&&t===!1;return{props:SW.useMemo(()=>{let u={onKeyDown(d){r&&t&&d.key!=="Tab"&&d.preventDefault()}};return o||(u.tabIndex=n,!i&&r&&(u.tabIndex=t?n:-1)),(i&&(t||s)||!i&&r)&&(u["aria-disabled"]=r),i&&(!t||l)&&(u.disabled=r),u},[o,r,t,s,l,i,n])}}function Cm(e){return e?.ownerDocument||document}function e5(e,t,{detail:r=0}={}){e.dispatchEvent(new(wm(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function uR(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:n=!0,composite:i}=e,s=Zg.useRef(null),l=qg(!0),c=i??l!==void 0,{props:u}=TW({focusableWhenDisabled:r,disabled:t,composite:c,tabIndex:o,isNativeButton:n}),d=Zg.useCallback(()=>{let f=s.current;cR(f)&&c&&t&&u.disabled===void 0&&f.disabled&&(f.disabled=!1)},[t,u.disabled,c]);Ze(d,[d]);let p=Zg.useCallback((f={})=>{let{onClick:g,onMouseDown:h,onKeyUp:v,onKeyDown:x,onPointerDown:_,...k}=f;return jr({onClick(y){if(t){y.preventDefault();return}g?.(y)},onMouseDown(y){t||h?.(y)},onKeyDown(y){if(t||(Dy(y),x?.(y),y.baseUIHandlerPrevented))return;let w=y.target===y.currentTarget,C=y.currentTarget,S=cR(C),P=!n&&uke(C),N=w&&(n?S:!P),I=y.key==="Enter",B=y.key===" ",E=C.getAttribute("role"),L=E?.startsWith("menuitem")||E==="option"||E==="gridcell";if(w&&c&&B){if(y.defaultPrevented&&L)return;y.preventDefault(),(!n||S)&&(y.preventBaseUIHandler(),e5(C,y));return}if(!N||n||!B&&!I){w&&P&&B&&y.preventDefault();return}y.defaultPrevented||(y.preventDefault(),I&&(y.preventBaseUIHandler(),e5(C,y)))},onKeyUp(y){if(!t){if(Dy(y),v?.(y),y.target===y.currentTarget&&n&&c&&cR(y.currentTarget)&&y.key===" "){y.preventDefault();return}y.baseUIHandlerPrevented||y.target===y.currentTarget&&!n&&!c&&!y.defaultPrevented&&y.key===" "&&(y.preventBaseUIHandler(),e5(y.currentTarget,y))}},onPointerDown(y){if(t){y.preventDefault();return}_?.(y)}},n?{type:"button"}:{role:"button"},u,k)},[t,u,c,n]),m=He(f=>{s.current=f,d()});return{getButtonProps:p,buttonRef:m}}function cR(e){return nc(e)&&e.tagName==="BUTTON"}function uke(e){return nc(e)&&e.tagName==="A"&&!!e.href}var RW=a(Me(),1);var NW=a(EW(),1);function BW(e){return e==null?e:"current"in e?e.current:e}function IW(e,t=!1){let r=kW();return He((o,n=null)=>{r.cancel();let i=BW(e);if(i==null)return;let s=i,l=()=>{NW.flushSync(o)};if(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function c(){Promise.all(s.getAnimations().map(u=>u.finished)).then(()=>{n?.aborted||l()},()=>{if(n?.aborted)return;if(s.getAnimations().some(d=>d.pending||d.playState!=="finished")){c();return}l()})}if(t){let u="data-starting-style";if(!s.hasAttribute(u)){r.request(c);return}let d=new MutationObserver(()=>{s.hasAttribute(u)||(d.disconnect(),c())});d.observe(s,{attributes:!0,attributeFilter:[u]}),n?.addEventListener("abort",()=>d.disconnect(),{once:!0});return}r.request(c)})}function t5(e){let{enabled:t=!0,open:r,ref:o,onComplete:n}=e,i=He(n),s=IW(o,r);RW.useEffect(()=>{if(!t)return;let l=new AbortController;return s(i,l.signal),()=>{l.abort()}},[t,r,i,s])}var Ly=0,dR=class e{static create(){return new e}currentId=Ly;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ly,r()},t)}isStarted(){return this.currentId!==Ly}clear=()=>{this.currentId!==Ly&&(clearTimeout(this.currentId),this.currentId=Ly)};disposeEffect=()=>this.clear};function DW(){let e=lo(dR.create).current;return qw(e.disposeEffect),e}function Ay(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function pR(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&CW(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Kg(e){return"composedPath"in e?e.composedPath()[0]:e.target}var mR=Math.round;function My(e,t){return t<0||t>=e.length}function fR(e,t){return Sm(e.current,{disabledIndices:t})}function gR(e,t){return Sm(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Sm(e,{startingIndex:t=-1,decrement:r=!1,disabledIndices:o,amount:n=1}={}){let i=t;do i+=r?-n:n;while(i>=0&&i<=e.length-1&&zy(e,i,o));return i}function zy(e,t,r){if(typeof r=="function"?r(t):r?.includes(t)??!1)return!0;let n=e[t];return n?!pke(n)||n.matches(":disabled")?!0:!r&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function dke(e){return e.visibility==="hidden"||e.visibility==="collapse"}function pke(e,t=e?Xw(e):null){return!e||!e.isConnected||!t||dke(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var r5=a(Me(),1);function VW(){let[,e]=r5.useState({});return r5.useCallback(()=>{e({})},[])}var n5="ArrowUp",a5="ArrowDown",i5="ArrowLeft",s5="ArrowRight",l5="Home",c5="End";var OW=new Set([n5,a5,i5,s5,l5,c5]),kke="Shift",HW=[kke,"Control","Alt","Meta"];function wke(e){return nc(e)&&e.tagName==="INPUT"}function vR(e){return!!(wke(e)&&e.selectionStart!=null||nc(e)&&e.tagName==="TEXTAREA")}function yR(e,t,r,o){if(!e||!t||!t.scrollTo)return;let n=e.scrollLeft,i=e.scrollTop,s=e.clientWidth<e.scrollWidth,l=e.clientHeight<e.scrollHeight;if(s&&o!=="vertical"){let c=FW(e,t,"left"),u=o5(e),d=o5(t);r==="ltr"&&(c+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight?n=c+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight:c-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft&&(n=c-d.scrollMarginLeft-u.scrollPaddingLeft)),r==="rtl"&&(c-d.scrollMarginLeft<e.scrollLeft+u.scrollPaddingLeft?n=c-d.scrollMarginLeft-u.scrollPaddingLeft:c+t.offsetWidth+d.scrollMarginRight>e.scrollLeft+e.clientWidth-u.scrollPaddingRight&&(n=c+t.offsetWidth+d.scrollMarginRight-e.clientWidth+u.scrollPaddingRight))}if(l&&o!=="horizontal"){let c=FW(e,t,"top"),u=o5(e),d=o5(t);c-d.scrollMarginTop<e.scrollTop+u.scrollPaddingTop?i=c-d.scrollMarginTop-u.scrollPaddingTop:c+t.offsetHeight+d.scrollMarginBottom>e.scrollTop+e.clientHeight-u.scrollPaddingBottom&&(i=c+t.offsetHeight+d.scrollMarginBottom-e.clientHeight+u.scrollPaddingBottom)}e.scrollTo({left:n,top:i,behavior:"auto"})}function FW(e,t,r){let o=r==="left"?"offsetLeft":"offsetTop",n=0;for(;t.offsetParent&&(n+=t[o],t.offsetParent!==e);)t=t.offsetParent;return n}function o5(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 jW(e){return Ww(19)?e:e?"true":void 0}var u5=a(Me(),1);var hd={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Cke={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},UW={disabled:!1,...Cke},_s={valid(e){return e===null?null:e?{"data-valid":""}:{"data-invalid":""}}};var Ske={invalid:void 0,name:void 0,validityData:{state:hd,errors:[],error:"",value:"",initialValue:null},setValidityData:Hr,disabled:void 0,setTouched:Hr,setDirty:Hr,setFilled:Hr,setFocused:Hr,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:UW,registerFieldControl:Hr,validation:{getValidationProps:(e,t=Ua)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Hr,getInputControl:()=>null,commit:async()=>{},change:Hr}},bR=u5.createContext(Ske);function Ga(e=!0){let t=u5.useContext(bR);if(t.setValidityData===Hr&&!e)throw new Error(ys(28));return t}function WW(e,t,r,o,n=!0,i){let{registerFieldControl:s}=Ga(),l=lo(()=>Symbol());Ze(()=>{let c=l.current;if(!n){s(c,void 0);return}s(c,{controlRef:e,getValue:o,id:t,name:i,value:r})},[e,n,o,t,i,s,l,r]),Ze(()=>{let c=l.current;return()=>{s(c,void 0)}},[s,l])}var d5=a(Me(),1);var Tke=d5.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Hr,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function ac(){return d5.useContext(Tke)}var Vy=a(Me(),1);var p5=a(Me(),1);var _R=p5.createContext({controlId:void 0,registerControlId:Hr,labelId:void 0,setLabelId:Hr,messageIds:[],setMessageIds:Hr,getDescriptionProps:e=>e});function Ln(){return p5.useContext(_R)}function GW(e={}){let{id:t,implicit:r=!1,controlRef:o}=e,{controlId:n,registerControlId:i}=Ln(),s=Wa(t),l=r?n:void 0,c=lo(()=>Symbol()),u=Vy.useRef(!1),d=Vy.useRef(t!=null),p=He(()=>{!u.current||i===Hr||(u.current=!1,i(c.current,void 0))});return Ze(()=>{if(i===Hr)return;let m;if(r){let f=o?.current;wW(f)&&f.closest("label")!=null?m=t??null:m=l??s}else if(t!=null)d.current=!0,m=t;else if(d.current)m=s;else{p();return}if(m===void 0){p();return}u.current=!0,i(c.current,m)},[t,o,l,i,r,s,c,p]),Vy.useEffect(()=>p,[p]),n??s}var m5=a(Me(),1),xR=m5.createContext(void 0);function kR(){return m5.useContext(xR)?.direction??"ltr"}var f5=a(Me(),1),wR=f5.createContext({disabled:!1});function g5(){return f5.useContext(wR)}var vd=a(Me(),1);function Tm(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var CR=Object.keys(hd);function Pke(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function $W(e,t){let r=null;for(let o of e.keys())if(Pke(o,t)){if(!o.validity.valid)return o;r??=o}return r}function qW(e,t){for(let r of t.keys())r.setCustomValidity("");e?.setCustomValidity("")}function ZW(e){let{elementRef:t,formRef:r}=ac(),{setValidityData:o,validate:n,validityData:i,validationDebounceTime:s,invalid:l,markedDirtyRef:c,state:u,shouldValidateOnChange:d,registeredFieldIdRef:p}=e,{controlId:m,getDescriptionProps:f}=Ln(),g=DW(),h=vd.useRef(null),v=lo(()=>new Map).current,x=vd.useRef(0),_=vd.useCallback((S,P)=>(v.set(S,P),()=>{v.delete(S)}),[v]),k=He(()=>{let S=$W(v,t.current);return S&&v.get(S)?.controlRef.current||null}),y=He(async(S,P=!1)=>{x.current+=1;let N=x.current;function I(Z,j=l){let Y=p.current??m;if(Y==null)return;let ee=r.current.fields.get(Y);if(!ee)return;let te=Tm(Z,j);r.current.fields.set(Y,{...ee,validityData:te})}function B(Z,j){let Y={value:S,state:{...hd,valid:!0},error:"",errors:[],initialValue:i.initialValue};qW(Z,v),I(Y,j),o(Y)}let E=v.size>0?$W(v,t.current):h.current;if(P){if(u.valid!==!1||!E)return;let Z=E.validity;if(!Z.valueMissing){B(E,!1);return}for(let j of CR)if(j!=="valid"&&j!=="valueMissing"&&j!=="customError"&&Z[j])return}function L(Z){let j=CR.reduce((ee,te)=>(ee[te]=Z.validity[te],ee),{}),Y=!1;for(let ee of CR)if(ee!=="valid"){if(ee==="valueMissing"&&j[ee])Y=!0;else if(j[ee])return j}return Y&&!c.current&&(j.valid=!0,j.valueMissing=!1),j}g.clear();let A=null,U=[],$=E?L(E):{...hd,valid:!0},W,G=d();if(E&&E.validationMessage&&!G)W=E.validationMessage,U=[E.validationMessage];else{let Z=Array.from(r.current.fields.values()).reduce((Y,ee)=>(ee.name&&(Y[ee.name]=ee.getValue()),Y),{}),j=n(S,Z);if(typeof j=="object"&&j!==null&&"then"in j){if(A=await j,N!==x.current)return}else A=j;A!==null?($.valid=!1,$.customError=!0,Array.isArray(A)?(U=A,E?.setCustomValidity(A.join(`
   5  `))):A&&(U=[A],E?.setCustomValidity(A))):G&&(qW(E,v),$.customError=!1,E&&E.validationMessage?(W=E.validationMessage,U=[E.validationMessage]):(!E||E.validity.valid)&&!$.valid&&($.valid=!0))}let F={value:S,state:$,error:W??(Array.isArray(A)?A[0]:A??""),errors:U,initialValue:i.initialValue};I(F),o(F)}),w=He(S=>{g.clear();let P=d();P&&S!==""&&s?(x.current+=1,g.start(s,()=>{y(S)})):y(S,!P)}),C=vd.useCallback((S,P={})=>jr(f(P),u.valid===!1&&!u.disabled&&!S?{"aria-invalid":!0}:Ua),[f,u.disabled,u.valid]);return vd.useMemo(()=>({getValidationProps:C,inputRef:h,registeredInputs:v,registerInput:_,getInputControl:k,commit:y,change:w}),[C,v,_,k,y,w])}function KW(e,t){let r=Wa(e);return Ze(()=>(t(r),()=>{t(o=>o===r?void 0:o)}),[r,t]),r}function YW(e={}){let{id:t,fallbackControlId:r,native:o=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:l}=Ln(),c=He(f=>{l(f),n?.(f)}),u=KW(t,c),d=s??r;function p(f){if(i){i(f,d);return}if(!d)return;let g=Cm(f.currentTarget).getElementById(d);nc(g)&&Eke(g)}function m(f){Kg(f.nativeEvent)?.closest("button,input,select,textarea")||(!f.defaultPrevented&&f.detail>1&&f.preventDefault(),!o&&p(f))}return o?{id:u,htmlFor:d??void 0,onMouseDown:m}:{id:u,onClick:m,onPointerDown(f){f.preventDefault()}}}function Eke(e){e.focus({focusVisible:!0})}var QW=a(Me(),1);function XW(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=qg(),{ref:n,index:i}=Yw(e),s=r===i,l=QW.useRef(null),c=bm(n,l);return{compositeProps:{tabIndex:s?0:-1,onFocus(){o(i)},onMouseMove(){let d=l.current;if(!t||!d)return;let p=d.hasAttribute("disabled")||d.ariaDisabled==="true";!s&&!p&&d.focus()}},compositeRef:c,index:i}}function SR(e){let t=Xw(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=nc(e),i=n?e.offsetWidth:r,s=n?e.offsetHeight:o;return(mR(r)!==i||mR(o)!==s)&&(r=i,o=s),{width:r,height:o}}var JW=a(Me(),1);var eG=a(b(),1),h5=function(t){let{direction:r="ltr"}=t,o=JW.useMemo(()=>({direction:r}),[r]);return(0,eG.jsx)(xR.Provider,{value:o,children:t.children})};function tG(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var v5=a(Me(),1),Bke=v5.createContext(void 0),Nke={disableStyleElements:!1};function rG(){return v5.useContext(Bke)??Nke}var An={};J(An,{Control:()=>dG,Description:()=>uG,Error:()=>lG,Item:()=>fG,Label:()=>sG,Root:()=>iG,Validity:()=>mG});var Go=a(Me(),1);var y5=a(Me(),1),Ike=y5.createContext(void 0);function oG(e=!1){let t=y5.useContext(Ike);if(!t&&!e)throw new Error(ys(86));return t}var yd=a(Me(),1);var nG=a(b(),1),b5=function(t){let r=Wa(),o=t.controlId===void 0?r:t.controlId,[n,i]=yd.useState(o),[s,l]=yd.useState(t.labelId),[c,u]=yd.useState([]),d=lo(()=>new Map),{messageIds:p}=Ln(),m=He((h,v)=>{let x=d.current;if(v===void 0){x.delete(h);return}x.set(h,v),i(_=>{if(x.size===0)return;let k;for(let y of x.values()){if(_!==void 0&&y===_)return _;k===void 0&&(k=y)}return k})}),f=yd.useCallback(h=>{let v=h["aria-describedby"]?h["aria-describedby"].split(" "):[];return v.push(...p,...c),{...h,"aria-describedby":Array.from(new Set(v)).join(" ")||void 0}},[p,c]),g=yd.useMemo(()=>({controlId:n,registerControlId:m,labelId:s,setLabelId:l,messageIds:c,setMessageIds:u,getDescriptionProps:f}),[n,m,s,l,c,u,f]);return(0,nG.jsx)(_R.Provider,{value:g,children:t.children})};var _5=a(Me(),1);function aG(e){let{commit:t,invalid:r,markedDirtyRef:o,name:n,setRegisteredFieldName:i,registeredFieldIdRef:s,setValidityData:l,validityData:c}=e,{formRef:u}=ac(),d=_5.useRef(null),p=_5.useRef(null),m=_5.useRef(!1),f=He(()=>{let y=p.current;if(y)return y.getValue?y.getValue():y.value});function g(y){return y.value===void 0?f():y.value}let h=He(()=>{let y=p.current;if(o.current=!0,!y){t(c.value);return}t(g(y))});function v(){let y=p.current;!y||!y.id||u.current.fields.set(y.id,{getValue:f,name:n??y.name,controlRef:y.controlRef,validityData:Tm(c,r),validate:h})}function x(y=p.current?.id){y&&u.current.fields.delete(y)}function _(y){if(m.current)return;m.current=!0;let w=g(y);l(C=>C.initialValue===w?C:{...C,initialValue:w})}Ze(()=>{let y=p.current;!y||!y.id||(i(n?void 0:y.name),u.current.fields.set(y.id,{getValue:f,name:n??y.name,controlRef:y.controlRef,validityData:Tm(c,r),validate:h}))},[u,f,r,n,i,h,c]),Ze(()=>{let y=u.current.fields;return()=>{let w=p.current?.id;w&&y.delete(w)}},[u]);let k=He((y,w)=>{if(!w){d.current===y&&(d.current=null,x(),p.current=null,i(void 0),s.current=void 0);return}let C=p.current?.id;d.current=y,p.current=w,n||i(w.name),s.current=w.id,C&&C!==w.id&&x(C),_(w),v()});return[h,k]}var x5=a(b(),1),Rke=Go.forwardRef(function(t,r){let{errors:o,validationMode:n,submitAttemptedRef:i}=ac(),{render:s,className:l,validate:c,validationDebounceTime:u=0,validationMode:d=n,name:p,disabled:m=!1,invalid:f,dirty:g,touched:h,actionsRef:v,style:x,..._}=t,k=oG(!0)?.disabled,y=He(c||(()=>null)),w=k||m,[C,S]=Go.useState(!1),[P,N]=Go.useState(!1),[I,B]=Go.useState(!1),[E,L]=Go.useState(!1),A=g??P,U=h??C,$=Go.useRef(A),W=Go.useRef(void 0),[G,F]=Go.useState(),Z=p??G;Ze(()=>{g!==void 0&&($.current=g)},[g]);let j=He(Pe=>{g===void 0&&(Pe&&($.current=!0),N(Pe))}),Y=He(Pe=>{h===void 0&&S(Pe)}),ee=He(()=>d==="onChange"||d==="onSubmit"&&i.current),te=Z&&Object.hasOwn(o,Z)?o[Z]:null,Q=!!(Array.isArray(te)?te.length:te),le=f===!0||Q,[oe,ce]=Go.useState({state:hd,error:"",errors:[],value:null,initialValue:null}),pe=!le&&(w?null:oe.state.valid),be=Go.useMemo(()=>({disabled:w,touched:U,dirty:A,valid:pe,filled:I,focused:E}),[w,U,A,pe,I,E]),Te=ZW({setValidityData:ce,validate:y,validityData:oe,validationDebounceTime:u,invalid:le,markedDirtyRef:$,state:be,shouldValidateOnChange:ee,registeredFieldIdRef:W}),[ae,se]=aG({commit:Te.commit,invalid:le,markedDirtyRef:$,name:p,setRegisteredFieldName:F,registeredFieldIdRef:W,setValidityData:ce,validityData:oe});Go.useImperativeHandle(v,()=>({validate:ae}),[ae]);let ue=Go.useMemo(()=>({invalid:le,name:Z,validityData:oe,setValidityData:ce,disabled:w,setTouched:Y,setDirty:j,setFilled:B,setFocused:L,validationMode:d,shouldValidateOnChange:ee,state:be,registerFieldControl:se,validation:Te}),[le,Z,oe,w,Y,j,B,L,d,ee,be,se,Te]),Oe=_r("div",t,{ref:r,state:be,props:_,stateAttributesMapping:_s});return(0,x5.jsx)(bR.Provider,{value:ue,children:Oe})}),iG=Go.forwardRef(function(t,r){return(0,x5.jsx)(b5,{children:(0,x5.jsx)(Rke,{...t,ref:r})})});var Fy=a(Me(),1);var sG=Fy.forwardRef(function(t,r){let{render:o,className:n,style:i,id:s,nativeLabel:l=!0,...c}=t,u=Ga(!1),d=g5(),{labelId:p}=Ln(),m={...u.state,disabled:u.disabled||d.disabled},f=Fy.useRef(null),g=YW({id:p??s,native:l});return _r("label",t,{ref:[r,f],state:m,props:[g,c],stateAttributesMapping:_s})});var Pm=a(Me(),1);var TR=a(b(),1),Dke={..._s,...Qw},lG=Pm.forwardRef(function(t,r){let{render:o,id:n,className:i,match:s,style:l,...c}=t,u=Wa(n),{validityData:d,state:p,name:m}=Ga(!1),{setMessageIds:f}=Ln(),{errors:g}=ac(),h=m&&Object.hasOwn(g,m)?g[m]:null,v=!!(Array.isArray(h)?h.length:h),x=typeof s=="string",_=!1;s===!0?_=!0:p.disabled?_=!1:x?_=!!d.state[s]:_=v||d.state.valid===!1;let{mounted:k,transitionStatus:y,setMounted:w}=$g(_);Ze(()=>{if(!(!_||!u))return f($=>$.concat(u)),()=>{f($=>$.filter(W=>W!==u))}},[_,u,f]);let C=Pm.useRef(null),[S,P]=Pm.useState(null),[N,I]=Pm.useState(null),B=d.error;!x&&v?B=h:d.errors.length>1&&(B=d.errors);let E=B;Array.isArray(B)&&(E=B.length>1?(0,TR.jsx)("ul",{children:B.map($=>(0,TR.jsx)("li",{children:$},$))}):B[0]);let L=Array.isArray(B)?JSON.stringify(B):B;_&&L!==N&&(I(L),P(E)),t5({open:_,ref:C,onComplete(){_||w(!1)}});let A={...p,transitionStatus:y},U=_r("div",t,{ref:[r,C],state:A,props:[{id:u,children:_?E:S},c],stateAttributesMapping:Dke,enabled:k});return k?U:null});var cG=a(Me(),1);var uG=cG.forwardRef(function(t,r){let{render:o,id:n,className:i,style:s,...l}=t,c=Wa(n),u=Ga(!1),d=g5(),{setMessageIds:p}=Ln(),m={...u.state,disabled:u.disabled||d.disabled};return Ze(()=>{if(c)return p(g=>g.concat(c)),()=>{p(g=>g.filter(h=>h!==c))}},[c,p]),_r("p",t,{ref:r,state:m,props:[{id:c},l],stateAttributesMapping:_s})});var k5=a(Me(),1);var dG=k5.forwardRef(function(t,r){let{render:o,className:n,id:i,name:s,value:l,disabled:c=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:m,...f}=t,{state:g,name:h,disabled:v,setTouched:x,setDirty:_,validityData:k,setFocused:y,setFilled:w,validationMode:C,validation:S}=Ga(),{clearErrors:P}=ac(),N=v||c,I=h??s,B={...g,disabled:N},{labelId:E}=Ln(),L=GW({id:i});Ze(()=>{let Z=l!=null;S.inputRef.current?.value||Z&&l!==""?w(!0):Z&&l===""&&w(!1)},[S.inputRef,w,l]);let A=k5.useRef(null);Ze(()=>{p&&A.current===Ay(Cm(A.current))&&y(!0)},[p,y]);let[U]=Hw({controlled:l,default:d,name:"FieldControl",state:"value"}),$=l!==void 0,W=$?U:void 0,G=He(()=>S.inputRef.current?.value);return WW(S.inputRef,L,W,G,!N,s),_r("input",t,{ref:[r,A],state:B,props:[{id:L,disabled:N,name:I,ref:S.inputRef,"aria-labelledby":E,autoFocus:p,...$?{value:W}:{defaultValue:d},onChange(Z){let j=Z.currentTarget.value;u?.(j,Gg(bs.none,Z.nativeEvent)),_(j!==(k.initialValue??"")),w(j!==""),Z.nativeEvent.defaultPrevented||(P(I),S.change(j))},onFocus(){y(!0)},onBlur(Z){x(!0),y(!1),C==="onBlur"&&S.commit(Z.currentTarget.value)},onKeyDown(Z){Z.currentTarget.tagName==="INPUT"&&Z.key==="Enter"&&(x(!0),S.commit(Z.currentTarget.value))}},f,Z=>S.getValidationProps(N,Z)],stateAttributesMapping:_s})});var Oy=a(Me(),1);var pG=a(b(),1),mG=function(t){let{children:r}=t,{validityData:o,invalid:n}=Ga(!1),i=Oy.useMemo(()=>Tm(o,n),[o,n]),s=i.state.valid===!1,{transitionStatus:l}=$g(s),c=Oy.useMemo(()=>({...i,validity:i.state,transitionStatus:l}),[i,l]);return(0,pG.jsx)(Oy.Fragment,{children:r(c)})};var w5=a(Me(),1);var PR=a(b(),1),fG=w5.forwardRef(function(t,r){let{render:o,className:n,style:i,disabled:s=!1,...l}=t,{state:c,disabled:u}=Ga(!1),d=u||s,p={...c,disabled:d},m=w5.useMemo(()=>({disabled:d}),[d]),f=_r("div",t,{ref:r,state:p,props:l,stateAttributesMapping:_s});return(0,PR.jsx)(b5,{children:(0,PR.jsx)(wR.Provider,{value:m,children:f})})});var gG=a(Me(),1);var hG=a(b(),1),ER=gG.forwardRef(function(t,r){return(0,hG.jsx)(An.Control,{ref:r,...t})});var yG=a(Me(),1);var Qg=a(Me(),1);var C5="data-composite-item-active";var Lke=[];function vG(e){let{loopFocus:t=!0,orientation:r="both",grid:o,onLoop:n,direction:i,highlightedIndex:s,onHighlightedIndexChange:l,rootRef:c,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:m=Lke}=e,[f,g]=Qg.useState(0),h=o!=null,v=Qg.useRef(null),x=bm(v,c),_=Qg.useRef([]),k=Qg.useRef(!1),y=s??f,w=He((I,B=!1)=>{if((l??g)(I),B){let E=_.current[I];yR(v.current,E,i,r)}}),C=He(I=>{if(I.size===0||k.current)return;k.current=!0;let B=Array.from(I.keys()),E=B.find(A=>A?.hasAttribute(C5))??null,L=E?I.get(E)?.index??-1:-1;if(L!==-1)w(L);else if(zy(B,y,p)){let A=Sm(B,{disabledIndices:p});My(B,A)||w(A)}yR(v.current,E,i,r)});Ze(()=>{if(p==null||s!=null||!k.current)return;let I=_.current;if(zy(I,y,p)){let B=Sm(I,{disabledIndices:p});My(I,B)||w(B)}},[p,s,y,_,w]);let S=He((I,B,E)=>n?n(I,B,E,_):E),P=He(I=>{let B=I.key===l5||I.key===c5;if(!OW.has(I.key)||!u&&B||Ake(I,m)||!v.current)return;let L=i==="rtl",A=L?i5:s5,U=L?s5:i5,$=r==="vertical"?a5:A,W=r==="vertical"?n5:U,G=Kg(I.nativeEvent);if(G!=null&&vR(G)&&!tG(G)){let te=G.selectionStart,Q=G.selectionEnd,le=G.value;if(te==null||I.shiftKey||te!==Q||I.key!==W&&te<le.length||I.key!==$&&te>0)return}let F=y,Z=fR(_,p),j=gR(_,p);o!=null&&(F=o({disabledIndices:p,elementsRef:_,event:I,highlightedIndex:y,loopFocus:t,maxIndex:j,minIndex:Z,onLoop:S,orientation:r,rtl:L}));let Y=r!=="vertical"&&I.key===A||r!=="horizontal"&&I.key===a5,ee=r!=="vertical"&&I.key===U||r!=="horizontal"&&I.key===n5;u&&(I.key===l5?F=Z:I.key===c5&&(F=j)),F===y&&(Y||ee)&&(t&&F===j&&Y?(F=Z,n&&(F=n(I,y,F,_))):t&&F===Z&&ee?(F=j,n&&(F=n(I,y,F,_))):F=Sm(_.current,{startingIndex:F,decrement:ee,disabledIndices:p})),F!==y&&!My(_.current,F)&&(d&&I.stopPropagation(),(h||B||Y||ee)&&I.preventDefault(),w(F,!0),queueMicrotask(()=>{_.current[F]?.focus()}))});return{props:{ref:x,onFocus(I){let B=v.current,E=Kg(I.nativeEvent);!B||E==null||!vR(E)||E.setSelectionRange(0,E.value.length)},onKeyDown:P},highlightedIndex:y,onHighlightedIndexChange:w,elementsRef:_,onMapChange:C,relayKeyboardEvent:P}}function Ake(e,t){for(let r of HW)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}var BR=a(b(),1);function bG(e){let{render:t,className:r,style:o,refs:n=_m,props:i=_m,state:s=Ua,stateAttributesMapping:l,highlightedIndex:c,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:m,onLoop:f,enableHomeAndEndKeys:g,onMapChange:h,stopEventPropagation:v=!0,rootRef:x,disabledIndices:_,modifierKeys:k,highlightItemOnHover:y=!1,tag:w="div",...C}=e,S=kR(),{props:P,highlightedIndex:N,onHighlightedIndexChange:I,elementsRef:B,onMapChange:E,relayKeyboardEvent:L}=vG({grid:p,loopFocus:m,onLoop:f,orientation:d,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:x,stopEventPropagation:v,enableHomeAndEndKeys:g,direction:S,disabledIndices:_,modifierKeys:k}),A=_r(w,e,{state:s,ref:n,props:[P,...i,C],stateAttributesMapping:l}),U=yG.useMemo(()=>({highlightedIndex:N,onHighlightedIndexChange:I,highlightItemOnHover:y,relayKeyboardEvent:L}),[N,I,y,L]);return(0,BR.jsx)(lR.Provider,{value:U,children:(0,BR.jsx)(Uw,{elementsRef:B,onMapChange:$=>{h?.($),E($)},children:A})})}var _G=a(zW(),1);function Mke(){return Hr}function zke(){return!1}function Vke(){return!0}function xG(){return(0,_G.useSyncExternalStore)(Mke,zke,Vke)}var qqe=a(Me(),1);var kG=a(b(),1);function wG(e){let{script:t}=e,{nonce:r}=rG();return xG()?(0,kG.jsx)("script",{nonce:r,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var fl={};J(fl,{Indicator:()=>EG,List:()=>NG,Panel:()=>BG,Root:()=>SG,Tab:()=>TG});var Xr=a(Me(),1);var S5=a(Me(),1),NR=S5.createContext(void 0);function bd(){let e=S5.useContext(NR);if(e===void 0)throw new Error(ys(64));return e}var ic={tabActivationDirection:e=>({"data-activation-direction":e})};var IR=a(b(),1),SG=Xr.forwardRef(function(t,r){let{className:o,defaultValue:n=0,onValueChange:i,orientation:s="horizontal",render:l,value:c,style:u,...d}=t,p=t.defaultValue!==void 0,m=Xr.useRef([]),[f,g]=Xr.useState(()=>new Map),[h,v]=Hw({controlled:c,default:n,name:"Tabs",state:"value"}),x=c!==void 0,[_,k]=Xr.useState(()=>new Map),y=Xr.useRef(void 0),w=Xr.useCallback(ce=>RR(_,ce),[_]),[C,S]=Xr.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:N}=C,I=N,B=!1;P!==h&&(I=CG(P,h,s,_),B=P!=null&&h!=null&&w(h)==null);let E=B?P:h,L=P!==E||N!==I;Ze(()=>{L&&S({previousValue:E,tabActivationDirection:I})},[E,L,I]);let A=He((ce,pe)=>{let be=CG(h,ce,s,_);pe.activationDirection=be,i?.(ce,pe),!pe.isCanceled&&v(ce)}),U=He((ce,pe)=>{i?.(ce,Gg(pe,void 0,void 0,{activationDirection:"none"}))}),$=He((ce,pe)=>(g(be=>{let Te=new Map(be);return Te.set(ce,pe),Te}),()=>{g(be=>{if(be.get(ce)!==pe)return be;let Te=new Map(be);return Te.delete(ce),Te})})),W=Xr.useCallback(ce=>f.get(ce),[f]),G=Xr.useCallback(ce=>{for(let pe of _.values())if(ce===pe.value)return pe.id},[_]),F=Xr.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:G,getTabPanelIdByValue:W,onValueChange:A,orientation:s,registerMountedTabPanel:$,setTabMap:k,tabActivationDirection:I,value:h}),[w,G,W,A,s,$,k,I,h]),Z=Xr.useMemo(()=>{for(let ce of _.values())if(ce.value===h)return ce},[_,h]),j=Xr.useMemo(()=>{for(let ce of _.values())if(!ce.disabled)return ce.value},[_]),Y=Xr.useRef(!p),ee=Xr.useRef(n),te=Xr.useRef(p),Q=Xr.useRef(!1);Ze(()=>{if(x)return;function ce(ae,se){v(ae),S({previousValue:ae,tabActivationDirection:"none"}),U(ae,se),Y.current=!1}if(_.size===0){Q.current&&h!==null&&!y.current?.isConnected&&ce(null,bs.missing);return}Q.current=!0,y.current=_.keys().next().value;let pe=Z?.disabled,be=Z==null&&h!==null;if(!pe&&h===ee.current&&(te.current=!1),te.current&&pe&&h===ee.current)return;let Te=Y.current;if(pe||be){let ae=j??null;if(h===ae){Y.current=!1;return}let se=bs.missing;Te?se=bs.initial:pe&&(se=bs.disabled),ce(ae,se);return}Te&&Z!=null&&(U(h,bs.initial),Y.current=!1)},[j,x,U,Z,v,_,h]);let oe=_r("div",t,{state:{orientation:s,tabActivationDirection:I},ref:r,props:d,stateAttributesMapping:ic});return(0,IR.jsx)(NR.Provider,{value:F,children:(0,IR.jsx)(Uw,{elementsRef:m,children:oe})})});function RR(e,t){for(let[r,o]of e.entries())if(t===o.value)return r;return null}function CG(e,t,r,o){if(e==null||t==null)return"none";let[n,i,s]=r==="horizontal"?["left","left","right"]:["top","up","down"],l=RR(o,e),c=RR(o,t);if(l==null||c==null)return l!==c&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?s:i:"none";let u=l.getBoundingClientRect()[n],d=c.getBoundingClientRect()[n];return d<u?i:d>u?s:"none"}var pu=a(Me(),1);var T5=a(Me(),1),DR=T5.createContext(void 0);function P5(){let e=T5.useContext(DR);if(e===void 0)throw new Error(ys(65));return e}var TG=pu.forwardRef(function(t,r){let{className:o,disabled:n=!1,render:i,value:s,id:l,nativeButton:c=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:m,onValueChange:f,orientation:g,tabActivationDirection:h}=bd(),{activateOnFocus:v,registerTabResizeObserverElement:x,tabsListElement:_}=P5(),{highlightedIndex:k,onHighlightedIndexChange:y}=qg(),w=Wa(l),C=pu.useMemo(()=>({disabled:n,id:w,value:s}),[n,w,s]),{compositeProps:S,compositeRef:P,index:N}=XW({metadata:C}),I=s===p,B=pu.useRef(!1),E=pu.useRef(null),L=He(Q=>{E.current?.(),E.current=Q?x(Q):null});Ze(()=>{if(B.current){B.current=!1;return}if(!(I&&N>-1&&k!==N))return;let Q=_;if(Q!=null){let le=Ay(Cm(Q));if(le&&pR(Q,le))return}n||y(N)},[I,N,k,y,n,_]);let{getButtonProps:A,buttonRef:U}=uR({disabled:n,native:c,focusableWhenDisabled:!0}),$=m(s),W=pu.useRef(!1),G=pu.useRef(!1);function F(Q){f(s,Gg(bs.none,Q.nativeEvent,void 0,{activationDirection:"none"}))}function Z(Q){I||n||F(Q)}function j(Q){I||n||v&&(!W.current||G.current)&&F(Q)}function Y(Q){if(I||n)return;W.current=!0,G.current=Q.button===0;let le=Cm(Q.currentTarget);function oe(){W.current=!1,G.current=!1,le.removeEventListener("pointerup",oe),le.removeEventListener("pointercancel",oe)}le.addEventListener("pointerup",oe),le.addEventListener("pointercancel",oe)}return _r("button",t,{state:{disabled:n,active:I,orientation:g,tabActivationDirection:h},ref:[r,U,P,L],props:[S,{role:"tab","aria-controls":$,"aria-selected":I,id:w,onClick:Z,onFocus:j,onPointerDown:Y,[C5]:I?"":void 0,onKeyDownCapture(){B.current=!0}},d,A],stateAttributesMapping:ic})});var Xg=a(Me(),1);var E5=a(b(),1),PG,Fke={...ic,activeTabPosition:()=>null,activeTabSize:()=>null},EG=Xg.forwardRef(function(t,r){let{className:o,render:n,renderBeforeHydration:i=!1,style:s,...l}=t,{getTabElementBySelectedValue:c,orientation:u,tabActivationDirection:d,value:p}=bd(),{tabsListElement:m,registerIndicatorUpdateListener:f}=P5(),g=VW();Xg.useEffect(()=>f(g),[f,g]);let h=0,v=0,x=0,_=0,k=0,y=0,w=!1;if(p!=null&&m!=null){let E=c(p);if(E!=null){w=!0;let{width:L,height:A}=SR(E),{width:U,height:$}=SR(m),W=E.getBoundingClientRect(),G=m.getBoundingClientRect(),F=U>0?G.width/U:1,Z=$>0?G.height/$:1;if(F>Number.EPSILON&&Z>Number.EPSILON){let Y=W.left-G.left,ee=W.top-G.top;h=Y/F+m.scrollLeft-m.clientLeft,x=ee/Z+m.scrollTop-m.clientTop}else h=E.offsetLeft,x=E.offsetTop;k=L,y=A,v=m.scrollWidth-h-k,_=m.scrollHeight-x-y}}let C=w?{left:h,right:v,top:x,bottom:_}:null,S=w?{width:k,height:y}:null,P=w?{"--active-tab-left":`$h}px`,"--active-tab-right":`$v}px`,"--active-tab-top":`$x}px`,"--active-tab-bottom":`$_}px`,"--active-tab-width":`$k}px`,"--active-tab-height":`$y}px`}:void 0,N=w&&k>0&&y>0,B=_r("span",t,{state:{orientation:u,activeTabPosition:C,activeTabSize:S,tabActivationDirection:d},ref:r,props:[{role:"presentation",style:P,hidden:!N},l,{suppressHydrationWarning:!0}],stateAttributesMapping:Fke});return p==null?null:(0,E5.jsxs)(Xg.Fragment,{children:[B,i&&(PG||(PG=(0,E5.jsx)(wG,{script:""})))]})});var B5=a(Me(),1);var Oke={...ic,...Qw},BG=B5.forwardRef(function(t,r){let{className:o,value:n,render:i,keepMounted:s=!1,style:l,...c}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:m,registerMountedTabPanel:f}=bd(),g=Wa(),{ref:h,index:v}=Yw(),x=n===u,{mounted:_,transitionStatus:k,setMounted:y}=$g(x),w=!_,C=d(n),S={hidden:w,orientation:p,tabActivationDirection:m,transitionStatus:k},P=B5.useRef(null),N=_r("div",t,{state:S,ref:[r,h,P],props:[{"aria-labelledby":C,hidden:w,id:g,role:"tabpanel",tabIndex:x?0:-1,inert:jW(!x),"data-index":v},c],stateAttributesMapping:Oke});return t5({open:x,ref:P,onComplete(){x||y(!1)}}),Ze(()=>{if(!(g==null||w&&!s))return f(n,g)},[w,s,n,g,f]),s||_?N:null});var ml=a(Me(),1);var LR=a(b(),1),NG=ml.forwardRef(function(t,r){let{activateOnFocus:o=!1,className:n,loopFocus:i=!0,render:s,style:l,...c}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=bd(),[m,f]=ml.useState(0),[g,h]=ml.useState(null),v=ml.useRef(new Set),x=ml.useRef(new Set),_=ml.useRef(null);Ze(()=>{if(typeof ResizeObserver>"u")return;let P=new ResizeObserver(()=>{v.current.forEach(N=>{N()})});return _.current=P,g&&P.observe(g),x.current.forEach(N=>{P.observe(N)}),()=>{P.disconnect(),_.current=null}},[g]);let k=He(P=>(v.current.add(P),()=>{v.current.delete(P)})),y=He(P=>(x.current.add(P),_.current?.observe(P),()=>{x.current.delete(P),_.current?.unobserve(P)})),w={orientation:u,tabActivationDirection:p},C={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},S=ml.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:k,registerTabResizeObserverElement:y,tabsListElement:g}),[o,k,y,g]);return(0,LR.jsx)(DR.Provider,{value:S,children:(0,LR.jsx)(bG,{render:s,className:n,style:l,state:w,refs:[r,h],props:[C,c],stateAttributesMapping:ic,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:f,onMapChange:d,disabledIndices:_m})})});function xs(e){return _r(e.defaultTagName??"div",e,e)}var DG=a(H(),1),AR="data-wp-hash";function MR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&jke(document)),e.__wpStyleRuntime}function Hke(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$AR}]`))if(r.getAttribute(AR)===t)return!0;return!1}function LG(e,t,r){if(!e.head)return;let o=MR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Hke(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(AR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function jke(e){let t=MR();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)LG(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 AG(e,t){let r=MR();r.styles.set(e,t);for(let o of r.documents.keys())LG(o,e,t)}typeof process>"u",AG("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var IG={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",AG("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var RG={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},Hy=(0,DG.forwardRef)(function({variant:t="body-md",render:r,className:o,...n},i){return xs({render:r,defaultTagName:"span",ref:i,props:jr(n,{className:T(IG.text,RG.heading,RG.p,IG[t],o)})})});var zG=a(D(),1),VG=a(b(),1);function FG({children:e}){return(0,VG.jsx)(h5,{direction:(0,zG.isRTL)()?"rtl":"ltr",children:e})}var OG=a(H(),1),HG=a(D(),1),Jg=a(b(),1),VR="data-wp-hash";function FR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Wke(document)),e.__wpStyleRuntime}function Uke(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$VR}]`))if(r.getAttribute(VR)===t)return!0;return!1}function jG(e,t,r){if(!e.head)return;let o=FR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Uke(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(VR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Wke(e){let t=FR();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)jG(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 I5(e,t){let r=FR();r.styles.set(e,t);for(let o of r.documents.keys())jG(o,e,t)}typeof process>"u",I5("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Gke={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",I5("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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 $ke={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",I5("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 N5={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",I5("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var qke={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},mu=(0,OG.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:n=!1,target:i,render:s,className:l,...c},u){let d=n||/^_blank$/i.test(i??"");return xs({render:s,defaultTagName:"a",ref:u,props:jr(c,{className:T(qke.a,Gke["box-sizing"],$ke["outset-ring--focus-except-active"],r!=="unstyled"&&N5.link,r!=="unstyled"&&N5[`is-$o}`],r==="unstyled"&&N5["is-unstyled"],l),target:i??(n?"_blank":void 0),children:(0,Jg.jsxs)(Jg.Fragment,{children:[t,d&&(0,Jg.jsx)("span",{className:N5["link-icon"],role:"img","aria-label":(0,HG.__)("(opens in a new tab)")})]})})})});var UG=a(H(),1),WG=a(z(),1),GG=a(b(),1),jy=(0,UG.forwardRef)(function({icon:t,size:r=24,style:o,...n},i){let s=t.props.style||o?{...t.props.style,...o}:void 0;return(0,GG.jsx)(WG.SVG,{ref:i,...t.props,...n,...s?{style:s}:{},width:r,height:r})});var $G=a(H(),1),OR="data-wp-hash";function HR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Kke(document)),e.__wpStyleRuntime}function Zke(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$OR}]`))if(r.getAttribute(OR)===t)return!0;return!1}function qG(e,t,r){if(!e.head)return;let o=HR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Zke(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(OR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Kke(e){let t=HR();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)qG(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 Yke(e,t){let r=HR();r.styles.set(e,t);for(let o of r.documents.keys())qG(o,e,t)}typeof process>"u",Yke("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 Qke={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},cn=(0,$G.forwardRef)(function({render:t,...r},o){return xs({render:t,ref:o,props:jr({className:Qke["visually-hidden"]},r,{"data-visually-hidden":""})})});var KG=a(H(),1),jR="data-wp-hash";function UR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Jke(document)),e.__wpStyleRuntime}function Xke(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$jR}]`))if(r.getAttribute(jR)===t)return!0;return!1}function YG(e,t,r){if(!e.head)return;let o=UR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Xke(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(jR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Jke(e){let t=UR();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 ewe(e,t){let r=UR();r.styles.set(e,t);for(let o of r.documents.keys())YG(o,e,t)}typeof process>"u",ewe("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var twe={stack:"_19ce0419607e1896__stack"},rwe={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)"},ks=(0,KG.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:i,render:s,...l},c){let u={gap:r&&rwe[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:i};return xs({render:s,ref:c,props:jr(l,{style:u,className:twe.stack})})});var QG=a(he(),1),Em=a(H(),1);function XG(e){let t=(0,QG.useEvent)(e),r=(0,Em.useRef)(null),o=(0,Em.useRef)(!1),n=(0,Em.useCallback)(()=>{o.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t(),r.current=null},0))},[t]);return(0,Em.useEffect)(()=>(o.current=!1,()=>{o.current=!0,r.current&&clearTimeout(r.current)}),[]),n}var i$=a(H(),1);var Wy=a(H(),1),Gy=a(b(),1),WR="data-wp-hash";function GR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&nwe(document)),e.__wpStyleRuntime}function owe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$WR}]`))if(r.getAttribute(WR)===t)return!0;return!1}function JG(e,t,r){if(!e.head)return;let o=GR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(owe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(WR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function nwe(e){let t=GR();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)JG(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 $R(e,t){let r=GR();r.styles.set(e,t);for(let o of r.documents.keys())JG(o,e,t)}typeof process>"u",$R("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var awe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",$R("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var iwe={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",$R("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var eh={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},e$=(0,Wy.forwardRef)(function({className:t,children:r,visuallyDisabled:o,size:n="default",isBorderless:i,prefix:s,suffix:l,...c},u){return(0,Gy.jsxs)("div",{ref:u,className:T(awe.div,iwe["box-sizing"],eh["input-layout"],eh[`is-size-$n}`],o&&eh["is-disabled"],i&&eh["is-borderless"],t),...c,children:[Wy.Children.count(s)>0&&(0,Gy.jsx)("div",{className:eh["slot-wrapper"],"data-slot-type":"prefix",children:s}),r,Wy.Children.count(l)>0&&(0,Gy.jsx)("div",{className:eh["slot-wrapper"],"data-slot-type":"suffix",children:l})]})});var r$=a(H(),1),n$=a(b(),1),qR="data-wp-hash";function ZR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&lwe(document)),e.__wpStyleRuntime}function swe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$qR}]`))if(r.getAttribute(qR)===t)return!0;return!1}function o$(e,t,r){if(!e.head)return;let o=ZR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(swe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(qR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function lwe(e){let t=ZR();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)o$(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 cwe(e,t){let r=ZR();r.styles.set(e,t);for(let o of r.documents.keys())o$(o,e,t)}typeof process>"u",cwe("e4f4f9600b",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cb2baafdc08746bb__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:var(--wpds-border-width-xs,1px);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:flex;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:max(var(--wpds-typography-font-size-md,13px),16px);height:var(--wpds-dimension-size-lg,40px);line-height:1;@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}&._0c807a84cbb94e0c__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&._0c807a84cbb94e0c__is-size-compact,&.ed67cda122dc1e7b__is-size-small{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.ed67cda122dc1e7b__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._6fb7104732387680__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._8097270636ca6100__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._0d7afad74a057888__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._6fb7104732387680__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._8097270636ca6100__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}.c192b41a12b4387b__slot-wrapper{display:contents}._0d7afad74a057888__input-layout-slot{align-items:center;display:flex;&._0c952682762ca288__is-padding-minimal{--wp-ui-input-layout-prefix-padding-start:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px));--wp-ui-input-layout-suffix-padding-end:calc(var(--wp-ui-input-layout-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}[data-slot-type=prefix] &{padding-inline-start:var(--wp-ui-input-layout-prefix-padding-start,var(--wp-ui-input-layout-padding-inline))}[data-slot-type=suffix] &{padding-inline-end:var(--wp-ui-input-layout-suffix-padding-end,var(--wp-ui-input-layout-padding-inline))}}}}');var t$={"input-layout":"cb2baafdc08746bb__input-layout","is-size-compact":"_0c807a84cbb94e0c__is-size-compact","is-size-small":"ed67cda122dc1e7b__is-size-small","is-disabled":"_6fb7104732387680__is-disabled","is-borderless":"_8097270636ca6100__is-borderless","input-layout-slot":"_0d7afad74a057888__input-layout-slot","slot-wrapper":"c192b41a12b4387b__slot-wrapper","is-padding-minimal":"_0c952682762ca288__is-padding-minimal"},KR=(0,r$.forwardRef)(function({padding:t="default",className:r,...o},n){return(0,n$.jsx)("div",{ref:n,className:T(t$["input-layout-slot"],t$[`is-padding-$t}`],r),...o})});KR.displayName="InputLayout.Slot";var a$=Object.assign(e$,{Slot:KR});var QR=a(b(),1),YR="data-wp-hash";function XR(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&dwe(document)),e.__wpStyleRuntime}function uwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$YR}]`))if(r.getAttribute(YR)===t)return!0;return!1}function s$(e,t,r){if(!e.head)return;let o=XR(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(uwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(YR,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function dwe(e){let t=XR();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)s$(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 JR(e,t){let r=XR();r.styles.set(e,t);for(let o of r.documents.keys())s$(o,e,t)}typeof process>"u",JR("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var pwe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",JR("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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 mwe={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"};typeof process>"u",JR("1a25f6a232","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._2ae7be2fc1bb17a3__input{--_gcd-input-padding:var(--wp-ui-input-padding-block,0px) var(--wp-ui-input-layout-padding-inline,0px);background:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}&:disabled,&[aria-disabled=true]{--_gcd-input-placeholder-color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}&[type=number]{appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}}}}");var fwe={input:"_2ae7be2fc1bb17a3__input"},eD=(0,i$.forwardRef)(function({className:t,size:r="default",prefix:o,suffix:n,style:i,...s},l){return(0,QR.jsx)(a$,{className:T(mwe["outset-ring--focus-within"],t),style:i,size:r,visuallyDisabled:s.disabled,prefix:o,suffix:n,children:(0,QR.jsx)(ER,{ref:l,className:T(pwe.input,fwe.input),...s})})});var sD=a(D(),1),Po=a(H(),1);var l$=a(H(),1),$y=a(b(),1),rD="data-wp-hash";function oD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&hwe(document)),e.__wpStyleRuntime}function gwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$rD}]`))if(r.getAttribute(rD)===t)return!0;return!1}function c$(e,t,r){if(!e.head)return;let o=oD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(gwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(rD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function hwe(e){let t=oD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)c$(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 vwe(e,t){let r=oD();r.styles.set(e,t);for(let o of r.documents.keys())c$(o,e,t)}typeof process>"u",vwe("bbbecfe373","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.ab4d64c07c0ba587__spinner{background-color:transparent;display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}.a7654e10245bb7d2__indicator,.dc51f80c84b35fe2__track{fill:transparent;stroke-width:1.5px}.dc51f80c84b35fe2__track{stroke:var(--wpds-color-background-track-neutral,#dbdbdb)}.a7654e10245bb7d2__indicator{stroke:var(--wpds-color-background-thumb-brand,var(--wp-admin-theme-color,#3858e9));stroke-linecap:round;animation:_02322d973909703c__spinner-spin 1.4s linear infinite both;transform-origin:50% 50%}@keyframes _02322d973909703c__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");var tD={spinner:"ab4d64c07c0ba587__spinner",track:"dc51f80c84b35fe2__track",indicator:"a7654e10245bb7d2__indicator","spinner-spin":"_02322d973909703c__spinner-spin"},nD=(0,l$.forwardRef)(function({className:t,...r},o){return(0,$y.jsxs)("svg",{className:T(tD.spinner,t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...r,ref:o,children:[(0,$y.jsx)("circle",{className:tD.track,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,$y.jsx)("path",{className:tD.indicator,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});var qy=a(b(),1),aD="data-wp-hash";function iD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&bwe(document)),e.__wpStyleRuntime}function ywe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$aD}]`))if(r.getAttribute(aD)===t)return!0;return!1}function u$(e,t,r){if(!e.head)return;let o=iD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(ywe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(aD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function bwe(e){let t=iD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)u$(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 d$(e,t){let r=iD();r.styles.set(e,t);for(let o of r.documents.keys())u$(o,e,t)}typeof process>"u",d$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var _we={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",d$("bd510b0d40",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7a7ac88e306348e7__indicator{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);align-items:flex-start;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;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-sm,12px);gap:var(--wpds-dimension-gap-xs,4px);line-height:var(--wpds-typography-line-height-xs,16px);@media not (prefers-reduced-motion){animation:_48722cc5dd090ce4__indicator-jump var(--wpds-motion-duration-md,.2s) cubic-bezier(.68,-.55,.27,1.55)}}._57a3bbbfbe38a5c6__is-invalid{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}._9e944dc198aac10b__is-valid{color:var(--wpds-color-foreground-content-success-weak,#007f2f)}.e482806667437c6a__indicator-icon{flex-shrink:0}._6e46434cc23019d2__indicator-spinner{height:var(--wpds-dimension-size-3xs,12px);margin:2px;width:var(--wpds-dimension-size-3xs,12px)}@keyframes _48722cc5dd090ce4__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}}');var R5={indicator:"_7a7ac88e306348e7__indicator","indicator-jump":"_48722cc5dd090ce4__indicator-jump","is-invalid":"_57a3bbbfbe38a5c6__is-invalid","is-valid":"_9e944dc198aac10b__is-valid","indicator-icon":"e482806667437c6a__indicator-icon","indicator-spinner":"_6e46434cc23019d2__indicator-spinner"},xwe={valid:EN,invalid:EE};function D5({id:e,type:t,message:r}){return(0,qy.jsxs)("p",{id:e,className:T(_we.p,R5.indicator,R5[`is-$t}`]),children:[t==="validating"?(0,qy.jsx)(nD,{className:R5["indicator-spinner"]}):(0,qy.jsx)(jy,{className:R5["indicator-icon"],icon:xwe[t],size:16,fill:"currentColor"}),r]})}var sc=a(b(),1),kwe=e=>(0,sc.jsx)(ks,{...e,direction:"column",gap:"sm"});function wwe(e,t,r){let o;return t&&!r?o=`(${(0,sD.__)("Required")})`:!t&&r&&(o=`(${(0,sD.__)("Optional")})`),o?typeof e=="string"?`$e} $o}`:(0,sc.jsxs)(sc.Fragment,{children:[e," ",o]}):e}var p$="data-validity-visible",lD=(0,Po.forwardRef)(function({required:t,markWhenOptional:r,customValidity:o,getValidityTarget:n,children:i,render:s=kwe,...l},c){let[u,d]=(0,Po.useState)(),[p,m]=(0,Po.useState)(),[f,g]=(0,Po.useState)(!1),[h,v]=(0,Po.useState)(!1),x=(0,Po.useRef)(null);(0,Po.useEffect)(()=>{let C=n(),S=()=>{o?.type!=="validating"&&d(C?.validationMessage),g(!0),C?.setAttribute(p$,"")};return C?.addEventListener("invalid",S),()=>C?.removeEventListener("invalid",S)},[o?.type,n]),(0,Po.useEffect)(()=>{let C=n(),S=N=>{if(N.preventDefault(),!N.isTrusted)return;let I=N.target,B=Array.from(I.form?.elements??[]).find(E=>!E.validity.valid);(!I.form||B===I)&&I.focus()},P=C?.type==="radio"&&C?.name?Array.from(x.current?.querySelectorAll(`input[type="radio"][name="$C?.name}"]`)??[]).filter(N=>N!==C):[];return C?.addEventListener("invalid",S),P.forEach(N=>N.addEventListener("invalid",S)),()=>{C?.removeEventListener("invalid",S),P.forEach(N=>N.removeEventListener("invalid",S))}},[n]),(0,Po.useEffect)(()=>{let C=n();if(!o?.type){C?.setCustomValidity(""),d(C?.validationMessage),m(void 0);return}switch(o.type){case"validating":{C?.setCustomValidity(""),d(void 0),m({type:"validating",message:o.message});break}case"valid":{C?.setCustomValidity(""),d(C?.validationMessage),m({type:"valid",message:o.message});break}case"invalid":{C?.setCustomValidity(o.message??""),d(C?.validationMessage),m(void 0);break}}},[o,n]),(0,Po.useEffect)(()=>{if(!(!h||f)){if(o?.type==="validating"){let C=setTimeout(()=>{g(!0)},1e3);return()=>clearTimeout(C)}g(!0)}},[h,o?.type,f]);let _=C=>{if(C.relatedTarget&&C.currentTarget.contains(C.relatedTarget))return;h||(v(!0),n()?.setAttribute(p$,""));let S=n(),P=o?.type==="validating";window.queueMicrotask(()=>{P||d(S?.validationMessage)})},k=(0,Po.useId)(),y=u?(0,sc.jsx)(D5,{id:k,type:"invalid",message:u}):p?.type?(0,sc.jsx)(D5,{id:k,type:p.type,message:p.message}):null,w=f?y:null;return(0,Po.useEffect)(()=>{let C=n();if(!C)return;function S(P,N){let I=(P.getAttribute("aria-describedby")??"").split(" ").filter(B=>B&&B!==k);N&&I.push(k),I.length?P.setAttribute("aria-describedby",I.join(" ")):P.removeAttribute("aria-describedby")}return S(C,!!w),()=>S(C,!1)},[w,k,n]),xs({render:s,ref:[c,x],props:jr(l,{onBlur:_,children:(0,sc.jsxs)(sc.Fragment,{children:[(0,Po.cloneElement)(i,{label:wwe(i.props.label,t,r),required:t}),w]})})})});var Bm={};J(Bm,{Control:()=>L$,Description:()=>P$,Details:()=>I$,Item:()=>y$,Label:()=>k$,Root:()=>g$,VisualLabel:()=>xD});var m$=a(H(),1);var dD=a(b(),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"&&Swe(document)),e.__wpStyleRuntime}function Cwe(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 f$(e,t,r){if(!e.head)return;let o=uD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Cwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(cD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Swe(e){let t=uD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)f$(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 Twe(e,t){let r=uD();r.styles.set(e,t);for(let o of r.documents.keys())f$(o,e,t)}typeof process>"u",Twe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var Pwe={"box-sizing":"_336cd3e4e743482f__box-sizing"},Ewe=e=>(0,dD.jsx)(ks,{...e,direction:"column",gap:"sm"}),g$=(0,m$.forwardRef)(function({className:t,render:r=Ewe,...o},n){return(0,dD.jsx)(An.Root,{ref:n,className:T(Pwe["box-sizing"],t),render:r,...o})});var h$=a(H(),1),v$=a(b(),1),y$=(0,h$.forwardRef)(function(t,r){return(0,v$.jsx)(An.Item,{ref:r,...t})});var _$=a(H(),1);var mD=a(b(),1),pD="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"&&Nwe(document)),e.__wpStyleRuntime}function Bwe(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 x$(e,t,r){if(!e.head)return;let o=fD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Bwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(pD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Nwe(e){let t=fD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)x$(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 Iwe(e,t){let r=fD();r.styles.set(e,t);for(let o of r.documents.keys())x$(o,e,t)}typeof process>"u",Iwe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var b$={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},k$=(0,_$.forwardRef)(function({className:t,hideFromVision:r,variant:o,...n},i){let s=(0,mD.jsx)(An.Label,{ref:i,className:T(b$.label,o&&b$[`is-$o}`],t),...n});return r?(0,mD.jsx)(cn,{render:s}):s});var w$=a(H(),1),T$=a(b(),1),gD="data-wp-hash";function hD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Dwe(document)),e.__wpStyleRuntime}function Rwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$gD}]`))if(r.getAttribute(gD)===t)return!0;return!1}function C$(e,t,r){if(!e.head)return;let o=hD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Rwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(gD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Dwe(e){let t=hD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)C$(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 S$(e,t){let r=hD();r.styles.set(e,t);for(let o of r.documents.keys())C$(o,e,t)}typeof process>"u",S$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Lwe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",S$("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var Awe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},P$=(0,w$.forwardRef)(function({className:t,...r},o){return(0,T$.jsx)(An.Description,{ref:o,className:T(Lwe.p,Awe.description,t),...r})});var E$=a(H(),1),B$=a(D(),1);var _d=a(b(),1),vD="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"&&zwe(document)),e.__wpStyleRuntime}function Mwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$vD}]`))if(r.getAttribute(vD)===t)return!0;return!1}function N$(e,t,r){if(!e.head)return;let o=yD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Mwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function zwe(e){let t=yD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)N$(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 Vwe(e,t){let r=yD();r.styles.set(e,t);for(let o of r.documents.keys())N$(o,e,t)}typeof process>"u",Vwe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var Fwe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},I$=(0,E$.forwardRef)(function({className:t,...r},o){return(0,_d.jsxs)(_d.Fragment,{children:[(0,_d.jsx)(cn,{render:(0,_d.jsx)(An.Description,{}),children:(0,B$.__)("More details follow the field.")}),(0,_d.jsx)("div",{ref:o,className:T(Fwe.description,t),...r})]})});var R$=a(H(),1),D$=a(b(),1),L$=(0,R$.forwardRef)(function(t,r){return(0,D$.jsx)(An.Control,{ref:r,...t})});var M$=a(H(),1),bD="data-wp-hash";function _D(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Hwe(document)),e.__wpStyleRuntime}function Owe(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 z$(e,t,r){if(!e.head)return;let o=_D(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Owe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(bD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Hwe(e){let t=_D();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)z$(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 jwe(e,t){let r=_D();r.styles.set(e,t);for(let o of r.documents.keys())z$(o,e,t)}typeof process>"u",jwe("df33c48b2d",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._2d5ad850b2f90964__label{--wp-ui-field-label-line-height:var(--wpds-typography-line-height-xs,16px);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);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-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wp-ui-field-label-line-height);text-transform:uppercase;&._17c4214649230bea__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._08a3750500e0233f__description{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);--_gcd-p-margin:0;text-wrap:pretty;color:var(--wpds-color-foreground-content-neutral-weak,#707070);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-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var A$={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},xD=(0,M$.forwardRef)(function({className:t,render:r,variant:o,...n},i){return xs({defaultTagName:"span",render:r,ref:i,props:jr(n,{className:T(A$.label,o&&A$[`is-$o}`],t)})})});xD.displayName="Field.VisualLabel";var L5=a(H(),1);var wD=a(b(),1),kD="data-wp-hash";function CD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Wwe(document)),e.__wpStyleRuntime}function Uwe(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 F$(e,t,r){if(!e.head)return;let o=CD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Uwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(kD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Wwe(e){let t=CD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)F$(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,t){let r=CD();r.styles.set(e,t);for(let o of r.documents.keys())F$(o,e,t)}typeof process>"u",O$("1540cbc709","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._1e441c22c9dc5d28__wrapper{--wp-ui-textarea-min-height:var(--wpds-dimension-size-lg,40px)}._414844876c32ecee__textarea{min-height:calc(var(--wp-ui-textarea-min-height) - 2px);resize:block}}@layer compositions{._1e441c22c9dc5d28__wrapper{--wp-ui-input-padding-block:9.9px;height:auto;line-height:1.4}}}");var V$={wrapper:"_1e441c22c9dc5d28__wrapper",textarea:"_414844876c32ecee__textarea"};typeof process>"u",O$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var Gwe={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"},$we=(e,t)=>function(o){return typeof e=="function"?e(jr(o,t)):(0,L5.cloneElement)(e,jr(o,t))},A5=(0,L5.forwardRef)(function({className:t,defaultValue:r,disabled:o,onValueChange:n,render:i,rows:s=4,style:l,value:c,...u},d){return(0,wD.jsx)(eD,{className:T(V$.wrapper,t),style:l,render:$we(i||(p=>(0,wD.jsx)("textarea",{...p})),{className:T(Gwe.textarea,V$.textarea),ref:d,rows:s,...u}),value:c,defaultValue:r,onValueChange:n,disabled:o})});var H$=a(H(),1);var Nm=a(b(),1),SD=(0,H$.forwardRef)(function({className:t,label:r,description:o,details:n,hideLabelFromVision:i,...s},l){return(0,Nm.jsxs)(Bm.Root,{className:t,children:[(0,Nm.jsx)(Bm.Label,{hideFromVision:i,children:r}),(0,Nm.jsx)(A5,{ref:l,...s}),o&&(0,Nm.jsx)(Bm.Description,{children:o}),n&&(0,Nm.jsx)(Bm.Details,{children:n})]})});var M5=a(H(),1),j$=a(he(),1);var TD=a(b(),1),PD=(0,M5.forwardRef)(function({required:t,markWhenOptional:r,customValidity:o,...n},i){let s=(0,M5.useRef)(null),l=(0,j$.useMergeRefs)([i,s]);return(0,TD.jsx)(lD,{required:t,markWhenOptional:r,customValidity:o,getValidityTarget:()=>s.current,children:(0,TD.jsx)(SD,{ref:l,...n})})});var xd={};J(xd,{List:()=>$$,Panel:()=>eq,Root:()=>rq,Tab:()=>aq});var Im=a(H(),1);var W$=a(he(),1),z5=a(b(),1),ED="data-wp-hash";function BD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Zwe(document)),e.__wpStyleRuntime}function qwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$ED}]`))if(r.getAttribute(ED)===t)return!0;return!1}function G$(e,t,r){if(!e.head)return;let o=BD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(qwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(ED,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Zwe(e){let t=BD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)G$(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 Kwe(e,t){let r=BD();r.styles.set(e,t);for(let o of r.documents.keys())G$(o,e,t)}typeof process>"u",Kwe("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--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)
   6              &[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]
   7                  [role=tab]:is([aria-selected=true])
   8                  &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var Zy={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"},U$=1,$$=(0,Im.forwardRef)(function({children:t,variant:r="default",className:o,activateOnFocus:n,...i},s){let[l,c]=(0,Im.useState)(null),[u,d]=(0,Im.useState)({first:!1,last:!1,isScrolling:!1});(0,Im.useEffect)(()=>{if(!l)return;let m=()=>{let{scrollWidth:_,clientWidth:k,scrollLeft:y}=l,w=Math.max(_-k,0),S=(l.dir||(typeof window<"u"?window.getComputedStyle(l).direction:"ltr"))==="rtl"&&y<0?-y:y,P={first:S>U$,last:S<w-U$,isScrolling:_>k};d(N=>N.first===P.first&&N.last===P.last&&N.isScrolling===P.isScrolling?N:P)},f=new ResizeObserver(m),g=()=>{f.disconnect(),f.observe(l),l.querySelectorAll('[role="tab"]').forEach(_=>f.observe(_))},h=new MutationObserver(g);h.observe(l,{childList:!0,subtree:!0});let v=!1,x=()=>{v||(requestAnimationFrame(()=>{m(),v=!1}),v=!0)};return l.addEventListener("scroll",x,{passive:!0}),g(),m(),()=>{l.removeEventListener("scroll",x),f.disconnect(),h.disconnect()}},[l]);let p=(0,W$.useMergeRefs)([s,m=>c(m)]);return(0,z5.jsxs)(fl.List,{ref:p,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:T(Zy.tablist,u.first&&Zy["is-overflowing-first"],u.last&&Zy["is-overflowing-last"],Zy[`is-$r}-variant`],o),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,z5.jsx)(fl.Indicator,{className:Zy.indicator})]})});var Y$=a(H(),1);var Mn=a(H(),1);var Ky=a(b(),1),V5=!1,ND=V5?(0,Mn.createContext)(null):null;function Ywe(){let e=(0,Mn.useContext)(ND);(0,Mn.useEffect)(()=>{if(e)return e.registerTab()},[e])}function Qwe(){}var q$=V5?Ywe:Qwe;function Xwe(){let e=(0,Mn.useContext)(ND);(0,Mn.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function Jwe(){}var Z$=V5?Xwe:Jwe;function e5e({children:e}){let t=(0,Mn.useRef)(0),r=(0,Mn.useRef)(0),o=XG(()=>{let l=t.current,c=r.current;if(l!==c)throw new Error(`Tabs: Tab/Panel count mismatch ($l} 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.`)}),n=(0,Mn.useCallback)(()=>(t.current+=1,o(),()=>{t.current-=1,o()}),[o]),i=(0,Mn.useCallback)(()=>(r.current+=1,o(),()=>{r.current-=1,o()}),[o]),s=(0,Mn.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,Ky.jsx)(ND.Provider,{value:s,children:e})}function t5e({children:e}){return(0,Ky.jsx)(Ky.Fragment,{children:e})}var K$=V5?e5e:t5e;var J$=a(b(),1),ID="data-wp-hash";function RD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&o5e(document)),e.__wpStyleRuntime}function r5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$ID}]`))if(r.getAttribute(ID)===t)return!0;return!1}function Q$(e,t,r){if(!e.head)return;let o=RD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(r5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(ID,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function o5e(e){let t=RD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)Q$(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 X$(e,t){let r=RD();r.styles.set(e,t);for(let o of r.documents.keys())Q$(o,e,t)}typeof process>"u",X$("e8e31009f5","._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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var n5e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li"};typeof process>"u",X$("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--focus-color,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(--focus-color,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 a5e={"outset-ring--focus":"af79fb116edb0dd7__outset-ring--focus","outset-ring--focus-visible":"dfcfdc28396e5d98__outset-ring--focus-visible","outset-ring--focus-within":"e5cd9ee879f6403a__outset-ring--focus-within","outset-ring--focus-parent-visible":"_81935a08e952f267__outset-ring--focus-parent-visible","outset-ring--focus-except-active":"abc777e9713fa711__outset-ring--focus-except-active","outset-ring--focus-within-except-active":"_3c9f5ee9fc9c136d__outset-ring--focus-within-except-active"},eq=(0,Y$.forwardRef)(function({className:t,...r},o){return Z$(),(0,J$.jsx)(fl.Panel,{ref:o,className:T(n5e.div,a5e["outset-ring--focus-visible"],t),...r})});var tq=a(H(),1);var F5=a(b(),1),rq=(0,tq.forwardRef)(function({...t},r){return(0,F5.jsx)(FG,{children:(0,F5.jsx)(K$,{children:(0,F5.jsx)(fl.Root,{ref:r,...t})})})});var oq=a(H(),1);var Yy=a(b(),1),LD="data-wp-hash";function AD(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&s5e(document)),e.__wpStyleRuntime}function i5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[$LD}]`))if(r.getAttribute(LD)===t)return!0;return!1}function nq(e,t,r){if(!e.head)return;let o=AD(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(i5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(LD,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function s5e(e){let t=AD();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)nq(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 l5e(e,t){let r=AD();r.styles.set(e,t);for(let o of r.documents.keys())nq(o,e,t)}typeof process>"u",l5e("54ae3f4680",`@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--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)
   9              &[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]
  10                  [role=tab]:is([aria-selected=true])
  11                  &{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}`);var DD={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"},aq=(0,oq.forwardRef)(function({className:t,children:r,...o},n){return q$(),(0,Yy.jsxs)(fl.Tab,{ref:n,className:T(DD.tab,t),...o,children:[(0,Yy.jsx)("span",{className:DD["tab-children"],children:r}),(0,Yy.jsx)(jy,{icon:Ig,className:DD["tab-chevron"]})]})});var $a=a(R(),1),ga=a(D(),1),kq=a(O(),1);var wq=a(xr(),1),Cq=a(H(),1);function th(e,t){var r=0,o,n;t=t||{};function i(){var s=o,l=arguments.length,c,u;e:for(;s;){if(s.args.length!==arguments.length){s=s.next;continue}for(u=0;u<l;u++)if(s.args[u]!==arguments[u]){s=s.next;continue e}return s!==o&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=o,s.prev=null,o.prev=s,o=s),s.val}for(c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return s={args:c,val:e.apply(null,c)},o?(o.prev=s,s.next=o):n=s,r===t.maxSize?(n=n.prev,n.next=null):r++,o=s,s.val}return i.clear=function(){o=null,n=null,r=0},i}var zD=a(H(),1),cc=a(K(),1),mq=a(dr(),1);var kd=function(){return kd=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},kd.apply(this,arguments)};function sq(e){return e.toLowerCase()}var c5e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],u5e=/[^A-Z0-9]+/gi;function O5(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?c5e:r,n=t.stripRegexp,i=n===void 0?u5e:n,s=t.transform,l=s===void 0?sq:s,c=t.delimiter,u=c===void 0?" ":c,d=lq(lq(e,o,"$1\0$2"),i,"\0"),p=0,m=d.length;d.charAt(p)==="\0";)p++;for(;d.charAt(m-1)==="\0";)m--;return d.slice(p,m).split("\0").map(l).join(u)}function lq(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function cq(e){return e.charAt(0).toUpperCase()+e.substr(1)}function d5e(e){return cq(e.toLowerCase())}function uq(e,t){return t===void 0&&(t={}),O5(e,kd({delimiter:" ",transform:d5e},t))}function dq(e,t){return t===void 0&&(t={}),O5(e,kd({delimiter:"."},t))}function rh(e,t){return t===void 0&&(t={}),dq(e,kd({delimiter:"-"},t))}function pq(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),rh(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}var lc={$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 Qy=[{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"}],MD="wp-embed";var H5=a(b(),1),{name:oh}=lc,fq=e=>(0,cc.getBlockVariations)(oh)?.find(({name:t})=>t===e),VD=(e,t=[])=>t.some(r=>e.match(r)),nh=e=>(0,cc.getBlockVariations)(oh)?.find(({patterns:t})=>VD(e,t));function Xy(e){if(!e||(0,mq.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var gq=e=>e&&e.includes('class="wp-embedded-content"'),hq=e=>{let t=e.url||e.thumbnail_url,r=(0,H5.jsx)("p",{children:(0,H5.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,zD.renderToString)(r)},Cd=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:n,providerNameSlug:i,type:s,...l}=o;if(!n||!(0,cc.getBlockType)(oh))return;let c=nh(n),u=i==="wordpress"||s===MD;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,cc.createBlock)(oh,{url:n,...l,...c.attributes});let p=(0,cc.getBlockVariations)(oh)?.find(({name:m})=>m==="wordpress");if(!(!p||!r||!gq(r.html)||u))return(0,cc.createBlock)(oh,{url:n,...p.attributes,...t})},m5e=e=>e?Qy.some(({className:t})=>e.includes(t)):!1,wd=e=>{if(!e)return e;let t=Qy.reduce((o,{className:n})=>(o.push(n),o),["wp-has-aspect-ratio"]),r=e;for(let o of t)r=r.replace(o,"");return r.trim()};function f5e(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function FD(e,t,r=!0){if(!r||f5e(e))return wd(t);let o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;let n=o.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let s=0;s<Qy.length;s++){let l=Qy[s];if(i>=l.ratio)return i-l.ratio>.1?wd(t):T(wd(t),l.className,"wp-has-aspect-ratio")}}return t}function vq(e,t){t((0,cc.createBlock)("core/paragraph",{content:(0,zD.renderToString)((0,H5.jsx)("a",{href:e,children:e}))}))}var g5e=th((e,t,r,o,n=!0)=>{if(!e)return{};let i={},{type:s="rich"}=e,{html:l,provider_name:c}=e,u=pq((c||t).toLowerCase());return gq(l)&&(s=MD),(l||s==="photo")&&(i.type=s,i.providerNameSlug=u),m5e(r)||(i.className=FD(l,r,o&&n)),i}),yq=(e,t,r,o)=>{let{allowResponsive:n,className:i}=e;return{...e,...g5e(t,r,i,o,n)}};var Rm=a(H(),1),bq=a(he(),1),Jy=a(D(),1),fu=a(R(),1),_q=a(V(),1);var j5=a(K(),1),Sd=a(b(),1);function $o({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n,placeholder:i=(0,Jy.__)("Add caption"),label:s=(0,Jy.__)("Caption text"),showToolbarButton:l=!0,excludeElementClassName:c,className:u,readOnly:d,tagName:p="figcaption",addLabel:m=(0,Jy.__)("Add caption"),removeLabel:f=(0,Jy.__)("Remove caption"),icon:g=YP,...h}){let v=t[e],x=(0,bq.usePrevious)(v),_=fu.RichText.isEmpty(v),k=fu.RichText.isEmpty(x),[y,w]=(0,Rm.useState)(!_);(0,Rm.useEffect)(()=>{!_&&k&&w(!0)},[_,k]),(0,Rm.useEffect)(()=>{!o&&_&&w(!1)},[o,_]);let C=(0,Rm.useCallback)(S=>{S&&_&&S.focus()},[_]);return(0,Sd.jsxs)(Sd.Fragment,{children:[l&&(0,Sd.jsx)(fu.BlockControls,{group:"block",children:(0,Sd.jsx)(_q.ToolbarButton,{onClick:()=>{w(!y),y&&v&&r({[e]:void 0})},icon:g,isPressed:y,label:y?f:m})}),y&&(!fu.RichText.isEmpty(v)||o)&&(0,Sd.jsx)(fu.RichText,{identifier:e,tagName:p,className:T(u,c?"":(0,fu.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":s,placeholder:i,value:v,onChange:S=>r({[e]:S}),inlineToolbar:!0,__unstableOnSplitAtEnd:n?()=>n((0,j5.createBlock)((0,j5.getDefaultBlockName)())):void 0,readOnly:d,...h})]})}var Nr=a(b(),1),OD=["audio"];function h5e({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:n,insertBlocksAfter:i}){let{id:s,autoplay:l,loop:c,preload:u,src:d}=e,[p,m]=(0,Cq.useState)(e.blob),g=(0,$a.useBlockEditingMode)()==="default";tc({url:p,allowedTypes:OD,onChange:k,onError:_});function h(S){return P=>{r({[S]:P})}}function v(S){if(S!==d){let P=Cd({attributes:{url:S}});if(P!==void 0&&o){o(P);return}r({src:S,id:void 0,blob:void 0}),m()}}let{createErrorNotice:x}=(0,kq.useDispatch)(wq.store);function _(S){x(S,{type:"snackbar"})}function k(S){if(!S||!S.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),m();return}if((0,xq.isBlobURL)(S.url)){m(S.url);return}r({blob:void 0,src:S.url,id:S.id,caption:S.caption}),m()}let y=T(t,{"is-transient":!!p}),w=(0,$a.useBlockProps)({className:y}),C=X();return!d&&!p?(0,Nr.jsx)("div",{...w,children:(0,Nr.jsx)($a.MediaPlaceholder,{icon:(0,Nr.jsx)($a.BlockIcon,{icon:Jp}),onSelect:k,onSelectURL:v,accept:"audio/*",allowedTypes:OD,value:e,onError:_})}):(0,Nr.jsxs)(Nr.Fragment,{children:[n&&(0,Nr.jsx)($a.BlockControls,{group:"other",children:(0,Nr.jsx)($a.MediaReplaceFlow,{mediaId:s,mediaURL:d,allowedTypes:OD,accept:"audio/*",onSelect:k,onSelectURL:v,onError:_,onReset:()=>k(void 0),variant:"toolbar"})}),(0,Nr.jsx)($a.InspectorControls,{children:(0,Nr.jsxs)(Si.__experimentalToolsPanel,{label:(0,ga.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:C,children:[(0,Nr.jsx)(Hy,{className:"wp-block-audio__autoplay-help-text",children:(0,ga.__)("Most browsers block audio until a visitor interacts with the page, so autoplay often won\u2019t work, especially on mobile. Unexpected sound can also be disruptive for screen reader users.")}),(0,Nr.jsx)(Si.__experimentalToolsPanelItem,{label:(0,ga.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({autoplay:!1}),children:(0,Nr.jsx)(Si.ToggleControl,{label:(0,ga.__)("Autoplay"),onChange:h("autoplay"),checked:!!l})}),(0,Nr.jsx)(Si.__experimentalToolsPanelItem,{label:(0,ga.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Nr.jsx)(Si.ToggleControl,{label:(0,ga.__)("Loop"),onChange:h("loop"),checked:!!c})}),(0,Nr.jsx)(Si.__experimentalToolsPanelItem,{label:(0,ga.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Nr.jsx)(Si.SelectControl,{label:(0,ga._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:S=>r({preload:S||void 0}),options:[{value:"",label:(0,ga.__)("Browser default")},{value:"auto",label:(0,ga.__)("Auto")},{value:"metadata",label:(0,ga.__)("Metadata")},{value:"none",label:(0,ga._x)("None","Preload value")}]})})]})}),(0,Nr.jsxs)("figure",{...w,children:[(0,Nr.jsx)("audio",{controls:"controls",inert:n?void 0:"true",src:d??p}),!!p&&(0,Nr.jsx)(Si.Spinner,{}),(0,Nr.jsx)($o,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,ga.__)("Audio caption text"),showToolbarButton:n&&g})]})]})}var Sq=h5e;var U5={$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 Dm=a(R(),1),eb=a(b(),1);function Tq({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return i&&(0,eb.jsxs)("figure",{...Dm.useBlockProps.save(),children:[(0,eb.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!Dm.RichText.isEmpty(r)&&(0,eb.jsx)(Dm.RichText.Content,{tagName:"figcaption",value:r,className:(0,Dm.__experimentalGetElementClassName)("caption")})]})}var Pq=a(Or(),1),Eq=a(K(),1),y5e={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,Eq.createBlock)("core/audio",{blob:(0,Pq.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:r,ogg:o,wav:n,wma:i}})=>e||t||r||o||n||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}}}]},Bq=y5e;var Nq=a(zR(),1),{lock:Iq,unlock:q}=(0,Nq.__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{fieldsKey:b5e,formKey:_5e}=q(Rq.privateApis),{name:Dq}=U5,W5={icon:Jp,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Bq,deprecated:XU,edit:Sq,save:Tq};window.__experimentalContentOnlyInspectorFields&&(W5[b5e]=[{id:"audio",label:(0,HD.__)("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,HD.__)("Caption"),type:"text",Edit:"rich-text"}],W5[_5e]={fields:["audio","caption"]});var x5e=()=>M({name:Dq,metadata:U5,settings:W5});var UD={};J(UD,{init:()=>w5e,metadata:()=>G5,name:()=>Vq,settings:()=>Fq});var G5={$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 Jr=a(D(),1),tb=a(R(),1),un=a(V(),1),Lq=a(O(),1),q5=a(ne(),1),gu=a(H(),1),Aq=a(sd(),1),Mq=a(he(),1);var Dt=a(b(),1),$5="/";function zq({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:n,templateSlug:i}}){let{separator:s,showHomeItem:l,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:d}=e,{post:p,isPostTypeHierarchical:m,postTypeHasTaxonomies:f,hasTermsAssigned:g,isLoading:h}=(0,Lq.useSelect)(A=>{if(!n)return{};let U=A(q5.store).getEntityRecord("postType",n,o),$=A(q5.store).getPostType(n),W=$&&$.taxonomies.length,G;return W&&(G=A(q5.store).getTaxonomies({type:n,per_page:-1})),{post:U,isPostTypeHierarchical:$?.hierarchical,postTypeHasTaxonomies:W,hasTermsAssigned:U&&(G||[]).filter(({visibility:F})=>F?.publicly_queryable).some(F=>!!U[F.rest_base]?.length),isLoading:o&&!U||!$||W&&!G}},[n,o]),[v,x]=(0,gu.useState)(0);(0,gu.useEffect)(()=>{x(A=>A+1)},[p]);let _=X(),{content:k,status:y,error:w}=(0,Aq.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:v}}),C=(0,gu.useRef)("");(0,gu.useEffect)(()=>{y==="success"&&(C.current=k)},[k,y]);let[S,P]=(0,gu.useState)(!1);(0,gu.useEffect)(()=>{if(y!=="loading")return;let A=setTimeout(()=>{P(!0)},400);return()=>{clearTimeout(A),P(!1)}},[y]);let N=(0,Mq.useDisabled)(),I=(0,tb.useBlockProps)({ref:N});if(h)return(0,Dt.jsx)("div",{...I,children:(0,Dt.jsx)(un.Spinner,{})});let B;!m&&!p?.parent?B=!0:f?B=u:B=!1;let E=null,L=!o||!n||i&&!n||!B&&!m||B&&!g;if(L){let A=[];l&&A.push((0,Jr.__)("Home")),i&&!o?A.push((0,Jr.__)("Page")):B?A.push((0,Jr.__)("Category")):A.push((0,Jr.__)("Ancestor"),(0,Jr.__)("Parent")),E=(0,Dt.jsx)("nav",{...I,style:{"--separator":`"${s.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...I.style},children:(0,Dt.jsxs)("ol",{children:[A.map((U,$)=>(0,Dt.jsx)("li",{children:(0,Dt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${$}`,children:U})},$)),c&&(0,Dt.jsx)("li",{children:(0,Dt.jsx)("span",{"aria-current":"page",children:(0,Jr.__)("Current")})})]})})}return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(tb.InspectorControls,{children:(0,Dt.jsxs)(un.__experimentalToolsPanel,{label:(0,Jr.__)("Settings"),resetAll:()=>{t({separator:$5,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,Dt.jsx)(un.__experimentalToolsPanelItem,{label:(0,Jr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>t({showHomeItem:!0}),children:(0,Dt.jsx)(un.ToggleControl,{label:(0,Jr.__)("Show home breadcrumb"),onChange:A=>t({showHomeItem:A}),checked:l})}),(0,Dt.jsx)(un.__experimentalToolsPanelItem,{label:(0,Jr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Dt.jsx)(un.ToggleControl,{label:(0,Jr.__)("Show current breadcrumb"),onChange:A=>t({showCurrentItem:A}),checked:c})}),(0,Dt.jsx)(un.__experimentalToolsPanelItem,{label:(0,Jr.__)("Separator"),isShownByDefault:!0,hasValue:()=>s!==$5,onDeselect:()=>t({separator:$5}),children:(0,Dt.jsx)(un.TextControl,{autoComplete:"off",label:(0,Jr.__)("Separator"),value:s,onChange:A=>t({separator:A}),onBlur:()=>{s||t({separator:$5})}})})]})}),(0,Dt.jsxs)(tb.InspectorControls,{group:"advanced",children:[(0,Dt.jsx)(un.CheckboxControl,{label:(0,Jr.__)("Show on homepage"),checked:d,onChange:A=>t({showOnHomePage:A}),help:(0,Jr.__)("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,Dt.jsx)(un.CheckboxControl,{label:(0,Jr.__)("Prefer taxonomy terms"),checked:u,onChange:A=>t({prefersTaxonomy:A}),help:(0,Jr.__)("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.")})]}),y==="loading"&&!L&&(C.current?(0,Dt.jsx)(To,{wrapperProps:{...I,style:{...I.style,opacity:S?.3:1}},html:C.current}):(0,Dt.jsx)("div",{...I,children:(0,Dt.jsx)(un.Spinner,{})})),y==="error"&&(0,Dt.jsx)("div",{...I,children:(0,Dt.jsx)("p",{children:(0,Jr.sprintf)((0,Jr.__)("Error: %s"),w)})}),L&&E,!L&&y==="success"&&(0,Dt.jsx)(To,{wrapperProps:I,html:k})]})}var{name:Vq}=G5,Fq={icon:UP,example:{},edit:zq},w5e=()=>M({name:Vq,metadata:G5,settings:Fq});var ZD={};J(ZD,{init:()=>O5e,metadata:()=>Q5,name:()=>eZ,settings:()=>J5});var X5=a(D(),1);var Jq=a(K(),1);var we=a(R(),1),gl=a(he(),1);var Oq=a(R(),1);var{cleanEmptyObject:C5e}=q(Oq.privateApis);function er(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:C5e({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function ke(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var qt=a(b(),1),ws=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},ah=e=>{let{borderRadius:t,...r}=e,o=[t,r.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return o?{...r,style:{...r.style,border:{...r.style?.border,radius:`${o}px`}}}:r};function S5e(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:T(r.className,`align${e.align}`)}}var GD=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:n,...i}=e;return{...i,style:t}},WD=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 GD(o)},hu={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"}},T5e={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:n,linkTarget:i,rel:s,style:l,text:c,title:u,url:d,width:p}=e,m=r||"a",f=m==="button",g=o||"button",h=(0,we.__experimentalGetBorderClassesAndStyles)(e),v=(0,we.__experimentalGetColorClassesAndStyles)(e),x=(0,we.__experimentalGetSpacingClassesAndStyles)(e),_=(0,we.__experimentalGetShadowClassesAndStyles)(e),k=(0,we.getTypographyClassesAndStyles)(e),y=T("wp-block-button__link",v.className,h.className,k.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":n||l?.typography?.fontSize},(0,we.__experimentalGetElementClassName)("button")),w={...h.style,...v.style,...x.style,..._.style,...k.style,writingMode:void 0},C=T(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:C}),children:(0,qt.jsx)(we.RichText.Content,{tagName:m,type:f?g:null,className:y,href:f?null:d,title:u,style:w,value:c,target:f?null:i,rel:f?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:ws},P5e={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:n,fontSize:i,linkTarget:s,rel:l,style:c,text:u,title:d,url:p,width:m}=e,f=r||"a",g=f==="button",h=o||"button",v=(0,we.__experimentalGetBorderClassesAndStyles)(e),x=(0,we.__experimentalGetColorClassesAndStyles)(e),_=(0,we.__experimentalGetSpacingClassesAndStyles)(e),k=(0,we.__experimentalGetShadowClassesAndStyles)(e),y=(0,we.getTypographyClassesAndStyles)(e),w=T("wp-block-button__link",x.className,v.className,y.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,we.__experimentalGetElementClassName)("button")),C={...v.style,...x.style,..._.style,...k.style,...y.style,writingMode:void 0},S=T(t,{[`has-custom-width wp-block-button__width-${m}`]:m});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:S}),children:(0,qt.jsx)(we.RichText.Content,{tagName:f,type:g?h:null,className:w,href:g?null:p,title:d,style:C,value:u,target:g?null:s,rel:g?null:l})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,gl.compose)(ws,ke)},E5e={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:n,fontSize:i,linkTarget:s,rel:l,style:c,text:u,title:d,url:p,width:m}=e,f=r||"a",g=f==="button",h=o||"button",v=(0,we.__experimentalGetBorderClassesAndStyles)(e),x=(0,we.__experimentalGetColorClassesAndStyles)(e),_=(0,we.__experimentalGetSpacingClassesAndStyles)(e),k=(0,we.__experimentalGetShadowClassesAndStyles)(e),y=T("wp-block-button__link",x.className,v.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,we.__experimentalGetElementClassName)("button")),w={...v.style,...x.style,..._.style,...k.style},C=T(t,{[`has-custom-width wp-block-button__width-${m}`]:m,"has-custom-font-size":i||c?.typography?.fontSize});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:C}),children:(0,qt.jsx)(we.RichText.Content,{tagName:f,type:g?h:null,className:y,href:g?null:p,title:d,style:w,value:u,target:g?null:s,rel:g?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:ws},B5e={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:n,style:i,text:s,title:l,url:c,width:u}=e;if(!s)return null;let d=(0,we.__experimentalGetBorderClassesAndStyles)(e),p=(0,we.__experimentalGetColorClassesAndStyles)(e),m=(0,we.__experimentalGetSpacingClassesAndStyles)(e),f=T("wp-block-button__link",p.className,d.className,{"no-border-radius":i?.border?.radius===0}),g={...d.style,...p.style,...m.style},h=T(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:h}),children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:f,href:c,title:l,style:g,value:s,target:o,rel:n})})}},N5e={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:n,style:i,text:s,title:l,url:c,width:u}=e;if(!s)return null;let d=(0,we.__experimentalGetBorderClassesAndStyles)(e),p=(0,we.__experimentalGetColorClassesAndStyles)(e),m=(0,we.__experimentalGetSpacingClassesAndStyles)(e),f=T("wp-block-button__link",p.className,d.className,{"no-border-radius":i?.border?.radius===0}),g={...d.style,...p.style,...m.style},h=T(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:h}),children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:f,href:c,title:l,style:g,value:s,target:o,rel:n})})},migrate:(0,gl.compose)(ws,er),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},I5e=[T5e,P5e,E5e,B5e,N5e,{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:{...hu,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:n,style:i,text:s,title:l,url:c,width:u}=e;if(!s)return null;let d=i?.border?.radius,p=(0,we.__experimentalGetColorClassesAndStyles)(e),m=T("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:d||void 0,...p.style},g=T(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:g}),children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:m,href:c,title:l,style:f,value:s,target:o,rel:n})})},migrate:(0,gl.compose)(ws,er,ah)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...hu,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:n,text:i,title:s,url:l,width:c}=e,u=(0,we.__experimentalGetColorClassesAndStyles)(e),d=T("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},m=T(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:m}),children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:d,href:l,title:s,style:p,value:i,target:o,rel:n})})},migrate:(0,gl.compose)(ws,er,ah)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...hu,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:n,text:i,title:s,url:l,width:c}=e,u=(0,we.__experimentalGetColorClassesAndStyles)(e),d=T("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},m=T(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,qt.jsx)("div",{...we.useBlockProps.save({className:m}),children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:d,href:l,title:s,style:p,value:i,target:o,rel:n})})},migrate:(0,gl.compose)(ws,er,ah)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...hu,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:n,title:i,url:s}=e,l=T("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:l,href:s,title:i,style:c,value:n,target:r,rel:o})},migrate:(0,gl.compose)(ws,ah)},{supports:{align:!0,alignWide:!1},attributes:{...hu,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,gl.compose)(ws,ah,GD,S5e),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:n,customGradient:i,linkTarget:s,gradient:l,rel:c,text:u,textColor:d,title:p,url:m}=e,f=(0,we.getColorClassName)("color",d),g=!i&&(0,we.getColorClassName)("background-color",t),h=(0,we.__experimentalGetGradientClass)(l),v=T("wp-block-button__link",{"has-text-color":d||n,[f]:f,"has-background":t||o||i||l,[g]:g,"no-border-radius":r===0,[h]:h}),x={background:i||void 0,backgroundColor:g||i||l?void 0:o,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,qt.jsx)("div",{children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:v,href:m,title:p,style:x,value:u,target:s,rel:c})})}},{attributes:{...hu,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()),ah(GD({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:n,rel:i,text:s,textColor:l,title:c,url:u}=e,d=(0,we.getColorClassName)("color",l),p=(0,we.getColorClassName)("background-color",t),m=T("wp-block-button__link",{"has-text-color":l||o,[d]:d,"has-background":t||r,[p]:p}),f={backgroundColor:p?void 0:r,color:d?void 0:o};return(0,qt.jsx)("div",{children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:m,href:u,title:c,style:f,value:s,target:n,rel:i})})}},{attributes:{...hu,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,gl.compose)(ws,WD),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l}=e,c=(0,we.getColorClassName)("color",i),u=(0,we.getColorClassName)("background-color",n),d=T("wp-block-button__link",{"has-text-color":i||l,[c]:c,"has-background":n||s,[u]:u}),p={backgroundColor:u?void 0:s,color:c?void 0:l};return(0,qt.jsx)("div",{children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:d,href:t,title:o,style:p,value:r})})}},{attributes:{...hu,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:s}=e,l={backgroundColor:i,color:s};return(0,qt.jsx)("div",{className:`align${n}`,children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:l,value:r})})},migrate:(0,gl.compose)(ws,WD)},{attributes:{...hu,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:r,title:o,align:n,color:i,textColor:s}=e;return(0,qt.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,qt.jsx)(we.RichText.Content,{tagName:"a",href:t,title:o,style:{color:s},value:r})})},migrate:(0,gl.compose)(ws,WD)}],Hq=I5e;var Cs=a(D(),1),Vn=a(H(),1),sh=a(V(),1),mt=a(R(),1),Td=a(uc(),1);var vu=a(K(),1),Am=a(he(),1),ob=a(O(),1);var Z5="noopener",K5="_blank",ih="nofollow";var Uq=a(dr(),1);function Wq({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let n,i=e;if(r)n=K5,i=i?.includes(Z5)?i:i+` ${Z5}`;else{let s=new RegExp(`\\b${Z5}\\s*`,"g");i=i?.replace(s,"").trim()}if(o)i=i?.includes(ih)?i:(i+` ${ih}`).trim();else{let s=new RegExp(`\\b${ih}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,Uq.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function rb(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var $q=a(he(),1),Y5=a(H(),1),qq=a(Lm(),1),Zq=a(O(),1),Kq=a(R(),1);function Et(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,Zq.useDispatch)(Kq.store),s=(0,$q.useEvent)(()=>{(0,qq.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),l=(0,Y5.useRef)();(0,Y5.useEffect)(()=>{n!==l.current&&(l.current=n,s())},[n,s])}function $D(e){return typeof e=="string"&&e.endsWith("%")}function Yq(e){if(!e)return{};if($D(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 zn=a(b(),1),{HTMLElementControl:R5e}=q(mt.privateApis),{subscribeDelegatedListener:D5e}=q(Am.privateApis),L5e=[...mt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,Cs.__)("Mark as nofollow")}];function A5e(e){let{replaceBlocks:t,selectionChange:r}=(0,ob.useDispatch)(mt.store),{getBlock:o,getBlockAttributes:n,getBlockRootClientId:i,getBlockIndex:s}=(0,ob.useSelect)(mt.store);return(0,Am.useRefEffect)(l=>{function c(u){if(u.defaultPrevented||u.keyCode!==Td.ENTER)return;let{text:d}=n(e)??{};if(d?.length)return;u.preventDefault();let p=o(i(e)),m=s(e),f=(0,vu.cloneBlock)({...p,innerBlocks:p.innerBlocks.slice(0,m)}),g=(0,vu.createBlock)((0,vu.getDefaultBlockName)()),h=p.innerBlocks.slice(m+1),v=h.length?[(0,vu.cloneBlock)({...p,innerBlocks:h})]:[];t(p.clientId,[f,g,...v],1),r(g.clientId)}return D5e(l,"keydown",c,!0)},[])}function M5e(e){let{attributes:t,setAttributes:r,className:o,isSelected:n,onReplace:i,mergeBlocks:s,clientId:l,context:c}=e,{tagName:u,linkTarget:d,placeholder:p,rel:m,style:f,text:g,url:h,metadata:v}=t,x=f?.dimensions?.width;Et(e);let _=u||"a";function k(Ne){Td.isKeyboardEvent.primary(Ne,"k")?le(Ne):Td.isKeyboardEvent.primaryShift(Ne,"k")&&(oe(),E.current?.focus())}let[y,w]=(0,Vn.useState)(null),C=(0,mt.__experimentalUseBorderProps)(t),S=(0,mt.__experimentalUseColorProps)(t),P=(0,mt.__experimentalGetSpacingClassesAndStyles)(t),N=(0,mt.__experimentalGetShadowClassesAndStyles)(t),I=(0,mt.__experimentalGetDimensionsClassesAndStyles)(t),B=(0,Vn.useRef)(),E=(0,Vn.useRef)(),L=(0,mt.useBlockProps)({ref:(0,Am.useMergeRefs)([w,B]),onKeyDown:k}),A=(0,mt.useBlockEditingMode)(),[U,$]=(0,Vn.useState)(!1),W=!!h,G=d===K5,F=!!m?.includes(ih),Z=_==="a",{createPageEntity:j,userCanCreatePages:Y,lockUrlControls:ee=!1}=(0,ob.useSelect)(Ne=>{if(!n)return{};let ie=Ne(mt.store).getSettings(),Ee=(0,vu.getBlockBindingsSource)(v?.bindings?.url?.source);return{createPageEntity:ie.__experimentalCreatePageEntity,userCanCreatePages:ie.__experimentalUserCanCreatePages,lockUrlControls:!!v?.bindings?.url&&!Ee?.canUserEditValue?.({select:Ne,context:c,args:v?.bindings?.url?.args})}},[c,n,v?.bindings?.url]);async function te(Ne){let ie=await j({title:Ne,status:"draft"});return{id:ie.id,type:ie.type,title:ie.title.rendered,url:ie.link,kind:"post-type"}}function Q(Ne){return(0,Vn.createInterpolateElement)((0,Cs.sprintf)((0,Cs.__)("Create page: <mark>%s</mark>"),Ne),{mark:(0,zn.jsx)("mark",{})})}function le(Ne){Ne.preventDefault(),$(!0)}function oe(){r({url:void 0,linkTarget:void 0,rel:void 0}),$(!1)}(0,Vn.useEffect)(()=>{n||$(!1)},[n]);let ce=(0,Vn.useMemo)(()=>({url:h,opensInNewTab:G,nofollow:F}),[h,G,F]),pe=A5e(l),be=(0,Am.useMergeRefs)([pe,E]),[Te,ae,se]=(0,mt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),ue=(0,Vn.useMemo)(()=>se?[...se?.custom??[],...se?.theme??[],...se?.default??[]]:[],[se]),Oe=(0,mt.getTypographyClassesAndStyles)(t,{typography:{fluid:Te},layout:{wideSize:ae?.wideSize}}),Pe=(0,Vn.useMemo)(()=>{if(!x)return;let Ne="var:preset|dimension|";if(x.startsWith(Ne)){let ie=x.slice(Ne.length);return ue?.find(ve=>ve.slug===ie)?.size??x}return x},[x,ue]),et=A==="default"||Z&&!ee,me=T(L.className,Yq(Pe)),ct=(0,Vn.useMemo)(()=>x?$D(Pe)?{"--wp--block-button--width":parseFloat(Pe)}:I.style:{},[x,Pe,I.style]);return(0,zn.jsxs)(zn.Fragment,{children:[(0,zn.jsx)("div",{...L,className:me,style:{...L.style,...ct},children:(0,zn.jsx)(mt.RichText,{ref:be,"aria-label":(0,Cs.__)("Button text"),placeholder:p||(0,Cs.__)("Add text\u2026"),value:g,onChange:Ne=>r({text:rb(Ne)}),withoutInteractiveFormatting:!0,className:T(o,"wp-block-button__link",S.className,C.className,Oe.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":L.style.fontSize},(0,mt.__experimentalGetElementClassName)("button")),style:{...C.style,...S.style,...P.style,...N.style,...Oe.style,writingMode:void 0},onReplace:i,onMerge:s,identifier:"text"})}),et&&(0,zn.jsx)(mt.BlockControls,{group:"block",children:Z&&!ee&&(0,zn.jsx)(sh.ToolbarButton,{name:"link",icon:W?Ev:wi,title:W?(0,Cs.__)("Unlink"):(0,Cs.__)("Link"),shortcut:W?Td.displayShortcut.primaryShift("k"):Td.displayShortcut.primary("k"),onClick:W?oe:le,isActive:W})}),Z&&n&&(U||W)&&!ee&&(0,zn.jsx)(sh.Popover,{placement:"bottom",onClose:()=>{$(!1),E.current?.focus()},anchor:y,focusOnMount:U?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,zn.jsx)(mt.LinkControl,{value:ce,onChange:({url:Ne,opensInNewTab:ie,nofollow:Ee})=>r(Wq({rel:m,url:Ne,opensInNewTab:ie,nofollow:Ee})),onRemove:()=>{oe(),E.current?.focus()},forceIsEditingLink:U,settings:L5e,createSuggestion:j&&te,withCreateSuggestion:Y,createSuggestionButtonText:Q})}),(0,zn.jsxs)(mt.InspectorControls,{group:"advanced",children:[(0,zn.jsx)(R5e,{tagName:u,onChange:Ne=>r({tagName:Ne}),options:[{label:(0,Cs.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),Z&&(0,zn.jsx)(sh.TextControl,{label:(0,Cs.__)("Link relation"),help:(0,Vn.createInterpolateElement)((0,Cs.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,zn.jsx)(mu,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:Ne=>r({rel:Ne})})]})]})}var Qq=M5e;var Q5={$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 Fn=a(R(),1),qD=a(b(),1);function Xq({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:n,rel:i,style:s,text:l,title:c,url:u}=e,d=t||"a",p=d==="button",m=r||"button",f=(0,Fn.__experimentalGetBorderClassesAndStyles)(e),g=(0,Fn.__experimentalGetColorClassesAndStyles)(e),h=(0,Fn.__experimentalGetSpacingClassesAndStyles)(e),v=(0,Fn.__experimentalGetShadowClassesAndStyles)(e),x=(0,Fn.getTypographyClassesAndStyles)(e),_=T("wp-block-button__link",g.className,f.className,x.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":o||s?.typography?.fontSize},(0,Fn.__experimentalGetElementClassName)("button")),k={...f.style,...g.style,...h.style,...v.style,...x.style,writingMode:void 0};return(0,qD.jsx)("div",{...Fn.useBlockProps.save(),children:(0,qD.jsx)(Fn.RichText.Content,{tagName:d,type:p?m:null,className:_,href:p?null:u,title:c,style:k,value:l,target:p?null:n,rel:p?null:i})})}var{fieldsKey:V5e,formKey:F5e}=q(Jq.privateApis),{name:eZ}=Q5,J5={icon:GP,example:{attributes:{className:"is-style-fill",text:(0,X5.__)("Call to action")}},edit:Qq,save:Xq,deprecated:Hq,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t}),__experimentalLabel(e,{context:t}){let{text:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(J5[V5e]=[{id:"text",label:(0,X5.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,X5.__)("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})}],J5[F5e]={fields:["text","link"]});var O5e=()=>M({name:eZ,metadata:Q5,settings:J5});var QD={};J(QD,{init:()=>q5e,metadata:()=>t3,name:()=>cZ,settings:()=>uZ});var YD=a(D(),1);var ab=a(R(),1),nb=a(b(),1),tZ=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},H5e=[{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:tZ,save({attributes:{contentJustification:e,orientation:t}}){return(0,nb.jsx)("div",{...ab.useBlockProps.save({className:T({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,nb.jsx)(ab.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,nb.jsx)("div",{children:(0,nb.jsx)(ab.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return tZ({...e,align:void 0,contentJustification:e.align})}}],rZ=H5e;var sb=a(K(),1),KD=a(hl(),1);var ib=a(K(),1);function yu(e,t,r=null){if(!e)return;let o=(0,ib.getBlockType)(t);if(!o)return;let n={};if((0,ib.hasBlockSupport)(o,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,ib.hasBlockSupport)(o,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let s=Object.entries(e.metadata).reduce((l,[c,u])=>(i.includes(c)&&(l[c]=c==="bindings"?r(u):u),l),{});Object.keys(s).length>0&&(n.metadata=s)}}if(Object.keys(n).length!==0)return n}var j5e={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,sb.createBlock)("core/buttons",{},e.map(t=>(0,sb.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,sb.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,KD.__unstableCreateElement)(document,r),n=o.innerText||"",s=o.querySelector("a")?.getAttribute("href");return(0,sb.createBlock)("core/button",{...t,...yu(t,"core/button",({content:l})=>({text:l})),text:n,url:s})})),isMatch:e=>e.every(t=>{let r=(0,KD.__unstableCreateElement)(document,t.content),o=r.innerText||"",n=r.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},nZ=j5e;var e3=a(R(),1),aZ=a(b(),1),U5e={name:"core/button"};function W5e({attributes:e,className:t}){let{fontSize:r,layout:o,style:n}=e,i=(0,e3.useBlockProps)({className:T(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),s=(0,e3.useInnerBlocksProps)(i,{defaultBlock:U5e,orientation:o?.orientation??"horizontal"});return(0,aZ.jsx)("div",{...s})}var iZ=W5e;var t3={$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 r3=a(R(),1),sZ=a(b(),1);function lZ({attributes:e,className:t}){let{fontSize:r,style:o}=e,n=r3.useBlockProps.save({className:T(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=r3.useInnerBlocksProps.save(n);return(0,sZ.jsx)("div",{...i})}var{name:cZ}=t3,$5e=[["core/button"]],uZ={icon:qP,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,YD.__)("Find out more")}},{name:"core/button",attributes:{text:(0,YD.__)("Contact us")}}]},deprecated:rZ,transforms:nZ,template:$5e,templateInsertUpdatesSelection:!0,edit:iZ,save:lZ},q5e=()=>M({name:cZ,metadata:t3,settings:uZ});var JD={};J(JD,{init:()=>Q5e,metadata:()=>o3,name:()=>yZ,settings:()=>bZ});var o3={$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 lb=a(V(),1),dZ=a(O(),1),pZ=a(sd(),1),mZ=a(R(),1),fZ=a(ne(),1),lh=a(D(),1),gZ=a(he(),1);var Ti=a(b(),1),K5e=th(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function hZ({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:n}=(0,dZ.useSelect)(d=>{let{getEntityRecords:p,hasFinishedResolution:m}=d(fZ.store),f={status:"publish",per_page:1},g=p("postType","post",f),h=m("getEntityRecords",["postType","post",f]),v,x=d("core/editor");return x&&x.getEditedPostAttribute("type")==="post"&&(v=x.getEditedPostAttribute("date")),{date:v,hasPostsResolved:h,hasPosts:h&&g?.length===1}},[]),{content:i,status:s,error:l}=(0,pZ.useServerSideRender)({attributes:{...e,...K5e(r)},block:t}),c=(0,gZ.useDisabled)(),u=(0,mZ.useBlockProps)({ref:c});return o?(0,Ti.jsxs)(Ti.Fragment,{children:[s==="loading"&&(0,Ti.jsx)("div",{...u,children:(0,Ti.jsx)(lb.Spinner,{})}),s==="error"&&(0,Ti.jsx)("div",{...u,children:(0,Ti.jsx)("p",{children:(0,lh.sprintf)((0,lh.__)("Error: %s"),l)})}),s==="success"&&(0,Ti.jsx)(To,{wrapperProps:u,html:i})]}):(0,Ti.jsx)("div",{...u,children:(0,Ti.jsx)(lb.Placeholder,{icon:cv,label:(0,lh.__)("Calendar"),children:n?(0,lh.__)("No published posts found."):(0,Ti.jsx)(lb.Spinner,{})})})}var XD=a(K(),1),Y5e={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,XD.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,XD.createBlock)("core/archives")}]},vZ=Y5e;var{name:yZ}=o3,bZ={icon:cv,example:{},edit:hZ,transforms:vZ},Q5e=()=>M({name:yZ,metadata:o3,settings:bZ});var rL={};J(rL,{init:()=>e3e,metadata:()=>n3,name:()=>SZ,settings:()=>TZ});var n3={$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 Rr=a(V(),1),_Z=a(he(),1),ch=a(R(),1),xZ=a(Wo(),1),Ir=a(D(),1);var eL=a(ne(),1),kZ=a(O(),1);var wZ=a(xr(),1);var xt=a(b(),1);function tL({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:n,label:i,showLabel:s,taxonomy:l},setAttributes:c,className:u,clientId:d}){let p=(0,_Z.useInstanceId)(tL,"blocks-category-select"),{records:m,isResolvingTaxonomies:f}=(0,eL.useEntityRecords)("root","taxonomy",{per_page:-1}),g=m?.filter(W=>W.visibility.public),h=g?.find(W=>W.slug===l),v=!f&&h?.hierarchical,x={per_page:-1,hide_empty:!n,context:"view"};v&&o&&(x.parent=0);let{records:_,isResolving:k}=(0,eL.useEntityRecords)("taxonomy",l,x),{createWarningNotice:y}=(0,kZ.useDispatch)(wZ.store),w=W=>{W.preventDefault(),y((0,Ir.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${d}`,type:"snackbar"})},C=W=>_?.length?W===null?_:_.filter(({parent:G})=>G===W):[],S=W=>G=>c({[W]:G}),P=W=>W?(0,xZ.decodeEntities)(W).trim():(0,Ir.__)("(Untitled)"),N=()=>C(v&&t?0:null).map(F=>I(F)),I=W=>{let G=C(W.id),{id:F,link:Z,count:j,name:Y}=W;return(0,xt.jsxs)("li",{className:`cat-item cat-item-${F}`,children:[(0,xt.jsx)("a",{href:Z,onClick:w,children:P(Y)}),r&&` (${j})`,v&&t&&!!G.length&&(0,xt.jsx)("ul",{className:"children",children:G.map(ee=>I(ee))})]},F)},B=()=>{let G=C(v&&t?0:null);return(0,xt.jsxs)(xt.Fragment,{children:[s?(0,xt.jsx)(ch.RichText,{className:"wp-block-categories__label","aria-label":(0,Ir.__)("Label text"),placeholder:h?.name,withoutInteractiveFormatting:!0,value:i,onChange:F=>c({label:F})}):(0,xt.jsx)(cn,{render:(0,xt.jsx)("label",{htmlFor:p}),children:i||h?.name}),(0,xt.jsxs)("select",{id:p,children:[(0,xt.jsx)("option",{children:(0,Ir.sprintf)((0,Ir.__)("Select %s"),h?.labels?.singular_name)}),G.map(F=>E(F,0))]})]})},E=(W,G)=>{let{id:F,count:Z,name:j}=W,Y=C(F);return[(0,xt.jsxs)("option",{className:`level-${G}`,children:[Array.from({length:G*3}).map(()=>"\xA0"),P(j),r&&` (${Z})`]},F),v&&t&&!!Y.length&&Y.map(ee=>E(ee,G+1))]},L=_?.length&&!e&&!k?"ul":"div",A=T(u,`wp-block-categories-taxonomy-${l}`,{"wp-block-categories-list":!!_?.length&&!e&&!k,"wp-block-categories-dropdown":!!_?.length&&e&&!k}),U=(0,ch.useBlockProps)({className:A}),$=X();return(0,xt.jsxs)(L,{...U,children:[(0,xt.jsx)(ch.InspectorControls,{children:(0,xt.jsxs)(Rr.__experimentalToolsPanel,{label:(0,Ir.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:$,children:[Array.isArray(g)&&(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>l!=="category",label:(0,Ir.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,xt.jsx)(Rr.SelectControl,{label:(0,Ir.__)("Taxonomy"),options:g.map(W=>({label:W.name,value:W.slug})),value:l,onChange:W=>c({taxonomy:W})})}),(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,Ir.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,xt.jsx)(Rr.ToggleControl,{label:(0,Ir.__)("Display as dropdown"),checked:e,onChange:S("displayAsDropdown")})}),e&&(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Ir.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,xt.jsx)(Rr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,Ir.__)("Show label"),checked:s,onChange:S("showLabel")})}),(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Ir.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,xt.jsx)(Rr.ToggleControl,{label:(0,Ir.__)("Show post counts"),checked:r,onChange:S("showPostCounts")})}),v&&(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,Ir.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,xt.jsx)(Rr.ToggleControl,{label:(0,Ir.__)("Show only top level terms"),checked:o,onChange:S("showOnlyTopLevel")})}),(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Ir.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,xt.jsx)(Rr.ToggleControl,{label:(0,Ir.__)("Show empty terms"),checked:n,onChange:S("showEmpty")})}),v&&!o&&(0,xt.jsx)(Rr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Ir.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,xt.jsx)(Rr.ToggleControl,{label:(0,Ir.__)("Show hierarchy"),checked:t,onChange:S("showHierarchy")})})]})}),k&&(0,xt.jsx)(Rr.Placeholder,{icon:Ov,label:(0,Ir.__)("Terms"),children:(0,xt.jsx)(Rr.Spinner,{})}),!k&&_?.length===0&&(0,xt.jsx)("p",{children:h.labels.no_terms}),!k&&_?.length>0&&(e?B():N())]})}var a3=a(D(),1);var J5e=[{name:"terms",title:(0,a3.__)("Terms List"),icon:ud,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,a3.__)("Categories List"),description:(0,a3.__)("Display a list of all categories."),icon:ud,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],CZ=J5e;var{name:SZ}=n3,TZ={icon:ud,example:{},edit:tL,variations:CZ},e3e=()=>M({name:SZ,metadata:n3,settings:TZ});var nL={};J(nL,{init:()=>a3e,metadata:()=>c3,name:()=>ub,settings:()=>OZ});var bu=a(R(),1),AZ=a(O(),1),_u=a(V(),1),dh=a(H(),1),cb=a(D(),1);var PZ=a(D(),1),EZ=a(V(),1),i3=a(O(),1),s3=a(K(),1),oL=a(R(),1),BZ=a(b(),1),t3e=({clientId:e})=>{let{replaceBlocks:t}=(0,i3.useDispatch)(oL.store),r=(0,i3.useSelect)(o=>o(oL.store).getBlock(e),[e]);return(0,BZ.jsx)(EZ.ToolbarButton,{onClick:()=>t(r.clientId,(0,s3.rawHandler)({HTML:(0,s3.serialize)(r)})),children:(0,PZ.__)("Convert to blocks")})},NZ=t3e;var IZ=a(R(),1),vl=a(V(),1),l3=a(H(),1),uh=a(D(),1),RZ=a(O(),1);var DZ=a(he(),1),Ss=a(b(),1);function r3e({onClick:e,isModalFullScreen:t}){return(0,DZ.useViewportMatch)("small","<")?null:(0,Ss.jsx)(vl.Button,{size:"compact",onClick:e,icon:sm,isPressed:t,label:t?(0,uh.__)("Exit fullscreen"):(0,uh.__)("Enter fullscreen")})}function o3e(e){let t=(0,RZ.useSelect)(r=>r(IZ.store).getSettings().styles);return(0,l3.useEffect)(()=>{let{baseURL:r,suffix:o,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:r,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let s=i.getDoc();t.forEach(({css:l})=>{let c=s.createElement("style");c.innerHTML=l,s.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Ss.jsx)("textarea",{...e})}function LZ({clientId:e,content:t,onClose:r,onChange:o}){let[n,i]=(0,l3.useState)(!1),s=`editor-${e}`;return(0,Ss.jsxs)(vl.Modal,{title:(0,uh.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,Ss.jsx)(r3e,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,Ss.jsx)(o3e,{id:s,defaultValue:t}),(0,Ss.jsxs)(vl.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Ss.jsx)(vl.FlexItem,{children:(0,Ss.jsx)(vl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,uh.__)("Cancel")})}),(0,Ss.jsx)(vl.FlexItem,{children:(0,Ss.jsx)(vl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(s)),r()},children:(0,uh.__)("Save")})})]})]})}var dn=a(b(),1);function MZ({attributes:e,setAttributes:t,clientId:r}){let{content:o}=e,[n,i]=(0,dh.useState)(!1),s=(0,dh.useRef)(null),l=(0,AZ.useSelect)(c=>c(bu.store).canRemoveBlock(r),[r]);return(0,dn.jsxs)(dn.Fragment,{children:[l&&(0,dn.jsx)(bu.BlockControls,{children:(0,dn.jsx)(_u.ToolbarGroup,{children:(0,dn.jsx)(NZ,{clientId:r})})}),(0,dn.jsx)(bu.BlockControls,{children:(0,dn.jsx)(_u.ToolbarGroup,{children:(0,dn.jsx)(_u.ToolbarButton,{ref:s,onClick:()=>i(!0),children:(0,cb.__)("Edit")})})}),(0,dn.jsxs)("div",{...(0,bu.useBlockProps)(),children:[o?(0,dn.jsx)(dh.RawHTML,{children:o}):(0,dn.jsx)(_u.Placeholder,{icon:(0,dn.jsx)(bu.BlockIcon,{icon:dv}),label:(0,cb.__)("Classic"),instructions:(0,cb.__)("Use the classic editor to add content."),children:(0,dn.jsx)(_u.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,cb.__)("Edit contents")})}),n&&(0,dn.jsx)(LZ,{clientId:r,content:o,onClose:()=>{i(!1),s.current&&s.current.focus()},onChange:c=>t({content:c})})]})]})}var c3={$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 zZ=a(H(),1),VZ=a(b(),1);function FZ({attributes:e}){let{content:t}=e;return(0,VZ.jsx)(zZ.RawHTML,{children:t})}var{name:ub}=c3,OZ={icon:dv,edit:MZ,save:FZ},a3e=()=>M({name:ub,metadata:c3,settings:OZ});var cL={};J(cL,{init:()=>p3e,metadata:()=>p3,name:()=>qZ,settings:()=>g3});var lL=a(D(),1);var $Z=a(K(),1);var aL=a(D(),1),u3=a(R(),1),d3=a(K(),1),iL=a(b(),1);function HZ({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:n}){let i=(0,u3.useBlockProps)();return(0,iL.jsx)("pre",{...i,children:(0,iL.jsx)(u3.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:s=>t({content:s}),onRemove:r,onMerge:n,placeholder:(0,aL.__)("Write code\u2026"),"aria-label":(0,aL.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:o?()=>o((0,d3.createBlock)((0,d3.getDefaultBlockName)())):void 0,style:{whiteSpace:"break-spaces"}})})}var p3={$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 m3=a(R(),1);var jZ=a(he(),1);function UZ(e){return(0,jZ.pipe)(s3e,l3e)(e||"")}function s3e(e){return e.replace(/\[/g,"&#91;")}function l3e(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var sL=a(b(),1);function WZ({attributes:e}){return(0,sL.jsx)("pre",{...m3.useBlockProps.save(),children:(0,sL.jsx)(m3.RichText.Content,{tagName:"code",value:UZ(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var Mm=a(K(),1),f3=a(hl(),1);var c3e={from:[{type:"input",regExp:/^```$/,transform:()=>(0,Mm.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,Mm.createBlock)("core/code",{...e,...yu(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){let{attributes:t}=e;return(0,Mm.createBlock)("core/code",{...t,...yu(t,"core/code"),content:(0,f3.toHTMLString)({value:(0,f3.create)({text:(0,Mm.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,Mm.createBlock)("core/paragraph",{...yu(e,"core/paragraph"),content:t})}}]},GZ=c3e;var{fieldsKey:u3e,formKey:d3e}=q($Z.privateApis),{name:qZ}=p3,g3={icon:pv,example:{attributes:{content:(0,lL.__)(`// A \u201Cblock\u201D is the abstract term used
  12  // to describe units of markup that
  13  // when composed together, form the
  14  // content or layout of a page.
  15  registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`
  16  
  17  `+t.content}},transforms:GZ,edit:HZ,save:WZ};window.__experimentalContentOnlyInspectorFields&&(g3[u3e]=[{id:"content",label:(0,lL.__)("Code"),type:"text",Edit:"rich-text"}],g3[d3e]={fields:["content"]});var p3e=()=>M({name:qZ,metadata:p3,settings:g3});var dL={};J(dL,{init:()=>v3e,metadata:()=>v3,name:()=>JZ,settings:()=>eK});var ZZ=a(R(),1),uL=a(b(),1),m3e=[{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=T({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,uL.jsx)("div",{className:o,style:n,children:(0,uL.jsx)(ZZ.InnerBlocks.Content,{})})}}],KZ=m3e;var pn=a(R(),1),Pd=a(V(),1),h3=a(O(),1),zm=a(D(),1);var Pi=a(b(),1);function f3e({width:e,setAttributes:t}){let[r]=(0,pn.useSettings)("spacing.units"),o=(0,Pd.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=X();return(0,Pi.jsx)(Pd.__experimentalToolsPanel,{label:(0,zm.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,Pi.jsx)(Pd.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,zm.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,Pi.jsx)(Pd.__experimentalUnitControl,{label:(0,zm.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function g3e({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:n,clientId:i}){let s=T("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:l,hasChildBlocks:c,rootClientId:u}=(0,h3.useSelect)(_=>{let{getBlockOrder:k,getBlockRootClientId:y}=_(pn.store),w=y(i);return{hasChildBlocks:k(i).length>0,rootClientId:w,columnsIds:k(w)}},[i]),{updateBlockAttributes:d}=(0,h3.useDispatch)(pn.store),p=_=>{n({verticalAlignment:_}),d(u,{verticalAlignment:null})},m=Number.isFinite(t)?t+"%":t,f=(0,pn.useBlockProps)({className:s,style:m?{flexBasis:m}:void 0}),g=l.length,h=l.indexOf(i)+1,v=(0,zm.sprintf)((0,zm.__)("%1$s (%2$d of %3$d)"),f["aria-label"],h,g),x=(0,pn.useInnerBlocksProps)({...f,"aria-label":v},{templateLock:r,allowedBlocks:o,renderAppender:c?!1:pn.InnerBlocks.ButtonBlockAppender});return(0,Pi.jsxs)(Pi.Fragment,{children:[(0,Pi.jsx)(pn.BlockControls,{children:(0,Pi.jsx)(pn.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,Pi.jsx)(pn.InspectorControls,{children:(0,Pi.jsx)(f3e,{width:t,setAttributes:n})}),(0,Pi.jsx)("div",{...x})]})}var YZ=g3e;var v3={$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 y3=a(R(),1),QZ=a(b(),1);function XZ({attributes:e}){let{verticalAlignment:t,width:r}=e,o=T({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let l=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(l=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:l}}let i=y3.useBlockProps.save({className:o,style:n}),s=y3.useInnerBlocksProps.save(i);return(0,QZ.jsx)("div",{...s})}var{name:JZ}=v3,eK={icon:uE,edit:YZ,save:XZ,deprecated:KZ},v3e=()=>M({name:JZ,metadata:v3,settings:eK});var fL={};J(fL,{init:()=>M3e,metadata:()=>x3,name:()=>fK,settings:()=>gK});var db=a(D(),1);var tK=a(K(),1),Fm=a(R(),1),Vm=a(b(),1);function b3(e){let{doc:t}=b3;t||(t=document.implementation.createHTMLDocument(""),b3.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 y3e=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,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},rK=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:y3e,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:n,customTextColor:i}=e,s=(0,Fm.getColorClassName)("background-color",r),l=(0,Fm.getColorClassName)("color",n),c=T({"has-background":r||o,"has-text-color":n||i,[s]:s,[l]:l,[`are-vertically-aligned-${t}`]:t});return(0,Vm.jsx)("div",{className:c||void 0,style:{backgroundColor:s?void 0:o,color:l?void 0:i},children:(0,Vm.jsx)(Fm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>b3(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((s,l)=>{let{originalContent:c}=l,u=b3(c);return u===void 0&&(u=0),s[u]||(s[u]=[]),s[u].push(l),s},[]).map(s=>(0,tK.createBlock)("core/column",{},s)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,Vm.jsx)("div",{className:`has-${t}-columns`,children:(0,Vm.jsx)(Fm.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=T(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Vm.jsx)("div",{className:o,children:(0,Vm.jsx)(Fm.InnerBlocks.Content,{})})}}];var Om=a(D(),1),Ps=a(V(),1),eo=a(R(),1),Ts=a(O(),1),Hm=a(K(),1);var _3=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function oK(e,t){let{width:r=100/t}=e.attributes;return _3(r)}function b3e(e,t=e.length){return e.reduce((r,o)=>r+oK(o,t),0)}function _3e(e,t=e.length){return e.reduce((r,o)=>{let n=oK(o,t);return Object.assign(r,{[o.clientId]:n})},{})}function pL(e,t,r=e.length){let o=b3e(e,r);return Object.fromEntries(Object.entries(_3e(e,r)).map(([n,i])=>{let s=t*i/o;return[n,_3(s)]}))}function nK(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function mL(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var Eo=a(b(),1),x3e={name:"core/column"};function k3e({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:n,minCount:i}=(0,Ts.useSelect)(d=>{let{canInsertBlockType:p,canRemoveBlock:m,getBlockOrder:f}=d(eo.store),g=f(e),h=g.reduce((v,x,_)=>(m(x)||v.push(_),v),[]);return{count:g.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...h)+1}},[e]),{getBlocks:s}=(0,Ts.useSelect)(eo.store),{replaceInnerBlocks:l}=(0,Ts.useDispatch)(eo.store);function c(d,p){let m=s(e),f=nK(m),g=p>d;if(g&&f){let h=_3(100/p),v=p-d,x=pL(m,100-h*v);m=[...mL(m,x),...Array.from({length:v}).map(()=>(0,Hm.createBlock)("core/column",{width:`${h}%`}))]}else if(g)m=[...m,...Array.from({length:p-d}).map(()=>(0,Hm.createBlock)("core/column"))];else if(p<d&&(m=m.slice(0,-(d-p)),f)){let h=pL(m,100);m=mL(m,h)}l(e,m)}let u=X();return(0,Eo.jsxs)(Ps.__experimentalToolsPanel,{label:(0,Om.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,Eo.jsxs)(Ps.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,Eo.jsx)(Ps.RangeControl,{label:(0,Om.__)("Columns"),value:o,onChange:d=>c(o,Math.max(i,d)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,Eo.jsx)(Ps.Notice,{status:"warning",isDismissible:!1,children:(0,Om.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Eo.jsx)(Ps.__experimentalToolsPanelItem,{label:(0,Om.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Eo.jsx)(Ps.ToggleControl,{label:(0,Om.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function w3e({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:n,templateLock:i}=e,s=(0,Ts.useRegistry)(),{getBlockOrder:l}=(0,Ts.useSelect)(eo.store),{updateBlockAttributes:c}=(0,Ts.useDispatch)(eo.store),u=T({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!o}),d=(0,eo.useBlockProps)({className:u}),p=(0,eo.useInnerBlocksProps)(d,{defaultBlock:x3e,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function m(f){let g=l(r);s.batch(()=>{t({verticalAlignment:f}),c(g,{verticalAlignment:f})})}return(0,Eo.jsxs)(Eo.Fragment,{children:[(0,Eo.jsx)(eo.BlockControls,{children:(0,Eo.jsx)(eo.BlockVerticalAlignmentToolbar,{onChange:m,value:n})}),(0,Eo.jsx)(eo.InspectorControls,{children:(0,Eo.jsx)(k3e,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,Eo.jsx)("div",{...p})]})}function C3e({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:n}=(0,Ts.useSelect)(l=>{let{getBlockVariations:c,getBlockType:u}=l(Hm.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,Ts.useDispatch)(eo.store),s=(0,eo.useBlockProps)();return(0,Eo.jsx)("div",{...s,children:(0,Eo.jsx)(eo.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:n,instructions:(0,Om.__)("Divide into columns. Select a layout:"),onSelect:l=>{l.attributes&&r(l.attributes),l.innerBlocks&&i(e,(0,Hm.createBlocksFromInnerBlocksTemplate)(l.innerBlocks),!0)}})})}var S3e=e=>{let{clientId:t}=e,o=(0,Ts.useSelect)(n=>n(eo.store).getBlocks(t).length>0,[t])?w3e:C3e;return(0,Eo.jsx)(o,{...e})},aK=S3e;var x3={$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 k3=a(R(),1),iK=a(b(),1);function sK({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=T({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=k3.useBlockProps.save({className:o}),i=k3.useInnerBlocksProps.save(n);return(0,iK.jsx)("div",{...i})}var qa=a(V(),1),Ei=a(D(),1),Bi=a(b(),1),P3e=[{name:"one-column-full",title:(0,Ei.__)("100"),description:(0,Ei.__)("One column"),icon:(0,Bi.jsx)(qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bi.jsx)(qa.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,Ei.__)("50 / 50"),description:(0,Ei.__)("Two columns; equal split"),icon:(0,Bi.jsx)(qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bi.jsx)(qa.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,Ei.__)("33 / 66"),description:(0,Ei.__)("Two columns; one-third, two-thirds split"),icon:(0,Bi.jsx)(qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bi.jsx)(qa.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,Ei.__)("66 / 33"),description:(0,Ei.__)("Two columns; two-thirds, one-third split"),icon:(0,Bi.jsx)(qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bi.jsx)(qa.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,Ei.__)("33 / 33 / 33"),description:(0,Ei.__)("Three columns; equal split"),icon:(0,Bi.jsx)(qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bi.jsx)(qa.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,Ei.__)("25 / 50 / 25"),description:(0,Ei.__)("Three columns; wide center column"),icon:(0,Bi.jsx)(qa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Bi.jsx)(qa.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"]}],lK=P3e;var Bo=a(K(),1),E3e=6,cK=["top","center","bottom"],B3e=[...cK,"stretch"],N3e=["fixed","fixedNoShrink"],uK={type:"default"},dc=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:{},dK=e=>{let t=(0,Bo.getBlockType)("core/group")?.attributes;if(!t)return{};let r=dc(e);return Object.fromEntries(Object.entries(r).filter(([o])=>Object.hasOwn(t,o)))},pK=e=>{if(Number.isFinite(e))return`${e}%`;if(typeof e=="string"&&/\d/.test(e))return e},I3e=(e,t)=>{let r=+(100/t).toFixed(2),o=Array.from({length:t},(n,i)=>["core/column",{width:`${r}%`},e.filter((s,l)=>l%t===i)]);return(0,Bo.createBlocksFromInnerBlocksTemplate)(o)},R3e=e=>e.map(t=>{let r=dc(t?.attributes?.style),{selfStretch:o,flexSize:n,...i}=dc(r.layout),s=N3e.includes(o)?pK(n):void 0,l={...r};Object.keys(i).length?l.layout=i:delete l.layout;let c=(0,Bo.cloneSanitizedBlock)(t,{style:Object.keys(l).length?l:void 0});return(0,Bo.createBlock)("core/column",s?{width:s}:{},[c])}),D3e=e=>e.flatMap(t=>{let r=t.innerBlocks||[],{layout:o,style:n,...i}=dK(t?.attributes),s=dc(n),l=dc(o),c=Object.keys(i).length>0,u=Object.keys(s).length>0,d=Object.keys(l).length>0;return r.length>1||c||u||d?[(0,Bo.createBlock)("core/group",{...i,layout:d?l:uK,...u&&{style:s}},r)]:r}),L3e=e=>{let t=e.map(n=>pK(n?.attributes?.width)),r=t.every(n=>!n),o=e.length?`${+(100/e.length).toFixed(2)}%`:void 0;return e.map((n,i)=>{let s=Array.isArray(n?.innerBlocks)?n.innerBlocks:[],l=t[i]||(r?o:void 0),c=l?{selfStretch:"fixed",flexSize:l}:{selfStretch:"fill"},{layout:u,style:d,...p}=dK(n?.attributes),m=dc(d),f=dc(u),g=Object.keys(p).length>0,h=Object.keys(m).length>0,v=Object.keys(f).length>0;if(s.length===1&&!g&&!h&&!v){let x=s[0],_=dc(x.attributes?.style),y={...dc(_.layout),...c};return l||delete y.flexSize,(0,Bo.cloneSanitizedBlock)(x,{style:{..._,layout:y}})}return(0,Bo.createBlock)("core/group",{...p,layout:v?f:uK,style:{...m,layout:{...dc(m.layout),...c}}},s)})},A3e={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:n}=r;return(0,Bo.createBlock)("core/columns",o,I3e(t,n))},isMatch:({layout:e})=>e?.type==="grid"&&Number.isInteger(e?.columnCount)&&e.columnCount>0},{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,n=cK.includes(r?.verticalAlignment)?r.verticalAlignment:void 0;return(0,Bo.createBlock)("core/columns",{...o,verticalAlignment:n},R3e(t))},isMatch:({layout:e})=>e?.type==="flex"&&e?.orientation!=="vertical"},{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:n,innerBlocks:i,innerContent:s})=>["core/column",{width:`${t}%`},[[o,{...n},i,s]]]);return(0,Bo.createBlock)("core/columns",{},(0,Bo.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=E3e},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:n,style:i,mediaAlt:s,mediaId:l,mediaPosition:c,mediaSizeSlug:u,mediaType:d,mediaUrl:p,mediaWidth:m,verticalAlignment:f}=e,g;if(d==="image"||!d){let v={id:l,alt:s,url:p,sizeSlug:u},x={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};g=["core/image",{...v,...x}]}else g=["core/video",{id:l,src:p}];let h=[["core/column",{width:`${m}%`},[g]],["core/column",{width:`${100-m}%`},t]];return c==="right"&&h.reverse(),(0,Bo.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:n,style:i,verticalAlignment:f},(0,Bo.createBlocksFromInnerBlocksTemplate)(h))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-row",transform:(e,t)=>{let{verticalAlignment:r}=e,o=B3e.includes(r)?r:"stretch";return(0,Bo.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:o}},L3e(t))}},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,Bo.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},D3e(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},mK=A3e;var{name:fK}=x3,gK={icon:pE,variations:lK,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,db.__)("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,db.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,db.__)("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,db.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:rK,edit:aK,save:sK,transforms:mK},M3e=()=>M({name:fK,metadata:x3,settings:gK});var yL={};J(yL,{init:()=>j3e,metadata:()=>w3,name:()=>DK,settings:()=>LK});var w3={$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 C3=a(R(),1),gL=a(b(),1),V3e={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=C3.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(s=>s!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,gL.jsx)(e,{...i,children:(0,gL.jsx)(C3.InnerBlocks.Content,{})})}},hK=[V3e];var E3=a(R(),1);var vK=a(D(),1),pb=a(R(),1);var S3=a(b(),1),{HTMLElementControl:F3e}=q(pb.privateApis);function yK({attributes:{tagName:e},setAttributes:t}){return(0,S3.jsx)(pb.InspectorControls,{children:(0,S3.jsx)(pb.InspectorControls,{group:"advanced",children:(0,S3.jsx)(F3e,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,vK.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var Bd=a(R(),1),vL=a(D(),1),PK=a(V(),1);var kK=a(R(),1),co=a(D(),1),wK=a(O(),1),CK=a(ne(),1),SK=a(H(),1);var Es=a(D(),1),Ed=a(R(),1),bK=a(V(),1),_K=a(he(),1),T3=a(ne(),1),hL=a(O(),1),ha=a(b(),1),xK=()=>{let e=(0,_K.useInstanceId)(xK);return(0,ha.jsxs)("div",{className:"comment-respond",children:[(0,ha.jsx)("h3",{className:"comment-reply-title",children:(0,Es.__)("Leave a Reply")}),(0,ha.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,ha.jsxs)("p",{children:[(0,ha.jsx)("label",{htmlFor:`comment-${e}`,children:(0,Es.__)("Comment")}),(0,ha.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,ha.jsx)("p",{className:"form-submit wp-block-button",children:(0,ha.jsx)("input",{name:"submit",type:"submit",className:T("wp-block-button__link",(0,Ed.__experimentalGetElementClassName)("button")),label:(0,Es.__)("Post Comment"),value:(0,Es.__)("Post Comment"),"aria-disabled":"true"})})]})]})},O3e=({postId:e,postType:t})=>{let[r,o]=(0,T3.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,hL.useSelect)(l=>l(Ed.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),s=(0,hL.useSelect)(l=>t?!!l(T3.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let l=[(0,ha.jsx)(bK.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,Es._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,ha.jsx)(Ed.Warning,{actions:l,children:(0,Es.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(s){if(i!=="open")return(0,ha.jsx)(Ed.Warning,{children:(0,Es.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,ha.jsx)(Ed.Warning,{children:(0,Es.sprintf)((0,Es.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,ha.jsx)(xK,{})},P3=O3e;var ut=a(b(),1);function TK({postType:e,postId:t}){let[r]=(0,CK.useEntityProp)("postType",e,"title",t);r=r||(0,co.__)("Post Title");let o=(0,wK.useSelect)(n=>n(kK.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,ut.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,ut.jsx)("h3",{children:(0,co.sprintf)((0,co.__)("One response to %s"),r)}),(0,ut.jsxs)("div",{className:"navigation",children:[(0,ut.jsx)("div",{className:"alignleft",children:(0,ut.jsxs)("a",{href:"#top",children:["\xAB ",(0,co.__)("Older Comments")]})}),(0,ut.jsx)("div",{className:"alignright",children:(0,ut.jsxs)("a",{href:"#top",children:[(0,co.__)("Newer Comments")," \xBB"]})})]}),(0,ut.jsx)("ol",{className:"commentlist",children:(0,ut.jsx)("li",{className:"comment even thread-even depth-1",children:(0,ut.jsxs)("article",{className:"comment-body",children:[(0,ut.jsxs)("footer",{className:"comment-meta",children:[(0,ut.jsxs)("div",{className:"comment-author vcard",children:[(0,ut.jsx)("img",{alt:(0,co.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,ut.jsx)("b",{className:"fn",children:(0,ut.jsx)("a",{href:"#top",className:"url",children:(0,co.__)("A WordPress Commenter")})})," ",(0,ut.jsxs)("span",{className:"says",children:[(0,co.__)("says"),":"]})]}),(0,ut.jsxs)("div",{className:"comment-metadata",children:[(0,ut.jsx)("a",{href:"#top",children:(0,ut.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,co.__)("January 1, 2000 at 00:00 am")})})," ",(0,ut.jsx)("span",{className:"edit-link",children:(0,ut.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,co.__)("Edit")})})]})]}),(0,ut.jsx)("div",{className:"comment-content",children:(0,ut.jsxs)("p",{children:[(0,co.__)("Hi, this is a comment."),(0,ut.jsx)("br",{}),(0,co.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,ut.jsx)("br",{}),(0,SK.createInterpolateElement)((0,co.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,ut.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,ut.jsx)("div",{className:"reply",children:(0,ut.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,co.__)("Reply to A WordPress Commenter"),children:(0,co._x)("Reply","verb")})})]})})}),(0,ut.jsxs)("div",{className:"navigation",children:[(0,ut.jsx)("div",{className:"alignleft",children:(0,ut.jsxs)("a",{href:"#top",children:["\xAB ",(0,co.__)("Older Comments")]})}),(0,ut.jsx)("div",{className:"alignright",children:(0,ut.jsxs)("a",{href:"#top",children:[(0,co.__)("Newer Comments")," \xBB"]})})]}),(0,ut.jsx)(P3,{postId:t,postType:e})]})}var yl=a(b(),1);function EK({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:n}=e,i=[(0,yl.jsx)(PK.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,vL.__)("Switch to editable mode")},"convert")],s=(0,Bd.useBlockProps)({className:T({[`has-text-align-${n}`]:n})});return(0,yl.jsxs)(yl.Fragment,{children:[(0,yl.jsx)(Bd.BlockControls,{group:"block",children:(0,yl.jsx)(Bd.AlignmentControl,{value:n,onChange:l=>{t({textAlign:l})}})}),(0,yl.jsxs)("div",{...s,children:[(0,yl.jsx)(Bd.Warning,{actions:i,children:(0,vL.__)("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,yl.jsx)(TK,{postId:o,postType:r})]})]})}var Nd=a(b(),1);function BK(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:n,legacy:i}=t,s=(0,E3.useBlockProps)(),l=(0,E3.useInnerBlocksProps)(s);return i?(0,Nd.jsx)(EK,{...e}):(0,Nd.jsxs)(Nd.Fragment,{children:[(0,Nd.jsx)(yK,{attributes:t,setAttributes:r,clientId:o}),(0,Nd.jsx)(n,{...l})]})}var B3=a(R(),1),NK=a(b(),1);function IK({attributes:{tagName:e,legacy:t}}){let r=B3.useBlockProps.save(),o=B3.useInnerBlocksProps.save(r);return t?null:(0,NK.jsx)(e,{...o})}var H3e=[["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"]],RK=H3e;var{name:DK}=w3,LK={icon:fN,example:{},template:RK,edit:BK,save:IK,deprecated:hK},j3e=()=>M({name:DK,metadata:w3,settings:LK});var _L={};J(_L,{init:()=>W3e,metadata:()=>N3,name:()=>zK,settings:()=>VK});var N3={$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 Id=a(R(),1),ph=a(V(),1),bL=a(ne(),1),AK=a(O(),1),jm=a(D(),1),bl=a(b(),1);function MK({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:n,width:i}=e,[s]=(0,bL.useEntityProp)("root","comment","author_avatar_urls",t),[l]=(0,bL.useEntityProp)("root","comment","author_name",t),c=s?Object.values(s):null,u=s?Object.keys(s):null,d=u?u[0]:24,p=u?u[u.length-1]:96,m=(0,Id.useBlockProps)(),f=(0,Id.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(p*2.5),h=(0,AK.useSelect)(_=>{let{__experimentalDiscussionSettings:k}=_(Id.store).getSettings();return k?.avatarURL},[]),v=(0,bl.jsx)(Id.InspectorControls,{children:(0,bl.jsx)(ph.PanelBody,{title:(0,jm.__)("Settings"),children:(0,bl.jsx)(ph.RangeControl,{label:(0,jm.__)("Image size"),onChange:_=>r({width:_,height:_}),min:d,max:g,initialPosition:i,value:i})})}),x=(0,bl.jsx)(ph.ResizableBox,{size:{width:i,height:n},showHandle:o,onResizeStop:(_,k,y,w)=>{r({height:parseInt(n+w.height,10),width:parseInt(i+w.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,jm.isRTL)(),bottom:!0,left:(0,jm.isRTL)()},minWidth:d,maxWidth:g,children:(0,bl.jsx)("img",{src:c?c[c.length-1]:h,alt:`${l} ${(0,jm.__)("Avatar")}`,...m})});return(0,bl.jsxs)(bl.Fragment,{children:[v,(0,bl.jsx)("div",{...f,children:x})]})}var{name:zK}=N3,VK={icon:mv,edit:MK},W3e=()=>M({name:zK,metadata:N3,settings:VK});var xL={};J(xL,{init:()=>Z3e,metadata:()=>I3,name:()=>UK,settings:()=>WK});var I3={$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 xu=a(D(),1),FK=a(O(),1),R3=a(R(),1),OK=a(ne(),1),Rd=a(V(),1);var Ni=a(b(),1);function HK(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:n}=e;Et(e);let i=X(),s=(0,R3.useBlockProps)(),l=(0,FK.useSelect)(d=>{let{getEntityRecord:p}=d(OK.store),m=p("root","comment",o),f=m?.author_name;return m&&!f?p("root","user",m.author)?.name??(0,xu.__)("Anonymous"):f??""},[o]),c=(0,Ni.jsx)(R3.InspectorControls,{children:(0,Ni.jsxs)(Rd.__experimentalToolsPanel,{label:(0,xu.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,Ni.jsx)(Rd.__experimentalToolsPanelItem,{label:(0,xu.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,Ni.jsx)(Rd.ToggleControl,{label:(0,xu.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,Ni.jsx)(Rd.__experimentalToolsPanelItem,{label:(0,xu.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,Ni.jsx)(Rd.ToggleControl,{label:(0,xu.__)("Open in new tab"),onChange:d=>n({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!l)&&(l=(0,xu._x)("Comment Author","block title")),(0,Ni.jsxs)(Ni.Fragment,{children:[c,(0,Ni.jsx)("div",{...s,children:t?(0,Ni.jsx)("a",{href:"#comment-author-pseudo-link",onClick:d=>d.preventDefault(),children:l}):l})]})}var $3e={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},q3e={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:er,isEligible({style:e}){return e?.typography?.fontFamily}},jK=[$3e,q3e];var{name:UK}=I3,WK={icon:mE,edit:HK,deprecated:jK,example:{}},Z3e=()=>M({name:UK,metadata:I3,settings:WK});var kL={};J(kL,{init:()=>Q3e,metadata:()=>D3,name:()=>XK,settings:()=>JK});var D3={$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 GK=a(D(),1),$K=a(H(),1),qK=a(V(),1),ZK=a(ne(),1),KK=a(R(),1);var _l=a(b(),1);function YK(e){let{context:{commentId:t}}=e;Et(e);let r=(0,KK.useBlockProps)(),[o]=(0,ZK.useEntityProp)("root","comment","content",t);return!t||!o?(0,_l.jsx)(_l.Fragment,{children:(0,_l.jsx)("div",{...r,children:(0,_l.jsx)("p",{children:(0,GK._x)("Comment Content","block title")})})}):(0,_l.jsx)(_l.Fragment,{children:(0,_l.jsx)("div",{...r,children:(0,_l.jsx)(qK.Disabled,{children:(0,_l.jsx)($K.RawHTML,{children:o.rendered},"html")})})})}var Y3e={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},QK=[Y3e];var{name:XK}=D3,JK={icon:gE,edit:YK,deprecated:QK,example:{}},Q3e=()=>M({name:XK,metadata:D3,settings:JK});var CL={};J(CL,{init:()=>e4e,metadata:()=>L3,name:()=>oY,settings:()=>nY});var L3={$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 wL=a(ne(),1),Wm=a(A3(),1),mh=a(R(),1),Gm=a(V(),1),Um=a(D(),1);var va=a(b(),1);function tY({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let n=(0,mh.useBlockProps)(),i=X(),[s]=(0,wL.useEntityProp)("root","comment","date",r),[l=(0,Wm.getSettings)().formats.date]=(0,wL.useEntityProp)("root","site","date_format"),c=(0,va.jsx)(mh.InspectorControls,{children:(0,va.jsxs)(Gm.__experimentalToolsPanel,{label:(0,Um.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,va.jsx)(Gm.__experimentalToolsPanelItem,{label:(0,Um.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,va.jsx)(mh.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:d=>o({format:d})})}),(0,va.jsx)(Gm.__experimentalToolsPanelItem,{label:(0,Um.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,va.jsx)(Gm.ToggleControl,{label:(0,Um.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!s)&&(s=(0,Um._x)("Comment Date","block title"));let u=s instanceof Date?(0,va.jsx)("time",{dateTime:(0,Wm.dateI18n)("c",s),children:e==="human-diff"?(0,Wm.humanTimeDiff)(s):(0,Wm.dateI18n)(e||l,s)}):(0,va.jsx)("time",{children:s});return t&&(u=(0,va.jsx)("a",{href:"#comment-date-pseudo-link",onClick:d=>d.preventDefault(),children:u})),(0,va.jsxs)(va.Fragment,{children:[c,(0,va.jsx)("div",{...n,children:u})]})}var J3e={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:er,isEligible({style:e}){return e?.typography?.fontFamily}},rY=[J3e];var{name:oY}=L3,nY={icon:Zv,edit:tY,deprecated:rY,example:{}},e4e=()=>M({name:oY,metadata:L3,settings:nY});var SL={};J(SL,{init:()=>o4e,metadata:()=>M3,name:()=>sY,settings:()=>lY});var M3={$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 z3=a(R(),1),fh=a(V(),1),mb=a(D(),1);var xl=a(b(),1);function aY(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;Et(e);let n=(0,z3.useBlockProps)(),i=X(),s=(0,xl.jsx)(z3.InspectorControls,{children:(0,xl.jsx)(fh.__experimentalToolsPanel,{label:(0,mb.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,xl.jsx)(fh.__experimentalToolsPanelItem,{label:(0,mb.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,xl.jsx)(fh.ToggleControl,{label:(0,mb.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,xl.jsxs)(xl.Fragment,{children:[s,(0,xl.jsx)("div",{...n,children:(0,xl.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:l=>l.preventDefault(),children:(0,mb.__)("Edit")})})]})}var r4e={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},iY=[r4e];var{name:sY}=M3,lY={icon:vE,edit:aY,deprecated:iY,example:{}},o4e=()=>M({name:sY,metadata:M3,settings:lY});var TL={};J(TL,{init:()=>s4e,metadata:()=>V3,name:()=>mY,settings:()=>fY});var V3={$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 cY=a(D(),1),uY=a(R(),1);var gh=a(b(),1);function a4e(e){Et(e);let t=(0,uY.useBlockProps)();return(0,gh.jsx)(gh.Fragment,{children:(0,gh.jsx)("div",{...t,children:(0,gh.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,cY._x)("Reply","verb")})})})}var dY=a4e;var i4e={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},pY=[i4e];var{name:mY}=V3,fY={edit:dY,icon:bE,deprecated:pY,example:{}},s4e=()=>M({name:mY,metadata:V3,settings:fY});var EL={};J(EL,{init:()=>g4e,metadata:()=>F3,name:()=>IY,settings:()=>RY});var F3={$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 O3=a(H(),1),PL=a(O(),1),wY=a(D(),1),kl=a(R(),1),CY=a(V(),1),SY=a(ne(),1);var $m=a(H(),1),vY=a(O(),1),yY=a(R(),1),bY=a(dr(),1),_Y=a(fb(),1),hY=100,xY=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:n}=(0,vY.useSelect)(l=>{let{getSettings:c}=l(yY.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,hY):hY,s=c4e({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,$m.useMemo)(()=>s?{...t,post:e,per_page:i,page:s}:null,[e,i,s])},c4e=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[n,i]=(0,$m.useState)({}),s=`${t}_${r}`,l=n[s]||0;return(0,$m.useEffect)(()=>{l||e!=="newest"||(0,_Y.default)({path:(0,bY.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({...n,[s]:u<=1?1:u})}).catch(()=>{i({...n,[s]:1})})},[e,t,r,i]),e==="newest"?l:1},kY=e=>(0,$m.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[n]=o?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var Ii=a(b(),1),u4e=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let n=r?Math.min(o,3):1,i=l=>{if(l<n){let c=l+1;return[{commentId:-(l+3),children:i(c)}]}return[]},s=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&s.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&s.push({commentId:-3,children:[]}),s};function d4e({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:n}){let{children:i,...s}=(0,kl.useInnerBlocksProps)({});return(0,Ii.jsxs)("li",{...s,children:[e.commentId===(t||o)?i:null,(0,Ii.jsx)(m4e,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,Ii.jsx)(TY,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:o}):null]})}var p4e=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let n=(0,kl.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,Ii.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},m4e=(0,O3.memo)(p4e),TY=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})=>(0,Ii.jsx)("ol",{...t,children:e&&e.map(({commentId:s,...l},c)=>(0,Ii.jsx)(kl.BlockContextProvider,{value:{commentId:s<0?null:s},children:(0,Ii.jsx)(d4e,{comment:{commentId:s,...l},activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})},l.commentId||c))});function PY({clientId:e,context:{postId:t}}){let r=(0,kl.useBlockProps)(),[o,n]=(0,O3.useState)(),{commentOrder:i,threadCommentsDepth:s,threadComments:l,commentsPerPage:c,pageComments:u}=(0,PL.useSelect)(g=>{let{getSettings:h}=g(kl.store);return h().__experimentalDiscussionSettings??{}},[]),d=xY({postId:t}),{topLevelComments:p,blocks:m}=(0,PL.useSelect)(g=>{let{getEntityRecords:h}=g(SY.store),{getBlocks:v}=g(kl.store);return{topLevelComments:d?h("root","comment",d):null,blocks:v(e)}},[e,d]),f=kY(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=u4e({perPage:c,pageComments:u,threadComments:l,threadCommentsDepth:s})),f.length?(0,Ii.jsx)(TY,{comments:f,blockProps:r,blocks:m,activeCommentId:o,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,Ii.jsx)("p",{...r,children:(0,wY.__)("No results found.")})):(0,Ii.jsx)("p",{...r,children:(0,Ii.jsx)(CY.Spinner,{})})}var EY=a(R(),1),BY=a(b(),1);function NY(){return(0,BY.jsx)(EY.InnerBlocks.Content,{})}var{name:IY}=F3,f4e=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],RY={icon:cm,template:f4e,edit:PY,save:NY},g4e=()=>M({name:IY,metadata:F3,settings:RY});var NL={};J(NL,{init:()=>y4e,metadata:()=>H3,name:()=>AY,settings:()=>MY});var LY=a(D(),1);var H3={$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 BL=a(D(),1),j3=a(R(),1),gb=a(b(),1),v4e={none:"",arrow:"\u2190",chevron:"\xAB"};function DY({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=v4e[r];return(0,gb.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,j3.useBlockProps)(),children:[o&&(0,gb.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,gb.jsx)(j3.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,BL.__)("Older comments page link"),placeholder:(0,BL.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:AY}=H3,MY={icon:iy,edit:DY,example:{attributes:{label:(0,LY.__)("Older Comments")}}},y4e=()=>M({name:AY,metadata:H3,settings:MY});var RL={};J(RL,{init:()=>x4e,metadata:()=>U3,name:()=>jY,settings:()=>UY});var U3={$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 W3=a(D(),1),Cl=a(R(),1),IL=a(O(),1),G3=a(V(),1);var qm=a(D(),1),hh=a(V(),1),vh=a(b(),1);function zY({value:e,onChange:t}){return(0,vh.jsxs)(hh.__experimentalToggleGroupControl,{label:(0,qm.__)("Arrow"),value:e,onChange:t,help:(0,qm.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,vh.jsx)(hh.__experimentalToggleGroupControlOption,{value:"none",label:(0,qm._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,vh.jsx)(hh.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,qm._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,vh.jsx)(hh.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,qm._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var wl=a(b(),1);function VY({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,IL.useSelect)(c=>{let{getBlocks:u}=c(Cl.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,Cl.useBlockProps)(),i=X(),s=(0,Cl.useInnerBlocksProps)(n);return(0,IL.useSelect)(c=>{let{getSettings:u}=c(Cl.store),{__experimentalDiscussionSettings:d}=u();return d?.pageComments},[])?(0,wl.jsxs)(wl.Fragment,{children:[o&&(0,wl.jsx)(Cl.InspectorControls,{children:(0,wl.jsx)(G3.__experimentalToolsPanel,{label:(0,W3.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,wl.jsx)(G3.__experimentalToolsPanelItem,{label:(0,W3.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,wl.jsx)(zY,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,wl.jsx)("div",{...s})]}):(0,wl.jsx)(Cl.Warning,{children:(0,W3.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var FY=a(R(),1),OY=a(b(),1);function HY(){return(0,OY.jsx)(FY.InnerBlocks.Content,{})}var{name:jY}=U3,_4e=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]],UY={icon:sy,template:_4e,edit:VY,save:HY},x4e=()=>M({name:jY,metadata:U3,settings:UY});var LL={};J(LL,{init:()=>C4e,metadata:()=>$3,name:()=>$Y,settings:()=>qY});var GY=a(D(),1);var $3={$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 DL=a(D(),1),q3=a(R(),1),hb=a(b(),1),w4e={none:"",arrow:"\u2192",chevron:"\xBB"};function WY({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=w4e[r];return(0,hb.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,q3.useBlockProps)(),children:[(0,hb.jsx)(q3.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,DL.__)("Newer comments page link"),placeholder:(0,DL.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),o&&(0,hb.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:$Y}=$3,qY={icon:ny,edit:WY,example:{attributes:{label:(0,GY.__)("Newer Comments")}}},C4e=()=>M({name:$Y,metadata:$3,settings:qY});var AL={};J(AL,{init:()=>T4e,metadata:()=>Z3,name:()=>YY,settings:()=>QY});var Z3={$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 ZY=a(R(),1),Bs=a(b(),1),Zm=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,Bs.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,Bs.jsx)(t,{className:`page-numbers ${r}`,children:e});function KY(){return(0,Bs.jsxs)("div",{...(0,ZY.useBlockProps)(),children:[(0,Bs.jsx)(Zm,{content:"1"}),(0,Bs.jsx)(Zm,{content:"2"}),(0,Bs.jsx)(Zm,{content:"3",tag:"span",extraClass:"current"}),(0,Bs.jsx)(Zm,{content:"4"}),(0,Bs.jsx)(Zm,{content:"5"}),(0,Bs.jsx)(Zm,{content:"...",tag:"span",extraClass:"dots"}),(0,Bs.jsx)(Zm,{content:"8"})]})}var{name:YY}=Z3,QY={icon:ay,edit:KY,example:{}},T4e=()=>M({name:YY,metadata:Z3,settings:QY});var ML={};J(ML,{init:()=>N4e,metadata:()=>K3,name:()=>nQ,settings:()=>aQ});var K3={$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 pc=a(R(),1),Ur=a(D(),1),XY=a(ne(),1),Dd=a(V(),1),Y3=a(H(),1),JY=a(O(),1),eQ=a(fb(),1),tQ=a(dr(),1);var Za=a(b(),1);function rQ(e){Et(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:n,showCommentsCount:i,level:s=2,levelOptions:l}=t,{postId:c,postType:u}=o,d="h"+s,[p,m]=(0,Y3.useState)(),[f]=(0,XY.useEntityProp)("postType",u,"title",c),g=typeof c>"u",h=(0,pc.useBlockProps)(),{threadCommentsDepth:v,threadComments:x,commentsPerPage:_,pageComments:k}=(0,JY.useSelect)(N=>{let{getSettings:I}=N(pc.store);return I().__experimentalDiscussionSettings??{}},[]),y=X();(0,Y3.useEffect)(()=>{if(g){let I=x?Math.min(v,3)-1:0,B=k?_:3,E=parseInt(I)+parseInt(B);m(Math.min(E,3));return}let N=c;(0,eQ.default)({path:(0,tQ.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(I=>{N===c&&m(parseInt(I.headers.get("X-WP-Total")))}).catch(()=>{m(0)})},[c]);let w=(0,Za.jsx)(pc.BlockControls,{group:"block",children:(0,Za.jsx)(pc.HeadingLevelDropdown,{value:s,options:l,onChange:N=>r({level:N})})}),C=(0,Za.jsx)(pc.InspectorControls,{children:(0,Za.jsxs)(Dd.__experimentalToolsPanel,{label:(0,Ur.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:y,children:[(0,Za.jsx)(Dd.__experimentalToolsPanelItem,{label:(0,Ur.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,Za.jsx)(Dd.ToggleControl,{label:(0,Ur.__)("Show post title"),checked:n,onChange:N=>r({showPostTitle:N})})}),(0,Za.jsx)(Dd.__experimentalToolsPanelItem,{label:(0,Ur.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,Za.jsx)(Dd.ToggleControl,{label:(0,Ur.__)("Show comments count"),checked:i,onChange:N=>r({showCommentsCount:N})})})]})}),S=g?(0,Ur.__)("Post Title"):f,P;return i&&p!==void 0?n?p===1?P=(0,Ur.sprintf)((0,Ur.__)('One response to "%s"'),S):P=(0,Ur.sprintf)((0,Ur._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',p),p,S):p===1?P=(0,Ur.__)("One response"):P=(0,Ur.sprintf)((0,Ur._n)("%s response","%s responses",p),p):n?p===1?P=(0,Ur.sprintf)((0,Ur.__)('Response to "%s"'),S):P=(0,Ur.sprintf)((0,Ur.__)('Responses to "%s"'),S):p===1?P=(0,Ur.__)("Response"):P=(0,Ur.__)("Responses"),(0,Za.jsxs)(Za.Fragment,{children:[w,C,(0,Za.jsx)(d,{...h,children:P})]})}var E4e={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 ke(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},B4e={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 ke(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},oQ=[E4e,B4e];var{name:nQ}=K3,aQ={icon:pl,edit:rQ,deprecated:oQ,example:{}},N4e=()=>M({name:nQ,metadata:K3,settings:aQ});var tA={};J(tA,{init:()=>YCe,metadata:()=>f4,name:()=>uX,settings:()=>h4});var eA=a(D(),1);var cX=a(K(),1);var J3=a(K(),1),Ie=a(R(),1),e4=a(D(),1),vb=a(he(),1);var Q3=a(Or(),1),I4e={"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"},tr="image",Dr="video",ku="embed-video",iQ=50;var R4e={x:.5,y:.5},X3=["image","video"];function mn({x:e,y:t}=R4e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Ns(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function sQ(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,Q3.isBlobURL)(e.url)&&(e.type=(0,Q3.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===tr?t=tr:t=Dr;else if(e.type&&(e.type===tr||e.type===Dr))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Dr?{hasParallax:void 0}:{}}}function ya(e){return!e||e==="center center"||e==="center"}function Ka(e){return ya(e)?"":I4e[e]}var fe=a(b(),1);function mc(e){return e?{backgroundImage:`url(${e})`}:{}}function Km(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function t4(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Ld(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var Ym={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"}},yb={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]}},zL={...yb,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},D4e={...zL,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},yh={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}},VL={...yh,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}},L4e={...VL,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},A4e={attributes:D4e,supports:L4e,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:v,minHeightUnit:x,tagName:_,sizeSlug:k}=e,y=(0,Ie.getColorClassName)("background-color",m),w=(0,Ie.__experimentalGetGradientClass)(r),C=v&&x?`${v}${x}`:v,S=tr===t,P=Dr===t,N=!(u||p),I={minHeight:C||void 0},B={backgroundColor:y?void 0:i,background:n||void 0},E=l&&N?mn(l):void 0,L=f?`url(${f})`:void 0,A=mn(l),U=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ya(o)},Ka(o)),$=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":p}),W=r||n;return(0,fe.jsxs)(_,{...Ie.useBlockProps.save({className:U,style:I}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",y,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&W&&s!==0,"has-background-gradient":W,[w]:w}),style:B}),!c&&S&&f&&(N?(0,fe.jsx)("img",{className:$,alt:g,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,fe.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:$,style:{backgroundPosition:A,backgroundImage:L}})),P&&f&&(0,fe.jsx)("video",{className:T("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",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},M4e={attributes:zL,supports:VL,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:v,minHeightUnit:x,tagName:_}=e,k=(0,Ie.getColorClassName)("background-color",m),y=(0,Ie.__experimentalGetGradientClass)(r),w=v&&x?`${v}${x}`:v,C=tr===t,S=Dr===t,P=!(u||p),N={minHeight:w||void 0},I={backgroundColor:k?void 0:i,background:n||void 0},B=l&&P?mn(l):void 0,E=f?`url(${f})`:void 0,L=mn(l),A=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ya(o)},Ka(o)),U=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),$=r||n;return(0,fe.jsxs)(_,{...Ie.useBlockProps.save({className:A,style:N}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",k,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&$&&s!==0,"has-background-gradient":$,[y]:y}),style:I}),!c&&C&&f&&(P?(0,fe.jsx)("img",{className:U,alt:g,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,fe.jsx)("div",{role:"img",className:U,style:{backgroundPosition:L,backgroundImage:E}})),S&&f&&(0,fe.jsx)("video",{className:T("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",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},z4e={attributes:zL,supports:VL,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:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:v,minHeightUnit:x,tagName:_}=e,k=(0,Ie.getColorClassName)("background-color",m),y=(0,Ie.__experimentalGetGradientClass)(r),w=v&&x?`${v}${x}`:v,C=tr===t,S=Dr===t,P=!(u||p),N={minHeight:w||void 0},I={backgroundColor:k?void 0:i,background:n||void 0},B=l&&P?mn(l):void 0,E=f?`url(${f})`:void 0,L=mn(l),A=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ya(o)},Ka(o)),U=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),$=r||n;return(0,fe.jsxs)(_,{...Ie.useBlockProps.save({className:A,style:N}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",k,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&$&&s!==0,"has-background-gradient":$,[y]:y}),style:I}),!c&&C&&f&&(P?(0,fe.jsx)("img",{className:U,alt:g,src:f,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}):(0,fe.jsx)("div",{role:"img",className:U,style:{backgroundPosition:L,backgroundImage:E}})),S&&f&&(0,fe.jsx)("video",{className:T("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",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},V4e={attributes:yb,supports:yh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:v,minHeightUnit:x}=e,_=(0,Ie.getColorClassName)("background-color",m),k=(0,Ie.__experimentalGetGradientClass)(r),y=v&&x?`${v}${x}`:v,w=tr===t,C=Dr===t,S=!(u||p),P={minHeight:y||void 0},N={backgroundColor:_?void 0:i,background:n||void 0},I=l&&S?mn(l):void 0,B=f?`url(${f})`:void 0,E=mn(l),L=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ya(o)},Ka(o)),A=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),U=r||n;return(0,fe.jsxs)("div",{...Ie.useBlockProps.save({className:L,style:P}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",_,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&U&&s!==0,"has-background-gradient":U,[k]:k}),style:N}),!c&&w&&f&&(S?(0,fe.jsx)("img",{className:A,alt:g,src:f,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}):(0,fe.jsx)("div",{role:"img",className:A,style:{backgroundPosition:E,backgroundImage:B}})),C&&f&&(0,fe.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}),(0,fe.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ld},F4e={attributes:yb,supports:yh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:v,minHeightUnit:x}=e,_=(0,Ie.getColorClassName)("background-color",m),k=(0,Ie.__experimentalGetGradientClass)(r),y=v&&x?`${v}${x}`:v,w=tr===t,C=Dr===t,S=!(u||p),P={...w&&!S&&!c?mc(f):{},minHeight:y||void 0},N={backgroundColor:_?void 0:i,background:n||void 0},I=l&&S?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,B=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ya(o)},Ka(o)),E=r||n;return(0,fe.jsxs)("div",{...Ie.useBlockProps.save({className:B,style:P}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",_,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&E&&s!==0,"has-background-gradient":E,[k]:k}),style:N}),!c&&w&&S&&f&&(0,fe.jsx)("img",{className:T("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:f,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}),C&&f&&(0,fe.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}),(0,fe.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ld},O4e={attributes:yb,supports:yh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:f,id:g,minHeight:h,minHeightUnit:v}=e,x=(0,Ie.getColorClassName)("background-color",p),_=(0,Ie.__experimentalGetGradientClass)(r),k=v?`${h}${v}`:h,y=tr===t,w=Dr===t,C=!(c||d),S={...y&&!C?mc(m):{},minHeight:k||void 0},P={backgroundColor:x?void 0:i,background:n||void 0},N=l&&C?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,I=T({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!ya(o)},Ka(o)),B=r||n;return(0,fe.jsxs)("div",{...Ie.useBlockProps.save({className:I,style:S}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",x,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":m&&B&&s!==0,"has-background-gradient":B,[_]:_}),style:P}),y&&C&&m&&(0,fe.jsx)("img",{className:T("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:m,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),w&&m&&(0,fe.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,fe.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ld},H4e={attributes:yb,supports:yh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isDark:u,isRepeated:d,overlayColor:p,url:m,alt:f,id:g,minHeight:h,minHeightUnit:v}=e,x=(0,Ie.getColorClassName)("background-color",p),_=(0,Ie.__experimentalGetGradientClass)(r),k=v?`${h}${v}`:h,y=tr===t,w=Dr===t,C=!(c||d),S={...y&&!C?mc(m):{},minHeight:k||void 0},P={backgroundColor:x?void 0:i,background:n||void 0},N=l&&C?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,I=T({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!ya(o)},Ka(o));return(0,fe.jsxs)("div",{...Ie.useBlockProps.save({className:I,style:S}),children:[(0,fe.jsx)("span",{"aria-hidden":"true",className:T(x,Ns(s),"wp-block-cover__gradient-background",_,{"has-background-dim":s!==void 0,"has-background-gradient":r||n,[_]:!m&&_}),style:P}),y&&C&&m&&(0,fe.jsx)("img",{className:T("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:m,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),w&&m&&(0,fe.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,fe.jsx)("div",{...Ie.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Ld},j4e={attributes:{...Ym,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:yh,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isRepeated:u,overlayColor:d,url:p,alt:m,id:f,minHeight:g,minHeightUnit:h}=e,v=(0,Ie.getColorClassName)("background-color",d),x=(0,Ie.__experimentalGetGradientClass)(r),_=h?`${g}${h}`:g,k=tr===t,y=Dr===t,w=!(c||u),C={...k&&!w?mc(p):{},backgroundColor:v?void 0:i,background:n&&!p?n:void 0,minHeight:_||void 0},S=l&&w?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,P=T(Km(s),v,{"has-background-dim":s!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[x]:!p&&x,"has-custom-content-position":!ya(o)},Ka(o));return(0,fe.jsxs)("div",{...Ie.useBlockProps.save({className:P,style:C}),children:[p&&(r||n)&&s!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",x),style:n?{background:n}:void 0}),k&&w&&p&&(0,fe.jsx)("img",{className:T("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:m,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),y&&p&&(0,fe.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,vb.compose)(t4,Ld)},U4e={attributes:{...Ym,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:n,customOverlayColor:i,dimRatio:s,focalPoint:l,hasParallax:c,isRepeated:u,overlayColor:d,url:p,minHeight:m,minHeightUnit:f}=e,g=(0,Ie.getColorClassName)("background-color",d),h=(0,Ie.__experimentalGetGradientClass)(r),v=f?`${m}${f}`:m,x=tr===t,_=Dr===t,k=x?mc(p):{},y={};g||(k.backgroundColor=i),n&&!p&&(k.background=n),k.minHeight=v||void 0;let w;l&&(w=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`,x&&!c&&(k.backgroundPosition=w),_&&(y.objectPosition=w));let C=T(Km(s),g,{"has-background-dim":s!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[h]:!p&&h,"has-custom-content-position":!ya(o)},Ka(o));return(0,fe.jsxs)("div",{...Ie.useBlockProps.save({className:C,style:k}),children:[p&&(r||n)&&s!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",h),style:n?{background:n}:void 0}),_&&p&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:y}),(0,fe.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,fe.jsx)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,vb.compose)(t4,Ld)},W4e={attributes:{...Ym,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:s,hasParallax:l,overlayColor:c,url:u,minHeight:d}=e,p=(0,Ie.getColorClassName)("background-color",c),m=(0,Ie.__experimentalGetGradientClass)(r),f=t===tr?mc(u):{};p||(f.backgroundColor=n),s&&!l&&(f.backgroundPosition=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=d||void 0;let g=T(Km(i),p,{"has-background-dim":i!==0,"has-parallax":l,"has-background-gradient":o,[m]:!u&&m});return(0,fe.jsxs)("div",{className:g,style:f,children:[u&&(r||o)&&i!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),Dr===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)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,vb.compose)(t4,Ld)},G4e={attributes:{...Ym,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:r,customGradient:o,customOverlayColor:n,dimRatio:i,focalPoint:s,hasParallax:l,overlayColor:c,url:u,minHeight:d}=e,p=(0,Ie.getColorClassName)("background-color",c),m=(0,Ie.__experimentalGetGradientClass)(r),f=t===tr?mc(u):{};p||(f.backgroundColor=n),s&&!l&&(f.backgroundPosition=`${s.x*100}% ${s.y*100}%`),o&&!u&&(f.background=o),f.minHeight=d||void 0;let g=T(Km(i),p,{"has-background-dim":i!==0,"has-parallax":l,"has-background-gradient":o,[m]:!u&&m});return(0,fe.jsxs)("div",{className:g,style:f,children:[u&&(r||o)&&i!==0&&(0,fe.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),Dr===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)(Ie.InnerBlocks.Content,{})})]})},migrate:(0,vb.compose)(t4,Ld)},$4e={attributes:{...Ym,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:n,focalPoint:i,hasParallax:s,overlayColor:l,title:c,url:u}=e,d=(0,Ie.getColorClassName)("background-color",l),p=t===tr?mc(u):{};d||(p.backgroundColor=o),i&&!s&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let m=T(Km(n),d,{"has-background-dim":n!==0,"has-parallax":s,[`has-${r}-content`]:r!=="center"});return(0,fe.jsxs)("div",{className:m,style:p,children:[Dr===t&&u&&(0,fe.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Ie.RichText.isEmpty(c)&&(0,fe.jsx)(Ie.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,...n}=t;return[n,[(0,J3.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,e4.__)("Write title\u2026")})]]}},q4e={attributes:{...Ym,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:n,align:i,contentAlign:s,overlayColor:l,customOverlayColor:c}=e,u=(0,Ie.getColorClassName)("background-color",l),d=mc(t);u||(d.backgroundColor=c);let p=T("wp-block-cover-image",Km(n),u,{"has-background-dim":n!==0,"has-parallax":o,[`has-${s}-content`]:s!=="center"},i?`align${i}`:null);return(0,fe.jsx)("div",{className:p,style:d,children:!Ie.RichText.isEmpty(r)&&(0,fe.jsx)(Ie.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:n,...i}=t;return[i,[(0,J3.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,e4.__)("Write title\u2026")})]]}},Z4e={attributes:{...Ym,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:n,align:i}=e,s=mc(t),l=T("wp-block-cover-image",Km(n),{"has-background-dim":n!==0,"has-parallax":o},i?`align${i}`:null);return(0,fe.jsx)("section",{className:l,style:s,children:(0,fe.jsx)(Ie.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:n,...i}=t;return[i,[(0,J3.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,e4.__)("Write title\u2026")})]]}},lQ=[A4e,M4e,z4e,V4e,F4e,O4e,H4e,j4e,U4e,W4e,G4e,$4e,q4e,Z4e];var kb=a(ne(),1),Hn=a(H(),1),ef=a(V(),1),m4=a(he(),1),to=a(R(),1),XL=a(D(),1),Tl=a(O(),1),tX=a(K(),1),rX=a(Or(),1),oX=a(xr(),1);var vQ=a(H(),1),pr=a(V(),1),yQ=a(he(),1),fn=a(R(),1),No=a(D(),1),OL=a(O(),1),bQ=a(ne(),1);var cQ=a(R(),1);var{cleanEmptyObject:r4,getStyleForState:K4e,setStyleForState:uQ}=q(cQ.privateApis);function FL(e,t){return K4e(e,t)||{}}function Y4e(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function Q4e(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function bh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function X4e(e,t){return FL(e,t)?.dimensions||{}}function Ri(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:n,attributeKey:i,styleKey:s=i,rootValue:l}=e;return n?X4e(r,o)?.[s]:Object.hasOwn(e,"rootValue")?l:t?.[i]}function J4e(e,t,r){let o=FL(e,t);return uQ(e,t,r4({...o,dimensions:r4({...o?.dimensions,...r})}))}function _h({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:n,dimensionKeys:i}){let s=Q4e(o,i);return r?{style:J4e(e,t,Y4e(s,n))}:s}function dQ(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return r4({...e,dimensions:r4({...e?.dimensions,...r})})}function eCe(e,t,r){return uQ(e,t,dQ(FL(e,t),r))}function xh({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:n,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?eCe(t,r,n):dQ(t,n)}}var Qm="full";var kh=a(R(),1),mQ=a(xr(),1),ba=a(V(),1),fQ=a(Or(),1),Di=a(D(),1),o4=a(H(),1),gQ=a(he(),1),n4=a(O(),1),On=a(b(),1),pQ=["image"];function hQ({poster:e,onChange:t}){let r=(0,o4.useRef)(),[o,n]=(0,o4.useState)(!1),i=(0,gQ.useInstanceId)(hQ,"block-library-poster-image-description"),{getSettings:s}=(0,n4.useSelect)(kh.store),{createErrorNotice:l}=(0,n4.useDispatch)(mQ.store),c=d=>{s().mediaUpload({allowedTypes:pQ,filesList:d,onFileChange:([p])=>{if((0,fQ.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{l(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&o?(0,On.jsx)(ba.Spinner,{}):e?(0,Di.__)("Replace"):(0,Di.__)("Set poster image");return(0,On.jsx)(kh.MediaUploadCheck,{children:(0,On.jsxs)(ba.__experimentalToolsPanelItem,{label:(0,Di.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,On.jsx)(ba.BaseControl.VisualLabel,{children:(0,Di.__)("Poster image")}),(0,On.jsx)(kh.MediaUpload,{title:(0,Di.__)("Select poster image"),onSelect:t,allowedTypes:pQ,render:({open:d})=>(0,On.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,On.jsxs)(ba.Button,{__next40pxDefaultSize:!0,onClick:d,"aria-haspopup":"dialog","aria-label":(0,Di.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,On.jsx)("img",{src:e,alt:(0,Di.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,On.jsx)(ba.Spinner,{})]}),(0,On.jsxs)(ba.__experimentalHStack,{className:T("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,On.jsx)(ba.Button,{__next40pxDefaultSize:!0,onClick:d,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,On.jsx)("p",{id:i,hidden:!0,children:e?(0,Di.sprintf)((0,Di.__)("The current poster image url is %s."),e):(0,Di.__)("There is no poster image currently selected.")}),!!e&&(0,On.jsx)(ba.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,Di.__)("Remove")})]}),(0,On.jsx)(ba.DropZone,{onFilesDrop:c})]})})]})})}var a4=hQ;var St=a(b(),1),{cleanEmptyObject:tCe,isDefaultBlockStyleState:rCe,ResolutionTool:oCe,HTMLElementControl:nCe}=q(fn.privateApis);function aCe({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,yQ.useInstanceId)(pr.__experimentalUnitControl)}`,s=r==="px",[l]=(0,fn.useSettings)("spacing.units"),c=(0,pr.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=m=>{let f=m!==""?parseFloat(m):void 0;isNaN(f)&&f!==void 0||e(f)},d=(0,vQ.useMemo)(()=>{let[m]=(0,pr.__experimentalParseQuantityAndUnitFromRawValue)(o);return[m,r].join("")},[r,o]),p=s?iQ:0;return(0,St.jsx)(pr.__experimentalUnitControl,{label:(0,No.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:d})}function _Q({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:n,currentSettings:i,updateDimRatio:s,featuredImage:l}){let{useFeaturedImage:c,id:u,dimRatio:d,focalPoint:p,hasParallax:m,isRepeated:f,minHeight:g,minHeightUnit:h,alt:v,tagName:x,poster:_}=e,{isVideoBackground:k,isImageBackground:y,mediaElement:w,url:C,overlayColor:S}=i,P=e.sizeSlug||Qm,{gradientValue:N,setGradient:I}=(0,fn.__experimentalUseGradient)(),{imageSizes:B,selectedStyleState:E}=(0,OL.useSelect)(ue=>{let{getSettings:Oe,getSelectedBlockStyleState:Pe}=q(ue(fn.store));return{imageSizes:Oe()?.imageSizes,selectedStyleState:Pe(r)}},[r]),L=!rCe(E),A=bh(E),U=Ri({attributes:e,selectedState:E,hasSelectedStyleState:L,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[$,W]=(0,pr.__experimentalParseQuantityAndUnitFromRawValue)(U||""),G=L?$:g,F=L&&W||h,Z=Ri({attributes:e,selectedState:E,hasSelectedStyleState:L,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),j=(0,OL.useSelect)(ue=>u&&y?ue(bQ.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,y]),Y=c?l:j;function ee(ue){let Oe=Y?.media_details?.sizes?.[ue]?.source_url;if(!Oe)return null;t({url:Oe,sizeSlug:ue})}let te=B?.filter(({slug:ue})=>Y?.media_details?.sizes?.[ue]?.source_url)?.map(({name:ue,slug:Oe})=>({value:Oe,label:ue})),Q=()=>{t({hasParallax:!m,...m?{}:{focalPoint:void 0}})},le=()=>{t({isRepeated:!f})},oe=k||y,ce=ue=>{let[Oe,Pe]=w.current?[w.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];Oe[Pe]=mn(ue)},pe=(0,fn.__experimentalUseMultipleOriginColorsAndGradients)(),be=pe.hasColorsOrGradients&&!L,Te=(ue,Oe)=>{if(L){t(_h({style:e.style,selectedState:E,hasSelectedStyleState:L,nextDimensions:{minHeight:ue===void 0?void 0:`${ue}${Oe||F||"px"}`,aspectRatio:void 0}}));return}t({minHeight:ue,style:tCe({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},ae=(ue=e)=>xh({style:ue.style,selectedState:E,hasSelectedStyleState:L,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),se=X();return(0,St.jsxs)(St.Fragment,{children:[(!!C||c)&&(0,St.jsx)(fn.InspectorControls,{children:(0,St.jsxs)(pr.__experimentalToolsPanel,{label:(0,No.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),ee(Qm)},dropdownMenuProps:se,children:[y&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(pr.__experimentalToolsPanelItem,{label:(0,No.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,St.jsx)(pr.ToggleControl,{label:(0,No.__)("Fixed background"),checked:!!m,onChange:Q})}),(0,St.jsx)(pr.__experimentalToolsPanelItem,{label:(0,No.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,St.jsx)(pr.ToggleControl,{label:(0,No.__)("Repeated background"),checked:f,onChange:le})})]}),oe&&(0,St.jsx)(pr.__experimentalToolsPanelItem,{label:(0,No.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,St.jsx)(pr.FocalPointPicker,{label:(0,No.__)("Focal point"),url:C,value:p,onDragStart:ce,onDrag:ce,onChange:ue=>t({focalPoint:ue})})}),k&&(0,St.jsx)(a4,{poster:_,onChange:ue=>t({poster:ue?.url})}),!c&&C&&!k&&(0,St.jsx)(pr.__experimentalToolsPanelItem,{label:(0,No.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>t({alt:""}),children:(0,St.jsx)(pr.TextareaControl,{label:(0,No.__)("Alternative text"),value:v,onChange:ue=>t({alt:ue}),help:(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(mu,{openInNewTab:!0,href:(0,No.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,No.__)("Describe the purpose of the image.")}),(0,St.jsx)("br",{}),(0,No.__)("Leave empty if decorative.")]})})}),!!te?.length&&(0,St.jsx)(oCe,{value:P,onChange:ee,options:te,defaultValue:Qm})]})}),be&&(0,St.jsxs)(fn.InspectorControls,{group:"color",children:[(0,St.jsx)(fn.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:S.color,gradientValue:N,label:(0,No.__)("Overlay"),onColorChange:o,onGradientChange:I,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...pe}),(0,St.jsx)(pr.__experimentalToolsPanelItem,{hasValue:()=>d===void 0?!1:d!==(C?50:100),label:(0,No.__)("Overlay opacity"),onDeselect:()=>s(C?50:100),resetAllFilter:()=>({dimRatio:C?50:100}),isShownByDefault:!0,panelId:r,children:(0,St.jsx)(pr.RangeControl,{label:(0,No.__)("Overlay opacity"),value:d,onChange:ue=>s(ue),min:0,max:100,step:10,required:!0})})]}),(0,St.jsx)(fn.InspectorControls,{group:"dimensions",children:(0,St.jsx)(pr.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!G,label:(0,No.__)("Minimum height"),onDeselect:()=>t(ae()),resetAllFilter:ae,isShownByDefault:!0,panelId:r,children:(0,St.jsx)(aCe,{value:Z?"":G,unit:F,onChange:ue=>Te(ue),onUnitChange:ue=>{if(L){G!==void 0&&Te(G,ue);return}t({minHeightUnit:ue})}})},A)}),(0,St.jsx)(fn.InspectorControls,{group:"advanced",children:(0,St.jsx)(nCe,{tagName:x,onChange:ue=>t({tagName:ue}),clientId:r,options:[{label:(0,No.__)("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 i4=a(H(),1),Sl=a(R(),1),Sh=a(D(),1),s4=a(V(),1);var HL=a(H(),1),Ch=a(V(),1),Xm=a(D(),1);var xQ=a(K(),1);var iCe="core/embed",kQ=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function wQ(e){return Array.isArray(e)?kQ.filter(t=>e.includes(t)):[]}function CQ(e,t){return e?sCe(e,t)!==null:!1}function sCe(e,t=kQ){let r=(0,xQ.getBlockVariations)(iCe);if(!r)return null;let o=r.find(({patterns:n})=>VD(e,n));return!o||!t.includes(o.name)?null:o}function SQ(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=cCe(r);return e.replace(r,o)}function lCe(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 cCe(e){if(!e)return e;try{let t=new URL(e);switch(lCe(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 wh=a(b(),1);function TQ({onSubmit:e,onClose:t,initialUrl:r="",allowedVideoProviders:o}){let[n,i]=(0,HL.useState)(r),[s,l]=(0,HL.useState)("");return(0,wh.jsx)(Ch.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!n){l((0,Xm.__)("Please enter a URL."));return}if(!CQ(n,o)){l((0,Xm.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(n),t()},onCancel:t,confirmButtonText:(0,Xm.__)("Add video"),size:"medium",children:(0,wh.jsxs)(ks,{direction:"column",gap:"lg",children:[s&&(0,wh.jsx)(Ch.Notice,{status:"error",isDismissible:!1,children:s}),(0,wh.jsx)(Ch.TextControl,{type:"url",label:(0,Xm.__)("Video URL"),value:n,onChange:u=>{i(u),l("")},placeholder:(0,Xm.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,Xm.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Li=a(b(),1),{cleanEmptyObject:uCe}=q(Sl.privateApis);function PQ({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:s,onEditMedia:l,editMediaButtonRef:c,showEditMediaButton:u,isEditMediaDisabled:d,blockEditingMode:p}){let{contentPosition:m,id:f,useFeaturedImage:g,minHeight:h,minHeightUnit:v,backgroundType:x,allowedVideoProviders:_}=e,{hasInnerBlocks:k,url:y}=o,w=wQ(_),C=w.length>0,[S,P]=(0,i4.useState)(h),[N,I]=(0,i4.useState)(v),[B,E]=(0,i4.useState)(!1),L=v==="vh"&&h===100&&!e?.style?.dimensions?.aspectRatio,A=p==="contentOnly",U=()=>L?t(N==="vh"&&S===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:S,minHeightUnit:N}):(P(h),I(v),t({minHeight:100,minHeightUnit:"vh",style:uCe({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Li.jsxs)(Li.Fragment,{children:[!A&&(0,Li.jsxs)(Sl.BlockControls,{group:"block",children:[(0,Li.jsx)(Sl.__experimentalBlockAlignmentMatrixControl,{label:(0,Sh.__)("Change content position"),value:m,onChange:$=>t({contentPosition:$}),isDisabled:!k}),(0,Li.jsx)(Sl.__experimentalBlockFullHeightAligmentControl,{isActive:L,onToggle:U,isDisabled:!k}),u&&(0,Li.jsx)(s4.ToolbarButton,{ref:c,icon:am,label:(0,Sh.__)("Edit image"),onClick:l,"aria-haspopup":"dialog",disabled:d})]}),(0,Li.jsx)(Sl.BlockControls,{group:"other",children:(0,Li.jsx)(Sl.MediaReplaceFlow,{mediaId:f,mediaURL:y,allowedTypes:X3,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:g,name:y?(0,Sh.__)("Replace"):(0,Sh.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:$})=>C?(0,Li.jsx)(s4.MenuItem,{icon:wi,onClick:()=>{E(!0),$()},children:(0,Sh.__)("Embed video from URL")}):null})}),B&&(0,Li.jsx)(TQ,{onSubmit:$=>{s($)},onClose:()=>E(!1),initialUrl:x===ku?y:"",allowedVideoProviders:w})]})}var l4=a(R(),1),EQ=a(D(),1);var BQ=a(Or(),1);var jL=a(b(),1);function UL({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:n,toggleUseFeaturedImage:i}){let s=l=>{l.length===1&&r({url:(0,BQ.createBlobURL)(l[0])})};return(0,jL.jsx)(l4.MediaPlaceholder,{icon:(0,jL.jsx)(l4.BlockIcon,{icon:nm}),labels:{title:(0,EQ.__)("Cover")},onSelect:r,allowedTypes:X3,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:s,onError:o,style:n,children:t})}var NQ=a(H(),1),IQ=a(R(),1);var RQ=a(b(),1),dCe={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:pCe}=q(IQ.privateApis);function WL({className:e,height:t,minHeight:r,onResize:o,onResizeStart:n,onResizeStop:i,showHandle:s,size:l,width:c,...u}){let[d,p]=(0,NQ.useState)(!1),m={className:T(e,{"is-resizing":d}),enable:dCe,onResizeStart:(f,g,h)=>{n(h.clientHeight),o(h.clientHeight)},onResize:(f,g,h)=>{o(h.clientHeight),d||p(!0)},onResizeStop:(f,g,h)=>{i(h.clientHeight),p(!1)},showHandle:s,size:l,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:d}};return(0,RQ.jsx)(pCe,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:m,...u})}var mCe={grad:.9,turn:360,rad:360/(2*Math.PI)},wu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},qo=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Is=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},OQ=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},DQ=function(e){return{r:Is(e.r,0,255),g:Is(e.g,0,255),b:Is(e.b,0,255),a:Is(e.a)}},GL=function(e){return{r:qo(e.r),g:qo(e.g),b:qo(e.b),a:qo(e.a,3)}},fCe=/^#([0-9a-f]{3,8})$/i,c4=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},HQ=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=Math.max(t,r,o),s=i-Math.min(t,r,o),l=s?i===t?(r-o)/s:i===r?2+(o-t)/s:4+(t-r)/s:0;return{h:60*(l<0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:n}},jQ=function(e){var t=e.h,r=e.s,o=e.v,n=e.a;t=t/360*6,r/=100,o/=100;var i=Math.floor(t),s=o*(1-r),l=o*(1-(t-i)*r),c=o*(1-(1-t+i)*r),u=i%6;return{r:255*[o,l,s,s,c,o][u],g:255*[c,o,o,l,s,s][u],b:255*[s,s,c,o,o,l][u],a:n}},LQ=function(e){return{h:OQ(e.h),s:Is(e.s,0,100),l:Is(e.l,0,100),a:Is(e.a)}},AQ=function(e){return{h:qo(e.h),s:qo(e.s),l:qo(e.l),a:qo(e.a,3)}},MQ=function(e){return jQ((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},bb=function(e){return{h:(t=HQ(e)).h,s:(n=(200-(r=t.s))*(o=t.v)/100)>0&&n<200?r*o/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,r,o,n},gCe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hCe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vCe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yCe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ZL={string:[[function(e){var t=fCe.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?qo(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?qo(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=vCe.exec(e)||yCe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:DQ({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=gCe.exec(e)||hCe.exec(e);if(!t)return null;var r,o,n=LQ({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(mCe[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return MQ(n)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=n===void 0?1:n;return wu(t)&&wu(r)&&wu(o)?DQ({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,n=e.a,i=n===void 0?1:n;if(!wu(t)||!wu(r)||!wu(o))return null;var s=LQ({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return MQ(s)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,i=n===void 0?1:n;if(!wu(t)||!wu(r)||!wu(o))return null;var s=(function(l){return{h:OQ(l.h),s:Is(l.s,0,100),v:Is(l.v,0,100),a:Is(l.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return jQ(s)},"hsv"]]},zQ=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]},bCe=function(e){return typeof e=="string"?zQ(e.trim(),ZL.string):typeof e=="object"&&e!==null?zQ(e,ZL.object):[null,void 0]};var $L=function(e,t){var r=bb(e);return{h:r.h,s:Is(r.s+100*t,0,100),l:r.l,a:r.a}},qL=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},VQ=function(e,t){var r=bb(e);return{h:r.h,s:r.s,l:Is(r.l+100*t,0,100),a:r.a}},KL=(function(){function e(t){this.parsed=bCe(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 qo(qL(this.rgba),2)},e.prototype.isDark=function(){return qL(this.rgba)<.5},e.prototype.isLight=function(){return qL(this.rgba)>=.5},e.prototype.toHex=function(){return t=GL(this.rgba),r=t.r,o=t.g,n=t.b,s=(i=t.a)<1?c4(qo(255*i)):"","#"+c4(r)+c4(o)+c4(n)+s;var t,r,o,n,i,s},e.prototype.toRgb=function(){return GL(this.rgba)},e.prototype.toRgbString=function(){return t=GL(this.rgba),r=t.r,o=t.g,n=t.b,(i=t.a)<1?"rgba("+r+", "+o+", "+n+", "+i+")":"rgb("+r+", "+o+", "+n+")";var t,r,o,n,i},e.prototype.toHsl=function(){return AQ(bb(this.rgba))},e.prototype.toHslString=function(){return t=AQ(bb(this.rgba)),r=t.h,o=t.s,n=t.l,(i=t.a)<1?"hsla("+r+", "+o+"%, "+n+"%, "+i+")":"hsl("+r+", "+o+"%, "+n+"%)";var t,r,o,n,i},e.prototype.toHsv=function(){return t=HQ(this.rgba),{h:qo(t.h),s:qo(t.s),v:qo(t.v),a:qo(t.a,3)};var t},e.prototype.invert=function(){return hr({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),hr($L(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),hr($L(this.rgba,-t))},e.prototype.grayscale=function(){return hr($L(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),hr(VQ(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),hr(VQ(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"?hr({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):qo(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=bb(this.rgba);return typeof t=="number"?hr({h:t,s:r.s,l:r.l,a:r.a}):qo(r.h)},e.prototype.isEqual=function(t){return this.toHex()===hr(t).toHex()},e})(),hr=function(e){return e instanceof KL?e:new KL(e)},FQ=[],UQ=function(e){e.forEach(function(t){FQ.indexOf(t)<0&&(t(KL,ZL),FQ.push(t))})};function WQ(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 n in r)o[r[n]]=n;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,c,u=o[this.toHex()];if(u)return u;if(s?.closest){var d=this.toRgb(),p=1/0,m="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var g in r){var h=(l=d,c=i[g],Math.pow(l.r-c.r,2)+Math.pow(l.g-c.g,2)+Math.pow(l.b-c.b,2));h<p&&(p=h,m=g)}return m}},t.string.push([function(s){var l=s.toLowerCase(),c=l==="transparent"?"#0000":r[l];return c?new e(c).toRgb():null},"name"])}function _Ce(e){var t=e.toString(16);return t.length===1?"0"+t:t}function GQ(e){return"#"+e.map(_Ce).join("")}function xCe(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function kCe(e){return e?wCe(e)?e:[e]:[]}function wCe(e){return Array.isArray(e[0])}function QL(e,t,r){for(var o=0;o<r.length;o++)if(CCe(e,t,r[o]))return!0;return!1}function CCe(e,t,r){switch(r.length){case 3:if(SCe(e,t,r))return!0;break;case 4:if(TCe(e,t,r))return!0;break;case 5:if(PCe(e,t,r))return!0;break;default:return!1}}function SCe(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function TCe(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 u4(e,t,r){return e>=t-r&&e<=t+r}function PCe(e,t,r){var o=r[0],n=r[1],i=r[2],s=r[3],l=r[4],c=e[t+3],u=u4(c,s,l);return s?!!(!c&&u||u4(e[t],o,l)&&u4(e[t+1],n,l)&&u4(e[t+2],i,l)&&u):u}function ECe(e,t,r){for(var o={},n=24,i=r.ignoredColor,s=r.step,l=[0,0,0,0,0],c=0;c<t;c+=s){var u=e[c],d=e[c+1],p=e[c+2],m=e[c+3];if(!(i&&QL(e,c,i))){var f=Math.round(u/n)+","+Math.round(d/n)+","+Math.round(p/n);o[f]?o[f]=[o[f][0]+u*m,o[f][1]+d*m,o[f][2]+p*m,o[f][3]+m,o[f][4]+1]:o[f]=[u*m,d*m,p*m,m,1],l[4]<o[f][4]&&(l=o[f])}}var g=l[0],h=l[1],v=l[2],x=l[3],_=l[4];return x?[Math.round(g/x),Math.round(h/x),Math.round(v/x),Math.round(x/_)]:r.defaultColor}function BCe(e,t,r){for(var o=0,n=0,i=0,s=0,l=0,c=r.ignoredColor,u=r.step,d=0;d<t;d+=u){var p=e[d+3],m=e[d]*p,f=e[d+1]*p,g=e[d+2]*p;c&&QL(e,d,c)||(o+=m,n+=f,i+=g,s+=p,l++)}return s?[Math.round(o/s),Math.round(n/s),Math.round(i/s),Math.round(s/l)]:r.defaultColor}function NCe(e,t,r){for(var o=0,n=0,i=0,s=0,l=0,c=r.ignoredColor,u=r.step,d=0;d<t;d+=u){var p=e[d],m=e[d+1],f=e[d+2],g=e[d+3];c&&QL(e,d,c)||(o+=p*p*g,n+=m*m*g,i+=f*f*g,s+=g,l++)}return s?[Math.round(Math.sqrt(o/s)),Math.round(Math.sqrt(n/s)),Math.round(Math.sqrt(i/s)),Math.round(s/l)]:r.defaultColor}function $Q(e){return xb(e,"defaultColor",[0,0,0,0])}function xb(e,t,r){return e[t]===void 0?r:e[t]}var qQ=10,YL=100;function ICe(e){return e.search(/\.svg(\?|$)/i)!==-1}function RCe(e){if(KQ(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&ICe(e.src)&&(t=r=YL),{width:t,height:r}}return LCe(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function ZQ(e){return ACe(e)?"canvas":DCe(e)?"offscreencanvas":MCe(e)?"imagebitmap":e.src}function KQ(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function DCe(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function LCe(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function ACe(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function MCe(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function zCe(e,t){var r=xb(t,"left",0),o=xb(t,"top",0),n=xb(t,"width",e.width),i=xb(t,"height",e.height),s=n,l=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:s,destHeight:l};var c;return n>i?(c=n/i,s=YL,l=Math.round(s/c)):(c=i/n,l=YL,s=Math.round(l/c)),(s>n||l>i||s<qQ||l<qQ)&&(s=n,l=i),{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:s,destHeight:l}}var VCe=typeof window>"u";function FCe(){return VCe?new OffscreenCanvas(1,1):document.createElement("canvas")}var YQ="FastAverageColor: ";function d4(e,t,r){t||(console.error(YQ+e),r&&console.error(r))}function _b(e){return Error(YQ+e)}var QQ=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(_b("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(_b("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(KQ(t)&&!t.complete)return this.bindImageEvents(t,r);var n=this.getColor(t,r);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,r){r=r||{};var o=$Q(r);if(!t)return d4("call .getColor(null) without resource",r.silent),this.prepareResult(o);var n=RCe(t),i=zCe(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return d4('incorrect sizes for resource "'.concat(ZQ(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=FCe()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return d4("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 s=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 l=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;s=this.getColorFromArray4(l,r)}catch(c){d4("security error (CORS) for resource ".concat(ZQ(t),`.
  18  Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(s)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var o=4,n=t.length,i=$Q(r);if(n<o)return i;var s=n-n%o,l=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=BCe;break;case"sqrt":c=NCe;break;case"dominant":c=ECe;break;default:throw _b("".concat(r.algorithm," is unknown algorithm"))}return c(t,s,{defaultColor:i,ignoredColor:kCe(r.ignoredColor),step:l})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),o=[t[0],t[1],t[2],t[3]/255],n=xCe(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:GQ(r),hexa:GQ(t),isDark:n,isLight:!n}},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(n,i){var s=function(){u();var d=o.getColor(t,r);d.error?i(d.error):n(d)},l=function(){u(),i(_b('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(_b('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",s),t.removeEventListener("error",l),t.removeEventListener("abort",c)};t.addEventListener("load",s),t.addEventListener("error",l),t.addEventListener("abort",c)})},e})();var JQ=a(Ad(),1);UQ([WQ]);var Th="#FFF",eX="#000";function OCe(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 p4(){return p4.fastAverageColor||(p4.fastAverageColor=new QQ),p4.fastAverageColor}var Jm=th(async e=>{if(!e)return Th;let{r:t,g:r,b:o,a:n}=hr(Th).toRgb();try{let i=(0,JQ.applyFilters)("media.crossOrigin",void 0,e);return(await p4().getColorAsync(e,{defaultColor:[t,r,o,n*255],silent:!0,crossOrigin:i})).hex}catch{return Th}});function Md(e,t,r){if(t===r||e===100)return hr(t).isDark();let o=hr(t).alpha(e/100).toRgb(),n=hr(r).toRgb(),i=OCe(o,n);return hr(i).isDark()}var rr=a(b(),1),{openMediaEditorModalKey:HCe}=q(to.privateApis);function jCe(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,XL.__)("Write title\u2026"),...e}]]}var UCe=(e,t)=>!e&&(0,rX.isBlobURL)(t);function WCe({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:n,setOverlayColor:i,toggleSelection:s,context:{postId:l,postType:c}}){let{contentPosition:u,id:d,url:p,backgroundType:m,useFeaturedImage:f,dimRatio:g,focalPoint:h,hasParallax:v,isDark:x,isRepeated:_,minHeight:k,minHeightUnit:y,alt:w,allowedBlocks:C,templateLock:S,tagName:P="div",isUserOverlayColor:N,sizeSlug:I,poster:B}=e,[E]=(0,kb.useEntityProp)("postType",c,"featured_media",l),{getSettings:L}=(0,Tl.useSelect)(to.store),A=(0,Tl.useSelect)(ye=>ye(to.store).getSettings()[HCe],[]),{__unstableMarkNextChangeAsNotPersistent:U,replaceInnerBlocks:$}=(0,Tl.useDispatch)(to.store),W=(0,Tl.useRegistry)(),G=(0,Hn.useRef)({attributes:e,overlayColor:o});(0,Hn.useLayoutEffect)(()=>{G.current={attributes:e,overlayColor:o}});let{media:F}=(0,Tl.useSelect)(ye=>({media:E&&f?ye(kb.store).getEntityRecord("postType","attachment",E,{context:"view"}):void 0}),[E,f]),Z=F?.media_details?.sizes?.[I]?.source_url??F?.source_url;(0,Hn.useEffect)(()=>{(async()=>{if(!f)return;let ye=await Jm(Z),{attributes:_e,overlayColor:_t}=G.current,Jt=_t.color;_e.isUserOverlayColor||(Jt=ye,U(),i(Jt));let Co=Md(_e.dimRatio,Jt,ye);U(),n({isDark:Co,isUserOverlayColor:_e.isUserOverlayColor||!1})})()},[Z,U,n,i,f]);let j=f?Z:p?.replaceAll("&amp;","&"),Y=f?tr:m,{createErrorNotice:ee}=(0,Tl.useDispatch)(oX.store),{gradientClass:te,gradientValue:Q}=(0,to.__experimentalUseGradient)(),le=()=>{let{getBlocks:ye,isBlockSelected:_e,getSelectedBlocksInitialCaretPosition:_t}=W.select(to.store);if(ye(t).length>0)return;let[Jt]=q(W.select(to.store)).getBlockSettings(t,"typography.fontSizes"),Co=Jt?.length>0;$(t,(0,tX.createBlocksFromInnerBlocksTemplate)(jCe({fontSize:Co?"large":void 0})),_e(t),_t())},oe=async ye=>{let _e=sQ(ye),_t=[ye?.type,ye?.media_type].includes(tr),Jt=await Jm(_t?ye?.url:void 0),{attributes:Co,overlayColor:al}=G.current,la=al.color;Co.isUserOverlayColor||(la=Jt,i(la),U());let ps=Co.url===void 0&&Co.dimRatio===100?50:Co.dimRatio,bi=Md(ps,la,Jt);if(Y===tr&&_e?.id){let{imageDefaultSize:il}=L();I&&(ye?.sizes?.[I]||ye?.media_details?.sizes?.[I])?(_e.sizeSlug=I,_e.url=ye?.sizes?.[I]?.url||ye?.media_details?.sizes?.[I]?.source_url):ye?.sizes?.[il]||ye?.media_details?.sizes?.[il]?(_e.sizeSlug=il,_e.url=ye?.sizes?.[il]?.url||ye?.media_details?.sizes?.[il]?.source_url):_e.sizeSlug=Qm}W.batch(()=>{n({..._e,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:ps,isDark:bi,isUserOverlayColor:Co.isUserOverlayColor||!1}),le()})},ce=()=>{let ye=o.color;!N&&o.color&&(ye=eX,i(void 0),U());let _e=Md(g,ye,Th);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:_e})},pe=async ye=>{let _e=await Jm(j),{attributes:_t}=G.current,Jt=Md(_t.dimRatio,ye,_e);i(ye),U(),W.batch(()=>{n({isUserOverlayColor:!0,isDark:Jt}),ye&&le()})},be=async ye=>{let _e=await Jm(j),{overlayColor:_t}=G.current,Jt=Md(ye,_t.color,_e);n({dimRatio:ye,isDark:Jt})},Te=ye=>{ee(ye,{type:"snackbar"})},ae=ye=>{n({url:ye,backgroundType:ku,dimRatio:p===void 0&&g===100?50:g,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:se,isFetchingEmbed:ue}=(0,Tl.useSelect)(ye=>{if(Y!==ku||!j)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:_e,isRequestingEmbedPreview:_t}=ye(kb.store);return{embedPreview:_e(j),isFetchingEmbed:_t(j)}},[j,Y]),Oe=(0,Hn.useMemo)(()=>Y!==ku||!se?.html?null:SQ(se.html),[se,Y]),[Pe,ge]=(0,Hn.useState)(!1),et=UCe(d,j),me=tr===Y,ct=Dr===Y,Ne=ku===Y,ie=(0,to.useBlockEditingMode)(),Ee=ie==="default",[ve,{height:Xt,width:Gt}]=(0,m4.useResizeObserver)(),br=(0,Hn.useMemo)(()=>({height:y==="px"&&k?k:"auto",width:"auto"}),[k,y]),wo=k&&y?`${k}${y}`:k,In=!(v||_),on={minHeight:wo||void 0},vi=j?`url(${j})`:void 0,aa=mn(h),us={backgroundColor:o.color},Rn={objectPosition:h&&In?mn(h):void 0},Xl=!!(j||o.color||Q),ol=(0,Tl.useSelect)(ye=>ye(to.store).getBlock(t).innerBlocks.length>0,[t]),ds=(0,Hn.useRef)(),nl=(0,to.useBlockProps)({ref:ds}),su=(0,to.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{allowedBlocks:C,templateLock:S,dropZoneElement:ds.current}),ia=(0,Hn.useRef)(),sa=(0,Hn.useRef)(),yi={isVideoBackground:ct,isImageBackground:me,mediaElement:ia,hasInnerBlocks:ol,url:j,isImgElement:In,overlayColor:o},Up=(0,Hn.useCallback)(()=>{!d||!A||A({id:d,onClose:()=>{sa.current?.focus()},onUpdate:async({id:ye,url:_e})=>{if(typeof ye!="number")return;ye!==d&&_e&&ge(!0);let _t={id:ye,backgroundType:tr,..._e?{url:_e}:{},...ye!==d?{sizeSlug:Qm}:{}};if(_e){let al=await Jm(_e),{attributes:la,overlayColor:ps}=G.current,bi=ps.color;la.isUserOverlayColor||(bi=al,i(bi),U()),_t.isDark=Md(la.dimRatio,bi,al),_t.isUserOverlayColor=la.isUserOverlayColor||!1}n(_t);let{hasParallax:Jt,isRepeated:Co}=G.current.attributes;(Jt||Co)&&ge(!1)}})},[d,A,n,i,U]),re=Ee&&!f&&me&&!!d&&!!j&&!et&&!!A,Ve=async()=>{let ye=!f,_e=ye?await Jm(Z):Th,{attributes:_t,overlayColor:Jt}=G.current,Co=_t.isUserOverlayColor?Jt.color:_e;_t.isUserOverlayColor||(i(ye?Co:void 0),U());let al=_t.dimRatio===100?50:_t.dimRatio,la=Md(al,Co,_e);W.batch(()=>{n({id:void 0,url:void 0,useFeaturedImage:ye,dimRatio:al,backgroundType:f?tr:void 0,isDark:la}),ye&&le()})},Ye=(0,rr.jsx)(PQ,{attributes:e,setAttributes:n,onSelectMedia:oe,onSelectEmbedUrl:ae,currentSettings:yi,toggleUseFeaturedImage:Ve,onClearMedia:ce,blockEditingMode:ie,onEditMedia:Up,editMediaButtonRef:sa,showEditMediaButton:re,isEditMediaDisabled:Pe}),Ct=(0,rr.jsx)(_Q,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:pe,coverRef:ds,currentSettings:yi,toggleUseFeaturedImage:Ve,updateDimRatio:be,onClearMedia:ce,featuredImage:F}),Qe={className:"block-library-cover__resize-container",clientId:t,height:Xt,minHeight:wo,onResizeStart:()=>{n({minHeightUnit:"px"}),s(!1)},onResize:ye=>{n({minHeight:ye})},onResizeStop:ye=>{s(!0),n({minHeight:ye})},showHandle:!e.style?.dimensions?.aspectRatio,size:br,width:Gt};if(!f&&!ol&&!Xl)return(0,rr.jsxs)(rr.Fragment,{children:[Ye,Ct,Ee&&r&&(0,rr.jsx)(WL,{...Qe}),(0,rr.jsxs)(P,{...nl,className:T("is-placeholder",nl.className),style:{...nl.style,minHeight:wo||void 0},children:[ve,(0,rr.jsx)(UL,{onSelectMedia:oe,onError:Te,toggleUseFeaturedImage:Ve,children:(0,rr.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,rr.jsx)(to.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:pe,clearable:!1,presentation:"toggle-buttons","aria-label":(0,XL.__)("Overlay color")})})})]})]});let Qr=T({"is-dark-theme":x,"is-light":!x,"is-transient":et||Pe,"has-parallax":v,"is-repeated":_,"has-custom-content-position":!ya(u)},Ka(u)),Fa=j||!f||f&&!j;return(0,rr.jsxs)(rr.Fragment,{children:[Ye,Ct,(0,rr.jsxs)(P,{...nl,className:T(Qr,nl.className),style:{...on,...nl.style},"data-url":j,children:[ve,!j&&f&&(0,rr.jsx)(ef.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),j&&me&&(In?(0,rr.jsx)("img",{ref:ia,className:"wp-block-cover__image-background",alt:w,src:j,style:Rn,onLoad:()=>ge(!1),onError:()=>ge(!1)}):(0,rr.jsx)("div",{ref:ia,role:w?"img":void 0,"aria-label":w||void 0,className:T(Qr,"wp-block-cover__image-background"),style:{backgroundImage:vi,backgroundPosition:aa}})),j&&ct&&(0,rr.jsx)("video",{ref:ia,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:j,poster:B,style:Rn}),Ne&&Oe&&(0,rr.jsx)("div",{ref:ia,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:Rn,children:(0,rr.jsx)(ef.SandBox,{allowSameOrigin:!0,html:Oe,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),Ne&&!Oe&&ue&&(0,rr.jsx)(ef.Spinner,{}),Fa&&(0,rr.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",Ns(g),{[o.class]:o.class,"has-background-dim":g!==void 0,"wp-block-cover__gradient-background":j&&Q&&g!==0,"has-background-gradient":Q,[te]:te}),style:{backgroundImage:Q,...us}}),(et||Pe)&&(0,rr.jsx)(ef.Spinner,{}),(0,rr.jsx)(UL,{disableMediaButtons:!0,onSelectMedia:oe,onError:Te,toggleUseFeaturedImage:Ve}),(0,rr.jsx)("div",{...su})]}),Ee&&r&&(0,rr.jsx)(WL,{...Qe})]})}var nX=(0,m4.compose)([(0,to.withColors)({overlayColor:"background-color"})])(WCe);var f4={$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:{__experimentalOnEnter:!0,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 zd=a(R(),1);var fc=a(b(),1);function aX({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:s,focalPoint:l,useFeaturedImage:c,hasParallax:u,isDark:d,isRepeated:p,overlayColor:m,url:f,alt:g,id:h,minHeight:v,minHeightUnit:x,tagName:_,sizeSlug:k,poster:y}=e,w=(0,zd.getColorClassName)("background-color",m),C=(0,zd.__experimentalGetGradientClass)(r),S=v&&x?`${v}${x}`:v,P=tr===t,N=Dr===t,I=ku===t,B=!(u||p),E={minHeight:S||void 0},L={backgroundColor:w?void 0:i,background:n||void 0},A=l&&B?mn(l):void 0,U=f?`url(${f})`:void 0,$=mn(l),W=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!ya(o)},Ka(o)),G=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${k}`]:k,"has-parallax":u,"is-repeated":p}),F=r||n;return(0,fc.jsxs)(_,{...zd.useBlockProps.save({className:W,style:E}),children:[!c&&P&&f&&(B?(0,fc.jsx)("img",{className:G,alt:g,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}):(0,fc.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:G,style:{backgroundPosition:$,backgroundImage:U}})),N&&f&&(0,fc.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:y,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}),I&&f&&(0,fc.jsx)("figure",{className:T("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,fc.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,fc.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",w,Ns(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&F&&s!==0,"has-background-gradient":F,[C]:C}),style:L}),(0,fc.jsx)("div",{...zd.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var Ai=a(K(),1),iX=a(R(),1);var{cleanEmptyObject:g4}=q(iX.privateApis),$Ce={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:s})=>(0,Ai.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:s?.color?.duotone}}},[(0,Ai.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:n})=>(0,Ai.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:Dr,anchor:n},[(0,Ai.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:n,gradient:i,style:s}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,Ai.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let l=n||i||s?.color?.background||s?.color?.gradient?void 0:50,c={align:r,anchor:o,dimRatio:l,overlayColor:n,customOverlayColor:s?.color?.background,gradient:i,customGradient:s?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:g4({...e?.style,color:s?.color?{...s?.color,background:void 0,gradient:void 0}:void 0})};return(0,Ai.createBlock)("core/cover",c,[(0,Ai.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===tr:!r&&!o&&!n&&!i,transform:({title:e,url:t,alt:r,align:o,id:n,anchor:i,style:s})=>(0,Ai.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:s?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===Dr:!r&&!o&&!n&&!i,transform:({title:e,url:t,align:r,id:o,anchor:n})=>(0,Ai.createBlock)("core/video",{caption:e,src:t,id:o,align:r,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let r={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:g4({...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=g4(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,Ai.createBlock)("core/group",o,t[0]?.innerBlocks):(0,Ai.createBlock)("core/group",{...r,...o,style:g4({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Ai.createBlock)("core/group",{...e,...r},t)}}]},sX=$Ce;var JL=a(D(),1);var qCe=[{name:"cover",title:(0,JL.__)("Cover"),description:(0,JL.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:nm}],lX=qCe;var{fieldsKey:ZCe,formKey:KCe}=q(cX.privateApis),{name:uX}=f4,h4={icon:nm,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,eA.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:sX,save:aX,edit:nX,deprecated:lQ,variations:lX};window.__experimentalContentOnlyInspectorFields&&(h4[ZCe]=[{id:"background",label:(0,eA.__)("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})}],h4[KCe]={fields:["background"]});var YCe=()=>M({name:uX,metadata:f4,settings:h4});var rA={};J(rA,{init:()=>rSe,metadata:()=>v4,name:()=>yX,settings:()=>b4});var Cu=a(D(),1),vX=a(K(),1);var v4={$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 Pl=a(R(),1),Fd=a(V(),1),Vd=a(D(),1),dX=a(H(),1),pX=a(O(),1),mX=a(uc(),1);var Ya=a(b(),1);function XCe({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:n,summary:i,allowedBlocks:s,placeholder:l}=e,c=(0,Pl.useBlockProps)(),u=(0,Pl.useInnerBlocksProps)(c,{__experimentalCaptureToolbars:!0,allowedBlocks:s}),[d,p]=(0,dX.useState)(n),m=X(),f=(0,pX.useSelect)(v=>v(Pl.store).hasSelectedInnerBlock(r,!0),[r]),g=v=>{v.key==="Enter"&&!v.shiftKey&&(p(x=>!x),v.preventDefault())},h=v=>{v.key===" "&&v.preventDefault()};return(0,Ya.jsxs)(Ya.Fragment,{children:[(0,Ya.jsx)(Pl.InspectorControls,{children:(0,Ya.jsx)(Fd.__experimentalToolsPanel,{label:(0,Vd.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:m,children:(0,Ya.jsx)(Fd.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Vd.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,Ya.jsx)(Fd.ToggleControl,{label:(0,Vd.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,Ya.jsx)(Pl.InspectorControls,{group:"advanced",children:(0,Ya.jsx)(Fd.TextControl,{label:(0,Vd.__)("Name attribute"),value:o||"",onChange:v=>t({name:v}),help:(0,Vd.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,Ya.jsxs)("details",{...u,open:d||f,onToggle:v=>p(v.target.open),name:o||"",children:[(0,Ya.jsx)("summary",{onKeyDown:(0,mX.withIgnoreIMEEvents)(g),onKeyUp:h,children:(0,Ya.jsx)(Pl.RichText,{identifier:"summary","aria-label":(0,Vd.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:l||(0,Vd.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:v=>t({summary:v})})}),u.children]})]})}var fX=XCe;var Eh=a(R(),1),Ph=a(b(),1);function gX({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",n=Eh.useBlockProps.save();return(0,Ph.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,Ph.jsx)("summary",{children:(0,Ph.jsx)(Eh.RichText.Content,{value:o})}),(0,Ph.jsx)(Eh.InnerBlocks.Content,{})]})}var y4=a(K(),1),hX={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,y4.createBlock)("core/details",{},e.map(t=>(0,y4.cloneSanitizedBlock)(t)))}}]};var{fieldsKey:JCe,formKey:eSe}=q(vX.privateApis),{name:yX}=v4,tSe=[["core/paragraph",{placeholder:(0,Cu.__)("Type / to add a hidden block")}]],b4={icon:TE,template:tSe,example:{attributes:{summary:(0,Cu.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Cu.__)("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,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o;if(t==="accessibility")return n?(0,Cu.sprintf)((0,Cu.__)("Details. %s"),r):(0,Cu.__)("Details. Empty.")},save:gX,edit:fX,transforms:hX};window.__experimentalContentOnlyInspectorFields&&(b4[JCe]=[{id:"summary",label:(0,Cu.__)("Summary"),type:"text",Edit:"rich-text"}],b4[eSe]={fields:["summary"]});var rSe=()=>M({name:yX,metadata:v4,settings:b4});var sA={};J(sA,{init:()=>pSe,metadata:()=>lc,name:()=>eJ,settings:()=>tJ});var rf=a(D(),1),Rh=a(H(),1),wb=a(O(),1),C4=a(R(),1),iA=a(ne(),1);var tf=a(D(),1),gc=a(V(),1),_4=a(R(),1);var Rs=a(b(),1);function oSe(e){return e?(0,tf.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,tf.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var nSe=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:n,switchBackToURLInput:i})=>{let s=X();return(0,Rs.jsxs)(Rs.Fragment,{children:[(0,Rs.jsx)(_4.BlockControls,{children:(0,Rs.jsx)(gc.ToolbarGroup,{children:t&&(0,Rs.jsx)(gc.ToolbarButton,{className:"components-toolbar__control",label:(0,tf.__)("Edit URL"),icon:pm,onClick:i})})}),r&&e&&(0,Rs.jsx)(_4.InspectorControls,{children:(0,Rs.jsx)(gc.__experimentalToolsPanel,{label:(0,tf.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:s,children:(0,Rs.jsx)(gc.__experimentalToolsPanelItem,{label:(0,tf.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{n(!o)},children:(0,Rs.jsx)(gc.ToggleControl,{label:(0,tf.__)("Resize for smaller devices"),checked:o,help:oSe,onChange:n})})})})]})},bX=nSe;var Be=a(V(),1),Re=a(b(),1),El=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Re.jsx)(Be.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"})}),x4=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Re.jsx)(Be.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"})}),oA=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Re.jsx)(Be.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"})}),Bh=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Re.jsx)(Be.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"})}),_X={foreground:"#000000",src:(0,Re.jsx)(Be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})})},xX={foreground:"#ff0000",src:(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})})},kX={foreground:"#3b5998",src:(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})})},wX=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.G,{children:(0,Re.jsx)(Be.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"})})}),CX={foreground:"#0073AA",src:(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.G,{children:(0,Re.jsx)(Be.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"})})})},SX={foreground:"#1db954",src:(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})})},TX=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})}),PX={foreground:"#1ab7ea",src:(0,Re.jsx)(Be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.G,{children:(0,Re.jsx)(Be.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"})})})},EX=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})}),BX={foreground:"#35465c",src:(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})})},NX=(0,Re.jsxs)(Be.SVG,{viewBox:"0 0 24 24",children:[(0,Re.jsx)(Be.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,Re.jsx)(Be.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,Re.jsx)(Be.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"})]}),IX=(0,Re.jsxs)(Be.SVG,{viewBox:"0 0 24 24",children:[(0,Re.jsx)(Be.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Re.jsx)(Be.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,Re.jsx)(Be.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Re.jsx)(Be.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,Re.jsx)(Be.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Re.jsx)(Be.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),RX=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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"})}),DX=(0,Re.jsx)(Be.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Re.jsx)(Be.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"})}),LX=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 44 44",children:(0,Re.jsx)(Be.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"})}),AX={foreground:"#f43e37",src:(0,Re.jsxs)(Be.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Re.jsx)(Be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Re.jsx)(Be.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"})]})},MX=(0,Re.jsx)(Be.SVG,{viewBox:"0 0 24 24",children:(0,Re.jsx)(Be.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 zX=a(V(),1),nA=a(b(),1),aSe=()=>(0,nA.jsx)("div",{className:"wp-block-embed is-loading",children:(0,nA.jsx)(zX.Spinner,{})}),VX=aSe;var hc=a(D(),1),Od=a(V(),1),FX=a(R(),1);var Qa=a(b(),1);function OX({icon:e,label:t,value:r,onSubmit:o,onChange:n,cannotEmbed:i,fallback:s,tryAgain:l}){return(0,Qa.jsxs)(Od.Placeholder,{icon:(0,Qa.jsx)(FX.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,hc.__)("Paste a link to the content you want to display on your site."),children:[(0,Qa.jsxs)("form",{onSubmit:o,children:[(0,Qa.jsx)(Od.__experimentalInputControl,{type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,hc.__)("Enter URL to embed here\u2026"),onChange:n}),(0,Qa.jsx)(Od.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,hc._x)("Embed","button label")})]}),(0,Qa.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Qa.jsx)(mu,{openInNewTab:!0,href:(0,hc.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,hc.__)("Learn more about embeds")})}),i&&(0,Qa.jsxs)(ks,{direction:"column",gap:"md",className:"components-placeholder__error",children:[(0,Qa.jsx)("div",{className:"components-placeholder__instructions",children:(0,hc.__)("Sorry, this content could not be embedded.")}),(0,Qa.jsxs)(ks,{direction:"row",gap:"md",justify:"flex-start",children:[(0,Qa.jsx)(Od.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,hc._x)("Try again","button label")}),s&&(0,Qa.jsx)(Od.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,hc._x)("Convert to link","button label")})]})]})]})}var Ih=a(D(),1),w4=a(V(),1),jX=a(R(),1),UX=a(H(),1),WX=a(dr(),1);var k4=a(he(),1),Nh=a(H(),1),aA=a(b(),1),iSe={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function HX({html:e}){let t=(0,Nh.useRef)(),r=(0,Nh.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:s,value:l})=>{s!=="style"&&(i[iSe[s]||s]=l)}),i},[e]);return(0,Nh.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:n}=o;function i({data:{secret:s,message:l,value:c}={}}){l!=="height"||s!==r["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,aA.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,aA.jsx)("iframe",{ref:(0,k4.useMergeRefs)([t,(0,k4.useFocusableIframe)()]),title:r.title,...r})})}var Xa=a(b(),1);function GX({preview:e,previewable:t,url:r,type:o,isSelected:n,className:i,icon:s,label:l}){let[c,u]=(0,UX.useState)(!1);!n&&c&&u(!1);let d=()=>{u(!0)},{scripts:p}=e,m=o==="photo"?hq(e):e.html,f=(0,WX.getAuthority)(r),g=(0,Ih.sprintf)((0,Ih.__)("Embedded content from %s"),f),h=T(o,i,"wp-block-embed__wrapper");return(0,Xa.jsx)(Xa.Fragment,{children:t?o==="wp-embed"?(0,Xa.jsx)(HX,{html:m}):(0,Xa.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,Xa.jsx)(w4.SandBox,{allowSameOrigin:!0,html:m,scripts:p,title:g,type:h,onFocus:d}),!c&&(0,Xa.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d})]}):(0,Xa.jsxs)(w4.Placeholder,{icon:(0,Xa.jsx)(jX.BlockIcon,{icon:s,showColors:!0}),label:l,children:[(0,Xa.jsx)("p",{className:"components-placeholder__error",children:(0,Xa.jsx)("a",{href:r,children:r})}),(0,Xa.jsx)("p",{className:"components-placeholder__error",children:(0,Ih.sprintf)((0,Ih.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Mi=a(b(),1),sSe=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:n},attributes:i,isSelected:s,onReplace:l,setAttributes:c,insertBlocksAfter:u,onFocus:d}=e,p={title:(0,rf._x)("Embed","block title"),icon:El},{icon:m,title:f}=fq(t)||p,[g,h]=(0,Rh.useState)(n),[v,x]=(0,Rh.useState)(!1),{invalidateResolution:_}=(0,wb.useDispatch)(iA.store),{__unstableMarkNextChangeAsNotPersistent:k}=(0,wb.useDispatch)(C4.store),{preview:y,fetching:w,themeSupportsResponsive:C,cannotEmbed:S,hasResolved:P}=(0,wb.useSelect)(F=>{let{getEmbedPreview:Z,isPreviewEmbedFallback:j,isRequestingEmbedPreview:Y,getThemeSupports:ee,hasFinishedResolution:te}=F(iA.store);if(!n)return{fetching:!1,cannotEmbed:!1};let Q=Z(n),le=j(n),oe=Q?.html===!1&&Q?.type===void 0,ce=Q?.data?.status===404,pe=!!Q&&!oe&&!ce;return{preview:pe?Q:void 0,fetching:Y(n),themeSupportsResponsive:ee()["responsive-embeds"],cannotEmbed:!pe||le,hasResolved:te("getEmbedPreview",[n])}},[n]),N=()=>yq(i,y,f,o);function I(F){let{className:Z}=i,{html:j}=y;c({allowResponsive:F,className:FD(j,Z,o&&F)})}(0,Rh.useEffect)(()=>{if(!S||!P||!n)return;let F=n.replace(/\/$/,"");F!==n&&(h(F),x(!1),k(),c({url:F}))},[n,S,P,c,k]),(0,Rh.useEffect)(()=>{if(!y||v)return;let F=N();if(l){let j=Cd(e,F);if(j){k(),c(j.attributes);return}}Object.keys(F).some(j=>F[j]!==i[j])&&(k(),c(F))},[y,v]);let B=(0,C4.useBlockProps)();if(w)return(0,Mi.jsx)("div",{...B,children:(0,Mi.jsx)(VX,{})});let E=(0,rf.sprintf)((0,rf.__)("%s URL"),f);if(!y||S||v)return(0,Mi.jsx)("div",{...B,children:(0,Mi.jsx)(OX,{icon:m,label:E,onFocus:d,onSubmit:F=>{F&&F.preventDefault();let Z=Xy(g),j=wd(i.className);h(Z),c({url:Z,...nh(Z)?.attributes,className:j}),x(!1)},value:g,cannotEmbed:S,onChange:F=>h(F),fallback:l?()=>vq(g,l):void 0,tryAgain:()=>{_("getEmbedPreview",[g])}})});let{caption:A,type:U,allowResponsive:$,className:W}=N(),G=T(W,e.className);return(0,Mi.jsxs)(Mi.Fragment,{children:[(0,Mi.jsx)(bX,{showEditButton:y&&!S,themeSupportsResponsive:C,blockSupportsResponsive:o,allowResponsive:$,toggleResponsive:I,switchBackToURLInput:()=>x(!0)}),(0,Mi.jsxs)("figure",{...B,className:T(B.className,G,{[`is-type-${U}`]:U,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Mi.jsx)(GX,{preview:y,previewable:r,className:G,url:g,type:U,caption:A,onCaptionChange:F=>c({caption:F}),isSelected:s,icon:m,label:E,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Mi.jsx)($o,{attributes:i,setAttributes:c,isSelected:s,insertBlocksAfter:u,label:(0,rf.__)("Embed caption text"),showToolbarButton:s})]})]})},$X=sSe;var of=a(R(),1),Cb=a(b(),1);function qX({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=T("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,Cb.jsxs)("figure",{...of.useBlockProps.save({className:i}),children:[(0,Cb.jsx)("div",{className:"wp-block-embed__wrapper",children:`
  19  ${t}
  20  `}),!of.RichText.isEmpty(r)&&(0,Cb.jsx)(of.RichText.Content,{className:(0,of.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var S4=a(K(),1),T4=a(dr(),1);var{name:ZX}=lc,lSe={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,T4.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,T4.getFilename)(t)||"")},transform:e=>{let t=Xy(e.textContent.trim());return(0,S4.createBlock)(ZX,{url:t,...nh(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=Xy(t.content?.trim());return(0,S4.createBlock)(ZX,{url:r,...nh(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,S4.createBlock)("core/paragraph",{content:o,className:wd(r)})}}]},KX=lSe;var Se=a(D(),1);function Tt(e){return(0,Se.sprintf)((0,Se.__)("%s Embed"),e)}var YX=[{name:"twitter",title:Tt("X"),icon:_X,keywords:["x","twitter","tweet",(0,Se.__)("social")],description:(0,Se.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:Tt("YouTube"),icon:xX,keywords:[(0,Se.__)("music"),(0,Se.__)("video")],description:(0,Se.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:Tt("Facebook"),icon:kX,keywords:[(0,Se.__)("social")],description:(0,Se.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:Tt("Instagram"),icon:wX,keywords:[(0,Se.__)("image"),(0,Se.__)("social")],description:(0,Se.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:Tt("WordPress"),icon:CX,keywords:[(0,Se.__)("post"),(0,Se.__)("blog")],description:(0,Se.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:Tt("SoundCloud"),icon:x4,keywords:[(0,Se.__)("music"),(0,Se.__)("audio")],description:(0,Se.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:Tt("Spotify"),icon:SX,keywords:[(0,Se.__)("music"),(0,Se.__)("audio")],description:(0,Se.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:Tt("Flickr"),icon:TX,keywords:[(0,Se.__)("image")],description:(0,Se.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:Tt("Vimeo"),icon:PX,keywords:[(0,Se.__)("video")],description:(0,Se.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:Tt("Animoto"),icon:IX,description:(0,Se.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:Tt("Cloudup"),icon:El,description:(0,Se.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:Tt("CollegeHumor"),icon:Bh,description:(0,Se.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:Tt("Crowdsignal"),icon:El,keywords:["polldaddy",(0,Se.__)("survey")],description:(0,Se.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:Tt("Dailymotion"),icon:RX,keywords:[(0,Se.__)("video")],description:(0,Se.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:Tt("Imgur"),icon:oA,description:(0,Se.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:Tt("Issuu"),icon:El,description:(0,Se.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:Tt("Kickstarter"),icon:El,description:(0,Se.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:Tt("Mixcloud"),icon:x4,keywords:[(0,Se.__)("music"),(0,Se.__)("audio")],description:(0,Se.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:Tt("Pocket Casts"),icon:AX,keywords:[(0,Se.__)("podcast"),(0,Se.__)("audio")],description:(0,Se.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:Tt("Reddit"),icon:EX,description:(0,Se.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:Tt("ReverbNation"),icon:x4,description:(0,Se.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:Tt("Scribd"),icon:El,description:(0,Se.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:Tt("SmugMug"),icon:oA,description:(0,Se.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:Tt("Speaker Deck"),icon:El,description:(0,Se.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:Tt("TikTok"),icon:Bh,keywords:[(0,Se.__)("video")],description:(0,Se.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:Tt("TED"),icon:Bh,description:(0,Se.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:Tt("Tumblr"),icon:BX,keywords:[(0,Se.__)("social")],description:(0,Se.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:Tt("VideoPress"),icon:Bh,keywords:[(0,Se.__)("video")],description:(0,Se.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:Tt("WordPress.tv"),icon:Bh,description:(0,Se.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:Tt("Amazon Kindle"),icon:NX,keywords:[(0,Se.__)("ebook")],description:(0,Se.__)("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:Tt("Pinterest"),icon:DX,keywords:[(0,Se.__)("social"),(0,Se.__)("bookmark")],description:(0,Se.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:Tt("Wolfram"),icon:LX,description:(0,Se.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:Tt("Bluesky"),icon:MX,description:(0,Se.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];YX.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var QX=YX;var nf=a(R(),1);var af=a(b(),1),{attributes:XX}=lc,cSe={attributes:XX,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=T("wp-block-embed",{[`is-type-$o}`]:o,[`is-provider-$n}`]:n,[`wp-block-embed-$n}`]:n});return(0,af.jsxs)("figure",{...nf.useBlockProps.save({className:i}),children:[(0,af.jsx)("div",{className:"wp-block-embed__wrapper",children:`
  21  $t}
  22  `}),!nf.RichText.isEmpty(r)&&(0,af.jsx)(nf.RichText.Content,{tagName:"figcaption",value:r})]})}},uSe={attributes:XX,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let n=T("wp-block-embed",{[`is-type-$r}`]:r,[`is-provider-$o}`]:o});return(0,af.jsxs)("figure",{className:n,children:[`
  23  $e}
  24  `,!nf.RichText.isEmpty(t)&&(0,af.jsx)(nf.RichText.Content,{tagName:"figcaption",value:t})]})}},dSe=[cSe,uSe],JX=dSe;var{name:eJ}=lc,tJ={icon:El,edit:$X,save:qX,transforms:KX,variations:QX,deprecated:JX},pSe=()=>M({name:eJ,metadata:lc,settings:tJ});var pA={};J(pA,{init:()=>CSe,metadata:()=>E4,name:()=>kJ,settings:()=>B4});var Ah=a(D(),1);var xJ=a(K(),1);var Io=a(R(),1),Bl=a(D(),1),or=a(b(),1),mSe={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:n,textLinkTarget:i,showDownloadButton:s,downloadButtonText:l,displayPreview:c,previewHeight:u}=e,d=Io.RichText.isEmpty(o)?(0,Bl.__)("PDF embed"):(0,Bl.sprintf)((0,Bl.__)("Embed of %s."),o),p=!Io.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,or.jsxs)("div",{...Io.useBlockProps.save(),children:[c&&(0,or.jsx)(or.Fragment,{children:(0,or.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$u}px`},"aria-label":d})}),p&&(0,or.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,or.jsx)(Io.RichText.Content,{value:o})}),s&&(0,or.jsx)("a",{href:t,className:T("wp-block-file__button",(0,Io.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":m,children:(0,or.jsx)(Io.RichText.Content,{value:l})})]})}},fSe={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:n,textLinkTarget:i,showDownloadButton:s,downloadButtonText:l,displayPreview:c,previewHeight:u}=e,d=Io.RichText.isEmpty(o)?(0,Bl.__)("PDF embed"):(0,Bl.sprintf)((0,Bl.__)("Embed of %s."),o),p=!Io.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,or.jsxs)("div",{...Io.useBlockProps.save(),children:[c&&(0,or.jsx)(or.Fragment,{children:(0,or.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$u}px`},"aria-label":d})}),p&&(0,or.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,or.jsx)(Io.RichText.Content,{value:o})}),s&&(0,or.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":m,children:(0,or.jsx)(Io.RichText.Content,{value:l})})]})}},gSe={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:n,showDownloadButton:i,downloadButtonText:s,displayPreview:l,previewHeight:c}=e,u=Io.RichText.isEmpty(r)?(0,Bl.__)("PDF embed"):(0,Bl.sprintf)((0,Bl.__)("Embed of %s."),r);return t&&(0,or.jsxs)("div",{...Io.useBlockProps.save(),children:[l&&(0,or.jsx)(or.Fragment,{children:(0,or.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$c}px`},"aria-label":u})}),!Io.RichText.isEmpty(r)&&(0,or.jsx)("a",{href:o,target:n,rel:n?"noreferrer noopener":void 0,children:(0,or.jsx)(Io.RichText.Content,{value:r})}),i&&(0,or.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,or.jsx)(Io.RichText.Content,{value:s})})]})}},hSe=[mSe,fSe,gSe],rJ=hSe;var cA=a(Or(),1),Lh=a(V(),1),Dh=a(O(),1),vn=a(R(),1),sJ=a(H(),1),lJ=a(he(),1),Su=a(D(),1);var cJ=a(ne(),1),uA=a(xr(),1),uJ=a(dr(),1);var gn=a(D(),1),hn=a(V(),1),oJ=a(R(),1);var Zo=a(b(),1);function nJ({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:s,changeDisplayPreview:l,previewHeight:c,changePreviewHeight:u}){let{href:d,textLinkHref:p,attachmentPage:m}=e,f=X(),g=[{value:d,label:(0,gn.__)("URL")}];return m&&(g=[{value:d,label:(0,gn.__)("Media file")},{value:m,label:(0,gn.__)("Attachment page")}]),(0,Zo.jsx)(Zo.Fragment,{children:(0,Zo.jsxs)(oJ.InspectorControls,{children:[d.endsWith(".pdf")&&(0,Zo.jsxs)(hn.__experimentalToolsPanel,{label:(0,gn.__)("PDF settings"),resetAll:()=>{l(!0),u(600)},dropdownMenuProps:f,children:[(0,Zo.jsx)(hn.__experimentalToolsPanelItem,{label:(0,gn.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>l(!0),children:(0,Zo.jsx)(hn.ToggleControl,{label:(0,gn.__)("Show inline embed"),help:s?(0,gn.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!s,onChange:l})}),s&&(0,Zo.jsx)(hn.__experimentalToolsPanelItem,{label:(0,gn.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,Zo.jsx)(hn.RangeControl,{label:(0,gn.__)("Height in pixels"),min:P4,max:Math.max(lA,c),value:c,onChange:u})})]}),(0,Zo.jsxs)(hn.__experimentalToolsPanel,{label:(0,gn.__)("Settings"),resetAll:()=>{o(d),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,Zo.jsx)(hn.__experimentalToolsPanelItem,{label:(0,gn.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==d,onDeselect:()=>o(d),children:(0,Zo.jsx)(hn.SelectControl,{label:(0,gn.__)("Link to"),value:p,options:g,onChange:o})}),(0,Zo.jsx)(hn.__experimentalToolsPanelItem,{label:(0,gn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,Zo.jsx)(hn.ToggleControl,{label:(0,gn.__)("Open in new tab"),checked:t,onChange:n})}),(0,Zo.jsx)(hn.__experimentalToolsPanelItem,{label:(0,gn.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,Zo.jsx)(hn.ToggleControl,{label:(0,gn.__)("Show download button"),checked:r,onChange:i})})]})]})})}var iJ=()=>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)&&!(aJ("AcroPDF.PDF")||aJ("PDF.PdfCtrl"))),aJ=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var ro=a(b(),1),P4=200,lA=2e3;function vSe({text:e,disabled:t}){let{createNotice:r}=(0,Dh.useDispatch)(uA.store),o=(0,lJ.useCopyToClipboard)(e,()=>{r("info",(0,Su.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,ro.jsx)(Lh.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,Su.__)("Copy URL")})}function ySe({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:n,fileName:i,href:s,textLinkHref:l,textLinkTarget:c,showDownloadButton:u,downloadButtonText:d,displayPreview:p,previewHeight:m}=e,[f,g]=(0,sJ.useState)(e.blob),{media:h}=(0,Dh.useSelect)(L=>({media:n?L(cJ.store).getEntityRecord("postType","attachment",n,{context:"view"}):void 0}),[n]),{createErrorNotice:v}=(0,Dh.useDispatch)(uA.store),{toggleSelection:x}=(0,Dh.useDispatch)(vn.store);tc({url:f,onChange:_,onError:k});function _(L){if(!L||!L.url){r({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),g();return}if((0,cA.isBlobURL)(L.url)){g(L.url);return}let A=(L.mime||L.mime_type)==="application/pdf"||(0,uJ.getFilename)(L.url).toLowerCase().endsWith(".pdf"),U={displayPreview:A?e.displayPreview??!0:void 0,previewHeight:A?e.previewHeight??600:void 0};r({href:L.url,fileName:L.title,textLinkHref:L.url,id:L.id,fileId:`wp-block-file--media-$o}`,blob:void 0,...U}),g()}function k(L){r({href:void 0}),v(L,{type:"snackbar"})}function y(L){r({textLinkHref:L})}function w(L){r({textLinkTarget:L?"_blank":!1})}function C(L){r({showDownloadButton:L})}function S(L){r({displayPreview:L})}function P(L,A,U,$){x(!0);let W=parseInt(m+$.height,10);r({previewHeight:W})}function N(L){let A=Math.max(parseInt(L,10),P4);r({previewHeight:A})}let I=h&&h.link,B=(0,vn.useBlockProps)({className:T(!!f&&(0,Lh.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),E=iJ()&&p;return!s&&!f?(0,ro.jsx)("div",{...B,children:(0,ro.jsx)(vn.MediaPlaceholder,{icon:(0,ro.jsx)(vn.BlockIcon,{icon:xv}),labels:{title:(0,Su.__)("File"),instructions:(0,Su.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:_,onError:k,accept:"*"})}):(0,ro.jsxs)(ro.Fragment,{children:[(0,ro.jsx)(nJ,{hrefs:{href:s||f,textLinkHref:l,attachmentPage:I},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:y,changeOpenInNewWindow:w,changeShowDownloadButton:C,displayPreview:p,changeDisplayPreview:S,previewHeight:m,changePreviewHeight:N}),(0,ro.jsxs)(vn.BlockControls,{group:"other",children:[(0,ro.jsx)(vn.MediaReplaceFlow,{mediaId:n,mediaURL:s,accept:"*",onSelect:_,onError:k,onReset:()=>_(void 0)}),(0,ro.jsx)(vSe,{text:s,disabled:(0,cA.isBlobURL)(s)})]}),(0,ro.jsxs)("div",{...B,children:[E&&(0,ro.jsxs)(Lh.ResizableBox,{size:{height:m,width:"100%"},minHeight:P4,maxHeight:lA,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>x(!1),onResizeStop:P,showHandle:t,children:[(0,ro.jsx)("object",{className:"wp-block-file__preview",data:s,type:"application/pdf","aria-label":(0,Su.__)("Embed of the selected PDF file.")}),!t&&(0,ro.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,ro.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,ro.jsx)(vn.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Su.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:L=>r({fileName:rb(L)}),href:l}),u&&(0,ro.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,ro.jsx)(vn.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Su.__)("Download button text"),className:T("wp-block-file__button",(0,vn.__experimentalGetElementClassName)("button")),value:d,withoutInteractiveFormatting:!0,placeholder:(0,Su.__)("Add text\u2026"),onChange:L=>r({downloadButtonText:rb(L)})})})]})]})]})}var dJ=ySe;var E4={$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 Tu=a(R(),1),Nl=a(b(),1);function pJ({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:s,downloadButtonText:l,displayPreview:c,previewHeight:u}=e,d=Tu.RichText.isEmpty(o)?"PDF embed":o.toString(),p=!Tu.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,Nl.jsxs)("div",{...Tu.useBlockProps.save(),children:[c&&(0,Nl.jsx)(Nl.Fragment,{children:(0,Nl.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`$u}px`},"aria-label":d})}),p&&(0,Nl.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Nl.jsx)(Tu.RichText.Content,{value:o})}),s&&(0,Nl.jsx)("a",{href:t,className:T("wp-block-file__button",(0,Tu.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":m,children:(0,Nl.jsx)(Tu.RichText.Content,{value:l})})]})}var Sb=a(Or(),1),sf=a(K(),1),fJ=a(O(),1),gJ=a(ne(),1),hJ=a(D(),1),vJ=a(dr(),1),mJ=(0,hJ._x)("Download","button label"),dA=(e,t,r)=>({type:"block",blocks:[e],isMatch:({id:o})=>{if(!o)return!1;let{getEntityRecord:n}=(0,fJ.select)(gJ.store),i=n("postType","attachment",o,{context:"view"});return!!i&&i.mime_type.includes(t)},transform:o=>(0,sf.createBlock)(e,{[r]:o.href,caption:o.fileName,id:o.id,anchor:o.anchor})}),_Se={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,Sb.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,sf.createBlock)("core/video",{blob:(0,Sb.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,sf.createBlock)("core/image",{blob:(0,Sb.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,sf.createBlock)("core/audio",{blob:(0,Sb.createBlobURL)(r)})):t.push((0,sf.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:mJ}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,sf.createBlock)("core/file",{href:t,fileName:e.caption||(0,vJ.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:mJ})}}],to:[dA("core/audio","audio","src"),dA("core/video","video","src"),dA("core/image","image","url")]},yJ=_Se;var bJ=a(D(),1),xSe=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,bJ._x)("Download","button label")}}],_J=xSe;var{fieldsKey:kSe,formKey:wSe}=q(xJ.privateApis),{name:kJ}=E4,B4={icon:xv,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,Ah._x)("Armstrong_Small_Step","Name of the file")}},transforms:yJ,deprecated:rJ,edit:dJ,save:pJ,variations:_J};window.__experimentalContentOnlyInspectorFields&&(B4[kSe]=[{id:"file",label:(0,Ah.__)("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,Ah.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,Ah.__)("Button Text"),type:"text",Edit:"rich-text"}],B4[wSe]={fields:["file","fileName","downloadButtonText"]});var CSe=()=>M({name:kJ,metadata:E4,settings:B4});var SA={};J(SA,{init:()=>b6e,metadata:()=>G4,name:()=>zee,settings:()=>Vee});var Wr=a(R(),1),SJ=a(K(),1);var vc="none",yc="media",Mh="lightbox",bc="attachment",wJ="file",CJ="post",Tb="large",N4=8;var $e=a(b(),1),TJ="file",PJ="post";function zh(e){return Math.min(3,e?.images?.length)}function SSe(e,t){switch(t){case TJ:return{href:e?.source_url||e?.url,linkDestination:yc};case PJ:return{href:e?.link,linkDestination:bc};case yc:return{href:e?.source_url||e?.url,linkDestination:yc};case bc:return{href:e?.link,linkDestination:bc};case vc:return{href:void 0,linkDestination:vc}}return{}}function Vh(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(s=>TSe(s,e.sizeSlug,t)),{images:o,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function TSe(e,t,r){return(0,SJ.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...SSe(e,r)})}var PSe={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,n=T("has-nested-images",{[`columns-$r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Wr.useBlockProps.save({className:n}),s=Wr.useInnerBlocksProps.save(i);return(0,$e.jsxs)("figure",{...s,children:[s.children,!Wr.RichText.isEmpty(t)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},ESe={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=zh(e),imageCrop:o,caption:n,linkTo:i}=e,s=`columns-$r} $o?"is-cropped":""}`;return(0,$e.jsxs)("figure",{...Wr.useBlockProps.save({className:s}),children:[(0,$e.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let c;switch(i){case TJ:c=l.fullUrl||l.url;break;case PJ:c=l.link;break}let u=(0,$e.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,$e.jsx)("li",{className:"blocks-gallery-item",children:(0,$e.jsxs)("figure",{children:[c?(0,$e.jsx)("a",{href:c,children:u}):u,!Wr.RichText.isEmpty(l.caption)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Wr.RichText.isEmpty(n)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return Vh(e)}},BSe={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 Vh(e)},save({attributes:e}){let{images:t,columns:r=zh(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,$e.jsxs)("figure",{className:`columns-$r} $o?"is-cropped":""}`,children:[(0,$e.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let l;switch(i){case"media":l=s.fullUrl||s.url;break;case"attachment":l=s.link;break}let c=(0,$e.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,$e.jsx)("li",{className:"blocks-gallery-item",children:(0,$e.jsxs)("figure",{children:[l?(0,$e.jsx)("a",{href:l,children:c}):c,!Wr.RichText.isEmpty(s.caption)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Wr.RichText.isEmpty(n)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},NSe={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 Vh(e)},save({attributes:e}){let{images:t,columns:r=zh(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,$e.jsxs)("figure",{className:`columns-$r} $o?"is-cropped":""}`,children:[(0,$e.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let l;switch(i){case"media":l=s.fullUrl||s.url;break;case"attachment":l=s.link;break}let c=(0,$e.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,$e.jsx)("li",{className:"blocks-gallery-item",children:(0,$e.jsxs)("figure",{children:[l?(0,$e.jsx)("a",{href:l,children:c}):c,!Wr.RichText.isEmpty(s.caption)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Wr.RichText.isEmpty(n)&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},ISe={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=zh(e),imageCrop:o,linkTo:n}=e;return(0,$e.jsx)("ul",{className:`columns-$r} $o?"is-cropped":""}`,children:t.map(i=>{let s;switch(n){case"media":s=i.fullUrl||i.url;break;case"attachment":s=i.link;break}let l=(0,$e.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,$e.jsx)("li",{className:"blocks-gallery-item",children:(0,$e.jsxs)("figure",{children:[s?(0,$e.jsx)("a",{href:s,children:l}):l,i.caption&&i.caption.length>0&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return Vh(e)}},RSe={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 Vh(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=zh(e),imageCrop:o,linkTo:n}=e;return(0,$e.jsx)("ul",{className:`columns-$r} $o?"is-cropped":""}`,children:t.map(i=>{let s;switch(n){case"media":s=i.url;break;case"attachment":s=i.link;break}let l=(0,$e.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,$e.jsx)("li",{className:"blocks-gallery-item",children:(0,$e.jsxs)("figure",{children:[s?(0,$e.jsx)("a",{href:s,children:l}):l,i.caption&&i.caption.length>0&&(0,$e.jsx)(Wr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},DSe={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=zh(e),align:o,imageCrop:n,linkTo:i}=e,s=T(`columns-$r}`,{alignnone:o==="none","is-cropped":n});return(0,$e.jsx)("div",{className:s,children:t.map(l=>{let c;switch(i){case"media":c=l.url;break;case"attachment":c=l.link;break}let u=(0,$e.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id});return(0,$e.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,$e.jsx)("a",{href:c,children:u}):u},l.id||l.url)})})},migrate(e){return Vh(e)}},EJ=[PSe,ESe,BSe,NSe,ISe,RSe,DSe];var Bt=a(V(),1),uo=a(R(),1),Yd=a(H(),1),We=a(D(),1),Rb=a(O(),1),Bee=a(K(),1),wA=a(Or(),1),Nee=a(xr(),1);var BJ=a(R(),1);var NJ=a(b(),1),I4=(0,NJ.jsx)(BJ.BlockIcon,{icon:lm});function R4(e){return e?Math.min(3,e):3}function D4(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function _c(e){let t=D4(e)?e.type:void 0;return typeof t!="string"||t===""||t==="flex"}var L4=(e,t="large")=>{let r=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));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 xc=20,lf="none",Hd="media",jd="attachment",mA="custom",IJ=["noopener"],Ud=["image"];var fA=["flex","grid"],Wd="full";function Pb(e,t,r,o,n){switch(r||t){case wJ:case yc:return{href:e?.source_url||e?.url,linkDestination:Hd,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case CJ:case bc:return{href:e?.link,linkDestination:jd,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case Mh:return{href:void 0,lightbox:n?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:lf};case vc:return{href:void 0,linkDestination:lf,lightbox:void 0}}return{}}function RJ(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function LSe(e){let t=e;return e!==void 0&&t&&(IJ.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 Eb(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=LSe(t),{linkTarget:r,rel:o}}function DJ(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function gA(e){return Ud.some(t=>e.type.indexOf(t)===0)}function cf({x:e,y:t}={x:.5,y:.5}){return`$Math.round(e*100)}% $Math.round(t*100)}%`}var hA=a(D(),1);var A4=a(b(),1);function LJ(e){let{attributes:t,isSelected:r,setAttributes:o,insertBlocksAfter:n,blockProps:i,__unstableLayoutClassNames:s,isContentLocked:l,multiGallerySelection:c}=e,{align:u,columns:d,imageCrop:p,layout:m}=t,f=_c(m);return(0,A4.jsxs)("figure",{...i,className:T(i.className,s,"blocks-gallery-grid",{[`align$u}`]:u,[`columns-$d}`]:f&&d!==void 0,"columns-default":f&&d===void 0,"is-cropped":f&&p}),children:[i.children,(0,A4.jsx)($o,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:n,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,hA.__)("Gallery caption text"),placeholder:(0,hA.__)("Add gallery caption")})]})}var AJ=a(H(),1);function MJ(e,t,r){return(0,AJ.useMemo)(()=>o(),[e,t]);function o(){if(!e||e.length===0)return;let{imageSizes:n}=r(),i={};t&&(i=e.reduce((l,c)=>{if(!c.id)return l;let u=n.reduce((d,p)=>{let m=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...d,[p.slug]:m||f}},{});return{...l,[parseInt(c.id,10)]:u}},{}));let s=Object.values(i);return n.filter(({slug:l})=>s.some(c=>c[l])).map(({name:l,slug:c})=>({value:c,label:l}))}}var M4=a(H(),1);function zJ(e,t){let[r,o]=(0,M4.useState)([]);return(0,M4.useMemo)(()=>n(),[e,t]);function n(){let i=!1,s=r.filter(c=>e.find(u=>c.clientId===u.clientId));s.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!s.find(u=>u.id===c.id)&&(i=!0,s.push(c))});let l=e.filter(c=>!s.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||l?.length>0)&&o([...s,...l]),l.length>0?l:null}}var FJ=a(O(),1),OJ=a(ne(),1),VJ=[];function HJ(e){return(0,FJ.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?VJ:t(OJ.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??VJ},[e])}var Il=a(R(),1),hee=a(O(),1);var uf=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),n=e;return o.forEach(i=>{n=n?.[i]}),n??r};var WJ=a(UJ(),1);function ASe(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,WJ.getCSSValueFromRawStyle)(uf(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function MSe(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 GJ(e,t){if(!e||!t)return e;let r=ASe(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url?{...r,url:MSe(r.url,t?._links?.["wp:theme-file"])}:r}function zSe(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(r=>{let o=hr(r).toRgb();t.r.push(o.r/255),t.g.push(o.g/255),t.b.push(o.b/255),t.a.push(o.a)}),t}function ZJ(e){return`$e}{filter:none}`}function KJ(e,t){return`$e}{filter:url(#$t})}`}function YJ(e,t){let r=zSe(t);return`
  25  <svg
  26      xmlns:xlink="http://www.w3.org/1999/xlink"
  27      viewBox="0 0 0 0"
  28      width="0"
  29      height="0"
  30      focusable="false"
  31      role="none"
  32      aria-hidden="true"
  33      style="visibility: hidden; position: absolute; left: -9999px; overflow: hidden;"
  34  >
  35      <defs>
  36          <filter id="$e}">
  37              <!--
  38                  Use sRGB instead of linearRGB so transparency looks correct.
  39                  Use perceptual brightness to convert to grayscale.
  40              -->
  41              <feColorMatrix color-interpolation-filters="sRGB" type="matrix" values=" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "></feColorMatrix>
  42              <!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. -->
  43              <feComponentTransfer color-interpolation-filters="sRGB">
  44                  <feFuncR type="table" tableValues="$r.r.join(" ")}"></feFuncR>
  45                  <feFuncG type="table" tableValues="$r.g.join(" ")}"></feFuncG>
  46                  <feFuncB type="table" tableValues="$r.b.join(" ")}"></feFuncB>
  47                  <feFuncA type="table" tableValues="$r.a.join(" ")}"></feFuncA>
  48              </feComponentTransfer>
  49              <!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. -->
  50              <feComposite in2="SourceGraphic" operator="in"></feComposite>
  51          </filter>
  52      </defs>
  53  </svg>`}var QJ={mobile:"480px",tablet:"782px"},XJ=/^(\d+|\d*\.\d+)(px|em|rem)$/,VSe=16;function FSe(e){return"mobile"in e||"tablet"in e}function OSe(e){return!e||typeof e!="object"?{}:FSe(e)?e:e.settings?.viewport??{}}function HSe(e){return typeof e=="string"&&XJ.test(e.trim())}function vA(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(XJ);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*VSe}function yA(e){let t=OSe(e),r={},o={};Object.keys(QJ).forEach(l=>{let c=l,u=t[c],d=vA(u);d!==void 0&&HSe(u)&&(r[c]=u.trim(),o[c]=d)});let n=Object.keys(r);if(!n.length)return{...QJ};if(n.length===1)return r;let i=r.mobile,s=r.tablet;return o.mobile>=o.tablet?{mobile:i}:{mobile:i,tablet:s}}function JJ(e){let t=yA(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 z4(e,t,r,{resolveRefs:o=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let n=s=>{Object.keys(s).forEach(l=>{let c=s[l];if(typeof c=="object"&&c!==null)if(c.ref!==void 0)if(typeof c.ref!="string"||c.ref.trim()==="")delete s[l];else{let u=uf(e,c.ref);u!=null?s[l]=u:delete s[l]}else n(c),Object.keys(c).length===0&&delete s[l]})},i=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return o&&n(i),i}var xA="default";function oee(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===xA)&&(!r||r===xA)}function jSe(e){return oee(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==xA)}function USe(e,t){let r=jSe(t);return r.length?uf(e,r):e}var WSe=new Set(["blocks","variations","css"]),bA=Object.freeze({value:{},sources:{}}),GSe={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function Gd(e){let t=GSe[e];return t?{...t}:null}function $d(e,t){return!e||!t?null:{styles:e,source:t}}function $Se(e){return e.join(".")}function qSe(e){return{...e}}function nee(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function _A(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function qd(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!WSe.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}nee(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var eee=new Set(["backgroundImage"]);function aee(e,t,r,o,n,i=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let s of Object.keys(t)){let l=t[s];if(nee(l))continue;if(_A(l)){if(l.ref.trim()==="")continue;let u=uf(r,l.ref);if(u==null||_A(u))continue;l=u}let c=[...i,s];if(!eee.has(s)&&l!==null&&typeof l=="object"&&!Array.isArray(l)&&!_A(l)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=aee({...u},l,r,o,n,c)}else e[s]=eee.has(s)&&l!==null&&typeof l=="object"&&!Array.isArray(l)?{...l}:l,o&&n&&(n[$Se(c)]=qSe(o))}return e}function V4(e,t){if(!e)return null;let r=USe(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var ZSe=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function KSe(e){return e.startsWith("elements.")?!1:ZSe.some(t=>e===t||e.startsWith(`$t}.`))}function iee(e,t){if(!e||typeof e!="object")return;let[r,...o]=t;if(o.length===0){delete e[r];return}let n=e[r];n&&typeof n=="object"&&(iee(n,o),Object.keys(n).length===0&&delete e[r])}function YSe(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&KSe(r)&&(iee(e,r.split(".")),delete t[r])}function QSe(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let n=GJ(o,{...t,_links:r??void 0});n!==void 0&&(e.background.backgroundImage=n)}function tee(e,{blockName:t,variationName:r=null,elements:o=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return bA;let s=e.styles,l={viewport:n,pseudoState:i},c=s,u=s.blocks?.[t]??null,d=(o??[]).map(v=>s.elements?.[v]??null).filter(v=>!!v),p=r?z4(e,t,r)??null:null,m=[$d(qd(c),Gd("root")),...d.map(v=>$d(qd(v),Gd("element"))),u?$d(qd(u),Gd("block")):null,p?$d(qd(p),Gd("blockVariation")):null];oee(l)||m.push($d(qd(V4(c,l)),Gd("root")),...d.map(v=>$d(qd(V4(v,l)),Gd("element"))),u?$d(qd(V4(u,l)),Gd("block")):null,p?$d(qd(V4(p,l)),Gd("blockVariation")):null);let f=m.filter(Boolean);if(f.length===0)return bA;let g={},h=f.reduce((v,x)=>aee(v,x.styles,e,x.source,g),{});return YSe(h,g),QSe(h,e,e._links??null),{value:h,sources:g}}var XSe={},ree=new WeakMap;function see(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return tee(e,t);let o=ree.get(r);o||(o=new WeakMap,ree.set(r,o));let n=e?._links??XSe,i=o.get(n);i||(i=new Map,o.set(n,i));let s=`$t.elements?.join(",")??""}:$t.viewport??""}:$t.pseudoState??""}`,l=(t.blockName||"")+""+(t.variationName||"")+""+s;if(i.has(l))return i.get(l);let c=tee(e,t);return i.set(l,c),c}var lee=a(zR(),1),{lock:cee,unlock:vst}=(0,lee.__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 Fh={};cee(Fh,{getResponsiveMediaQueries:JJ,getViewportBreakpoints:yA,getViewportBreakpointValueInPixels:vA,getDuotoneFilter:YJ,getDuotoneStylesheet:KJ,getDuotoneUnsetStylesheet:ZJ,resolveStyle:see,getVariationStyle:z4});function Bb(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function F4(e){return Number.isInteger(e)&&e>=1&&e<=N4}function O4(e,t){return!Bb(e)||!Bb(e[t])?{}:e[t]}function uee(e){if(!Bb(e))return e;let t=Object.entries(e).filter(([,r])=>r!==void 0);return t.length?Object.fromEntries(t):void 0}function dee({style:e,viewport:t,baseSettings:r,settings:o}){let n=Bb(e)?e:{},i={...O4(n,t)};Object.entries(o).forEach(([c,u])=>{u===void 0||u===r[c]?delete i[c]:i[c]=u});let s=uee(i),l={...n};return s?l[t]=s:delete l[t],uee(l)}function JSe(e){return`$e}.wp-block-gallery.has-nested-images:where(.is-layout-flex)`}function pee(e){return`$JSe(e)} figure.wp-block-image:not(#individual-image)`}function e6e(e,t){let r=t===1?"100%":`calc((100% - (var(--wp--style--unstable-gallery-gap, 16px) * $t-1})) / $t})`;return`$pee(e)}{width:$r} !important;}`}function t6e(e,t){let r=pee(e),o=`$r} > div:not(.components-drop-zone)`,n=`$r} > a`,i=`$r} a,$r} img`;return t?`$r}{align-self:inherit !important;margin-bottom:0 !important;}$o},$n}{display:flex !important;}$i}{width:100% !important;flex:1 0 0% !important;height:100% !important;object-fit:cover !important;}`:`$r}{align-self:auto !important;margin-top:0 !important;margin-bottom:auto !important;}$o}{display:block !important;}$n}{display:inline-block !important;}$i}{width:auto !important;flex:0 1 auto !important;height:auto !important;object-fit:fill !important;}`}function mee(e,t,r){return Bb(r)?Object.entries(r).map(([o,n])=>{if(typeof n!="string")return"";let i=O4(t,o),s="";return F4(i.columns)&&(s+=e6e(e,i.columns)),typeof i.imageCrop=="boolean"&&(s+=t6e(e,i.imageCrop)),s?`$n}{$s}}`:""}).join(""):""}var{getResponsiveMediaQueries:r6e}=q(Fh),{globalStylesDataKey:o6e}=q(Il.privateApis),n6e="core/gallery",H4="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";function fee(e,t){let r=H4;return t&&(r=typeof t=="string"?(0,Il.__experimentalGetGapCSSValue)(t)||H4:(0,Il.__experimentalGetGapCSSValue)(t?.left)||H4),`$e} {
  54          --wp--style--unstable-gallery-gap: $r==="0"?"0px":r}
  55      }`}function gee(e){if(Object.hasOwn(e?.spacing||{},"blockGap"))return e.spacing.blockGap}function vee({style:e,clientId:t}){let r=`.wp-block-gallery-$t}`,[o]=(0,Il.useSettings)("viewport"),i=(0,hee.useSelect)(p=>p(Il.store).getSettings()?.[o6e],[])?.blocks?.[n6e]||{},s=gee(e),l=i?.spacing?.blockGap??H4,u=fee(r,s===void 0?l:s),d=r6e(o);return Object.entries(d).forEach(([p,m])=>{let f=gee(e?.[p]),g=s===void 0?i?.[p]?.spacing?.blockGap:void 0,h=f===void 0?g:f;h!=null&&(u+=`$m}{$fee(r,h)}}`)}),u+=mee(r,e,d),(0,Il.useStyleOverride)({css:u}),null}var Ib=a(H(),1),jh=a(O(),1),xee=a(R(),1),W4=a(ne(),1),kee=a(K(),1);var j4=a(D(),1),Zd="core/attached-media",Oh="date",Hh="desc",a6e={[Zd]:{title:(0,j4.__)("Use attached images"),description:(0,j4.__)("Images attached to the post."),emptyMessage:(0,j4.__)("Images attached to the post will appear here.")}};function U4(e){return a6e[e]}var Nb=100;function yee(e,{postId:t}){let{source:r,args:o={}}=e??{};return r===Zd&&t?{parent:t,per_page:Nb,media_type:"image",orderby:o.orderBy==="date"||o.orderBy==="title"?o.orderBy:Oh,order:o.order==="asc"||o.order==="desc"?o.order:Hh}:null}var bee=[];function i6e(e,t){let{sizeSlug:r,linkTo:o,linkTarget:n,aspectRatio:i}=t,s=!!i&&i!=="auto";return{id:e.id,...L4(e,r),...Pb(e,o),...Eb(n,t),sizeSlug:r,caption:e.caption?.raw||"",alt:e.alt_text||"",aspectRatio:s?i:void 0,scale:s?"cover":void 0}}function _ee(e,t){return e.map(r=>(0,kee.createBlock)("core/image",i6e(r,t)))}function wee({attributes:e,setAttributes:t,clientId:r,postId:o,postType:n}){let{dynamicContent:i}=e,s=!!n,l=U4(i?.source),c=i?.args?.orderBy??Oh,u=i?.args?.order??Hh,d=(0,jh.useRegistry)(),{replaceInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=(0,jh.useDispatch)(xee.store),f=(0,Ib.useMemo)(()=>i?yee(i,{postId:o}):null,[i,o]),{dynamicMedia:g,dynamicMediaTotal:h,isResolvingDynamic:v}=(0,jh.useSelect)(L=>{if(!f)return{dynamicMedia:bee,dynamicMediaTotal:0,isResolvingDynamic:!1};let A=["postType","attachment",f];return{dynamicMedia:L(W4.store).getEntityRecords(...A)??bee,dynamicMediaTotal:L(W4.store).getEntityRecordsTotalItems(...A)??0,isResolvingDynamic:!L(W4.store).hasFinishedResolution("getEntityRecords",A)}},[f]),x=h>Nb,{sizeSlug:_,linkTo:k,linkTarget:y,aspectRatio:w}=e,C=(0,Ib.useMemo)(()=>({sizeSlug:_,linkTo:k,linkTarget:y,aspectRatio:w}),[_,k,y,w]),S=(0,Ib.useMemo)(()=>_ee(g,C),[g,C]),P=(0,Ib.useMemo)(()=>({allowResize:e.allowResize??!1,imageCrop:e.imageCrop,fixedHeight:e.fixedHeight,navigationButtonType:e.navigationButtonType}),[e.allowResize,e.imageCrop,e.fixedHeight,e.navigationButtonType]);function N(){d.batch(()=>{t({dynamicContent:{source:Zd}}),m(),p(r,[])})}function I(){d.batch(()=>{p(r,_ee(g,C)),m(),t({dynamicContent:void 0})})}function B(L,A){let U={...i?.args};delete U.orderBy,delete U.order,L!==void 0&&(L!==Oh||A!==Hh)&&(U.orderBy=L,U.order=A);let $={...i};Object.keys(U).length?$.args=U:delete $.args,t({dynamicContent:$})}function E(){t({dynamicContent:{source:i.source}})}return{dynamicContent:i,canUseDynamicSource:s,sourceDescriptor:l,hasMoreImagesThanCap:x,dynamicMediaTotal:h,sourceOrderby:c,sourceOrder:u,dynamicMedia:g,dynamicImageBlocks:S,isResolvingDynamic:v,galleryContext:P,enableDynamicMode:N,convertToStatic:I,setSourceOrder:B,resetSource:E}}var nr=a(D(),1),Uh=a(H(),1),Gr=a(V(),1),Kd=a(R(),1);var ft=a(b(),1),s6e=[{label:(0,nr.__)("Newest to oldest"),value:"date/desc"},{label:(0,nr.__)("Oldest to newest"),value:"date/asc"},{label:(0,nr.__)("A \u2192 Z"),value:"title/asc"},{label:(0,nr.__)("Z \u2192 A"),value:"title/desc"}];function l6e({orderby:e,order:t,onChange:r}){return(0,ft.jsx)(Gr.SelectControl,{label:(0,nr.__)("Order by"),value:`$e}/$t}`,options:s6e,onChange:o=>{let[n,i]=o.split("/");r({orderby:n,order:i})}})}function Cee({onConfirm:e,onCancel:t}){return(0,ft.jsx)(Gr.__experimentalConfirmDialog,{isOpen:!0,title:(0,nr.__)("Detach Gallery"),__experimentalHideHeader:!1,confirmButtonText:(0,nr.__)("Detach"),onConfirm:e,onCancel:t,size:"medium",children:(0,nr.__)("The gallery displays the images attached to the post. Detaching will enable you to add, delete, or reorder images. However, new attachments will no longer be added automatically.")})}function See({dynamic:e,dropdownMenuProps:t,hasImages:r}){let{dynamicContent:o,canUseDynamicSource:n,sourceDescriptor:i,sourceOrderby:s,sourceOrder:l,setSourceOrder:c,convertToStatic:u,enableDynamicMode:d,resetSource:p,isResolvingDynamic:m,hasMoreImagesThanCap:f,dynamicMediaTotal:g}=e,h=!!o,[v,x]=(0,Uh.useState)(!1),[_,k]=(0,Uh.useState)(!1);function y(){r?x(!0):d()}return h?(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsxs)(Gr.__experimentalToolsPanel,{label:(0,nr.__)("Source"),resetAll:p,dropdownMenuProps:t,children:[(0,ft.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,ft.jsx)("p",{className:"wp-block-gallery__source-description",children:i?.description??(0,nr.__)("Dynamic images.")}),(0,ft.jsx)(Gr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>k(!0),disabled:m,accessibleWhenDisabled:!0,children:(0,nr.__)("Detach Gallery")})]}),f&&(0,ft.jsx)(Gr.Notice,{className:"wp-block-gallery__source-notice",status:"warning",isDismissible:!1,children:(0,nr.sprintf)((0,nr.__)("Only the first %1$d of %2$d images will be displayed."),Nb,g)}),(0,ft.jsx)(Gr.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,nr.__)("Order by"),hasValue:()=>s!==Oh||l!==Hh,onDeselect:()=>c(void 0,void 0),children:(0,ft.jsx)(l6e,{orderby:s,order:l,onChange:({orderby:w,order:C})=>c(w,C)})})]}),_&&(0,ft.jsx)(Cee,{onConfirm:()=>{u(),k(!1)},onCancel:()=>k(!1)})]}):n?(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Gr.PanelBody,{title:(0,nr.__)("Source"),children:(0,ft.jsx)("div",{className:"wp-block-gallery__source-settings",children:(0,ft.jsx)(Gr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:y,children:(0,nr.__)("Use images attached to the post")})})}),v&&(0,ft.jsx)(Gr.__experimentalConfirmDialog,{isOpen:!0,title:(0,nr.__)("Use images attached to the post?"),__experimentalHideHeader:!1,confirmButtonText:(0,nr.__)("Use attached images"),onConfirm:()=>{d(),x(!1)},onCancel:()=>x(!1),size:"medium",children:(0,nr.__)("The images in this gallery will be replaced, but will remain in the media library.")})]}):null}function c6e({imageBlocks:e,layout:t}){let{children:r,ref:o,className:n}=(0,Kd.__experimentalUseBlockPreview)({blocks:e,layout:t});return(0,ft.jsx)("div",{ref:o,className:n,style:{display:"contents"},children:r})}function Tee({dynamic:e,blockProps:t,innerBlocksProps:r,attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:s,isContentLocked:l,multiGallerySelection:c}){let{sourceDescriptor:u,dynamicImageBlocks:d,galleryContext:p,isResolvingDynamic:m,convertToStatic:f}=e,g=(0,Kd.useBlockEditingMode)(),[h,v]=(0,Uh.useState)(!1),x=(0,Uh.useMemo)(()=>_c(o.layout)?{...o.layout,type:"flex"}:o.layout,[o.layout]),_=m?(0,nr.__)("Loading images\u2026"):u?.emptyMessage??(0,nr.__)("Dynamic images will appear here.");return(0,ft.jsxs)(ft.Fragment,{children:[g==="default"&&(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Kd.BlockControls,{group:"other",children:(0,ft.jsx)(Gr.ToolbarButton,{onClick:()=>v(!0),disabled:m,children:(0,nr.__)("Detach")})}),h&&(0,ft.jsx)(Cee,{onConfirm:()=>{f(),v(!1)},onCancel:()=>v(!1)})]}),(0,ft.jsxs)("figure",{...t,children:[d.length?(0,ft.jsx)(Kd.BlockContextProvider,{value:p,children:(0,ft.jsx)(c6e,{imageBlocks:d,layout:x})}):(0,ft.jsx)(Gr.Placeholder,{icon:I4,label:(0,nr.__)("Gallery"),instructions:_,children:m&&(0,ft.jsx)(Gr.Spinner,{})}),(0,ft.jsx)($o,{attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:s,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,nr.__)("Gallery caption text"),placeholder:(0,nr.__)("Add gallery caption")})]}),r.children]})}var st=a(b(),1),Pee=[{icon:im,label:(0,We.__)("Link images to attachment pages"),value:bc,noticeText:(0,We.__)("Attachment Pages")},{icon:dd,label:(0,We.__)("Link images to media files"),value:yc,noticeText:(0,We.__)("Media Files")},{icon:sm,label:(0,We.__)("Enlarge on click"),value:Mh,noticeText:(0,We.__)("Lightbox effect"),infoText:(0,We.__)("Scale images with a lightbox effect")},{icon:Ev,label:(0,We._x)("None","Media item link option"),value:vc,noticeText:(0,We.__)("None")}],u6e=[{label:(0,We.__)("Icon"),value:"icon"},{label:(0,We.__)("Text"),value:"text"},{label:(0,We.__)("Both"),value:"both"}],kA=["image"],d6e=(0,We.__)("Drag and drop images, upload, or choose from your library."),p6e={name:"core/image"},Eee=[];function Iee(e){let{setAttributes:t,attributes:r,className:o,clientId:n,isSelected:i,insertBlocksAfter:s,isContentLocked:l,context:c,__unstableLayoutClassNames:u}=e,d=c?.postId,p=c?.postType,m=(0,uo.useBlockEditingMode)(),[f,g,h,v]=(0,uo.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),x=f?.allowEditing?Pee:Pee.filter(re=>re.value!==Mh),{align:_,navigationButtonType:k,columns:y,imageCrop:w,randomOrder:C,linkTarget:S,linkTo:P,sizeSlug:N,aspectRatio:I,layout:B}=r,E=_c(B),L=(0,Yd.useRef)(B),{__unstableMarkNextChangeAsNotPersistent:A,replaceInnerBlocks:U,updateBlockAttributes:$,selectBlock:W}=(0,Rb.useDispatch)(uo.store),{createSuccessNotice:G,createErrorNotice:F}=(0,Rb.useDispatch)(Nee.store);(0,Yd.useEffect)(()=>{let re=L.current;if(L.current=B,!D4(re)||!D4(B)||re.type===B.type)return;let Ve={...B},Ye=!1;!Object.hasOwn(B,"columnCount")&&Number.isInteger(re.columnCount)&&re.columnCount>0&&(Ve.columnCount=re.columnCount,Ye=!0),!Object.hasOwn(B,"minimumColumnWidth")&&typeof re.minimumColumnWidth=="string"&&(Ve.minimumColumnWidth=re.minimumColumnWidth,Ye=!0),Ye&&(L.current=Ve,A(),t({layout:Ve}))},[B,t,A]);let{getBlock:Z,getSettings:j,innerBlockImages:Y,multiGallerySelection:ee,selectedStyleState:te}=(0,Rb.useSelect)(re=>{let{getBlockName:Ve,getMultiSelectedBlockClientIds:Ye,getSettings:Ct,getBlock:Qe,getSelectedBlockStyleState:Qr}=q(re(uo.store)),Fa=Ye();return{getBlock:Qe,getSettings:Ct,innerBlockImages:Qe(n)?.innerBlocks??Eee,multiGallerySelection:Fa.length&&Fa.every(ye=>Ve(ye)==="core/gallery"),selectedStyleState:Qr(n)}},[n]),Q=te?.viewport&&te.viewport!=="default",le=Q?O4(r.style,te.viewport):{},oe=F4(y)?y:void 0,ce=typeof w=="boolean"?w:!0,pe=Q&&Object.hasOwn(le,"columns")&&F4(le.columns),be=Q&&Object.hasOwn(le,"imageCrop")&&typeof le.imageCrop=="boolean",Te=pe?le.columns:oe,ae=be?le.imageCrop:ce,se=(0,Yd.useMemo)(()=>Y?.map(re=>({clientId:re.clientId,id:re.attributes.id,url:re.attributes.url,attributes:re.attributes,fromSavedContent:!!re.originalContent})),[Y]),ue=HJ(Y),Oe=zJ(se,ue),Pe=!!se.length,ge=!!r.dynamicContent,et=wee({attributes:r,setAttributes:t,clientId:n,postId:d,postType:p}),me=ge?et.dynamicMedia.length:se.length,ct;ge?ct=P===Mh:f?.enabled?ct=se.filter(re=>re.attributes?.lightbox?.enabled===void 0||re.attributes?.lightbox?.enabled===!0).length>0:ct=se.filter(re=>re.attributes.lightbox?.enabled).length>0;let Ne=h?.map(({name:re,ratio:Ve})=>({label:re,value:Ve})),ie=g?.map(({name:re,ratio:Ve})=>({label:re,value:Ve})),Ee=[{label:(0,We._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...v?ie||[]:[],...Ne||[]];(0,Yd.useEffect)(()=>{Oe?.forEach(re=>{A(),$(re.clientId,{...Xt(re.attributes),id:re.id,align:void 0})})},[Oe]);let ve=MJ(ge?et.dynamicMedia:ue,i,j);function Xt(re){let Ve=re.id?ue.find(({id:Qe})=>Qe===re.id):null,Ye;re.className&&re.className!==""&&(Ye=re.className);let Ct;return re.linkTarget||re.rel?Ct={linkTarget:re.linkTarget,rel:re.rel}:Ct=Eb(S,r),{...L4(Ve,N),...Pb(Ve,P,re?.linkDestination),...Ct,className:Ye,sizeSlug:N,caption:re.caption.length>0?re.caption:Ve.caption?.raw,alt:re.alt||Ve.alt_text,aspectRatio:I==="auto"?void 0:I}}function Gt(re){let Ve=re.type;return kA.some(Ye=>Ve?.indexOf(Ye)===0)||re.blob}function br(re){let Ve=Object.prototype.toString.call(re)==="[object FileList]",Ye=Ve?Array.from(re).map(_e=>_e.url?_e:{blob:(0,wA.createBlobURL)(_e)}):re;Ye.every(Gt)||F((0,We.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ct=Ye.filter(_e=>_e.url||Gt(_e)).map(_e=>_e.url?_e:{blob:_e.blob||(0,wA.createBlobURL)(_e)}),Qe=Ct.reduce((_e,_t,Jt)=>(_e[_t.id]=Jt,_e),{}),Qr=Ve?Y:Y.filter(_e=>Ct.find(_t=>_t.id===_e.attributes.id)),ye=Ct.filter(_e=>!Qr.find(_t=>_e.id===_t.attributes.id)).map(_e=>(0,Bee.createBlock)("core/image",{id:_e.id,blob:_e.blob,url:_e.url,caption:_e.caption,alt:_e.alt}));U(n,Qr.concat(ye).sort((_e,_t)=>Qe[_e.attributes.id]-Qe[_t.attributes.id])),ye?.length>0&&W(ye[0].clientId)}function wo(re){F(re,{type:"snackbar"})}function In(re){t({linkTo:re});let Ve={},Ye=[];Z(n).innerBlocks.forEach(Qe=>{Ye.push(Qe.clientId);let Qr=Qe.attributes.id?ue.find(({id:Fa})=>Fa===Qe.attributes.id):null;Ve[Qe.clientId]=Pb(Qr,re,!1,Qe.attributes,f)}),$(Ye,Ve,{uniqueByBlock:!0});let Ct=[...x].find(Qe=>Qe.value===re);G((0,We.sprintf)((0,We.__)("All gallery image links updated to: %s"),Ct.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function on(re){if(!Q){t(re);return}t({style:dee({style:r.style,viewport:te.viewport,baseSettings:{columns:oe,imageCrop:ce},settings:re})})}function vi(re){on({columns:re})}function aa(){on({imageCrop:!ae})}function us(){t({randomOrder:!C})}function Rn(re){let Ve=re?"_blank":void 0;t({linkTarget:Ve});let Ye={},Ct=[];Z(n).innerBlocks.forEach(Qr=>{Ct.push(Qr.clientId),Ye[Qr.clientId]=Eb(Ve,Qr.attributes)}),$(Ct,Ye,{uniqueByBlock:!0});let Qe=re?(0,We.__)("All gallery images updated to open in new tab"):(0,We.__)("All gallery images updated to not open in new tab");G(Qe,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function Xl(re){t({sizeSlug:re});let Ve={},Ye=[];Z(n).innerBlocks.forEach(Qe=>{Ye.push(Qe.clientId);let Qr=Qe.attributes.id?ue.find(({id:Fa})=>Fa===Qe.attributes.id):null;Ve[Qe.clientId]=DJ(Qr,re)}),$(Ye,Ve,{uniqueByBlock:!0});let Ct=ve.find(Qe=>Qe.value===re);G((0,We.sprintf)((0,We.__)("All gallery image sizes updated to: %s"),Ct?.label??re),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function ol(re){t({aspectRatio:re});let Ve={},Ye=[];Z(n).innerBlocks.forEach(Qe=>{Ye.push(Qe.clientId),Ve[Qe.clientId]={aspectRatio:re==="auto"?void 0:re}}),$(Ye,Ve,!0);let Ct=Ee.find(Qe=>Qe.value===re);G((0,We.sprintf)((0,We.__)("All gallery images updated to aspect ratio: %s"),Ct?.label||re),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Yd.useEffect)(()=>{P||(A(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||vc}))},[P]);let ds=Pe&&se.some(re=>!!re.id),su={addToGallery:!1,disableMediaButtons:se.some(re=>!re.id&&re.url?.indexOf("blob:")===0),value:{}},ia=(0,uo.useBlockProps)({className:T(o,"has-nested-images",`wp-block-gallery-$n}`,ge&&[u,"blocks-gallery-grid",{[`align$_}`]:_,[`columns-$y}`]:E&&y!==void 0,"columns-default":E&&y===void 0,"is-cropped":E&&w}])}),sa=(0,uo.useInnerBlocksProps)(ia,{defaultBlock:p6e,directInsert:!0,orientation:"horizontal",renderAppender:!1,allowedBlocks:ge?Eee:void 0}),yi=X();if(!Pe&&!ge)return(0,st.jsxs)("div",{...sa,children:[sa.children,(0,st.jsx)(uo.MediaPlaceholder,{handleUpload:!1,icon:I4,labels:{title:(0,We.__)("Gallery"),instructions:d6e},onSelect:br,allowedTypes:kA,multiple:!0,onError:wo,...su,children:m==="default"&&(0,st.jsx)(Bt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:et.enableDynamicMode,children:U4(Zd).title})})]});let Up=P&&P!=="none";return(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)(uo.InspectorControls,{group:Q&&E?"viewport":"default",children:[!Q&&(0,st.jsx)(See,{dynamic:et,dropdownMenuProps:yi,hasImages:Pe}),(0,st.jsxs)(Bt.__experimentalToolsPanel,{label:(0,We.__)("Settings"),resetAll:()=>{if(Q){on({columns:void 0,imageCrop:void 0});return}t({navigationButtonType:"icon",randomOrder:!1,...E&&{columns:void 0,imageCrop:!0}}),ol("auto"),N!==Tb&&Xl(Tb),S&&Rn(!1)},dropdownMenuProps:yi,children:[E&&me>1&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,We.__)("Columns"),hasValue:()=>Q?pe:!!Te&&Te!==me,onDeselect:()=>vi(void 0),children:(0,st.jsx)(Bt.RangeControl,{label:(0,We.__)("Columns"),value:Te||R4(me),onChange:vi,min:1,max:Math.min(N4,me),required:!0})}),!Q&&ve?.length>0&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,We.__)("Resolution"),hasValue:()=>N!==Tb,onDeselect:()=>Xl(Tb),children:(0,st.jsx)(Bt.SelectControl,{label:(0,We.__)("Resolution"),help:(0,We.__)("Select the size of the source images."),value:N,options:ve,onChange:Xl,hideCancelButton:!0})}),E&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,We.__)("Crop images to fit"),hasValue:()=>Q?be:!ae,onDeselect:()=>on({imageCrop:Q?void 0:!0}),children:(0,st.jsx)(Bt.ToggleControl,{label:(0,We.__)("Crop images to fit"),checked:ae,onChange:aa})}),!Q&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,We.__)("Randomize order"),hasValue:()=>!!C,onDeselect:()=>t({randomOrder:!1}),children:(0,st.jsx)(Bt.ToggleControl,{label:(0,We.__)("Randomize order"),checked:!!C,onChange:us})}),!Q&&Up&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,We.__)("Open images in new tab"),hasValue:()=>!!S,onDeselect:()=>Rn(!1),children:(0,st.jsx)(Bt.ToggleControl,{label:(0,We.__)("Open images in new tab"),checked:S==="_blank",onChange:Rn})}),!Q&&Ee.length>1&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{hasValue:()=>!!I&&I!=="auto",label:(0,We.__)("Aspect ratio"),onDeselect:()=>ol("auto"),isShownByDefault:!0,children:(0,st.jsx)(Bt.SelectControl,{label:(0,We.__)("Aspect ratio"),help:(0,We.__)("Set a consistent aspect ratio for all images in the gallery."),value:I,options:Ee,onChange:ol})}),!Q&&f?.allowEditing&&ct&&(0,st.jsx)(Bt.__experimentalToolsPanelItem,{label:(0,We.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>k!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,st.jsx)(Bt.__experimentalToggleGroupControl,{label:(0,We.__)("Navigation button type"),value:k,onChange:re=>t({navigationButtonType:re}),isBlock:!0,help:(0,We.__)("Adjust the appearance of buttons in the lightbox."),children:u6e.map(re=>(0,st.jsx)(Bt.__experimentalToggleGroupControlOption,{value:re.value,label:re.label},re.value))})})]})]}),(0,st.jsx)(uo.BlockControls,{group:"block",children:(0,st.jsx)(Bt.ToolbarDropdownMenu,{icon:wi,label:(0,We.__)("Link"),children:({onClose:re})=>(0,st.jsx)(Bt.MenuGroup,{children:x.map(Ve=>{let Ye=P===Ve.value;return(0,st.jsx)(Bt.MenuItem,{isSelected:Ye,className:T("components-dropdown-menu__menu-item",{"is-active":Ye}),iconPosition:"left",icon:Ve.icon,onClick:()=>{In(Ve.value),re()},role:"menuitemradio",info:Ve.infoText,children:Ve.label},Ve.value)})})})}),(0,st.jsxs)(st.Fragment,{children:[!ee&&!ge&&(0,st.jsx)(uo.BlockControls,{group:"other",children:(0,st.jsx)(uo.MediaReplaceFlow,{allowedTypes:kA,handleUpload:!1,onSelect:br,name:(0,We.__)("Add"),multiple:!0,mediaIds:se.filter(re=>re.id).map(re=>re.id),addToGallery:ds,variant:"toolbar"})}),E&&(0,st.jsx)(vee,{style:r.style,clientId:n})]}),ge?(0,st.jsx)(Tee,{...e,dynamic:et,blockProps:ia,innerBlocksProps:sa,multiGallerySelection:ee}):(0,st.jsx)(LJ,{...e,isContentLocked:l,images:se,blockProps:sa,insertBlocksAfter:s,multiGallerySelection:ee})]})}var G4={$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:!0,allowOrientation:!1,allowJustification:!1,allowVerticalAlignment:!1,allowWrap:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Pu=a(R(),1);var $4=a(b(),1);function Ree({attributes:e}){let{caption:t,columns:r,imageCrop:o,dynamicContent:n,layout:i}=e,s=_c(i),l=!Pu.RichText.isEmpty(t)&&(0,$4.jsx)(Pu.RichText.Content,{tagName:"figcaption",className:T("blocks-gallery-caption",(0,Pu.__experimentalGetElementClassName)("caption")),value:t});if(n)return l||null;let c=T("has-nested-images",{[`columns-$r}`]:s&&r!==void 0,"columns-default":s&&r===void 0,"is-cropped":s&&o}),u=Pu.useBlockProps.save({className:c}),d=Pu.useInnerBlocksProps.save(u);return(0,$4.jsxs)("figure",{...d,children:[d.children,l]})}var Ds=a(K(),1),Dee=a(Or(),1),CA=a(Ad(),1);var f6e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],Lee=e=>e.map(t=>(0,Ds.createBlock)(t.name,t.attributes,Lee(t.innerBlocks||[])));function g6e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:n})=>(0,Ds.createBlock)("core/image",{url:r,id:o?parseInt(o,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,CA.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",g6e);function h6e(e,t){let o=(Array.isArray(t)?t:[t]).find(n=>n.name==="core/gallery"&&n.innerBlocks.length>0&&!n.attributes.images?.length>0&&!e.name.includes("core/"));if(o){let n=o.innerBlocks.map(({attributes:{url:s,id:l,alt:c}})=>({url:s,id:l?parseInt(l,10):null,alt:c})),i=n.map(({id:s})=>s);o.attributes.images=n,o.attributes.ids=i}return e}(0,CA.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",h6e);var v6e={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 n=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,Ds.createBlock)("core/image",i)));return(0,Ds.createBlock)("core/gallery",{align:t,sizeSlug:r},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:r,orderby:o,size:n}}){let i=f6e(e).map(c=>parseInt(c,10)),s=vc;return r==="post"?s=bc:r==="file"&&(s=yc),(0,Ds.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:s,randomOrder:o==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,Ds.createBlock)("core/image",{id:c,...n&&{sizeSlug:n}})))},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,Ds.createBlock)("core/image",{blob:(0,Dee.createBlobURL)(r)}));return(0,Ds.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],isMatch:({dynamicContent:e})=>!e,transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:o,caption:n,title:i,href:s,rel:l,linkClass:c,id:u,sizeSlug:d,linkDestination:p,linkTarget:m,anchor:f,className:g}})=>(0,Ds.createBlock)("core/image",{align:e,url:r,alt:o,caption:n,title:i,href:s,rel:l,linkClass:c,id:u,sizeSlug:d,linkDestination:p,linkTarget:m,anchor:f,className:g})):(0,Ds.createBlock)("core/image",{align:e})},{type:"block",blocks:["core/group"],variationName:"group-grid",isMatch:({dynamicContent:e})=>!e,transform:(e,t)=>{let{allowResize:r,aspectRatio:o,caption:n,columns:i,dynamicContent:s,fixedHeight:l,ids:c,imageCrop:u,images:d,linkTarget:p,linkTo:m,navigationButtonType:f,randomOrder:g,shortCodeTransforms:h,sizeSlug:v,...x}=e;return(0,Ds.createBlock)("core/group",{...x,layout:{type:"grid",columnCount:i??R4(t.length)}},Lee(t))}}]},Aee=v6e;var df=a(D(),1);var y6e=[{name:"dynamic-gallery",title:(0,df.__)("Dynamic Gallery"),description:(0,df.__)("Display images from a source, such as those attached to the current post."),attributes:{dynamicContent:{source:Zd}},isActive:e=>!!e.dynamicContent,scope:[]},{name:"gallery-flex",title:(0,df.__)("Gallery"),description:(0,df.__)("Arrange images in flexible rows."),icon:lm,attributes:{layout:{type:"flex"}},isActive:e=>_c(e.layout),scope:["transform"]},{name:"gallery-grid",title:(0,df.__)("Gallery Grid"),description:(0,df.__)("Arrange images in a grid."),icon:ki,attributes:{layout:{type:"grid"}},isActive:e=>e.layout?.type==="grid",scope:["transform"]}],Mee=y6e;var{name:zee}=G4,Vee={icon:lm,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:Aee,variations:Mee,edit:Iee,save:Ree,deprecated:EJ},b6e=()=>M({name:zee,metadata:G4,settings:Vee});var BA={};J(BA,{init:()=>B6e,metadata:()=>Z4,name:()=>X4,settings:()=>Xee});var Q4=a(D(),1);var jn=a(R(),1),zi=a(b(),1),TA=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,...n}=e;return{...n,style:t}},_6e=[{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,zi.jsx)(e,{...jn.useInnerBlocksProps.save(jn.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,zi.jsx)(t,{...jn.useBlockProps.save(),children:(0,zi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,zi.jsx)(jn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:TA,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,jn.getColorClassName)("background-color",t),s=(0,jn.getColorClassName)("color",o),l=T(i,s,{"has-text-color":o||n,"has-background":t||r});return(0,zi.jsx)("div",{className:l,style:{backgroundColor:i?void 0:r,color:s?void 0:n},children:(0,zi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,zi.jsx)(jn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:TA,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,jn.getColorClassName)("background-color",t),s=(0,jn.getColorClassName)("color",o),l=T(i,{"has-text-color":o||n,"has-background":t||r});return(0,zi.jsx)("div",{className:l,style:{backgroundColor:i?void 0:r,color:s?void 0:n},children:(0,zi.jsx)("div",{className:"wp-block-group__inner-container",children:(0,zi.jsx)(jn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:TA,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,jn.getColorClassName)("background-color",t),n=T(o,{"has-background":t||r});return(0,zi.jsx)("div",{className:n,style:{backgroundColor:o?void 0:r},children:(0,zi.jsx)(jn.InnerBlocks.Content,{})})}}],Fee=_6e;var q4=a(O(),1),Fi=a(R(),1),Gee=a(H(),1),$ee=a(D(),1);var Oee=a(O(),1),Hee=a(R(),1),PA=a(D(),1),jee=a(K(),1),ei=a(V(),1),Db=a(H(),1),Ja=a(b(),1),x6e=(e="group")=>({group:(0,Ja.jsx)(ei.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ja.jsx)(ei.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,Ja.jsx)(ei.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ja.jsx)(ei.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,Ja.jsx)(ei.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ja.jsx)(ei.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,Ja.jsx)(ei.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ja.jsx)(ei.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 Uee({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:r=!1}){let{style:o,backgroundColor:n,textColor:i,fontSize:s}=e,[l,c]=(0,Db.useState)(!r&&!n&&!s&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,Db.useEffect)(()=>{(r||n||s||i||o||t==="flex")&&c(!1)},[n,s,i,o,t,r]),[l,c]}function k6e({name:e,onSelect:t}){let r=(0,Oee.useSelect)(n=>n(jee.store).getBlockVariations(e,"block"),[e]),o=(0,Hee.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Db.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,Ja.jsx)("div",{...o,children:(0,Ja.jsx)(ei.Placeholder,{instructions:(0,PA.__)("Group blocks together. Select a layout:"),children:(0,Ja.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,PA.__)("Block variations"),children:r.map(n=>(0,Ja.jsx)("li",{children:(0,Ja.jsx)(ei.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:x6e(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`$n.title}: $n.description}`})},n.name))})})})}var Wee=k6e;var Vi=a(b(),1),{HTMLElementControl:w6e}=q(Fi.privateApis);function C6e({tagName:e,onSelectTagName:t,clientId:r}){return(0,Vi.jsx)(Fi.InspectorControls,{group:"advanced",children:(0,Vi.jsx)(w6e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,$ee.__)("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 S6e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,q4.useSelect)(y=>{let{getBlock:w,getSettings:C}=y(Fi.store),S=w(o);return{hasInnerBlocks:!!(S&&S.innerBlocks.length),themeSupportsLayout:C()?.supportsLayout}},[o]),{tagName:s="div",templateLock:l,allowedBlocks:c,layout:u={}}=e,{type:d="default"}=u,p=i||d==="flex"||d==="grid",m=(0,Gee.useRef)(),f=(0,Fi.useBlockProps)({ref:m}),[g,h]=Uee({attributes:e,usedLayoutType:d,hasInnerBlocks:n}),v;g?v=!1:n||(v=Fi.InnerBlocks.ButtonBlockAppender);let x=(0,Fi.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:m.current,templateLock:l,allowedBlocks:c,renderAppender:v}),{selectBlock:_}=(0,q4.useDispatch)(Fi.store),k=y=>{r(y.attributes),_(o,-1),h(!1)};return(0,Vi.jsxs)(Vi.Fragment,{children:[(0,Vi.jsx)(C6e,{tagName:s,onSelectTagName:y=>r({tagName:y}),clientId:o}),g&&(0,Vi.jsxs)("div",{children:[x.children,(0,Vi.jsx)(Wee,{name:t,onSelect:k})]}),p&&!g&&(0,Vi.jsx)(s,{...x}),!p&&!g&&(0,Vi.jsx)(s,{...f,children:(0,Vi.jsx)("div",{...x})})]})}var qee=S6e;var Z4={$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,__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:["horizontal","vertical"],__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 K4=a(R(),1),Zee=a(b(),1);function Kee({attributes:{tagName:e}}){return(0,Zee.jsx)(e,{...K4.useInnerBlocksProps.save(K4.useBlockProps.save())})}var Y4=a(K(),1),P6e={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((n,i)=>{let{align:s}=i.attributes;return t.indexOf(s)>t.indexOf(n)?s:n},void 0),o=e.map(n=>(0,Y4.cloneSanitizedBlock)(n));return(0,Y4.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},Yee=P6e;var Un=a(D(),1);var EA={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Un.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,Un.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,Un.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,Un.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,Un.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,Un.__)("Six.")}}]},E6e=[{name:"group",title:(0,Un.__)("Group"),description:(0,Un.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:Pv},{name:"group-row",title:(0,Un._x)("Row","single horizontal line"),description:(0,Un.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:qN,example:EA},{name:"group-stack",title:(0,Un.__)("Stack"),description:(0,Un.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:sI,example:EA},{name:"group-grid",title:(0,Un.__)("Grid"),description:(0,Un.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:ki,example:EA}],Qee=E6e;var{name:X4}=Z4,Xee={icon:Pv,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,Q4.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,Q4.__)("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,Q4.__)("Read more")}}],viewportWidth:600},transforms:Yee,edit:qee,save:Kee,deprecated:Fee,variations:Qee},B6e=()=>M({name:X4,metadata:Z4,settings:Xee});var AA={};J(AA,{init:()=>Y6e,metadata:()=>oC,name:()=>aC,settings:()=>iC});var Xd=a(D(),1),$h=a(K(),1);var _a=a(R(),1);var kc=a(b(),1),NA={className:!1,anchor:!0},J4={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},Wh=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},Jee=["left","right","center"],Gh=e=>{let{align:t,...r}=e;return Jee.includes(t)?{...r,textAlign:t}:e},N6e={supports:NA,attributes:{...J4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ke(Wh(Gh(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:n,customTextColor:i}=e,s="h"+r,l=(0,_a.getColorClassName)("color",n),c=T({[l]:l});return(0,kc.jsx)(_a.RichText.Content,{className:c||void 0,tagName:s,style:{textAlign:t,color:l?void 0:i},value:o})}},I6e={attributes:{...J4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ke(Wh(Gh(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,s="h"+n,l=(0,_a.getColorClassName)("color",i),c=T({[l]:l,[`has-text-align-$t}`]:t});return(0,kc.jsx)(_a.RichText.Content,{className:c||void 0,tagName:s,style:{color:l?void 0:o},value:r})},supports:NA},R6e={supports:NA,attributes:{...J4,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>ke(Wh(Gh(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,s="h"+n,l=(0,_a.getColorClassName)("color",i),c=T({[l]:l,"has-text-color":i||o,[`has-text-align-$t}`]:t});return(0,kc.jsx)(_a.RichText.Content,{className:c||void 0,tagName:s,style:{color:l?void 0:o},value:r})}},D6e={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:J4,isEligible:({align:e})=>Jee.includes(e),migrate:e=>ke(Wh(Gh(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,n="h"+o,i=T({[`has-text-align-$t}`]:t});return(0,kc.jsx)(n,{..._a.useBlockProps.save({className:i}),children:(0,kc.jsx)(_a.RichText.Content,{value:r})})}},L6e={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,n="h"+o,i=T({[`has-text-align-$t}`]:t});return(0,kc.jsx)(n,{..._a.useBlockProps.save({className:i}),children:(0,kc.jsx)(_a.RichText.Content,{value:r})})},migrate:e=>ke(Wh(Gh(e)))},A6e={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,n="h"+o,i=T({[`has-text-align-$t}`]:t});return(0,kc.jsx)(n,{..._a.useBlockProps.save({className:i}),children:(0,kc.jsx)(_a.RichText.Content,{value:r})})},migrate:e=>ke(Wh(Gh(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},M6e=[A6e,L6e,D6e,R6e,I6e,N6e],ete=M6e;var ate=a(D(),1),ite=a(H(),1),rC=a(O(),1),pf=a(R(),1);var nte=a(IA(),1),RA={},H6e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},j6e=e=>(0,nte.default)(H6e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),tC=(e,t)=>{let r=j6e(t);if(r==="")return null;delete RA[e];let o=r,n=0;for(;Object.values(RA).includes(o);)n+=1,o=r+"-"+n;return o},DA=(e,t)=>{RA[e]=t};var ste=a(b(),1);function U6e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:n,style:i,clientId:s}=e;Et(e);let{content:l,level:c,placeholder:u,anchor:d}=t,p="h"+c,m=(0,pf.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,rC.useSelect)(v=>{let{getGlobalBlockCount:x,getSettings:_}=v(pf.store);return{canGenerateAnchors:!!_().generateAnchors||x("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,rC.useDispatch)(pf.store);return(0,ite.useEffect)(()=>{if(f)return!d&&l&&(g(),r({anchor:tC(s,l)})),DA(s,d),()=>DA(s,null)},[d,l,s,f,r,g]),(0,ste.jsx)(pf.RichText,{identifier:"content",tagName:p,value:l,onChange:v=>{let x={content:v};f&&(!d||!v||tC(s,l)===d)&&(x.anchor=tC(s,v)),r(x)},onMerge:o,onReplace:n,onRemove:n?()=>n([]):void 0,placeholder:u||(0,ate.__)("Heading"),...m})}var lte=U6e;var oC={$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 nC=a(R(),1),LA=a(b(),1);function cte({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,LA.jsx)(o,{...nC.useBlockProps.save(),children:(0,LA.jsx)(nC.RichText.Content,{value:t})})}var Qd=a(K(),1),Lb=a(D(),1);function ute(e){return Number(e.substr(1))}var G6e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],shortcuts:[1,2,3,4,5,6].map(e=>({name:`core/block-editor/transform-to-heading-$e}`,description:(0,Lb.sprintf)((0,Lb.__)("Transform the selected block into a heading %d."),e),keyCombination:{modifier:"access",character:`$e}`},variationName:`h$e}`})),transform:e=>e.map(t=>{let{content:r,anchor:o,style:n}=t,i=n?.typography?.textAlign;return(0,Qd.createBlock)("core/heading",{...yu(t,"core/heading",({content:s})=>({content:s})),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,Qd.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=ute(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,Qd.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,Qd.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,Qd.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],shortcuts:[{name:"core/block-editor/transform-heading-to-paragraph",description:(0,Lb.__)("Transform the selected heading into a paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}],transform:e=>e.map(t=>{let{content:r,style:o}=t,n=o?.typography?.textAlign;return(0,Qd.createBlock)("core/paragraph",{...yu(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},dte=G6e;var mf=a(D(),1);var $6e=[rB,nB,iB,lB,uB,pB],q6e=[...[1,2,3,4,5,6].map(e=>({name:`h$e}`,title:(0,mf.sprintf)((0,mf.__)("Heading %d"),e),description:(0,mf.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:$6e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h$e}`],isActive:t=>t.level===e,shortcut:{name:`core/block-editor/transform-to-heading-$e}`,description:(0,mf.sprintf)((0,mf.__)("Transform the selected block into a heading %d."),e),keyCombination:{modifier:"access",character:`$e}`}}}))],pte=q6e;var{fieldsKey:Z6e,formKey:K6e}=q($h.privateApis),{name:aC}=oC,iC={icon:fB,example:{attributes:{content:(0,Xd.__)("Code is Poetry"),level:2,style:{typography:{textAlign:"center"}}}},__experimentalLabel(e,{context:t}){let{content:r,level:o}=e,n=e?.metadata?.name,i=r?.trim().length>0;if(t==="list-view"&&(n||i))return n||r;if(t==="breadcrumb"&&n)return n;if(t==="accessibility")return i?(0,Xd.sprintf)((0,Xd.__)("Level %1$s. %2$s"),o,r):(0,Xd.sprintf)((0,Xd.__)("Level %s. Empty."),o)},transforms:dte,deprecated:ete,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:lte,save:cte,variations:pte};window.__experimentalContentOnlyInspectorFields&&(iC[Z6e]=[{id:"content",label:(0,Xd.__)("Content"),type:"text",Edit:"rich-text"}],iC[K6e]={fields:["content"]});var Y6e=()=>{let e=M({name:aC,metadata:oC,settings:iC}),t=(0,$h.getBlockType)(aC)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,$h.unregisterBlockVariation)(aC,`h$r}`)}),e};var MA={};J(MA,{init:()=>J6e,metadata:()=>sC,name:()=>xte,settings:()=>kte});var _te=a(D(),1);var sC={$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 Jd=a(R(),1),xa=a(V(),1),ti=a(D(),1),mte=a(O(),1),fte=a(ne(),1);var gte=a(da(),1);var Ro=a(b(),1),X6e=e=>e.preventDefault();function hte({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:n,frontPageId:i,frontPageTemplateId:s}=(0,mte.useSelect)(h=>{let{getEntityRecord:v,getDefaultTemplateId:x,canUser:_}=h(fte.store),k=v("root","__unstableBase")?.home,w=_("read",{kind:"root",name:"site"})?v("root","site"):null,C=w?.show_on_front==="page"?w?.page_on_front:null,S=C?null:x({slug:"front-page"});return{homeUrl:k,onNavigateToEntityRecord:h(Jd.store).getSettings().onNavigateToEntityRecord,frontPageId:C,frontPageTemplateId:S}},[]),{textColor:l,backgroundColor:c,style:u}=r,{label:d,opensInNewTab:p,description:m}=e,f=X(),g=(0,Jd.useBlockProps)({className:T("wp-block-navigation-item",{"has-text-color":!!l||!!u?.color?.text,[`has-$l}-color`]:!!l,"has-background":!!c||!!u?.color?.background,[`has-$c}-background-color`]:!!c}),style:{color:u?.color?.text,backgroundColor:u?.color?.background}});return(0,Ro.jsxs)(Ro.Fragment,{children:[(0,Ro.jsx)(Jd.InspectorControls,{group:"content",children:(0,Ro.jsxs)(xa.__experimentalToolsPanel,{label:(0,ti.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,Ro.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,ti.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Ro.jsx)(xa.TextControl,{label:(0,ti.__)("Text"),value:d?(0,gte.__unstableStripHTML)(d):"",onChange:h=>{t({label:h})},autoComplete:"off"})}),(0,Ro.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,ti.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Ro.jsx)(xa.CheckboxControl,{label:(0,ti.__)("Open in new tab"),checked:p,onChange:h=>t({opensInNewTab:h})})}),n&&(i||s)&&(0,Ro.jsx)(xa.Button,{variant:"secondary",onClick:()=>{n(i?{postId:i,postType:"page"}:{postId:s,postType:"wp_template"})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,ti.__)("Edit")}),o&&(0,Ro.jsx)(xa.Button,{variant:"secondary",href:o,target:"_blank",icon:_v,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,ti.__)("View")}),(0,Ro.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,ti.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,Ro.jsx)(xa.TextareaControl,{label:(0,ti.__)("Description"),value:m||"",onChange:h=>{t({description:h})},help:(0,ti.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,Ro.jsx)("div",{...g,children:(0,Ro.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:X6e,children:[(0,Ro.jsx)(Jd.RichText,{identifier:"label",className:"wp-block-home-link__label",value:d??(0,ti.__)("Home"),onChange:h=>{t({label:h})},"aria-label":(0,ti.__)("Home link text"),placeholder:(0,ti.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),m&&(0,Ro.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]})})]})}var vte=a(R(),1),yte=a(b(),1);function bte(){return(0,yte.jsx)(vte.InnerBlocks.Content,{})}var{name:xte}=sC,kte={icon:hB,edit:hte,save:bte,example:{attributes:{label:(0,_te._x)("Home Link","block example")}}},J6e=()=>M({name:xte,metadata:sC,settings:kte});var FA={};J(FA,{init:()=>a7e,metadata:()=>uC,name:()=>zte,settings:()=>Vte});var Mte=a(D(),1);var qh=a(D(),1),cC=a(H(),1),ri=a(R(),1),gf=a(K(),1),Zh=a(O(),1),Ite=a(Lm(),1),Rl=a(V(),1);var Oi=a(D(),1),Ab=a(H(),1),Bte=a(O(),1),yn=a(V(),1),tp=a(R(),1);var Nte=a(he(),1);var wte=a(H(),1),lC=a(R(),1),Cte=a(V(),1),Ste=a(O(),1),Tte=a(D(),1),ff=a(b(),1),e7e=`
  56      html,body,:root {
  57          margin: 0 !important;
  58          padding: 0 !important;
  59          overflow: visible !important;
  60          min-height: auto !important;
  61      }
  62  `;function Pte({content:e,isSelected:t}){let r=(0,Ste.useSelect)(n=>n(lC.store).getSettings().styles,[]),o=(0,wte.useMemo)(()=>[e7e,...(0,lC.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,ff.jsxs)(ff.Fragment,{children:[(0,ff.jsx)(Cte.SandBox,{html:e,styles:o,title:(0,Tte.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,ff.jsx)("div",{className:"block-library-html__preview-overlay"})]})}function Ete(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 n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:o,js:i}}function zA({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
  63  $t}
  64  </style>`),r.trim()&&o.push(`<script data-wp-block-html="js">
  65  $r}
  66  <\/script>`),e.trim()&&o.push(e),o.join(`
  67  
  68  `)}var Lt=a(b(),1),{Tabs:ep}=q(yn.privateApis),{useNativeUndo:t7e}=q(tp.privateApis);function VA({onRequestClose:e,content:t,onUpdate:r}){let{html:o,css:n,js:i}=Ete(t),[s,l]=(0,Ab.useState)(o),[c,u]=(0,Ab.useState)(n),[d,p]=(0,Ab.useState)(i),[m,f]=(0,Ab.useState)(!1),g=t7e(),h=(0,Nte.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:v}=(0,Bte.useSelect)(w=>({canUserUseUnfilteredHTML:w(tp.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),x=!v&&(n.trim()||i.trim()),_=()=>{r(zA({html:s,css:v?c:"",js:v?d:""}))},k=()=>{_(),e()},y=()=>{f(w=>!w)};return(0,Lt.jsx)(Lt.Fragment,{children:(0,Lt.jsx)(yn.Modal,{title:(0,Oi.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:m,__experimentalHideHeader:!0,children:(0,Lt.jsx)(ep,{orientation:"horizontal",defaultTabId:"html",children:(0,Lt.jsxs)(yn.__experimentalVStack,{expanded:!0,children:[(0,Lt.jsxs)(yn.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Lt.jsx)("div",{children:(0,Lt.jsxs)(ep.TabList,{children:[(0,Lt.jsx)(ep.Tab,{tabId:"html",children:"HTML"}),v&&(0,Lt.jsx)(ep.Tab,{tabId:"css",children:"CSS"}),v&&(0,Lt.jsx)(ep.Tab,{tabId:"js",children:(0,Oi.__)("JavaScript")})]})}),!h&&(0,Lt.jsx)("div",{children:(0,Lt.jsx)(yn.Button,{__next40pxDefaultSize:!0,icon:m?aI:sm,label:(0,Oi.__)("Enable/disable fullscreen"),onClick:y,variant:"tertiary"})})]}),x&&(0,Lt.jsx)(yn.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,Oi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Lt.jsxs)(yn.Flex,{direction:h?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Lt.jsxs)("div",{ref:g,className:"block-library-html__modal-content",children:[(0,Lt.jsx)(ep.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Lt.jsx)(tp.PlainText,{value:s,onChange:l,placeholder:(0,Oi.__)("Write HTML\u2026"),"aria-label":(0,Oi.__)("HTML"),className:"block-library-html__modal-editor",async:!0})}),v&&(0,Lt.jsx)(ep.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Lt.jsx)(tp.PlainText,{value:c,onChange:u,placeholder:(0,Oi.__)("Write CSS\u2026"),"aria-label":(0,Oi.__)("CSS"),className:"block-library-html__modal-editor",async:!0})}),v&&(0,Lt.jsx)(ep.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Lt.jsx)(tp.PlainText,{value:d,onChange:p,placeholder:(0,Oi.__)("Write JavaScript\u2026"),"aria-label":(0,Oi.__)("JavaScript"),className:"block-library-html__modal-editor",async:!0})})]}),(0,Lt.jsx)("div",{className:"block-library-html__preview",children:(0,Lt.jsx)(Pte,{content:zA({html:s,css:c,js:d})})})]}),(0,Lt.jsxs)(yn.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Lt.jsx)(yn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Oi.__)("Cancel")}),(0,Lt.jsx)(yn.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:k,children:(0,Oi.__)("Update")})]})]})})})})}var Wn=a(b(),1),{InnerContent:r7e}=q(ri.privateApis);function Rte({clientId:e,attributes:t}){let[r,o]=(0,cC.useState)(!1),n=(0,Zh.useRegistry)(),{updateBlock:i,replaceInnerBlocks:s}=(0,Zh.useDispatch)(ri.store),l=(0,Zh.useSelect)(d=>{let p=d(ri.store).getBlock(e);return p?(0,gf.getBlockContent)(p):""},[e]),c=(0,ri.useBlockProps)({className:"block-library-html__edit"}),u=d=>{if(d===l)return;let[p]=(0,gf.parse)(`<!-- wp:html -->
  69  $d}
  70  <!-- /wp:html -->`),m=p?.innerBlocks??[],f=n.select(ri.store).getBlocks(e),g=f.length===m.length&&f.every((h,v)=>(0,gf.serialize)(h)===(0,gf.serialize)(m[v]));n.batch(()=>{i(e,{innerContent:p?.innerContent??(d?[d]:[])}),g||s(e,m,!1)})};return(0,cC.useEffect)(()=>{t.content&&((0,Ite.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]),l?.trim()?(0,Wn.jsxs)("div",{...c,children:[(0,Wn.jsx)(ri.BlockControls,{children:(0,Wn.jsx)(Rl.ToolbarGroup,{children:(0,Wn.jsx)(Rl.ToolbarButton,{onClick:()=>o(!0),children:(0,qh.__)("Edit code")})})}),(0,Wn.jsx)(ri.InspectorControls,{children:(0,Wn.jsx)(Rl.__experimentalVStack,{className:"block-library-html__edit-code",expanded:!0,children:(0,Wn.jsx)(Rl.Button,{className:"block-library-html__edit-code-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(!0),children:(0,qh.__)("Edit code")})})}),(0,Wn.jsx)(r7e,{clientId:e}),r&&(0,Wn.jsx)(VA,{onRequestClose:()=>o(!1),content:l,onUpdate:u})]}):(0,Wn.jsxs)("div",{...c,children:[(0,Wn.jsx)(Rl.Placeholder,{icon:(0,Wn.jsx)(ri.BlockIcon,{icon:pv}),label:(0,qh.__)("Custom HTML"),instructions:(0,qh.__)("Add custom HTML code and preview how it looks."),children:(0,Wn.jsx)(Rl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>o(!0),children:(0,qh.__)("Edit HTML")})}),r&&(0,Wn.jsx)(VA,{onRequestClose:()=>o(!1),content:l,onUpdate:u})]})}var uC={$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 Dte(){return null}var dC=a(K(),1),Lte=a(hl(),1),n7e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>{let t=(0,Lte.create)({html:e}).text,[r]=(0,dC.parse)(`<!-- wp:html -->
  71  $t}
  72  <!-- /wp:html -->`);return r??(0,dC.createBlock)("core/html",{},[],[t])}}]},Ate=n7e;var{name:zte}=uC,Vte={icon:yB,example:{innerContent:["<marquee>"+(0,Mte.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"]},edit:Rte,save:Dte,transforms:Ate},a7e=()=>M({name:zte,metadata:uC,settings:Vte});var GA={};J(GA,{init:()=>p7e,metadata:()=>fC,name:()=>Xte,settings:()=>Jte});var ji=a(D(),1),ka=a(V(),1);var bn=a(R(),1),$te=a(H(),1),Qh=a(z(),1),qte=a(O(),1),Zte=a(ne(),1);var mC=a(D(),1),Yh=a(V(),1);var zb=a(H(),1),Gte=a(he(),1),HA=a(O(),1),jA=a(ne(),1);var OA=a(D(),1),Ote=a(V(),1),Hte=a(he(),1),pC=a(H(),1),jte=a(da(),1);var wc=a(b(),1),Fte=20;function Ute({icons:e,onChange:t,value:r}){let o=(0,Hte.useAsyncList)(e,{step:Fte}),n=(0,pC.useRef)(),i=e?.findIndex(l=>l.name===r)??-1,s=i>=0&&(o.length>=i+Fte||o.length===e.length);return(0,pC.useLayoutEffect)(()=>{let l=n.current;!s||!l||(0,jte.getScrollContainer)(l)?.scrollTop||l.scrollIntoView({block:"center"})},[s]),(0,wc.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,wc.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,OA.__)("Icon library"),children:o.map(l=>(0,wc.jsxs)(Ote.Button,{ref:l.name===r?n:void 0,className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(l.name),variant:l.name===r?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,wc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,wc.jsx)(To,{html:l.content})}),(0,wc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:l.label})]},l.name))}):(0,wc.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,wc.jsx)("p",{children:(0,OA.__)("No results found.")})})})}var Wte=a(IA(),1);function Kh(e=""){return e=(0,Wte.default)(e),e=e.trim().toLowerCase(),e}function i7e(e,t){let r=Kh(t),o=Kh(e.title),n=0;return r===o?n+=30:o.startsWith(r)?n+=20:r.split(" ").every(l=>o.includes(l))&&(n+=10),n}function Mb(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,i7e(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,n])=>n-o),r.map(([o])=>o)}var Hi=a(b(),1);function UA({onClose:e,value:t,onChange:r}){let[o,n]=(0,zb.useState)(""),[i,s]=(0,zb.useState)(null),l=(0,Gte.useDebounce)(n,300),c=(0,HA.useSelect)(g=>g(jA.store).getEntityRecords("root","iconCollection"),[]),u=t?.split("/")[0],d=i??(c?.some(({slug:g})=>g===u)?u:c?.[0]?.slug)??null,{icons:p,hasResolvedIcons:m}=(0,HA.useSelect)(g=>{if(d===null)return{icons:null,hasResolvedIcons:!1};let h=d===""?{}:{collection:d},{getEntityRecords:v,hasFinishedResolution:x}=g(jA.store);return{icons:v("root","icon",h),hasResolvedIcons:x("getEntityRecords",["root","icon",h])}},[d]),f=(0,zb.useMemo)(()=>{if(!p)return[];if(o){let g=Kh(o);return p.filter(h=>{let v=Kh(h.name),x=Kh(h.label);return v.includes(g)||x.includes(g)})}return p},[o,p]);return(0,Hi.jsx)(Yh.Modal,{className:"wp-block-icon__inserter-modal",title:(0,mC.__)("Icon library"),onRequestClose:e,isFullScreen:!0,children:(0,Hi.jsxs)(xd.Root,{className:"wp-block-icon__inserter",orientation:"vertical",value:d,onValueChange:s,children:[(0,Hi.jsxs)(ks,{direction:"column",gap:"lg",className:"wp-block-icon__inserter-sidebar",children:[(0,Hi.jsx)(Yh.SearchControl,{value:o,onChange:l}),(0,Hi.jsxs)(xd.List,{children:[(0,Hi.jsx)(xd.Tab,{value:"",children:(0,mC.__)("All")}),c?.map(g=>(0,Hi.jsx)(xd.Tab,{value:g.slug,children:g.label},g.slug))]})]}),[{slug:""},...c??[]].map(g=>(0,Hi.jsx)(xd.Panel,{tabIndex:-1,value:g.slug,className:"wp-block-icon__inserter-panel",children:m?(0,Hi.jsx)(Ute,{icons:f,onChange:r,value:t}):(0,Hi.jsx)("div",{className:"wp-block-icon__inserter-loading",role:"status","aria-label":(0,mC.__)("Loading\u2026"),children:(0,Hi.jsx)(Yh.Spinner,{})})},g.slug))]})})}var Zt=a(b(),1),s7e=({className:e,style:t})=>(0,Zt.jsxs)(Qh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:T("wp-block-icon__placeholder",e),style:t,children:[(0,Zt.jsx)(Qh.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,Zt.jsx)(Qh.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function l7e({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:n,flipVertical:i,rotation:s}=e,[l,c]=(0,$te.useState)(!1),u=(0,bn.useBlockEditingMode)()==="contentOnly",d=(0,bn.__experimentalUseColorProps)(e),p=(0,bn.__experimentalGetSpacingClassesAndStyles)({style:{spacing:{padding:e.style?.spacing?.padding}}}),m=(0,bn.__experimentalUseBorderProps)(e),f=(0,bn.getDimensionsClassesAndStyles)(e),h=(0,qte.useSelect)(w=>{let{getEntityRecord:C}=w(Zte.store);return r?C("root","icon",r):null},[r])?.content||"",v={"is-flip-horizontal":n,"is-flip-vertical":i},x=s?{rotate:`$s}deg`}:{},_=(0,Zt.jsxs)(Zt.Fragment,{children:[r&&(0,Zt.jsxs)(bn.BlockControls,{group:"block",children:[(0,Zt.jsx)(ka.ToolbarButton,{icon:RE,label:(0,ji.__)("Flip horizontal"),isPressed:n,onClick:()=>t({flipHorizontal:!n})}),(0,Zt.jsx)(ka.ToolbarButton,{icon:LE,label:(0,ji.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,Zt.jsx)(ka.ToolbarButton,{icon:GN,label:(0,ji.__)("Rotate"),onClick:()=>t({rotation:((s||0)+90)%360})})]}),(0,Zt.jsxs)(bn.BlockControls,{group:"other",children:[(0,Zt.jsx)(ka.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,ji.__)("Replace"):(0,ji.__)("Choose icon")}),u&&r&&(0,Zt.jsx)(ka.DropdownMenu,{icon:"",toggleProps:{as:ka.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,ji.__)("Label"),children:()=>(0,Zt.jsx)(ka.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,ji.__)("Label"),value:o||"",onChange:w=>t({ariaLabel:w}),help:(0,ji.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),k=X(),y=r&&(0,Zt.jsx)(Zt.Fragment,{children:(0,Zt.jsx)(bn.InspectorControls,{group:"settings",children:(0,Zt.jsx)(ka.__experimentalToolsPanel,{label:(0,ji.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:k,children:(0,Zt.jsx)(ka.__experimentalToolsPanelItem,{label:(0,ji.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,Zt.jsx)(ka.TextControl,{label:(0,ji.__)("Label"),help:(0,ji.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:w=>t({ariaLabel:w})})})})})});return(0,Zt.jsxs)(Zt.Fragment,{children:[_,y,(0,Zt.jsx)("div",{...(0,bn.useBlockProps)(),children:h?(0,Zt.jsx)(To,{html:h,wrapperProps:{className:T(d.className,m.className,p.className,f.className,v),style:{...d.style,...m.style,...p.style,...f.style,...x}}}):(0,Zt.jsx)(s7e,{className:T(m.className,p.className,f.className,v),style:{...m.style,...p.style,...f.style,...x,height:"auto"}})}),l&&(0,Zt.jsx)(UA,{onClose:()=>c(!1),value:e.icon,onChange:w=>{t({icon:w}),c(!1)}})]})}var Kte=l7e;var fC={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 gC=a(V(),1),WA=a(b(),1),u7e=(0,WA.jsx)(gC.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,WA.jsx)(gC.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"})}),Yte=u7e;var d7e=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],Qte=d7e;var{name:Xte}=fC,Jte={icon:Yte,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:Qte,edit:Kte},p7e=()=>M({name:Xte,metadata:fC,settings:Jte});var XA={};J(XA,{init:()=>$7e,metadata:()=>wC,name:()=>Lre,settings:()=>SC});var op=a(D(),1);var Dre=a(K(),1);var tt=a(R(),1);var Fe=a(b(),1),m7e={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:n,href:i,width:s,height:l}=e,u=(0,Fe.jsx)("img",{src:t,alt:r,...s||l?{width:s,height:l}:{}}),d={};return s?d={width:s}:(n==="left"||n==="right")&&(d={maxWidth:"50%"}),(0,Fe.jsxs)("figure",{className:n?`align$n}`:null,style:d,children:[i?(0,Fe.jsx)("a",{href:i,children:u}):u,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]})}},f7e={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:n,href:i,width:s,height:l,id:c}=e,u=(0,Fe.jsx)("img",{src:t,alt:r,className:c?`wp-image-$c}`:null,width:s,height:l});return(0,Fe.jsxs)("figure",{className:n?`align$n}`:null,children:[i?(0,Fe.jsx)("a",{href:i,children:u}):u,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]})}},g7e={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:n,href:i,width:s,height:l,id:c}=e,u=T({[`align$n}`]:n,"is-resized":s||l}),d=(0,Fe.jsx)("img",{src:t,alt:r,className:c?`wp-image-$c}`:null,width:s,height:l});return(0,Fe.jsxs)("figure",{className:u,children:[i?(0,Fe.jsx)("a",{href:i,children:d}):d,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]})}},h7e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,id:d,linkTarget:p,sizeSlug:m,title:f}=e,g=s||void 0,h=T({[`align$n}`]:n,[`size-$m}`]:m,"is-resized":c||u}),v=(0,Fe.jsx)("img",{src:t,alt:r,className:d?`wp-image-$d}`:null,width:c,height:u,title:f}),x=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:p,rel:g,children:v}):v,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]});return n==="left"||n==="right"||n==="center"?(0,Fe.jsx)("div",{...tt.useBlockProps.save(),children:(0,Fe.jsx)("figure",{className:h,children:x})}):(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:h}),children:x})}},v7e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,id:d,linkTarget:p,sizeSlug:m,title:f}=e,g=s||void 0,h=T({[`align$n}`]:n,[`size-$m}`]:m,"is-resized":c||u}),v=(0,Fe.jsx)("img",{src:t,alt:r,className:d?`wp-image-$d}`:null,width:c,height:u,title:f}),x=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:p,rel:g,children:v}):v,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:h}),children:x})}},y7e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,id:m,linkTarget:f,sizeSlug:g,title:h}=e,v=s||void 0,x=(0,tt.__experimentalGetBorderClassesAndStyles)(e),_=T({[`align$n}`]:n,[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),k=T(x.className,{[`wp-image-$m}`]:!!m}),y=(0,Fe.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...x.style,aspectRatio:d,objectFit:p},width:c,height:u,title:h}),w=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:v,children:y}):y,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:_}),children:w})}},b7e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,id:m,linkTarget:f,sizeSlug:g,title:h}=e,v=s||void 0,x=(0,tt.__experimentalGetBorderClassesAndStyles)(e),_=T({[`align$n}`]:n,[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),k=T(x.className,{[`wp-image-$m}`]:!!m}),y=(0,Fe.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...x.style,aspectRatio:d,objectFit:p,width:c,height:u},width:c,height:u,title:h}),w=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:v,children:y}):y,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:_}),children:w})}},_7e={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,n={...r,lightbox:{enabled:o}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,id:m,linkTarget:f,sizeSlug:g,title:h}=e,v=s||void 0,x=(0,tt.__experimentalGetBorderClassesAndStyles)(e),_=T({[`align$n}`]:n,[`size-$g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),k=T(x.className,{[`wp-image-$m}`]:!!m}),y=(0,Fe.jsx)("img",{src:t,alt:r,className:k||void 0,style:{...x.style,aspectRatio:d,objectFit:p,width:c,height:u},title:h}),w=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:v,children:y}):y,!tt.RichText.isEmpty(o)&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:_}),children:w})}},x7e={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:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,focalPoint:m,id:f,linkTarget:g,sizeSlug:h,title:v,metadata:{bindings:x={}}={}}=e,_=s||void 0,k=(0,tt.__experimentalGetBorderClassesAndStyles)(e),y=(0,tt.__experimentalGetShadowClassesAndStyles)(e),w=T({alignnone:n==="none",[`size-$h}`]:h,"is-resized":c||u,"has-custom-border":!!k.className||k.style&&Object.keys(k.style).length>0}),C=T(k.className,{[`wp-image-$f}`]:!!f}),S=(0,Fe.jsx)("img",{src:t,alt:r,className:C||void 0,style:{...k.style,...y.style,aspectRatio:d,objectFit:p,objectPosition:m&&p?cf(m):void 0,width:c,height:u},title:v}),P=!tt.RichText.isEmpty(o)||x.caption||x?.__default?.source==="core/pattern-overrides",N=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:g,rel:_,children:S}):S,P&&(0,Fe.jsx)(tt.RichText.Content,{className:(0,tt.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:w}),children:N})}},ere=[x7e,_7e,b7e,y7e,v7e,h7e,g7e,f7e,m7e];var e0=a(Or(),1),Vb=a(K(),1),xre=a(V(),1),hf=a(O(),1),Ca=a(R(),1),rp=a(H(),1),Sc=a(D(),1);var kre=a(xr(),1),wre=a(he(),1),kC=a(dr(),1),Cre=a(rre(),1);var je=a(V(),1),Jh=a(he(),1),Cc=a(O(),1),Ft=a(R(),1),kr=a(H(),1),De=a(D(),1),KA=a(dr(),1),Xh=a(K(),1);var fre=a(xr(),1),xC=a(ne(),1);var wa=a(V(),1),hC=a(R(),1),ore=a(da(),1),nre=a(H(),1),$A=a(D(),1),are=a(O(),1);var ire=a(dr(),1),oi=a(b(),1),k7e=e=>{window.requestAnimationFrame(()=>{let[t]=ore.focus.tabbable.find(e?.current);t&&t.focus()})};function qA({url:e,filename:t,itemGroupProps:r,className:o,label:n}){return(0,oi.jsx)(wa.__experimentalItemGroup,{...r,as:"span",children:(0,oi.jsxs)(wa.__experimentalHStack,{justify:"flex-start",children:[(0,oi.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url($e})`:void 0}}),(0,oi.jsx)(wa.FlexBlock,{children:(0,oi.jsx)(wa.__experimentalTruncate,{numberOfLines:1,className:o,children:t??n})})]})})}function vC({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:n,onSelectURL:i,onError:s,onReset:l,isUploading:c=!1,emptyLabel:u=(0,$A.__)("Media")}){let{getSettings:d}=(0,are.useSelect)(hC.store),p=f=>{let{mediaUpload:g}=d();g&&g({allowedTypes:o,filesList:f,onFileChange([h]){n(h)},onError:s,multiple:!1})},m=(0,nre.useRef)();return(0,oi.jsxs)("div",{ref:m,className:"block-library-utils__media-control",children:[(0,oi.jsx)(hC.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:n,onSelectURL:i,onError:s,name:(0,oi.jsx)(qA,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,ire.getFilename)(r)||u}),renderToggle:f=>(0,oi.jsx)(wa.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,oi.jsx)(wa.Spinner,{}):f.children}),onReset:l}),t&&l&&(0,oi.jsx)(wa.Button,{label:(0,$A.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:HN,onClick:()=>{l(),k7e(m)}}),(0,oi.jsx)(wa.DropZone,{onFilesDrop:p})]})}var yC=a(ne(),1),bC=a(R(),1),ure=a(da(),1),_C=a(O(),1),Ls=a(H(),1);function sre(e){return typeof e!="string"||!(0,ure.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function w7e(e){let t=e?.caption;if(typeof t=="string")return sre(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return sre(t.raw)}function ZA(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:w7e(e)}}function lre(e){return e||""}function C7e(e,t,r){if(!t||!r)return{};let o=ZA(t),n=ZA(r),i={},s=lre(e.alt);o.alt!==n.alt&&(s===o.alt||!s)&&(i.alt=n.alt);let l=lre(e.caption);return o.caption!==void 0&&n.caption!==void 0&&o.caption!==n.caption&&(l===o.caption||!l)&&(i.caption=n.caption||void 0),i}function S7e(e,t){let r=t.media_details?.sizes;if(!e||e===Wd||!r)return;let o=r[e]?.source_url;if(o)return{url:o};let n=t.source_url??r.full?.source_url;return n?{url:n,sizeSlug:Wd}:void 0}function T7e(e,t){if(e===Hd)return t.source_url?{href:t.source_url}:void 0;if(e===jd)return t.link?{href:t.link}:void 0}function P7e(e,t){if(t)return{...S7e(e.sizeSlug,t),...T7e(e.linkDestination,t)}}var{openMediaEditorModalKey:E7e}=q(bC.privateApis);function B7e({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function cre(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=ZA(e).caption!==void 0;return t&&r}function dre({attributes:e,setAttributes:t,onClose:r,onUrlChange:o}){let{id:n,url:i,alt:s,caption:l,sizeSlug:c,linkDestination:u}=e,d=(0,_C.useRegistry)(),p=(0,_C.useSelect)(y=>y(bC.store).getSettings()[E7e],[]),m=(0,Ls.useRef)({id:n,url:i,alt:s,caption:l?.toString(),sizeSlug:c,linkDestination:u}),f=(0,Ls.useRef)(),g=(0,Ls.useRef)(0);(0,Ls.useEffect)(()=>{m.current={id:n,url:i,alt:s,caption:l?.toString(),sizeSlug:c,linkDestination:u}},[s,l,n,u,c,i]);let h=(0,Ls.useCallback)(y=>d.select(yC.store).getEditedEntityRecord("postType","attachment",y),[d]),v=(0,Ls.useCallback)(async y=>{let w=d.resolveSelect(yC.store);try{return await w.getEntityRecord("postType","attachment",y)}catch{return}},[d]),x=(0,Ls.useCallback)(async y=>{let{invalidateResolution:w}=d.dispatch(yC.store);return w("getEntityRecord",["postType","attachment",y]),v(y)},[d,v]),_=(0,Ls.useCallback)(async({id:y,url:w})=>{if(typeof y!="number")return;let C=f.current;f.current=void 0;let S=++g.current,P={},N=m.current,I=y!==N.id;if(I&&(P.id=y,P.url=w??N.url,P.url!==N.url&&o?.(P.url),m.current={...m.current,id:P.id,url:P.url}),C||I){let B=await x(y);if(S!==g.current)return;let E=B??h(y),L=m.current;if(C){let A=C7e(L,C,E);Object.keys(A).length&&Object.assign(P,A)}if(I){let A=P7e(L,E);A&&(Object.assign(P,A),A.url&&A.url!==L.url&&o?.(A.url))}}Object.keys(P).length&&(m.current={...m.current,...P},t(P))},[h,o,x,t]),k=(0,Ls.useCallback)(async()=>{if(!n||!p)return;let y=h(n),w=B7e(m.current),C=cre(y)?void 0:await v(n);f.current=C||(cre(y)?y:w)||y,p({id:n,onUpdate:_,onClose:r})},[h,_,n,r,p,v]);return n&&p?k:void 0}var de=a(b(),1),{DimensionsTool:pre,isDefaultBlockStyleState:N7e,ResolutionTool:I7e,mediaEditKey:R7e,mediaSideloadFromUrlKey:mre}=q(Ft.privateApis),D7e=[{value:"cover",label:(0,De._x)("Cover","Scale option for dimensions control"),help:(0,De.__)("Image covers the space evenly.")},{value:"contain",label:(0,De._x)("Contain","Scale option for dimensions control"),help:(0,De.__)("Image is contained without distortion.")}],L7e={placement:"bottom-start"},A7e=({href:e,children:t})=>e?(0,de.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function M7e({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:n,lockTitleControlsMessage:i}){let[s,l]=(0,kr.useState)(null),[c,u]=(0,kr.useState)(!1),[d,p]=(0,kr.useState)(!1);return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(je.ToolbarItem,{ref:l,children:m=>(0,de.jsx)(je.DropdownMenu,{icon:uv,label:(0,De.__)("More"),toggleProps:{...m,description:(0,De.__)("Displays more controls.")},popoverProps:L7e,children:({onClose:f})=>(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(je.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,De._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,de.jsx)(je.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,De.__)("Title text")})]})})}),c&&(0,de.jsx)(je.Popover,{placement:"bottom-start",anchor:s,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,de.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,de.jsx)(je.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,De.__)("Alternative text"),value:e.alt||"",onChange:m=>t({alt:m}),disabled:r,help:r?(0,de.jsx)(de.Fragment,{children:o}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(je.ExternalLink,{href:(0,De.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,De.__)("Describe the purpose of the image.")}),(0,de.jsx)("br",{}),(0,De.__)("Leave empty if decorative.")]})})})}),d&&(0,de.jsx)(je.Popover,{placement:"bottom-start",anchor:s,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,de.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,de.jsx)(je.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,De.__)("Title attribute"),value:e.title||"",onChange:m=>t({title:m}),disabled:n,help:n?(0,de.jsx)(de.Fragment,{children:i}):(0,kr.createInterpolateElement)((0,De.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,de.jsx)(je.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function gre({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:n,insertBlocksAfter:i,onReplace:s,onSelectImage:l,onSelectURL:c,onUploadError:u,context:d,clientId:p,blockEditingMode:m,parentLayoutType:f,maxContentWidth:g}){let{url:h="",alt:v,align:x,id:_,href:k,rel:y,linkClass:w,linkDestination:C,title:S,width:P,height:N,aspectRatio:I,scale:B,focalPoint:E,linkTarget:L,sizeSlug:A,lightbox:U,metadata:$,isDecorative:W}=r,[G,F]=(0,kr.useState)(),[Z,j]=(0,kr.useState)(null),[Y,ee]=(0,kr.useState)({}),[te,Q]=(0,kr.useState)(0),le=(0,Jh.useResizeObserver)(([xe])=>{if(!Z){let[Vt]=xe.borderBoxSize;ee({width:Vt.inlineSize,height:Vt.blockSize})}Q(xe.target.offsetTop)}),oe=(0,kr.useCallback)(()=>{Q(G?.offsetTop??0)},[G]),ce=(0,Jh.useMergeRefs)([F,le]),{allowResize:pe=!0,imageCrop:be=!1}=d,Te=be&&f==="flex",{image:ae,attachmentResolutionError:se}=(0,Cc.useSelect)(xe=>{let Vt=_&&n?xe(xC.store).getEntityRecord("postType","attachment",_,{context:"view"}):null,fs=_&&n?xe(xC.store).getResolutionError("getEntityRecord",["postType","attachment",_,{context:"view"}]):null;return{image:Vt,attachmentResolutionError:fs}},[_,n]),{canInsertCover:ue,imageEditing:Oe,imageSizes:Pe,maxWidth:ge,editMediaEntity:et}=(0,Cc.useSelect)(xe=>{let{getBlockRootClientId:Vt,canInsertBlockType:fs,getSettings:Oa}=xe(Ft.store),Y1=Vt(p),ad=Oa();return{imageEditing:ad.imageEditing,imageSizes:ad.imageSizes,maxWidth:ad.maxWidth,editMediaEntity:ad?.[R7e],canInsertCover:fs("core/cover",Y1)}},[p]),{getBlock:me,getSettings:ct}=(0,Cc.useSelect)(Ft.store),Ne=(0,kr.useRef)(),[ie,Ee]=(0,kr.useState)(),ve=!!ie,Xt=(0,kr.useCallback)(()=>Ne.current?.focus(),[]),Gt=dre({attributes:r,setAttributes:o,onClose:Xt,onUrlChange:Ee}),{replaceBlocks:br,toggleSelection:wo,__unstableMarkNextChangeAsNotPersistent:In}=(0,Cc.useDispatch)(Ft.store),{createErrorNotice:on,createSuccessNotice:vi}=(0,Cc.useDispatch)(fre.store),{editEntityRecord:aa}=(0,Cc.useDispatch)(xC.store),us=(0,Jh.useViewportMatch)("medium"),Rn=["wide","full"].includes(x),[{loadedNaturalWidth:Xl,loadedNaturalHeight:ol},ds]=(0,kr.useState)({}),[nl,su]=(0,kr.useState)(!1),ia=m==="default",sa=m==="contentOnly",yi=pe&&ia,Up=pe&&ia&&!Rn&&us,re=!!e||t,Ve=Pe.filter(({slug:xe})=>ae?.media_details?.sizes?.[xe]?.source_url).map(({name:xe,slug:Vt})=>({value:Vt,label:xe}));(0,kr.useEffect)(()=>{!_||!n||se?.status===404&&(In(),o({id:void 0}))},[_,n,se,o,In]);let Ye=n&&YA(_,h)&&!!ct()[mre],{naturalWidth:Ct,naturalHeight:Qe}=(0,kr.useMemo)(()=>({naturalWidth:G?.naturalWidth||Xl||void 0,naturalHeight:G?.naturalHeight||ol||void 0}),[Xl,ol,G?.complete]);(0,kr.useEffect)(()=>{ie&&ie===h&&G?.complete&&Ee(void 0)},[ie,h,G]);function Qr(){Ee(void 0),su(!0);let xe=Cd({attributes:{url:h}});xe!==void 0&&s&&s(xe)}function Fa(xe){Ee(void 0),su(!1),ds({loadedNaturalWidth:xe.target?.naturalWidth,loadedNaturalHeight:xe.target?.naturalHeight})}function ye(xe){o(xe)}function _e(xe){xe&&!_i?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!xe&&_i?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function _t(){_i?.enabled&&_i?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Jt(xe){o({title:xe})}function Co(xe){o({alt:xe})}function al(xe){o({isDecorative:xe||void 0,...xe&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let la=xe=>{G&&G.style.setProperty("object-position",cf(xe))};function ps(xe){let Vt=ae?.media_details?.sizes?.[xe]?.source_url;if(!Vt)return null;o({url:Vt,sizeSlug:xe})}function bi(){let xe=ct()[mre];xe&&xe({url:h,onSuccess(Vt){l(Vt),vi((0,De.__)("Image uploaded."),{type:"snackbar"})},onError(Vt){on(Vt,{type:"snackbar"})}})}let Wp=n&&(_&&Ct&&Qe&&Oe&&!!et)&&!!Gt&&!sa&&!re;function YT(){br(p,(0,Xh.switchToBlockType)(me(p),"core/cover"))}let QT=(0,je.__experimentalUseCustomUnits)({availableUnits:["px"]}),[_i]=(0,Ft.useSettings)("lightbox"),L2=!!U&&U?.enabled!==_i?.enabled||_i?.allowEditing,A2=!!U?.enabled||!U&&!!_i?.enabled,M2=X(),sl=(0,Cc.useSelect)(xe=>{if(!n)return;let{getSelectedBlockStyleState:Vt}=q(xe(Ft.store));return Vt(p)},[p,n]),ms=!N7e(sl),Gp=bh(sl),Tg=Ri({attributes:r,selectedState:sl,hasSelectedStyleState:ms,attributeKey:"width"}),XT=Ri({attributes:r,selectedState:sl,hasSelectedStyleState:ms,attributeKey:"height"}),ur=Ri({attributes:r,selectedState:sl,hasSelectedStyleState:ms,attributeKey:"aspectRatio"}),ll=Ri({attributes:r,selectedState:sl,hasSelectedStyleState:ms,attributeKey:"scale",styleKey:"objectFit"}),Jl=xe=>{o(_h({style:r.style,selectedState:sl,hasSelectedStyleState:ms,nextDimensions:xe,dimensionKeyMap:{scale:"objectFit"}}))},$p=yi&&(fA.includes(f)?(0,de.jsx)(pre,{panelId:p,value:{aspectRatio:ur,scale:ll},onChange:({aspectRatio:xe})=>{Jl({aspectRatio:xe,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},Gp):(0,de.jsx)(pre,{panelId:p,value:{width:Tg,height:XT,scale:ll,aspectRatio:ur},onChange:({width:xe,height:Vt,scale:fs,aspectRatio:Oa})=>{Jl({width:!xe&&Vt?"auto":xe,height:Vt,aspectRatio:Oa,scale:fs})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:D7e,unitsOptions:QT,tools:Rn?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},Gp)),NH=()=>{o({lightbox:void 0}),ps(Wd)},Pg=$?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:JT=!1,lockHrefControls:Kbe=!1,lockAltControls:z2=!1,lockAltControlsMessage:IH,lockTitleControls:eP=!1,lockTitleControlsMessage:RH,hideCaptionControls:Ybe=!1}=(0,Cc.useSelect)(xe=>{if(!n)return{};let{url:Vt,alt:fs,title:Oa,caption:Y1}=$?.bindings||{},ad=!!d["pattern/overrides"],tP=(0,Xh.getBlockBindingsSource)(Vt?.source),Eg=(0,Xh.getBlockBindingsSource)(fs?.source),id=(0,Xh.getBlockBindingsSource)(Oa?.source);return{lockUrlControls:!!Vt&&!tP?.canUserEditValue?.({select:xe,context:d,args:Vt?.args}),lockHrefControls:ad||Pg,hideCaptionControls:!!Y1,lockAltControls:!!fs&&!Eg?.canUserEditValue?.({select:xe,context:d,args:fs?.args}),lockAltControlsMessage:Eg?.label?(0,De.sprintf)((0,De.__)("Connected to %s"),Eg.label):(0,De.__)("Connected to dynamic data"),lockTitleControls:!!Oa&&!id?.canUserEditValue?.({select:xe,context:d,args:Oa?.args}),lockTitleControlsMessage:id?.label?(0,De.sprintf)((0,De.__)("Connected to %s"),id.label):(0,De.__)("Connected to dynamic data")}},[Pg,d,n,$?.bindings]),DH=n&&!Kbe&&!JT&&!W,LH=n&&ue&&!sa,Qbe=DH||Wp||LH,AH=n&&!JT&&(0,de.jsx)(de.Fragment,{children:(0,de.jsx)(Ft.BlockControls,{group:sa?"inline":"other",children:(0,de.jsx)(Ft.MediaReplaceFlow,{mediaId:_,mediaURL:h,allowedTypes:Ud,onSelect:l,onSelectURL:c,onError:u,name:h?(0,De.__)("Replace"):(0,De.__)("Add image"),onReset:()=>l(void 0),variant:"toolbar"})})}),Xbe=window?.__experimentalContentOnlyInspectorFields,MH=(0,de.jsxs)(de.Fragment,{children:[Qbe&&(0,de.jsxs)(Ft.BlockControls,{group:"block",children:[DH&&(0,de.jsx)(Ft.__experimentalImageURLInputUI,{url:k||"",onChangeUrl:ye,linkDestination:C,mediaUrl:ae&&ae.source_url||h,mediaLink:ae&&ae.link,linkTarget:L,linkClass:w,rel:y,showLightboxSetting:L2,lightboxEnabled:A2,onSetLightbox:_e,resetLightbox:_t}),Wp&&(0,de.jsx)(je.ToolbarButton,{ref:Ne,onClick:Gt,"aria-haspopup":"dialog",icon:am,label:(0,De.__)("Edit image"),disabled:ve}),LH&&(0,de.jsx)(je.ToolbarButton,{icon:$B,label:(0,De.__)("Add text over image"),onClick:YT})]}),Ye&&(0,de.jsx)(Ft.BlockControls,{children:(0,de.jsx)(je.ToolbarGroup,{children:(0,de.jsx)(je.ToolbarButton,{onClick:bi,icon:cu,label:(0,De.__)("Upload to Media Library")})})}),sa&&(0,de.jsx)(Ft.BlockControls,{group:"block",children:(0,de.jsx)(M7e,{attributes:r,setAttributes:o,lockAltControls:z2,lockAltControlsMessage:IH,lockTitleControls:eP,lockTitleControlsMessage:RH})}),!Xbe&&n&&(0,de.jsx)(Ft.InspectorControls,{group:"content",children:(0,de.jsxs)(je.__experimentalToolsPanel,{label:(0,De.__)("Media"),resetAll:()=>{l(void 0),o({isDecorative:!1})},dropdownMenuProps:M2,children:[!JT&&(0,de.jsx)(je.__experimentalToolsPanelItem,{label:(0,De.__)("Image"),hasValue:()=>!!h,onDeselect:()=>l(void 0),isShownByDefault:!0,children:(0,de.jsx)(vC,{mediaId:_,mediaUrl:h,alt:v,filename:ae?.media_details?.sizes?.full?.file||ae?.slug||(0,KA.getFilename)(h),allowedTypes:Ud,onSelect:l,onSelectURL:c,onError:u,onReset:()=>l(void 0),isUploading:re,emptyLabel:(0,De.__)("Add image")})}),!W&&(0,de.jsx)(je.__experimentalToolsPanelItem,{label:(0,De.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>o({alt:void 0}),children:(0,de.jsx)(je.TextareaControl,{label:(0,De.__)("Alternative text"),value:v||"",onChange:Co,readOnly:z2,help:z2?(0,de.jsx)(de.Fragment,{children:IH}):(0,de.jsx)(je.ExternalLink,{href:(0,De.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,De.__)("Describe the purpose of the image.")})})}),!z2&&!A2&&(0,de.jsx)(je.__experimentalToolsPanelItem,{label:(0,De.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!W,onDeselect:()=>o({isDecorative:!1}),children:(0,de.jsx)(je.CheckboxControl,{label:(0,De.__)("Mark as decorative"),checked:!!W,onChange:al,help:(0,De.__)("Hidden from assistive technologies.")})})]})}),(0,de.jsxs)(Ft.InspectorControls,{group:"dimensions",resetAllFilter:xe=>xh({attributes:xe,selectedState:sl,hasSelectedStyleState:ms,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[$p,!ms&&h&&B&&(0,de.jsx)(je.__experimentalToolsPanelItem,{label:(0,De.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!E,onDeselect:()=>o({focalPoint:void 0}),panelId:p,children:(0,de.jsx)(je.FocalPointPicker,{label:(0,De.__)("Focal point"),url:h,value:E,onDragStart:la,onDrag:la,onChange:xe=>o({focalPoint:xe})})})]}),!!Ve.length&&(0,de.jsx)(Ft.InspectorControls,{children:(0,de.jsx)(je.__experimentalToolsPanel,{label:(0,De.__)("Settings"),resetAll:NH,dropdownMenuProps:M2,children:(0,de.jsx)(I7e,{value:A,defaultValue:Wd,onChange:ps,options:Ve})})}),(0,de.jsx)(Ft.InspectorControls,{group:"advanced",children:(0,de.jsx)(je.TextControl,{label:(0,De.__)("Title attribute"),value:S||"",onChange:Jt,readOnly:eP,help:eP?(0,de.jsx)(de.Fragment,{children:RH}):(0,kr.createInterpolateElement)((0,De.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,de.jsx)(je.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),V2=(0,KA.getFilename)(h),K1;W?K1=V2?(0,De.sprintf)((0,De.__)("This image has been marked as decorative; its file name is %s"),V2):(0,De.__)("This image has been marked as decorative."):v?K1=v:V2?K1=(0,De.sprintf)((0,De.__)("This image has an empty alt attribute; its file name is %s"),V2):K1=(0,De.__)("This image has an empty alt attribute");let zH=(0,Ft.__experimentalUseBorderProps)(r),Jbe=(0,Ft.__experimentalGetShadowClassesAndStyles)(r),{postType:e_e,postId:VH,queryId:t_e}=d,r_e=Number.isFinite(t_e),o_e=(0,de.jsx)(A7e,{href:k,children:e&&nl?(0,de.jsx)(je.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,de.jsx)(je.Spinner,{})}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("img",{src:e||h,alt:K1,onError:Qr,onLoad:Fa,ref:ce,className:T(zH.className,{"is-swapping-media":ve}),width:Ct,height:Qe,style:{aspectRatio:I,...Z?{width:Y.width+Z.width,height:Y.height+Z.height}:(()=>{let xe={};return P==="auto"?xe.width="auto":P!=null&&(xe.width=typeof P=="number"?`$P}px`:P),N==="auto"?xe.height="auto":N!=null?xe.height=typeof N=="number"?`$N}px`:N:Te||(xe.height="auto"),xe})(),objectFit:B,objectPosition:E&&B?cf(E):void 0,...zH.style,...Jbe.style}}),(re||ve)&&(0,de.jsx)(je.Spinner,{})]})}),FH;if(Up&&n&&!re&&!fA.includes(f)){let xe=I&&RJ(I),Vt=Y.width/Y.height,fs=Ct/Qe,Oa=xe||Vt||fs||1,Y1=Ct<Qe?xc:xc*Oa,ad=Qe<Ct?xc:xc/Oa,tP=ge*2.5,Eg=g||tP,id=!1,F2=!1;x==="center"?(id=!0,F2=!0):(0,De.isRTL)()?x==="left"?id=!0:F2=!0:x==="right"?F2=!0:id=!0,FH=(0,de.jsx)(je.ResizableBox,{ref:oe,style:{position:"absolute",inset:`$te}px 0 0 0`},size:Y,minWidth:Y1,maxWidth:Eg,minHeight:ad,maxHeight:Eg/Oa,lockAspectRatio:Oa,enable:{top:!1,right:id,bottom:!0,left:F2},onResizeStart:()=>{wo(!1)},onResize:(a_e,i_e,rP,O2)=>{j(O2)},onResizeStop:(a_e,i_e,rP,O2)=>{if(wo(!0),j(null),ee(OH=>({width:OH.width+O2.width,height:OH.height+O2.height})),g&&Ct>=g&&Math.abs(rP.offsetWidth-g)<10){o({width:void 0,height:void 0});return}o({width:`$rP.offsetWidth}px`,height:"auto",aspectRatio:Oa===fs?void 0:String(Oa)})},resizeRatio:x==="center"?2:1})}if(!h&&!e)return(0,de.jsxs)(de.Fragment,{children:[AH,MH]});let n_e=()=>{aa("postType",e_e,VH,{featured_media:_}),vi((0,De.__)("Post featured image updated."),{type:"snackbar"})};return(0,de.jsxs)(de.Fragment,{children:[AH,MH,!r_e&&VH&&_?(0,de.jsx)(Ft.BlockSettingsMenuControls,{children:({canEdit:xe,selectedClientIds:Vt})=>xe&&Vt.length===1&&p===Vt[0]&&(0,de.jsx)(je.MenuItem,{onClick:n_e,children:(0,De.__)("Set as featured image")})}):null,o_e,FH,!W&&(0,de.jsx)($o,{attributes:r,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,De.__)("Image caption text"),showToolbarButton:n&&(ia||sa)&&!Ybe})]})}var hre=a(H(),1),vre=a(he(),1),yre=a(b(),1);function bre(){let[e,{width:t}]=(0,vre.useResizeObserver)(),r=(0,hre.useRef)();return[(0,yre.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 Dl=a(b(),1),z7e=(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},YA=(e,t)=>t&&!e&&!(0,e0.isBlobURL)(t);function _re(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function V7e({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:n,onReplace:i,context:s,clientId:l,__unstableParentLayout:c}){let{url:u="",caption:d,id:p,width:m,height:f,sizeSlug:g,aspectRatio:h,scale:v,align:x,metadata:_}=e,[k,y]=(0,rp.useState)(e.blob),w=(0,rp.useRef)(),C=c?.type||c?.default?.type,S=!C||C!=="flex"&&C!=="grid",[P,N]=bre(),[I,{width:B}]=(0,wre.useResizeObserver)(),E=B&&B<160,L=(0,rp.useRef)();(0,rp.useEffect)(()=>{L.current=d},[d]);let{__unstableMarkNextChangeAsNotPersistent:A,replaceBlock:U}=(0,hf.useDispatch)(Ca.store);(0,rp.useEffect)(()=>{["wide","full"].includes(x)&&(A(),t({width:void 0,height:void 0}))},[A,x,t]);let{getSettings:$,getBlockRootClientId:W,getBlockName:G,canInsertBlockType:F}=(0,hf.useSelect)(Ca.store),Z=(0,Ca.useBlockEditingMode)(),{createErrorNotice:j}=(0,hf.useDispatch)(kre.store);function Y(me){j(me,{type:"snackbar",explicitDismiss:!0}),y(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function ee(me){me.length===1&&y((0,e0.createBlobURL)(me[0]))}function te(me){let ct=w.current?.ownerDocument.defaultView;if(me.every(Ne=>Ne instanceof ct.File)){let Ne=me,ie=W(l);Ne.some(ve=>!gA(ve))&&j((0,Sc.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ee=Ne.filter(ve=>gA(ve)).map(ve=>(0,Vb.createBlock)("core/image",{blob:(0,e0.createBlobURL)(ve)}));if(G(ie)==="core/gallery")U(l,Ee);else if(F("core/gallery",ie)){let ve=(0,Vb.createBlock)("core/gallery",{},Ee);U(l,ve)}}}function Q(me){if(Array.isArray(me)){te(me);return}if(!me||!me.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),y();return}if((0,e0.isBlobURL)(me.url)){y(me.url);return}let{imageDefaultSize:ct}=$(),Ne=Wd;g&&_re(me,g)?Ne=g:_re(me,ct)&&(Ne=ct);let ie=z7e(me,Ne);if(typeof ie.caption=="string"&&ie.caption.includes(`
  73  `)&&(ie.caption=ie.caption.replace(/\n/g,"<br>")),L.current&&!ie.caption){let{caption:Gt,...br}=ie;ie=br}let Ee;(!me.id||me.id!==p)&&(Ee={sizeSlug:Ne});let ve=e.linkDestination;if(!ve)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||lf){case"file":case Hd:ve=Hd;break;case"post":case jd:ve=jd;break;case mA:ve=mA;break;case lf:ve=lf;break}let Xt;switch(ve){case Hd:Xt=me.url;break;case jd:Xt=me.link;break}ie.href=Xt,t({blob:void 0,...ie,...Ee,linkDestination:ve}),y()}function le(me){let ct=(0,kC.getProtocol)(me)?me:(0,kC.prependHTTPS)(me);ct!==u&&(t({blob:void 0,url:ct,id:void 0,sizeSlug:$().imageDefaultSize}),y())}tc({url:k,allowedTypes:Ud,onChange:Q,onError:Y});let ce=YA(p,u)?u:void 0,pe=(0,hf.useSelect)(me=>!window.__clientSideMediaProcessing||!p?!1:me(Cre.store).isUploadingById(p),[p]),be=!!u&&(0,Dl.jsx)("img",{alt:(0,Sc.__)("Edit image"),title:(0,Sc.__)("Edit image"),className:"edit-image-preview",src:u}),Te=(0,Ca.__experimentalUseBorderProps)(e),ae=(0,Ca.__experimentalGetShadowClassesAndStyles)(e),se=T(o,{"is-transient":!!k||pe,"is-resized":!!m||!!f,[`size-$g}`]:g,"has-custom-border":!!Te.className||Te.style&&Object.keys(Te.style).length>0}),ue=(0,Ca.useBlockProps)({ref:w,className:se}),{lockUrlControls:Oe=!1,lockUrlControlsMessage:Pe}=(0,hf.useSelect)(me=>{if(!r)return{};let ct=(0,Vb.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!ct?.canUserEditValue?.({select:me,context:s,args:_?.bindings?.url?.args}),lockUrlControlsMessage:ct?.label?(0,Sc.sprintf)((0,Sc.__)("Connected to %s"),ct.label):(0,Sc.__)("Connected to dynamic data")}},[s,r,_?.bindings?.url]),ge=f==="auto"?void 0:f;return(0,Dl.jsxs)(Dl.Fragment,{children:[(0,Dl.jsxs)("figure",{...ue,children:[(0,Dl.jsx)(gre,{temporaryURL:k,isSideloading:pe,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:Q,onSelectURL:le,onUploadError:Y,context:s,clientId:l,blockEditingMode:Z,parentLayoutType:C,maxContentWidth:N}),(0,Dl.jsx)(Ca.MediaPlaceholder,{icon:(0,Dl.jsx)(Ca.BlockIcon,{icon:dd}),onSelect:Q,onSelectURL:le,onFilesPreUpload:ee,onError:Y,placeholder:me=>(0,Dl.jsxs)(xre.Placeholder,{className:T("block-editor-media-placeholder",{[Te.className]:!!Te.className&&!r}),icon:!E&&(Oe?oN:dd),withIllustration:!r||E,label:!E&&(0,Sc.__)("Image"),instructions:!Oe&&!E&&(0,Sc.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(m&&ge)&&h?h:void 0,width:ge&&h?"100%":m,height:m&&h?"100%":ge,objectFit:v,...Te.style,...ae.style},children:[Oe&&!E&&Pe,!Oe&&!E&&me,I]}),allowedTypes:Ud,handleUpload:me=>me.length===1,value:{id:p,src:ce},mediaPreview:be,disableMediaButtons:k||u})]}),r&&S&&P]})}var Sre=V7e;var wC={$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 Ll=a(R(),1);var Eu=a(b(),1);function Tre({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:s,linkClass:l,width:c,height:u,aspectRatio:d,scale:p,focalPoint:m,id:f,linkTarget:g,sizeSlug:h,title:v,isDecorative:x,metadata:{bindings:_={}}={}}=e,k=s||void 0,y=(0,Ll.__experimentalGetBorderClassesAndStyles)(e),w=(0,Ll.__experimentalGetShadowClassesAndStyles)(e),C=T({alignnone:n==="none",[`size-$h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),S=T(y.className,{[`wp-image-$f}`]:!!f}),P=(0,Eu.jsx)("img",{src:t,alt:r,className:S||void 0,style:(()=>{let B={...y.style,...w.style,aspectRatio:d,objectFit:p,objectPosition:m&&p?cf(m):void 0};return(c!==void 0||u!==void 0)&&(c==="auto"?B.width="auto":c!=null&&(B.width=typeof c=="number"?`$c}px`:c),u==="auto"||u===void 0||u===null?B.height="auto":B.height=typeof u=="number"?`$u}px`:u),B})(),title:v,role:x?"none":void 0}),N=!Ll.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",I=(0,Eu.jsxs)(Eu.Fragment,{children:[i?(0,Eu.jsx)("a",{className:l,href:i,target:g,rel:k,children:P}):P,N&&(0,Eu.jsx)(Ll.RichText.Content,{className:(0,Ll.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Eu.jsx)("figure",{...Ll.useBlockProps.save({className:C}),children:I})}var CC=a(Or(),1),t0=a(K(),1),Nre=a(O(),1),Ire=a(ne(),1);function O7e(e){let{align:t,anchor:r,className:o,style:n}=e,i=n?.spacing?.margin;return{...t&&{align:t},...r&&{anchor:r},...o&&{className:o},...i&&{style:{spacing:{margin:i}}}}}function Pre(e,t){if(!e||!t?.split(/[?#]/)[0]?.toLowerCase().endsWith(".gif"))return null;let o=(0,Nre.select)(Ire.store).getEntityRecord("postType","attachment",e,{context:"view"}),n=o?.media_details;if(!n?.animated_video||!o?.source_url)return null;let i=o.source_url.slice(0,o.source_url.lastIndexOf("/")+1);return{src:i+n.animated_video,poster:n.animated_video_poster?i+n.animated_video_poster:void 0,width:n.width,height:n.height}}function H7e(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 QA(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 Ere={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function Bre(e){return e&&/^\d+$/.test(e)?`$e}px`:void 0}var j7e=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...Ere,a:{attributes:["href","rel","target"],classes:["*"],children:Ere},figcaption:{children:e}}}}),U7e={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:j7e,transform:e=>{let t=e.querySelector("img"),r=e.className+" "+t.className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(r),n=e.id===""?void 0:e.id,i=o?o[1]:void 0,s=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(r),l=s?Number(s[1]):void 0,c=e.querySelector("a"),u=c&&c.href?"custom":void 0,d=c&&c.href?c.href:void 0,p=c&&c.rel?c.rel:void 0,m=c&&c.className?c.className:void 0,f=Bre(t.getAttribute("width")),g=Bre(t.getAttribute("height")),h=parseInt(f,10),v=parseInt(g,10),x=h&&v?String(h/v):void 0,_=f||(g?"auto":void 0),k=f?"auto":g,y=(0,t0.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:l,linkDestination:u,href:d,rel:p,linkClass:m,anchor:n,width:_,height:k,aspectRatio:x});return(0,CC.isBlobURL)(y.url)&&(y.blob=y.url,delete y.url),(0,t0.createBlock)("core/image",y)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,t0.createBlock)("core/image",{blob:(0,CC.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:H7e},href:{shortcode:(e,{shortcode:t})=>QA(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>QA(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>QA(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})=>!!Pre(e,t),transform(e){let{id:t,url:r,caption:o}=e,n=Pre(t,r);return(0,t0.createBlock)("core/video",{...O7e(e),id:t,src:n.src,poster:n.poster,caption:o,controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0,width:n.width,height:n.height})}}]},Rre=U7e;var{fieldsKey:W7e,formKey:G7e}=q(Dre.privateApis),{name:Lre}=wC,SC={icon:dd,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,op.__)("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:n,url:i}=e;return i?n?n+(o?". "+o:""):o||"":(0,op.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:Rre,edit:Sre,save:Tre,deprecated:ere};window.__experimentalContentOnlyInspectorFields&&(SC[W7e]=[{id:"image",label:(0,op.__)("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,op.__)("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,op.__)("Caption"),type:"text",Edit:"rich-text",isVisible:e=>!e.isDecorative},{id:"alt",label:(0,op.__)("Alt text"),type:"text",isVisible:e=>!e.isDecorative},{id:"isDecorative",label:(0,op.__)("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}})}],SC[G7e]={fields:["image","link","caption","alt","isDecorative"]});var $7e=()=>M({name:Lre,metadata:wC,settings:SC});var JA={};J(JA,{init:()=>Q7e,metadata:()=>TC,name:()=>Fre,settings:()=>Ore});var TC={$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 PC=a(R(),1),$n=a(V(),1),Gn=a(D(),1),Are=a(sd(),1),Mre=a(he(),1);var po=a(b(),1),Z7e=1,K7e=100;function zre({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:n,displayDate:i,displayContent:s}=e,l=X(),{content:c,status:u,error:d}=(0,Are.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,Mre.useDisabled)(),m=(0,PC.useBlockProps)({ref:p});return(0,po.jsxs)(po.Fragment,{children:[(0,po.jsx)(PC.InspectorControls,{children:(0,po.jsxs)($n.__experimentalToolsPanel,{label:(0,Gn.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:l,children:[(0,po.jsx)($n.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Gn.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,po.jsx)($n.ToggleControl,{label:(0,Gn.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,po.jsx)($n.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Gn.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,po.jsx)($n.ToggleControl,{label:(0,Gn.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,po.jsx)($n.__experimentalToolsPanelItem,{hasValue:()=>s!=="excerpt",label:(0,Gn.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,po.jsx)($n.SelectControl,{label:(0,Gn.__)("Display content"),value:s,options:[{label:(0,Gn.__)("No content"),value:"none"},{label:(0,Gn.__)("Excerpt"),value:"excerpt"},{label:(0,Gn.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,po.jsx)($n.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,Gn.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,po.jsx)($n.RangeControl,{label:(0,Gn.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:Z7e,max:K7e,required:!0})})]})}),u==="loading"&&(0,po.jsx)("div",{...m,children:(0,po.jsx)($n.Spinner,{})}),u==="error"&&(0,po.jsx)("div",{...m,children:(0,po.jsx)("p",{children:(0,Gn.sprintf)((0,Gn.__)("Error: %s"),d)})}),u==="success"&&(0,po.jsx)(To,{wrapperProps:m,html:c})]})}var Y7e={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"}}},Vre=[Y7e];var{name:Fre}=TC,Ore={icon:fv,example:{},edit:zre,deprecated:Vre},Q7e=()=>M({name:Fre,metadata:TC,settings:Ore});var rM={};J(rM,{init:()=>l8e,metadata:()=>vf,name:()=>Zre,settings:()=>Kre});var vf={$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 J7e={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}},e8e={postLayout:{type:"string",default:"list"},columns:{type:"number",default:3}},Hre=e=>!e.categories||typeof e.categories!="string"?e:{...e,categories:[{id:Number(e.categories)}]},t8e=e=>{let{postLayout:t,columns:r,...o}=e;return t?{...o,layout:{type:t==="grid"?"grid":"default",...t==="grid"&&r&&{columnCount:r}}}:e},jre=[{attributes:{...vf.attributes,...e8e,categories:{type:["array","string"]}},supports:J7e,migrate:e=>t8e(Hre(e)),isEligible:({postLayout:e})=>e,save:()=>null},{attributes:{...vf.attributes,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:Hre,isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var nt=a(V(),1),qe=a(D(),1),r0=a(A3(),1),Tc=a(R(),1),Fb=a(O(),1);var eM=a(ne(),1),Gre=a(xr(),1),$re=a(he(),1),qre=a(H(),1);var Ure=10,Wre=100,EC=55;var Le=a(b(),1),r8e={per_page:-1,_fields:"id,name",context:"view"},o8e={per_page:-1,has_published_posts:["post"],context:"view"},n8e=[{value:"none",icon:DP,label:(0,qe.__)("None")},{value:"left",icon:iN,label:(0,qe.__)("Left")},{value:"center",icon:aN,label:(0,qe.__)("Center")},{value:"right",icon:sN,label:(0,qe.__)("Right")}];function a8e(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 i8e(e){return e._embedded?.author?.[0]}function s8e({attributes:e,setAttributes:t}){let{postsToShow:r,order:o,orderBy:n,categories:i,selectedAuthor:s,displayFeaturedImage:l,displayPostContentRadio:c,displayPostContent:u,displayPostDate:d,displayAuthor:p,excerptLength:m,featuredImageAlign:f,featuredImageSizeSlug:g,featuredImageSizeWidth:h,featuredImageSizeHeight:v,addLinkToFeaturedImage:x}=e,{imageSizes:_,defaultImageWidth:k,defaultImageHeight:y,categoriesList:w,authorList:C}=(0,Fb.useSelect)(B=>{let{getEntityRecords:E,getUsers:L}=B(eM.store),A=B(Tc.store).getSettings();return{defaultImageWidth:A.imageDimensions?.[g]?.width??0,defaultImageHeight:A.imageDimensions?.[g]?.height??0,imageSizes:A.imageSizes,categoriesList:E("taxonomy","category",r8e),authorList:L(o8e)}},[g]),S=X(),P=_.filter(({slug:B})=>B!=="full").map(({name:B,slug:E})=>({value:E,label:B})),N=w?.reduce((B,E)=>(B[E.name]=E,B),{})??{},I=B=>{if(B.some(A=>typeof A=="string"&&!N[A]))return;let L=B.map(A=>typeof A=="string"?N[A]:A);if(L.includes(null))return!1;t({categories:L})};return(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsxs)(nt.__experimentalToolsPanel,{label:(0,qe.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:EC}),dropdownMenuProps:S,children:[(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,qe.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,Le.jsx)(nt.ToggleControl,{label:(0,qe.__)("Display post content"),checked:u,onChange:B=>t({displayPostContent:B})})}),u&&(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>c!=="excerpt",label:(0,qe.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,Le.jsx)(nt.RadioControl,{label:(0,qe.__)("Content length"),selected:c,options:[{label:(0,qe.__)("Excerpt"),value:"excerpt"},{label:(0,qe.__)("Full post"),value:"full_post"}],onChange:B=>t({displayPostContentRadio:B})})}),u&&c==="excerpt"&&(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>m!==EC,label:(0,qe.__)("Max number of words"),onDeselect:()=>t({excerptLength:EC}),isShownByDefault:!0,children:(0,Le.jsx)(nt.RangeControl,{label:(0,qe.__)("Max number of words"),value:m,onChange:B=>t({excerptLength:B}),min:Ure,max:Wre})})]}),(0,Le.jsxs)(nt.__experimentalToolsPanel,{label:(0,qe.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:S,children:[(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,qe.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,Le.jsx)(nt.ToggleControl,{label:(0,qe.__)("Display author name"),checked:p,onChange:B=>t({displayAuthor:B})})}),(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,qe.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,Le.jsx)(nt.ToggleControl,{label:(0,qe.__)("Display post date"),checked:d,onChange:B=>t({displayPostDate:B})})})]}),(0,Le.jsxs)(nt.__experimentalToolsPanel,{label:(0,qe.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:S,children:[(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,qe.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,Le.jsx)(nt.ToggleControl,{label:(0,qe.__)("Display featured image"),checked:l,onChange:B=>t({displayFeaturedImage:B})})}),l&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>g!=="thumbnail"||h!==null||v!==null,label:(0,qe.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,Le.jsx)(Tc.__experimentalImageSizeControl,{onChange:B=>{let E={};B.hasOwnProperty("width")&&(E.featuredImageSizeWidth=B.width),B.hasOwnProperty("height")&&(E.featuredImageSizeHeight=B.height),t(E)},slug:g,width:h,height:v,imageWidth:k,imageHeight:y,imageSizeOptions:P,imageSizeHelp:(0,qe.__)("Select the size of the source image."),onChangeImage:B=>t({featuredImageSizeSlug:B,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,qe.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,Le.jsx)(nt.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",label:(0,qe.__)("Image alignment"),value:f||"none",onChange:B=>t({featuredImageAlign:B!=="none"?B:void 0}),children:n8e.map(({value:B,icon:E,label:L})=>(0,Le.jsx)(nt.__experimentalToggleGroupControlOptionIcon,{value:B,icon:E,label:L},B))})}),(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!x,label:(0,qe.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,Le.jsx)(nt.ToggleControl,{label:(0,qe.__)("Add link to featured image"),checked:x,onChange:B=>t({addLinkToFeaturedImage:B})})})]})]}),(0,Le.jsx)(nt.__experimentalToolsPanel,{label:(0,qe.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),dropdownMenuProps:S,children:(0,Le.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>o!=="desc"||n!=="date"||r!==5||i?.length>0||!!s,label:(0,qe.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,Le.jsx)(nt.QueryControls,{order:o,orderBy:n,numberOfItems:r,onOrderChange:B=>t({order:B}),onOrderByChange:B=>t({orderBy:B}),onNumberOfItemsChange:B=>t({postsToShow:B}),categorySuggestions:N,onCategoryChange:I,selectedCategories:i,onAuthorChange:B=>t({selectedAuthor:B!==""?Number(B):void 0}),authorList:C??[],selectedAuthorId:s})})})]})}function tM({attributes:e,setAttributes:t,__unstableLayoutClassNames:r}){let o=(0,$re.useInstanceId)(tM),{postsToShow:n,order:i,orderBy:s,categories:l,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:d,displayPostContent:p,displayPostDate:m,displayAuthor:f,layout:g,postLayout:h,columns:v,excerptLength:x,featuredImageAlign:_,featuredImageSizeSlug:k,featuredImageSizeWidth:y,featuredImageSizeHeight:w,addLinkToFeaturedImage:C}=e,{type:S,minimumColumnWidth:P}=g||{},N=S||(h==="grid"?"grid":"default"),I=g?.columnCount??(S?void 0:v)??3,{latestPosts:B}=(0,Fb.useSelect)(j=>{let{getEntityRecords:Y}=j(eM.store),ee=l&&l.length>0?l.map(Q=>Q.id):[],te=Object.fromEntries(Object.entries({categories:ee,author:c,order:i,orderby:s,per_page:n,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,Q])=>typeof Q<"u"));return{latestPosts:Y("postType","post",te)}},[n,i,s,l,c]),{createWarningNotice:E}=(0,Fb.useDispatch)(Gre.store),L=j=>{j.preventDefault(),E((0,qe.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/$o}`,type:"snackbar"})},A=!!B?.length,U=(0,Le.jsx)(Tc.InspectorControls,{children:(0,Le.jsx)(s8e,{attributes:e,setAttributes:t})}),$=(0,Tc.useBlockProps)({className:T(r,{"wp-block-latest-posts__list":!0,"is-grid":N==="grid","has-dates":m,"has-author":f,[`columns-$I}`]:N==="grid"&&I,"has-native-responsive-grid":N==="grid"&&I&&P})});if(!A)return(0,Le.jsxs)("div",{...$,children:[U,(0,Le.jsx)(nt.Placeholder,{icon:Ov,label:(0,qe.__)("Latest Posts"),children:Array.isArray(B)?(0,qe.__)("No posts found."):(0,Le.jsx)(nt.Spinner,{})})]});let W=B.length>n?B.slice(0,n):B,G=j=>t({layout:{...g,...j},postLayout:void 0,columns:void 0}),F=[{icon:dl,title:(0,qe._x)("List view","Latest posts block display setting"),onClick:()=>G({type:"default"}),isActive:N==="default"||N==="constrained"},{icon:ki,title:(0,qe._x)("Grid view","Latest posts block display setting"),onClick:()=>G({type:"grid",columnCount:I}),isActive:N==="grid"}],Z=(0,r0.getSettings)().formats.date;return(0,Le.jsxs)(Le.Fragment,{children:[U,(0,Le.jsx)(Tc.BlockControls,{children:(0,Le.jsx)(nt.ToolbarGroup,{controls:F})}),(0,Le.jsx)("ul",{...$,children:W.map(j=>{let Y=j.title.rendered.trim(),ee=j.excerpt.rendered,te=i8e(j),Q=document.createElement("div");Q.innerHTML=ee,ee=Q.textContent||Q.innerText||"";let{url:le,alt:oe}=a8e(j,k),ce=T({"wp-block-latest-posts__featured-image":!0,[`align$_}`]:!!_}),pe=u&&le,be=pe&&(0,Le.jsx)("img",{src:le,alt:oe,style:{maxWidth:y,maxHeight:w}}),ae=x<ee.trim().split(" ").length&&j.excerpt.raw===""?(0,Le.jsxs)(Le.Fragment,{children:[ee.trim().split(" ",x).join(" "),(0,qre.createInterpolateElement)((0,qe.sprintf)((0,qe.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),Y||(0,qe.__)("(no title)")),{a:(0,Le.jsx)("a",{className:"wp-block-latest-posts__read-more",href:j.link,rel:"noopener",onClick:L}),span:(0,Le.jsx)("span",{className:"screen-reader-text"})})]}):ee;return(0,Le.jsxs)("li",{children:[pe&&(0,Le.jsx)("div",{className:ce,children:C?(0,Le.jsx)("a",{href:j.link,onClick:L,children:be}):be}),(0,Le.jsx)("a",{className:"wp-block-latest-posts__post-title",href:j.link,dangerouslySetInnerHTML:Y?{__html:Y}:void 0,onClick:L,children:Y?null:(0,qe.__)("(no title)")}),f&&te&&(0,Le.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,qe.sprintf)((0,qe.__)("by %s"),te.name)}),m&&j.date_gmt&&(0,Le.jsx)("time",{dateTime:(0,r0.format)("c",j.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,r0.dateI18n)(Z,j.date_gmt)}),p&&d==="excerpt"&&(0,Le.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:ae}),p&&d==="full_post"&&(0,Le.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:j.content.rendered.trim()}})]},j.id)})})]})}var{name:Zre}=vf,Kre={icon:Kv,example:{},edit:tM,deprecated:jre},l8e=()=>M({name:Zre,metadata:vf,settings:Kre});var iM={};J(iM,{init:()=>w8e,metadata:()=>DC,name:()=>coe,settings:()=>uoe});var a0=a(D(),1);var Al=a(R(),1);var o0=a(K(),1),BC={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function oM(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&&BC[t]?BC[t]:void 0},o=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(m=>m.nodeType!==m.TEXT_NODE||m.textContent.trim().length!==0);i.reverse();let[s,...l]=i;if(!(s?.tagName==="UL"||s?.tagName==="OL"))return(0,o0.createBlock)("core/list-item",{content:n.innerHTML});let u=l.map(m=>m.nodeType===m.TEXT_NODE?m.textContent:m.outerHTML);u.reverse();let d={content:u.join("").trim()},p=[oM(s)];return(0,o0.createBlock)("core/list-item",d,p)});return(0,o0.createBlock)("core/list",r,o)}function NC(e){let{values:t,start:r,reversed:o,ordered:n,type:i,...s}=e,l=document.createElement(n?"ol":"ul");l.innerHTML=t,r&&l.setAttribute("start",r),o&&l.setAttribute("reversed",!0),i&&l.setAttribute("type",i);let[c]=(0,o0.rawHandler)({HTML:l.outerHTML});return[{...s,...c.attributes},c.innerBlocks]}function Yre(e){let{type:t}=e;return t&&BC[t]?{...e,type:BC[t]}:e}var Bu=a(b(),1),c8e={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:n,start:i}=e;return(0,Bu.jsx)(t?"ol":"ul",{...Al.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Bu.jsx)(Al.RichText.Content,{value:r,multiline:"li"})})},migrate:er,isEligible({style:e}){return e?.typography?.fontFamily}},u8e={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:n,start:i}=e;return(0,Bu.jsx)(t?"ol":"ul",{...Al.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Bu.jsx)(Al.RichText.Content,{value:r,multiline:"li"})})},migrate:NC},d8e={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:n}=e;return(0,Bu.jsx)(t?"ol":"ul",{...Al.useBlockProps.save({type:r,reversed:o,start:n}),children:(0,Bu.jsx)(Al.InnerBlocks.Content,{})})},migrate:Yre},p8e={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:n}=e;return(0,Bu.jsx)(t?"ol":"ul",{...Al.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Bu.jsx)(Al.InnerBlocks.Content,{})})}},Qre=[p8e,d8e,u8e,c8e];var Ms=a(R(),1),IC=a(V(),1),np=a(O(),1),Ml=a(D(),1);var ooe=a(K(),1),RC=a(H(),1),noe=a(Lm(),1);var Ui=a(D(),1),Xre=a(R(),1),As=a(V(),1);var Pc=a(b(),1),m8e=[{label:(0,Ui.__)("Numbers"),value:"decimal"},{label:(0,Ui.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Ui.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Ui.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Ui.__)("Lowercase Roman numerals"),value:"lower-roman"}],f8e=({setAttributes:e,reversed:t,start:r,type:o})=>{let n=X();return(0,Pc.jsx)(Xre.InspectorControls,{children:(0,Pc.jsxs)(As.__experimentalToolsPanel,{label:(0,Ui.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,Pc.jsx)(As.__experimentalToolsPanelItem,{label:(0,Ui.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,Pc.jsx)(As.SelectControl,{label:(0,Ui.__)("List style"),options:m8e,value:o||"decimal",onChange:i=>e({type:i})})}),(0,Pc.jsx)(As.__experimentalToolsPanelItem,{label:(0,Ui.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,Pc.jsx)(As.TextControl,{label:(0,Ui.__)("Start value"),type:"number",onChange:i=>{let s=parseInt(i,10);e({start:isNaN(s)?void 0:s})},value:Number.isInteger(r)?r.toString(10):"",step:"1"})}),(0,Pc.jsx)(As.__experimentalToolsPanelItem,{label:(0,Ui.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,Pc.jsx)(As.ToggleControl,{label:(0,Ui.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},Jre=f8e;var eoe=a(H(),1),toe=a(b(),1);function g8e(e,t){let{ordered:r,...o}=e;return(0,toe.jsx)(r?"ol":"ul",{ref:t,...o})}var roe=(0,eoe.forwardRef)(g8e);var ni=a(b(),1),h8e={name:"core/list-item"};function v8e(e,t){let r=(0,np.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n,selectBlock:i}=(0,np.useDispatch)(Ms.store);(0,RC.useEffect)(()=>{if(!e.values)return;let[s,l]=NC(e);(0,noe.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"});let c=r.select(Ms.store).hasSelectedInnerBlock(t,!0);r.batch(()=>{o(t,s),n(t,l),c&&i(t)})},[e.values])}function y8e(e){let{replaceBlocks:t,selectionChange:r}=(0,np.useDispatch)(Ms.store),{getBlockRootClientId:o,getBlockAttributes:n,getBlock:i}=(0,np.useSelect)(Ms.store);return(0,RC.useCallback)(()=>{let s=o(e),l=n(s),c=(0,ooe.createBlock)("core/list-item",l),{innerBlocks:u}=i(e);t([s],[c,...u]),r(u[u.length-1].clientId)},[e])}function b8e({clientId:e}){let t=y8e(e),r=(0,np.useSelect)(o=>{let{getBlockRootClientId:n,getBlockName:i}=o(Ms.store);return i(n(e))==="core/list-item"},[e]);return(0,ni.jsx)(ni.Fragment,{children:(0,ni.jsx)(IC.ToolbarButton,{icon:(0,Ml.isRTL)()?Sv:Tv,title:(0,Ml.__)("Outdent"),description:(0,Ml.__)("Outdent list item"),disabled:!r,onClick:t})})}function aoe({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:n,reversed:i,start:s}=e,l=(0,Ms.useBlockProps)({style:{listStyleType:o&&n!=="decimal"?n:void 0}}),c=(0,Ms.useInnerBlocksProps)(l,{defaultBlock:h8e,directInsert:!0,templateLock:!1,__experimentalCaptureToolbars:!0});v8e(e,r);let u=(0,ni.jsxs)(Ms.BlockControls,{group:"block",children:[(0,ni.jsx)(IC.ToolbarButton,{icon:(0,Ml.isRTL)()?kv:wv,title:(0,Ml.__)("Unordered"),description:(0,Ml.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,ni.jsx)(IC.ToolbarButton,{icon:(0,Ml.isRTL)()?Cv:gs,title:(0,Ml.__)("Ordered"),description:(0,Ml.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,ni.jsx)(b8e,{clientId:r})]});return(0,ni.jsxs)(ni.Fragment,{children:[(0,ni.jsx)(roe,{ordered:o,reversed:i,start:s,...c}),u,o&&(0,ni.jsx)(Jre,{setAttributes:t,reversed:i,start:s,type:n})]})}var DC={$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,align:["wide","full"],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 LC=a(R(),1),nM=a(b(),1);function ioe({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,nM.jsx)(t?"ol":"ul",{...LC.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,nM.jsx)(LC.InnerBlocks.Content,{})})}var Nu=a(K(),1),n0=a(hl(),1);function soe({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function aM(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...aM(o)]:aM(o))}var x8e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Nu.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,n0.create)({html:e[0].content});t=(0,n0.split)(r,`
  74  `).map(o=>(0,Nu.createBlock)("core/list-item",{content:(0,n0.toHTMLString)({value:o})}))}return(0,Nu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:soe(e).ol,ul:soe(e).ul}),transform:oM},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Nu.createBlock)("core/list",{},[(0,Nu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Nu.createBlock)("core/list",{ordered:!0},[(0,Nu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>aM(r).map(o=>(0,Nu.createBlock)(e,{content:o}))}))]},loe=x8e;var{name:coe}=DC,k8e=[["core/list-item"]],uoe={icon:dl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,a0.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,a0.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,a0.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,a0.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,a0.__)("The Queen of Hearts.")}}]},transforms:loe,template:k8e,templateInsertUpdatesSelection:!0,edit:aoe,save:ioe,deprecated:Qre},w8e=()=>M({name:coe,metadata:DC,settings:uoe});var cM={};J(cM,{init:()=>T8e,metadata:()=>MC,name:()=>boe,settings:()=>_oe});var sM=a(D(),1),AC=a(R(),1),doe=a(V(),1);var Iu=a(H(),1),poe=a(O(),1),yf=a(b(),1);function moe({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:n}=e,[i,s]=(0,Iu.useState)(),[l,c]=(0,Iu.useState)(null),[u,d]=(0,Iu.useState)(),p=(0,Iu.useRef)(o),m=(0,Iu.useRef)(),{__unstableMarkNextChangeAsNotPersistent:f}=(0,poe.useDispatch)(AC.store);(0,Iu.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{d(()=>h.default),p.current&&(f(),t({mathML:h.default(p.current,{displayMode:!0})}))})},[p,t,f]);let g=(0,AC.useBlockProps)({ref:s,position:"relative"});return(0,yf.jsxs)("div",{...g,children:[n?(0,yf.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,yf.jsx)(doe.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,onFocusOutside:()=>m.current?.reportValidity(),__unstableSlotName:"__unstable-block-tools-after",children:(0,yf.jsx)("form",{ref:m,style:{padding:"4px",minWidth:"300px"},onSubmit:h=>h.preventDefault(),children:(0,yf.jsx)(PD,{label:(0,sM.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:o??"",className:"wp-block-math__textarea-control",customValidity:l?{type:"invalid",message:l}:void 0,onValueChange:h=>{if(!u){t({latex:h});return}let v="";try{v=u(h,{displayMode:!0}),c(null)}catch(x){c(x.message)}t({mathML:v,latex:h})},placeholder:(0,sM.__)("e.g., x^2, \\frac{a}{b}")})})})]})}var MC={$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}},interactivity:{clientNavigation:!0}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var foe=a(R(),1),lM=a(b(),1);function goe({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,lM.jsx)("div",{...foe.useBlockProps.save(),children:(0,lM.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var hoe=a(R(),1),voe=a(b(),1),S8e={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,voe.jsx)("math",{...hoe.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},yoe=[S8e];var{name:boe}=MC,_oe={icon:LB,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:moe,save:goe,deprecated:yoe},T8e=()=>M({name:boe,metadata:MC,settings:_oe});var yM={};J(yM,{init:()=>L8e,metadata:()=>zC,name:()=>Uoe,settings:()=>jC});var Ooe=a(D(),1);var Hoe=a(R(),1),joe=a(K(),1);var zC={$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 Nc=a(R(),1),Bc=a(D(),1),vM=a(V(),1);var Aoe=a(he(),1),OC=a(O(),1),Moe=a(uc(),1);var _f=a(K(),1),woe=a(he(),1),Coe=a(hl(),1),Soe=a(O(),1),dM=a(R(),1);var bf=a(R(),1),xoe=a(K(),1);function uM(e,t){return e.getPreviousBlockClientId(t)}function Ru(e,t){let r=e.getBlockRootClientId(t),o=e.getBlockRootClientId(r);if(!(!o||e.getBlockName(o)!=="core/list-item"))return o}function koe(e,t,r,o){let{getBlockOrder:n,getBlock:i}=e.select(bf.store),{moveBlocksToPosition:s,removeBlocks:l,insertBlock:c}=e.dispatch(bf.store),u=n(o),d=u[u.length-1];if(d){s(t,r,d);return}let p=(0,xoe.cloneBlock)(i(r),{},t.map(m=>i(m)));e.batch(()=>{l(t,!1),c(p,0,o,!1)})}function i0(e,t){let r=e.select(bf.store),{getBlockRootClientId:o,getSelectedBlockClientIds:n,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:l,getMultiSelectedBlockClientIds:c}=r,{selectionChange:u,multiSelect:d}=e.dispatch(bf.store),p=l(),m=p?c():n();t===void 0&&(t=m[0]);let f=uM(r,t);if(!f)return!1;let g=o(t),h=i(),v=s();return e.batch(()=>{koe(e,m,g,f),p?d(m[0],m[m.length-1]):u(m[0],v.attributeKey,v.clientId===h.clientId?h.offset:v.offset,v.offset)}),!0}function Ec(e,t){let r=e.select(bf.store),{getBlockRootClientId:o,getBlockName:n,getBlockOrder:i,getBlockIndex:s,getSelectedBlockClientIds:l}=r,{moveBlocksToPosition:c,removeBlock:u,multiSelect:d}=e.dispatch(bf.store);if(t===void 0&&(t=l()),Array.isArray(t)||(t=[t]),!t.length)return!1;let p=t[0];if(n(p)!=="core/list-item")return!1;let m=Ru(r,p);if(!m)return!1;let f=o(p),g=t[t.length-1],v=i(f).slice(s(g)+1);return e.batch(()=>{v.length&&koe(e,v,f,p),c(t,f,o(m),s(m)+1),i(f).length||u(f,!1),t.length>1&&d(p,g)}),!0}var{subscribeOwnedListener:E8e}=q(Coe.privateApis);function pM(e){let t=(0,Soe.useRegistry)();return(0,woe.useRefEffect)(r=>{function o(n){if(n.defaultPrevented||n.inputType!=="insertParagraph")return;let i=t.select(dM.store),{getBlock:s,getBlockAttributes:l,getBlockRootClientId:c,getBlockIndex:u}=i,{replaceBlocks:d,selectionChange:p}=t.dispatch(dM.store),{content:m}=l(e)??{};if(m?.length)return;if(n.preventDefault(),!!Ru(i,e)){Ec(t);return}let g=s(c(e)),h=u(e),v=(0,_f.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,h)}),x=(0,_f.createBlock)((0,_f.getDefaultBlockName)()),_=[...g.innerBlocks[h].innerBlocks[0]?.innerBlocks||[],...g.innerBlocks.slice(h+1)],k=_.length?[(0,_f.cloneBlock)({...g,innerBlocks:_})]:[];d(g.clientId,[v,x,...k],1),p(x.clientId)}return E8e(r,"beforeinput",o,!0)},[e,t])}var Toe=a(he(),1),Poe=a(hl(),1),Ob=a(uc(),1),Eoe=a(R(),1),Boe=a(O(),1),Noe=a(da(),1);var{subscribeOwnedListener:B8e}=q(Poe.privateApis);function mM(){let e=(0,Boe.useRegistry)();return(0,Toe.useRefEffect)(t=>{function r(o){let{keyCode:n,shiftKey:i,altKey:s,metaKey:l,ctrlKey:c}=o;if(o.defaultPrevented||n!==Ob.SPACE&&n!==Ob.TAB||s||l||c)return;let{getSelectionStart:u,getSelectionEnd:d}=e.select(Eoe.store);if(!(u().offset===0&&d().offset===0)&&!(n===Ob.TAB&&(0,Noe.isEntirelySelected)(t)))return;(i?Ec:i0)(e)&&o.preventDefault()}return B8e(t,"keydown",r,!0)},[e])}var Ioe=a(he(),1),Roe=a(uc(),1),Doe=a(R(),1),VC=a(O(),1);function fM(e){let t=(0,VC.useRegistry)(),r=(0,VC.useSelect)(o=>{let{hasMultiSelection:n,getMultiSelectedBlockClientIds:i,getBlockName:s}=o(Doe.store);if(!n())return!1;let l=i();return l[0]===e&&l.every(c=>s(c)==="core/list-item")},[e]);return(0,Ioe.useRefEffect)(o=>{if(!r)return;function n(s){let{keyCode:l,shiftKey:c,altKey:u,metaKey:d,ctrlKey:p}=s;l!==Roe.TAB||s.defaultPrevented||u||d||p||s.target.contains(o)&&(c?Ec(t)&&s.preventDefault():i0(t)&&s.preventDefault())}let{ownerDocument:i}=o;return i.addEventListener("keydown",n,!0),()=>{i.removeEventListener("keydown",n,!0)}},[r,t])}var Loe=a(O(),1),gM=a(R(),1),FC=a(K(),1);function hM(e,t){let r=(0,Loe.useRegistry)();return o=>{let n=r.select(gM.store),{getPreviousBlockClientId:i,getNextBlockClientId:s,getBlockOrder:l,getBlockIndex:c,getBlockRootClientId:u,getBlockName:d,getBlock:p}=n,{mergeBlocks:m,moveBlocksToPosition:f,removeBlock:g,insertBlocks:h}=r.dispatch(gM.store);function v(_){let k=l(_);return k.length?v(k[k.length-1]):_}function x(_,k){r.batch(()=>{let[y]=l(k);y&&(i(k)===_&&!l(_).length?f([y],k,_):Ru(n,k)===_?f(l(y),y,u(k),c(k)+1):f(l(y),y,u(_)));let w=u(k);m(_,k),l(w).length||g(w,!1)})}if(o){let _=l(e)[0],k,y=e;if(_)k=l(_)[0];else for(;!(k=s(y));){let w=Ru(n,y);if(!w)break;y=w}if(k)x(e,k);else{let w=u(y),C=s(w);if(C)if(d(C)==="core/list")r.batch(()=>{f(l(C),C,w),g(C,!1)});else{let P=(0,FC.switchToBlockType)(p(C),"core/list")?.[0]?.innerBlocks;P?.length&&r.batch(()=>{h(P,void 0,w,!1),g(C,!1)})}}}else{let _=i(e);if(_){let w=v(_);x(w,e);return}let k=Ru(n,e);if(k){x(k,e);return}let y=l(e);(0,FC.isUnmodifiedBlock)(p(e),"content")&&y.length>0?r.batch(()=>{Ec(r,l(y[0])),g(e,!0)}):t(o)}}}var Wi=a(b(),1);function N8e({clientId:e}){let t=(0,OC.useRegistry)(),{canIndent:r,canOutdent:o}=(0,OC.useSelect)(n=>{let i=n(Nc.store);return{canIndent:!!uM(i,e),canOutdent:!!Ru(i,e)}},[e]);return(0,Wi.jsxs)(Wi.Fragment,{children:[(0,Wi.jsx)(vM.ToolbarButton,{icon:(0,Bc.isRTL)()?Sv:Tv,title:(0,Bc.__)("Outdent"),shortcut:Moe.displayShortcut.shift("Tab"),description:(0,Bc.__)("Outdent list item"),disabled:!o,onClick:()=>Ec(t)}),(0,Wi.jsx)(vM.ToolbarButton,{icon:(0,Bc.isRTL)()?VE:OE,title:(0,Bc.__)("Indent"),shortcut:"Tab",description:(0,Bc.__)("Indent list item"),disabled:!r,onClick:()=>i0(t,e)})]})}function zoe({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:n,content:i}=e,s=(0,Nc.useBlockProps)(),l=(0,Nc.useInnerBlocksProps)(s,{renderAppender:!1,__unstableDisableDropZone:!0}),c=pM(r),u=mM(),d=fM(r),p=hM(r,o);return(0,Wi.jsxs)(Wi.Fragment,{children:[(0,Wi.jsxs)("li",{...l,children:[(0,Wi.jsx)(Nc.RichText,{ref:(0,Aoe.useMergeRefs)([c,u,d]),identifier:"content",tagName:"div",onChange:m=>t({content:m}),value:i,"aria-label":(0,Bc.__)("List text"),placeholder:n||(0,Bc.__)("List"),onMerge:p}),l.children]}),(0,Wi.jsx)(Nc.BlockControls,{group:"block",children:(0,Wi.jsx)(N8e,{clientId:r})})]})}var s0=a(R(),1),Hb=a(b(),1);function Voe({attributes:e}){return(0,Hb.jsxs)("li",{...s0.useBlockProps.save(),children:[(0,Hb.jsx)(s0.RichText.Content,{value:e.content}),(0,Hb.jsx)(s0.InnerBlocks.Content,{})]})}var HC=a(K(),1),I8e={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,HC.createBlock)("core/paragraph",e),...t.map(r=>(0,HC.cloneBlock)(r))]}]},Foe=I8e;var{fieldsKey:R8e,formKey:D8e}=q(joe.privateApis),{name:Uoe}=zC,jC={icon:TB,edit:zoe,save:Voe,merge(e,t){return{...e,content:e.content+t.content}},transforms:Foe,[q(Hoe.privateApis).requiresWrapperOnCopy]:!0,__experimentalLabel(e,{context:t}){let{content:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o}};window.__experimentalContentOnlyInspectorFields&&(jC[R8e]=[{id:"content",label:(0,Ooe.__)("Content"),type:"text",Edit:"rich-text"}],jC[D8e]={fields:["content"]});var L8e=()=>M({name:Uoe,metadata:zC,settings:jC});var bM={};J(bM,{init:()=>M8e,metadata:()=>WC,name:()=>Goe,settings:()=>$oe});var UC=a(R(),1),ap=a(V(),1),xf=a(D(),1);var Gi=a(b(),1);function Woe({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,n=X();return(0,Gi.jsxs)(Gi.Fragment,{children:[(0,Gi.jsx)(UC.InspectorControls,{children:(0,Gi.jsxs)(ap.__experimentalToolsPanel,{label:(0,xf.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,Gi.jsx)(ap.__experimentalToolsPanelItem,{label:(0,xf.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Gi.jsx)(ap.ToggleControl,{label:(0,xf.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,Gi.jsx)(ap.__experimentalToolsPanelItem,{label:(0,xf.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Gi.jsx)(ap.ToggleControl,{label:(0,xf.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,Gi.jsx)("div",{...(0,UC.useBlockProps)({className:"logged-in"}),children:(0,Gi.jsx)("a",{href:"#login-pseudo-link",children:(0,xf.__)("Log out")})})]})}var WC={$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:Goe}=WC,$oe={icon:BB,edit:Woe},M8e=()=>M({name:Goe,metadata:WC,settings:$oe});var SM={};J(SM,{init:()=>a9e,metadata:()=>rS,name:()=>pne,settings:()=>oS});var Wb=a(D(),1);var dne=a(K(),1);var qoe=a(D(),1),Ic="full",jb=15,GC="none",$C="media",qC="attachment",Zoe=[["core/paragraph",{placeholder:(0,qoe._x)("Content\u2026","content placeholder")}]];var wr=a(R(),1),_M=a(he(),1);var ze=a(b(),1),ZC=(e,t)=>e?{backgroundImage:`url($e})`,backgroundPosition:t?`$t.x*100}% $t.y*100}%`:"50% 50%"}:{},Koe=(e,t)=>e?{backgroundImage:`url($e})`,backgroundPosition:t?`$Math.round(t.x*100)}% $Math.round(t.y*100)}%`:"50% 50%"}:{},kf=50,Rc=()=>{},Yoe=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},l0=e=>e.align?e:{...e,align:"wide"},KC={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}},xM={...KC,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"}},Qoe={...xM,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"}},z8e={...Qoe,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},kM={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Xoe={...kM,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}}},V8e={...Xoe,__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}},F8e={attributes:z8e,supports:V8e,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ic,v=g||void 0,x=T({[`wp-image-$l}`]:l&&n==="image",[`size-$h}`]:l&&n==="image"}),_=i?(0,ze.jsx)("img",{src:i,alt:r,className:x||null}):null;m&&(_=(0,ze.jsx)("a",{className:p,href:m,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,ze.jsx)("video",{controls:!0,src:i})},y=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),w=u?Koe(i,d):{},C;s!==kf&&(C=o==="right"?`auto $s}%`:`$s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()})]}):(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()}),(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},O8e={attributes:Qoe,supports:Xoe,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ic,v=g||void 0,x=T({[`wp-image-$l}`]:l&&n==="image",[`size-$h}`]:l&&n==="image"}),_=(0,ze.jsx)("img",{src:i,alt:r,className:x||null});m&&(_=(0,ze.jsx)("a",{className:p,href:m,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,ze.jsx)("video",{controls:!0,src:i})},y=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),w=u?Koe(i,d):{},C;s!==kf&&(C=o==="right"?`auto $s}%`:`$s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()})]}):(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()}),(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:l0,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},H8e={attributes:xM,supports:kM,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ic,v=g||void 0,x=T({[`wp-image-$l}`]:l&&n==="image",[`size-$h}`]:l&&n==="image"}),_=(0,ze.jsx)("img",{src:i,alt:r,className:x||null});m&&(_=(0,ze.jsx)("a",{className:p,href:m,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,ze.jsx)("video",{controls:!0,src:i})},y=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),w=u?ZC(i,d):{},C;s!==kf&&(C=o==="right"?`auto $s}%`:`$s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()})]}):(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()}),(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:l0},j8e={attributes:xM,supports:kM,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ic,v=g||void 0,x=T({[`wp-image-$l}`]:l&&n==="image",[`size-$h}`]:l&&n==="image"}),_=(0,ze.jsx)("img",{src:i,alt:r,className:x||null});m&&(_=(0,ze.jsx)("a",{className:p,href:m,target:f,rel:v,children:_}));let k={image:()=>_,video:()=>(0,ze.jsx)("video",{controls:!0,src:i})},y=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill":u}),w=u?ZC(i,d):{},C;s!==kf&&(C=o==="right"?`auto $s}%`:`$s}% auto`);let S={gridTemplateColumns:C};return(0,ze.jsxs)("div",{...wr.useBlockProps.save({className:y,style:S}),children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:w,children:(k[n]||Rc)()}),(0,ze.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:l0},U8e={attributes:{...KC,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,_M.compose)(Yoe,l0),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c,mediaId:u,verticalAlignment:d,imageFill:p,focalPoint:m,linkClass:f,href:g,linkTarget:h,rel:v}=e,x=v||void 0,_=(0,ze.jsx)("img",{src:l,alt:n,className:u&&s==="image"?`wp-image-$u}`:null});g&&(_=(0,ze.jsx)("a",{className:f,href:g,target:h,rel:x,children:_}));let k={image:()=>_,video:()=>(0,ze.jsx)("video",{controls:!0,src:l})},y=(0,wr.getColorClassName)("background-color",t),w=T({"has-media-on-the-right":i==="right","has-background":y||r,[y]:y,"is-stacked-on-mobile":o,[`is-vertically-aligned-$d}`]:d,"is-image-fill":p}),C=p?ZC(l,m):{},S;return c!==kf&&(S=i==="right"?`auto $c}%`:`$c}% auto`),(0,ze.jsxs)("div",{className:w,style:{backgroundColor:y?void 0:r,gridTemplateColumns:S},children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(k[s]||Rc)()}),(0,ze.jsx)("div",{className:"wp-block-media-text__content",children:(0,ze.jsx)(wr.InnerBlocks.Content,{})})]})}},W8e={attributes:{...KC,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,_M.compose)(Yoe,l0),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c,mediaId:u,verticalAlignment:d,imageFill:p,focalPoint:m}=e,f={image:()=>(0,ze.jsx)("img",{src:l,alt:n,className:u&&s==="image"?`wp-image-$u}`:null}),video:()=>(0,ze.jsx)("video",{controls:!0,src:l})},g=(0,wr.getColorClassName)("background-color",t),h=T({"has-media-on-the-right":i==="right",[g]:g,"is-stacked-on-mobile":o,[`is-vertically-aligned-$d}`]:d,"is-image-fill":p}),v=p?ZC(l,m):{},x;return c!==kf&&(x=i==="right"?`auto $c}%`:`$c}% auto`),(0,ze.jsxs)("div",{className:h,style:{backgroundColor:g?void 0:r,gridTemplateColumns:x},children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",style:v,children:(f[s]||Rc)()}),(0,ze.jsx)("div",{className:"wp-block-media-text__content",children:(0,ze.jsx)(wr.InnerBlocks.Content,{})})]})}},G8e={attributes:{...KC,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:l0,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c}=e,u={image:()=>(0,ze.jsx)("img",{src:l,alt:n}),video:()=>(0,ze.jsx)("video",{controls:!0,src:l})},d=(0,wr.getColorClassName)("background-color",t),p=T({"has-media-on-the-right":i==="right",[d]:d,"is-stacked-on-mobile":o}),m;return c!==kf&&(m=i==="right"?`auto $c}%`:`$c}% auto`),(0,ze.jsxs)("div",{className:p,style:{backgroundColor:d?void 0:r,gridTemplateColumns:m},children:[(0,ze.jsx)("figure",{className:"wp-block-media-text__media",children:(u[s]||Rc)()}),(0,ze.jsx)("div",{className:"wp-block-media-text__content",children:(0,ze.jsx)(wr.InnerBlocks.Content,{})})]})}},Joe=[F8e,O8e,H8e,j8e,U8e,W8e,G8e];var Ko=a(D(),1),JC=a(O(),1),eS=a(H(),1),Yo=a(R(),1),$r=a(V(),1),tS=a(Or(),1);var Ub=a(ne(),1);var c0=a(V(),1),Dc=a(R(),1),QC=a(D(),1),tne=a(he(),1),wM=a(O(),1),CM=a(H(),1),XC=a(Or(),1),rne=a(xr(),1);function YC(e,t){return e?{objectPosition:t?`$Math.round(t.x*100)}% $Math.round(t.y*100)}%`:"50% 50%"}:{}}var Do=a(b(),1),one=["image","video"],$8e=()=>{},q8e=(0,CM.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let n=(0,tne.useViewportMatch)("small","<");return(0,Do.jsx)(c0.ResizableBox,{ref:o,showHandle:e&&(!n||!t),...r})});function Z8e({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:n}){return(0,Do.jsx)(Dc.BlockControls,{group:"other",children:(0,Do.jsx)(Dc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:one,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:n,name:t?(0,QC.__)("Replace"):(0,QC.__)("Add media"),onReset:()=>r(void 0)})})}function ene({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:n}=(0,wM.useDispatch)(rne.store),i=l=>{n(l,{type:"snackbar"})},s=l=>{l.length===1&&r({url:(0,XC.createBlobURL)(l[0])})};return(0,Do.jsx)(Dc.MediaPlaceholder,{icon:(0,Do.jsx)(Dc.BlockIcon,{icon:Iv}),labels:{title:(0,QC.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:one,onFilesPreUpload:s,onError:i,disableMediaButtons:t})}function K8e(e,t){let{className:r,commitWidthChange:o,focalPoint:n,imageFill:i,isSelected:s,isStackedOnMobile:l,mediaAlt:c,mediaId:u,mediaPosition:d,mediaType:p,mediaUrl:m,mediaWidth:f,onSelectMedia:g,onWidthChange:h,enableResize:v,toggleUseFeaturedImage:x,useFeaturedImage:_,featuredImageURL:k,featuredImageAlt:y,refMedia:w}=e,C=!u&&(0,XC.isBlobURL)(m),{toggleSelection:S}=(0,wM.useDispatch)(Dc.store),P=(0,Do.jsx)(Z8e,{onSelectMedia:g,mediaUrl:_&&k?k:m,mediaId:u,toggleUseFeaturedImage:x,useFeaturedImage:_});if(m||k||_){let N=()=>{S(!1)},I=(U,$,W)=>{h(parseInt(W.style.width))},B=(U,$,W)=>{S(!0),o(parseInt(W.style.width))},E={right:v&&d==="left",left:v&&d==="right"},L=p==="image"&&i?YC(m||k,n):{},A={image:()=>_&&k?(0,Do.jsx)("img",{ref:w,src:k,alt:y,style:L}):m&&(0,Do.jsx)("img",{ref:w,src:m,alt:c,style:L}),video:()=>(0,Do.jsx)("video",{controls:!0,ref:w,src:m})};return(0,Do.jsxs)(q8e,{as:"figure",className:T(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:E,onResizeStart:N,onResize:I,onResizeStop:B,axis:"x",isSelected:s,isStackedOnMobile:l,ref:t,children:[P,(A[p]||$8e)(),C&&(0,Do.jsx)(c0.Spinner,{}),!_&&(0,Do.jsx)(ene,{...e}),!k&&_&&(0,Do.jsx)(c0.Placeholder,{className:"wp-block-media-text--placeholder-image",style:L,withIllustration:!0})]})}return(0,Do.jsxs)(Do.Fragment,{children:[P,(0,Do.jsx)(ene,{...e})]})}var nne=(0,CM.forwardRef)(K8e);var kt=a(b(),1),{ResolutionTool:Y8e}=q(Yo.privateApis),ane=e=>Math.max(jb,Math.min(e,100-jb));function ine(e,t){return e?.media_details?.sizes?.[t]?.source_url}function Q8e({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,tS.isBlobURL)(o.url)&&(o.type=(0,tS.getBlobTypeByURL)(o.url));let n,i;o.media_type?o.media_type==="image"?n="image":n="video":n=o.type,n==="image"&&(i=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let s=e,l=t;if(n==="image"){if(!s)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||GC){case"file":case $C:s=$C;break;case"post":case qC:s=qC;break;case GC:default:s=GC;break}switch(s){case $C:l=o.url;break;case qC:l=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:n,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:l,linkDestination:s,focalPoint:void 0,useFeaturedImage:!1})}}function X8e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,JC.useSelect)(i=>{let{getSettings:s}=i(Yo.store);return{imageSizes:s().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>ine(e,i)).map(({name:i,slug:s})=>({value:s,label:i}));return(0,kt.jsx)(Y8e,{value:t,defaultValue:Ic,options:n,onChange:r})}function J8e({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:n}}){let{focalPoint:i,href:s,imageFill:l,isStackedOnMobile:c,linkClass:u,linkDestination:d,linkTarget:p,mediaAlt:m,mediaId:f,mediaPosition:g,mediaType:h,mediaUrl:v,mediaWidth:x,mediaSizeSlug:_,rel:k,verticalAlignment:y,allowedBlocks:w,useFeaturedImage:C}=e,[S]=(0,Ub.useEntityProp)("postType",n,"featured_media",o),{featuredImageMedia:P}=(0,JC.useSelect)(se=>({featuredImageMedia:S&&C?se(Ub.store).getEntityRecord("postType","attachment",S,{context:"view"}):void 0}),[S,C]),{image:N}=(0,JC.useSelect)(se=>({image:f&&t?se(Ub.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),I=C?P?.source_url:"",B=C?P?.alt_text:"",E=()=>{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:!C})},L=(0,eS.useRef)(),A=se=>{let{style:ue}=L.current,{x:Oe,y:Pe}=se;ue.objectPosition=`$Oe*100}% $Pe*100}%`},[U,$]=(0,eS.useState)(null),W=Q8e({attributes:e,setAttributes:r}),G=se=>{r(se)},F=se=>{$(ane(se))},Z=se=>{r({mediaWidth:ane(se)}),$(null)},j=T({"has-media-on-the-right":g==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-$y}`]:y,"is-image-fill-element":l}),Y=`$U||x}%`,ee=g==="right"?`1fr $Y}`:`$Y} 1fr`,te={gridTemplateColumns:ee,msGridColumns:ee},Q=se=>{r({mediaAlt:se})},le=se=>{r({verticalAlignment:se})},oe=se=>{let ue=ine(N,se);if(!ue)return null;r({mediaUrl:ue,mediaSizeSlug:se})},ce=X(),pe=(0,kt.jsxs)($r.__experimentalToolsPanel,{label:(0,Ko.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),oe(Ic)},dropdownMenuProps:ce,children:[(0,kt.jsx)($r.__experimentalToolsPanelItem,{label:(0,Ko.__)("Media width"),isShownByDefault:!0,hasValue:()=>x!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,kt.jsx)($r.RangeControl,{label:(0,Ko.__)("Media width"),value:U||x,onChange:Z,min:jb,max:100-jb})}),(0,kt.jsx)($r.__experimentalToolsPanelItem,{label:(0,Ko.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,kt.jsx)($r.ToggleControl,{label:(0,Ko.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),h==="image"&&(0,kt.jsx)($r.__experimentalToolsPanelItem,{label:(0,Ko.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({imageFill:!1}),children:(0,kt.jsx)($r.ToggleControl,{label:(0,Ko.__)("Crop image to fill"),checked:!!l,onChange:()=>r({imageFill:!l})})}),l&&(v||I)&&h==="image"&&(0,kt.jsx)($r.__experimentalToolsPanelItem,{label:(0,Ko.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,kt.jsx)($r.FocalPointPicker,{label:(0,Ko.__)("Focal point"),url:C&&I?I:v,value:i,onChange:se=>r({focalPoint:se}),onDragStart:A,onDrag:A})}),h==="image"&&v&&!C&&(0,kt.jsx)($r.__experimentalToolsPanelItem,{label:(0,Ko.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>r({mediaAlt:""}),children:(0,kt.jsx)($r.TextareaControl,{label:(0,Ko.__)("Alternative text"),value:m,onChange:Q,help:(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)($r.ExternalLink,{href:(0,Ko.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Ko.__)("Describe the purpose of the image.")}),(0,kt.jsx)("br",{}),(0,Ko.__)("Leave empty if decorative.")]})})}),h==="image"&&!C&&(0,kt.jsx)(X8e,{image:N,value:_,onChange:oe})]}),be=(0,Yo.useBlockProps)({className:j,style:te}),Te=(0,Yo.useInnerBlocksProps)({className:"wp-block-media-text__content"},{allowedBlocks:w}),ae=(0,Yo.useBlockEditingMode)();return(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)(Yo.InspectorControls,{children:pe}),(0,kt.jsxs)(Yo.BlockControls,{group:"block",children:[ae==="default"&&(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)(Yo.BlockVerticalAlignmentControl,{onChange:le,value:y,label:(0,Ko.__)("Align media and text vertically")}),(0,kt.jsx)($r.ToolbarButton,{icon:BN,title:(0,Ko.__)("Show media on left"),isActive:g==="left",onClick:()=>r({mediaPosition:"left"})}),(0,kt.jsx)($r.ToolbarButton,{icon:NN,title:(0,Ko.__)("Show media on right"),isActive:g==="right",onClick:()=>r({mediaPosition:"right"})})]}),h==="image"&&!C&&(0,kt.jsx)(Yo.__experimentalImageURLInputUI,{url:s||"",onChangeUrl:G,linkDestination:d,mediaType:h,mediaUrl:N&&N.source_url,mediaLink:N&&N.link,linkTarget:p,linkClass:u,rel:k})]}),(0,kt.jsxs)("div",{...be,children:[g==="right"&&(0,kt.jsx)("div",{...Te}),(0,kt.jsx)(nne,{className:"wp-block-media-text__media",onSelectMedia:W,onWidthChange:F,commitWidthChange:Z,refMedia:L,enableResize:ae==="default",toggleUseFeaturedImage:E,focalPoint:i,imageFill:l,isSelected:t,isStackedOnMobile:c,mediaAlt:m,mediaId:f,mediaPosition:g,mediaType:h,mediaUrl:v,mediaWidth:x,useFeaturedImage:C,featuredImageURL:I,featuredImageAlt:B}),g!=="right"&&(0,kt.jsx)("div",{...Te})]})]})}var sne=J8e;var rS={$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 u0=a(R(),1);var zl=a(b(),1),t9e=50,lne=()=>{};function cne({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:s,mediaId:l,verticalAlignment:c,imageFill:u,focalPoint:d,linkClass:p,href:m,linkTarget:f,rel:g}=e,h=e.mediaSizeSlug||Ic,v=g||void 0,x=T({[`wp-image-$l}`]:l&&n==="image",[`size-$h}`]:l&&n==="image"}),_=u?YC(i,d):{},k=i?(0,zl.jsx)("img",{src:i,alt:r,className:x||null,style:_}):null;m&&(k=(0,zl.jsx)("a",{className:p,href:m,target:f,rel:v,children:k}));let y={image:()=>k,video:()=>(0,zl.jsx)("video",{controls:!0,src:i})},w=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-$c}`]:c,"is-image-fill-element":u}),C;s!==t9e&&(C=o==="right"?`auto $s}%`:`$s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,zl.jsxs)("div",{...u0.useBlockProps.save({className:w,style:S}),children:[(0,zl.jsx)("div",{...u0.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,zl.jsx)("figure",{className:"wp-block-media-text__media",children:(y[n]||lne)()})]}):(0,zl.jsxs)("div",{...u0.useBlockProps.save({className:w,style:S}),children:[(0,zl.jsx)("figure",{className:"wp-block-media-text__media",children:(y[n]||lne)()}),(0,zl.jsx)("div",{...u0.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var wf=a(K(),1),r9e={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,wf.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,wf.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:n,customOverlayColor:i,gradient:s,id:l,overlayColor:c,style:u,textColor:d,url:p,useFeaturedImage:m},f)=>{let g={};return n?g={style:{color:{gradient:n}}}:i&&(g={style:{color:{background:i}}}),u?.color?.text&&(g.style={color:{...g.style?.color,text:u.color.text}}),(0,wf.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:s,mediaAlt:t,mediaId:l,mediaType:o,mediaUrl:p,textColor:d,useFeaturedImage:m,...g},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,wf.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,wf.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:o,gradient:n,mediaAlt:i,mediaId:s,mediaType:l,mediaUrl:c,style:u,textColor:d,useFeaturedImage:p},m)=>{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 g={align:e,alt:i,anchor:t,backgroundType:l,dimRatio:c||p?50:100,focalPoint:o,gradient:n,id:s,overlayColor:r,textColor:d,url:c,useFeaturedImage:p,...f};return(0,wf.createBlock)("core/cover",g,m)}}]},une=r9e;var{fieldsKey:o9e,formKey:n9e}=q(dne.privateApis),{name:pne}=rS,oS={icon:MB,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,Wb.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Wb.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:une,template:Zoe,edit:sne,save:cne,deprecated:Joe};window.__experimentalContentOnlyInspectorFields&&(oS[o9e]=[{id:"media",label:(0,Wb.__)("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,Wb.__)("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})}],oS[n9e]={fields:["media","link"]});var a9e=()=>M({name:pne,metadata:rS,settings:oS});var TM={};J(TM,{init:()=>s9e,metadata:()=>aS,name:()=>Gb,settings:()=>kne});var xne=a(K(),1);var Du=a(D(),1),mne=a(H(),1),fne=a(V(),1),gne=a(K(),1),nS=a(O(),1),Cf=a(R(),1),hne=a(da(),1),d0=a(b(),1);function vne({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,n=!!o,{hasFreeformBlock:i,hasHTMLBlock:s}=(0,nS.useSelect)(m=>{let{canInsertBlockType:f,getBlockRootClientId:g}=m(Cf.store);return{hasFreeformBlock:f("core/freeform",g(t)),hasHTMLBlock:f("core/html",g(t))}},[t]),{replaceBlock:l}=(0,nS.useDispatch)(Cf.store);function c(){l(t,(0,gne.createBlock)("core/html",{},[],[o]))}let u=[],d,p=(0,d0.jsx)(fne.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,Du.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?s?(d=(0,Du.__)("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(p)):d=(0,Du.__)("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."):n&&s?(d=(0,Du.sprintf)((0,Du.__)('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(p)):d=(0,Du.sprintf)((0,Du.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,d0.jsxs)("div",{...(0,Cf.useBlockProps)({className:"has-warning"}),children:[(0,d0.jsx)(Cf.Warning,{actions:u,children:d}),(0,d0.jsx)(mne.RawHTML,{children:(0,hne.safeHTML)(o)})]})}var aS={$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 yne=a(H(),1),bne=a(b(),1);function _ne({attributes:e}){return(0,bne.jsx)(yne.RawHTML,{children:e.originalContent})}var{name:Gb}=aS,kne={name:Gb,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,xne.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:vne,save:_ne},s9e=()=>M({name:Gb,metadata:aS,settings:kne});var PM={};J(PM,{init:()=>m9e,metadata:()=>sS,name:()=>Ine,settings:()=>lS});var Bne=a(D(),1),Nne=a(K(),1);var ip=a(D(),1),p0=a(V(),1),m0=a(R(),1),iS=a(K(),1);var Vl=a(b(),1),l9e=(0,ip.__)("Read more");function wne({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let n=X();return(0,Vl.jsxs)(Vl.Fragment,{children:[(0,Vl.jsx)(m0.InspectorControls,{children:(0,Vl.jsx)(p0.__experimentalToolsPanel,{label:(0,ip.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:n,children:(0,Vl.jsx)(p0.__experimentalToolsPanelItem,{label:(0,ip.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,Vl.jsx)(p0.ToggleControl,{label:(0,ip.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,ip.__)("The excerpt is hidden."):(0,ip.__)("The excerpt is visible.")})})})}),(0,Vl.jsx)("div",{...(0,m0.useBlockProps)(),children:(0,Vl.jsx)(m0.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,ip.__)('"Read more" text'),value:e,placeholder:l9e,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:r?()=>r((0,iS.createBlock)((0,iS.getDefaultBlockName)())):void 0})})]})}var sS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block is shown in the excerpt on blog and archive pages. Where a theme shows the full content instead, visitors get a \u201CRead more\u201D link to the rest of the post.",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 Cne=a(H(),1),Sne=a(b(),1);function Tne({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more $e}-->`:"<!--more-->";return(0,Sne.jsx)(Cne.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
  75  `)})}var Pne=a(K(),1),u9e={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,Pne.createBlock)("core/more",o)}}]},Ene=u9e;var{fieldsKey:d9e,formKey:p9e}=q(Nne.privateApis),{name:Ine}=sS,lS={icon:HB,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:Ene,edit:wne,save:Tne};window.__experimentalContentOnlyInspectorFields&&(lS[d9e]=[{id:"customText",label:(0,Bne.__)("Content"),type:"text",Edit:"rich-text"}],lS[p9e]={fields:["customText"]});var m9e=()=>M({name:Ine,metadata:sS,settings:lS});var sz={};J(sz,{init:()=>bTe,metadata:()=>cS,name:()=>tse,settings:()=>rse});var n6=a(D(),1);var Xie=a(O(),1),Jie=a(ne(),1),ese=a(Wo(),1);var cS={$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 vr=a(H(),1),at=a(R(),1),pp=a(ne(),1),Hl=a(O(),1),oo=a(V(),1),Ot=a(D(),1),t6=a(Uy(),1);var Gie=a(K(),1),$ie=a(he(),1);var f0=a(ne(),1),Lne=a(O(),1);var $i={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},Rne=["core/navigation-link/page","core/navigation-link/custom-link"],EM={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Dne=["postType","wp_navigation",EM],Lc="navigation-overlay";function g0(e){let t=(0,f0.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n}=(0,Lne.useSelect)(g=>g9e(g,e),[e]),{canCreate:i,canUpdate:s,canDelete:l,isResolving:c,hasResolved:u}=t,{records:d,isResolving:p,hasResolved:m}=(0,f0.useEntityRecords)("postType","wp_navigation",EM),f=e?d?.length>1:d?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n,navigationMenus:d,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:m,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:s,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:l,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function g9e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:n}=e(f0.store),i=["postType","wp_navigation",t],s=r(...i),l=o(...i),c=n("getEditedEntityRecord",i),u=l.status==="publish"||l.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!s||!u),navigationMenu:u?l:null}}var y0=a(V(),1),qb=a(D(),1);var BM=a(Uy(),1),Mne=a(H(),1),zne=a(ne(),1);var Ane=a(D(),1),$b=a(b(),1),h9e=({isVisible:e=!0})=>(0,$b.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,$b.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,$b.jsx)(pa,{icon:dm}),(0,Ane.__)("Navigation")]})}),uS=h9e;var Fl=a(V(),1);var Sa=a(D(),1),dS=a(Wo(),1),h0=a(H(),1),pS=a(ne(),1);var zs=a(b(),1);function v9e(e,t,r){return e?r==="publish"?(0,dS.decodeEntities)(e):(0,Sa.sprintf)((0,Sa.__)("%1$s (%2$s)"),(0,dS.decodeEntities)(e),r):(0,Sa.sprintf)((0,Sa.__)("(no title %s)"),t)}function y9e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:s}){let l=(0,Sa.__)("Create from '%s'"),[c,u]=(0,h0.useState)(!1);n=n||l;let{records:d}=(0,pS.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:p,isResolvingNavigationMenus:m,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h,isNavigationMenuMissing:v}=g0(e),[x]=(0,pS.useEntityProp)("postType","wp_navigation","title",e),_=(0,h0.useMemo)(()=>p?.map(({id:L,title:A,status:U},$)=>{let W=v9e(A?.rendered,$+1,U);return{value:L,label:W,ariaLabel:(0,Sa.sprintf)(n,W),disabled:c||m||!f}})||[],[p,n,m,f,c]),k=!!p?.length,y=!!d?.length,w=!!h,C=!!g,S=k&&!e,P=!k&&f,N=f&&e===null,I=e&&v,B="";return m?B=(0,Sa.__)("Loading\u2026"):S||P||N||I?B=(0,Sa.__)("Choose or create a Navigation Menu"):B=x,(0,h0.useEffect)(()=>{c&&(i||s)&&u(!1)},[f,i,g,s,c,N,P,S]),(0,zs.jsx)(Fl.DropdownMenu,{label:B,icon:Rv,toggleProps:{size:"small"},children:({onClose:L})=>(0,zs.jsxs)(zs.Fragment,{children:[w&&k&&(0,zs.jsx)(Fl.MenuGroup,{label:(0,Sa.__)("Menus"),children:(0,zs.jsx)(Fl.MenuItemsChoice,{value:e,onSelect:A=>{t(A),L()},choices:_})}),C&&y&&(0,zs.jsx)(Fl.MenuGroup,{label:(0,Sa.__)("Import Classic Menus"),children:d?.map(A=>{let U=(0,dS.decodeEntities)(A.name);return(0,zs.jsx)(Fl.MenuItem,{onClick:async()=>{u(!0),await r(A),u(!1),L()},"aria-label":(0,Sa.sprintf)(l,U),disabled:c||m||!f,children:U},A.id)})}),g&&(0,zs.jsx)(Fl.MenuGroup,{label:(0,Sa.__)("Tools"),children:(0,zs.jsx)(Fl.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),L()},disabled:c||m||!f,children:(0,Sa.__)("Create new Menu")})})]})})}var v0=y9e;var qn=a(b(),1);function Vne({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:s,onCreateEmpty:l}){let{isResolving:c,hasResolved:u}=(0,zne.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,Mne.useEffect)(()=>{e&&(c&&(0,BM.speak)((0,qb.__)("Loading navigation block setup options\u2026")),u&&(0,BM.speak)((0,qb.__)("Navigation block setup options ready.")))},[u,c,e]);let d=c&&n;return(0,qn.jsx)(qn.Fragment,{children:(0,qn.jsxs)(y0.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,qn.jsx)(uS,{isVisible:!e}),(0,qn.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,qn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,qn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,qn.jsx)(pa,{icon:dm})," ",(0,qb.__)("Navigation")]}),(0,qn.jsx)("hr",{}),d&&(0,qn.jsx)(y0.Spinner,{}),(0,qn.jsx)(v0,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:s}),(0,qn.jsx)("hr",{}),o&&(0,qn.jsx)(y0.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:(0,qb.__)("Start empty")})]})})]})})}var NM=a(V(),1),_0=a(D(),1),IM=a(R(),1),Fne=a(O(),1),One=a(ne(),1);var Zb=a(z(),1);var b0=a(b(),1);function Ac({icon:e}){return e==="menu"?(0,b0.jsx)(pa,{icon:VB}):(0,b0.jsxs)(Zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,b0.jsx)(Zb.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,b0.jsx)(Zb.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function Ta(e,t){return e&&t?e+"//"+t:null}var qi=a(b(),1);function RM({children:e,id:t,isOpen:r,isResponsive:o,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:s,overlayTextColor:l,hasIcon:c,icon:u,overlay:d,onNavigateToEntityRecord:p}){let m=(0,Fne.useSelect)(y=>y(One.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!d,g=T("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!l.color||!!l?.class,[(0,IM.getColorClassName)("color",l?.slug)]:!!l?.slug,"has-background":!!s.color||s?.class,[(0,IM.getColorClassName)("background-color",s?.slug)]:!!s?.slug},{"is-menu-open":r,"hidden-by-default":i}),h=f?{}:{color:!l?.slug&&l?.color,backgroundColor:!s?.slug&&s?.color&&s.color},v=T("wp-block-navigation__responsive-container-open",{"always-shown":i}),x=`$t}-modal`,_={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,_0.__)("Menu")}},k=()=>{if(d&&p){let y=Ta(m,d);p({postId:y,postType:"wp_template_part"});return}n(!0)};return(0,qi.jsxs)(qi.Fragment,{children:[!r&&(0,qi.jsxs)(NM.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,_0.__)("Open menu"),className:v,onClick:k,children:[c&&(0,qi.jsx)(Ac,{icon:u}),!c&&(0,_0.__)("Menu")]}),(0,qi.jsx)("div",{className:g,style:h,id:x,children:(0,qi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,qi.jsxs)("div",{..._,children:[(0,qi.jsxs)(NM.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,_0.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,qi.jsx)(pa,{icon:rm}),!c&&(0,_0.__)("Close")]}),(0,qi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`$x}-content`,children:e})]})})})]})}var Hne=a(ne(),1),x0=a(R(),1),jne=a(O(),1),Une=a(H(),1);var DM=a(b(),1);function Wne({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:s,hasSelectedDescendant:l}=(0,jne.useSelect)(v=>{let{getBlockCount:x,hasSelectedInnerBlock:_,getSelectedBlockClientId:k}=v(x0.store),y=k();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!x(y),hasSelectedDescendant:_(e,!0),isSelected:y===e}},[e]),[c,u,d]=(0,Hne.useEntityBlockEditor)("postType","wp_navigation"),p=s||n&&!i,m=(0,Une.useMemo)(()=>(0,DM.jsx)(uS,{}),[]),f=!!c?.length,g=!t&&!f&&!s,h=(0,x0.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:d,prioritizedInserterBlocks:Rne,defaultBlock:$i,directInsert:!0,orientation:r,templateLock:o,renderAppender:s||n&&!i||l||p?x0.InnerBlocks.ButtonBlockAppender:!1,placeholder:g?m:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,DM.jsx)("div",{...h})}var Gne=a(V(),1),$ne=a(ne(),1),qne=a(D(),1),Zne=a(b(),1);function Kne(){let[e,t]=(0,$ne.useEntityProp)("postType","wp_navigation","title");return(0,Zne.jsx)(Gne.TextControl,{label:(0,qne.__)("Menu name"),value:e,onChange:t})}var Xne=a(R(),1),LM=a(V(),1),Jne=a(ne(),1),eae=a(O(),1),Sf=a(H(),1);function Yne(e,t){return!Qne(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var Qne=(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(!Qne(e[o],t[o],r))return!1}else return!1;return!0}return!1};var tae=a(b(),1),b9e={};function rae({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,Sf.useRef)();(0,Sf.useEffect)(()=>{o?.current||(o.current=e)},[e]);let n=Yne(o?.current,e),i=(0,Sf.useContext)(LM.Disabled.Context),s=(0,Xne.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:$i,directInsert:!0}),{isSaving:l,hasResolvedAllNavigationMenus:c}=(0,eae.useSelect)(d=>{if(i)return b9e;let{hasFinishedResolution:p,isSavingEntityRecord:m}=d(Jne.store);return{isSaving:m("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",Dne)}},[i]);return(0,Sf.useEffect)(()=>{i||l||!c||!r||!n||t(null,e)},[e,t,i,l,c,n,r]),(0,tae.jsx)(l?LM.Disabled:"div",{...s})}var fS=a(V(),1),gS=a(ne(),1),oae=a(O(),1),nae=a(H(),1),mS=a(D(),1),Tf=a(b(),1);function aae({onDelete:e}){let[t,r]=(0,nae.useState)(!1),o=(0,gS.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,oae.useDispatch)(gS.store);return(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)(fS.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,mS.__)("Delete menu")}),t&&(0,Tf.jsx)(fS.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,mS.__)("Delete"),size:"medium",children:(0,mS.__)("Are you sure you want to delete this Navigation Menu?")})]})}var Kb=a(H(),1),iae=a(O(),1),sae=a(xr(),1);function _9e({name:e,message:t=""}={}){let r=(0,Kb.useRef)(),{createWarningNotice:o,removeNotice:n}=(0,iae.useDispatch)(sae.store),i=(0,Kb.useCallback)(l=>{r.current||(r.current=e,o(l||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),s=(0,Kb.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,s]}var hS=_9e;var Mc=a(V(),1),sp=a(D(),1);var Zi=a(b(),1);function lae({setAttributes:e,hasIcon:t,icon:r}){return(0,Zi.jsxs)(Zi.Fragment,{children:[(0,Zi.jsx)(Mc.__experimentalToolsPanelItem,{label:(0,sp.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,Zi.jsx)(Mc.ToggleControl,{label:(0,sp.__)("Show icon button"),help:(0,sp.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,Zi.jsx)(Mc.__experimentalToolsPanelItem,{label:(0,sp.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,Zi.jsxs)(Mc.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,sp.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,Zi.jsx)(Mc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,sp.__)("handle"),label:(0,Zi.jsx)(Ac,{icon:"handle"})}),(0,Zi.jsx)(Mc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,sp.__)("menu"),label:(0,Zi.jsx)(Ac,{icon:"menu"})})]})})]})}var CS=a(V(),1),Nae=a(D(),1),Iae=a(H(),1);var Vs=a(H(),1),bae=a(he(),1),_S=a(ne(),1),xS=a(O(),1),Ki=a(V(),1),_n=a(D(),1),zM=a(Wo(),1),_ae=a(xr(),1);var dae=a(H(),1),yS=a(O(),1),pae=a(ne(),1),mae=a(R(),1),fae=a(D(),1),Ef=a(K(),1);function AM(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function MM(e,t,r){if(!e)return;t(AM(e).color);let o=e,n=AM(o).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,n=AM(o).backgroundColor;r(n)}function Pf(e,t){let{textColor:r,customTextColor:o,backgroundColor:n,customBackgroundColor:i,overlayTextColor:s,customOverlayTextColor:l,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:d}=e,p={};return t&&l?p.customTextColor=l:t&&s?p.textColor=s:o?p.customTextColor=o:r?p.textColor=r:d?.color?.text&&(p.customTextColor=d.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:d?.color?.background&&(p.customTextColor=d.color.background),p}function vS(e){return{className:T("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 cae=(e,t)=>{let r=e.toLowerCase(),o=t.map(i=>i.title.rendered.toLowerCase());if(!o.includes(r))return e;let n=2;for(;o.includes(`$r} $n}`);)n++;return`$e} $n}`},uae=e=>rh(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function gae(e){let{saveEntityRecord:t}=(0,yS.useDispatch)(pae.store),r=(0,yS.useSelect)(n=>q(n(mae.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,dae.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=cae((0,fae.__)("Navigation Overlay"),n),s=uae(i),l="";if(r?.content){let u=(0,Ef.parse)(r.content,{__unstableSkipMigrationLogs:!0});l=(0,Ef.serialize)(u)}else l=(0,Ef.serialize)([(0,Ef.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:s,title:i,content:l,area:Lc},{throwOnError:!0})},[e,t,r])}var Yb=a(V(),1),hae=a(D(),1),vae=a(H(),1),bS=a(b(),1);function x9e({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,vae.createInterpolateElement)((0,hae.__)("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,bS.jsx)(Yb.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,bS.jsx)(Yb.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,bS.jsx)(Yb.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var yae=x9e;var Lo=a(b(),1);function VM({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:n,setIsCreatingOverlay:i}){let s=(0,bae.useInstanceId)(VM,"wp-block-navigation__overlay-selector-heading"),{records:l,isResolving:c,hasResolved:u}=(0,_S.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:d}=(0,xS.useDispatch)(_ae.store),p=(0,xS.useSelect)(E=>E(_S.store).getCurrentTheme()?.stylesheet,[]),[m,f]=(0,Vs.useState)(!1),g=n!==void 0?n:m,h=i!==void 0?i:f,v=(0,Vs.useMemo)(()=>l?l.filter(E=>E.area===Lc):[],[l]),x=gae(v),_=(0,Vs.useMemo)(()=>!e||!v?null:v.find(E=>E.slug===e),[e,v]),k=(0,Vs.useMemo)(()=>{let E=[{label:(0,_n.__)("Default"),value:""}];if(!u||c)return E;let L=v.map(A=>({label:A.title?.rendered?(0,zM.decodeEntities)(A.title.rendered):A.slug,value:A.slug}));return e&&!_&&L.unshift({label:(0,_n.sprintf)((0,_n.__)("%s (missing)"),e),value:e}),[...E,...L]},[v,u,c,e,_]),y=E=>{r({overlay:E||void 0})},w=()=>{if(!e||!_||!o)return;let E=_.theme||p,A={postId:Ta(E,e),postType:"wp_template_part"};t==="mobile"&&(A.viewport="mobile"),o(A)},C=(0,Vs.useCallback)(async()=>{try{h(!0);let E=await x();if(r({overlay:E.slug}),o){let L=E.theme||p,U={postId:Ta(L,E.slug),postType:"wp_template_part"};t==="mobile"&&(U.viewport="mobile"),o(U)}else h(!1)}catch(E){let L=E instanceof Error&&"code"in E&&E.message&&E.code!=="unknown_error"?E.message:(0,_n.__)("An error occurred while creating the overlay.");d(L,{type:"snackbar"}),h(!1)}},[x,r,o,d,p,h,t]),S=(0,Vs.useCallback)(()=>{r({overlay:void 0})},[r]),P=c||g,N=(0,Vs.useMemo)(()=>e&&u&&!c&&!_,[e,u,c,_]),I=(0,Vs.useMemo)(()=>v.length===0&&u?(0,_n.__)("No overlays found."):(0,_n.__)("Select an overlay for navigation."),[v.length,u]),B=(0,Vs.useMemo)(()=>_?(0,_n.sprintf)((0,_n.__)("Edit overlay: %s"),_.title?.rendered?(0,zM.decodeEntities)(_.title.rendered):_.slug):(0,_n.__)("Edit overlay"),[_]);return(0,Lo.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,Lo.jsx)("h3",{id:s,className:"wp-block-navigation__overlay-selector-header",children:(0,_n.__)("Overlay template")}),u&&(v.length===0||g&&v.length===1)?(0,Lo.jsx)(Lo.Fragment,{children:(0,Lo.jsx)(Ki.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:g,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,_n.__)("Create overlay")})}):(0,Lo.jsxs)(Lo.Fragment,{children:[(0,Lo.jsx)(Ki.Button,{size:"small",icon:zg,onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:g,label:(0,_n.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,Lo.jsxs)(Ki.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,Lo.jsx)(Ki.FlexBlock,{children:(0,Lo.jsx)(Ki.SelectControl,{label:(0,_n.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":s,value:e||"",options:k,onChange:y,disabled:c,accessibleWhenDisabled:!0,help:I})}),e&&u&&_&&(0,Lo.jsx)(Ki.FlexItem,{children:(0,Lo.jsx)(Ki.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:w,disabled:!o,accessibleWhenDisabled:!0,label:B,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,_n.__)("Edit")})})]}),N&&(0,Lo.jsx)(yae,{onClear:S,onCreate:C,isCreating:g})]}),(0,Lo.jsx)(Ki.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,Lo.jsx)(Hy,{children:(0,_n.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var k0=a(V(),1),Bf=a(D(),1),w0=a(b(),1);function xae({overlayMenu:e,setAttributes:t}){return(0,w0.jsxs)(k0.__experimentalToggleGroupControl,{label:(0,Bf.__)("Overlay Visibility"),"aria-label":(0,Bf.__)("Configure overlay visibility"),value:e,help:(0,Bf.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,w0.jsx)(k0.__experimentalToggleGroupControlOption,{value:"never",label:(0,Bf.__)("Off")}),(0,w0.jsx)(k0.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Bf.__)("Mobile")}),(0,w0.jsx)(k0.__experimentalToggleGroupControlOption,{value:"always",label:(0,Bf.__)("Always")})]})}var wS=a(V(),1),kS=a(D(),1);var Au=a(V(),1),C0=a(D(),1);var Lu=a(b(),1);function kae({hasIcon:e,icon:t,setAttributes:r}){return(0,Lu.jsxs)(Au.__experimentalVStack,{spacing:4,children:[(0,Lu.jsx)(Au.ToggleControl,{label:(0,C0.__)("Show icon button"),help:(0,C0.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,Lu.jsxs)(Au.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,C0.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,Lu.jsx)(Au.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,C0.__)("handle"),label:(0,Lu.jsx)(Ac,{icon:"handle"})}),(0,Lu.jsx)(Au.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,C0.__)("menu"),label:(0,Lu.jsx)(Ac,{icon:"menu"})})]})]})}var Zn=a(b(),1);function wae({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:n,setAttributes:i,overlayMenuPreviewClasses:s,overlayMenuPreviewId:l,containerStyle:c}){return e?(0,Zn.jsxs)(Zn.Fragment,{children:[(0,Zn.jsxs)(wS.Button,{__next40pxDefaultSize:!0,className:s,onClick:()=>r(!t),"aria-label":(0,kS.__)("Overlay menu controls"),"aria-controls":l,"aria-expanded":t,children:[o&&(0,Zn.jsxs)(Zn.Fragment,{children:[(0,Zn.jsx)(Ac,{icon:n}),(0,Zn.jsx)(pa,{icon:rm})]}),!o&&(0,Zn.jsxs)(Zn.Fragment,{children:[(0,Zn.jsx)("span",{children:(0,kS.__)("Menu")}),(0,Zn.jsx)("span",{children:(0,kS.__)("Close")})]})]}),t&&(0,Zn.jsx)(wS.__experimentalVStack,{id:l,spacing:4,style:c,children:(0,Zn.jsx)(kae,{hasIcon:o,icon:n,setAttributes:i})})]}):null}var Cae=a(O(),1),Sae=a(ne(),1),FM=a(H(),1),Tae=a(K(),1),Pae=a(V(),1),Eae=a(D(),1),OM=a(R(),1);var Nf=a(b(),1);function Bae({overlay:e,currentTheme:t}){let r=(0,FM.useMemo)(()=>!e||!t?null:Ta(t,e),[t,e]),{content:o,editedBlocks:n,hasResolved:i}=(0,Cae.useSelect)(l=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=l(Sae.store),d=c("postType","wp_template_part",r,{context:"view"});return{content:d?.content,editedBlocks:d?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),s=(0,FM.useMemo)(()=>r?n&&n.length>0?n:o&&typeof o=="string"?(0,Tae.parse)(o):[]:null,[r,n,o]);return e?i?(0,Nf.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,Eae.__)("Navigation Overlay template part preview"),role:"region",children:(0,Nf.jsx)(OM.BlockPreview.Async,{placeholder:(0,Nf.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,Nf.jsx)(OM.BlockPreview,{blocks:s,viewportWidth:400,minHeight:200})})}):(0,Nf.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,Nf.jsx)(Pae.Spinner,{})}):null}var lp=a(b(),1);function Rae({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:s,icon:l,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:d,currentTheme:p,hasOverlays:m}){let[f,g]=(0,Iae.useState)(!1);return(0,lp.jsx)(CS.PanelBody,{title:(0,Nae.__)("Overlay"),initialOpen:!0,children:(0,lp.jsxs)(CS.__experimentalVStack,{spacing:4,children:[(0,lp.jsx)(xae,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,lp.jsx)(wae,{isResponsive:d,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:s,icon:l,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,lp.jsx)(VM,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:g}),e!=="never"&&t&&m&&!f&&(0,lp.jsx)(Bae,{overlay:t,currentTheme:p})]})})}var ES=a(O(),1),jM=a(ne(),1),T0=a(H(),1),zc=a(D(),1);var Qb=a(K(),1),Aae=a(Ad(),1);var HM=a(H(),1),SS=a(R(),1),Dae=a(O(),1),Lae=a(ne(),1);function S0(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 Yi({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,SS.useBlockBindingsUtils)(e),{metadata:o,id:n,kind:i,type:s}=t,l=(0,SS.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",d=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:m}=(0,Dae.useSelect)(h=>{if(!d||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let v=i==="post-type",x=i==="taxonomy";if(!v&&!x)return{isBoundEntityAvailable:!1,entityRecord:null};if(l==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:k}=h(Lae.store),y=x?"taxonomy":"postType",w=s==="tag"?"post_tag":s,C=_(y,w,n);return{isBoundEntityAvailable:k("getEntityRecord",[y,w,n])?C!==void 0:!0,entityRecord:C||null}},[i,s,n,d,l]),f=(0,HM.useCallback)(()=>{c&&r({url:void 0})},[r,c]),g=(0,HM.useCallback)(h=>{let v=h?.kind??i;if(v)try{let x=S0(v);r(x)}catch(x){console.warn("Failed to create entity binding:",x.message)}},[r,i]);return{hasUrlBinding:d,isBoundEntityAvailable:p,entityRecord:m,clearBinding:f,createBinding:g}}function Mae(e){if(!e)return null;let t=w9e(e),r=zae(t);return(0,Aae.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function zae(e,t=0){let r={};return{innerBlocks:[...e].sort((i,s)=>i.menu_order-s.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,Qb.parse)(i.content.raw);return p||(0,Qb.createBlock)("core/freeform",{content:i.content})}let s=i.children?.length?"core/navigation-submenu":"core/navigation-link",l=k9e(i,s,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?zae(i.children,t+1):{};r={...r,...u};let d=(0,Qb.createBlock)(s,l,c);return r[i.id]=d.clientId,d}),mapping:r}}function k9e({title:e,xfn:t,classes:r,attr_title:o,object:n,object_id:i,description:s,url:l,type:c,target:u},d,p){n&&n==="post_tag"&&(n="tag");let m=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:m,url:l||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...o?.length&&{title:o},...i&&(m==="post-type"||m==="taxonomy")&&{id:i,metadata:{bindings:S0(m)}},...s?.length&&{description:s},...u==="_blank"&&{opensInNewTab:!0},...d==="core/navigation-submenu"&&{isTopLevelItem:p===0},...d==="core/navigation-link"&&{isTopLevelLink:p===0}}}function w9e(e,t="id",r="parent"){let o=Object.create(null),n=[];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]])):n.push(o[i[t]]);return n}var UM="success",PS="error",BS="pending",C9e="idle",TS=null;function S9e(e,{throwOnError:t=!1}={}){let r=(0,ES.useRegistry)(),{editEntityRecord:o}=(0,ES.useDispatch)(jM.store),[n,i]=(0,T0.useState)(C9e),[s,l]=(0,T0.useState)(null),c=(0,T0.useCallback)(async(d,p,m="publish")=>{let f,g;try{g=await r.resolveSelect(jM.store).getMenuItems({menus:d,per_page:-1,context:"view"})}catch(v){throw new Error((0,zc.sprintf)((0,zc.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:v})}if(g===null)throw new Error((0,zc.sprintf)((0,zc.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:h}=Mae(g);try{f=await e(p,h,m),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(v){throw new Error((0,zc.sprintf)((0,zc.__)('Unable to create Navigation Menu "%s".'),p),{cause:v})}return f},[e,o,r]);return{convert:(0,T0.useCallback)(async(d,p,m)=>{if(TS!==d){if(TS=d,!d||!p){l("Unable to convert menu. Missing menu details."),i(PS);return}return i(BS),l(null),await c(d,p,m).then(f=>(i(UM),TS=null,f)).catch(f=>{if(l(f?.message),i(PS),TS=null,t)throw new Error((0,zc.sprintf)((0,zc.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:s}}var Vae=S9e;var Yae=a(K(),1),Qae=a(ne(),1),Xae=a(O(),1),E0=a(H(),1);var Uae=a(V(),1),Wae=a(ne(),1),Gae=a(O(),1),NS=a(H(),1),Xb=a(D(),1);var Fae=a(R(),1),Oae=a(ne(),1),Hae=a(O(),1);var P0=e=>e==="header"?eB:e==="footer"?ME:e==="sidebar"?tI:e==="navigation-overlay"?UB:my;function jae(e){return(0,Hae.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(Fae.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:s,getEditedEntityRecord:l}=t(Oae.store),c=s(),d=(c?.default_template_part_areas||[]).map(p=>({...p,icon:P0(p.icon)}));for(let p of i){let m=r(p),{theme:f=c?.stylesheet,slug:g}=m.attributes,h=Ta(f,g),v=l("postType","wp_template_part",h);if(v?.area)return d.find(x=>x.area!=="uncategorized"&&x.area===v.area)?.label}},[e])}var T9e=["postType","wp_navigation",{status:"draft",per_page:-1}],P9e=["postType","wp_navigation",{per_page:-1,status:"publish"}];function $ae(e){let t=(0,NS.useContext)(Uae.Disabled.Context),r=jae(t?void 0:e),o=(0,Gae.useRegistry)();return(0,NS.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=o.resolveSelect(Wae.store),[i,s]=await Promise.all([n(...T9e),n(...P9e)]),l=r?(0,Xb.sprintf)((0,Xb.__)("%s menu"),r):(0,Xb.__)("Menu"),c=[...i,...s].reduce((d,p)=>p?.title?.raw?.startsWith(l)?d+1:d,0);return(c>0?`$l} $c+1}`:l)||""},[t,r,o])}var qae="success",IS="error",Zae="pending",Kae="idle";function Jae(e){let[t,r]=(0,E0.useState)(Kae),[o,n]=(0,E0.useState)(null),[i,s]=(0,E0.useState)(null),{saveEntityRecord:l,editEntityRecord:c}=(0,Xae.useDispatch)(Qae.store),u=$ae(e);return{create:(0,E0.useCallback)(async(p=null,m=[],f)=>{if(p&&typeof p!="string")throw s("Invalid title supplied when creating Navigation Menu."),r(IS),new Error("Value of supplied title argument was not a string.");r(Zae),n(null),s(null),p||(p=await u().catch(h=>{throw s(h?.message),r(IS),new Error("Failed to create title when saving new Navigation Menu.",{cause:h})}));let g={title:p,content:(0,Yae.serialize)(m),status:f};return l("postType","wp_navigation",g).then(h=>(n(h),r(qae),f!=="publish"&&c("postType","wp_navigation",h.id,{status:"publish"}),h)).catch(h=>{throw s(h?.message),r(IS),new Error("Unable to save new Navigation Menu",{cause:h})})},[l,c,u]),status:t,value:o,error:i,isIdle:t===Kae,isPending:t===Zae,isSuccess:t===qae,isError:t===IS}}var eie=a(O(),1),tie=a(R(),1),E9e=[];function rie(e){return(0,eie.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:n}=t(tie.store),i=r(e).innerBlocks,s=!!i?.length,l=s?E9e:o(e);return{innerBlocks:s?i:l,hasUncontrolledInnerBlocks:s,uncontrolledInnerBlocks:i,controlledInnerBlocks:l,isInnerBlockSelected:n(e,!0)}},[e])}var oie=a(dr(),1),RS=a(V(),1),nie=a(D(),1),aie=a(b(),1),B9e=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=RS.Button;return r&&(o=RS.MenuItem),(0,aie.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,oie.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,nie.__)("Manage menus")})},iie=B9e;var dp=a(R(),1),p_=a(V(),1),YS=a(O(),1),up=a(D(),1),Vie=a(H(),1);var sie=a(R(),1),LS=a(V(),1),lie=a(D(),1),AS=a(H(),1),DS=a(b(),1);function N9e({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,AS.useState)(!1),n=()=>{o(!0),e()},i=(0,AS.createInterpolateElement)((0,lie.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,DS.jsx)(LS.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,DS.jsx)(LS.Notice,{status:"warning",isDismissible:!1,children:i}):(0,DS.jsx)(sie.Warning,{children:i})}var MS=N9e;var If=a(K(),1);var Qi=a(V(),1),B0=a(O(),1),Ol=a(D(),1),Rf=a(R(),1);var Qo=a(b(),1),I9e={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},R9e=["core/navigation-link","core/navigation-submenu"];function D9e({clientId:e,onClose:t,isDisabled:r,updateExpansion:o,setInsertedBlockClientId:n}){let{insertBlock:i,replaceBlock:s,replaceInnerBlocks:l}=(0,B0.useDispatch)(Rf.store),{getBlock:c}=(0,B0.useSelect)(Rf.store);return(0,Qo.jsx)(Qi.MenuItem,{icon:Xp,disabled:r,onClick:()=>{let d=(0,If.createBlock)($i.name,$i.attributes),p=c(e);if(p.name==="core/navigation-submenu")i(d,p.innerBlocks.length,e,!1);else{let m=(0,If.createBlock)("core/navigation-submenu",p.attributes,p.innerBlocks);s(e,m),l(m.clientId,[d],!1)}n(d.clientId),o({type:"expand",clientIds:[e]}),t()},children:(0,Ol.__)("Add submenu link")})}function cie({clientId:e,updateExpansion:t,setInsertedBlockClientId:r,...o}){let{moveBlocksDown:n,moveBlocksUp:i,removeBlocks:s,duplicateBlocks:l,insertBeforeBlock:c,insertAfterBlock:u}=(0,B0.useDispatch)(Rf.store),d=(0,Ol.sprintf)((0,Ol.__)("Remove %s"),(0,Rf.BlockTitle)({clientId:e,maximumLength:25})),{blockName:p,rootClientId:m,canDuplicate:f,canInsertBlock:g,isFirst:h,isLast:v}=(0,B0.useSelect)(_=>{let{getBlockRootClientId:k,getBlockName:y,canInsertBlockType:w,getDirectInsertBlock:C,getBlockIndex:S,getBlockCount:P}=_(Rf.store),{getDefaultBlockName:N}=_(If.store),I=k(e),B=y(e),E=w(N(),I),L=I?C(I):null;return{blockName:B,rootClientId:I,canDuplicate:!!B&&(0,If.hasBlockSupport)(B,"multiple",!0)&&w(B,I),canInsertBlock:(E||!!L)&&!!B&&w(B,I),isFirst:S(e)===0,isLast:S(e)===P(I)-1}},[e]),x=!R9e.includes(p);return(0,Qo.jsx)(Qi.DropdownMenu,{icon:Rv,label:(0,Ol.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:I9e,noIcons:!0,...o,children:({onClose:_})=>(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsxs)(Qi.MenuGroup,{children:[(0,Qo.jsx)(Qi.MenuItem,{icon:aE,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{i([e],m),_()},children:(0,Ol.__)("Move up")}),(0,Qo.jsx)(Qi.MenuItem,{icon:uv,disabled:v,accessibleWhenDisabled:!0,onClick:()=>{n([e],m),_()},children:(0,Ol.__)("Move down")}),(0,Qo.jsx)(D9e,{clientId:e,onClose:_,isDisabled:x,updateExpansion:t,setInsertedBlockClientId:r}),f&&(0,Qo.jsx)(Qi.MenuItem,{onClick:()=>{l([e]),_()},children:(0,Ol.__)("Duplicate")}),g&&(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsx)(Qi.MenuItem,{onClick:()=>{c(e),_()},children:(0,Ol.__)("Add before")}),(0,Qo.jsx)(Qi.MenuItem,{onClick:()=>{u(e),_()},children:(0,Ol.__)("Add after")})]})]}),(0,Qo.jsx)(Qi.MenuGroup,{children:(0,Qo.jsx)(Qi.MenuItem,{onClick:()=>{s([e],!1),_()},children:d})})]})})}var oz=a(R(),1),qS=a(O(),1);var Jo=a(V(),1),ar=a(D(),1),Eie=a(da(),1),a_=a(R(),1),WS=a(O(),1),Bie=a(ne(),1);var die=a(H(),1),pie=a(O(),1),mie=a(R(),1),fie=a(da(),1),gie=a(zS(),1);var WM=a(zS(),1),Jb=a(dr(),1),L9e=(e,t)=>{if(!e||!t)return!1;let r=g=>g?g.replace(/\/+$/,""):"",o=(g,h=null)=>{try{let v=h||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(g,v)}catch{return null}},n=o(e);if(!n)return!0;let i=o(t,e);if(!i)return!0;let s=n.hostname,l=i.hostname,c=r((0,Jb.getPath)(n.toString())),u=r((0,Jb.getPath)(i.toString()));if(s!==l||c!==u)return!0;let d=n.searchParams.get("p"),p=i.searchParams.get("p");if(d&&p&&d!==p)return!0;let m=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(m&&f&&m!==f||d&&f||m&&p)},e_=(e={},t,r={})=>{let{label:o="",kind:n="",type:i=""}=r,{title:s="",label:l="",url:c,opensInNewTab:u,id:d,kind:p=n,type:m=i}=e,f=s||l,g=f.replace(/http(s?):\/\//gi,""),h=c?.replace(/http(s?):\/\//gi,"")??"",x=f&&f!==o&&g!==h?(0,WM.escapeHTML)(f):o||(0,WM.escapeHTML)(h),_=m==="post_tag"?"tag":m.replace("-","_"),k=["post","page","tag","category"].indexOf(_)>-1,w=!p&&!k||p==="custom"?"custom":p,C={...c!==void 0?{url:c&&encodeURI((0,Jb.safeDecodeURI)(c))}:{},...x&&{label:x},...u!==void 0&&{opensInNewTab:u},...w&&{kind:w},..._&&_!=="URL"&&{type:_}};c&&!d&&r.id?L9e(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):d&&Number.isInteger(d)?C.id=d:r.id&&(C.kind=w,C.type=_),t(C);let S="id"in C?C.id:r.id,P="kind"in C?C.kind:r.kind;return{isEntityLink:!!S&&P!=="custom",attributes:C}};function Df({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:n}=(0,pie.useDispatch)(mie.store),{hasUrlBinding:i,createBinding:s,clearBinding:l}=Yi({clientId:e,attributes:t});return(0,die.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},d=t.label?(0,fie.__unstableStripHTML)(t.label):"",p=c.title??"",m=o&&c.title!==void 0&&p!==d,f=m?{label:(0,gie.escapeHTML)(p)}:{};if((!t.label||t.label===""||m)&&(u.title=c.title),!c.id&&i)l(),n(e,{url:c.url,kind:"custom",type:"custom",id:void 0,...f});else{let{isEntityLink:h,attributes:v}=e_(u,r,t);h?s(v):l(),Object.keys(f).length&&n(e,f)}},[t,o,e,i,s,l,r,n])}var jS=a(da(),1),Lf=a(V(),1),o_=a(D(),1),US=a(R(),1),Kn=a(H(),1),xie=a(ne(),1);var YM=a(he(),1);var kie=a(dr(),1);var ai=a(V(),1),Xi=a(D(),1),r_=a(O(),1),OS=a(ne(),1),vie=a(xr(),1),$M=a(Wo(),1),qM=a(H(),1);var hie=a(V(),1),VS=a(D(),1);var t_=a(he(),1);var cp=a(b(),1);function A9e({className:e,onBack:t}){return(0,cp.jsx)(hie.Button,{className:e,icon:(0,VS.isRTL)()?rE:JP,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,VS.__)("Back")})}function GM({className:e,title:t,description:r,onBack:o,children:n}){let i=(0,t_.useInstanceId)(GM,"link-ui-dialog-title"),s=(0,t_.useInstanceId)(GM,"link-ui-dialog-description"),l=(0,t_.useFocusOnMount)("firstElement"),c=`$e}__back`;return(0,cp.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":s,ref:l,children:[(0,cp.jsxs)(cn,{children:[(0,cp.jsx)("h2",{id:i,children:t}),(0,cp.jsx)("p",{id:s,children:r})]}),(0,cp.jsx)(A9e,{className:c,onBack:o}),n]})}var FS=GM;var Fs=a(b(),1);function yie({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[n,i]=(0,qM.useState)(o),[s,l]=(0,qM.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:d}=(0,r_.useSelect)(v=>({lastError:v(OS.store).getLastEntitySaveError("postType",e),isSaving:v(OS.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,r_.useDispatch)(OS.store),{createSuccessNotice:m,createErrorNotice:f}=(0,r_.useDispatch)(vie.store);async function g(v){if(v.preventDefault(),!(d||!c))try{let x=await p("postType",e,{title:n,status:s?"publish":"draft"},{throwOnError:!0});if(x){let _={id:x.id,type:e,title:(0,$M.decodeEntities)(x.title.rendered),url:x.link,kind:"post-type"};m((0,Xi.sprintf)((0,Xi.__)("%s page created successfully."),(0,$M.decodeEntities)(x.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,Xi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let h=d||!c;return(0,Fs.jsx)(FS,{className:"link-ui-page-creator",title:(0,Xi.__)("Create page"),description:(0,Xi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,Fs.jsx)(ai.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,Fs.jsx)("form",{onSubmit:g,children:(0,Fs.jsxs)(ai.__experimentalVStack,{spacing:4,children:[(0,Fs.jsx)(ai.TextControl,{label:(0,Xi.__)("Title"),onChange:i,placeholder:(0,Xi.__)("No title"),value:n}),(0,Fs.jsx)(ai.CheckboxControl,{label:(0,Xi.__)("Publish"),help:(0,Xi.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:s,onChange:l}),u&&(0,Fs.jsx)(ai.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,Fs.jsxs)(ai.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,Fs.jsx)(ai.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:d,accessibleWhenDisabled:!0,children:(0,Xi.__)("Cancel")}),(0,Fs.jsx)(ai.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:d,"aria-disabled":h,children:(0,Xi.__)("Create page")})]})]})})})})}var ZM=a(D(),1),bie=a(O(),1),HS=a(R(),1);var KM=a(b(),1),{PrivateQuickInserter:M9e}=q(HS.privateApis);function z9e({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,bie.useSelect)(n=>{let{getBlockRootClientId:i}=n(HS.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,KM.jsx)(FS,{className:"link-ui-block-inserter",title:(0,ZM.__)("Add block"),description:(0,ZM.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,KM.jsx)(M9e,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var _ie=z9e;var ii=a(b(),1);function QM(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 V9e(e,t){let{label:r,url:o,opensInNewTab:n,type:i,kind:s,id:l}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:d}=e.entity||{},{image:p,badges:m}=n_({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:d}),{clientId:f}=e,g=i||"page",[h,v]=(0,Kn.useState)(!1),[x,_]=(0,Kn.useState)(!1),[k,y]=(0,Kn.useState)(null),[w,C]=(0,Kn.useState)(""),S=(0,Kn.useRef)(""),P=F=>{S.current=F,C(F)},N=(0,Kn.useRef)(),I=(0,Kn.useRef)(),B=(0,Kn.useRef)(),E=(0,xie.useResourcePermissions)({kind:"postType",name:g}),{isBoundEntityAvailable:L}=Yi({clientId:f,attributes:e.link}),A=(0,Kn.useMemo)(()=>({url:o,opensInNewTab:n,title:r&&(0,jS.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:s,type:i,id:l,image:p,badges:m}),[r,n,o,s,i,l,p,m,c]),U=F=>{e.onChange(F),_(!1),y(!0),P("")},$=(0,YM.useInstanceId)(Mu,"link-ui-link-control__title"),W=(0,YM.useInstanceId)(Mu,"link-ui-link-control__description");(0,Kn.useEffect)(()=>{k&&N.current&&(k?.current?k.current.focus():(jS.focus.tabbable.find(N.current)[0]||N.current).focus(),y(!1))},[k]);let G=(0,US.useBlockEditingMode)();return(0,ii.jsxs)(Lf.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!h&&!x&&(0,ii.jsxs)("div",{ref:N,role:"dialog","aria-labelledby":$,"aria-describedby":W,children:[(0,ii.jsxs)(cn,{children:[(0,ii.jsx)("h2",{id:$,children:(0,o_.__)("Add link")}),(0,ii.jsx)("p",{id:W,children:(0,o_.__)("Search for and add a link to your Navigation.")})]}),(0,ii.jsx)(US.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:A,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:QM(i,s),onChange:e.onChange,onInputChange:F=>{S.current=F},inputValue:w,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:L,forceIsEditingLink:A?.url?!1:void 0,renderControlBottom:()=>A?.url?.length?null:(0,ii.jsx)(F9e,{addPageButtonRef:I,addBlockButtonRef:B,setAddingBlock:()=>{v(!0)},setAddingPage:()=>{_(!0)},canAddPage:G!=="disabled"&&E?.canCreate&&i==="page",canAddBlock:G!=="disabled"})})]}),h&&(0,ii.jsx)(_ie,{clientId:e.clientId,onBack:()=>{v(!1),y(B),P(S.current)},onBlockInsert:e?.onBlockInsert}),x&&(0,ii.jsx)(yie,{postType:g,onBack:()=>{_(!1),y(I),P(S.current)},onPageCreated:U,initialTitle:S.current&&!(0,kie.isURL)(S.current)?S.current:""})]})}var Mu=(0,Kn.forwardRef)(V9e),F9e=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:n,canAddBlock:i})=>{let s="listbox";return!n&&!i?null:(0,ii.jsxs)(Lf.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,ii.jsx)(Lf.Button,{__next40pxDefaultSize:!0,ref:e,icon:zg,onClick:l=>{l.preventDefault(),o(!0)},"aria-haspopup":s,children:(0,o_.__)("Create page")}),i&&(0,ii.jsx)(Lf.Button,{__next40pxDefaultSize:!0,ref:t,icon:zg,onClick:l=>{l.preventDefault(),r(!0)},"aria-haspopup":s,children:(0,o_.__)("Add block")})]})};var xn=a(D(),1),ez=a(dr(),1),wie=a(R(),1),XM=a(O(),1),JM=a(ne(),1);var{useRemoteUrlData:O9e,isHashLink:Cie,isRelativePath:H9e}=q(wie.privateApis);function j9e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function U9e(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 n=r.pathname.replace(/\/$/,""),i=o.pathname.replace(/\/$/,"");return n===i}catch{return!1}}function W9e({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,ez.safeDecodeURI)(e),o=!1;if(H9e(e)||Cie(e))return{displayUrl:r,isExternal:!1};try{let n=new URL(e),i=new URL(t).host;if(n.host===i){let s=n.pathname+n.search+n.hash;s.endsWith("/")&&s.length>1&&(s=s.slice(0,-1)),r=s}else o=!0}catch{o=!0}return{displayUrl:r,isExternal:o}}function G9e({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:n,hasBinding:i,isEntityAvailable:s}){let l=[];if(e&&(o?l.push({label:(0,xn.__)("External link"),intent:"default"}):Cie(e)?l.push({label:(0,xn.__)("Internal link"),intent:"default"}):U9e(e,t)?l.push({label:(0,xn.__)("Homepage"),intent:"default"}):r&&r!=="custom"?l.push({label:j9e(r),intent:"default"}):l.push({label:(0,xn.__)("Page"),intent:"default"})),i&&!s)l.push({label:(0,xn.sprintf)((0,xn.__)("Missing %s"),r),intent:"error"});else if(!e)l.push({label:(0,xn.__)("No link selected"),intent:"error"});else if(n){let u={publish:{label:(0,xn.__)("Published"),intent:"success"},future:{label:(0,xn.__)("Scheduled"),intent:"warning"},draft:{label:(0,xn.__)("Draft"),intent:"warning"},pending:{label:(0,xn.__)("Pending"),intent:"warning"},private:{label:(0,xn.__)("Private"),intent:"default"},trash:{label:(0,xn.__)("Trash"),intent:"error"}}[n];u&&l.push(u)}return l}function $9e(e){let t=e?.title;return typeof t=="string"?t:t&&"rendered"in t?t.rendered||(0,xn.__)("(no title)"):e?.name}function n_({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:n}){let i=(0,XM.useSelect)(f=>f(JM.store).getEntityRecord("root","__unstableBase")?.home,[]),s=$9e(t),{richData:l}=O9e(s?null:e),{displayUrl:c,isExternal:u}=W9e({linkUrl:e,homeUrl:i}),d=(0,XM.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:g}=f(JM.store),h=g("postType","attachment",t.featured_media);return h?.media_details?.sizes?.thumbnail?.source_url||h?.media_details?.sizes?.medium?.source_url||h?.source_url||null},[t?.featured_media]),p=G9e({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:n});return{title:e?s||l?.title||(0,ez.safeDecodeURI)(e):(0,xn.__)("Add link"),url:c,image:d,badges:p}}var Sie=a(O(),1),Tie=a(ne(),1),Pie=a(R(),1),Af=(e,t,r,o)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),s=(0,Pie.useBlockEditingMode)(),{postStatus:l,isDeleted:c}=(0,Sie.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(s==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:m,hasFinishedResolution:f}=p(Tie.store),g=m("postType",t,r),v=f("getEntityRecord",["postType",t,r])&&g===void 0;return{postStatus:g?.status,isDeleted:v}},[n,s,o,t,r]);return[n&&i&&(c||l&&l==="trash"),l==="draft"]};var Xo=a(b(),1),{LinkPicker:q9e,isHashLink:Z9e,isRelativePath:K9e}=q(a_.privateApis);function Y9e(e,t){if(t==="post-type")switch(e){case"post":return(0,ar.__)("post");case"page":return(0,ar.__)("page");default:return e||(0,ar.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,ar.__)("category");case"tag":return(0,ar.__)("tag");default:return e||(0,ar.__)("term")}return e||(0,ar.__)("item")}function i_({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:n,url:i,description:s,rel:l,opensInNewTab:c}=e,u=X(),{hasUrlBinding:d,isBoundEntityAvailable:p,entityRecord:m}=Yi({clientId:r,attributes:e}),[f,g]=Af(e.kind,e.type,m?.id,d),h="";f||d&&!p?h=GS():g&&(h=Q9e({type:e.type,kind:e.kind}));let v=Df({clientId:r,attributes:e,setAttributes:t}),x=(0,WS.useSelect)(P=>P(a_.store).getSettings().onNavigateToEntityRecord,[]),_=(0,WS.useSelect)(P=>P(Bie.store).getEntityRecord("root","__unstableBase")?.home,[]),y=(0,WS.useSelect)(P=>P(a_.store).getBlockEditingMode(r),[r])==="contentOnly",w=n_({url:i,entityRecord:m,type:e.type,hasBinding:d,isEntityAvailable:p}),C=!!i&&(!Z9e(i)||K9e(i)&&!i.startsWith("/")),S=C&&i.startsWith("/")&&_?_+i:i;return(0,Xo.jsxs)(Jo.__experimentalToolsPanel,{label:(0,ar.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,ar.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Xo.jsx)(Jo.TextControl,{label:(0,ar.__)("Text"),value:n?(0,Eie.__unstableStripHTML)(n):"",onChange:P=>{t({label:P})},autoComplete:"off"})}),o&&(0,Xo.jsxs)(Xo.Fragment,{children:[(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,ar.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Xo.jsx)(q9e,{preview:w,onSelect:v,suggestionsQuery:QM(e.type,e.kind),label:(0,ar.__)("Link to"),help:h||void 0})}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,ar.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Xo.jsx)(Jo.CheckboxControl,{label:(0,ar.__)("Open in new tab"),checked:c,onChange:P=>t({opensInNewTab:P})})}),!!i&&d&&p&&m?.id&&e.kind==="post-type"&&x&&(0,Xo.jsx)(Jo.Button,{variant:"secondary",onClick:()=>{x({postId:m.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,ar.__)("Edit")}),C&&(0,Xo.jsx)(Jo.Button,{variant:"secondary",href:S,target:"_blank",icon:_v,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,ar.__)("View")})]}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,ar.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!y,children:(0,Xo.jsx)(Jo.TextareaControl,{label:(0,ar.__)("Description"),value:s||"",onChange:P=>{t({description:P})},help:(0,ar.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,ar.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!y,children:(0,Xo.jsx)(Jo.TextControl,{label:(0,ar.__)("Rel attribute"),value:l||"",onChange:P=>{t({rel:P})},autoComplete:"off",help:(0,ar.__)("The relationship of the linked URL as space-separated link types.")})})]})}function GS(){return(0,ar.__)("This link is invalid and will not appear on your site. Please update the link.")}function Q9e({type:e,kind:t}){let r=Y9e(e,t);return(0,ar.sprintf)((0,ar.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var tz=a(D(),1),Nie=a(Wo(),1),rz=a(b(),1);function s_({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,tz.__)("Invalid"):(0,tz.__)("Draft");return(0,rz.jsx)("div",{className:T("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,rz.jsx)("span",{children:`${(0,Nie.decodeEntities)(e)} ($n})`.trim()})})}var Iie=a(O(),1),Rie=a(R(),1);function l_(e){return(0,Iie.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:n}=t(Rie.store),i=r(),s=n(e,"core/navigation")[0];return i===s||o(s,!0)},[e])}var $S=a(H(),1),c_=e=>{let[t,r]=(0,$S.useState)(!1);return(0,$S.useEffect)(()=>{let{ownerDocument:o}=e.current;function n(l){s(l)}function i(){r(!1)}function s(l){e.current.contains(l.target)?r(!0):r(!1)}return o.addEventListener("dragstart",n),o.addEventListener("dragend",i),o.addEventListener("dragenter",s),()=>{o.removeEventListener("dragstart",n),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",s)}},[e]),t};function u_(e){e.current.focus();let{ownerDocument:t}=e.current,{defaultView:r}=t,o=r.getSelection(),n=t.createRange();n.selectNodeContents(e.current),o.removeAllRanges(),o.addRange(n)}var Die=a(b(),1),X9e=["core/navigation-link","core/navigation-submenu"];function ZS({insertedBlockClientId:e,setInsertedBlockClientId:t}){let{updateBlockAttributes:r,removeBlock:o}=(0,qS.useDispatch)(oz.store),{insertedBlockName:n,insertedBlockAttributes:i}=(0,qS.useSelect)(m=>{let{getBlockName:f,getBlockAttributes:g}=m(oz.store);return{insertedBlockName:f(e),insertedBlockAttributes:g(e)}},[e]),s=X9e?.includes(n),{createBinding:l,clearBinding:c}=Yi({clientId:e,attributes:i||{}});if(!s)return null;let u=()=>{!i?.url&&e&&o(e,!1),t(null)},d=m=>f=>{m&&r(m,f)};return(0,Die.jsx)(Mu,{clientId:e,link:i,onBlockInsert:m=>{e&&m&&o(e,!1),t(m?.clientId??null)},onClose:()=>{u()},onChange:m=>{let{isEntityLink:f,attributes:g}=e_(m,d(e),i);f?l(g):c(),t(null)}})}var KS=a(V(),1),Lie=a(D(),1),Aie=a(R(),1);var d_=a(b(),1),{useBlockDisplayTitle:J9e}=q(Aie.privateApis),eTe=(0,Lie.__)("Switch to '%s'");function Mie({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:s,createNavigationMenuIsError:l,isManageMenusButtonDisabled:c}){let u=J9e({clientId:e,context:"list-view"});return(0,d_.jsxs)(KS.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,d_.jsx)(KS.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,d_.jsx)(v0,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:s,createNavigationMenuIsError:l,actionLabel:eTe,isManageMenusButtonDisabled:c})]})}var Pa=a(b(),1),tTe=(0,up.__)("Switch to '%s'"),{PrivateListView:rTe,PrivateBlockContext:oTe,useListViewPanelState:nTe,useBlockDisplayTitle:aTe}=q(dp.privateApis),zie=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:n,expandRevision:i})=>{let s=(0,YS.useSelect)(d=>!!d(dp.store).getBlockCount(e),[e]),{openListViewContentPanel:l}=q((0,YS.useDispatch)(dp.store)),{navigationMenu:c}=g0(t);if(t&&o)return(0,Pa.jsx)(MS,{onCreateNew:n,isNotice:!0});if(r)return(0,Pa.jsx)(p_.Spinner,{});let u=c?(0,up.sprintf)((0,up.__)("Structure for Navigation Menu: %s"),c?.title||(0,up.__)("Untitled menu")):(0,up.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Pa.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!s&&(0,Pa.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,up.__)("This Navigation Menu is empty.")}),(0,Pa.jsx)(rTe,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:cie,additionalBlockContent:ZS,onSelect:l},`$e}-$i}`)]})},iTe=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:i,onSelectClassicMenu:s,onSelectNavigationMenu:l,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:d}=(0,Vie.useContext)(oTe),p=aTe({clientId:t,context:"list-view"}),m=d,{isOpened:f,expandRevision:g,handleToggle:h}=nTe(t);return m?(0,Pa.jsx)(dp.InspectorControls,{group:"list",children:(0,Pa.jsxs)(p_.PanelBody,{title:p,opened:f,onToggle:h,children:[u==="default"&&(0,Pa.jsx)(v0,{currentMenuId:n,onSelectClassicMenu:s,onSelectNavigationMenu:l,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:tTe,isManageMenusButtonDisabled:c}),(0,Pa.jsx)(zie,{...e,expandRevision:g})]})}):(0,Pa.jsx)(dp.InspectorControls,{group:"list",children:(0,Pa.jsxs)(p_.PanelBody,{title:null,children:[(0,Pa.jsx)(Mie,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:s,onSelectNavigationMenu:l,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,Pa.jsx)(zie,{...e,expandRevision:g})]})})},QS=iTe;var nz=a(b(),1);function XS({id:e,children:t}){return(0,nz.jsx)(cn,{children:(0,nz.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var Fie=a(ne(),1),JS=a(D(),1);var Oie=a(b(),1);function Hie({id:e}){let[t]=(0,Fie.useEntityProp)("postType","wp_navigation","title"),r=(0,JS.sprintf)((0,JS.__)('Navigation Menu: "%s"'),t);return(0,Oie.jsx)(XS,{id:e,children:r})}var az=a(O(),1),jie=a(ne(),1);function m_(){let e=(0,az.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,az.select)(jie.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===Lc:!1}var e6=a(R(),1);var{getResponsiveMediaQueries:sTe}=q(Fh),Uie={left:"flex-start",center:"center",right:"flex-end","space-between":"space-between"};function Wie({clientId:e,layout:t,style:r}){let[o]=(0,e6.useSettings)("viewport"),n=`#block-$e}`,i=Object.entries(sTe(o)).map(([s,l])=>{let c=r?.[s]?.layout;if(!c||typeof c!="object"||Array.isArray(c)||!Object.keys(c).length)return"";let u={...t,...c},d=Object.hasOwn(Uie,u.justifyContent)?u.justifyContent:"left",p=Uie[d],m=u.orientation==="vertical",f="center";m&&(f=["center","right"].includes(d)?p:"flex-start");let g=m&&d==="left"?"initial":p,h={"--navigation-layout-justification-setting":p,"--navigation-layout-direction":m?"column":"row","--navigation-layout-wrap":u.flexWrap==="nowrap"?"nowrap":"wrap","--navigation-layout-justify":g,"--navigation-layout-align":f},v=Object.entries(h).map(([x,_])=>`$x}: $_};`).join("");return`$l}{$n} {$v}}}`}).join("");(0,e6.useStyleOverride)({css:i})}var Ce=a(b(),1),{isNavigationPostEditorKey:lTe}=q(at.privateApis);function cTe({clientId:e}){let{insertBlock:t}=(0,Hl.useDispatch)(at.store),{getBlockCount:r}=(0,Hl.useSelect)(at.store),o=(0,vr.useCallback)(()=>{let n=r(e),i=(0,Gie.createBlock)($i.name,{kind:$i.attributes.kind,type:$i.attributes.type});t(i,n,e)},[e,t,r]);return(0,Ce.jsx)(at.BlockControls,{children:(0,Ce.jsx)(oo.ToolbarGroup,{children:(0,Ce.jsx)(oo.ToolbarButton,{name:"add-page",icon:lu,onClick:o,children:(0,Ot.__)("Add page")})})})}function uTe({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:s,setOverlayBackgroundColor:l,clientId:c,navRef:u,hasCustomOverlay:d}){let[p,m]=(0,vr.useState)(),[f,g]=(0,vr.useState)(),[h,v]=(0,vr.useState)(),[x,_]=(0,vr.useState)(),k=(0,Hl.useSelect)(()=>m_(),[]);(0,vr.useEffect)(()=>{MM(u.current,g,m);let C=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');C&&(n.color||s.color)&&MM(C,_,v)},[n.color,s.color,u]);let y=(0,at.__experimentalUseMultipleOriginColorsAndGradients)();if(!y.hasColorsOrGradients)return null;let w=[{colorValue:e.color,label:(0,Ot.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Ot.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return w.push({colorValue:n.color,label:d||k?(0,Ot.__)("Submenu text"):(0,Ot.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:s.color,label:d||k?(0,Ot.__)("Submenu background"):(0,Ot.__)("Submenu & overlay background"),onColorChange:l,resetAllFilter:()=>l(),clearable:!0,enableAlpha:!0}),(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(at.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:w,panelId:c,...y,gradients:[],disableCustomGradients:!0}),(0,Ce.jsx)(at.ContrastChecker,{backgroundColor:p,textColor:f}),(0,Ce.jsx)(at.ContrastChecker,{backgroundColor:h,textColor:x})]})}function dTe({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:n,backgroundColor:i,setBackgroundColor:s,textColor:l,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:d,overlayTextColor:p,setOverlayTextColor:m,customPlaceholder:f=null,__unstableLayoutClassNames:g}){let{submenuVisibility:h,overlayMenu:v,overlay:x,showSubmenuIcon:_,templateLock:k,layout:{justifyContent:y,orientation:w="horizontal",flexWrap:C="wrap"}={},hasIcon:S,icon:P="handle"}=e,N=e.ref;Wie({clientId:r,layout:e.layout,style:e.style});let I=(0,vr.useCallback)(ur=>{t({ref:ur})},[t]),B=`navigationMenu/$N}`,E=(0,at.useHasRecursion)(B),{isPreviewMode:L,onNavigateToEntityRecord:A,currentTheme:U,editorDisabledResponsive:$,hasSelectedStyleState:W}=(0,Hl.useSelect)(ur=>{let{getSettings:ll,hasSelectedStyleState:Jl}=q(ur(at.store)),$p=ll();return{isPreviewMode:$p.isPreviewMode,onNavigateToEntityRecord:$p?.onNavigateToEntityRecord,currentTheme:ur(pp.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!$p?.[lTe],hasSelectedStyleState:Jl(r)}},[r]),G=L?!1:E,F=(0,at.useBlockEditingMode)(),{records:Z}=(0,pp.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[j,Y]=hS({name:"block-library/core/navigation/status"}),[ee,te]=hS({name:"block-library/core/navigation/classic-menu-conversion"}),[Q,le]=hS({name:"block-library/core/navigation/permissions/update"}),{create:oe,status:ce,error:pe,value:be,isPending:Te,isSuccess:ae,isError:se}=Jae(r),ue=async()=>{await oe("")},{hasUncontrolledInnerBlocks:Oe,uncontrolledInnerBlocks:Pe,isInnerBlockSelected:ge,innerBlocks:et}=rie(r),{replaceInnerBlocks:me,selectBlock:ct,__unstableMarkNextChangeAsNotPersistent:Ne}=(0,Hl.useDispatch)(at.store);(0,vr.useEffect)(()=>{w==="horizontal"&&h==="always"&&(Ne(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[w,h,t,Ne]);let ie=(0,vr.useRef)(!1),Ee=(0,Hl.useSelect)(ur=>{if(et.some(Pg=>Pg.name==="core/navigation-submenu"))return!0;let Jl=et.find(Pg=>Pg.name==="core/page-list");if(!Jl)return ie.current=!1,!1;if(ie.current)return!0;let{getBlocks:$p}=ur(at.store);return $p(Jl.clientId).length>0?(ie.current=!0,!0):!1},[et]),{records:ve}=(0,pp.useEntityRecords)("postType","wp_template_part",{per_page:-1}),Xt=ve?.some(ur=>ur.area===Lc)??!1,[Gt,br]=(0,vr.useState)(!1),[wo,In]=(0,vr.useState)(!1),{hasResolvedNavigationMenus:on,isNavigationMenuResolved:vi,isNavigationMenuMissing:aa,canUserUpdateNavigationMenu:us,hasResolvedCanUserUpdateNavigationMenu:Rn,canUserDeleteNavigationMenu:Xl,hasResolvedCanUserDeleteNavigationMenu:ol,canUserCreateNavigationMenus:ds,isResolvingCanUserCreateNavigationMenus:nl,hasResolvedCanUserCreateNavigationMenus:su}=g0(N),ia=on&&aa,{convert:sa,status:yi,error:Up}=Vae(oe),re=yi===BS,Ve=(0,vr.useCallback)((ur,ll={focusNavigationBlock:!1})=>{let{focusNavigationBlock:Jl}=ll;I(ur),Jl&&ct(r)},[ct,r,I]),Ye=!aa&&vi,Ct=Oe&&!Ye,{getNavigationFallbackId:Qe}=q((0,Hl.useSelect)(pp.store)),Qr=N||Ct?null:Qe();(0,vr.useEffect)(()=>{N||Ct||!Qr||(Ne(),I(Qr))},[N,I,Ct,Qr,Ne]);let Fa=(0,vr.useRef)(),ye=(0,Hl.useSelect)(()=>m_(),[]),_e=ye?"div":"nav",_t=!N&&!Te&&!re&&on&&Z?.length===0&&!Oe,Jt=!on||Te||re||!!(N&&!Ye&&!re),Co=e.style?.typography?.textDecoration,al=(0,Hl.useSelect)(ur=>ur(at.store).__unstableHasActiveBlockOverlayActive(r),[r]),la=(0,vr.useRef)(!1);(0,vr.useEffect)(()=>{ye&&(v!=="never"&&t({overlayMenu:"never"}),!la.current&&!N&&(la.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,ye,v,N,t]);let ps=v!=="never"&&!$,bi=(0,at.useBlockProps)({ref:Fa,className:T(n,{"items-justified-right":y==="right","items-justified-space-between":y==="space-between","items-justified-left":y==="left","items-justified-center":y==="center","is-vertical":w==="vertical","no-wrap":C==="nowrap","is-responsive":ps,"has-text-color":!!l.color||!!l?.class,[(0,at.getColorClassName)("color",l?.slug)]:!!l?.slug,"has-background":!!i.color||i.class,[(0,at.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-$Co}`]:Co,"block-editor-block-content-overlay":al},g),style:{color:!l?.slug&&l?.color,backgroundColor:!i?.slug&&i?.color}}),il=async ur=>sa(ur.id,ur.name,"draft"),Wp=ur=>{Ve(ur)};(0,vr.useEffect)(()=>{Y(),Te&&(0,t6.speak)((0,Ot.__)("Creating Navigation Menu.")),ae&&(Ve(be?.id,{focusNavigationBlock:!0}),j((0,Ot.__)("Navigation Menu successfully created."))),se&&j((0,Ot.__)("Failed to create Navigation Menu."))},[ce,pe,be?.id,se,ae,Te,Ve,Y,j]),(0,vr.useEffect)(()=>{te(),yi===BS&&(0,t6.speak)((0,Ot.__)("Classic menu importing.")),yi===UM&&(ee((0,Ot.__)("Classic menu imported successfully.")),Ve(be?.id,{focusNavigationBlock:!0})),yi===PS&&ee((0,Ot.__)("Classic menu import failed."))},[yi,Up,te,ee,be?.id,Ve]),(0,vr.useEffect)(()=>{!o&&!ge&&le(),(o||ge)&&(N&&!ia&&Rn&&!us&&Q((0,Ot.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!N&&su&&!ds&&Q((0,Ot.__)("You do not have permission to create Navigation Menus.")))},[o,ge,us,Rn,ds,su,N,le,Q,ia]);let YT=ds||us,QT=T("wp-block-navigation__overlay-menu-preview",{open:wo}),_i=!_&&h!=="click"&&h!=="always"?(0,Ot.__)('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.'):"",L2=(0,vr.useRef)(!0);(0,vr.useEffect)(()=>{!L2.current&&_i&&(0,t6.speak)(_i),L2.current=!1},[_i]);let A2=(0,$ie.useInstanceId)(lae,"overlay-menu-preview"),M2=X(),sl=(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(at.InspectorControls,{children:Ee&&(0,Ce.jsx)(oo.__experimentalToolsPanel,{label:(0,Ot.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:M2,children:Ee&&(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Ot.__)("Submenus")}),(0,Ce.jsx)(oo.__experimentalToolsPanelItem,{hasValue:()=>h!=="hover",label:(0,Ot.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,Ce.jsxs)(oo.__experimentalToggleGroupControl,{label:(0,Ot.__)("Submenu Visibility"),value:h,onChange:ur=>{let ll={submenuVisibility:ur};ur==="always"?ll.showSubmenuIcon=!1:(ur==="click"||h==="always")&&(ll.showSubmenuIcon=!0),t(ll)},isBlock:!0,children:[(0,Ce.jsx)(oo.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Ot.__)("Hover")}),(0,Ce.jsx)(oo.__experimentalToggleGroupControlOption,{value:"click",label:(0,Ot.__)("Click")}),w==="vertical"&&(0,Ce.jsx)(oo.__experimentalToggleGroupControlOption,{value:"always",label:(0,Ot.__)("Always")})]})}),(0,Ce.jsx)(oo.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,Ot.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:h==="click"||h==="always",isShownByDefault:!0,children:(0,Ce.jsx)(oo.ToggleControl,{checked:_,onChange:ur=>{t({showSubmenuIcon:ur})},disabled:h==="click"||h==="always",label:(0,Ot.__)("Show arrow")})}),_i&&(0,Ce.jsx)(oo.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:_i})]})})}),!ye&&(0,Ce.jsx)(at.InspectorControls,{children:(0,Ce.jsx)(Rae,{overlayMenu:v,overlay:x,setAttributes:t,onNavigateToEntityRecord:A,overlayMenuPreview:wo,setOverlayMenuPreview:In,hasIcon:S,icon:P,overlayMenuPreviewClasses:QT,overlayMenuPreviewId:A2,isResponsive:ps,currentTheme:U,hasOverlays:Xt})}),!W&&(0,Ce.jsx)(at.InspectorControls,{group:"color",children:(0,Ce.jsx)(uTe,{textColor:l,setTextColor:c,backgroundColor:i,setBackgroundColor:s,overlayTextColor:p,setOverlayTextColor:m,overlayBackgroundColor:u,setOverlayBackgroundColor:d,clientId:r,navRef:Fa,hasCustomOverlay:!!x})})]}),ms=`$r}-desc`,Gp=v==="always",Tg=!YT||!on;if(Ct&&!Te)return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(QS,{clientId:r,createNavigationMenuIsSuccess:ae,createNavigationMenuIsError:se,currentMenuId:N,isNavigationMenuMissing:aa,isManageMenusButtonDisabled:Tg,onCreateNew:ue,onSelectClassicMenu:il,onSelectNavigationMenu:Wp,isLoading:Jt,blockEditingMode:F}),F==="default"&&sl,(0,Ce.jsxs)(_e,{...bi,"aria-describedby":_t?void 0:ms,children:[(0,Ce.jsx)(XS,{id:ms,children:(0,Ot.__)("Unsaved Navigation Menu.")}),(0,Ce.jsx)(RM,{id:r,onToggle:br,isOpen:Gt,hasIcon:S,icon:P,isResponsive:ps,isHiddenByDefault:Gp,overlayBackgroundColor:u,overlayTextColor:p,overlay:x,onNavigateToEntityRecord:A,children:(0,Ce.jsx)(rae,{createNavigationMenu:oe,blocks:Pe,hasSelection:o||ge})})]})]});if(N&&aa)return(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(QS,{clientId:r,createNavigationMenuIsSuccess:ae,createNavigationMenuIsError:se,currentMenuId:N,isNavigationMenuMissing:aa,isManageMenusButtonDisabled:Tg,onCreateNew:ue,onSelectClassicMenu:il,onSelectNavigationMenu:Wp,isLoading:Jt,blockEditingMode:F}),(0,Ce.jsx)(_e,{...bi,children:(0,Ce.jsx)(MS,{onCreateNew:ue})})]});if(Ye&&G)return(0,Ce.jsx)("div",{...bi,children:(0,Ce.jsx)(at.Warning,{children:(0,Ot.__)("Block cannot be rendered inside itself.")})});let XT=f||Vne;return _t&&f?(0,Ce.jsx)(_e,{...bi,children:(0,Ce.jsx)(XT,{isSelected:o,currentMenuId:N,clientId:r,canUserCreateNavigationMenus:ds,isResolvingCanUserCreateNavigationMenus:nl,onSelectNavigationMenu:Wp,onSelectClassicMenu:il,onCreateEmpty:ue})}):(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(QS,{clientId:r,createNavigationMenuIsSuccess:ae,createNavigationMenuIsError:se,currentMenuId:N,isNavigationMenuMissing:aa,isManageMenusButtonDisabled:Tg,onCreateNew:ue,onSelectClassicMenu:il,onSelectNavigationMenu:Wp,isLoading:Jt,blockEditingMode:F}),F==="default"&&sl,(0,Ce.jsx)(pp.EntityProvider,{kind:"postType",type:"wp_navigation",id:N,children:(0,Ce.jsxs)(at.RecursionProvider,{uniqueId:B,children:[F==="contentOnly"&&Ye&&(0,Ce.jsx)(cTe,{clientId:r}),F==="default"&&Ye&&(0,Ce.jsxs)(at.InspectorControls,{group:"advanced",children:[Rn&&us&&(0,Ce.jsx)(Kne,{}),ol&&Xl&&(0,Ce.jsx)(aae,{onDelete:()=>{me(r,[]),j((0,Ot.__)("Navigation Menu successfully deleted."))}}),(0,Ce.jsx)(iie,{disabled:Tg,className:"wp-block-navigation-manage-menus-button"})]}),(0,Ce.jsxs)(_e,{...bi,"aria-describedby":!_t&&!Jt?ms:void 0,children:[Jt&&!Gp&&(0,Ce.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,Ce.jsx)(oo.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Jt||Gp)&&(0,Ce.jsxs)(Ce.Fragment,{children:[(0,Ce.jsx)(Hie,{id:ms}),(0,Ce.jsx)(RM,{id:r,onToggle:br,hasIcon:S,icon:P,isOpen:Gt,isResponsive:ps,isHiddenByDefault:Gp,overlayBackgroundColor:u,overlayTextColor:p,overlay:x,onNavigateToEntityRecord:A,children:Ye&&(0,Ce.jsx)(Wne,{clientId:r,hasCustomPlaceholder:!!f,templateLock:k,orientation:w})})]})]})]})})]})}var qie=(0,at.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(dTe);var Zie=a(R(),1),Kie=a(b(),1);function Yie({attributes:e}){if(!e.ref)return(0,Kie.jsx)(Zie.InnerBlocks.Content,{})}var mp=a(R(),1),N0=a(he(),1);var fp=a(b(),1),iz={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},I0=({navigationMenuId:e,...t})=>({...t,ref:e}),r6=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},o6=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},pTe={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,fp.jsx)(mp.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:o6},mTe={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,fp.jsx)(mp.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:I0},fTe={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,fp.jsx)(mp.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,N0.compose)(I0,r6,o6)},gTe={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,fp.jsx)(mp.InnerBlocks.Content,{})},migrate:(0,N0.compose)(I0,r6,er,o6),isEligible({style:e}){return e?.typography?.fontFamily}},hTe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},vTe=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=iz[t];if(o&&r.startsWith(o)){let n=r.slice(o.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,r]}))}}},yTe=[pTe,mTe,fTe,gTe,{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,N0.compose)(I0,r6,er,hTe,o6),save(){return(0,fp.jsx)(mp.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,fp.jsx)(mp.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in iz){let r=e.style.typography[t];if(r&&r.startsWith(iz[t]))return!0}return!1},migrate:(0,N0.compose)(I0,r6,er,vTe)},{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,N0.compose)(I0,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,fp.jsx)(mp.InnerBlocks.Content,{})}}],Qie=yTe;var{name:tse}=cS,rse={icon:dm,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,n6.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,n6.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,n6.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:qie,save:Yie,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Xie.select)(Jie.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,ese.decodeEntities)(t.title)},deprecated:Qie},bTe=()=>M({name:tse,metadata:cS,settings:rse});var uz={};J(uz,{init:()=>NTe,metadata:()=>a6,name:()=>fse,settings:()=>u6});var gp=a(D(),1);var pse=a(Ad(),1),mse=a(K(),1);var ose=a(R(),1),nse=a(b(),1),_Te=[{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,nse.jsx)(ose.InnerBlocks.Content,{})}}],ase=_Te;var a6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Navigation 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 i6=a(K(),1),f_=a(O(),1),g_=a(V(),1),s6=a(uc(),1),Os=a(D(),1),kn=a(R(),1),l6=a(dr(),1),Ea=a(H(),1);var c6=a(he(),1);var yr=a(b(),1),kTe={name:"core/navigation-link"},wTe=["core/navigation-link","core/navigation-submenu"];function CTe(e){let t="";switch(e){case"post":t=(0,Os.__)("Select post");break;case"page":t=(0,Os.__)("Select page");break;case"category":t=(0,Os.__)("Select category");break;case"tag":t=(0,Os.__)("Select tag");break;default:t=(0,Os.__)("Add link")}return t}function lz({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:n,onReplace:i,context:s,clientId:l}){let{id:c,label:u,type:d,url:p,description:m,kind:f,metadata:g}=e,{maxNestingLevel:h}=s,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:x,selectBlock:_}=(0,f_.useDispatch)(kn.store),[k,y]=(0,Ea.useState)(t&&!p),[w,C]=(0,Ea.useState)(null),S=(0,Ea.useRef)(null),P=c_(S),N=(0,Os.__)("Add label\u2026"),I=(0,Ea.useRef)(),B=(0,Ea.useRef)(),E=(0,Ea.useRef)(u===void 0),L=(0,Ea.useRef)(!1),{isAtMaxNesting:A,isTopLevelLink:U,isParentOfSelectedBlock:$,hasChildren:W,parentBlockClientId:G,isSubmenu:F}=(0,f_.useSelect)(ve=>{let{getBlockCount:Xt,getBlockName:Gt,getBlockRootClientId:br,hasSelectedInnerBlock:wo,getBlockParentsByBlockName:In}=ve(kn.store),on=br(l),vi=Gt(on),aa=vi==="core/navigation",us=aa?on:In(l,"core/navigation")[0],Rn=vi==="core/navigation-submenu"?on:us;return{isAtMaxNesting:In(l,wTe).length>=h,isTopLevelLink:aa,isParentOfSelectedBlock:wo(l,!0),hasChildren:!!Xt(l),parentBlockClientId:Rn,isSubmenu:vi==="core/navigation-submenu"}},[l,h]),Z=l_(l),{getBlocks:j}=(0,f_.useSelect)(kn.store),{hasUrlBinding:Y,isBoundEntityAvailable:ee,entityRecord:te}=Yi({clientId:l,attributes:e}),Q=Df({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),[le,oe]=Af(f,d,c,Z),ce=(0,Ea.useCallback)(()=>{let ve=j(l);ve.length===0&&(ve=[(0,i6.createBlock)("core/navigation-link")],_(ve[0].clientId));let Xt=(0,i6.createBlock)("core/navigation-submenu",e,ve);v(l,Xt)},[j,l,_,v,e]);(0,Ea.useEffect)(()=>{E.current&&t&&_(G)},[]),(0,Ea.useEffect)(()=>{W&&(x(),ce())},[W,x,ce]),(0,Ea.useEffect)(()=>{if(!(!E.current||!p||!k)){if(E.current=!1,(0,l6.isURL)((0,l6.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))u_(I);else if(_(l,null),F){let ve=j(G);ve.length===1&&ve[0].clientId===l&&(L.current=!0)}}},[p,k,E,u]);function pe(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),y(!1)}let{textColor:be,customTextColor:Te,backgroundColor:ae,customBackgroundColor:se}=Pf(s,!U);function ue(ve){s6.isKeyboardEvent.primary(ve,"k")&&(ve.preventDefault(),ve.stopPropagation(),y(!0))}let Oe=(0,c6.useInstanceId)(lz),Pe=Y&&!ee,ge=Pe?(0,Os.sprintf)("navigation-link-edit-%d-desc",Oe):void 0,et=(0,kn.useBlockProps)({ref:(0,c6.useMergeRefs)([C,S]),className:T("wp-block-navigation-item",{"is-editing":t||$,"is-dragging-within":P,"has-link":!!p,"has-child":W,"has-text-color":!!be||!!Te,[(0,kn.getColorClassName)("color",be)]:!!be,"has-background":!!ae||se,[(0,kn.getColorClassName)("background-color",ae)]:!!ae}),"aria-describedby":ge,"aria-invalid":Pe,style:{color:!be&&Te,backgroundColor:!ae&&se},onKeyDown:ue}),me=(0,kn.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:kTe,directInsert:!0,renderAppender:!1}),ct=!p&&!(Y&&ee)||le||oe||Y&&!ee;ct&&(et.onClick=()=>{y(!0)});let Ne=T("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":ct}),ie=CTe(d),Ee=GS();return(0,yr.jsxs)(yr.Fragment,{children:[(0,yr.jsx)(kn.BlockControls,{children:(0,yr.jsxs)(g_.ToolbarGroup,{children:[(0,yr.jsx)(g_.ToolbarButton,{name:"link",icon:wi,title:(0,Os.__)("Link"),shortcut:s6.displayShortcut.primary("k"),onClick:()=>{y(!0)}}),!A&&(0,yr.jsx)(g_.ToolbarButton,{name:"submenu",icon:Xp,title:(0,Os.__)("Add submenu"),onClick:ce})]})}),(0,yr.jsx)(kn.InspectorControls,{group:"content",children:(0,yr.jsx)(i_,{attributes:e,setAttributes:r,clientId:l})}),(0,yr.jsxs)("div",{...et,children:[Pe&&(0,yr.jsx)(cn,{id:ge,children:Ee}),(0,yr.jsxs)("a",{className:Ne,children:[!p&&!g?.bindings?.url?(0,yr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,yr.jsx)("span",{children:ie})}):(0,yr.jsxs)(yr.Fragment,{children:[!le&&!oe&&(0,yr.jsxs)(yr.Fragment,{children:[(0,yr.jsx)(kn.RichText,{ref:I,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:ve=>r({label:ve}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:o?()=>o((0,i6.createBlock)("core/navigation-link")):void 0,"aria-label":(0,Os.__)("Navigation link text"),placeholder:N,withoutInteractiveFormatting:!0}),m&&(0,yr.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]}),(le||oe)&&(0,yr.jsx)(s_,{label:u,isInvalid:le,isDraft:oe,className:"wp-block-navigation-link__label"})]}),k&&(0,yr.jsx)(Mu,{ref:B,clientId:l,link:e,entity:{entityRecord:te,hasBinding:Y,isEntityAvailable:ee},onClose:()=>{if(y(!1),!p&&!Y&&i){i([]);return}if(L.current&&(L.current=!1,S.current?.nextElementSibling)){let ve=S.current.nextElementSibling.querySelector(".block-editor-button-block-appender");ve&&ve.focus()}},anchor:w,onRemove:pe,onChange:Q})]}),(0,yr.jsx)("div",{...me})]})]})}var ise=a(R(),1),sse=a(b(),1);function lse(){return(0,sse.jsx)(ise.InnerBlocks.Content,{})}function STe(e){switch(e){case"post":return Kv;case"page":return lu;case"tag":return vy;case"category":return ud;default:return SE}}function cse(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let r=(n,i)=>n.type===i.type,o=e.variations.map(n=>({...n,...!n.icon&&{icon:STe(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var wn=a(K(),1),TTe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,wn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,wn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,wn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,wn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,wn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,wn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,wn.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,wn.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,wn.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,wn.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,wn.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,wn.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,wn.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,wn.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:n})=>(0,wn.createBlock)("core/buttons",{},[(0,wn.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:n?"_blank":void 0})])}]},use=TTe;var cz=a(D(),1);var PTe=[{name:"custom-link",title:(0,cz.__)("Custom Link"),description:(0,cz.__)("Add a custom link to your navigation."),icon:im,attributes:{kind:"custom"},isActive:e=>e.kind==="custom",isDefault:!0,scope:["inserter"]}],dse=PTe;var{fieldsKey:ETe,formKey:BTe}=q(mse.privateApis),{name:fse}=a6,u6={icon:im,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,gp.sprintf)((0,gp._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:lz,save:lse,example:{attributes:{label:(0,gp._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:ase,transforms:use,variations:dse};window.__experimentalContentOnlyInspectorFields&&(u6[ETe]=[{id:"label",label:(0,gp.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,gp.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],u6[BTe]={fields:["label","link"]});var NTe=()=>((0,pse.addFilter)("blocks.registerBlockType","core/navigation-link",cse),M({name:fse,metadata:a6,settings:u6}));var pz={};J(pz,{init:()=>ATe,metadata:()=>d6,name:()=>Sse,settings:()=>v6});var v_=a(D(),1),Cse=a(K(),1);var d6={$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 m6=a(O(),1),h_=a(V(),1),f6=a(uc(),1),R0=a(D(),1),mo=a(R(),1),g6=a(dr(),1),jl=a(H(),1);var vse=a(Uy(),1),yse=a(K(),1),h6=a(he(),1);var p6=a(V(),1),dz=a(b(),1),gse=()=>(0,dz.jsx)(p6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,dz.jsx)(p6.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var qr=a(b(),1),hse=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function bse({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:n,context:i,clientId:s}){let{label:l,url:c,description:u,kind:d,type:p,id:m}=e,{showSubmenuIcon:f,maxNestingLevel:g,submenuVisibility:h}=i,x=(0,mo.useBlockEditingMode)()!=="default"?!0:h==="click",{hasUrlBinding:_,isBoundEntityAvailable:k,entityRecord:y}=Yi({clientId:s,attributes:e}),w=Df({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:C,replaceBlock:S}=(0,m6.useDispatch)(mo.store),[P,N]=(0,jl.useState)(!1),[I,B]=(0,jl.useState)(null),E=(0,jl.useRef)(null),L=c_(E),A=(0,R0.__)("Add text\u2026"),U=(0,jl.useRef)(),{parentCount:$,isParentOfSelectedBlock:W,isImmediateParentOfSelectedBlock:G,hasChildren:F,selectedBlockHasChildren:Z,onlyDescendantIsEmptyLink:j}=(0,m6.useSelect)(me=>{let{hasSelectedInnerBlock:ct,getSelectedBlockClientId:Ne,getBlockParentsByBlockName:ie,getBlock:Ee,getBlockCount:ve,getBlockOrder:Xt}=me(mo.store),Gt,br=Ne(),wo=Xt(br);if(wo?.length===1){let In=Ee(wo[0]);Gt=In?.name==="core/navigation-link"&&!In?.attributes?.label}return{parentCount:ie(s,"core/navigation-submenu").length,isParentOfSelectedBlock:ct(s,!0),isImmediateParentOfSelectedBlock:ct(s,!1),hasChildren:!!ve(s),selectedBlockHasChildren:!!wo?.length,onlyDescendantIsEmptyLink:Gt}},[s]),Y=l_(s),ee=(0,h6.usePrevious)(F),[te,Q]=Af(d,p,m,Y);(0,jl.useEffect)(()=>{!x&&!c&&N(!0)},[]),(0,jl.useEffect)(()=>{t||N(!1)},[t]),(0,jl.useEffect)(()=>{P&&c&&(0,g6.isURL)((0,g6.prependHTTP)(l))&&/^.+\.[a-z]+/.test(l)&&u_(U)},[c]);let{textColor:le,customTextColor:oe,backgroundColor:ce,customBackgroundColor:pe}=Pf(i,$>0);function be(me){f6.isKeyboardEvent.primary(me,"k")&&(me.preventDefault(),me.stopPropagation(),N(!0))}let Te=(0,mo.useBlockProps)({ref:(0,h6.useMergeRefs)([B,E]),className:T("wp-block-navigation-item",{"is-editing":t||W,"is-dragging-within":L,"has-link":!!c,"has-child":F,"has-text-color":!!le||!!oe,[(0,mo.getColorClassName)("color",le)]:!!le,"has-background":!!ce||pe,[(0,mo.getColorClassName)("background-color",ce)]:!!ce,"open-on-click":x,"open-always":h==="always"}),style:{color:!le&&oe,backgroundColor:!ce&&pe},onKeyDown:be}),ae=Pf(i,!0),se=$>=g?hse.filter(me=>me!=="core/navigation-submenu"):hse,ue=vS(ae),Oe=(0,mo.useInnerBlocksProps)(ue,{allowedBlocks:se,defaultBlock:$i,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||G&&!Z||F?mo.InnerBlocks.ButtonBlockAppender:!1}),Pe=x?"button":"a";function ge(){let me=(0,yse.createBlock)("core/navigation-link",e);S(s,me)}(0,jl.useEffect)(()=>{!F&&ee&&(C(),ge())},[F,ee]);let et=!Z||j;return(0,qr.jsxs)(qr.Fragment,{children:[(0,qr.jsx)(mo.BlockControls,{children:(0,qr.jsxs)(h_.ToolbarGroup,{children:[!x&&(0,qr.jsx)(h_.ToolbarButton,{name:"link",icon:wi,title:(0,R0.__)("Link"),shortcut:f6.displayShortcut.primary("k"),onClick:()=>{N(!0)}}),(0,qr.jsx)(h_.ToolbarButton,{name:"revert",icon:FN,title:(0,R0.__)("Convert to Link"),onClick:ge,className:"wp-block-navigation__submenu__revert",disabled:!et})]})}),(0,qr.jsx)(mo.InspectorControls,{group:"content",children:(0,qr.jsx)(i_,{attributes:e,setAttributes:r,clientId:s,isLinkEditable:!x})}),(0,qr.jsxs)("div",{...Te,children:[(0,qr.jsxs)(Pe,{className:"wp-block-navigation-item__content",children:[!te&&!Q&&(0,qr.jsxs)(qr.Fragment,{children:[(0,qr.jsx)(mo.RichText,{ref:U,identifier:"label",className:"wp-block-navigation-item__label",value:l,onChange:me=>r({label:me}),onMerge:o,onReplace:n,"aria-label":(0,R0.__)("Navigation link text"),placeholder:A,withoutInteractiveFormatting:!0,onClick:()=>{!x&&!c&&N(!0)}}),u&&(0,qr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(te||Q)&&(0,qr.jsx)(s_,{label:l,isInvalid:te,isDraft:Q,className:"wp-block-navigation-item__label"}),!x&&P&&(0,qr.jsx)(Mu,{clientId:s,link:e,entity:{entityRecord:y,hasBinding:_,isEntityAvailable:k},onClose:()=>{N(!1)},anchor:I,onRemove:()=>{r({url:""}),(0,vse.speak)((0,R0.__)("Link removed."),"assertive")},onChange:w})]}),(f||x)&&(0,qr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,qr.jsx)(gse,{})}),(0,qr.jsx)("div",{...Oe})]})]})}var _se=a(R(),1),xse=a(b(),1);function kse(){return(0,xse.jsx)(_se.InnerBlocks.Content,{})}var Mf=a(K(),1),RTe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,Mf.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Mf.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Mf.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Mf.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Mf.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Mf.createBlock)("core/search")}]},wse=RTe;var{fieldsKey:DTe,formKey:LTe}=q(Cse.privateApis),{name:Sse}=d6,v6={icon:({context:e})=>e==="list-view"?lu:Xp,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:bse,example:{attributes:{label:(0,v_._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:kse,transforms:wse};window.__experimentalContentOnlyInspectorFields&&(v6[DTe]=[{id:"label",label:(0,v_.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,v_.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],v6[LTe]={fields:["label","link"]});var ATe=()=>M({name:Sse,metadata:d6,settings:v6});var fz={};J(fz,{init:()=>VTe,metadata:()=>y6,name:()=>Lse,settings:()=>Ase});var Tse=a(D(),1),Pse=a(R(),1),mz=a(b(),1);function Ese(){return(0,mz.jsx)("div",{...(0,Pse.useBlockProps)(),children:(0,mz.jsx)("span",{children:(0,Tse.__)("Page break")})})}var y6={$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 Bse=a(H(),1),Nse=a(b(),1);function Ise(){return(0,Nse.jsx)(Bse.RawHTML,{children:"<!--nextpage-->"})}var Rse=a(K(),1),zTe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,Rse.createBlock)("core/nextpage",{})}}]},Dse=zTe;var{name:Lse}=y6,Ase={icon:ZB,example:{},transforms:Dse,edit:Ese,save:Ise},VTe=()=>M({name:Lse,metadata:y6,settings:Ase});var hz={};J(hz,{init:()=>OTe,metadata:()=>b6,name:()=>Fse,settings:()=>Ose});var Vse=a(Ad(),1);var D0=a(R(),1),Vc=a(V(),1),zu=a(D(),1);var Ba=a(b(),1);function Mse({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",s=o||(0,zu.__)("Close"),l=(0,D0.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=X();return(0,Ba.jsxs)(Ba.Fragment,{children:[(0,Ba.jsx)(D0.InspectorControls,{children:(0,Ba.jsx)(Vc.__experimentalToolsPanel,{label:(0,zu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,Ba.jsx)(Vc.__experimentalToolsPanelItem,{label:(0,zu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,Ba.jsxs)(Vc.__experimentalToggleGroupControl,{label:(0,zu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,children:[(0,Ba.jsx)(Vc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,zu.__)("Icon")}),(0,Ba.jsx)(Vc.__experimentalToggleGroupControlOption,{value:"text",label:(0,zu.__)("Text")}),(0,Ba.jsx)(Vc.__experimentalToggleGroupControlOption,{value:"both",label:(0,zu.__)("Both")})]})})})}),(0,Ba.jsxs)("button",{...l,type:"button","aria-label":i?void 0:(0,zu.__)("Close"),children:[n&&(0,Ba.jsx)(pa,{icon:rm}),i&&(0,Ba.jsx)(D0.RichText,{identifier:"text",value:s,onChange:u=>t({text:u}),tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var b6={$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 _6=a(z(),1),gz=a(b(),1),zse=(0,gz.jsx)(_6.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,gz.jsx)(_6.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:Fse}=b6,Ose={icon:zse,edit:Mse},OTe=()=>((0,Vse.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:m_()),M({name:Fse,metadata:b6,settings:Ose}));var yz={};J(yz,{init:()=>GTe,metadata:()=>x6,name:()=>qse,settings:()=>Zse});var x6={$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 Wse=a(K(),1),hp=a(O(),1),w6=a(H(),1),vp=a(R(),1),Gse=a(ne(),1),C6=a(D(),1);var Hse=a(O(),1),vz=new WeakMap;function jse(){let e=(0,Hse.useRegistry)();if(!vz.has(e)){let t=new Map;vz.set(e,jTe.bind(null,t))}return vz.get(e)}function jTe(e,{name:t,blocks:r}){let o=[...r];for(;o.length;){let n=o.shift();for(let i of n.innerBlocks??[])o.unshift(i);n.name==="core/pattern"&&UTe(e,t,n.attributes.slug)}}function UTe(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),Use(e,t))throw new TypeError(`Pattern $t} has a circular dependency and cannot be rendered.`)}function Use(e,t,r=new Set,o=new Set){r.add(t),o.add(t);let n=e.get(t)??new Set;for(let i of n)if(r.has(i)){if(o.has(i))return!0}else if(Use(e,i,r,o))return!0;return o.delete(t),!1}var k6=a(b(),1),WTe=({attributes:e,clientId:t})=>{let r=(0,hp.useRegistry)(),o=(0,hp.useSelect)(h=>h(vp.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,hp.useSelect)(h=>h(Gse.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,hp.useDispatch)(vp.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,hp.useSelect)(vp.store),[d,p]=(0,w6.useState)(!1),m=jse();function f(h){return h.innerBlocks.find(v=>v.name==="core/template-part")&&(h.innerBlocks=h.innerBlocks.map(v=>(v.name==="core/template-part"&&v.attributes.theme===void 0&&(v.attributes.theme=n),v))),h.name==="core/template-part"&&h.attributes.theme===void 0&&(h.attributes.theme=n),h}(0,w6.useEffect)(()=>{if(!d&&o?.blocks){try{m(o)}catch{p(!0);return}window.queueMicrotask(()=>{let h=c(t),v=o.blocks.map(_=>(0,Wse.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 x=u(h);r.batch(()=>{l(),s(h,"default"),l(),i(t,v),l(),s(h,x)})})}},[t,d,o,l,i,u,s,c]);let g=(0,vp.useBlockProps)();return d?(0,k6.jsx)("div",{...g,children:(0,k6.jsx)(vp.Warning,{children:(0,C6.sprintf)((0,C6.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,k6.jsx)("div",{...g})},$se=WTe;var{name:qse}=x6,Zse={edit:$se},GTe=()=>M({name:qse,metadata:x6,settings:Zse});var _z={};J(_z,{init:()=>QTe,metadata:()=>S6,name:()=>nle,settings:()=>ale});var S6={$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 tle=a(K(),1),Yn=a(R(),1),en=a(V(),1),Ao=a(D(),1),yp=a(H(),1),rle=a(ne(),1),T6=a(O(),1);var bz=a(K(),1),Kse=a(O(),1),Yse=a(R(),1);function qTe(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:n,title:i,link:s,type:l,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,bz.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:s,type:l,kind:t,metadata:{bindings:S0(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):o.push(r[n])}),o}function Qse(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=Qse(r.innerBlocks,t);if(o)return o}}return null}function ZTe(e=[],t=null){let r=qTe(e);if(t){let n=Qse(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let o=n=>{n.forEach((i,s,l)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let d=(0,bz.createBlock)("core/navigation-submenu",c,u);l[s]=d}})};return o(r),r}function Xse({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:n,selectBlock:i}=(0,Kse.useDispatch)(Yse.store);return()=>{let s=ZTe(t,o);n(e,s),i(r)}}var Ht=a(b(),1),Jse=100,ele=()=>{};function KTe({isBusy:e,onConfirm:t,onCancel:r}){return(0,Ht.jsx)(en.__experimentalConfirmDialog,{isOpen:!0,title:(0,Ao.__)("Detach Page List"),__experimentalHideHeader:!1,confirmButtonText:(0,Ao.__)("Detach"),onConfirm:t,onCancel:r,isBusy:e,size:"medium",children:(0,Ao.__)("This Navigation Menu displays your website's pages. Detaching will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.")})}function YTe({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:n,parentPageID:i}){if(!r)return(0,Ht.jsx)("div",{...e,children:(0,Ht.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,Ht.jsx)(en.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,Ht.jsx)("div",{...e,children:(0,Ht.jsx)(en.Notice,{status:"warning",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,Ht.jsx)("div",{...e,children:(0,Ht.jsx)(en.Notice,{status:"info",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let s=n.find(l=>l.id===i);return s?.title?.rendered?(0,Ht.jsx)("div",{...e,children:(0,Ht.jsx)(Yn.Warning,{children:(0,Ao.sprintf)((0,Ao.__)('Page List: "%s" page has no children.'),s.title.rendered)})}):(0,Ht.jsx)("div",{...e,children:(0,Ht.jsx)(en.Notice,{status:"warning",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,Ht.jsx)("ul",{...t})}function ole({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:n}=r,[i,s]=(0,yp.useState)(!1),l=X(),{records:c,hasResolved:u}=(0,rle.useEntityRecords)("postType","page",{per_page:Jse,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&c?.length>0&&c?.length<=Jse,p=(0,yp.useMemo)(()=>c===null?new Map:c.sort((S,P)=>S.menu_order===P.menu_order?S.title.rendered.localeCompare(P.title.rendered):S.menu_order-P.menu_order).reduce((S,P)=>{let{parent:N}=P;return S.has(N)?S.get(N).push(P):S.set(N,[P]),S},new Map),[c]),m=(0,Yn.useBlockProps)({className:T("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Yn.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Yn.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),f=(0,yp.useMemo)(function C(S=0,P=0){let N=p.get(S);return N?.length?N.reduce((I,B)=>{let E=p.has(B.id),L={value:B.id,label:"\u2014 ".repeat(P)+B.title.rendered,rawName:B.title.rendered};return I.push(L),E&&I.push(...C(B.id,P+1)),I},[]):[]},[p]),g=(0,yp.useMemo)(function C(S=n){let P=p.get(S);return P?.length?P.reduce((N,I)=>{let B=p.has(I.id),E={id:I.id,label:I.title?.rendered?.trim()!==""?I.title?.rendered:(0,Ao.__)("(no title)"),title:I.title?.rendered?.trim()!==""?I.title?.rendered:(0,Ao.__)("(no title)"),link:I.url,hasChildren:B},L=null,A=C(I.id);return L=(0,tle.createBlock)("core/page-list-item",E,A),N.push(L),N},[]):[]},[p,n]),{hasSelectedChild:h,parentClientId:v,hasDraggedChild:x,isChildOfNavigation:_}=(0,T6.useSelect)(C=>{let{getBlockParentsByBlockName:S,hasSelectedInnerBlock:P,hasDraggedInnerBlock:N}=C(Yn.store),I=S(t,"core/navigation",!0);return{isChildOfNavigation:I.length>0,hasSelectedChild:P(t,!0),hasDraggedChild:N(t,!0),parentClientId:I[0]}},[t]),k=Xse({clientId:t,pages:c,parentClientId:v,parentPageID:n}),y=(0,Yn.useInnerBlocksProps)(m,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:_?!1:"all",onInput:ele,onChange:ele,value:g}),{selectBlock:w}=(0,T6.useDispatch)(Yn.store);return(0,yp.useEffect)(()=>{(h||x)&&(s(!0),w(v))},[h,x,v,w]),(0,Ht.jsxs)(Ht.Fragment,{children:[(f.length>0||d)&&(0,Ht.jsx)(Yn.InspectorControls,{children:(0,Ht.jsxs)(en.__experimentalToolsPanel,{label:(0,Ao.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:l,children:[f.length>0&&(0,Ht.jsx)(en.__experimentalToolsPanelItem,{label:(0,Ao.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,Ht.jsx)(en.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Ao.__)("Parent"),value:n,options:f,onChange:C=>o({parentPageID:C??0}),help:(0,Ao.__)("Choose a page to show only its subpages.")})}),d&&(0,Ht.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",accessibleWhenDisabled:!0,disabled:!u,onClick:()=>s(!0),style:{gridColumn:"1 / -1",justifyContent:"center"},children:(0,Ao.__)("Detach Page List")})]})}),d&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(Yn.BlockControls,{group:"other",children:(0,Ht.jsx)(en.ToolbarButton,{title:(0,Ao.__)("Detach"),disabled:!u,onClick:()=>s(!0),children:(0,Ao.__)("Detach")})}),i&&(0,Ht.jsx)(KTe,{isBusy:!u,onConfirm:()=>{k(),s(!1)},onCancel:()=>s(!1)})]}),(0,Ht.jsx)(YTe,{blockProps:m,innerBlocksProps:y,hasResolvedPages:u,blockList:g,pages:c,parentPageID:n})]})}var{name:nle}=S6,ale={icon:KB,example:{},edit:ole},QTe=()=>M({name:nle,metadata:S6,settings:ale});var Sz={};J(Sz,{init:()=>ePe,metadata:()=>P6,name:()=>lle,settings:()=>cle});var P6={$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 B6=a(R(),1),ile=a(O(),1),wz=a(ne(),1),Cz=a(da(),1);var E6=a(V(),1),xz=a(b(),1),kz=()=>(0,xz.jsx)(E6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,xz.jsx)(E6.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Na=a(b(),1);function JTe(){return(0,ile.useSelect)(e=>{if(!e(wz.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(wz.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function sle({context:e,attributes:t}){let{id:r,label:o,link:n,hasChildren:i,title:s}=t,l="showSubmenuIcon"in e,c=JTe(),u=e.submenuVisibility,d=u==="click",p=Pf(e,!0),m=vS(p),f=(0,B6.useBlockProps)(m,{className:"wp-block-pages-list__item"}),g=(0,B6.useInnerBlocksProps)(f);return(0,Na.jsxs)("li",{className:T("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":l,"open-on-click":d,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&d?(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,Cz.safeHTML)(o)}}),(0,Na.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Na.jsx)(kz,{})})]}):(0,Na.jsx)("a",{className:T("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":l}),href:n,dangerouslySetInnerHTML:{__html:(0,Cz.safeHTML)(s)}}),i&&(0,Na.jsxs)(Na.Fragment,{children:[!d&&e.showSubmenuIcon&&(0,Na.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,Na.jsx)(kz,{})}),(0,Na.jsx)("ul",{...g})]})]},r)}var{name:lle}=P6,cle={__experimentalLabel:({label:e})=>e,icon:lu,example:{},edit:sle},ePe=()=>M({name:lle,metadata:P6,settings:cle});var Iz={};J(Iz,{init:()=>uPe,metadata:()=>V0,name:()=>M6,settings:()=>A6});var L6=a(D(),1);var Ele=a(K(),1);var ule=a(H(),1),Mo=a(R(),1),Tz=a(D(),1),Fc=a(b(),1),L0={className:!1},Pz={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"}},N6=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:n,...i}=e;return{...i,style:t}},A0=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:evt,...y_}=Pz,tPe=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:Pz,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:n}=e,i=T({"has-drop-cap":t===((0,Tz.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-$t}`]:t});return(0,Fc.jsx)("p",{...Mo.useBlockProps.save({className:i,dir:n}),children:(0,Fc.jsx)(Mo.RichText.Content,{value:r})})},migrate:A0},{supports:L0,attributes:{...y_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:A0,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=T({"has-drop-cap":t===((0,Tz.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-$t}`]:t});return(0,Fc.jsx)("p",{...Mo.useBlockProps.save({className:i,dir:n}),children:(0,Fc.jsx)(Mo.RichText.Content,{value:r})})}},{supports:L0,attributes:{...y_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return N6(A0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u,direction:d}=e,p=(0,Mo.getColorClassName)("color",i),m=(0,Mo.getColorClassName)("background-color",n),f=(0,Mo.getFontSizeClass)(c),g=T({"has-text-color":i||l,"has-background":n||s,"has-drop-cap":o,[`has-text-align-$t}`]:t,[f]:f,[p]:p,[m]:m}),h={backgroundColor:m?void 0:s,color:p?void 0:l,fontSize:f?void 0:u};return(0,Fc.jsx)(Mo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:d})}},{supports:L0,attributes:{...y_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return N6(A0(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l,fontSize:c,customFontSize:u,direction:d}=e,p=(0,Mo.getColorClassName)("color",i),m=(0,Mo.getColorClassName)("background-color",n),f=(0,Mo.getFontSizeClass)(c),g=T({"has-text-color":i||l,"has-background":n||s,"has-drop-cap":o,[f]:f,[p]:p,[m]:m}),h={backgroundColor:m?void 0:s,color:p?void 0:l,fontSize:f?void 0:u,textAlign:t};return(0,Fc.jsx)(Mo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:d})}},{supports:L0,attributes:{...y_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return N6(A0(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:s,customBackgroundColor:l,customTextColor:c,fontSize:u,customFontSize:d}=e,p=(0,Mo.getColorClassName)("color",s),m=(0,Mo.getColorClassName)("background-color",i),f=u&&`is-$u}-text`,g=T({[`align$t}`]:t,"has-background":i||l,"has-drop-cap":n,[f]:f,[p]:p,[m]:m}),h={backgroundColor:m?void 0:l,color:p?void 0:c,fontSize:f?void 0:d,textAlign:r};return(0,Fc.jsx)(Mo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:L0,attributes:{...y_,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:s,fontSize:l}=e,c=T({[`align$t}`]:t,"has-background":i,"has-drop-cap":n});return(0,Fc.jsx)("p",{style:{backgroundColor:i,color:s,fontSize:l,textAlign:r},className:c||void 0,children:o})},migrate(e){return N6(A0({...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:L0,attributes:{...Pz,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Fc.jsx)(ule.RawHTML,{children:e.content})},migrate:e=>e}],dle=tPe;var si=a(D(),1),z0=a(V(),1),Qn=a(R(),1),xle=a(O(),1),kle=a(K(),1);var ple=a(H(),1),mle=a(he(),1),fle=a(hl(),1),M0=a(O(),1),Ez=a(R(),1),Vu=a(K(),1);var{subscribeOwnedListener:rPe}=q(fle.privateApis);function gle(e){let{batch:t}=(0,M0.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:n}=(0,M0.useDispatch)(Ez.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,canInsertBlockType:d}=(0,M0.useSelect)(Ez.store),p=(0,ple.useRef)(e);return p.current=e,(0,mle.useRefEffect)(m=>{function f(g){if(g.defaultPrevented||g.inputType!=="insertParagraph")return;let{content:h,clientId:v}=p.current;if(h.length)return;let x=i(v);if(!(0,Vu.hasBlockSupport)(c(x),"__experimentalOnEnter",!1))return;let _=l(x),k=_.indexOf(v);if(k===_.length-1){let B=x;for(;!d(c(v),i(B));)B=i(B);typeof B=="string"&&(g.preventDefault(),r([v],x,i(B),s(B)+1));return}let y=(0,Vu.getDefaultBlockName)(),w=c(x),C=i(x);if(!d(y,C)||!d(w,C))return;g.preventDefault();let S=u(x),P=(0,Vu.cloneBlock)({...S,innerBlocks:S.innerBlocks.slice(0,k)}),N=(0,Vu.createBlock)(y),I=(0,Vu.cloneBlock)({...S,innerBlocks:S.innerBlocks.slice(k+1)});t(()=>{o(x,[P,N,I]),n(N.clientId)})}return rPe(m,"beforeinput",f,!0)},[])}var hle=a(he(),1),I6=a(H(),1),vle=a(Lm(),1),yle=a(O(),1),ble=a(R(),1);function _le(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,yle.useDispatch)(ble.store),n=(0,hle.useEvent)(()=>{(0,vle.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,I6.useRef)();(0,I6.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var Ji=a(b(),1);function oPe({direction:e,setDirection:t}){return(0,si.isRTL)()&&(0,Ji.jsx)(z0.ToolbarButton,{icon:$E,title:(0,si._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function Bz(e){return e===((0,si.isRTL)()?"left":"right")||e==="center"}function nPe({clientId:e,attributes:t,setAttributes:r,name:o}){let[n]=(0,Qn.useSettings)("typography.dropCap"),i=(0,xle.useSelect)(p=>{let{hasSelectedStyleState:m}=q(p(Qn.store));return m(e)},[e]);if(!n||i)return null;let{style:s,dropCap:l}=t,c=s?.typography?.textAlign,u;Bz(c)?u=(0,si.__)("Not available for aligned text."):l?u=(0,si.__)("Showing large initial letter."):u=(0,si.__)("Show a large initial letter.");let d=(0,kle.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,Ji.jsx)(Qn.InspectorControls,{group:"typography",children:(0,Ji.jsx)(z0.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,si.__)("Drop cap"),isShownByDefault:d,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,Ji.jsx)(z0.ToggleControl,{label:(0,si.__)("Drop cap"),checked:!!l,onChange:()=>r({dropCap:!l}),help:u,disabled:Bz(c)})})})}function aPe({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:n,clientId:i,isSelected:s,name:l}){let{content:c,direction:u,dropCap:d,placeholder:p,style:m}=e,f=m?.typography?.textAlign;_le(e.align,m,n);let g=(0,Qn.useBlockProps)({ref:gle({clientId:i,content:c}),className:T({"has-drop-cap":Bz(f)?!1:d}),style:{direction:u},"aria-label":Qn.RichText.isEmpty(c)?(0,si.__)("Empty block; start writing or type forward slash to choose a block"):(0,si.__)("Block: Paragraph")}),h=(0,Qn.useBlockEditingMode)();return(0,Ji.jsxs)(Ji.Fragment,{children:[h==="default"&&(0,Ji.jsx)(Qn.BlockControls,{group:"block",children:(0,Ji.jsx)(oPe,{direction:u,setDirection:v=>n({direction:v})})}),s&&(0,Ji.jsx)(nPe,{name:l,clientId:i,attributes:e,setAttributes:n}),(0,Ji.jsx)(Qn.RichText,{identifier:"content",tagName:"p",...g,value:c,onChange:v=>n({content:v}),onMerge:t,onReplace:r,onRemove:o,"data-empty":Qn.RichText.isEmpty(c),placeholder:p||(0,si.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var wle=aPe;var V0={$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,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 R6=a(R(),1),Cle=a(D(),1),Nz=a(b(),1);function Sle({attributes:e}){let{content:t,dropCap:r,direction:o,style:n}=e,i=n?.typography?.textAlign,s=T({"has-drop-cap":i===((0,Cle.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,Nz.jsx)("p",{...R6.useBlockProps.save({className:s,dir:o}),children:(0,Nz.jsx)(R6.RichText.Content,{value:t})})}var D6=a(K(),1);var{name:Tle}=V0,sPe={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,D6.getBlockAttributes)(Tle,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,D6.createBlock)(Tle,t)}}]},Ple=sPe;var{fieldsKey:lPe,formKey:cPe}=q(Ele.privateApis),{name:M6}=V0,A6={icon:YB,example:{attributes:{content:(0,L6.__)("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,L6.__)("Empty"):o}},transforms:Ple,deprecated:dle,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:wle,save:Sle};window.__experimentalContentOnlyInspectorFields&&(A6[lPe]=[{id:"content",label:(0,L6.__)("Content"),type:"text",Edit:"rich-text"}],A6[cPe]={fields:["content"]});var uPe=()=>M({name:M6,metadata:V0,settings:A6});var Kz={};J(Kz,{init:()=>lEe,metadata:()=>z6,name:()=>hce,settings:()=>vce});var z6={$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 fo=a(H(),1),Lr=a(R(),1),Cr=a(V(),1),__=a(O(),1),uce=a(xr(),1),gt=a(D(),1);var Zz=a(K(),1),dce=a(Or(),1);var Hc=a(H(),1),j6=a(he(),1),b_=a(D(),1);function jle(e){let t=-1/0;for(let r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return t}function Oc(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ble(e){return Oc(typeof e=="number"?`$e}px`:e)}function pPe(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 zo(e,t=0,r=1){return Math.max(t,Math.min(e,r))}function F6(e,t=null,r={}){let{min:o=-1/0,max:n=1/0,integer:i=!1}=r,s=typeof e=="number"?e:typeof e=="string"&&e.trim()!==""?Number(e):NaN;if(!Number.isFinite(s))return t;let l=zo(s,o,n);return i?Math.round(l):l}function Vz(e,t=null){if(Array.isArray(e))return e;if(typeof e=="string"&&e.trim().startsWith("["))try{let r=JSON.parse(e);if(Array.isArray(r))return r}catch{}return t}function Fz(e,t={}){let{min:r=-1/0,max:o=1/0,fallback:n=null}=t,i=Vz(e);if(!i&&typeof e=="string"&&e.trim()!==""&&(i=e.split(/[,\s]+/)),!i)return n;let s=i.map(l=>F6(l)).filter(l=>l!==null&&l>=r&&l<=o);return s.length?s:n}function mPe(e,t,r=null){return t.includes(e)?e:r}function fPe(e){if(typeof e=="string"){let t=e.trim().toLowerCase();return t!==""&&t!=="false"&&t!=="0"}return!!e}function gPe(e){return e===void 0?void 0:e==="true"}function Nle(e){if(typeof e=="string"&&e.trim().startsWith("["))try{return JSON.parse(e)}catch{}return e}function Ule(e){let t={},r=(s,l=s)=>{let c=gPe(e.dataset[l]);c!==void 0&&(t[s]=c)},o=(s,l=s,c=!1)=>{let u=e.dataset[l];u&&(t[s]=c?parseFloat(u):parseInt(u,10))},n=(s,l=s)=>{let c=e.dataset[l];c&&(t[s]=/^\d+(\.\d+)?$/.test(c.trim())?parseFloat(c):c)},i=(s,l=s)=>{let c=e.dataset[l];if(!c)return;let u=Vz(c);u?t[s]=u:console.warn(`[WaveformPlayer] Invalid $l} attribute, expected a JSON array:`,c)};if(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),n("buttonSize"),n("buttonRadius"),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=Nle(e.dataset.waveformColor)),e.dataset.progressColor&&(t.progressColor=Nle(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"),e.dataset.playbackRates){let s=Fz(e.dataset.playbackRates);s?t.playbackRates=s:console.warn("[WaveformPlayer] Invalid playbackRates attribute:",e.dataset.playbackRates)}return 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),t}function hPe(e,...t){let r=0;return e.replace(/%(?:(\d+)\$)?s/g,(o,n)=>{let i=n?Number(n)-1:r++;return t[i]??o})}function Fu(e){let t=Number(e);if(!t||!Number.isFinite(t)||t<0)return"0:00";let r=Math.floor(t/3600),o=Math.floor(t%3600/60),n=Math.floor(t%60);return r>0?`$r}:$o.toString().padStart(2,"0")}:$n.toString().padStart(2,"0")}`:`$o}:$n.toString().padStart(2,"0")}`}var vPe=0;function yPe(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)}_${(vPe++).toString(36)}`}function Wle(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 Gle(e){if(typeof e!="string")return null;let t=e.match(/rgba?\(\s*([\d.]+)\s*[,\s]\s*([\d.]+)\s*[,\s]\s*([\d.]+)\s*(?:[,/]\s*([\d.]+)(%?))?/i);if(!t)return null;let r=Number(t[1]),o=Number(t[2]),n=Number(t[3]);if(!Number.isFinite(r)||!Number.isFinite(o)||!Number.isFinite(n))return null;let i=t[4]===void 0?1:Number(t[4]);return Number.isFinite(i)?(t[5]==="%"&&(i/=100),{r,g:o,b:n,a:zo(i,0,1)}):null}function bPe(e){let t=Gle(e);return!t||t.a<=0?null:(t.r*299+t.g*587+t.b*114)/1e3}function Ile(...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 _Pe(e,t){let r;return function(...o){let n=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(n,t)}}function O6(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 n=0;n<t;n++){let i=n*o,s=Math.floor(i),l=Math.ceil(i),c=i-s;if(l>=e.length)r.push(e[e.length-1]);else if(s===l)r.push(e[s]);else{let u=e[s]*(1-c)+e[l]*c;r.push(u)}}}else{let o=e.length/t;for(let n=0;n<t;n++){let i=Math.floor(n*o),s=Math.floor((n+1)*o),l=0,c=0;for(let u=i;u<=s&&u<e.length;u++)e[u]>l&&(l=e[u]),c++;if(c===0){let u=Math.min(Math.round(n*o),e.length-1);l=e[u]}r.push(l)}}return r}function Ul(e,t,r,o){if(!Array.isArray(t))return t;if(t.length<2)return t[0];let n=r.width,i=r.height,s=o&&o.waveformGradient,[l,c,u,d]=s==="horizontal"?[0,0,n,0]:s==="diagonal"?[0,0,n,i]:[0,0,0,i];try{let p=e.createLinearGradient(l,c,u,d);return t.forEach((m,f)=>p.addColorStop(f/(t.length-1),m)),p}catch{return t[0]}}function F0(e,t,r,o,n,i){if((Array.isArray(i)?i.some(s=>s>0):i>0)&&typeof e.roundRect=="function"){let s=Math.min(o/2,Math.abs(n)/2),l=c=>zo(c,0,s);e.beginPath(),e.roundRect(t,r,o,n,Array.isArray(i)?i.map(l):l(i)),e.fill()}else e.fillRect(t,r,o,n)}function $le(e,t){return(e.barRadius||0)*t}function xPe(e,t){let r=$le(e,t);return[r,r,0,0]}function Rle(e,t,r,o,n){let i=n/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 Rz(e,t,r,o,n){let i=window.devicePixelRatio||1,s=n.barWidth*i,l=n.barSpacing*i,c=Math.floor(t.width/(s+l)),u=O6(r,c),d=t.height,p=o*t.width,m=xPe(n,i),f=Ul(e,n.color,t,n),g=Ul(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=f;for(let h=0;h<u.length;h++){let v=h*(s+l);if(v+s>t.width)break;let x=u[h]*d*.9,_=d-x;F0(e,v,_,s,x,m)}e.save(),e.beginPath(),e.rect(0,0,p,d),e.clip(),e.fillStyle=g;for(let h=0;h<u.length;h++){let v=h*(s+l);if(v>p)break;let x=u[h]*d*.9,_=d-x;F0(e,v,_,s,x,m)}e.restore()}function kPe(e,t,r,o,n){let i=window.devicePixelRatio||1,s=n.barWidth*i,l=n.barSpacing*i,c=Math.floor(t.width/(s+l)),u=O6(r,c),d=t.height,p=d/2,m=o*t.width,f=$le(n,i),g=[f,f,0,0],h=[0,0,f,f],v=Ul(e,n.color,t,n),x=Ul(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=v;for(let _=0;_<u.length;_++){let k=_*(s+l);if(k+s>t.width)break;let y=u[_]*d*.45;F0(e,k,p-y,s,y,g),F0(e,k,p,s,y,h)}e.save(),e.beginPath(),e.rect(0,0,m,d),e.clip(),e.fillStyle=x;for(let _=0;_<u.length;_++){let k=_*(s+l);if(k>m)break;let y=u[_]*d*.45;F0(e,k,p-y,s,y,g),F0(e,k,p,s,y,h)}e.restore()}function wPe(e,t,r,o,n){let i=t.width,s=t.height,l=s/2,c=s*.35;e.clearRect(0,0,i,s);let u=(d,p,m=1,f=!1)=>{let g=Ul(e,d,t,n),h=Array.isArray(d)?d[d.length-1]:d;f&&(e.shadowBlur=12,e.shadowColor=h),e.strokeStyle=g,e.lineWidth=p,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,l);let v=[],x=Math.floor(r.length*m);for(let _=0;_<x;_++){let k=_/(r.length-1)*i,y=r[_],w=Math.sin(_*.1)*y,C=l+w*c;v.push({x:k,y:C})}for(let _=0;_<v.length-1;_++){let k=v[_].x+(v[_+1].x-v[_].x)*.5,y=v[_].y,w=v[_+1].x-(v[_+1].x-v[_].x)*.5,C=v[_+1].y;e.bezierCurveTo(k,y,w,C,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,l),e.lineTo(i,l),e.stroke();for(let d=0;d<=10;d++){let p=i/10*d;e.beginPath(),e.moveTo(p,0),e.lineTo(p,s),e.stroke()}u(n.color,2,1,!1),o>0&&u(n.progressColor,3,o,!0)}function Dle(e,t,r,o,n){let i=window.devicePixelRatio||1,s=(n.barWidth||3)*i,l=(n.barSpacing||1)*i,c=Math.floor(t.width/(s+l)),u=O6(r,c),d=t.height,p=4*i,m=2*i,f=o*t.width,g=d/2,h=Ul(e,n.color,t,n),v=Ul(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let x=0;x<u.length;x++){let _=x*(s+l);if(_+s>t.width)break;let k=u[x]*d*.9,y=Math.floor(k/(p+m));e.fillStyle=_<f?v:h;for(let w=0;w<y;w++){let C=w*(p+m);e.fillRect(_,g-C-p,s,p),w>0&&e.fillRect(_,g+C,s,p)}}}function Lle(e,t,r,o,n){let i=window.devicePixelRatio||1,s=(n.barWidth||2)*i,l=(n.barSpacing||3)*i,c=Math.floor(t.width/(s+l)),u=O6(r,c),d=t.height,p=Math.max(1.5*i,s/2),m=o*t.width,f=d/2,g=Ul(e,n.color,t,n),h=Ul(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let v=0;v<u.length;v++){let x=v*(s+l)+s/2;if(x>t.width)break;let _=u[v]*d*.9;e.fillStyle=x<m?h:g,e.beginPath(),e.arc(x,f-_/2,p,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(x,f+_/2,p,0,Math.PI*2),e.fill()}}function CPe(e,t,r,o,n){let i=t.width,s=t.height,l=s/2,c=4,u=c/2,d=!!n.seekActive;if(e.clearRect(0,0,i,s),e.fillStyle=Ul(e,n.color,t,n)||"rgba(255, 255, 255, 0.2)",Rle(e,u,i,l,c),e.fill(),o>0){let p=Math.max(u*2,o*i);e.save(),e.globalAlpha=n.seekHandle&&!d?.7:1,e.fillStyle=Ul(e,n.progressColor,t,n)||"rgba(255, 255, 255, 0.9)",Rle(e,u,p,l,c),e.fill(),e.restore()}}var SPe={bars:Rz,bar:Rz,mirror:kPe,line:wPe,blocks:Dle,block:Dle,dots:Lle,dot:Lle,seekbar:CPe};function TPe(e,t,r,o,n){(SPe[n.waveformStyle]||Rz)(e,t,r,o,n)}function PPe(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=EPe(t,r);if(o.length<2)return 120;let n=[];for(let c=1;c<o.length;c++)n.push((o[c]-o[c-1])/r);let i={};n.forEach(c=>{let u=60/c,d=Math.round(u/3)*3;d>60&&d<200&&(i[d]=(i[d]||0)+1)});let s=0,l=120;for(let[c,u]of Object.entries(i))u>s&&(s=u,l=parseInt(c));return l<70&&i[l*2]?l*=2:l>160&&i[Math.round(l/2)]&&(l=Math.round(l/2)),l-1}catch(t){return console.warn("[WaveformPlayer] BPM detection failed:",t),null}}function EPe(e,t){let r=[],o=0;for(let n=0;n<e.length-2048;n+=1024){let i=0;for(let c=n;c<n+2048;c++)i+=e[c]*e[c];i=i/2048;let s=i-o,l=o*1.8+.01;if(s>l&&i>.01){let c=r[r.length-1]||0,u=t*.15;n-c>u&&r.push(n)}o=i*.8+o*.2}return r}function BPe(e,t=1800){let r=e.length/t,o=e.numberOfChannels,n=[];for(let s=0;s<o;s++){let l=e.getChannelData(s);for(let c=0;c<t;c++){let u=~~(c*r),d=~~(u+r),p=0,m=0;for(let g=u;g<d;g++){let h=l[g];h>m&&(m=h),h<p&&(p=h)}let f=Math.max(Math.abs(m),Math.abs(p));(s===0||f>n[c])&&(n[c]=f)}}let i=jle(n);return i>0?n.map(s=>s/i):n}async function Ale(e,t=1800,r=!1){let o;try{let n=window.AudioContext||window.webkitAudioContext;o=new n;let i=await(await fetch(e)).arrayBuffer(),s=await o.decodeAudioData(i),l=BPe(s,t);l=IPe(l);let c=null;return r&&(c=PPe(s)),{peaks:l,bpm:c}}finally{o&&o.close()}}function NPe(e=1800){let t=[];for(let r=0;r<e;r++){let o=Math.random()*.5+.3,n=Math.sin(r/e*Math.PI*4)*.2;t.push(zo(o+n,.1,1))}return t}function IPe(e,t=.95){let r=jle(e);if(r===0||r>t)return e;let o=t/r;return e.map(n=>n*o)}var Dz=128;function Mle(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 RPe(e){let t=0,r=0;for(let o=e;o&&o.nodeType===1&&r<.995;o=o.parentElement){let n=Gle(getComputedStyle(o).backgroundColor);if(!n||n.a<=0)continue;let i=n.a*(1-r);t+=(n.r*299+n.g*587+n.b*114)/1e3*i,r+=i}return{sum:t,alpha:r}}function DPe(){let e=bPe(getComputedStyle(document.body).color);if(e!==null)return e>Dz?"dark":"light";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"}function V6(e){if(Mle("dark"))return"dark";if(Mle("light"))return"light";try{let t=e&&e.nodeType===1?e:document.body,{sum:r,alpha:o}=RPe(t),n=DPe(),i=r+(n==="dark"?0:255)*(1-o);return i>Dz?"light":i<Dz?"dark":n}catch{return"dark"}}var O0={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 zle(e,t){if(e&&O0[e])return O0[e];let r=V6(t);return O0[r]}var Lz={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},qle={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}},Zle=["auto","top","center","bottom"],Oz=.25,Hz=4,LPe={buttonAlign:Zle,layout:["default","preview"],buttonStyle:["circle","minimal"],artworkPosition:["info","button"],waveformStyle:Object.keys(qle),waveformGradient:["vertical","horizontal","diagonal"],audioMode:["self","external"],preload:["none","metadata","auto"],colorPreset:Object.keys(O0),crossOrigin:["anonymous","use-credentials"]},APe={height:{min:1,integer:!0},samples:{min:1,integer:!0},barWidth:{min:0},barSpacing:{min:0},barRadius:{min:0},bpm:{min:1},playbackRate:{min:Oz,max:Hz}},MPe=["autoplay","showControls","showInfo","showTime","showHoverTime","seekHandle","showBPM","singlePlay","playOnSeek","enableMediaSession","showMarkers","accessibleSeek","showPlaybackSpeed"],zPe=["onLoad","onPlay","onPause","onEnd","onError","onTimeUpdate","onNextTrack","onPreviousTrack"];function Az(e,t){console.warn(`[WaveformPlayer] Invalid $e} option, using default:`,t)}function Mz(e){let t=Vz(e);return t?t.reduce((r,o)=>{let n=o&&typeof o=="object"?F6(o.time,null,{min:0}):null;return n===null?(Az("marker",o),r):(r.push({...o,time:n,label:o.label==null?"":o.label}),r)},[]):(e!=null&&Az("markers",e),[])}function Vle(e){let t=o=>e[o]!=null,r=o=>{Az(o,e[o]),e[o]=Lz[o]};for(let[o,n]of Object.entries(APe)){if(!t(o))continue;let i=F6(e[o],null,n);i===null?r(o):e[o]=i}for(let[o,n]of Object.entries(LPe))t(o)&&mPe(e[o],n)===null&&r(o);for(let o of MPe)e[o]=fPe(e[o]);for(let o of zPe)t(o)&&typeof e[o]!="function"&&r(o);if(t("playbackRates")){let o=Fz(e.playbackRates,{min:Oz,max:Hz,fallback:null});o===null?r("playbackRates"):e.playbackRates=o}e.markers=Mz(e.markers);for(let o of["buttonSize","buttonRadius"]){if(!t(o))continue;let n=e[o];(typeof n=="number"?Number.isFinite(n):typeof n=="string"&&n.trim()!=="")||r(o)}for(let o of["waveformColor","progressColor"]){if(!t(o))continue;let n=e[o];!(typeof n=="string"&&n.trim()!=="")&&!Array.isArray(n)&&r(o)}return e}var VPe="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>'),Fle=5,Ole=10,FPe='button, a[href], input, [role="slider"]',H0=class tn{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=Ule(this.container),n={...r};n.style&&!n.waveformStyle&&(n.waveformStyle=n.style),n.src&&!n.url&&(n.url=n.src),this.options=Vle(Ile(Lz,o,n));let i=zle(this.options.colorPreset,this.container);this._autoTheme=this.options.colorPreset==null||!O0[this.options.colorPreset],this._presetKeys=[],this._scheme=this.options.colorPreset&&O0[this.options.colorPreset]?this.options.colorPreset:V6(this.container);for(let[l,c]of Object.entries(i))(this.options[l]===null||this.options[l]===void 0)&&(this.options[l]=c,this._presetKeys.push(l));let s=qle[this.options.waveformStyle];s&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=s.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=s.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||yPe(this.options.url),tn.instances.set(this.id,this),tn._watchTheme();try{this.init()}catch(l){throw tn.instances.delete(this.id),this._ac.abort(),l}setTimeout(()=>{this._emit("waveformplayer:ready",{player:this,url:this.options.url})},100)}_emit(t,r,o=!1){let n=new CustomEvent(t,{bubbles:!0,cancelable:o,detail:r});return this.container.dispatchEvent(n),n}_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=Zle.includes(this.options.buttonAlign)?this.options.buttonAlign:"auto";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: $Ble(this.options.buttonSize)}`),this.options.buttonRadius!=null&&r.push(`--wfp-btn-radius: $Ble(this.options.buttonRadius)}`);let o=r.length?` style="$r.join("; ")};"`:"",n=this.options.artworkPosition==="button"&&this.options.artwork,i=n?`<img class="waveform-btn-artwork" src="$Oc(this.options.artwork)}" alt="" aria-hidden="true">`:"",s=this.options.showControls?`
  76          <button class="waveform-btn$this.options.buttonStyle==="minimal"?" waveform-btn-minimal":""}$n?" waveform-btn-has-artwork":""}" aria-label="$Oc(this.options.playPauseLabel)}"$o}>
  77            $i}
  78            <span class="waveform-icon-play">$this.options.playIcon}</span>
  79            <span class="waveform-icon-pause" style="display:none;">$this.options.pauseIcon}</span>
  80          </button>
  81          `:"",l=this.options.showInfo?`
  82        <div class="waveform-info">
  83          $this.options.artworkPosition!=="button"&&this.options.artwork?`
  84            <img class="waveform-artwork" src="$Oc(this.options.artwork)}" alt="$Oc(this.options.artworkAlt)}" style="
  85              width: 40px;
  86              height: 40px;
  87              border-radius: 4px;
  88              object-fit: cover;
  89              flex-shrink: 0;
  90            ">
  91          `:""}
  92          <div class="waveform-text">
  93            <span class="waveform-title"></span>
  94            $this.options.artist?`<span class="waveform-artist">$Oc(this.options.artist)}</span>`:""}
  95          </div>
  96          <div class="waveform-meta" style="display: flex; align-items: center; gap: 1rem;">
  97            $this.options.showBPM?`
  98              <span class="waveform-bpm" style="display: none;">
  99                <span class="bpm-value">--</span> BPM
 100              </span>
 101            `:""}
 102            $this.options.showPlaybackSpeed?`
 103              <div class="waveform-speed">
 104                <button class="speed-btn" aria-label="$Oc(this.options.speedLabel)}" aria-haspopup="menu" aria-expanded="false">
 105                  <span class="speed-value">1x</span>
 106                </button>
 107                <div class="speed-menu" role="menu" aria-label="$Oc(this.options.speedLabel)}" style="display: none;">
 108                  $this.options.playbackRates.map(c=>`<button class="speed-option" role="menuitemradio" tabindex="-1" aria-checked="false" data-rate="$c}">$c}x</button>`).join("")}
 109                </div>
 110              </div>
 111            `:""}
 112            $this.options.showTime?`
 113              <span class="waveform-time">
 114                <span class="time-current">0:00</span> / <span class="time-total">0:00</span>
 115              </span>
 116            `:""}
 117          </div>
 118        </div>
 119          `:"";this.container.innerHTML=`
 120    <div class="waveform-player-inner">
 121      <div class="waveform-body">
 122        <div class="waveform-track waveform-align-$t}">
 123          $s}
 124          
 125          <div class="waveform-container">
 126            <canvas></canvas>
 127            <div class="waveform-markers"></div>
 128            <div class="waveform-loading" style="display:none;"></div>
 129            <div class="waveform-error" style="display:none;" role="alert">
 130              <span class="waveform-error-text">$Oc(this.options.errorText)}</span>
 131            </div>
 132          </div>
 133        </div>
 134        
 135        $l}
 136      </div>
 137    </div>
 138  `,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=VPe)},{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")),n=()=>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(d=>d.getAttribute("aria-checked")==="true")||u[0])?.focus()}},s=c=>{let u=o();u.length&&u[(c+u.length)%u.length].focus()},l=c=>{this.setPlaybackRate(parseFloat(c.dataset.rate)),i(!1),t.focus()};t.addEventListener("click",c=>{c.stopPropagation(),i(!n())},{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&&l(u)},{signal:this._ac.signal}),t.closest(".waveform-speed")?.addEventListener("keydown",c=>{let u=o(),d=u.indexOf(document.activeElement);if(!n()){(c.key==="ArrowDown"||c.key==="ArrowUp")&&document.activeElement===t&&(c.preventDefault(),i(!0));return}switch(c.key){case"ArrowDown":c.preventDefault(),s(d<0?0:d+1);break;case"ArrowUp":c.preventDefault(),s(d<0?u.length-1:d-1);break;case"Home":c.preventDefault(),s(0);break;case"End":c.preventDefault(),s(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(FPe)||(tn.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,n=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(zo(n-5,0,this.audio.duration)),i.ArrowRight=()=>this.seekTo(zo(n+5,0,this.audio.duration)),i.ArrowUp=()=>this.setVolume(zo(this.audio.volume+.1)),i.ArrowDown=()=>this.setVolume(zo(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(),n;switch(t.key){case"ArrowLeft":case"ArrowDown":n=o-Fle;break;case"ArrowRight":case"ArrowUp":n=o+Fle;break;case"PageDown":n=o-Ole;break;case"PageUp":n=o+Ole;break;case"Home":n=0;break;case"End":n=r;break;default:return}t.preventDefault(),t.stopPropagation(),this.seekToSeconds(n)},{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=zo(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",hPe(this.options.seekValueText||"%1$s of %2$s",Fu(r),Fu(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(zo(this.audio.currentTime-10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(zo(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:zo(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=_Pe(()=>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.container.classList.remove("waveform-is-placeholder");let r=!!this.options.waveform;r&&this.setWaveformData(this.options.waveform);let o=this.options.title||Wle(t);if(this.titleEl&&(this.titleEl.textContent=o),this.applySeekLabel(o),this.audio&&(this.audio.src=t,this.audio.preload!=="none"&&await new Promise((n,i)=>{let s=()=>{this.audio.removeEventListener("loadedmetadata",s),this.audio.removeEventListener("error",l),n()},l=c=>{this.audio.removeEventListener("loadedmetadata",s),this.audio.removeEventListener("error",l),i(c)};this.audio.addEventListener("loadedmetadata",s),this.audio.addEventListener("error",l)})),!r)try{let n=await Ale(t,this.options.samples,this.options.showBPM);this.waveformData=n.peaks,n.bpm&&(this.detectedBPM=n.bpm,this.updateBPMDisplay())}catch(n){console.warn("[WaveformPlayer] Using placeholder waveform:",n),this.waveformData=NPe(this.options.samples),this.container.classList.add("waveform-is-placeholder")}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,n={}){let i=Object.prototype.hasOwnProperty.call(n,"artwork"),s=Object.prototype.hasOwnProperty.call(n,"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=Vle(Ile(this.options,{url:t,title:r===null?this.options.title:r,artist:o===null?this.options.artist:o,...n})),i&&(this.options.artwork=n.artwork||null),s?this.options.artworkAlt=n.artworkAlt||"":i&&(this.options.artworkAlt=this.options.artwork?Lz.artworkAlt:""),n.preload&&this.audio&&(this.audio.preload=this.options.preload),n.crossOrigin&&this.audio&&(this.audio.crossOrigin=this.options.crossOrigin),o!==null&&this.syncArtist(o),(i||s)&&this.syncArtwork(i?n.artwork:this.options.artwork,s?n.artworkAlt:this.options.artworkAlt),this.options.markers=n.markers?Mz(n.markers):[],this.options.waveform=n.waveform||null,await this.load(t),n.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=Mz(r.markers),this.renderMarkers()),this.drawWaveform()}).catch(()=>{});return}this.waveformData=Fz(t,{fallback:[]}),this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||TPe(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 n=r.time/t*100,i=document.createElement("button");i.className="waveform-marker",i.style.left=`$n}%`,i.style.backgroundColor=r.color||"rgba(255, 255, 255, 0.5)",i.setAttribute("aria-label",r.label),i.setAttribute("data-time",r.time);let s=document.createElement("span");s.className="waveform-marker-tooltip",s.textContent=r.label,i.appendChild(s),i.addEventListener("click",l=>{l.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,n=-1,i=-1/0;t.forEach((s,l)=>{let c=parseFloat(s.getAttribute("data-time"));Number.isFinite(c)&&c<=o+.05&&c>i&&(i=c,n=l)}),n!==this._activeMarkerIndex&&(this._activeMarkerIndex=n,this.setActiveMarker(n),clearTimeout(this._markerLabelTimer),t.forEach((s,l)=>s.classList.toggle("show-label",l===n)),n>=0&&(this._markerLabelTimer=setTimeout(()=>{this.markersContainer?.querySelectorAll(".waveform-marker").forEach(s=>s.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 n=this.canvas.getBoundingClientRect(),i=zo((t-n.left)/n.width);r.textContent=Fu(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=zo((t-r.left)/r.width),this.drawWaveform(),this._updateSeekHandle();let o=this.getSeekDuration();o&&this.currentTimeEl?(this.currentTimeEl.textContent=Fu(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=zo((t-r.left)/r.width);if(this.options.audioMode==="external"){this._requestSeek(o);return}!this.audio||!this.audio.duration||this.seekToPercent(o)}setLoading(t){if(this.isLoading=t,this.loadingEl){let r=t&&this.waveformData.length===0;this.loadingEl.style.display=r?"block":"none"}this.seekEl&&this.seekEl.setAttribute("aria-busy",t?"true":"false")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=Fu(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=Fu(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=V6(this.container);let t=zle(this.options.colorPreset,this.container);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(tn._themeWatch||typeof document>"u")return;let t=()=>requestAnimationFrame(()=>{tn.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 n=null;try{n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",t)}catch{}tn._themeWatch={obs:o,mq:n,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&&tn.currentlyPlaying&&tn.currentlyPlaying!==this&&tn.currentlyPlaying.pause(),this.options.audioMode==="external"){this._emit("waveformplayer:request-play",this._buildTrackDetail(),!0).defaultPrevented||(tn.currentlyPlaying=this);return}return tn.currentlyPlaying=this,this.audio.play()}pause(){if(tn.currentlyPlaying===this&&(tn.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=zo(t/r),this.currentTimeEl&&(this.currentTimeEl.textContent=Fu(t)),this._extDuration=r,this.totalTimeEl&&(!this.totalTimeEl.dataset._extSet||this.totalTimeEl.dataset._extDur!==String(r))&&(this.totalTimeEl.textContent=Fu(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=zo(t,0,this.audio.duration),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*zo(t),this.updateProgress())}setVolume(t){let r=Number(t);this.audio&&Number.isFinite(r)&&(this.audio.volume=zo(r))}setPlaybackRate(t){if(!this.audio)return;let r=F6(t,null,{min:Oz,max:Hz});r!==null&&(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),tn.instances.delete(this.id),tn.currentlyPlaying===this&&(tn.currentlyPlaying=null),this.audio&&(this.audio.pause(),this.audio.src="",this.audio.load(),this.audio=null),this.container.innerHTML="",delete this.container.dataset.waveformInitialized,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(n=>n.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 Ale(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}};H0.utils={formatTime:Fu,extractTitleFromUrl:Wle,escapeHtml:Oc,isSafeHref:pPe,parseDataAttributes:Ule,detectColorScheme:V6};var jz=()=>typeof window<"u"&&typeof document<"u",OPe=()=>!0;function Hle(e){if(!(e.dataset.waveformInitialized==="true"||H0.getInstance(e)))try{new H0(e),e.dataset.waveformInitialized="true"}catch(t){console.error("[WaveformPlayer] Failed to initialize:",t,e)}}function zz(e=document){if(!jz())return;let t=e||document;t.matches?.("[data-waveform-player]")&&Hle(t),t.querySelectorAll("[data-waveform-player]").forEach(Hle)}jz()&&!OPe()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>zz()):zz());H0.init=zz;jz()&&(window.WaveformPlayer=H0);var Kle=H0;var HPe=100,jPe="Seek";function Xle(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Jle(e){let t=e?.trim().match(/^[\w-]+-gradient\((.*)\)$/i);if(!t)return[];let r=[],o=0,n="";for(let i of t[1]){if(i==="("?++o:i===")"&&--o,i===","&&o===0){r.push(n.trim()),n="";continue}n+=i}return n.trim()&&r.push(n.trim()),r}function UPe(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,n=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s==="("?(n=!0,++o):s===")"&&--o,n&&o===0)return e.slice(0,i+1)}}function WPe(e){let t=UPe(e);if(t)return t;let[r]=e.split(/\s+/);if(hr(r).isValid())return r}function GPe(e){let r=Jle(e)[0],o=r?.match(/^(-?\d+(?:\.\d+)?)deg$/i);if(o){let l=(Number(o[1])%360+360)%360;return l===90||l===270?"horizontal":l===0||l===180?"vertical":"diagonal"}if(!r?.startsWith("to "))return;let n=r.toLowerCase().replace(/^to\s+/,""),i=n.includes("left")||n.includes("right"),s=n.includes("top")||n.includes("bottom");if(i&&s)return"diagonal";if(i)return"horizontal";if(s)return"vertical"}function $Pe(e,t){if(!t||hr(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=Xle(r).color;return r.remove(),o&&hr(o).isValid()?o:t}function Uz(e,t){let r=qPe(t)?.map(o=>$Pe(e,o)).filter(o=>hr(o).isValid());return r?.length>1?r:void 0}function Yle(e,t){return Array.isArray(e)?e.map(r=>hr(r).alpha(t).toRgbString()):hr(e).alpha(t).toRgbString()}function ece(e){return Array.isArray(e)?e[e.length-1]:e}function qPe(e){let t=Jle(e).map(WPe).filter(Boolean);return t.length>1?t:void 0}function Qle(e){return Array.isArray(e)?JSON.stringify(e):e}function ZPe(e,t,r,o){let n=r||Xle(e).color,i=Uz(e,o),s=i||t||n,l=Yle(s,.3),c=Yle(s,.6),u=i?GPe(o):void 0;return{textColor:n,waveformColor:l,progressColor:c,...u&&{waveformGradient:u}}}function KPe({url:e,title:t,artist:r,artwork:o,waveformColor:n,progressColor:i,waveformGradient:s,buttonColor:l,seekLabel:c,seekValueText:u,height:d=HPe,waveformStyle:p="bars"}){let m=document.createElement("div");return m.setAttribute("data-waveform-player",""),m.setAttribute("data-url",e),m.setAttribute("data-height",String(d)),m.setAttribute("data-waveform-style",p),m.setAttribute("data-waveform-color",Qle(n)),m.setAttribute("data-progress-color",Qle(i)),s&&m.setAttribute("data-waveform-gradient",s),m.setAttribute("data-button-color",l),m.setAttribute("data-seek-label",tce(c)),u&&m.setAttribute("data-seek-value-text",u),m.setAttribute("data-text-color",l),m.setAttribute("data-text-secondary-color",l),t&&m.setAttribute("data-title",t),r&&m.setAttribute("data-artist",r),o&&m.setAttribute("data-artwork",o),m}function Wz(e,{backgroundColor:t,backgroundGradient:r,textColor:o,playButtonColor:n,playButtonGradient:i}={}){let s=e.querySelector(".waveform-container"),l=e.querySelector(".waveform-btn"),c=ece(Uz(e,i)||n);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")),l&&(i?l.style.background=i:l.style.removeProperty("background")),s&&(r?s.style.background=r:t?(s.style.removeProperty("background"),s.style.backgroundColor=t):(s.style.removeProperty("background"),s.style.removeProperty("background-color")))}function YPe(e,t){let o=hr(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function QPe(e,{play:t="Play",pause:r="Pause"}={}){let o=e.querySelector(".waveform-btn");if(!o)return;o.setAttribute("aria-label",t);let n=()=>o.setAttribute("aria-label",r),i=()=>o.setAttribute("aria-label",t);return e.addEventListener("waveformplayer:play",n),e.addEventListener("waveformplayer:pause",i),e.addEventListener("waveformplayer:ended",i),()=>{e.removeEventListener("waveformplayer:play",n),e.removeEventListener("waveformplayer:pause",i),e.removeEventListener("waveformplayer:ended",i)}}function tce(e){return e||jPe}function rce(e,t){let r=tce(t);e.options.seekLabel=r,e.applySeekLabel?.(r);let o=e?.container?.querySelector(".waveform-container");o&&o.setAttribute("aria-label",r)}function H6(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 XPe(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function oce(e,{src:t,title:r,artist:o,image:n,imageAlt:i,waveformColor:s,waveformGradient:l,textColor:c,backgroundColor:u,backgroundGradient:d,autoPlay:p,onEnded:m,labels:f,waveformStyle:g,showPlayButtonArtwork:h=!1}){let v=h?void 0:n,{textColor:x,waveformColor:_,progressColor:k,waveformGradient:y}=ZPe(e,s,c,l),w=Uz(e,l),C=ece(w||s),S=KPe({url:t,title:r,artist:o,artwork:v,waveformColor:_,progressColor:k,waveformGradient:y,buttonColor:x,seekLabel:r||f?.seek,seekValueText:f?.seekValueText,waveformStyle:g});e.appendChild(S);let P=new Kle(S);P.artworkEl&&(P.artworkEl.alt=i||""),Wz(S,{backgroundColor:u,backgroundGradient:d,textColor:x,playButtonColor:h?void 0:C,playButtonGradient:h?void 0:l});let N,I={ready:()=>{YPe(S,C||x),h&&H6(S,n),N=QPe(S,f),p&&P.play()?.catch(XPe)},ended:()=>m?.()};return S.addEventListener("waveformplayer:ready",I.ready),S.addEventListener("waveformplayer:ended",I.ended),{instance:P,container:S,destroy:()=>{N?.(),S.removeEventListener("waveformplayer:ready",I.ready),S.removeEventListener("waveformplayer:ended",I.ended),P.destroy(),S.remove()}}}var nce=a(b(),1);function JPe(e,{title:t,artist:r,image:o,imageAlt:n},i){let{instance:s,container:l}=e,c=i?void 0:o;s.titleEl&&(s.titleEl.textContent=t??""),rce(s,t||(0,b_.__)("Seek")),typeof s.syncArtist=="function"?s.syncArtist(r||""):s.artistEl&&(s.artistEl.textContent=r??"",s.artistEl.style.display=r?"":"none"),typeof s.syncArtwork=="function"?s.syncArtwork(c||null,c&&n||""):s.artworkEl&&c&&(s.artworkEl.src=c,s.artworkEl.alt=n||""),i&&H6(l,o)}function ace({src:e,title:t,artist:r,image:o,imageAlt:n,color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u,waveformStyle:d,onEnded:p,showPlayButtonArtwork:m=!1}){let f=(0,j6.useEvent)(p),g=(0,Hc.useRef)(),h=!!e,v=(0,Hc.useRef)({src:e,title:t,artist:r,image:o,imageAlt:n}),x=(0,Hc.useRef)({color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u});(0,Hc.useEffect)(()=>{v.current={src:e,title:t,artist:r,image:o,imageAlt:n}},[e,t,r,o,n]),(0,Hc.useEffect)(()=>{x.current={color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u}},[i,s,l,c,u]),(0,Hc.useEffect)(()=>{g.current?.container&&Wz(g.current.container,{backgroundColor:l,backgroundGradient:c,textColor:u,playButtonColor:m?void 0:i,playButtonGradient:m?void 0:s})},[l,c,i,s,m,u]);let _=(0,j6.useRefEffect)(k=>{if(!h)return;let y=!1,w;function C(){if(y)return;let P=oce(k,{src:v.current.src,title:v.current.title,artist:v.current.artist,image:v.current.image,imageAlt:v.current.imageAlt,waveformColor:x.current.color,waveformGradient:x.current.gradient,backgroundColor:x.current.backgroundColor,backgroundGradient:x.current.backgroundGradient,textColor:x.current.textColor,waveformStyle:d,labels:{seek:(0,b_.__)("Seek"),seekValueText:(0,b_._x)("%1$s of %2$s","audio current time of total duration")},onEnded:()=>f?.(),showPlayButtonArtwork:m});g.current=P;let{destroy:N}=P;w=N}let S=setTimeout(C,100);return()=>{y=!0,clearTimeout(S),g.current=void 0,w?.()}},[f,h,d,i,s,u,m]);return(0,Hc.useEffect)(()=>{if(g.current?.instance){let k=g.current;k&&JPe(k,{title:t,artist:r,image:o,imageAlt:n},m)}},[t,r,o,n,m]),(0,Hc.useEffect)(()=>{if(e&&g.current?.instance){let k=g.current.instance.isPlaying;g.current.instance.loadTrack(e,v.current.title,v.current.artist,{artwork:m?void 0:v.current.image,artworkAlt:m?"":v.current.imageAlt}).then(()=>{m&&g.current?.container&&H6(g.current.container,v.current.image),k||g.current?.instance.pause()})}},[e,m]),(0,nce.jsx)("div",{ref:_,className:"wp-block-playlist__waveform-player"})}var ice=a(H(),1),U6=(0,ice.createContext)({currentTrackClientId:null,setCurrentTrackClientId:()=>{}});var Gz=a(D(),1),sce=a(Wo(),1);function lce(e){return e?.url??e?.source_url}function eEe(e){let t=e?.title;if(t!==void 0)return typeof t=="string"?t:(0,sce.decodeEntities)(t?.raw||t?.rendered||"")}function $z(e){let t=e?.src??lce(e);return t?.endsWith("/images/media/audio.svg")?{image:"",imageAlt:""}:{image:t,imageAlt:t?e?.alt||e?.alt_text||"":void 0}}function W6(e){let t=lce(e);return{id:e.id||t,src:t,title:eEe(e),artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,Gz.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,Gz.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,...$z(e?.image)}}var Ke=a(b(),1),qz=["audio"],tEe=/\.(aac|aif|aiff|flac|m4a|m4b|mp3|oga|ogg|opus|wav|weba)$/i,G6="bars",rEe="[object FileList]",oEe=[{label:(0,gt._x)("Bars","waveform style option"),value:"bars"},{label:(0,gt._x)("Mirror","waveform style option"),value:"mirror"},{label:(0,gt._x)("Line","waveform style option"),value:"line"},{label:(0,gt._x)("Blocks","waveform style option"),value:"blocks"},{label:(0,gt._x)("Dots","waveform style option"),value:"dots"},{label:(0,gt._x)("Seekbar","waveform style option"),value:"seekbar"}];function nEe(e){return Object.prototype.toString.call(e)==="[object File]"||typeof File<"u"&&e instanceof File}function aEe(e){return e.type?e.type.startsWith("audio/"):tEe.test(e.name)}function cce(e){return e.id??e.src??e.blob}var iEe=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:n})=>{let{order:i,showTracklist:s,showNumbers:l,showImages:c,showPlayButtonArtwork:u,showArtists:d,showTrackLength:p,waveformStyle:m=G6,waveformColor:f,waveformGradient:g,waveformBackgroundColor:h,waveformBackgroundGradient:v}=e,x=(0,Lr.useBlockProps)(),_=`$n}-waveform`,{replaceInnerBlocks:k,replaceBlocks:y,insertBlocks:w,selectBlock:C,__unstableMarkNextChangeAsNotPersistent:S}=(0,__.useDispatch)(Lr.store),{createErrorNotice:P}=(0,__.useDispatch)(uce.store),N=X(),I=(0,Lr.__experimentalUseMultipleOriginColorsAndGradients)(),B=(0,fo.useMemo)(()=>I.colors.flatMap(ie=>ie?.colors??[]),[I.colors]),E=(0,fo.useMemo)(()=>I.gradients.flatMap(ie=>ie?.gradients??[]),[I.gradients]),L=B.length>0||!I.disableCustomColors,A=E.length>0||!I.disableCustomGradients,U=g,$=v,W,G,F=(0,fo.useCallback)(ie=>{P(ie,{type:"snackbar"})},[P]),[Z,j]=(0,fo.useState)(null),{innerBlockTracks:Y}=(0,__.useSelect)(ie=>{let{getBlock:Ee}=ie(Lr.store);return{innerBlockTracks:Ee(n)?.innerBlocks??[]}},[n]),ee=(0,fo.useMemo)(()=>Y.filter(ie=>!!ie.attributes.src||!!ie.attributes.blob),[Y]),te=(0,fo.useMemo)(()=>ee.map(ie=>({...ie.attributes,clientId:ie.clientId})),[ee]);(0,fo.useEffect)(()=>{if(ee.length===0){Z!==null&&j(null);return}ee.some(Ee=>Ee.clientId===Z)||j(ee[0].clientId)},[Z,j,ee]),(0,fo.useEffect)(()=>{ee.length>0||Y.length===0||(S(),k(n,[]))},[n,Y,k,ee,S]);let Q=(0,fo.useCallback)(ie=>{if(!ie)return[];let Ee=[ie];Object.prototype.toString.call(ie)===rEe?Ee=Array.from(ie):Array.isArray(ie)&&(Ee=ie);let ve=!1,Xt=Ee.map(Gt=>{if(nEe(Gt))return aEe(Gt)?(0,Zz.createBlock)("core/playlist-track",{blob:(0,dce.createBlobURL)(Gt),title:Gt.name}):(ve=!0,null);let br=W6(Gt);return br.src?(0,Zz.createBlock)("core/playlist-track",br):null}).filter(Boolean);return ve&&F((0,gt.__)("Only audio files can be added to a playlist.")),Xt},[F]),le=(0,fo.useCallback)(ie=>{let Ee=Q(ie);Ee.length!==0&&(j(Ee[0]?.clientId??null),k(n,Ee))},[n,Q,k,j]),oe=(0,fo.useCallback)(ie=>{let Ee=new Set(ee.map(Xt=>cce(Xt.attributes)).filter(Boolean)),ve=Q(ie).filter(Xt=>!Ee.has(cce(Xt.attributes)));ve.length!==0&&(j(ve[0].clientId),w(ve,void 0,n,!1),C(ve[0].clientId))},[n,Q,w,C,j,ee]),ce=(0,fo.useCallback)(ie=>{y(ie,[])},[y]),pe=(0,fo.useMemo)(()=>({currentTrackClientId:Z,setCurrentTrackClientId:j,removeTrack:ce}),[Z,j,ce]),be=te.find(ie=>ie.clientId===Z)??te[0],Te=(0,fo.useCallback)(()=>{let ie=te.findIndex(ve=>ve.clientId===Z),Ee=te[ie+1]||te[0];Ee?.clientId&&j(Ee.clientId)},[Z,j,te]),ae=(0,fo.useCallback)(ie=>{let Ee=[...Y].sort((ve,Xt)=>{let Gt=ve.attributes.title||"",br=Xt.attributes.title||"";return ie==="asc"?Gt.localeCompare(br):br.localeCompare(Gt)});k(n,Ee),j(Ee[0]?.clientId??null),t({order:ie})},[n,Y,k,t,j]);function se(ie){return Ee=>{t({[ie]:Ee})}}let ue=(0,fo.useCallback)(ie=>{t({waveformStyle:ie===G6?void 0:ie})},[t]);function Oe(ie){if(!(ie!==void 0)&&W==="gradient"){W=void 0;return}W="color",t({waveformColor:ie,waveformGradient:void 0})}function Pe(ie){if(!(ie!==void 0)&&W==="color"){W=void 0;return}W="gradient",t({waveformGradient:ie,waveformColor:void 0})}function ge(ie){if(!(ie!==void 0)&&G==="gradient"){G=void 0;return}G="color",t({waveformBackgroundColor:ie,waveformBackgroundGradient:void 0})}function et(ie){if(!(ie!==void 0)&&G==="color"){G=void 0;return}G="gradient",t({waveformBackgroundGradient:ie,waveformBackgroundColor:void 0})}let me=[];(L||A)&&me.push({colorValue:L?f:void 0,gradientValue:A?U:void 0,label:(0,gt.__)("Waveform & Play button"),onColorChange:L?Oe:void 0,onGradientChange:A?Pe:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformColor:void 0,waveformGradient:void 0})},{colorValue:L?h:void 0,gradientValue:A?$:void 0,label:(0,gt.__)("Waveform background"),onColorChange:L?ge:void 0,onGradientChange:A?et:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})});let{children:ct,...Ne}=(0,Lr.useInnerBlocksProps)({className:T("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!s,"wp-block-playlist__tracklist-show-numbers":l,"wp-block-playlist__tracklist-length-is-hidden":!p})},{__experimentalAppenderTagName:"li",renderAppender:!1});return te.length===0?(0,Ke.jsx)("div",{...x,className:T("is-placeholder",x.className),children:(0,Ke.jsx)(Lr.MediaPlaceholder,{icon:(0,Ke.jsx)(Lr.BlockIcon,{icon:Hv}),labels:{title:(0,gt.__)("Playlist"),instructions:(0,gt.__)("Upload an audio file or pick one from your media library.")},onSelect:le,accept:"audio/*",multiple:"add",handleUpload:!1,allowedTypes:qz,onError:F})}):(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Lr.BlockControls,{group:"other",children:(0,Ke.jsx)(Lr.MediaReplaceFlow,{name:(0,gt.__)("Add track"),onSelect:oe,accept:"audio/*",multiple:"add",handleUpload:!1,allowedTypes:qz,onError:F})}),(0,Ke.jsx)(Lr.InspectorControls,{children:(0,Ke.jsxs)(Cr.__experimentalToolsPanel,{label:(0,gt.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,showPlayButtonArtwork:!1,order:"asc"})},dropdownMenuProps:N,children:[(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Show tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,Ke.jsx)(Cr.ToggleControl,{label:(0,gt.__)("Show tracklist"),onChange:se("showTracklist"),checked:s})}),s&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Show artist name in tracklist"),isShownByDefault:!0,hasValue:()=>d!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,Ke.jsx)(Cr.ToggleControl,{label:(0,gt.__)("Show artist name in tracklist"),onChange:se("showArtists"),checked:d})}),(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Show track numbers in tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,Ke.jsx)(Cr.ToggleControl,{label:(0,gt.__)("Show track numbers in tracklist"),onChange:se("showNumbers"),checked:l})}),(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Show track duration in tracklist"),isShownByDefault:!0,hasValue:()=>p!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,Ke.jsx)(Cr.ToggleControl,{label:(0,gt.__)("Show track duration in tracklist"),onChange:se("showTrackLength"),checked:p})})]}),(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Show tracklist images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,Ke.jsx)(Cr.ToggleControl,{label:(0,gt.__)("Show tracklist images"),onChange:se("showImages"),checked:c})}),(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Show track image on play button"),isShownByDefault:!0,hasValue:()=>u===!0,onDeselect:()=>t({showPlayButtonArtwork:!1}),children:(0,Ke.jsx)(Cr.ToggleControl,{label:(0,gt.__)("Show track image on play button"),onChange:se("showPlayButtonArtwork"),checked:u===!0})}),(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,Ke.jsx)(Cr.SelectControl,{label:(0,gt.__)("Order"),value:i,options:[{label:(0,gt.__)("Descending"),value:"desc"},{label:(0,gt.__)("Ascending"),value:"asc"}],onChange:ie=>ae(ie)})})]})}),(0,Ke.jsx)(Lr.InspectorControls,{group:"styles",children:(0,Ke.jsxs)(Cr.__experimentalToolsPanel,{label:(0,gt.__)("Waveform"),resetAll:()=>{t({waveformStyle:void 0,waveformColor:void 0,waveformGradient:void 0,waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})},panelId:_,dropdownMenuProps:N,children:[me.length>0&&(0,Ke.jsx)("div",{className:"wp-block-playlist__waveform-color-controls",children:(0,Ke.jsx)(Lr.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:me,panelId:_,...I})}),(0,Ke.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,gt.__)("Shape"),isShownByDefault:!0,hasValue:()=>m!==G6,onDeselect:()=>ue(G6),panelId:_,children:(0,Ke.jsx)(Cr.SelectControl,{label:(0,gt.__)("Shape"),value:m,options:oEe,onChange:ue})})]})}),(0,Ke.jsxs)("figure",{...x,children:[(0,Ke.jsx)(Lr.MediaPlaceholder,{onSelect:oe,accept:"audio/*",multiple:"add",handleUpload:!1,disableMediaButtons:!0,allowedTypes:qz,onError:F}),(0,Ke.jsx)(Cr.Disabled,{isDisabled:!r,children:(0,Ke.jsx)(ace,{src:be?.src,title:be?.title,artist:be?.artist,image:be?.image,imageAlt:be?.imageAlt,waveformStyle:m,color:f,gradient:U,backgroundColor:h,backgroundGradient:$,onEnded:Te,showPlayButtonArtwork:u===!0})}),(0,Ke.jsx)("ol",{...Ne,children:(0,Ke.jsx)(U6.Provider,{value:pe,children:ct})}),(0,Ke.jsx)($o,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,gt.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},pce=iEe;var Ou=a(R(),1),x_=a(b(),1);function mce({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:n,showTrackLength:i}=e,s=Ou.useBlockProps.save(),l=Ou.useInnerBlocksProps.save(s);return(0,x_.jsxs)("figure",{...l,children:[(0,x_.jsx)("ol",{className:T("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-is-hidden":!o,"wp-block-playlist__tracklist-artist-is-hidden":!n,"wp-block-playlist__tracklist-length-is-hidden":!i,"wp-block-playlist__tracklist-show-numbers":r}),children:l.children}),!Ou.RichText.isEmpty(t)&&(0,x_.jsx)(Ou.RichText.Content,{tagName:"figcaption",className:(0,Ou.__experimentalGetElementClassName)("caption"),value:t})]})}var $6=a(K(),1),fce=a(dr(),1),sEe={from:[{type:"block",isMultiBlock:!0,blocks:["core/audio"],transform:e=>(0,$6.createBlock)("core/playlist",{...e[0]},e.map(({blob:t,id:r,src:o})=>(0,$6.createBlock)("core/playlist-track",{blob:t,id:r,src:o,title:(0,fce.getFilename)(o)})))}],to:[{type:"block",blocks:["core/audio"],isMatch:({},e)=>e.innerBlocks.length===1&&e.innerBlocks[0].name==="core/playlist-track",transform:({style:e,...t},[r])=>(0,$6.createBlock)("core/audio",{...t,...e?.spacing&&{style:{spacing:e.spacing}},blob:r.attributes.blob,id:r.attributes.id,src:r.attributes.src})}]},gce=sEe;var{name:hce}=z6,vce={icon:Hv,edit:pce,save:mce,transforms:gce},lEe=()=>M({name:hce,metadata:z6,settings:vce});var Qz={};J(Qz,{init:()=>pEe,metadata:()=>q6,name:()=>kce,settings:()=>wce});var q6={$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",role:"content"},src:{type:"string",role:"content"},type:{type:"string",default:"audio"},album:{type:"string",role:"content"},artist:{type:"string",role:"content"},image:{type:"string",role:"content"},imageAlt:{type:"string",role:"content"},length:{type:"string",role:"content"},title:{type:"string",role:"content"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var yce=a(Or(),1),bp=a(H(),1),Vo=a(R(),1),Xn=a(V(),1);var bce=a(O(),1),_ce=a(xr(),1),Ar=a(D(),1);var Z6=a(da(),1);var ht=a(b(),1),Yz=["audio"],uEe=["image"],dEe=({attributes:e,setAttributes:t,context:r,clientId:o,isSelected:n})=>{let{id:i,src:s,album:l,artist:c,image:u,imageAlt:d,length:p,title:m}=e,[f,g]=(0,bp.useState)(e.blob),h=r?.showArtists,v=r?.showImages??!0,x=(0,bp.useRef)(),_=(0,Vo.useBlockProps)(),{currentTrackClientId:k,setCurrentTrackClientId:y,removeTrack:w}=(0,bp.useContext)(U6),{createErrorNotice:C}=(0,bce.useDispatch)(_ce.store);function S(E,{removeTrackOnError:L=!1}={}){if(C(E,{type:"snackbar"}),L){w(o);return}g()}let P=!!s||!!f;(0,bp.useEffect)(()=>{n&&P&&k!==o&&y(o)},[n,P,o,k,y]),tc({url:f,allowedTypes:Yz,onChange:N,onError:E=>{S(E,{removeTrackOnError:!0})}});function N(E){let L=E?.url??E?.source_url;if(!E||!L){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}),g();return}if((0,yce.isBlobURL)(L)){g(L);return}t({blob:void 0,...W6(E)}),g()}function I(E){t($z(E))}function B(){t({image:void 0,imageAlt:void 0}),x.current.focus()}return P?(0,ht.jsxs)(ht.Fragment,{children:[n&&(0,ht.jsx)(Vo.BlockControls,{group:"other",children:(0,ht.jsx)(Vo.MediaReplaceFlow,{name:(0,Ar.__)("Replace"),onSelect:N,accept:"audio/*",mediaId:i,mediaURL:s,allowedTypes:Yz,onError:S,variant:"toolbar"})}),(0,ht.jsx)(Vo.InspectorControls,{children:(0,ht.jsxs)(Xn.PanelBody,{title:(0,Ar.__)("Settings"),children:[n&&(0,ht.jsx)(Xn.TextControl,{label:(0,Ar.__)("Title"),value:m?(0,Z6.__unstableStripHTML)(m):"",onChange:E=>{t({title:E})}}),(0,ht.jsx)(Xn.TextControl,{label:(0,Ar.__)("Artist"),value:c?(0,Z6.__unstableStripHTML)(c):"",onChange:E=>{t({artist:E})}}),(0,ht.jsx)(Xn.TextControl,{label:(0,Ar.__)("Album"),value:l?(0,Z6.__unstableStripHTML)(l):"",onChange:E=>{t({album:E})}}),(0,ht.jsx)(Vo.MediaUploadCheck,{children:(0,ht.jsxs)(Xn.BaseControl,{children:[(0,ht.jsx)(Xn.BaseControl.VisualLabel,{children:(0,Ar.__)("Track image")}),(0,ht.jsxs)("div",{className:"editor-video-poster-control",children:[!!u&&(0,ht.jsx)("img",{src:u,alt:(0,Ar.__)("Preview of the track image")}),(0,ht.jsx)(Vo.MediaUpload,{title:(0,Ar.__)("Select image"),onSelect:I,allowedTypes:uEe,render:({open:E})=>(0,ht.jsx)(Xn.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:E,ref:x,children:u?(0,Ar.__)("Replace"):(0,Ar.__)("Select")})}),!!u&&(0,ht.jsx)(Xn.Button,{__next40pxDefaultSize:!0,onClick:B,variant:"tertiary",children:(0,Ar.__)("Remove")})]})]})}),!!u&&(0,ht.jsx)(Xn.TextareaControl,{label:(0,Ar.__)("Alternative text"),value:d||"",onChange:E=>t({imageAlt:E}),help:(0,ht.jsx)(mu,{openInNewTab:!0,href:(0,Ar.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Ar.__)("Describe the purpose of the image.")})})]})}),(0,ht.jsx)("li",{..._,children:(0,ht.jsxs)("button",{className:"wp-block-playlist-track__button",onClick:()=>y(o),"aria-current":k===o?"true":"false",children:[v&&!!u&&(0,ht.jsx)("img",{className:"wp-block-playlist-track__image",src:u,alt:d||""}),(0,ht.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,ht.jsx)(Vo.PlainText,{tagName:"span",className:"wp-block-playlist-track__title",value:m,"aria-label":(0,Ar.__)("Track title"),placeholder:(0,Ar.__)("Track title"),onChange:E=>{t({title:E})},__experimentalVersion:2}),h&&(0,ht.jsx)(Vo.PlainText,{tagName:"span",className:"wp-block-playlist-track__artist",value:c,"aria-label":(0,Ar.__)("Track artist"),placeholder:(0,Ar.__)("Track artist"),onChange:E=>t({artist:E}),__experimentalVersion:2})]}),(0,ht.jsxs)("span",{className:"wp-block-playlist-track__length",children:[p&&(0,ht.jsx)("span",{className:"screen-reader-text",children:(0,Ar.__)("Duration:")}),p,!!f&&(0,ht.jsx)(Xn.Spinner,{className:"wp-block-playlist-track__spinner"})]}),(0,ht.jsx)("span",{className:"screen-reader-text",children:(0,Ar.__)("Play")})]})})]}):(0,ht.jsx)("div",{..._,children:(0,ht.jsx)(Vo.MediaPlaceholder,{icon:(0,ht.jsx)(Vo.BlockIcon,{icon:Jp}),labels:{title:(0,Ar.__)("Track"),instructions:(0,Ar.__)("Upload an audio file or pick one from your media library.")},onSelect:N,accept:"audio/*",allowedTypes:Yz,value:e,onError:S})})},xce=dEe;var{name:kce}=q6,wce={icon:eN,edit:xce},pEe=()=>M({name:kce,metadata:q6,settings:wce});var Jz={};J(Jz,{init:()=>yEe,metadata:()=>K6,name:()=>Rce,settings:()=>Dce});var Ice=a(D(),1);var K6={$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 Ia=a(R(),1),zr=a(V(),1),Ece=a(he(),1),Y6=a(ne(),1),Vf=a(O(),1),Q6=a(H(),1),Xz=a(Wo(),1),Mr=a(D(),1),Bce=a(K(),1);var zf=a(K(),1),Sce=a(D(),1),Tce=a(R(),1);var{cleanEmptyObject:Cce}=q(Tce.privateApis);function Pce(e,t){let{avatarSize:r,byline:o,showAvatar:n,showBio:i,isLink:s,linkTarget:l,textAlign:c,style:u,...d}=e,p=n&&t.some(h=>h.name==="core/avatar"),m=o&&t.some(h=>h.name==="core/paragraph"),f=t.some(h=>h.name==="core/post-author-name"),g=i&&t.some(h=>h.name==="core/post-author-biography");return(0,zf.createBlock)("core/group",{...d,style:Cce({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[p&&(0,zf.createBlock)("core/avatar",{size:r,style:Cce({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,zf.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[m&&(0,zf.createBlock)("core/paragraph",{content:o,placeholder:(0,Sce.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,zf.createBlock)("core/post-author-name",{isLink:s,linkTarget:l,style:{typography:{fontSize:"1em",textAlign:c}}}),g&&(0,zf.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var vt=a(b(),1),{InspectorControlsLastItem:fEe}=q(Ia.privateApis),gEe={who:"authors",per_page:100,_fields:"id,name",context:"view"};function hEe({value:e,onChange:t}){let[r,o]=(0,Q6.useState)(""),{authors:n,isLoading:i}=(0,Vf.useSelect)(l=>{let{getUsers:c,isResolving:u}=l(Y6.store),d={...gEe};return r&&(d.search=r,d.search_columns=["name"]),{authors:c(d),isLoading:u("getUsers",[d])}},[r]),s=(0,Q6.useMemo)(()=>{let l=(n??[]).map(d=>({value:d.id,label:(0,Xz.decodeEntities)(d.name)})),c=l.findIndex(d=>e?.id===d.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,Xz.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Mr.__)("(No author)")}]),[...u,...l]},[n,e]);return(0,vt.jsx)(zr.ComboboxControl,{label:(0,Mr.__)("Author"),options:s,value:e?.id,onFilterValueChange:(0,Ece.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function vEe({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:n,setAttributes:i,clientId:s}){let l=Number.isFinite(o),c=X(),u=Ty(),{authorDetails:d,canAssignAuthor:p,supportsAuthor:m}=(0,Vf.useSelect)(L=>{let{getEditedEntityRecord:A,getUser:U,getPostType:$}=L(Y6.store),W=A("postType",t,r),G=W?.author;return{authorDetails:G?U(G,{context:"view"}):null,supportsAuthor:$(t)?.supports?.author??!1,canAssignAuthor:!!W?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,Vf.useSelect)(L=>L(Bce.store).getBlockTypes(),[]),{editEntityRecord:g}=(0,Vf.useDispatch)(Y6.store),{replaceBlock:h}=(0,Vf.useDispatch)(Ia.store),{textAlign:v,showAvatar:x,showBio:_,byline:k,isLink:y,linkTarget:w,avatarSize:C}=n,S=[],P=d?.name||(0,Mr.__)("Post Author");d?.avatar_urls&&Object.keys(d.avatar_urls).forEach(L=>{S.push({value:L,label:`$L} x $L}`})});let N=(0,Ia.useBlockProps)({className:T({[`has-text-align-$v}`]:v})}),I=L=>{g("postType",t,r,{author:L})},B=!!r&&!l&&p;if(!m&&t!==void 0)return(0,vt.jsx)("div",{...N,children:(0,Mr.sprintf)((0,Mr.__)("This post type (%s) does not support the author."),t)});function E(){h(s,Pce(n,f))}return(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(Ia.InspectorControls,{children:(0,vt.jsxs)(zr.__experimentalToolsPanel,{label:(0,Mr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[B&&(0,vt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,vt.jsx)(hEe,{value:d,onChange:I})}),(0,vt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Mr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!x,onDeselect:()=>i({showAvatar:!0}),children:(0,vt.jsx)(zr.ToggleControl,{label:(0,Mr.__)("Show avatar"),checked:x,onChange:()=>i({showAvatar:!x})})}),x&&(0,vt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Mr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,vt.jsx)(zr.SelectControl,{label:(0,Mr.__)("Avatar size"),value:C,options:S,onChange:L=>{i({avatarSize:Number(L)})}})}),(0,vt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Mr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>i({showBio:void 0}),children:(0,vt.jsx)(zr.ToggleControl,{label:(0,Mr.__)("Show bio"),checked:!!_,onChange:()=>i({showBio:!_})})}),(0,vt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Mr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!y,onDeselect:()=>i({isLink:!1}),children:(0,vt.jsx)(zr.ToggleControl,{label:(0,Mr.__)("Link author name to author page"),checked:y,onChange:()=>i({isLink:!y})})}),y&&(0,vt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Mr.__)("Link target"),isShownByDefault:!0,hasValue:()=>w!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,vt.jsx)(zr.ToggleControl,{label:(0,Mr.__)("Open in new tab"),onChange:L=>i({linkTarget:L?"_blank":"_self"}),checked:w==="_blank"})})]})}),f.some(L=>L.name==="core/group")&&(0,vt.jsx)(fEe,{children:(0,vt.jsxs)(zr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,vt.jsx)(zr.__experimentalText,{as:"p",children:(0,Mr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,vt.jsx)(zr.Button,{variant:"primary",onClick:E,__next40pxDefaultSize:!0,children:(0,Mr.__)("Recreate")})]})}),(0,vt.jsx)(Ia.BlockControls,{group:"block",children:(0,vt.jsx)(Ia.AlignmentControl,{value:v,onChange:L=>{i({textAlign:L})}})}),(0,vt.jsxs)("div",{...N,children:[x&&(0,vt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,vt.jsx)("img",{width:C,src:d?.avatar_urls?.[C]||u,alt:d?.name||(0,Mr.__)("Default Avatar")})}),(0,vt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!Ia.RichText.isEmpty(k)||e)&&(0,vt.jsx)(Ia.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Mr.__)("Post author byline text"),placeholder:(0,Mr.__)("Write byline\u2026"),value:k,onChange:L=>i({byline:L})}),(0,vt.jsx)("p",{className:"wp-block-post-author__name",children:y?(0,vt.jsx)("a",{href:"#post-author-pseudo-link",onClick:L=>L.preventDefault(),children:P}):P}),_&&(0,vt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:d?.description}})]})]})]})}var Nce=vEe;var{name:Rce}=K6,Dce={icon:mm,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,Ice.__)("Posted by")}},edit:Nce},yEe=()=>M({name:Rce,metadata:K6,settings:Dce});var eV={};J(eV,{init:()=>wEe,metadata:()=>X6,name:()=>Oce,settings:()=>Hce});var X6={$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 J6=a(R(),1),Lce=a(O(),1),jc=a(D(),1),Ace=a(ne(),1),_p=a(V(),1);var es=a(b(),1);function _Ee(e){Et(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:n,postId:i}}=e,{authorName:s,supportsAuthor:l}=(0,Lce.useSelect)(m=>{let{getEditedEntityRecord:f,getUser:g,getPostType:h}=m(Ace.store),v=f("postType",n,i)?.author;return{authorName:v?g(v):null,supportsAuthor:h(n)?.supports?.author??!1}},[n,i]),c=(0,J6.useBlockProps)(),u=s?.name||(0,jc.__)("Author Name"),d=t?(0,es.jsx)("a",{href:"#author-pseudo-link",onClick:m=>m.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=X();return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(J6.InspectorControls,{children:(0,es.jsxs)(_p.__experimentalToolsPanel,{label:(0,jc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,es.jsx)(_p.__experimentalToolsPanelItem,{label:(0,jc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,es.jsx)(_p.ToggleControl,{label:(0,jc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,es.jsx)(_p.__experimentalToolsPanelItem,{label:(0,jc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,es.jsx)(_p.ToggleControl,{label:(0,jc.__)("Open in new tab"),onChange:m=>o({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,es.jsx)("div",{...c,children:!l&&n!==void 0?(0,jc.sprintf)((0,jc.__)("This post type (%s) does not support the author."),n):d})]})}var Mce=_Ee;var xEe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},zce=[xEe];var Vce=a(K(),1),kEe={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,Vce.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},Fce=kEe;var{name:Oce}=X6,Hce={icon:mm,transforms:Fce,edit:Mce,deprecated:zce},wEe=()=>M({name:Oce,metadata:X6,settings:Hce});var tV={};J(tV,{init:()=>PEe,metadata:()=>e7,name:()=>Zce,settings:()=>Kce});var e7={$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 jce=a(R(),1),Uce=a(O(),1),Wce=a(D(),1),Gce=a(ne(),1);var k_=a(b(),1);function SEe(e){Et(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,Uce.useSelect)(s=>{let{getEditedEntityRecord:l,getUser:c}=s(Gce.store),u=l("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,jce.useBlockProps)(),i=o?.description||(0,Wce.__)("Author Biography");return(0,k_.jsx)(k_.Fragment,{children:(0,k_.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var $ce=SEe;var TEe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},qce=[TEe];var{name:Zce}=e7,Kce={icon:mm,edit:$ce,deprecated:qce},PEe=()=>M({name:Zce,metadata:e7,settings:Kce});var rV={};J(rV,{init:()=>NEe,metadata:()=>t7,name:()=>eue,settings:()=>tue});var t7={$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 w_=a(D(),1),j0=a(V(),1),Yce=a(H(),1);var r7=a(R(),1),Ff=a(b(),1);function Qce({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,Yce.useState)(e),n=(0,r7.useBlockProps)(),i=(0,r7.useInnerBlocksProps)(n);return e?(0,Ff.jsx)("div",{...i}):(0,Ff.jsx)("div",{...n,children:(0,Ff.jsxs)(j0.Placeholder,{icon:OP,label:(0,w_._x)("Post Comment","block title"),instructions:(0,w_.__)("To show a comment, input the comment ID."),children:[(0,Ff.jsx)(j0.TextControl,{value:e,onChange:s=>o(parseInt(s))}),(0,Ff.jsx)(j0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,w_.__)("Save")})]})})}var o7=a(R(),1),Xce=a(b(),1);function Jce(){let e=o7.useBlockProps.save(),t=o7.useInnerBlocksProps.save(e);return(0,Xce.jsx)("div",{...t})}var{name:eue}=t7,BEe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],tue={icon:fv,template:BEe,edit:Qce,save:Jce},NEe=()=>M({name:eue,metadata:t7,settings:tue});var oV={};J(oV,{init:()=>LEe,metadata:()=>n7,name:()=>uue,settings:()=>due});var n7={$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 rue=a(R(),1),a7=a(H(),1),oue=a(fb(),1),nue=a(dr(),1),aue=a(b(),1);function iue({context:e}){let{postId:t}=e,[r,o]=(0,a7.useState)(),n=(0,rue.useBlockProps)();(0,a7.useEffect)(()=>{if(!t)return;let l=t;(0,oue.default)({path:(0,nue.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{l===t&&o(c.headers.get("X-WP-Total"))})},[t]);let i=t&&r!==void 0,s={...n.style,textDecoration:i?n.style?.textDecoration:void 0};return(0,aue.jsx)("div",{...n,style:s,children:i?r:"0"})}var sue=a(K(),1),REe={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,sue.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},lue=REe;var DEe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},cue=[DEe];var{name:uue}=n7,due={icon:Gv,edit:iue,transforms:lue,deprecated:cue},LEe=()=>M({name:uue,metadata:n7,settings:due});var aV={};J(aV,{init:()=>zEe,metadata:()=>i7,name:()=>gue,settings:()=>hue});var i7={$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 pue=a(R(),1),mue=a(he(),1),s7=a(D(),1);var C_=a(b(),1);function nV({context:e}){let{postId:t,postType:r}=e,o=(0,mue.useInstanceId)(nV),n=(0,s7.sprintf)("comments-form-edit-%d-desc",o),i=(0,pue.useBlockProps)({"aria-describedby":n});return(0,C_.jsxs)("div",{...i,children:[(0,C_.jsx)(P3,{postId:t,postType:r}),(0,C_.jsx)(cn,{id:n,children:(0,s7.__)("Comments form disabled in editor.")})]})}var MEe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fue=[MEe];var{name:gue}=i7,hue={icon:pN,edit:nV,deprecated:fue},zEe=()=>M({name:gue,metadata:i7,settings:hue});var iV={};J(iV,{init:()=>jEe,metadata:()=>l7,name:()=>Tue,settings:()=>Pue});var l7={$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 vue=a(R(),1),u7=a(H(),1),yue=a(O(),1),bue=a(fb(),1),_ue=a(dr(),1),Of=a(D(),1),xue=a(ne(),1),c7=a(b(),1);function FEe({context:e}){let{postType:t,postId:r}=e,[o,n]=(0,u7.useState)(),i=(0,vue.useBlockProps)();(0,u7.useEffect)(()=>{if(!r)return;let c=r;(0,bue.default)({path:(0,_ue.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let s=(0,yue.useSelect)(c=>c(xue.store).getEditedEntityRecord("postType",t,r),[t,r]),l;if(o!==void 0){let c=parseInt(o);c===0?l=(0,Of.__)("No comments"):l=(0,Of.sprintf)((0,Of._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,c7.jsx)("div",{...i,children:s?.link&&l!==void 0?(0,c7.jsx)("a",{href:s?.link+"#comments",onClick:c=>c.preventDefault(),children:l}):(0,c7.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Of.__)("No comments")})})}var kue=FEe;var wue=a(K(),1),OEe={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,wue.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Cue=OEe;var HEe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Sue=[HEe];var{name:Tue}=l7,Pue={edit:kue,icon:Gv,transforms:Cue,deprecated:Sue},jEe=()=>M({name:Tue,metadata:l7,settings:Pue});var sV={};J(sV,{init:()=>XEe,metadata:()=>d7,name:()=>Rue,settings:()=>Due});var d7={$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 Hf=a(D(),1),go=a(R(),1),Eue=a(K(),1),jf=a(ne(),1),Bue=a(O(),1),Nue=a(H(),1);var ir=a(b(),1),{HTMLElementControl:WEe}=q(go.privateApis);function GEe({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:n,tagName:i="div"}){let[,,s]=(0,jf.useEntityProp)("postType",o,"content",n),l=(0,go.useBlockProps)({className:t}),c=(0,Nue.useMemo)(()=>s?.raw?(0,Eue.parse)(s.raw):[],[s?.raw]),u=(0,go.__experimentalUseBlockPreview)({blocks:c,props:l,layout:e});return r?(0,ir.jsx)("div",{...u}):s?.protected?(0,ir.jsx)(i,{...l,children:(0,ir.jsx)(go.Warning,{children:(0,Hf.__)("This content is password protected.")})}):(0,ir.jsx)(i,{...l,dangerouslySetInnerHTML:{__html:s?.rendered}})}function $Ee({blockProps:e,blocks:t,onInput:r,onChange:o,tagName:n="div"}){let i=(0,go.useInnerBlocksProps)(e,{value:t,onInput:r,onChange:o});return(0,ir.jsx)(n,{...i})}function qEe({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[n,i,s]=(0,jf.useEntityBlockEditor)("postType",r,{id:o}),l=(0,Bue.useSelect)(u=>u(jf.store).getEntityRecord("postType",r,o)!==void 0||u(jf.store).hasFinishedResolution("getEntityRecord",["postType",r,o]),[r,o]),c=(0,go.useBlockProps)({className:"entry-content"});return l?(0,ir.jsx)($Ee,{blockProps:c,blocks:n,onInput:i,onChange:s,tagName:t}):(0,ir.jsx)(t,{...c})}function ZEe(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:n,tagName:i}=e,s=Pw("postType",r,o);if(s===void 0)return null;let l=Number.isFinite(t);return s&&!l?(0,ir.jsx)(qEe,{...e}):(0,ir.jsx)(GEe,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:s,postType:r,postId:o,tagName:i})}function KEe({layoutClassNames:e}){let t=(0,go.useBlockProps)({className:e});return(0,ir.jsxs)("div",{...t,children:[(0,ir.jsx)("p",{children:(0,Hf.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,ir.jsx)("p",{children:(0,Hf.__)("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,ir.jsx)("p",{children:(0,Hf.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function YEe(){let e=(0,go.useBlockProps)();return(0,ir.jsx)("div",{...e,children:(0,ir.jsx)(go.Warning,{children:(0,Hf.__)("Block cannot be rendered inside itself.")})})}function QEe({tagName:e,onSelectTagName:t,clientId:r}){return(0,ir.jsx)(go.InspectorControls,{group:"advanced",children:(0,ir.jsx)(WEe,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Hf.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function Iue({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:s,postType:l}=e,c=(0,go.useHasRecursion)(s);return s&&l&&c?(0,ir.jsx)(YEe,{}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(QEe,{tagName:t,onSelectTagName:d=>{r({tagName:d})},clientId:o}),(0,ir.jsx)(go.RecursionProvider,{uniqueId:s,children:s&&l?(0,ir.jsx)(ZEe,{context:e,parentLayout:i,layoutClassNames:n}):(0,ir.jsx)(KEe,{layoutClassNames:n})})]})}var{name:Rue}=d7,Due={icon:hN,edit:Iue},XEe=()=>M({name:Rue,metadata:d7,settings:Due});var lV={};J(lV,{init:()=>iBe,metadata:()=>p7,name:()=>Oue,settings:()=>Hue});var p7={$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 Lue=a(ne(),1),U0=a(H(),1),Uf=a(A3(),1),li=a(R(),1),ts=a(V(),1),Ra=a(D(),1);var Aue=a(uc(),1),S_=a(O(),1),Mue=a(K(),1);var Fo=a(b(),1);function zue(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:n,name:i}=e;Et(e);let{datetime:s,format:l,isLink:c}=t,u=(0,li.useBlockProps)(),d=X(),[p,m]=(0,U0.useState)(null),f=(0,U0.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,S_.useDispatch)(li.store);(0,U0.useEffect)(()=>{s===void 0&&(g(),n({datetime:new Date}))},[s]);let h=Number.isFinite(o),v=(0,Uf.getSettings)(),{postType:x,siteFormat:_=v.formats.date,siteTimeFormat:k=v.formats.time}=(0,S_.useSelect)(P=>{let{getPostType:N,getEntityRecord:I}=P(Lue.store),B=I("root","site");return{siteFormat:B?.date_format,siteTimeFormat:B?.time_format,postType:r?N(r):null}},[r]),y=(0,S_.useSelect)(P=>P(Mue.store).getActiveBlockVariation(i,t)?.name,[i,t]),w=(0,li.useBlockEditingMode)(),C=s||new Date,S=(0,Fo.jsx)("time",{dateTime:(0,Uf.dateI18n)("c",C),ref:m,children:l==="human-diff"?(0,Uf.humanTimeDiff)(C):(0,Uf.dateI18n)(l||_,C)});return c&&s&&(S=(0,Fo.jsx)("a",{href:"#post-date-pseudo-link",onClick:P=>P.preventDefault(),children:S})),(0,Fo.jsxs)(Fo.Fragment,{children:[(w==="default"||!h)&&y!=="post-date-modified"&&(!h||!y)&&(0,Fo.jsx)(li.BlockControls,{group:"block",children:(0,Fo.jsx)(ts.ToolbarGroup,{children:(0,Fo.jsx)(ts.Dropdown,{popoverProps:f,renderContent:({onClose:P})=>(0,Fo.jsx)(li.__experimentalPublishDateTimePicker,{title:y==="post-date"?(0,Ra.__)("Publish Date"):(0,Ra.__)("Date"),currentDate:s,onChange:N=>n({datetime:N}),is12Hour:eBe(k),onClose:P,dateOrder:(0,Ra._x)("dmy","date order")}),renderToggle:({isOpen:P,onToggle:N})=>{let I=B=>{!P&&B.keyCode===Aue.DOWN&&(B.preventDefault(),N())};return(0,Fo.jsx)(ts.ToolbarButton,{"aria-expanded":P,icon:pm,title:(0,Ra.__)("Change Date"),onClick:N,onKeyDown:I})}})})}),(0,Fo.jsx)(li.InspectorControls,{children:(0,Fo.jsxs)(ts.__experimentalToolsPanel,{label:(0,Ra.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:d,children:[(0,Fo.jsx)(ts.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ra.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,Fo.jsx)(li.__experimentalDateFormatPicker,{format:l,defaultFormat:_,onChange:P=>n({format:P})})}),(0,Fo.jsx)(ts.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:x?.labels?.singular_name?(0,Ra.sprintf)((0,Ra.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,Ra.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,Fo.jsx)(ts.ToggleControl,{label:x?.labels?.singular_name?(0,Ra.sprintf)((0,Ra.__)("Link to %s"),x.labels.singular_name.toLowerCase()):(0,Ra.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,Fo.jsx)("div",{...u,children:S})]})}function eBe(e){return/(?:^|[^\\])[aAgh]/.test(e)}var tBe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},rBe={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},...n},...i}){return ke({metadata:{bindings:{datetime:{source:e,args:{field:t,...r}},...o},...n},...i})},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},oBe={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=T(e,"wp-block-post-date__modified-date")),ke({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},nBe={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 ke(er(e))},isEligible({style:e}){return e?.typography?.fontFamily}},Vue=[tBe,rBe,oBe,nBe];var T_=a(D(),1),aBe=[{name:"post-date",title:(0,T_.__)("Post Date"),description:(0,T_.__)("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,T_.__)("Modified Date"),description:(0,T_.__)("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"}],Fue=aBe;var{name:Oue}=p7,Hue={icon:Zv,edit:zue,deprecated:Vue,variations:Fue},iBe=()=>M({name:Oue,metadata:p7,settings:Hue});var uV={};J(uV,{init:()=>uBe,metadata:()=>m7,name:()=>Zue,settings:()=>Kue});var m7={$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 f7=a(ne(),1),Uue=a(H(),1),Hu=a(R(),1),ju=a(V(),1),Da=a(D(),1),Wue=a(O(),1);var ho=a(b(),1),jue="\u2026";function Gue(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:n,isSelected:i,context:{postId:s,postType:l,queryId:c}}=e;Et(e);let u=Number.isFinite(c),d=Pw("postType",l,s),[p,m,{rendered:f,protected:g}={}]=(0,f7.useEntityProp)("postType",l,"excerpt",s),h=X(),v=(0,Wue.useSelect)(B=>l==="page"?!0:!!B(f7.store).getPostType(l)?.supports?.excerpt,[l]),x=d&&!u&&v,_=(0,Hu.useBlockProps)(),k=(0,Da._x)("words","Word count type. Do not translate!"),y=(0,Uue.useMemo)(()=>{if(!f)return"";let B=new window.DOMParser().parseFromString(f,"text/html");return B.body.textContent||B.body.innerText||""},[f]);if(!l||!s)return(0,ho.jsx)("div",{..._,children:(0,ho.jsx)("p",{children:(0,Da.__)("This block will display the excerpt.")})});if(g&&!d)return(0,ho.jsx)("div",{..._,children:(0,ho.jsx)(Hu.Warning,{children:(0,Da.__)("The content is currently protected and does not have the available excerpt.")})});let w=(0,ho.jsx)(Hu.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Da.__)("\u201CRead more\u201D link text"),placeholder:(0,Da.__)('Add "read more" link text'),value:t,onChange:B=>n({moreText:B}),withoutInteractiveFormatting:!0}),C=T("wp-block-post-excerpt__excerpt",{"is-inline":!r}),S=(p||y).trim(),P="";if(k==="words")P=S.split(/\s+/,o).join(" ");else if(k==="characters_excluding_spaces"){let B=S.split("",o).join(""),E=B.length-B.replaceAll(" ","").length;P=S.split("",o+E).join("")}else k==="characters_including_spaces"&&(P=S.split("",o).join(""));let N=P!==S,I=x?(0,ho.jsx)(Hu.RichText,{className:C,"aria-label":(0,Da.__)("Excerpt text"),value:i?S:(N?P+jue:S)||(0,Da.__)("No excerpt found"),onChange:m,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,ho.jsx)("p",{className:C,children:N?P+jue:S||(0,Da.__)("No excerpt found")});return(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)(Hu.InspectorControls,{children:(0,ho.jsxs)(ju.__experimentalToolsPanel,{label:(0,Da.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:h,children:[(0,ho.jsx)(ju.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Da.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,ho.jsx)(ju.ToggleControl,{label:(0,Da.__)("Show link on new line"),checked:r,onChange:B=>n({showMoreOnNewLine:B})})}),(0,ho.jsx)(ju.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,Da.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,ho.jsx)(ju.RangeControl,{label:(0,Da.__)("Max number of words"),value:o,onChange:B=>{n({excerptLength:B})},min:"10",max:"100"})})]})}),(0,ho.jsxs)("div",{..._,children:[I,!r&&" ",r?(0,ho.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:w}):w]})]})}var cV=a(K(),1),lBe={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,cV.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,cV.createBlock)("core/post-content")}]},$ue=lBe;var cBe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},que=[cBe];var{name:Zue}=m7,Kue={icon:yN,transforms:$ue,edit:Gue,deprecated:que},uBe=()=>M({name:Zue,metadata:m7,settings:Kue});var pV={};J(pV,{init:()=>kBe,metadata:()=>g7,name:()=>cde,settings:()=>ude});var g7={$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 ade=a(Or(),1),P_=a(ne(),1),E_=a(O(),1),Oo=a(V(),1),Vr=a(R(),1),Sp=a(H(),1),Jn=a(D(),1);var ide=a(xr(),1);var xp=a(D(),1),Yue=a(V(),1),h7=a(R(),1);var Que=a(b(),1),{DimensionsTool:pBe}=q(h7.privateApis),mBe="cover",fBe=["aspectRatio","width","height","scale"],gBe=[{value:"cover",label:(0,xp._x)("Cover","Scale option for Image dimension control"),help:(0,xp.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,xp._x)("Contain","Scale option for Image dimension control"),help:(0,xp.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,xp._x)("Fill","Scale option for Image dimension control"),help:(0,xp.__)("Image will be stretched and distorted to completely fill the space.")}],hBe=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:n=!1})=>{let{style:i}=t,s=bh(o),l=Ri({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"aspectRatio"}),c=Ri({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"width"}),u=Ri({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"height"}),d=Ri({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"scale",styleKey:"objectFit"}),[p]=(0,h7.useSettings)("spacing.units"),m=(0,Yue.__experimentalUseCustomUnits)({availableUnits:p||["px","%","vw","em","rem"]});return(0,Que.jsx)(pBe,{panelId:e,value:{aspectRatio:l,width:c,height:u,scale:d},onChange:g=>{let h={...g,width:!g.width&&g.height?"auto":g.width};r(_h({style:i,selectedState:o,hasSelectedStyleState:n,nextDimensions:h,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:fBe}))},defaultScale:mBe,defaultAspectRatio:"auto",scaleOptions:gBe,unitsOptions:m},s)},Xue=hBe;var y7=a(V(),1),wp=a(R(),1),Jue=a(he(),1),v7=a(D(),1),kp=a(b(),1),vBe=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:s,setGradient:l}=(0,wp.__experimentalUseGradient)(),c=(0,wp.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,kp.jsxs)(kp.Fragment,{children:[(0,kp.jsx)(wp.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:s,label:(0,v7.__)("Overlay"),onColorChange:n,onGradientChange:l,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,kp.jsx)(y7.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,v7.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,kp.jsx)(y7.RangeControl,{label:(0,v7.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0})})]}):null},ede=(0,Jue.compose)([(0,wp.withColors)({overlayColor:"background-color"})])(vBe);var Cp=a(R(),1),rde=a(he(),1);function tde(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var ode=a(b(),1),yBe=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:n}=(0,Cp.__experimentalUseGradient)(),i=(0,Cp.__experimentalUseMultipleOriginColorsAndGradients)(),s=(0,Cp.__experimentalUseBorderProps)(e),l={backgroundColor:t.color,backgroundImage:n,...s.style};return!i.hasColorsOrGradients||!r?null:(0,ode.jsx)("span",{"aria-hidden":"true",className:T("wp-block-post-featured-image__overlay",tde(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[o]:o},s.className),style:l})},dV=(0,rde.compose)([(0,Cp.withColors)({overlayColor:"background-color"})])(yBe);var rt=a(b(),1),nde=["image"],{isDefaultBlockStyleState:bBe,ResolutionTool:_Be}=q(Vr.privateApis),W0=e=>e!=null&&e!=="",sde="full";function xBe({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,E_.useSelect)(i=>{let{getSettings:s}=i(Vr.store);return{imageSizes:s().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:s})=>({value:s,label:i}));return(0,rt.jsx)(_Be,{value:t,defaultValue:sde,options:n,onChange:r})}function lde({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:n,queryId:i}}){let s=Number.isFinite(i),{isLink:l,aspectRatio:c,height:u,width:d,scale:p,sizeSlug:m,rel:f,linkTarget:g,useFirstImageFromPost:h}=t,[v,x]=(0,Sp.useState)(),[_,k]=(0,P_.useEntityProp)("postType",n,"featured_media",o),[y]=(0,P_.useEntityProp)("postType",n,"content",o),w=(0,Sp.useMemo)(()=>{if(_)return _;if(!h)return;let oe=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(y);return oe?.groups?.attrs&&JSON.parse(oe.groups.attrs)?.id},[_,h,y]),{media:C,postType:S,postPermalink:P,selectedStyleState:N}=(0,E_.useSelect)(oe=>{let{getEntityRecord:ce,getPostType:pe,getEditedEntityRecord:be}=oe(P_.store),{getSelectedBlockStyleState:Te}=q(oe(Vr.store));return{media:w&&ce("postType","attachment",w,{context:"view"}),postType:n&&pe(n),postPermalink:be("postType",n,o)?.link,selectedStyleState:Te(e)}},[e,w,n,o]),I=!bBe(N),B=C?.media_details?.sizes?.[m]?.source_url||C?.source_url,E=(0,Vr.useBlockProps)({className:T({"is-transient":v})}),L=(0,Vr.__experimentalUseBorderProps)(t),A=(0,Vr.__experimentalGetShadowClassesAndStyles)(t),U=(0,Vr.useBlockEditingMode)(),$=c==="auto"?void 0:c,W=oe=>(0,rt.jsx)(Oo.Placeholder,{className:T("block-editor-media-placeholder",L.className),withIllustration:!0,style:{aspectRatio:$,height:W0(u)?u:W0(d)&&"auto",width:W0(d)?d:!!c&&"100%",...L.style,...A.style},children:oe}),G=oe=>{oe?.id&&k(oe.id),oe?.url&&(0,ade.isBlobURL)(oe.url)&&x(oe.url)},F=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),k(0)};(0,Sp.useEffect)(()=>{B&&v&&x()},[B,v]);let{createErrorNotice:Z}=(0,E_.useDispatch)(ide.store),j=oe=>{Z(oe,{type:"snackbar"}),x()},Y=X(),ee=U==="default"&&(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(Vr.InspectorControls,{group:"color",children:(0,rt.jsx)(ede,{attributes:t,setAttributes:r,clientId:e})}),(0,rt.jsx)(Vr.InspectorControls,{group:"dimensions",resetAllFilter:oe=>xh({attributes:oe,selectedState:N,hasSelectedStyleState:I,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,rt.jsx)(Xue,{clientId:e,attributes:t,setAttributes:r,media:C,selectedStyleState:N,hasSelectedStyleState:I})}),(w||s||!o)&&(0,rt.jsx)(Vr.InspectorControls,{children:(0,rt.jsxs)(Oo.__experimentalToolsPanel,{label:(0,Jn.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:sde})},dropdownMenuProps:Y,children:[(0,rt.jsx)(Oo.__experimentalToolsPanelItem,{label:S?.labels?.singular_name?(0,Jn.sprintf)((0,Jn.__)("Link to %s"),S.labels.singular_name):(0,Jn.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({isLink:!1}),children:(0,rt.jsx)(Oo.ToggleControl,{label:(0,Jn.__)("Make image a link"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,rt.jsx)(Oo.__experimentalToolsPanelItem,{label:(0,Jn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>g!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,rt.jsx)(Oo.ToggleControl,{label:(0,Jn.__)("Open in new tab"),onChange:oe=>r({linkTarget:oe?"_blank":"_self"}),checked:g==="_blank"})}),l&&(0,rt.jsx)(Oo.__experimentalToolsPanelItem,{label:(0,Jn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,rt.jsx)(Oo.TextControl,{label:(0,Jn.__)("Link relation"),help:(0,Sp.createInterpolateElement)((0,Jn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,rt.jsx)(Oo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:oe=>r({rel:oe})})}),!!C&&(0,rt.jsx)(xBe,{image:C,value:m,onChange:oe=>r({sizeSlug:oe})})]})})]}),te;if(!w&&(s||!o))return(0,rt.jsxs)(rt.Fragment,{children:[ee,(0,rt.jsxs)("div",{...E,children:[l?(0,rt.jsx)("a",{href:P,target:g,children:W()}):W(),(0,rt.jsx)(dV,{attributes:t,setAttributes:r,clientId:e})]})]});let Q=(0,Jn.__)("Add a featured image"),le={...L.style,...A.style,aspectRatio:$,height:W0(u)?u:W0(d)&&"auto",width:W0(d)?d:!!c&&"100%",objectFit:!!(u||c)&&p};return!w&&!v?te=(0,rt.jsx)(Vr.MediaPlaceholder,{onSelect:G,accept:"image/*",allowedTypes:nde,onError:j,placeholder:W,mediaLibraryButton:({open:oe})=>(0,rt.jsx)(Oo.Button,{__next40pxDefaultSize:!0,icon:cu,variant:"primary",label:Q,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{oe()}})}):te=!C&&!v?W():(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)("img",{className:L.className,src:v||B,alt:C&&C?.alt_text?(0,Jn.sprintf)((0,Jn.__)("Featured image: %s"),C.alt_text):(0,Jn.__)("Featured image"),style:le}),v&&(0,rt.jsx)(Oo.Spinner,{})]}),(0,rt.jsxs)(rt.Fragment,{children:[!v&&ee,!!C&&!s&&(0,rt.jsx)(Vr.BlockControls,{group:"other",children:(0,rt.jsx)(Vr.MediaReplaceFlow,{mediaId:w,mediaURL:B,allowedTypes:nde,accept:"image/*",onSelect:G,onError:j,onReset:F})}),(0,rt.jsxs)("figure",{...E,children:[l?(0,rt.jsx)("a",{href:P,target:g,children:te}):te,(0,rt.jsx)(dV,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:cde}=g7,ude={icon:_N,edit:lde},kBe=()=>M({name:cde,metadata:g7,settings:ude});var mV={};J(mV,{init:()=>SBe,metadata:()=>b7,name:()=>yde,settings:()=>bde});var vde=a(D(),1);var b7={$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 Cn=a(V(),1),Wf=a(R(),1),Sr=a(D(),1),dde=a(O(),1),pde=a(ne(),1);var Fr=a(b(),1);function mde({context:{postType:e},attributes:{type:t,label:r,showTitle:o,linkLabel:n,arrow:i,taxonomy:s},setAttributes:l}){let c=t==="next",u=c?(0,Sr.__)("Next"):(0,Sr.__)("Previous"),p={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];o&&(u=c?(0,Sr.__)("Next: "):(0,Sr.__)("Previous: "));let m=c?(0,Sr.__)("Next post"):(0,Sr.__)("Previous post"),f=(0,Wf.useBlockProps)(),g=(0,dde.useSelect)(x=>{let{getTaxonomies:_}=x(pde.store);return _({type:e,per_page:-1})},[e]),h=()=>{let x={label:(0,Sr.__)("Unfiltered"),value:""},_=(g??[]).filter(({visibility:k})=>!!k?.publicly_queryable).map(k=>({value:k.slug,label:k.name}));return[x,..._]},v=X();return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(Wf.InspectorControls,{children:(0,Fr.jsxs)(Cn.__experimentalToolsPanel,{label:(0,Sr.__)("Settings"),resetAll:()=>{l({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:v,children:[(0,Fr.jsx)(Cn.__experimentalToolsPanelItem,{label:(0,Sr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>l({showTitle:!1}),children:(0,Fr.jsx)(Cn.ToggleControl,{label:(0,Sr.__)("Display the title as a link"),help:(0,Sr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>l({showTitle:!o})})}),o&&(0,Fr.jsx)(Cn.__experimentalToolsPanelItem,{label:(0,Sr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>l({linkLabel:!1}),children:(0,Fr.jsx)(Cn.ToggleControl,{label:(0,Sr.__)("Include the label as part of the link"),checked:!!n,onChange:()=>l({linkLabel:!n})})}),(0,Fr.jsx)(Cn.__experimentalToolsPanelItem,{label:(0,Sr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>l({arrow:"none"}),children:(0,Fr.jsxs)(Cn.__experimentalToggleGroupControl,{label:(0,Sr.__)("Arrow"),value:i,onChange:x=>{l({arrow:x})},help:(0,Sr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Fr.jsx)(Cn.__experimentalToggleGroupControlOption,{value:"none",label:(0,Sr._x)("None","Arrow option for Next/Previous link")}),(0,Fr.jsx)(Cn.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Sr._x)("Arrow","Arrow option for Next/Previous link")}),(0,Fr.jsx)(Cn.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Sr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Fr.jsx)(Wf.InspectorControls,{group:"advanced",children:(0,Fr.jsx)(Cn.SelectControl,{label:(0,Sr.__)("Filter by taxonomy"),value:s,options:h(),onChange:x=>l({taxonomy:x}),help:(0,Sr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Fr.jsxs)("div",{...f,children:[!c&&p&&(0,Fr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,Fr.jsx)(Wf.RichText,{tagName:"a",identifier:"label","aria-label":m,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:x=>l({label:x})}),o&&(0,Fr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:x=>x.preventDefault(),children:(0,Sr.__)("An example title")}),c&&p&&(0,Fr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})}var Gf=a(D(),1);var fde=[{name:"post-previous",title:(0,Gf.__)("Previous Post"),description:(0,Gf.__)("Displays the post link that precedes the current post."),icon:PN,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Gf.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Gf.__)("Next Post"),description:(0,Gf.__)("Displays the post link that follows the current post."),icon:Av,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Gf.__)("Next post"),arrow:"arrow"}}}];fde.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var gde=fde;var CBe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},hde=[CBe];var{name:yde}=b7,bde={icon:Av,edit:mde,variations:gde,deprecated:hde,example:{attributes:{label:(0,vde.__)("Next post"),arrow:"arrow"}}},SBe=()=>M({name:yde,metadata:b7,settings:bde});var fV={};J(fV,{init:()=>RBe,metadata:()=>_7,name:()=>Tde,settings:()=>Pde});var _7={$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 G0=a(H(),1),_de=a(O(),1),B_=a(D(),1),Hs=a(R(),1),x7=a(V(),1),xde=a(ne(),1);var ea=a(b(),1),PBe={type:"default"};function EBe({classList:e}){let t=(0,Hs.useInnerBlocksProps)({className:T("wp-block-post",e)},{__unstableDisableLayoutClassNames:!0,layout:PBe});return(0,ea.jsx)("li",{...t})}function BBe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,Hs.__experimentalUseBlockPreview)({blocks:e,props:{className:T("wp-block-post",r)}}),s=()=>{n(t)};return(0,ea.jsx)("li",{...i,tabIndex:0,role:"button",onClick:s,onKeyPress:s,style:{display:o?"none":void 0}})}var NBe=(0,G0.memo)(BBe);function kde({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:n="post",order:i,orderBy:s,author:l,search:c,exclude:u,sticky:d,inherit:p,taxQuery:m,parents:f,pages:g,format:h,excludeCurrent:v,...x}={},templateSlug:_,previewPostType:k,postId:y},attributes:{layout:w},__unstableLayoutClassNames:C}){let{type:S,columnCount:P=3,minimumColumnWidth:N}=w||{},[I,B]=(0,G0.useState)(),{posts:E,blocks:L}=(0,_de.useSelect)(G=>{let{getEntityRecords:F,getTaxonomies:Z}=G(xde.store),{getBlocks:j}=G(Hs.store),Y=p&&_?.startsWith("category-")&&F("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:_.replace("category-","")}),ee=p&&_?.startsWith("tag-")&&F("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:_.replace("tag-","")}),te={offset:o||0,order:i,orderby:s};if(m&&!p){let oe=Z({type:n,per_page:-1,context:"view"}),ce=(be,Te="")=>Object.entries(be||{}).reduce((ae,[se,ue])=>{let Oe=oe?.find(({slug:Pe})=>Pe===se);return Oe?.rest_base&&ue?.length&&(ae[Oe.rest_base+Te]=ue),ae},{}),pe=ce(m.include);m.exclude&&Object.assign(pe,ce(m.exclude,"_exclude")),Object.keys(pe).length&&Object.assign(te,pe)}r&&(te.per_page=r),l&&(te.author=l),c&&(te.search=c),u?.length&&(te.exclude=u),f?.length&&(te.parent=f),h?.length&&(te.format=h),v&&y&&(te.exclude?te.exclude=[...te.exclude,y]:te.exclude=[y]),["exclude","only"].includes(d)&&(te.sticky=d==="only"),["","ignore"].includes(d)&&(delete te.sticky,te.ignore_sticky=d==="ignore");let Q=n;return p&&(_?.startsWith("archive-")?(te.postType=_.replace("archive-",""),Q=te.postType):Y?te.categories=Y[0]?.id:ee?te.tags=ee[0]?.id:_?.startsWith("taxonomy-post_format")&&(te.format=_.replace("taxonomy-post_format-post-format-",""))),{posts:F("postType",k||Q,{...te,...x}),blocks:j(t)}},[r,o,i,s,t,l,c,n,u,d,p,_,m,f,h,x,k]),A=(0,G0.useMemo)(()=>E?.map(G=>({postType:G.type,postId:G.id,classList:G.class_list??""})),[E]),U=(0,Hs.useBlockProps)({className:T(C,{[`columns-${P}`]:S==="grid"&&P,"has-native-responsive-grid":S==="grid"&&P&&N})});if(!E)return(0,ea.jsx)("p",{...U,children:(0,ea.jsx)(x7.Spinner,{})});if(!E.length)return(0,ea.jsxs)("p",{...U,children:[" ",(0,B_.__)("No results found.")]});let $=G=>e({layout:{...w,...G}}),W=[{icon:dl,title:(0,B_._x)("List view","Post template block display setting"),onClick:()=>$({type:"default"}),isActive:S==="default"||S==="constrained"},{icon:ki,title:(0,B_._x)("Grid view","Post template block display setting"),onClick:()=>$({type:"grid",columnCount:P}),isActive:S==="grid"}];return(0,ea.jsxs)(ea.Fragment,{children:[(0,ea.jsx)(Hs.BlockControls,{children:(0,ea.jsx)(x7.ToolbarGroup,{controls:W})}),(0,ea.jsx)("ul",{...U,children:A&&A.map(G=>(0,ea.jsxs)(Hs.BlockContextProvider,{value:G,children:[G.postId===(I||A[0]?.postId)?(0,ea.jsx)(EBe,{classList:G.classList}):null,(0,ea.jsx)(NBe,{blocks:L,blockContextId:G.postId,classList:G.classList,setActiveBlockContextId:B,isHidden:G.postId===(I||A[0]?.postId)})]},G.postId))})]})}var wde=a(R(),1),Cde=a(b(),1);function Sde(){return(0,Cde.jsx)(wde.InnerBlocks.Content,{})}var{name:Tde}=_7,IBe=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]],Pde={icon:cm,template:IBe,edit:kde,save:Sde},RBe=()=>M({name:Tde,metadata:_7,settings:Pde});var gV={};J(gV,{init:()=>zBe,metadata:()=>k7,name:()=>Fde,settings:()=>Ode});var Vde=a(Ad(),1);var k7={$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 Uu=a(R(),1),w7=a(K(),1),C7=a(V(),1),Rde=a(O(),1),Dde=a(Wo(),1),Tp=a(D(),1),Lde=a(ne(),1);var Ede=a(ne(),1),Bde=a(O(),1),LBe=[];function Nde({postId:e,term:t}){let{slug:r}=t;return(0,Bde.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:LBe,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:s}=o(Ede.store),l=["taxonomy",r,{post:e,per_page:-1,context:"view"}],c=i(...l);return{postTerms:c,isLoading:s("getEntityRecords",l),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,r])}var ta=a(b(),1),Ide=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function Ade({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:n,insertBlocksAfter:i}){let{term:s,separator:l,prefix:c,suffix:u}=e,{postId:d,postType:p}=r,m=(0,Rde.useSelect)(k=>{if(!s)return{};let{getTaxonomy:y}=k(Lde.store),w=y(s);return w?.visibility?.publicly_queryable?w:{}},[s]),{postTerms:f,hasPostTerms:g,isLoading:h}=Nde({postId:d,term:m}),v=d&&p,x=(0,Uu.useBlockDisplayInformation)(t),_=(0,Uu.useBlockProps)({className:s&&`taxonomy-${s}`});return(0,ta.jsxs)(ta.Fragment,{children:[(0,ta.jsx)(Uu.InspectorControls,{group:"advanced",children:(0,ta.jsx)(C7.TextControl,{autoComplete:"off",label:(0,Tp.__)("Separator"),value:l||"",onChange:k=>{n({separator:k})},help:(0,Tp.__)("Enter character(s) used to separate terms.")})}),(0,ta.jsxs)("div",{..._,children:[h&&v&&(0,ta.jsx)(C7.Spinner,{}),!h&&(o||c)&&(0,ta.jsx)(Uu.RichText,{identifier:"prefix",allowedFormats:Ide,className:"wp-block-post-terms__prefix","aria-label":(0,Tp.__)("Prefix"),placeholder:(0,Tp.__)("Prefix")+" ",value:c,onChange:k=>n({prefix:k}),tagName:"span"}),(!v||!s)&&(0,ta.jsx)("span",{children:x.title}),v&&!h&&g&&f.map(k=>(0,ta.jsx)("a",{href:k.link,onClick:y=>y.preventDefault(),rel:"tag",children:(0,Dde.decodeEntities)(k.name)},k.id)).reduce((k,y)=>(0,ta.jsxs)(ta.Fragment,{children:[k,(0,ta.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),y]})),v&&!h&&!g&&(m?.labels?.no_terms||(0,Tp.__)("Term items not found.")),!h&&(o||u)&&(0,ta.jsx)(Uu.RichText,{identifier:"suffix",allowedFormats:Ide,className:"wp-block-post-terms__suffix","aria-label":(0,Tp.__)("Suffix"),placeholder:" "+(0,Tp.__)("Suffix"),value:u,onChange:k=>n({suffix:k}),tagName:"span",__unstableOnSplitAtEnd:i?()=>i((0,w7.createBlock)((0,w7.getDefaultBlockName)())):void 0})]})]})}var ABe={category:Hg,post_tag:wN};function Mde(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:ABe[o.name]??Hg}));return{...e,variations:r}}var MBe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},zde=[MBe];var{name:Fde}=k7,Ode={icon:Hg,edit:Ade,deprecated:zde},zBe=()=>((0,Vde.addFilter)("blocks.registerBlockType","core/template-part",Mde),M({name:Fde,metadata:k7,settings:Ode}));var hV={};J(hV,{init:()=>jBe,metadata:()=>S7,name:()=>Kde,settings:()=>Yde});var S7={$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 ra=a(D(),1),Ude=a(H(),1),T7=a(R(),1),$0=a(V(),1),Wde=a(K(),1),P7=a(ne(),1),Gde=a(jde(),1);var Uc=a(b(),1);function FBe({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:n,averageReadingSpeed:i}=e,{postId:s,postType:l}=r,c=X(),[u]=(0,P7.useEntityProp)("postType",l,"content",s),[d]=(0,P7.useEntityBlockEditor)("postType",l,{id:s}),p=(0,Ude.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:d}):d?f=(0,Wde.__unstableSerializeAndClean)(d):f=u;let g=(0,ra._x)("words","Word count type. Do not translate!"),h=(0,Gde.count)(f||"",g);if(n==="time"){if(o){let x=Math.max(1,Math.round(h/i*1.2)),_=Math.max(1,Math.round(h/i*.8));_===x&&(x=x+1);let k=(0,ra._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,ra.sprintf)(k,_,x)}let v=Math.max(1,Math.round(h/i));return(0,ra.sprintf)((0,ra._n)("%s minute","%s minutes",v),v)}if(n==="words")return g==="words"?(0,ra.sprintf)((0,ra._n)("%s word","%s words",h),h.toLocaleString()):(0,ra.sprintf)((0,ra._n)("%s character","%s characters",h),h.toLocaleString())},[u,d,o,n,i]),m=(0,T7.useBlockProps)();return(0,Uc.jsxs)(Uc.Fragment,{children:[n==="time"&&(0,Uc.jsx)(T7.InspectorControls,{children:(0,Uc.jsx)($0.__experimentalToolsPanel,{label:(0,ra.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,Uc.jsx)($0.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ra._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Uc.jsx)($0.ToggleControl,{label:(0,ra.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,Uc.jsx)("div",{...m,children:p})]})}var $de=FBe;var N_=a(D(),1);var OBe=[{name:"time-to-read",title:(0,N_.__)("Time to Read"),description:(0,N_.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:Cy,isDefault:!0},{name:"word-count",title:(0,N_.__)("Word Count"),description:(0,N_.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:HI}],qde=OBe;var HBe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Zde=[HBe];var{name:Kde}=S7,Yde={icon:Cy,edit:$de,variations:qde,example:{},deprecated:Zde},jBe=()=>M({name:Kde,metadata:S7,settings:Yde});var vV={};J(vV,{init:()=>$Be,metadata:()=>E7,name:()=>tpe,settings:()=>rpe});var E7={$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 os=a(R(),1),rs=a(V(),1),ci=a(D(),1),I_=a(ne(),1),Qde=a(O(),1),Xde=a(H(),1);var sr=a(b(),1);function Jde({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:n,placeholder:i},setAttributes:s,context:{postType:l,postId:c,queryId:u}}){let d=e===0?"p":`h${e}`,p=Number.isFinite(u),m=(0,Qde.useSelect)(w=>p?!1:w(I_.store).canUser("update",{kind:"postType",name:l,id:c}),[p,l,c]),[f="",g,h]=(0,I_.useEntityProp)("postType",l,"title",c),[v]=(0,I_.useEntityProp)("postType",l,"link",c),x=(0,os.useBlockProps)(),_=(0,os.useBlockEditingMode)(),k=X(),y=(0,sr.jsx)(d,{...x,children:i||(0,ci.__)("Title")});return l&&c&&(y=m?(0,sr.jsx)(os.PlainText,{tagName:d,placeholder:(0,ci.__)("(no title)"),value:f,onChange:g,__experimentalVersion:2,disableLineBreaks:!0,...x}):(0,sr.jsx)(d,{...x,dangerouslySetInnerHTML:{__html:h?.rendered||(0,ci.__)("(no title)")}})),r&&l&&c&&(y=m?(0,sr.jsx)(d,{...x,children:(0,sr.jsx)(os.PlainText,{tagName:"a",href:v,target:n,rel:o,placeholder:f.length?null:(0,ci.__)("(no title)"),value:f,onChange:g,__experimentalVersion:2,disableLineBreaks:!0})}):(0,sr.jsx)(d,{...x,children:(0,sr.jsx)("a",{href:v,target:n,rel:o,onClick:w=>w.preventDefault(),dangerouslySetInnerHTML:{__html:h?.rendered||(0,ci.__)("(no title)")}})})),(0,sr.jsxs)(sr.Fragment,{children:[_==="default"&&(0,sr.jsxs)(sr.Fragment,{children:[(0,sr.jsx)(os.BlockControls,{group:"block",children:(0,sr.jsx)(os.HeadingLevelDropdown,{value:e,options:t,onChange:w=>s({level:w})})}),(0,sr.jsx)(os.InspectorControls,{children:(0,sr.jsxs)(rs.__experimentalToolsPanel,{label:(0,ci.__)("Settings"),resetAll:()=>{s({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:k,children:[(0,sr.jsx)(rs.__experimentalToolsPanelItem,{label:(0,ci.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>s({isLink:!1}),children:(0,sr.jsx)(rs.ToggleControl,{label:(0,ci.__)("Make title a link"),onChange:()=>s({isLink:!r}),checked:r})}),r&&(0,sr.jsxs)(sr.Fragment,{children:[(0,sr.jsx)(rs.__experimentalToolsPanelItem,{label:(0,ci.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>s({linkTarget:"_self"}),children:(0,sr.jsx)(rs.ToggleControl,{label:(0,ci.__)("Open in new tab"),onChange:w=>s({linkTarget:w?"_blank":"_self"}),checked:n==="_blank"})}),(0,sr.jsx)(rs.__experimentalToolsPanelItem,{label:(0,ci.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>s({rel:""}),children:(0,sr.jsx)(rs.TextControl,{label:(0,ci.__)("Link relation"),help:(0,Xde.createInterpolateElement)((0,ci.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,sr.jsx)(rs.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:w=>s({rel:w})})})]})]})})]}),y]})}var WBe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},GBe={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:er,isEligible({style:e}){return e?.typography?.fontFamily}},epe=[WBe,GBe];var{name:tpe}=E7,rpe={icon:pl,edit:Jde,deprecated:epe},$Be=()=>M({name:tpe,metadata:E7,settings:rpe});var xV={};J(xV,{init:()=>QBe,metadata:()=>I7,name:()=>lpe,settings:()=>D7});var _V=a(D(),1);var spe=a(K(),1);var yV=a(D(),1),B7=a(R(),1),N7=a(K(),1),ope=a(b(),1);function npe({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:n,style:i}){let{content:s}=e,l=(0,B7.useBlockProps)({style:i});return(0,ope.jsx)(B7.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,yV.__)("Preformatted text"),placeholder:(0,yV.__)("Write preformatted text\u2026"),onMerge:t,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:n?()=>n((0,N7.createBlock)((0,N7.getDefaultBlockName)())):void 0})}var I7={$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 R7=a(R(),1),bV=a(b(),1);function ape({attributes:e}){let{content:t}=e;return(0,bV.jsx)("pre",{...R7.useBlockProps.save(),children:(0,bV.jsx)(R7.RichText.Content,{value:t})})}var R_=a(K(),1),ZBe={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,R_.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,R_.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,R_.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,R_.createBlock)("core/verse",e)}]},ipe=ZBe;var{fieldsKey:KBe,formKey:YBe}=q(spe.privateApis),{name:lpe}=I7,D7={icon:SN,example:{attributes:{content:(0,_V.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
 139  Window, very small in the distance, illuminated.
 140  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:ipe,edit:npe,save:ape,merge(e,t){return{content:e.content+`
 141  
 142  `+t.content}}};window.__experimentalContentOnlyInspectorFields&&(D7[KBe]=[{id:"content",label:(0,_V.__)("Content"),type:"text",Edit:"rich-text"}],D7[YBe]={fields:["content"]});var QBe=()=>M({name:lpe,metadata:I7,settings:D7});var kV={};J(kV,{init:()=>uNe,metadata:()=>A7,name:()=>ype,settings:()=>M7});var A_=a(D(),1);var vpe=a(K(),1);var lt=a(R(),1),upe=a(O(),1);var $f="is-style-solid-color";var Kt=a(b(),1),D_={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 cpe(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function qf(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var XBe={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,n=!lt.RichText.isEmpty(r);return(0,Kt.jsx)("figure",{...lt.useBlockProps.save({className:T({[`has-text-align-${t}`]:t})}),children:(0,Kt.jsxs)("blockquote",{children:[(0,Kt.jsx)(lt.RichText.Content,{tagName:"p",value:o}),n&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:ke},JBe={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,n=!lt.RichText.isEmpty(r);return(0,Kt.jsx)("figure",{...lt.useBlockProps.save({className:T({[`has-text-align-${t}`]:t})}),children:(0,Kt.jsxs)("blockquote",{children:[(0,Kt.jsx)(lt.RichText.Content,{value:o,multiline:!0}),n&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return ke({value:qf(e),...t})}},eNe={attributes:{...D_},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:n,value:i,citation:s,className:l}=e,c=l?.includes($f),u,d;if(c){let g=(0,lt.getColorClassName)("background-color",t);u=T({"has-background":g||r,[g]:g}),d={backgroundColor:g?void 0:r}}else r&&(d={borderColor:r});let p=(0,lt.getColorClassName)("color",n),m=T({"has-text-color":n||o,[p]:p}),f=p?void 0:{color:o};return(0,Kt.jsx)("figure",{...lt.useBlockProps.save({className:u,style:d}),children:(0,Kt.jsxs)("blockquote",{className:m,style:f,children:[(0,Kt.jsx)(lt.RichText.Content,{value:i,multiline:!0}),!lt.RichText.isEmpty(s)&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let s=t?.includes($f),l;return o&&(s?l={color:{background:o}}:l={border:{color:o}}),n&&l&&(l.color={...l.color,text:n}),ke({value:qf(e),className:t,backgroundColor:s?r:void 0,borderColor:s?void 0:r,textAlign:s?"left":void 0,...i,style:l})}},tNe={attributes:{...D_,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:s,className:l,figureStyle:c}=e,u=l?.includes($f),d,p;if(u){let h=(0,lt.getColorClassName)("background-color",t);d=T({"has-background":h||r,[h]:h}),p={backgroundColor:h?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:cpe(c)});let m=(0,lt.getColorClassName)("color",o),f=(o||n)&&T("has-text-color",{[m]:m});return(0,Kt.jsx)("figure",{className:d,style:p,children:(0,Kt.jsxs)("blockquote",{className:f,style:m?void 0:{color:n},children:[(0,Kt.jsx)(lt.RichText.Content,{value:i,multiline:!0}),!lt.RichText.isEmpty(s)&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:n,customTextColor:i,...s}){let l=t?.includes($f),c;if(n&&(l?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!l&&o&&r){let u=cpe(r);if(u)return{value:qf(e),...s,className:t,style:{border:{color:u}}}}return ke({value:qf(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,...s,style:c})}},rNe={attributes:D_,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:s,className:l}=e,c=l?.includes($f),u,d;if(c)u=(0,lt.getColorClassName)("background-color",t),u||(d={backgroundColor:r});else if(r)d={borderColor:r};else if(t){let g=(0,upe.select)(lt.store).getSettings().colors??[];d={borderColor:(0,lt.getColorObjectByAttributeValues)(g,t).color}}let p=(0,lt.getColorClassName)("color",o),m=o||n?T("has-text-color",{[p]:p}):void 0;return(0,Kt.jsx)("figure",{className:u,style:d,children:(0,Kt.jsxs)("blockquote",{className:m,style:p?void 0:{color:n},children:[(0,Kt.jsx)(lt.RichText.Content,{value:i,multiline:!0}),!lt.RichText.isEmpty(s)&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let s=t?.includes($f),l={};return o&&(s?l={color:{background:o}}:l={border:{color:o}}),n&&l&&(l.color={...l.color,text:n}),ke({value:qf(e),className:t,backgroundColor:s?r:void 0,borderColor:s?void 0:r,textAlign:s?"left":void 0,...i,style:l})}},oNe={attributes:{...D_},save({attributes:e}){let{value:t,citation:r}=e;return(0,Kt.jsxs)("blockquote",{children:[(0,Kt.jsx)(lt.RichText.Content,{value:t,multiline:!0}),!lt.RichText.isEmpty(r)&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:qf(e),...t}}},nNe={attributes:{...D_,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,Kt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Kt.jsx)(lt.RichText.Content,{value:t,multiline:!0}),!lt.RichText.isEmpty(r)&&(0,Kt.jsx)(lt.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:qf(e),...t}}},dpe=[XBe,JBe,eNe,tNe,rNe,oNe,nNe];var L_=a(D(),1),q0=a(R(),1),L7=a(K(),1);var ppe="figure";var mpe="blockquote";var Wu=a(b(),1);function aNe(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n}=e;Et(e);let{citation:i,value:s}=t,l=(0,q0.useBlockProps)(),c=!q0.RichText.isEmpty(i)||o;return(0,Wu.jsx)(Wu.Fragment,{children:(0,Wu.jsx)(ppe,{...l,children:(0,Wu.jsxs)(mpe,{children:[(0,Wu.jsx)(q0.RichText,{identifier:"value",tagName:"p",value:s,onChange:u=>r({value:u}),"aria-label":(0,L_.__)("Pullquote text"),placeholder:(0,L_.__)("Add quote")}),c&&(0,Wu.jsx)(q0.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,L_.__)("Pullquote citation text"),placeholder:(0,L_.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:n?()=>n((0,L7.createBlock)((0,L7.getDefaultBlockName)())):void 0})]})})})}var fpe=aNe;var A7={$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 Z0=a(R(),1),K0=a(b(),1);function gpe({attributes:e}){let{citation:t,value:r}=e,o=!Z0.RichText.isEmpty(t);return(0,K0.jsx)("figure",{...Z0.useBlockProps.save(),children:(0,K0.jsxs)("blockquote",{children:[(0,K0.jsx)(Z0.RichText.Content,{tagName:"p",value:r}),o&&(0,K0.jsx)(Z0.RichText.Content,{tagName:"cite",value:t})]})})}var Gu=a(K(),1),Y0=a(hl(),1),sNe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Gu.createBlock)("core/pullquote",{value:(0,Y0.toHTMLString)({value:(0,Y0.join)(e.map(({content:t})=>(0,Y0.create)({html:t})),`
 143  `)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Gu.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,Gu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,Gu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,Gu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Gu.createBlock)("core/heading",{content:t});let r=(0,Gu.createBlock)("core/heading",{content:e});return t?[r,(0,Gu.createBlock)("core/heading",{content:t})]:r}}]},hpe=sNe;var{fieldsKey:lNe,formKey:cNe}=q(vpe.privateApis),{name:ype}=A7,M7={icon:IN,example:{attributes:{value:(0,A_.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,A_.__)("Matt Mullenweg")}},transforms:hpe,edit:fpe,save:gpe,deprecated:dpe};window.__experimentalContentOnlyInspectorFields&&(M7[lNe]=[{id:"value",label:(0,A_.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,A_.__)("Citation"),type:"text",Edit:"rich-text"}],M7[cNe]={fields:["value","citation"]});var uNe=()=>M({name:ype,metadata:A7,settings:M7});var FV={};J(FV,{init:()=>ONe,metadata:()=>z7,name:()=>Wme,settings:()=>Gme});var z7={$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,spacing:{blockGap:!0},interactivity:!0},editorStyle:"wp-block-query-editor"};var Bme=a(O(),1),Nme=a(H(),1),Ime=a(R(),1);var O_=a(O(),1),Cme=a(he(),1),r1=a(H(),1),Ws=a(R(),1),o1=a(D(),1),Sme=a(ne(),1),Tme=a(xr(),1);var Bpe=a(V(),1),Qf=a(D(),1);var Wc=a(O(),1),Kf=a(H(),1),M_=a(ne(),1),V7=a(R(),1),bpe=a(Wo(),1),Zf=a(D(),1),Yf=a(K(),1),z_=e=>{let t=e?.reduce((r,o)=>{let{mapById:n,mapByName:i,names:s}=r;return n[o.id]=o,i[o.name]=o,s.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},pNe=(e,t)=>{let r=t.split("."),o=e;return r.forEach(n=>{o=o?.[n]}),o},wV=(e,t)=>(e||[]).map(r=>({...r,name:(0,bpe.decodeEntities)(pNe(r,t))})),_pe=()=>{let e=(0,Wc.useSelect)(n=>{let{getPostTypes:i}=n(M_.store),s=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!s.includes(u))},[]),t=(0,Kf.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,Kf.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),o=(0,Kf.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},F7=e=>{let t=(0,Wc.useSelect)(r=>{let{getTaxonomies:o,getPostType:n}=r(M_.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,Kf.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function xpe(e){return(0,Wc.useSelect)(t=>{let r=t(M_.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function kpe(e){let t=(0,Wc.useSelect)(r=>!!r(M_.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Kf.useMemo)(()=>{let r=[{label:(0,Zf.__)("Newest to oldest"),value:"date/desc"},{label:(0,Zf.__)("Oldest to newest"),value:"date/asc"},{label:(0,Zf.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Zf.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Zf.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Zf.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function wpe(e){return(0,Wc.useSelect)(t=>t(Yf.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function ui(e,t){return e?e.includes(t):!0}var Cpe=(e,t)=>{let{query:{postType:r,inherit:o},namespace:n}=t,i=e.map(c=>(0,Yf.cloneBlock)(c)),s=[],l=[...i];for(;l.length>0;){let c=l.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:o},n&&(c.attributes.namespace=n),s.push(c.clientId)),c.innerBlocks?.forEach(u=>{l.push(u)})}return{newBlocks:i,queryClientIds:s}};function Spe(e,t){return(0,Wc.useSelect)(r=>{let o=r(Yf.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(V7.store),s=n(e);return i(`core/query/${o}`,s).length>0?`core/query/${o}`:"core/query"},[e,t])}function Tpe(e){let{activeVariationName:t,blockVariations:r}=(0,Wc.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:s}=n(Yf.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:s("core/query","block")}},[e]);return(0,Kf.useMemo)(()=>{let n=s=>!s.attributes?.namespace;if(!t)return r.filter(n);let i=r.filter(s=>s.attributes?.namespace?.includes(t));return i.length?i:r.filter(n)},[t,r])}var Ppe=(e,t)=>(0,Wc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:n}=r(V7.store),i=o(e);return n(t,i)},[t,e]),O7=e=>(0,Wc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(V7.store),{getBlockSupport:n,getBlockType:i}=t(Yf.store),s=new Set;return r(e).forEach(l=>{let c=o(l),u=Object.is(n(c,"interactivity"),!0),d=n(c,"interactivity.clientNavigation");!u&&!d&&s.add(i(c)?.title||c)}),[...s]},[e]);function Epe(e){if(!e)return{isSingular:!0};let t=!1,r=e==="wp"?"custom":e,o=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return e.includes("-")&&e.split("-").slice(1).join("-")&&(r=n),t=o.includes(r),{isSingular:t,templateType:r}}var V_=a(b(),1);function Npe({enhancedPagination:e,setAttributes:t,clientId:r}){let o=O7(r),n=(0,Qf.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o.length&&(n=(0,Qf.sprintf)((0,Qf.__)("Some blocks aren't supported: %s. Remove them to change this setting."),o.join((0,Qf.__)(", ")))),(0,V_.jsx)(V_.Fragment,{children:(0,V_.jsx)(Bpe.ToggleControl,{label:(0,Qf.__)("Reload full page"),help:n,checked:!e,disabled:!!o.length,onChange:i=>{t({enhancedPagination:!i})}})})}var yt=a(V(),1),BV=a(O(),1),NV=a(ne(),1),Nt=a(D(),1),bme=a(he(),1),U7=a(H(),1);var Ipe=a(V(),1),Q0=a(D(),1),Rpe=a(b(),1),mNe=[{label:(0,Q0.__)("Newest to oldest"),value:"date/desc"},{label:(0,Q0.__)("Oldest to newest"),value:"date/asc"},{label:(0,Q0.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Q0.__)("Z \u2192 A"),value:"title/desc"}];function fNe({order:e,orderBy:t,orderByOptions:r=mNe,onChange:o}){return(0,Rpe.jsx)(Ipe.SelectControl,{label:(0,Q0.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,s]=n.split("/");o({order:s,orderBy:i})}})}var Dpe=fNe;var Lpe=a(D(),1),Ape=a(V(),1),Mpe=a(O(),1),zpe=a(ne(),1);var Vpe=a(b(),1),gNe={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function hNe({value:e,onChange:t}){let r=(0,Mpe.useSelect)(c=>{let{getUsers:u}=c(zpe.store);return u(gNe)},[]);if(!r)return null;let o=z_(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let d=o.mapById[u];return d&&c.push({id:u,value:d.name}),c},[]),s=(c,u)=>{let d=u?.id||c[u]?.id;if(d)return d},l=c=>{let u=Array.from(c.reduce((d,p)=>{let m=s(o.mapByName,p);return m&&d.add(m),d},new Set));t({author:u.join(",")})};return(0,Vpe.jsx)(Ape.FormTokenField,{label:(0,Lpe.__)("Authors"),value:i,suggestions:o.names,onChange:l,help:""})}var Fpe=hNe;var Hpe=a(D(),1),jpe=a(V(),1),CV=a(O(),1),SV=a(ne(),1),$u=a(H(),1),Upe=a(he(),1);var Wpe=a(b(),1),Xf=[],Ope={order:"asc",_fields:"id,title",context:"view"};function vNe({parents:e,postType:t,onChange:r}){let[o,n]=(0,$u.useState)(""),[i,s]=(0,$u.useState)(Xf),[l,c]=(0,$u.useState)(Xf),u=(0,Upe.useDebounce)(n,250),{searchResults:d,searchHasResolved:p}=(0,CV.useSelect)(v=>{if(!o)return{searchResults:Xf,searchHasResolved:!0};let{getEntityRecords:x,hasFinishedResolution:_}=v(SV.store),k=["postType",t,{...Ope,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:x(...k),searchHasResolved:_("getEntityRecords",k)}},[o,t,e]),m=(0,CV.useSelect)(v=>{if(!e?.length)return Xf;let{getEntityRecords:x}=v(SV.store);return x("postType",t,{...Ope,include:e,per_page:e.length})},[e,t]);(0,$u.useEffect)(()=>{if(e?.length||s(Xf),!m?.length)return;let v=z_(wV(m,"title.rendered")),x=e.reduce((_,k)=>{let y=v.mapById[k];return y&&_.push({id:k,value:y.name}),_},[]);s(x)},[e,m]);let f=(0,$u.useMemo)(()=>d?.length?z_(wV(d,"title.rendered")):Xf,[d]);(0,$u.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let g=(v,x)=>{let _=x?.id||v?.[x]?.id;if(_)return _},h=v=>{let x=Array.from(v.reduce((_,k)=>{let y=g(f.mapByName,k);return y&&_.add(y),_},new Set));c(Xf),r({parents:x})};return(0,Wpe.jsx)(jpe.FormTokenField,{label:(0,Hpe.__)("Parents"),value:i,onInputChange:u,suggestions:l,onChange:h,help:""})}var Gpe=vNe;var H7=a(V(),1),TV=a(O(),1),PV=a(ne(),1),qu=a(H(),1),Zpe=a(he(),1),Kpe=a(Wo(),1),j7=a(D(),1);var Pp=a(b(),1),X0=[],$pe={order:"asc",_fields:"id,name",context:"view"},yNe=(e,t)=>{let r=t?.id||e?.find(n=>n.name===t)?.id;if(r)return r;let o=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===o)?.id};function Ype({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,n=F7(r);return n?.length?(0,Pp.jsx)(H7.__experimentalVStack,{spacing:4,children:n.map(i=>{let s=o?.include?.[i.slug]||[],l=o?.exclude?.[i.slug]||[],c=(u,d)=>{let p={...o?.[d],[i.slug]:u};u.length||delete p[i.slug];let m={...o,[d]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(m).every(f=>!f)?void 0:m})};return(0,Pp.jsxs)(qu.Fragment,{children:[(0,Pp.jsx)(qpe,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"include"),label:i.name}),(0,Pp.jsx)(qpe,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"exclude"),label:(0,j7.sprintf)((0,j7.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function qpe({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:n}){let[i,s]=(0,qu.useState)(""),[l,c]=(0,qu.useState)(X0),[u,d]=(0,qu.useState)(X0),p=(0,Zpe.useDebounce)(s,250),{searchResults:m,searchHasResolved:f}=(0,TV.useSelect)(v=>{if(!i)return{searchResults:X0,searchHasResolved:!0};let{getEntityRecords:x,hasFinishedResolution:_}=v(PV.store),k=[...t,...r],y=["taxonomy",e.slug,{...$pe,search:i,orderby:"name",exclude:k,per_page:20}];return{searchResults:x(...y),searchHasResolved:_("getEntityRecords",y)}},[i,e.slug,t,r]),g=(0,TV.useSelect)(v=>{if(!t?.length)return X0;let{getEntityRecords:x}=v(PV.store);return x("taxonomy",e.slug,{...$pe,include:t,per_page:t.length})},[e.slug,t]);return(0,qu.useEffect)(()=>{if(t?.length||c(X0),!g?.length)return;let v=t.reduce((x,_)=>{let k=g.find(y=>y.id===_);return k&&x.push({id:_,value:k.name}),x},[]);c(v)},[t,g]),(0,qu.useEffect)(()=>{f&&d(m.map(v=>v.name))},[m,f]),(0,Pp.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,Pp.jsx)(H7.FormTokenField,{label:n,value:l,onInputChange:p,suggestions:u,displayTransform:Kpe.decodeEntities,onChange:v=>{let x=new Set;for(let _ of v){let k=yNe(m,_);k&&x.add(k)}d(X0),o(Array.from(x))},help:""})})}var Qpe=a(V(),1),Xpe=a(O(),1),Jpe=a(ne(),1),js=a(D(),1),eme=a(b(),1),bNe=[{value:"aside",label:(0,js.__)("Aside")},{value:"audio",label:(0,js.__)("Audio")},{value:"chat",label:(0,js.__)("Chat")},{value:"gallery",label:(0,js.__)("Gallery")},{value:"image",label:(0,js.__)("Image")},{value:"link",label:(0,js.__)("Link")},{value:"quote",label:(0,js.__)("Quote")},{value:"standard",label:(0,js.__)("Standard")},{value:"status",label:(0,js.__)("Status")},{value:"video",label:(0,js.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function _Ne(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function tme({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,Xpe.useSelect)(l=>({supportedFormats:l(Jpe.store).getThemeSupports().formats}),[]),n=bNe.filter(l=>o.includes(l.value)),i=r.map(l=>n.find(c=>c.value===l)?.label).filter(Boolean),s=n.filter(l=>!r.includes(l.value)).map(l=>l.label);return(0,eme.jsx)(Qpe.FormTokenField,{label:(0,js.__)("Formats"),value:i,suggestions:s,onChange:l=>{e({format:_Ne(l,n)})},help:"",__experimentalExpandOnFocus:!0})}var rme=a(V(),1),Jf=a(D(),1),ome=a(b(),1),xNe=[{label:(0,Jf.__)("Include"),value:""},{label:(0,Jf.__)("Ignore"),value:"ignore"},{label:(0,Jf.__)("Exclude"),value:"exclude"},{label:(0,Jf.__)("Only"),value:"only"}];function nme({value:e,onChange:t}){return(0,ome.jsx)(rme.SelectControl,{label:(0,Jf.__)("Sticky posts"),options:xNe,value:e,onChange:t,help:(0,Jf.__)("Sticky posts always appear first, regardless of their publish date.")})}var sme=a(V(),1),lme=a(D(),1),cme=a(b(),1),ame=1,ime=100,kNe=({perPage:e,offset:t=0,onChange:r})=>(0,cme.jsx)(sme.RangeControl,{label:(0,lme.__)("Items per page"),min:ame,max:ime,onChange:o=>{isNaN(o)||o<ame||o>ime||r({perPage:o,offset:t})},value:parseInt(e,10)}),ume=kNe;var pme=a(V(),1),mme=a(D(),1),fme=a(b(),1),dme=0,wNe=100,CNe=({offset:e=0,onChange:t})=>(0,fme.jsx)(pme.__experimentalNumberControl,{label:(0,mme._x)("Offset","Number of posts to skip in a query"),value:e,min:dme,onChange:r=>{isNaN(r)||r<dme||r>wNe||t({offset:r})}}),gme=CNe;var hme=a(V(),1),EV=a(D(),1),vme=a(b(),1),SNe=({pages:e,onChange:t})=>(0,vme.jsx)(hme.__experimentalNumberControl,{label:(0,EV.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,EV.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),yme=SNe;var Je=a(b(),1);function _me(e){let{attributes:t,setQuery:r,isSingular:o,shouldExcludeCurrentPost:n}=e,{query:i}=t,{order:s,orderBy:l,author:c,pages:u,postType:d="post",perPage:p,offset:m,sticky:f,inherit:g,taxQuery:h,parents:v,format:x,excludeCurrent:_}=i,k=wpe(t),y=d==="post",{postTypesTaxonomiesMap:w,postTypesSelectOptions:C,postTypeFormatSupportMap:S}=_pe(),P=F7(d),N=xpe(d),I=ge=>{let et={postType:ge},me=w[ge];if(me?.length&&h){let Ne=Xt=>Object.entries(Xt||{}).reduce((Gt,[br,wo])=>(me.includes(br)&&(Gt[br]=wo),Gt),{}),ie={},Ee=Ne(h.include);Object.keys(Ee).length&&(ie.include=Ee);let ve=Ne(h.exclude);Object.keys(ve).length&&(ie.exclude=ve),et.taxQuery=Object.keys(ie).length?ie:void 0}ge!=="post"&&(et.sticky=""),et.parents=[],S[ge]||(et.format=[]),r(et)},[B,E]=(0,U7.useState)(i.search),L=(0,U7.useMemo)(()=>(0,bme.debounce)(ge=>{r({search:ge})},250),[r]),A=kpe(d),U=ui(k,"inherit"),$=!g&&ui(k,"postType"),W=(0,Nt.__)("Post type"),G=(0,Nt.__)("Select the type of content to display: posts, pages, or custom post types."),F=!g&&ui(k,"order"),Z=!g&&y&&ui(k,"sticky"),j=U||$||F||Z,Y=!!P?.length&&ui(k,"taxQuery"),ee=ui(k,"author"),te=ui(k,"search"),Q=ui(k,"parents")&&N,le=S[d],oe=(0,BV.useSelect)(ge=>{if(!le||!ui(k,"format"))return!1;let et=ge(NV.store).getThemeSupports();return et.formats&&et.formats.length>0&&et.formats.some(me=>me!=="standard")},[k,le]),ce=n&&ui(k,"excludeCurrent"),pe=(0,BV.useSelect)(ge=>ge(NV.store).getPostType(d)?.labels?.singular_name,[d]),be=Y||ee||te||Q||oe||ce,Te=X(),ae=ui(k,"postCount"),se=ui(k,"offset"),ue=ui(k,"pages"),Oe=ae||se||ue,Pe=o&&g;return(0,Je.jsxs)(Je.Fragment,{children:[j&&(0,Je.jsxs)(yt.__experimentalToolsPanel,{label:(0,Nt.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:Te,children:[U&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!g,label:(0,Nt.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Je.jsxs)(yt.__experimentalVStack,{spacing:4,children:[(0,Je.jsxs)(yt.__experimentalToggleGroupControl,{label:(0,Nt.__)("Query type"),isBlock:!0,onChange:ge=>{r({inherit:ge==="default"})},help:g?(0,Nt.__)("Display a list of posts or custom post types based on the current template."):(0,Nt.__)("Display a list of posts or custom post types based on specific criteria."),value:g?"default":"custom",children:[(0,Je.jsx)(yt.__experimentalToggleGroupControlOption,{value:"default",label:(0,Nt.__)("Default")}),(0,Je.jsx)(yt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,Nt.__)("Custom")})]}),Pe&&(0,Je.jsx)(yt.Notice,{status:"warning",isDismissible:!1,children:(0,Nt.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),$&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>d!=="post",label:W,onDeselect:()=>I("post"),isShownByDefault:!0,children:C.length>2?(0,Je.jsx)(yt.SelectControl,{options:C,value:d,label:W,onChange:I,help:G}):(0,Je.jsx)(yt.__experimentalToggleGroupControl,{isBlock:!0,value:d,label:W,onChange:I,help:G,children:C.map(ge=>(0,Je.jsx)(yt.__experimentalToggleGroupControlOption,{value:ge.value,label:ge.label},ge.value))})}),F&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>s!=="desc"||l!=="date",label:(0,Nt.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Je.jsx)(Dpe,{order:s,orderBy:l,orderByOptions:A,onChange:r})}),Z&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,Nt.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Je.jsx)(nme,{value:f,onChange:ge=>r({sticky:ge})})})]}),!g&&Oe&&(0,Je.jsxs)(yt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,Nt.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:Te,children:[(0,Je.jsx)(yt.__experimentalToolsPanelItem,{label:(0,Nt.__)("Items per page"),hasValue:()=>p>0,children:(0,Je.jsx)(ume,{perPage:p,offset:m,onChange:r})}),(0,Je.jsx)(yt.__experimentalToolsPanelItem,{label:(0,Nt._x)("Offset","Number of posts to skip in a query"),hasValue:()=>m>0,onDeselect:()=>r({offset:0}),children:(0,Je.jsx)(gme,{offset:m,onChange:r})}),(0,Je.jsx)(yt.__experimentalToolsPanelItem,{label:(0,Nt.__)("Max pages to show"),hasValue:()=>u>0,onDeselect:()=>r({pages:0}),children:(0,Je.jsx)(yme,{pages:u,onChange:r})})]}),!g&&be&&(0,Je.jsxs)(yt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,Nt.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[],excludeCurrent:null}),E("")},dropdownMenuProps:Te,children:[Y&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{label:(0,Nt.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(ge=>Object.values(ge||{}).some(et=>!!et?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Je.jsx)(Ype,{onChange:r,query:i})}),ee&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Nt.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Je.jsx)(Fpe,{value:c,onChange:r})}),te&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!B,label:(0,Nt.__)("Search terms"),onDeselect:()=>{r({search:""}),E("")},children:(0,Je.jsx)(yt.TextControl,{label:(0,Nt.__)("Search terms"),help:(0,Nt.__)("Filter the query by keywords that appear in the content, title, or excerpt."),value:B,onChange:ge=>{L(ge),E(ge)}})}),Q&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!v?.length,label:(0,Nt.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Je.jsx)(Gpe,{parents:v,postType:d,onChange:r})}),oe&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{hasValue:()=>!!x?.length,label:(0,Nt.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Je.jsx)(tme,{onChange:r,query:i})}),ce&&(0,Je.jsx)(yt.__experimentalToolsPanelItem,{label:(0,Nt.__)("Exclude"),hasValue:()=>_!=null,onDeselect:()=>r({excludeCurrent:null}),children:(0,Je.jsx)(yt.ToggleControl,{label:(0,Nt.__)("Exclude current"),help:(0,Nt.sprintf)((0,Nt.__)("Exclude the current %s from the query."),pe),checked:!!_,onChange:ge=>{r({excludeCurrent:!!ge})}})})]})]})}var t1=a(V(),1),RV=a(D(),1),wme=a(O(),1),$7=a(R(),1);var J0=a(H(),1),xme=a(O(),1),G7=a(V(),1),e1=a(R(),1),W7=a(D(),1);var Zu=a(b(),1);function kme({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,Zu.jsx)(G7.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,W7.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,Zu.jsx)(IV,{clientId:e,attributes:t})})}function F_(e,t){let r=Spe(e,t),o=Ppe(e,r);return(0,J0.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function IV({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[n,i]=(0,J0.useState)(""),{replaceBlock:s,selectBlock:l}=(0,xme.useDispatch)(e1.store),c=F_(e,t),u=(0,J0.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),d=(0,J0.useMemo)(()=>Mb(c,n),[c,n]),p=(m,f)=>{let{newBlocks:g,queryClientIds:h}=Cpe(f,t);s(e,g),h[0]&&l(h[0])};return(0,Zu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,Zu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,Zu.jsx)(G7.SearchControl,{onChange:i,value:n,label:(0,W7.__)("Search"),placeholder:(0,W7.__)("Search")})}),(0,Zu.jsx)(e1.BlockContextProvider,{value:u,children:(0,Zu.jsx)(e1.__experimentalBlockPatternsList,{blockPatterns:d,onClickPattern:p,showTitlesAsTooltip:r})})]})}var eg=a(b(),1);function TNe({clientId:e,attributes:t,hasInnerBlocks:r}){if(!F_(e,t).length)return null;let n=r?(0,RV.__)("Change design"):(0,RV.__)("Choose pattern");return(0,eg.jsx)($7.BlockControls,{group:"other",children:(0,eg.jsx)(t1.__experimentalDropdownContentWrapper,{children:(0,eg.jsx)(t1.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:s})=>(0,eg.jsx)(t1.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:s,children:n}),renderContent:()=>(0,eg.jsx)(IV,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function q7(e){return(0,wme.useSelect)(r=>{let{isLockedBlock:o}=q(r($7.store));return o(e.clientId)},[e.clientId])?null:(0,eg.jsx)(TNe,{...e})}var Us=a(b(),1),{HTMLElementControl:PNe}=q(Ws.privateApis),ENe=3;function DV({attributes:e,setAttributes:t,clientId:r,context:o,name:n,isSelected:i}){let{queryId:s,query:l,enhancedPagination:c,tagName:u="div",query:{inherit:d}={}}=e,{templateSlug:p,postType:m}=o,{isSingular:f,templateType:g}=Epe(p),{__unstableMarkNextChangeAsNotPersistent:h}=(0,O_.useDispatch)(Ws.store),{createNotice:v}=(0,O_.useDispatch)(Tme.store),x=O7(r),_=(0,Cme.useInstanceId)(DV),k=(0,Ws.useBlockProps)(),y=(0,Ws.useInnerBlocksProps)(k),{postsPerPage:w}=(0,O_.useSelect)(P=>{let{getSettings:N}=P(Ws.store),{getEntityRecord:I,getEntityRecordEdits:B,canUser:E}=P(Sme.store),L=E("read",{kind:"root",name:"site"})?+I("root","site")?.posts_per_page:+N().postsPerPage;return{postsPerPage:+B("root","site")?.posts_per_page||L||ENe}},[]),C=f&&!d&&(l.postType===m||l.postType===g),S=(0,r1.useCallback)(P=>t(N=>({query:{...N.query,...P}})),[t]);return(0,r1.useEffect)(()=>{let P={};(d&&l.perPage!==w||!l.perPage&&w)&&(P.perPage=w),!C&&l.excludeCurrent!==void 0&&l.excludeCurrent!==null&&(P.excludeCurrent=null),Object.keys(P).length&&(h(),S(P))},[l.perPage,l.excludeCurrent,d,w,C,h,S]),(0,r1.useEffect)(()=>{Number.isFinite(s)||(h(),t({queryId:_}))},[s,_,h,t]),(0,r1.useEffect)(()=>{if(c&&x.length){h(),t({enhancedPagination:!1});let P=(0,o1.sprintf)((0,o1.__)(`"Reload full page" was enabled because some blocks inside the Query block aren't supported: %s.`),x.join((0,o1.__)(", ")));v("info",P,{type:"snackbar",id:"query-enhanced-pagination-disabled"})}},[c,x,h,t,v]),(0,Us.jsxs)(Us.Fragment,{children:[i&&(0,Us.jsx)(q7,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Us.jsx)(Ws.InspectorControls,{children:(0,Us.jsx)(_me,{name:n,attributes:e,setQuery:S,setAttributes:t,clientId:r,isSingular:f,shouldExcludeCurrentPost:C})}),(0,Us.jsxs)(Ws.InspectorControls,{group:"advanced",children:[(0,Us.jsx)(PNe,{tagName:u,onChange:P=>t({tagName:P}),clientId:r,options:[{label:(0,o1.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Us.jsx)(Npe,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Us.jsx)(u,{...y})]})}var K7=a(O(),1),Y7=a(K(),1),LV=a(H(),1),tg=a(R(),1),H_=a(V(),1),Z7=a(D(),1),Pme=a(he(),1);var Gc=a(b(),1);function Eme({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:n}){let[i,s]=(0,LV.useState)(!1),[l,c]=(0,LV.useState)(0),u=(0,Pme.useResizeObserver)(([_])=>{c(_.contentRect.width)}),p=l>0&&l<160,{blockType:m,activeBlockVariation:f}=(0,K7.useSelect)(_=>{let{getActiveBlockVariation:k,getBlockType:y}=_(Y7.store);return{blockType:y(r),activeBlockVariation:k(r,e)}},[r,e]),g=!!F_(t,e).length,h=f?.icon?.src||f?.icon||m?.icon?.src,v=f?.title||m?.title,x=(0,tg.useBlockProps)({ref:u});return i?(0,Gc.jsx)(BNe,{clientId:t,attributes:e,icon:h,label:v}):(0,Gc.jsxs)("div",{...x,children:[n&&(0,Gc.jsx)(q7,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Gc.jsxs)(H_.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&h,label:!p&&v,instructions:!p&&(0,Z7.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!g&&!p&&(0,Gc.jsx)(H_.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Z7.__)("Choose")}),!p&&(0,Gc.jsx)(H_.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{s(!0)},children:(0,Z7.__)("Start blank")})]})]})}function BNe({clientId:e,attributes:t,icon:r,label:o}){let n=Tpe(t),{replaceInnerBlocks:i}=(0,K7.useDispatch)(tg.store),s=(0,tg.useBlockProps)();return(0,Gc.jsx)("div",{...s,children:(0,Gc.jsx)(tg.__experimentalBlockVariationPicker,{icon:r,label:o,variations:n,onSelect:l=>{l.innerBlocks&&i(e,(0,Y7.createBlocksFromInnerBlocksTemplate)(l.innerBlocks),!1)}})})}var rg=a(b(),1),NNe=e=>{let{clientId:t,attributes:r}=e,[o,n]=(0,Nme.useState)(!1),s=(0,Bme.useSelect)(l=>!!l(Ime.store).getBlocks(t).length,[t])?DV:Eme;return(0,rg.jsxs)(rg.Fragment,{children:[(0,rg.jsx)(s,{...e,openPatternSelectionModal:()=>n(!0)}),o&&(0,rg.jsx)(kme,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},Rme=NNe;var Q7=a(R(),1),Dme=a(b(),1);function Lme({attributes:{tagName:e="div"}}){let t=Q7.useBlockProps.save(),r=Q7.useInnerBlocksProps.save(t);return(0,Dme.jsx)(e,{...r})}var j_=a(D(),1);var $c=a(V(),1),Ku=a(b(),1),Ame=(0,Ku.jsx)($c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Ku.jsx)($c.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),Mme=(0,Ku.jsx)($c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Ku.jsx)($c.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),zme=(0,Ku.jsx)($c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Ku.jsx)($c.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),Vme=(0,Ku.jsx)($c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Ku.jsx)($c.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var AV=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],INe=[{name:"title-date",title:(0,j_.__)("Title & Date"),icon:Ame,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],AV]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,j_.__)("Title & Excerpt"),icon:Mme,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,j_.__)("Title, Date, & Excerpt"),icon:zme,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],AV,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,j_.__)("Image, Date, & Title"),icon:Vme,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],AV,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],Fme=INe;var X7=a(K(),1),oa=a(R(),1);var og=a(b(),1),{cleanEmptyObject:MV}=q(oa.privateApis),zV=e=>{let{query:t}=e,{categoryIds:r,tagIds:o,taxQuery:n,...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(n||{}).length&&(i.taxQuery={include:n}),{...e,query:i}},Ome=(e,t)=>{let{style:r,backgroundColor:o,gradient:n,textColor:i,...s}=e;if(!(o||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(s.style=MV({...r,color:void 0,elements:{...r.elements,link:void 0}})),RNe(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?MV({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,m=(0,X7.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:n,textColor:i,style:p},u.innerBlocks);return[s,[m]]}let c=(0,X7.createBlock)("core/group",{backgroundColor:o,gradient:n,textColor:i,style:MV({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[s,[c]]},RNe=(e=[])=>e.length===1&&e[0].name==="core/group",VV=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:r=null,contentSize:o=null,...n}=t;return r||o?{...e,layout:{...n,contentSize:o,type:"constrained"}}:e},Hme=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Hme(r.innerBlocks));return t},jme=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=jme(r.innerBlocks,t))}),e),n1=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let n=Hme(t);if(!n)return[e,t];let{type:i,columns:s}=r,l=i==="flex"?"grid":"default",c=(0,X7.createBlock)("core/post-template",{...n.attributes,layout:{type:l,...s&&{columnCount:s}}},n.innerBlocks);return[o,jme(t,c)]},DNe={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=zV(e),{layout:o,...n}=r,i={...n,displayLayout:r.layout};return n1(i,t)},save(){return(0,og.jsx)(oa.InnerBlocks.Content,{})}},LNe={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=zV(e),[o,n]=Ome(r,t),i=VV(o);return n1(i,n)},save({attributes:{tagName:e="div"}}){let t=oa.useBlockProps.save(),r=oa.useInnerBlocksProps.save(t);return(0,og.jsx)(e,{...r})}},ANe={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:n}=e;return r||o||n||t?.color||t?.elements?.link},migrate(e,t){let[r,o]=Ome(e,t),n=VV(r);return n1(n,o)},save({attributes:{tagName:e="div"}}){let t=oa.useBlockProps.save(),r=oa.useInnerBlocksProps.save(t);return(0,og.jsx)(e,{...r})}},MNe={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=oa.useBlockProps.save(),r=oa.useInnerBlocksProps.save(t);return(0,og.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=VV(e);return n1(r,t)}},zNe={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=oa.useBlockProps.save(),r=oa.useInnerBlocksProps.save(t);return(0,og.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:n1},VNe={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=oa.useBlockProps.save(),r=oa.useInnerBlocksProps.save(t);return(0,og.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=zV(e);return n1(r,t)}},FNe=[VNe,zNe,MNe,ANe,LNe,DNe],Ume=FNe;var{name:Wme}=z7,Gme={icon:um,edit:Rme,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:Lme,variations:Fme,deprecated:Ume},ONe=()=>M({name:Wme,metadata:z7,settings:Gme});var HV={};J(HV,{init:()=>UNe,metadata:()=>J7,name:()=>Qme,settings:()=>Xme});var OV=a(D(),1);var J7={$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},spacing:{padding:!0,margin:!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},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-query-no-results"};var e8=a(R(),1),$me=a(b(),1);function qme(){let e=(0,e8.useBlockProps)(),t=(0,e8.useInnerBlocksProps)(e);return(0,$me.jsx)("div",{...t})}var Zme=a(R(),1),Kme=a(b(),1);function Yme(){return(0,Kme.jsx)(Zme.InnerBlocks.Content,{})}var jNe=[["core/paragraph",{placeholder:(0,OV.__)("Add text or blocks that will display when a query returns no results.")}]],{name:Qme}=J7,Xme={icon:um,template:jNe,edit:qme,save:Yme,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,OV.__)("No posts were found.")}}]}},UNe=()=>M({name:Qme,metadata:J7,settings:Xme});var WV={};J(WV,{init:()=>qNe,metadata:()=>t8,name:()=>cfe,settings:()=>ufe});var t8={$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 r8=a(D(),1),Yu=a(R(),1),o8=a(O(),1),U_=a(V(),1),ofe=a(H(),1);var ng=a(D(),1),a1=a(V(),1),i1=a(b(),1);function Jme({value:e,onChange:t}){return(0,i1.jsxs)(a1.__experimentalToggleGroupControl,{label:(0,ng.__)("Arrow"),value:e,onChange:t,help:(0,ng.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,i1.jsx)(a1.__experimentalToggleGroupControlOption,{value:"none",label:(0,ng._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,i1.jsx)(a1.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,ng._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,i1.jsx)(a1.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,ng._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var jV=a(D(),1),efe=a(V(),1),tfe=a(b(),1);function rfe({value:e,onChange:t}){return(0,tfe.jsx)(efe.ToggleControl,{label:(0,jV.__)("Show label text"),help:(0,jV.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Gs=a(b(),1);function nfe({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let n=(0,o8.useSelect)(u=>{let{getBlocks:d}=u(Yu.store);return d(o)?.find(m=>["core/query-pagination-next","core/query-pagination-previous"].includes(m.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,o8.useDispatch)(Yu.store),s=X(),l=(0,Yu.useBlockProps)(),c=(0,Yu.useInnerBlocksProps)(l);return(0,ofe.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,Gs.jsxs)(Gs.Fragment,{children:[n&&(0,Gs.jsx)(Yu.InspectorControls,{children:(0,Gs.jsxs)(U_.__experimentalToolsPanel,{label:(0,r8.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:s,children:[(0,Gs.jsx)(U_.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,r8.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Gs.jsx)(Jme,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,Gs.jsx)(U_.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,r8.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,Gs.jsx)(rfe,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,Gs.jsx)("nav",{...c})]})}var afe=a(R(),1),ife=a(b(),1);function sfe(){return(0,ife.jsx)(afe.InnerBlocks.Content,{})}var n8=a(R(),1),UV=a(b(),1),GNe=[{save(){return(0,UV.jsx)("div",{...n8.useBlockProps.save(),children:(0,UV.jsx)(n8.InnerBlocks.Content,{})})}}],lfe=GNe;var{name:cfe}=t8,$Ne=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]],ufe={icon:sy,template:$Ne,edit:nfe,save:sfe,deprecated:lfe},qNe=()=>M({name:cfe,metadata:t8,settings:ufe});var $V={};J($V,{init:()=>YNe,metadata:()=>a8,name:()=>pfe,settings:()=>mfe});var a8={$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 GV=a(D(),1),i8=a(R(),1),W_=a(b(),1),KNe={none:"",arrow:"\u2192",chevron:"\xBB"};function dfe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=KNe[r];return(0,W_.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,i8.useBlockProps)(),children:[o&&(0,W_.jsx)(i8.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,GV.__)("Next page link"),placeholder:(0,GV.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,W_.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:pfe}=a8,mfe={icon:ny,edit:dfe},YNe=()=>M({name:pfe,metadata:a8,settings:mfe});var qV={};J(qV,{init:()=>JNe,metadata:()=>s8,name:()=>gfe,settings:()=>hfe});var s8={$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 $_=a(D(),1),l8=a(R(),1),s1=a(V(),1);var ns=a(b(),1),G_=(e,t="a",r="")=>(0,ns.jsx)(t,{className:`page-numbers ${r}`,children:e},e),XNe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(G_(r));t.push(G_(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(G_(e+1+r));return t.push(G_("...","span","dots")),t.push(G_(e*2+3)),(0,ns.jsx)(ns.Fragment,{children:t})};function ffe({attributes:e,setAttributes:t}){let{midSize:r}=e,o=XNe(parseInt(r,10)),n=X();return(0,ns.jsxs)(ns.Fragment,{children:[(0,ns.jsx)(l8.InspectorControls,{children:(0,ns.jsx)(s1.__experimentalToolsPanel,{label:(0,$_.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,ns.jsx)(s1.__experimentalToolsPanelItem,{label:(0,$_.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,ns.jsx)(s1.RangeControl,{label:(0,$_.__)("Number of links"),help:(0,$_.__)("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,ns.jsx)("div",{...(0,l8.useBlockProps)(),children:o})]})}var{name:gfe}=s8,hfe={icon:ay,edit:ffe,example:{}},JNe=()=>M({name:gfe,metadata:s8,settings:hfe});var KV={};J(KV,{init:()=>rIe,metadata:()=>c8,name:()=>yfe,settings:()=>bfe});var c8={$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 ZV=a(D(),1),u8=a(R(),1),q_=a(b(),1),tIe={none:"",arrow:"\u2190",chevron:"\xAB"};function vfe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=tIe[r];return(0,q_.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,u8.useBlockProps)(),children:[n&&(0,q_.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),o&&(0,q_.jsx)(u8.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,ZV.__)("Previous page link"),placeholder:(0,ZV.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:yfe}=c8,bfe={icon:iy,edit:vfe},rIe=()=>M({name:yfe,metadata:c8,settings:bfe});var JV={};J(JV,{init:()=>sIe,metadata:()=>d8,name:()=>Pfe,settings:()=>Efe});var d8={$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 $s=a(R(),1),qs=a(V(),1),lr=a(D(),1);var YV=a(ne(),1),QV=a(O(),1);function _fe(){let e=(0,QV.useSelect)(s=>{let{getCurrentPostId:l,getCurrentPostType:c,getCurrentTemplateId:u}=s("core/editor"),d=c(),p=u()||(d==="wp_template"?l():null);return p?s(YV.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),r,o,n=!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 s=e?.match(/^(author)$|^author-(.+)$/);s&&(n=!0,s[2]&&(i=s[2]))}return(0,QV.useSelect)(s=>{let{getEntityRecords:l,getTaxonomy:c,getAuthors:u}=s(YV.store),d,p;if(r&&(d=c(r)?.labels?.singular_name),o){let m=l("taxonomy",r,{slug:o,per_page:1});m&&m[0]&&(p=m[0].name)}if(n&&(d="Author",i)){let m=u({slug:i});m&&m[0]&&(p=m[0].name)}return{archiveTypeLabel:d,archiveNameLabel:p}},[i,n,r,o])}var xfe=a(ne(),1),XV=a(O(),1);function kfe(e){let t=(0,XV.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,XV.useSelect)(r=>{let{getPostType:o}=r(xfe.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var At=a(b(),1),nIe=["archive","search","post-type"];function wfe(e){Et(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:n,showSearchTerm:i},setAttributes:s,context:{query:l}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=_fe(),{postTypeLabel:d}=kfe(l?.postType),p=X(),m=r===0?"p":`h${r}`,f=(0,$s.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!nIe.includes(t))return(0,At.jsx)("div",{...f,children:(0,At.jsx)($s.Warning,{children:(0,lr.__)("Provided type is not supported.")})});let g;if(t==="archive"){let h;c?n?u?h=(0,lr.sprintf)((0,lr._x)("%1$s: %2$s","archive label"),c,u):h=(0,lr.sprintf)((0,lr.__)("%s: Name"),c):u?h=u:h=(0,lr.sprintf)((0,lr.__)("%s name"),c):h=n?(0,lr.__)("Archive type: Name"):(0,lr.__)("Archive title"),g=(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)($s.InspectorControls,{children:(0,At.jsx)(qs.__experimentalToolsPanel,{label:(0,lr.__)("Settings"),resetAll:()=>s({showPrefix:!0}),dropdownMenuProps:p,children:(0,At.jsx)(qs.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,lr.__)("Show archive type in title"),onDeselect:()=>s({showPrefix:!0}),isShownByDefault:!0,children:(0,At.jsx)(qs.ToggleControl,{label:(0,lr.__)("Show archive type in title"),onChange:()=>s({showPrefix:!n}),checked:n})})})}),(0,At.jsx)(m,{...f,children:h})]})}if(t==="search"&&(g=(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)($s.InspectorControls,{children:(0,At.jsx)(qs.__experimentalToolsPanel,{label:(0,lr.__)("Settings"),resetAll:()=>s({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,At.jsx)(qs.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,lr.__)("Show search term in title"),onDeselect:()=>s({showSearchTerm:!0}),isShownByDefault:!0,children:(0,At.jsx)(qs.ToggleControl,{label:(0,lr.__)("Show search term in title"),onChange:()=>s({showSearchTerm:!i}),checked:i})})})}),(0,At.jsx)(m,{...f,children:i?(0,lr.__)("Search results for: \u201Csearch term\u201D"):(0,lr.__)("Search results")})]})),t==="post-type"){let h;d?n?h=(0,lr.sprintf)((0,lr.__)('Post Type: "%s"'),d):h=d:h=n?(0,lr.__)("Post Type: Name"):(0,lr.__)("Name"),g=(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)($s.InspectorControls,{children:(0,At.jsx)(qs.__experimentalToolsPanel,{label:(0,lr.__)("Settings"),resetAll:()=>s({showPrefix:!0}),dropdownMenuProps:p,children:(0,At.jsx)(qs.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,lr.__)("Show post type label"),onDeselect:()=>s({showPrefix:!0}),isShownByDefault:!0,children:(0,At.jsx)(qs.ToggleControl,{label:(0,lr.__)("Show post type label"),onChange:()=>s({showPrefix:!n}),checked:n})})})}),(0,At.jsx)(m,{...f,children:h})]})}return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)($s.BlockControls,{group:"block",children:(0,At.jsx)($s.HeadingLevelDropdown,{value:r,options:o,onChange:h=>s({level:h})})}),g]})}var ag=a(D(),1);var Cfe=[{isDefault:!0,name:"archive-title",title:(0,ag.__)("Archive Title"),description:(0,ag.__)("Display the archive title based on the queried object."),icon:pl,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,ag.__)("Search Results Title"),description:(0,ag.__)("Display the search results title based on the queried object."),icon:pl,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,ag.__)("Post Type Label"),description:(0,ag.__)("Display the post type label based on the queried object."),icon:pl,attributes:{type:"post-type"},scope:["inserter"]}];Cfe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Sfe=Cfe;var aIe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},iIe={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:er,isEligible({style:e}){return e?.typography?.fontFamily}},Tfe=[aIe,iIe];var{name:Pfe}=d8,Efe={icon:pl,edit:wfe,variations:Sfe,deprecated:Tfe},sIe=()=>M({name:Pfe,metadata:d8,settings:Efe});var rF={};J(rF,{init:()=>cIe,metadata:()=>p8,name:()=>Ife,settings:()=>Rfe});var p8={$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 m8=a(R(),1),f8=a(V(),1),l1=a(D(),1);var Ep=a(V(),1),ig=a(b(),1),eF=(0,ig.jsx)(Ep.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,ig.jsx)(Ep.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),tF=(0,ig.jsx)(Ep.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,ig.jsx)(Ep.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),Bfe=(0,ig.jsx)(Ep.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,ig.jsx)(Ep.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 Wl=a(b(),1);function Nfe({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,m8.useBlockProps)(),n=()=>{switch(r){case"total-results":return eF;case"range-display":return tF}},i=[{role:"menuitemradio",title:(0,l1.__)("Total results"),isActive:r==="total-results",icon:eF,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,l1.__)("Range display"),isActive:r==="range-display",icon:tF,onClick:()=>{t({displayType:"range-display"})}}],s=(0,Wl.jsx)(m8.BlockControls,{children:(0,Wl.jsx)(f8.ToolbarGroup,{children:(0,Wl.jsx)(f8.ToolbarDropdownMenu,{icon:n(),label:(0,l1.__)("Change display type"),controls:i})})});return(0,Wl.jsxs)("div",{...o,children:[s,r==="total-results"?(0,Wl.jsx)(Wl.Fragment,{children:(0,l1.__)("12 results found")}):r==="range-display"?(0,Wl.jsx)(Wl.Fragment,{children:(0,l1.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Ife}=p8,Rfe={icon:Bfe,edit:Nfe},cIe=()=>M({name:Ife,metadata:p8,settings:Rfe});var nF={};J(nF,{init:()=>_Ie,metadata:()=>g8,name:()=>Hfe,settings:()=>jfe});var oF=a(D(),1);var Z_=a(K(),1),vo=a(R(),1),Sn=a(b(),1),Bp=e=>{let{value:t,...r}=e;return[{...r},t?(0,Z_.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,Z_.createBlock)("core/paragraph",{content:o})):(0,Z_.createBlock)("core/paragraph")]},Dfe=["left","right","center"],sg=(e,t)=>{let{align:r,...o}=e;return[Dfe.includes(r)?{...o,textAlign:r}:e,t]},uIe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],dIe={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})=>Dfe.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=T({[`has-text-align-${t}`]:t});return(0,Sn.jsxs)("blockquote",{...vo.useBlockProps.save({className:o}),children:[(0,Sn.jsx)(vo.InnerBlocks.Content,{}),!vo.RichText.isEmpty(r)&&(0,Sn.jsx)(vo.RichText.Content,{tagName:"cite",value:r})]})},migrate:sg},pIe={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,n=T({[`has-text-align-${t}`]:t});return(0,Sn.jsxs)("blockquote",{...vo.useBlockProps.save({className:n}),children:[(0,Sn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Sn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return sg(...Bp(e))}},mIe={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 sg(...Bp(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,Sn.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Sn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Sn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})}},fIe={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 sg(...uIe(...Bp(r)))}return sg(...Bp(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,Sn.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,Sn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Sn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})}},gIe={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 sg(...Bp(r))}return sg(...Bp(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,Sn.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,Sn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Sn.jsx)(vo.RichText.Content,{tagName:"footer",value:o})]})}},Lfe=[dIe,pIe,mIe,fIe,gIe];var K_=a(D(),1),Zs=a(R(),1),Afe=a(V(),1),c1=a(O(),1),Mfe=a(H(),1),zfe=a(Lm(),1);var Qu=a(b(),1),hIe=(e,t)=>{let r=(0,c1.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n,selectBlock:i}=(0,c1.useDispatch)(Zs.store);(0,Mfe.useEffect)(()=>{if(!e.value)return;let[s,l]=Bp(e);(0,zfe.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"});let c=r.select(Zs.store).hasSelectedInnerBlock(t,!0);r.batch(()=>{o(t,s),n(t,l),c&&i(t)})},[e.value])};function Vfe({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:n,isSelected:i}){let{textAlign:s,allowedBlocks:l}=e,{hasInnerBlocks:c}=(0,c1.useSelect)(p=>{let{getBlockCount:m}=p(Zs.store);return{hasInnerBlocks:m(o)>0}},[o]);hIe(e,o);let u=(0,Zs.useBlockProps)({className:T(n,{[`has-text-align-${s}`]:s})}),d=(0,Zs.useInnerBlocksProps)(u,{__experimentalCaptureToolbars:!0,renderAppender:c?!1:void 0,allowedBlocks:l});return(0,Qu.jsxs)(Qu.Fragment,{children:[(0,Qu.jsx)(Zs.BlockControls,{group:"block",children:(0,Qu.jsx)(Zs.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,Qu.jsxs)(Afe.BlockQuotation,{...d,children:[d.children,(0,Qu.jsx)($o,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:Sy,label:(0,K_.__)("Quote citation"),placeholder:(0,K_.__)("Add citation"),addLabel:(0,K_.__)("Add citation"),removeLabel:(0,K_.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var g8={$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 lg=a(R(),1),Y_=a(b(),1);function Ffe({attributes:e}){let{textAlign:t,citation:r}=e,o=T({[`has-text-align-${t}`]:t});return(0,Y_.jsxs)("blockquote",{...lg.useBlockProps.save({className:o}),children:[(0,Y_.jsx)(lg.InnerBlocks.Content,{}),!lg.RichText.isEmpty(r)&&(0,Y_.jsx)(lg.RichText.Content,{tagName:"cite",value:r})]})}var Q_=a(R(),1),Zr=a(K(),1),yIe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Zr.createBlock)("core/quote",{},[(0,Zr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:n,style:i})=>(0,Zr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:n,style:i},[(0,Zr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Zr.createBlock)("core/quote",{},[(0,Zr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Zr.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,Zr.createBlock)("core/quote",{},e.map(t=>(0,Zr.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:n},i)=>{let s=i.map(({attributes:l})=>`${l.content}`).join("<br>");return(0,Zr.createBlock)("core/pullquote",{value:s,align:e,citation:t,anchor:r,fontSize:o,style:n})}},{type:"block",blocks:["core/verse"],isMatch:({},e)=>e.innerBlocks.every(t=>t.name==="core/paragraph"?!0:(0,Zr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Zr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Zr.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,Zr.switchToBlockType)(o,"core/paragraph")!==null):!Q_.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Zr.switchToBlockType)(o,"core/paragraph")||[]);return Q_.RichText.isEmpty(e)?r:[...r,(0,Zr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Zr.createBlock)("core/group",{anchor:t},Q_.RichText.isEmpty(e)?r:[...r,(0,Zr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>Q_.RichText.isEmpty(e)?t:[...t,(0,Zr.createBlock)("core/paragraph",{content:e})]},Ofe=yIe;var{name:Hfe}=g8,bIe=[["core/paragraph",{}]],jfe={icon:zN,example:{attributes:{citation:(0,oF.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,oF.__)("In quoting others, we cite ourselves.")}}]},transforms:Ofe,template:bIe,templateInsertUpdatesSelection:!0,edit:Vfe,save:Ffe,deprecated:Lfe},_Ie=()=>M({name:Hfe,metadata:g8,settings:jfe});var aF={};J(aF,{init:()=>DIe,metadata:()=>h8,name:()=>Jfe,settings:()=>ege});var Yfe=a(ne(),1),Qfe=a(O(),1),Xfe=a(Wo(),1);var h8={$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,visibility:!1}};var J_=a(O(),1),e2=a(H(),1),u1=a(ne(),1),qc=a(V(),1),X_=a(D(),1),Kr=a(R(),1),$fe=a(Wfe(),1),qfe=a(K(),1);var Tr=a(b(),1),{useLayoutClasses:kIe}=q(Kr.privateApis),{isOverridableBlock:wIe}=q($fe.privateApis),CIe=["full","wide","left","right"],SIe=(e,t)=>{let r=(0,e2.useRef)();return(0,e2.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",s=e.some(l=>CIe.includes(l.attributes.align));o=i&&s?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function TIe(){let e=(0,Kr.useBlockProps)();return(0,Tr.jsx)("div",{...e,children:(0,Tr.jsx)(Kr.Warning,{children:(0,X_.__)("Block cannot be rendered inside itself.")})})}var Gfe=()=>{};function Zfe(e){let{ref:t}=e.attributes;return(0,Kr.useHasRecursion)(t)?(0,Tr.jsx)(TIe,{}):(0,Tr.jsx)(Kr.RecursionProvider,{uniqueId:t,children:(0,Tr.jsx)(BIe,{...e})})}function PIe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:n}){let i=(0,J_.useSelect)(s=>!!s(u1.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,Tr.jsxs)(Tr.Fragment,{children:[i&&!!o&&(0,Tr.jsx)(Kr.BlockControls,{group:"other",children:(0,Tr.jsx)(qc.ToolbarGroup,{children:(0,Tr.jsx)(qc.ToolbarButton,{onClick:o,children:(0,X_.__)("Edit original")})})}),t&&(0,Tr.jsx)(Kr.BlockControls,{group:"other",children:(0,Tr.jsx)(qc.ToolbarGroup,{children:(0,Tr.jsx)(qc.ToolbarButton,{onClick:n,disabled:!r,children:(0,X_.__)("Reset")})})})]})}var EIe={};function BIe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:n}){let{record:i,hasResolved:s}=(0,u1.useEntityRecord)("postType","wp_block",t),[l]=(0,u1.useEntityBlockEditor)("postType","wp_block",{id:t}),c=s&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,J_.useDispatch)(Kr.store),{onNavigateToEntityRecord:d,hasPatternOverridesSource:p,supportedBlockTypesRaw:m}=(0,J_.useSelect)(C=>{let{getSettings:S}=C(Kr.store);return{onNavigateToEntityRecord:S().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,qfe.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:S().__experimentalBlockBindingsSupportedAttributes||EIe}},[]),f=(0,e2.useMemo)(()=>{let C=Object.keys(m),S=P=>P?.some(N=>C.includes(N.name)&&wIe(N)?!0:S(N.innerBlocks));return p&&S(l)},[p,l,m]),{alignment:g,layout:h}=SIe(l,o),v=kIe({layout:h},e),x=(0,Kr.useBlockProps)({className:T("block-library-block__reusable-block-container",h&&v,{[`align${g}`]:g})}),_=(0,Kr.useInnerBlocksProps)(x,{layout:h,value:l,onInput:Gfe,onChange:Gfe,renderAppender:l?.length?void 0:Kr.InnerBlocks.ButtonBlockAppender}),k=()=>{d({postId:t,postType:"wp_block"})},y=()=>{r&&(u(),n({content:void 0}))},w=null;return c&&(w=(0,Tr.jsx)(Kr.Warning,{children:(0,X_.__)("Block has been deleted or is unavailable.")})),s||(w=(0,Tr.jsx)(qc.Placeholder,{children:(0,Tr.jsx)(qc.Spinner,{})})),(0,Tr.jsxs)(Tr.Fragment,{children:[s&&!c&&(0,Tr.jsx)(PIe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:d?k:void 0,resetContent:y}),w===null?(0,Tr.jsx)("div",{..._}):(0,Tr.jsx)("div",{...x,children:w})]})}var NIe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,IIe={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&&NIe(e[t].values))},migrate(e){let{content:t,...r}=e;if(t&&Object.keys(t).length){let o={...t};for(let n in t)o[n]=t[n].values;return{...r,content:o}}return e}},RIe={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(n=>{o[n]=t[n]}),{...r,content:o}}},Kfe=[IIe,RIe];var{name:Jfe}=h8,ege={deprecated:Kfe,edit:Zfe,icon:uI,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Qfe.select)(Yfe.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,Xfe.decodeEntities)(t.title)}},DIe=()=>M({name:Jfe,metadata:h8,settings:ege});var iF={};J(iF,{init:()=>AIe,metadata:()=>v8,name:()=>oge,settings:()=>nge});var rge=a(D(),1);var v8={$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 p1=a(R(),1),m1=a(V(),1),y8=a(K(),1),d1=a(D(),1);var Zc=a(b(),1);function tge({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let n=(0,p1.useBlockProps)(),i=X();return(0,Zc.jsxs)(Zc.Fragment,{children:[(0,Zc.jsx)(p1.InspectorControls,{children:(0,Zc.jsx)(m1.__experimentalToolsPanel,{label:(0,d1.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Zc.jsx)(m1.__experimentalToolsPanelItem,{label:(0,d1.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Zc.jsx)(m1.ToggleControl,{label:(0,d1.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Zc.jsx)(p1.RichText,{identifier:"content",tagName:"a","aria-label":(0,d1.__)("\u201CRead more\u201D link text"),placeholder:(0,d1.__)("Read more"),value:e,onChange:s=>r({content:s}),__unstableOnSplitAtEnd:o?()=>o((0,y8.createBlock)((0,y8.getDefaultBlockName)())):void 0,withoutInteractiveFormatting:!0,...n})]})}var{name:oge}=v8,nge={icon:wi,edit:tge,example:{attributes:{content:(0,rge.__)("Read more")}}},AIe=()=>M({name:oge,metadata:v8,settings:nge});var sF={};J(sF,{init:()=>FIe,metadata:()=>b8,name:()=>cge,settings:()=>uge});var b8={$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 cg=a(R(),1),Pt=a(V(),1),_8=a(H(),1);var jt=a(D(),1),age=a(dr(),1),ige=a(sd(),1),sge=a(he(),1);var dt=a(b(),1),zIe=1,VIe=20;function lge({attributes:e,setAttributes:t,name:r}){let[o,n]=(0,_8.useState)(!e.feedURL),{blockLayout:i,columns:s,displayAuthor:l,displayDate:c,displayExcerpt:u,excerptLength:d,feedURL:p,itemsToShow:m,openInNewTab:f,rel:g}=e,h=X();function v(N){return()=>{let I=e[N];t({[N]:!I})}}function x(N){N.preventDefault(),p&&(t({feedURL:(0,age.prependHTTPS)(p)}),n(!1))}let{content:_,status:k,error:y}=(0,ige.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),w=(0,sge.useDisabled)(),C=(0,cg.useBlockProps)({ref:o?null:w}),S=(0,jt.__)("RSS URL");if(o)return(0,dt.jsx)("div",{...C,children:(0,dt.jsx)(Pt.Placeholder,{icon:uy,label:S,instructions:(0,jt.__)("Display entries from any RSS or Atom feed."),children:(0,dt.jsxs)("form",{onSubmit:x,className:"wp-block-rss__placeholder-form",children:[(0,dt.jsx)(Pt.__experimentalInputControl,{label:S,type:"url",hideLabelFromVision:!0,placeholder:(0,jt.__)("Enter URL here\u2026"),value:p,onChange:N=>t({feedURL:N}),className:"wp-block-rss__placeholder-input"}),(0,dt.jsx)(Pt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,jt.__)("Apply")})]})})});let P=[{icon:pm,title:(0,jt.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:dl,title:(0,jt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:ki,title:(0,jt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(cg.BlockControls,{children:(0,dt.jsx)(Pt.ToolbarGroup,{controls:P})}),(0,dt.jsx)(cg.InspectorControls,{children:(0,dt.jsxs)(Pt.__experimentalToolsPanel,{label:(0,jt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:h,children:[(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Number of items"),hasValue:()=>m!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.RangeControl,{label:(0,jt.__)("Number of items"),value:m,onChange:N=>t({itemsToShow:N}),min:zIe,max:VIe,required:!0})}),(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Display author"),hasValue:()=>!!l,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.ToggleControl,{label:(0,jt.__)("Display author"),checked:l,onChange:v("displayAuthor")})}),(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.ToggleControl,{label:(0,jt.__)("Display date"),checked:c,onChange:v("displayDate")})}),(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.ToggleControl,{label:(0,jt.__)("Display excerpt"),checked:u,onChange:v("displayExcerpt")})}),u&&(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Max number of words in excerpt"),hasValue:()=>d!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.RangeControl,{label:(0,jt.__)("Max number of words in excerpt"),value:d,onChange:N=>t({excerptLength:N}),min:10,max:100,required:!0})}),i==="grid"&&(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Columns"),hasValue:()=>s!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.RangeControl,{label:(0,jt.__)("Columns"),value:s,onChange:N=>t({columns:N}),min:2,max:6,required:!0})}),(0,dt.jsx)(Pt.__experimentalToolsPanelItem,{label:(0,jt.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,dt.jsx)(Pt.ToggleControl,{label:(0,jt.__)("Open links in new tab"),checked:f,onChange:N=>t({openInNewTab:N})})})]})}),(0,dt.jsx)(cg.InspectorControls,{group:"advanced",children:(0,dt.jsx)(Pt.TextControl,{label:(0,jt.__)("Link relation"),help:(0,_8.createInterpolateElement)((0,jt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,dt.jsx)(Pt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:g||"",onChange:N=>t({rel:N})})}),k==="loading"&&(0,dt.jsx)("div",{...C,children:(0,dt.jsx)(Pt.Spinner,{})}),k==="error"&&(0,dt.jsx)("div",{...C,children:(0,dt.jsx)("p",{children:(0,jt.sprintf)((0,jt.__)("Error: %s"),y)})}),k==="success"&&(0,dt.jsx)(To,{wrapperProps:C,html:_})]})}var{name:cge}=b8,uge={icon:uy,example:{attributes:{feedURL:"https://wordpress.org"}},edit:lge},FIe=()=>M({name:cge,metadata:b8,settings:uge});var mF={};J(mF,{init:()=>GIe,metadata:()=>x8,name:()=>_ge,settings:()=>C8});var f1=a(D(),1);var bge=a(K(),1);var x8={$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 no=a(R(),1),k8=a(O(),1),t2=a(H(),1),mr=a(V(),1),fge=a(he(),1);var Mt=a(D(),1),gge=a(da(),1),hge=a(Uy(),1),w8=a(z(),1);var lF=50,cF=350,uF=220;function dF(e){return e==="%"}var bt=a(b(),1),dge={"":(0,Mt.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,Mt.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,Mt.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},pge="4px",mge=[25,50,75,100],HIe=(0,bt.jsx)(w8.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,bt.jsx)(w8.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"})});function vge({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:n,clientId:i}){let{label:s,showLabel:l,placeholder:c,width:u,widthUnit:d,align:p,buttonText:m,buttonPosition:f,buttonUseIcon:g,tagName:h,style:v}=t,x=(0,k8.useSelect)(ae=>{let{getBlockParentsByBlockName:se,wasBlockJustInserted:ue}=ae(no.store);return!!se(i,"core/navigation")?.length&&ue(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,k8.useDispatch)(no.store);(0,t2.useEffect)(()=>{x&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,x,r]);let k=v?.border?.radius,y=(0,no.__experimentalUseBorderProps)(t);typeof k=="number"&&(y={...y,style:{...y.style,borderRadius:`${k}px`}});let w=(0,no.__experimentalUseColorProps)(t),[C,S]=(0,no.useSettings)("typography.fluid","layout"),P=(0,no.getTypographyClassesAndStyles)(t,{typography:{fluid:C},layout:{wideSize:S?.wideSize}}),I=`wp-block-search__width-${(0,fge.useInstanceId)(mr.__experimentalUnitControl)}`,B=f==="button-inside",E=f==="button-outside",L=f==="no-button",A=f==="button-only",U=A&&!n,$=(0,t2.useRef)(),W=(0,t2.useRef)(),G=(0,mr.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":lF,px:cF}}),F=()=>T(e,B?"wp-block-search__button-inside":void 0,E?"wp-block-search__button-outside":void 0,L?"wp-block-search__no-button":void 0,A?"wp-block-search__button-only":void 0,!g&&!L?"wp-block-search__text-button":void 0,g&&!L?"wp-block-search__icon-button":void 0,U?"wp-block-search__searchfield-hidden":void 0),Z=[{label:(0,Mt.__)("Button outside"),value:"button-outside"},{label:(0,Mt.__)("Button inside"),value:"button-inside"},{label:(0,Mt.__)("No button"),value:"no-button"},{label:(0,Mt.__)("Button only"),value:"button-only"}],j=()=>A?{}:{right:p!=="right",left:p==="right"},Y=()=>{let ae=T("wp-block-search__input",L?w.className:void 0,B?void 0:y.className,P.className),se={...L?w.style:{},...B?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style,...P.style,textDecoration:void 0};return(0,bt.jsx)("input",{type:"search",className:ae,style:se,"aria-label":(0,Mt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Mt.__)("Optional placeholder\u2026"),value:c,onChange:ue=>r({placeholder:ue.target.value}),ref:$})},ee=()=>{let ae=T("wp-block-search__button",w.className,P.className,B?void 0:y.className,g?"has-icon":void 0,(0,no.__experimentalGetElementClassName)("button")),se={...w.style,...P.style,...B?{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius}:y.style};return(0,bt.jsxs)(bt.Fragment,{children:[g&&(0,bt.jsx)("button",{type:"button",className:ae,style:se,"aria-label":m?(0,gge.__unstableStripHTML)(m):(0,Mt.__)("Search"),ref:W,children:(0,bt.jsx)(pa,{icon:HIe})}),!g&&(0,bt.jsx)(no.RichText,{identifier:"buttonText",className:ae,style:se,"aria-label":(0,Mt.__)("Button text"),placeholder:(0,Mt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:m,onChange:ue=>r({buttonText:ue})})]})},te=X(),Q=(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(no.InspectorControls,{children:(0,bt.jsxs)(mr.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:te,children:[(0,bt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Mt.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,bt.jsx)(mr.ToggleControl,{checked:l,label:(0,Mt.__)("Show label"),onChange:ae=>r({showLabel:ae})})}),(0,bt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Mt.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,bt.jsx)(mr.SelectControl,{value:f,label:(0,Mt.__)("Button position"),onChange:ae=>{r({buttonPosition:ae})},options:Z})}),f!=="no-button"&&(0,bt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,Mt.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,bt.jsx)(mr.ToggleControl,{checked:g,label:(0,Mt.__)("Use button with icon"),onChange:ae=>r({buttonUseIcon:ae})})}),(0,bt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Mt.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,bt.jsxs)(mr.__experimentalVStack,{children:[(0,bt.jsx)(mr.__experimentalUnitControl,{label:(0,Mt.__)("Width"),id:I,min:dF(d)?0:uF,max:dF(d)?100:void 0,step:1,onChange:ae=>{let se=ae===""?void 0:parseInt(ae,10);r({width:se})},onUnitChange:ae=>{r({width:ae==="%"?lF:cF,widthUnit:ae})},__unstableInputWidth:"80px",value:`${u}${d}`,units:G}),(0,bt.jsx)(mr.__experimentalToggleGroupControl,{label:(0,Mt.__)("Percentage Width"),value:mge.includes(u)&&d==="%"?u:void 0,hideLabelFromVision:!0,onChange:ae=>{r({width:ae,widthUnit:"%"})},isBlock:!0,children:mge.map(ae=>(0,bt.jsx)(mr.__experimentalToggleGroupControlOption,{value:ae,label:(0,Mt.sprintf)((0,Mt.__)("%d%%"),ae)},ae))})]})})]})}),(0,bt.jsx)(no.InspectorControls,{group:"advanced",children:(0,bt.jsx)(mr.SelectControl,{label:(0,Mt.__)("HTML element"),value:h??"",options:[{label:(0,Mt.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:ae=>{r({tagName:ae}),(0,hge.speak)(dge[ae].replace(/[<>]/g,""))},help:dge[h??""]})})]}),le=ae=>ae!==void 0&&parseInt(ae,10)!==0,oe=ae=>le(ae)?`calc(${ae} + ${pge})`:void 0,ce=()=>{let ae=B?y.style:{borderRadius:y.style?.borderRadius,borderTopLeftRadius:y.style?.borderTopLeftRadius,borderTopRightRadius:y.style?.borderTopRightRadius,borderBottomLeftRadius:y.style?.borderBottomLeftRadius,borderBottomRightRadius:y.style?.borderBottomRightRadius};if(B){if(typeof k=="object"){let{borderTopLeftRadius:ue,borderTopRightRadius:Oe,borderBottomLeftRadius:Pe,borderBottomRightRadius:ge}=y.style;return{...ae,borderTopLeftRadius:oe(ue),borderTopRightRadius:oe(Oe),borderBottomLeftRadius:oe(Pe),borderBottomRightRadius:oe(ge)}}let se=Number.isInteger(k)?`${k}px`:k;ae.borderRadius=`calc(${se} + ${pge})`}return ae},pe=(0,no.useBlockProps)({className:F(),style:{...P.style,textDecoration:void 0}}),be=T("wp-block-search__label",P.className);return(0,bt.jsxs)(bt.Fragment,{children:[Q,(0,bt.jsxs)(h==="search"?"search":"div",{...pe,children:[l&&(0,bt.jsx)(no.RichText,{identifier:"label",className:be,"aria-label":(0,Mt.__)("Label text"),placeholder:(0,Mt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:s,onChange:ae=>r({label:ae}),style:P.style}),(0,bt.jsxs)(mr.ResizableBox,{size:{width:u===void 0?"auto":`${u}${d}`,height:"auto"},className:T("wp-block-search__inside-wrapper",B?y.className:void 0),style:ce(),minWidth:uF,enable:j(),onResizeStart:(ae,se,ue)=>{r({width:parseInt(ue.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(ae,se,ue,Oe)=>{r({width:parseInt(u+Oe.width,10)}),o(!0)},showHandle:n,children:[(B||E||A)&&(0,bt.jsxs)(bt.Fragment,{children:[Y(),ee()]}),L&&Y()]})]})]})}var pF=a(D(),1),jIe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,pF.__)("Search"),label:(0,pF.__)("Search")}}],yge=jIe;var{fieldsKey:UIe,formKey:WIe}=q(bge.privateApis),{name:_ge}=x8,C8={icon:KN,example:{attributes:{buttonText:(0,f1.__)("Search"),label:(0,f1.__)("Search")},viewportWidth:400},variations:yge,edit:vge};window.__experimentalContentOnlyInspectorFields&&(C8[UIe]=[{id:"label",label:(0,f1.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,f1.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,f1.__)("Placeholder"),type:"text",Edit:"rich-text"}],C8[WIe]={fields:["label","buttonText","placeholder"]});var GIe=()=>M({name:_ge,metadata:x8,settings:C8});var fF={};J(fF,{init:()=>YIe,metadata:()=>T8,name:()=>Bge,settings:()=>Nge});var Np=a(R(),1),S8=a(V(),1),o2=a(D(),1);var r2=a(H(),1),xge=a(he(),1);function kge(e,t,r){let[o,n]=(0,r2.useState)(!1),i=(0,xge.usePrevious)(t);(0,r2.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,r2.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[o,t,i])}var Xu=a(b(),1),$Ie=({tagName:e,setAttributes:t})=>(0,Xu.jsx)(S8.SelectControl,{label:(0,o2.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,o2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,o2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,o2.__)("The <div> element should only be used if the block is a design element with no semantic meaning.")});function wge({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:n,tagName:i}=e,s=(0,Np.__experimentalUseColorProps)(e),l=s?.style?.backgroundColor,c=!!n?.color?.background;kge(o,l,t);let u=(0,Np.getColorClassName)("color",r),d=T({"has-text-color":r||l,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},s.className);return(0,Xu.jsxs)(Xu.Fragment,{children:[(0,Xu.jsx)(Np.InspectorControls,{group:"advanced",children:(0,Xu.jsx)($Ie,{tagName:i,setAttributes:t})}),(0,Xu.jsx)(i==="hr"?S8.HorizontalRule:i,{...(0,Np.useBlockProps)({className:d,style:c?{color:l,backgroundColor:l}:void 0})})]})}var T8={$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 g1=a(R(),1),Cge=a(b(),1);function Sge({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:n}=e,i=r?.color?.background,s=(0,g1.__experimentalGetColorClassesAndStyles)(e),l=(0,g1.getColorClassName)("color",t),c=T({"has-text-color":t||i,[l]:l,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},s.className),u={backgroundColor:s?.style?.backgroundColor,color:l?void 0:i};return(0,Cge.jsx)(n,{...g1.useBlockProps.save({className:c,style:u})})}var Ip=a(K(),1),ZIe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Ip.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Ip.createBlock)("core/separator",e?.attributes??{}),(0,Ip.createBlock)((0,Ip.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Ip.createBlock)("core/spacer",{anchor:e||void 0})}]},Tge=ZIe;var n2=a(R(),1),Pge=a(b(),1),KIe={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,n2.getColorClassName)("background-color",t),n=(0,n2.getColorClassName)("color",t),i=T({"has-text-color has-background":t||r,[o]:o,[n]:n}),s={backgroundColor:o?void 0:r,color:n?void 0:r};return(0,Pge.jsx)("hr",{...n2.useBlockProps.save({className:i,style:s})})},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"}}},Ege=[KIe];var{name:Bge}=T8,Nge={icon:QN,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Tge,edit:wge,save:Sge,deprecated:Ege},YIe=()=>M({name:Bge,metadata:T8,settings:Nge});var hF={};J(hF,{init:()=>tRe,metadata:()=>R8,name:()=>jge,settings:()=>Uge});var P8=a(D(),1),B8=a(R(),1),Ige=a(he(),1),Rge=a(V(),1);var E8=a(b(),1);function gF({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,Ige.useInstanceId)(gF)}`;return(0,E8.jsx)("div",{...(0,B8.useBlockProps)(),children:(0,E8.jsx)(Rge.Placeholder,{icon:py,label:(0,P8.__)("Shortcode"),children:(0,E8.jsx)(B8.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,P8.__)("Shortcode text"),placeholder:(0,P8.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var Dge=a(H(),1),Lge=a(b(),1);function Age({attributes:e}){return(0,Lge.jsx)(Dge.RawHTML,{children:e.text})}var N8=a(zge(),1),I8=a(K(),1),Oge=a(Fge(),1),QIe=()=>(0,I8.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),XIe=(e,t)=>{let r=e.trim(),o=(0,Oge.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},JIe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,N8.removep)((0,N8.autop)(t))}},priority:20}],get to(){return QIe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>XIe(t,r)),transform:({text:t=""})=>(0,I8.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},Hge=JIe;var R8={$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:jge}=R8,Uge={icon:py,transforms:Hge,edit:gF,save:Age},tRe=()=>M({name:jge,metadata:R8,settings:Uge});var yF={};J(yF,{init:()=>sRe,metadata:()=>D8,name:()=>Kge,settings:()=>Yge});var D8={$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 vF=a(Or(),1),Kc=a(H(),1),yo=a(D(),1),zt=a(V(),1),Wge=a(he(),1),bo=a(R(),1),Rp=a(O(),1),h1=a(ne(),1);var Gge=a(xr(),1);var Ge=a(b(),1),L8=["image"],{mediaEditKey:oRe,openMediaEditorModalKey:nRe}=q(bo.privateApis),aRe=({alt:e,attributes:{align:t,width:r,height:o,isLink:n,linkTarget:i,shouldSyncIcon:s},isSelected:l,setAttributes:c,setLogo:u,logoUrl:d,siteUrl:p,logoId:m,iconId:f,setIcon:g,canUserEdit:h})=>{let v=(0,Wge.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&v,[{naturalWidth:k,naturalHeight:y},w]=(0,Kc.useState)({}),C=(0,Kc.useRef)(),{toggleSelection:S,__unstableMarkNextChangeAsNotPersistent:P}=(0,Rp.useDispatch)(bo.store),N=X(),B=(0,bo.useBlockEditingMode)()==="contentOnly",{imageEditing:E,maxWidth:L,title:A,editMediaEntity:U,openMediaEditorModal:$}=(0,Rp.useSelect)(Pe=>{let ge=Pe(bo.store).getSettings();return{title:Pe(h1.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:ge.imageEditing,maxWidth:ge.maxWidth,editMediaEntity:ge?.[oRe],openMediaEditorModal:ge?.[nRe]}},[]);(0,Kc.useEffect)(()=>{s&&m!==f&&(P(),c({shouldSyncIcon:!1}))},[]);let W=({id:Pe})=>{typeof Pe=="number"&&u(Pe)};function G(){S(!1)}function F(){S(!0)}let Z=(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)("img",{className:"custom-logo",src:d,alt:e,onLoad:Pe=>{w({naturalWidth:Pe.target.naturalWidth,naturalHeight:Pe.target.naturalHeight})}}),(0,vF.isBlobURL)(d)&&(0,Ge.jsx)(zt.Spinner,{})]}),j=Z;if(n&&(j=(0,Ge.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:A,onClick:Pe=>Pe.preventDefault(),children:Z})),!_||!k||!y)return(0,Ge.jsx)("div",{style:{width:r,height:o},children:j});let Y=120,ee=r||Y,te=k/y,Q=ee/te,le=k<y?xc:Math.ceil(xc*te),oe=y<k?xc:Math.ceil(xc/te),ce=L*2.5,pe=!1,be=!1;t==="center"?(pe=!0,be=!0):(0,yo.isRTL)()?t==="left"?pe=!0:be=!0:t==="right"?be=!0:pe=!0;let Te=m&&k&&y&&E&&!!U,ae=!B,ue=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",Oe=(0,Kc.createInterpolateElement)((0,yo.__)("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,Ge.jsx)("a",{href:ue,target:"_blank",rel:"noopener"})});return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(bo.InspectorControls,{children:(0,Ge.jsxs)(zt.__experimentalToolsPanel,{label:(0,yo.__)("Settings"),dropdownMenuProps:N,children:[(0,Ge.jsx)(zt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,yo.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,Ge.jsx)(zt.RangeControl,{label:(0,yo.__)("Image width"),onChange:Pe=>c({width:Pe}),min:le,max:ce,initialPosition:Math.min(Y,ce),value:r||"",disabled:!_})}),(0,Ge.jsx)(zt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,yo.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,Ge.jsx)(zt.ToggleControl,{label:(0,yo.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,Ge.jsx)(zt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,yo.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,Ge.jsx)(zt.ToggleControl,{label:(0,yo.__)("Open in new tab"),onChange:Pe=>c({linkTarget:Pe?"_blank":"_self"}),checked:i==="_blank"})}),h&&(0,Ge.jsx)(zt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!s,label:(0,yo.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),g(void 0)},children:(0,Ge.jsx)(zt.ToggleControl,{label:(0,yo.__)("Use as Site Icon"),onChange:Pe=>{c({shouldSyncIcon:Pe}),g(Pe?m:void 0)},checked:!!s,help:Oe})})]})}),Te&&$&&ae&&(0,Ge.jsx)(bo.BlockControls,{group:"block",children:(0,Ge.jsx)(zt.ToolbarButton,{ref:C,onClick:()=>$({id:m,onUpdate:W,onClose:()=>C.current?.focus()}),"aria-haspopup":"dialog",icon:am,label:(0,yo.__)("Edit image")})}),(0,Ge.jsx)(zt.ResizableBox,{size:{width:ee,height:Q},showHandle:l&&ae,minWidth:le,maxWidth:ce,minHeight:oe,maxHeight:ce/te,lockAspectRatio:!0,enable:{top:!1,right:pe,bottom:!0,left:be},onResizeStart:G,onResizeStop:(Pe,ge,et,me)=>{F(),c({width:parseInt(ee+me.width,10),height:parseInt(Q+me.height,10)})},children:j})]})};function $ge({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:s,canUserEdit:l,url:c,siteIconId:u,mediaItemData:d,isRequestingMediaItem:p}=(0,Rp.useSelect)(F=>{let{canUser:Z,getEntityRecord:j,getEditedEntityRecord:Y}=F(h1.store),ee=Z("update",{kind:"root",name:"site"}),te=ee?Y("root","site"):void 0,Q=j("root","__unstableBase"),le=ee?te?.site_logo:Q?.site_logo,oe=te?.site_icon,ce=le&&F(h1.store).getEntityRecord("postType","attachment",le,{context:"view"}),pe=!!le&&!F(h1.store).hasFinishedResolution("getEntityRecord",["postType","attachment",le,{context:"view"}]);return{siteLogoId:le,canUserEdit:ee,url:Q?.home,mediaItemData:ce,isRequestingMediaItem:pe,siteIconId:oe}},[]),{getSettings:m}=(0,Rp.useSelect)(bo.store),[f,g]=(0,Kc.useState)(),h=X(),{editEntityRecord:v}=(0,Rp.useDispatch)(h1.store),x=(F,Z=!1)=>{(i||Z)&&_(F),v("root","site",void 0,{site_logo:F})},_=F=>v("root","site",void 0,{site_icon:F??null}),{alt_text:k,source_url:y}=d??{},w=F=>{if(i===void 0){let Z=!u;r({shouldSyncIcon:Z}),C(F,Z);return}C(F)},C=(F,Z=!1)=>{if(F){if(!F.id&&F.url){g(F.url),x(void 0);return}x(F.id,Z)}},S=()=>{x(null),r({width:void 0})},{createErrorNotice:P}=(0,Rp.useDispatch)(Gge.store),N=F=>{P(F,{type:"snackbar"}),g()},I=F=>{m().mediaUpload({allowedTypes:L8,filesList:F,onFileChange([Z]){if((0,vF.isBlobURL)(Z?.url)){g(Z.url);return}w(Z)},onError:N,multiple:!1})},B={mediaURL:y,name:y?(0,yo.__)("Replace"):(0,yo.__)("Choose logo"),onSelect:C,onError:N,onReset:S},E=l&&(0,Ge.jsx)(bo.BlockControls,{group:"other",children:(0,Ge.jsx)(bo.MediaReplaceFlow,{...B,allowedTypes:L8,variant:"toolbar"})}),L,A=s===void 0||p;A&&(L=(0,Ge.jsx)(zt.Spinner,{})),(0,Kc.useEffect)(()=>{y&&f&&g()},[y,f]),(y||f)&&(L=(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(aRe,{alt:k,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||y,setLogo:x,logoId:d?.id||s,siteUrl:c,setIcon:_,iconId:u,canUserEdit:l}),l&&(0,Ge.jsx)(zt.DropZone,{onFilesDrop:I})]}));let U=F=>{let Z=T("block-editor-media-placeholder",t);return(0,Ge.jsx)(zt.Placeholder,{className:Z,preview:L,withIllustration:!0,style:{width:n},children:F})},$=T(t,{"is-default-size":!n,"is-transient":f}),W=(0,bo.useBlockProps)({className:$}),G=(l||y)&&(0,Ge.jsx)(bo.InspectorControls,{children:(0,Ge.jsx)(zt.__experimentalToolsPanel,{label:(0,yo.__)("Media"),dropdownMenuProps:h,children:l?(0,Ge.jsx)(zt.__experimentalToolsPanelItem,{hasValue:()=>!!y,label:(0,yo.__)("Logo"),isShownByDefault:!0,children:(0,Ge.jsx)(vC,{mediaId:s,mediaUrl:y,filename:d?.media_details?.sizes?.full?.file||d?.slug,allowedTypes:L8,onSelect:C,onError:N,onReset:S,isUploading:!!f,emptyLabel:(0,yo.__)("Logo")})}):(0,Ge.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,Ge.jsx)(qA,{url:d?.source_url,filename:d?.media_details?.sizes?.full?.file||d?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,Ge.jsxs)("div",{...W,children:[E,G,(!!y||!!f)&&L,(A||!f&&!y&&!l)&&(0,Ge.jsx)(zt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:A&&(0,Ge.jsx)("span",{className:"components-placeholder__preview",children:(0,Ge.jsx)(zt.Spinner,{})})}),!A&&!f&&!y&&l&&(0,Ge.jsx)(bo.MediaPlaceholder,{onSelect:w,allowedTypes:L8,onError:N,placeholder:U,mediaLibraryButton:({open:F})=>(0,Ge.jsx)(zt.Button,{__next40pxDefaultSize:!0,icon:cu,variant:"primary",label:(0,yo.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{F()}})})]})}var qge=a(K(),1),iRe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,qge.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Zge=iRe;var{name:Kge}=D8,Yge={icon:oI,example:{},edit:$ge,transforms:Zge},sRe=()=>M({name:Kge,metadata:D8,settings:Yge});var _F={};J(_F,{init:()=>dRe,metadata:()=>A8,name:()=>the,settings:()=>rhe});var A8={$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 Qge=a(O(),1),z8=a(ne(),1),Dp=a(R(),1),M8=a(D(),1),V8=a(K(),1);var Ju=a(b(),1);function Xge(e){Et(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i}=t,s=(0,Qge.useSelect)(m=>m(z8.store).canUser("update",{kind:"root",name:"site"}),[]),[l,c]=(0,z8.useEntityProp)("root",s?"site":"__unstableBase","description",void 0),u=n===0?"p":`h${n}`,d=(0,Dp.useBlockProps)({className:!s&&!l&&"wp-block-site-tagline__placeholder"}),p=s?(0,Ju.jsx)(Dp.RichText,{allowedFormats:[],onChange:c,"aria-label":(0,M8.__)("Site tagline text"),placeholder:(0,M8.__)("Write site tagline\u2026"),tagName:u,value:l,disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,V8.createBlock)((0,V8.getDefaultBlockName)())):void 0,...d}):(0,Ju.jsx)(u,{...d,children:l||(0,M8.__)("Site Tagline placeholder")});return(0,Ju.jsxs)(Ju.Fragment,{children:[(0,Ju.jsx)(Dp.BlockControls,{group:"block",children:(0,Ju.jsx)(Dp.HeadingLevelDropdown,{value:n,options:i,onChange:m=>r({level:m})})}),p]})}var F8=a(V(),1),bF=a(b(),1),Jge=(0,bF.jsx)(F8.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,bF.jsx)(F8.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var cRe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},uRe={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:er,isEligible({style:e}){return e?.typography?.fontFamily}},ehe=[cRe,uRe];var{name:the}=A8,rhe={icon:Jge,edit:Xge,deprecated:ehe},dRe=()=>M({name:the,metadata:A8,settings:rhe});var kF={};J(kF,{init:()=>hRe,metadata:()=>O8,name:()=>lhe,settings:()=>che});var O8={$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,fitText:!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 ohe=a(O(),1),H8=a(ne(),1),Yc=a(D(),1),Ks=a(R(),1),Lp=a(V(),1),xF=a(Wo(),1);var rn=a(b(),1);function nhe(e){Et(e);let{attributes:t,setAttributes:r}=e,{level:o,levelOptions:n,isLink:i,linkTarget:s}=t,l=(0,ohe.useSelect)(h=>h(H8.store).canUser("update",{kind:"root",name:"site"}),[]),[c,u]=(0,H8.useEntityProp)("root",l?"site":"__unstableBase",l?"title":"name",void 0),d=X(),p=(0,Ks.useBlockEditingMode)(),m=o===0?"p":`h${o}`,f=(0,Ks.useBlockProps)({className:!l&&!c&&"wp-block-site-title__placeholder"}),g=l?(0,rn.jsx)(m,{...f,children:(0,rn.jsx)(Ks.RichText,{tagName:i?"a":"span",href:i?"#site-title-pseudo-link":void 0,"aria-label":(0,Yc.__)("Site title text"),placeholder:(0,Yc.__)("Write site title\u2026"),value:c,onChange:h=>u(h.trim()),allowedFormats:[],disableLineBreaks:!0})}):(0,rn.jsx)(m,{...f,children:i?(0,rn.jsx)("a",{href:"#site-title-pseudo-link",onClick:h=>h.preventDefault(),children:(0,xF.decodeEntities)(c)||(0,Yc.__)("Site Title placeholder")}):(0,rn.jsx)("span",{children:(0,xF.decodeEntities)(c)||(0,Yc.__)("Site Title placeholder")})});return(0,rn.jsxs)(rn.Fragment,{children:[p==="default"&&(0,rn.jsx)(Ks.BlockControls,{group:"block",children:(0,rn.jsx)(Ks.HeadingLevelDropdown,{value:o,options:n,onChange:h=>r({level:h})})}),(0,rn.jsx)(Ks.InspectorControls,{children:(0,rn.jsxs)(Lp.__experimentalToolsPanel,{label:(0,Yc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,rn.jsx)(Lp.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Yc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,rn.jsx)(Lp.ToggleControl,{label:(0,Yc.__)("Make title link to home"),onChange:()=>r({isLink:!i}),checked:i})}),i&&(0,rn.jsx)(Lp.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,Yc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,rn.jsx)(Lp.ToggleControl,{label:(0,Yc.__)("Open in new tab"),onChange:h=>r({linkTarget:h?"_blank":"_self"}),checked:s==="_blank"})})]})}),g]})}var mRe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fRe={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:er,isEligible({style:e}){return e?.typography?.fontFamily}},ahe=[mRe,fRe];var ihe=a(K(),1),gRe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,ihe.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},she=gRe;var{name:lhe}=O8,che={icon:RB,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:nhe,transforms:she,deprecated:ahe},hRe=()=>M({name:lhe,metadata:O8,settings:che});var bO={};J(bO,{init:()=>kRe,metadata:()=>z9,name:()=>u0e,settings:()=>V9});var yO=a(D(),1);var c0e=a(K(),1);var v1=a(uc(),1),M9=a(O(),1),La=a(R(),1),ug=a(H(),1),_o=a(V(),1),n0e=a(he(),1),di=a(D(),1);var a0e=a(K(),1);var vO=a(D(),1);var j8=a(z(),1),wF=a(b(),1),uhe=()=>(0,wF.jsx)(j8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wF.jsx)(j8.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 U8=a(z(),1),CF=a(b(),1),dhe=()=>(0,CF.jsx)(U8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CF.jsx)(U8.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var W8=a(z(),1),SF=a(b(),1),phe=()=>(0,SF.jsx)(W8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SF.jsx)(W8.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 G8=a(z(),1),TF=a(b(),1),mhe=()=>(0,TF.jsx)(G8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TF.jsx)(G8.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 $8=a(z(),1),PF=a(b(),1),a2=()=>(0,PF.jsx)($8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PF.jsx)($8.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 q8=a(z(),1),EF=a(b(),1),fhe=()=>(0,EF.jsx)(q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EF.jsx)(q8.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 Z8=a(z(),1),BF=a(b(),1),ghe=()=>(0,BF.jsx)(Z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BF.jsx)(Z8.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 K8=a(z(),1),NF=a(b(),1),hhe=()=>(0,NF.jsx)(K8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NF.jsx)(K8.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 Y8=a(z(),1),IF=a(b(),1),vhe=()=>(0,IF.jsx)(Y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IF.jsx)(Y8.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 Q8=a(z(),1),RF=a(b(),1),yhe=()=>(0,RF.jsx)(Q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RF.jsx)(Q8.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 X8=a(z(),1),DF=a(b(),1),bhe=()=>(0,DF.jsx)(X8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DF.jsx)(X8.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 J8=a(z(),1),LF=a(b(),1),_he=()=>(0,LF.jsx)(J8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LF.jsx)(J8.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 e9=a(z(),1),AF=a(b(),1),xhe=()=>(0,AF.jsx)(e9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AF.jsx)(e9.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 t9=a(z(),1),MF=a(b(),1),khe=()=>(0,MF.jsx)(t9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MF.jsx)(t9.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 r9=a(z(),1),zF=a(b(),1),whe=()=>(0,zF.jsx)(r9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zF.jsx)(r9.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 o9=a(z(),1),VF=a(b(),1),Che=()=>(0,VF.jsx)(o9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VF.jsx)(o9.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 n9=a(z(),1),FF=a(b(),1),She=()=>(0,FF.jsx)(n9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FF.jsx)(n9.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 a9=a(z(),1),OF=a(b(),1),The=()=>(0,OF.jsx)(a9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OF.jsx)(a9.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 i9=a(z(),1),HF=a(b(),1),Phe=()=>(0,HF.jsx)(i9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HF.jsx)(i9.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 s9=a(z(),1),jF=a(b(),1),Ehe=()=>(0,jF.jsx)(s9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jF.jsx)(s9.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 l9=a(z(),1),UF=a(b(),1),Bhe=()=>(0,UF.jsx)(l9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UF.jsx)(l9.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 c9=a(z(),1),WF=a(b(),1),Nhe=()=>(0,WF.jsx)(c9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WF.jsx)(c9.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 u9=a(z(),1),GF=a(b(),1),Ihe=()=>(0,GF.jsx)(u9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GF.jsx)(u9.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 d9=a(z(),1),$F=a(b(),1),Rhe=()=>(0,$F.jsx)(d9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$F.jsx)(d9.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 p9=a(z(),1),qF=a(b(),1),Dhe=()=>(0,qF.jsx)(p9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qF.jsx)(p9.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 m9=a(z(),1),ZF=a(b(),1),Lhe=()=>(0,ZF.jsx)(m9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZF.jsx)(m9.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 f9=a(z(),1),KF=a(b(),1),Ahe=()=>(0,KF.jsx)(f9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KF.jsx)(f9.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 g9=a(z(),1),YF=a(b(),1),Mhe=()=>(0,YF.jsx)(g9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YF.jsx)(g9.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 h9=a(z(),1),QF=a(b(),1),zhe=()=>(0,QF.jsx)(h9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QF.jsx)(h9.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 v9=a(z(),1),XF=a(b(),1),Vhe=()=>(0,XF.jsx)(v9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XF.jsx)(v9.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 y9=a(z(),1),JF=a(b(),1),Fhe=()=>(0,JF.jsx)(y9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JF.jsx)(y9.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 b9=a(z(),1),eO=a(b(),1),Ohe=()=>(0,eO.jsx)(b9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eO.jsx)(b9.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 _9=a(z(),1),tO=a(b(),1),Hhe=()=>(0,tO.jsx)(_9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tO.jsx)(_9.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 x9=a(z(),1),rO=a(b(),1),jhe=()=>(0,rO.jsx)(x9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rO.jsx)(x9.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 k9=a(z(),1),oO=a(b(),1),Uhe=()=>(0,oO.jsx)(k9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oO.jsx)(k9.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 w9=a(z(),1),nO=a(b(),1),Whe=()=>(0,nO.jsx)(w9.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,nO.jsx)(w9.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 C9=a(z(),1),aO=a(b(),1),Ghe=()=>(0,aO.jsx)(C9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aO.jsx)(C9.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 S9=a(z(),1),iO=a(b(),1),$he=()=>(0,iO.jsx)(S9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iO.jsx)(S9.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 T9=a(z(),1),sO=a(b(),1),qhe=()=>(0,sO.jsx)(T9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sO.jsx)(T9.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 P9=a(z(),1),lO=a(b(),1),Zhe=()=>(0,lO.jsx)(P9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lO.jsx)(P9.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 E9=a(z(),1),cO=a(b(),1),Khe=()=>(0,cO.jsx)(E9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cO.jsx)(E9.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 B9=a(z(),1),uO=a(b(),1),Yhe=()=>(0,uO.jsx)(B9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,uO.jsx)(B9.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 N9=a(z(),1),dO=a(b(),1),Qhe=()=>(0,dO.jsx)(N9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dO.jsx)(N9.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 I9=a(z(),1),pO=a(b(),1),Xhe=()=>(0,pO.jsx)(I9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pO.jsx)(I9.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 R9=a(z(),1),mO=a(b(),1),Jhe=()=>(0,mO.jsx)(R9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,mO.jsx)(R9.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 D9=a(z(),1),fO=a(b(),1),e0e=()=>(0,fO.jsx)(D9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,fO.jsx)(D9.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 L9=a(z(),1),gO=a(b(),1),t0e=()=>(0,gO.jsx)(L9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gO.jsx)(L9.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 A9=a(z(),1),hO=a(b(),1),r0e=()=>(0,hO.jsx)(A9.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hO.jsx)(A9.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 o0e(e){return e?.name?{icon:e?.icon??a2,label:e?.title??(0,vO.__)("Social Icon")}:{icon:a2,label:(0,vO.__)("Social Icon")}}var cr=a(b(),1),vRe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:n})=>{let{removeBlock:i}=(0,M9.useDispatch)(La.store);return(0,cr.jsx)(La.URLPopover,{anchor:o,"aria-label":(0,di.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,cr.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:s=>{s.preventDefault(),r(!1),o?.focus()},children:(0,cr.jsx)("div",{className:"block-editor-url-input",children:(0,cr.jsx)(La.URLInput,{value:e,onChange:s=>t({url:s}),placeholder:(0,di.__)("Enter social link"),label:(0,di.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:s=>{e||s.defaultPrevented||![v1.BACKSPACE,v1.DELETE].includes(s.keyCode)||i(n)},suffix:(0,cr.jsx)(_o.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,cr.jsx)(_o.Button,{icon:xB,label:(0,di.__)("Apply"),type:"submit",size:"small"})})})})})})},yRe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:n,name:i})=>{let{url:s,service:l,label:c="",rel:u}=e,d=X(),{showLabels:p,iconColor:m,iconColorValue:f,iconBackgroundColor:g,iconBackgroundColorValue:h}=t,[v,x]=(0,ug.useState)(!1),_=T("wp-social-link","wp-block-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!s,[`has-${m}-color`]:m,[`has-${g}-background-color`]:g}),[k,y]=(0,ug.useState)(null),w=(0,La.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,M9.useSelect)(E=>{let{getActiveBlockVariation:L}=E(a0e.store);return{activeVariation:L(i,e)}},[i,e]),{icon:S,label:P}=o0e(C),N=c.trim()===""?P:c,I=(0,ug.useRef)(),B=(0,La.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,n0e.useMergeRefs)([y,I]),onClick:()=>x(!0),onKeyDown:E=>{E.keyCode===v1.ENTER&&(E.preventDefault(),x(!0))}});return(0,cr.jsxs)(cr.Fragment,{children:[w&&p&&(0,cr.jsx)(La.BlockControls,{group:"other",children:(0,cr.jsx)(_o.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:E,onToggle:L})=>(0,cr.jsx)(_o.ToolbarButton,{onClick:L,"aria-haspopup":"true","aria-expanded":E,children:(0,di.__)("Text")}),renderContent:()=>(0,cr.jsx)(_o.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,di.__)("Text"),help:(0,di.__)("Provide a text label or use the default."),value:c,onChange:E=>o({label:E}),placeholder:P})})}),(0,cr.jsx)(La.InspectorControls,{children:(0,cr.jsx)(_o.__experimentalToolsPanel,{label:(0,di.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:d,children:(0,cr.jsx)(_o.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,di.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,cr.jsx)(_o.TextControl,{label:(0,di.__)("Text"),help:(0,di.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:E=>o({label:E}),placeholder:P})})})}),(0,cr.jsx)(La.InspectorControls,{group:"advanced",children:(0,cr.jsx)(_o.TextControl,{label:(0,di.__)("Link relation"),help:(0,ug.createInterpolateElement)((0,di.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,cr.jsx)(_o.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:E=>o({rel:E})})}),(0,cr.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:h},children:[(0,cr.jsxs)("button",{"aria-haspopup":"dialog",...B,role:"button",children:[(0,cr.jsx)(_o.Icon,{icon:S}),(0,cr.jsx)("span",{className:T("wp-block-social-link-label",{"screen-reader-text":!p}),children:N})]}),r&&v&&(0,cr.jsx)(vRe,{url:s,setAttributes:o,setPopover:x,popoverAnchor:k,clientId:n})]})]})},i0e=yRe;var z9={$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 Ue=a(D(),1);var s0e=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Ue._x)("WordPress","social link block variation name"),icon:Jhe},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Ue._x)("500px","social link block variation name"),icon:khe},{name:"amazon",attributes:{service:"amazon"},title:(0,Ue._x)("Amazon","social link block variation name"),icon:uhe},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Ue._x)("Bandcamp","social link block variation name"),icon:dhe},{name:"behance",attributes:{service:"behance"},title:(0,Ue._x)("Behance","social link block variation name"),icon:phe},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Ue._x)("Bluesky","social link block variation name"),icon:mhe},{name:"chain",attributes:{service:"chain"},title:(0,Ue._x)("Link","social link block variation name"),icon:a2},{name:"codepen",attributes:{service:"codepen"},title:(0,Ue._x)("CodePen","social link block variation name"),icon:fhe},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Ue._x)("DeviantArt","social link block variation name"),icon:ghe},{name:"discord",attributes:{service:"discord"},title:(0,Ue._x)("Discord","social link block variation name"),icon:hhe},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Ue._x)("Dribbble","social link block variation name"),icon:vhe},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Ue._x)("Dropbox","social link block variation name"),icon:yhe},{name:"etsy",attributes:{service:"etsy"},title:(0,Ue._x)("Etsy","social link block variation name"),icon:bhe},{name:"facebook",attributes:{service:"facebook"},title:(0,Ue._x)("Facebook","social link block variation name"),icon:_he},{name:"feed",attributes:{service:"feed"},title:(0,Ue._x)("RSS Feed","social link block variation name"),icon:xhe},{name:"flickr",attributes:{service:"flickr"},title:(0,Ue._x)("Flickr","social link block variation name"),icon:whe},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Ue._x)("Foursquare","social link block variation name"),icon:Che},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Ue._x)("Goodreads","social link block variation name"),icon:She},{name:"google",attributes:{service:"google"},title:(0,Ue._x)("Google","social link block variation name"),icon:The},{name:"github",attributes:{service:"github"},title:(0,Ue._x)("GitHub","social link block variation name"),icon:Phe},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Ue._x)("Gravatar","social link block variation name"),icon:Ehe},{name:"instagram",attributes:{service:"instagram"},title:(0,Ue._x)("Instagram","social link block variation name"),icon:Bhe},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Ue._x)("Last.fm","social link block variation name"),icon:Nhe},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Ue._x)("LinkedIn","social link block variation name"),icon:Ihe},{name:"mail",attributes:{service:"mail"},title:(0,Ue._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:Rhe},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Ue._x)("Mastodon","social link block variation name"),icon:Dhe},{name:"meetup",attributes:{service:"meetup"},title:(0,Ue._x)("Meetup","social link block variation name"),icon:Lhe},{name:"medium",attributes:{service:"medium"},title:(0,Ue._x)("Medium","social link block variation name"),icon:Ahe},{name:"patreon",attributes:{service:"patreon"},title:(0,Ue._x)("Patreon","social link block variation name"),icon:Mhe},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Ue._x)("Pinterest","social link block variation name"),icon:zhe},{name:"pocket",attributes:{service:"pocket"},title:(0,Ue._x)("Pocket","social link block variation name"),icon:Vhe},{name:"reddit",attributes:{service:"reddit"},title:(0,Ue._x)("Reddit","social link block variation name"),icon:Fhe},{name:"skype",attributes:{service:"skype"},title:(0,Ue._x)("Skype","social link block variation name"),icon:Ohe,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Ue._x)("Snapchat","social link block variation name"),icon:Hhe},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Ue._x)("SoundCloud","social link block variation name"),icon:jhe},{name:"spotify",attributes:{service:"spotify"},title:(0,Ue._x)("Spotify","social link block variation name"),icon:Uhe},{name:"telegram",attributes:{service:"telegram"},title:(0,Ue._x)("Telegram","social link block variation name"),icon:Whe},{name:"threads",attributes:{service:"threads"},title:(0,Ue._x)("Threads","social link block variation name"),icon:Ghe},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Ue._x)("TikTok","social link block variation name"),icon:$he},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Ue._x)("Tumblr","social link block variation name"),icon:qhe},{name:"twitch",attributes:{service:"twitch"},title:(0,Ue._x)("Twitch","social link block variation name"),icon:Zhe},{name:"twitter",attributes:{service:"twitter"},title:(0,Ue._x)("Twitter","social link block variation name"),icon:Khe},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Ue._x)("Vimeo","social link block variation name"),icon:Yhe},{name:"vk",attributes:{service:"vk"},title:(0,Ue._x)("VK","social link block variation name"),icon:Qhe},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Ue._x)("WhatsApp","social link block variation name"),icon:Xhe},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Ue._x)("X","social link block variation name"),icon:e0e},{name:"yelp",attributes:{service:"yelp"},title:(0,Ue._x)("Yelp","social link block variation name"),icon:t0e},{name:"youtube",attributes:{service:"youtube"},title:(0,Ue._x)("YouTube","social link block variation name"),icon:r0e}];s0e.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var l0e=s0e;var{fieldsKey:_Re,formKey:xRe}=q(c0e.privateApis),{name:u0e}=z9,V9={icon:dy,edit:i0e,variations:l0e};window.__experimentalContentOnlyInspectorFields&&(V9[_Re]=[{id:"link",label:(0,yO.__)("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,yO.__)("Label"),type:"text"}],V9[xRe]={fields:["link","label"]});var kRe=()=>M({name:u0e,metadata:z9,settings:V9});var xO={};J(xO,{init:()=>BRe,metadata:()=>O9,name:()=>v0e,settings:()=>y0e});var F9=a(R(),1),_O=a(b(),1),wRe=e=>{if(e.layout)return e;let{className:t}=e,r="items-justified-",o=new RegExp(`\\b${r}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(o,"").trim()},i=t?.match(o)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(r.length)}}),n},CRe=[{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:wRe,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:n}}=e,i=T(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${o}`]:o}),s={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,_O.jsx)("ul",{...F9.useBlockProps.save({className:i,style:s}),children:(0,_O.jsx)(F9.InnerBlocks.Content,{})})}}],d0e=CRe;var p0e=a(H(),1),Ho=a(R(),1),Gl=a(V(),1),Aa=a(D(),1),m0e=a(O(),1);var Tn=a(b(),1),SRe=[{label:(0,Aa.__)("Default"),value:""},{label:(0,Aa.__)("Small"),value:"has-small-icon-size"},{label:(0,Aa.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Aa.__)("Large"),value:"has-large-icon-size"},{label:(0,Aa.__)("Huge"),value:"has-huge-icon-size"}];function TRe(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:n,isSelected:i,setAttributes:s,setIconBackgroundColor:l,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:d,openInNewTab:p,showLabels:m,size:f}=r,{hasSocialIcons:g,hasSelectedChild:h,hasSelectedStyleState:v}=(0,m0e.useSelect)(I=>{let{getBlockCount:B,hasSelectedInnerBlock:E,hasSelectedStyleState:L}=q(I(Ho.store));return{hasSocialIcons:B(t)>0,hasSelectedChild:E(t),hasSelectedStyleState:L(t)}},[t]),x=i||h,_=r.className?.includes("is-style-logos-only"),k=X();(0,p0e.useEffect)(()=>{if(_){let I;return s(B=>(I={iconBackgroundColor:B.iconBackgroundColor,iconBackgroundColorValue:B.iconBackgroundColorValue,customIconBackgroundColor:B.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>s({...I})}},[_,s]);let y=T(f,{"has-visible-labels":m,"has-icon-color":n.color||d,"has-icon-background-color":o.color||u}),w=(0,Ho.useBlockProps)({className:y}),C=(0,Ho.useInnerBlocksProps)(w,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||x?Ho.InnerBlocks.ButtonBlockAppender:void 0}),S=[{value:n.color||d,onChange:I=>{c(I),s({iconColorValue:I})},label:(0,Aa.__)("Icon color"),resetAllFilter:()=>{c(void 0),s({iconColorValue:void 0})}}];_||S.push({value:o.color||u,onChange:I=>{l(I),s({iconBackgroundColorValue:I})},label:(0,Aa.__)("Icon background"),resetAllFilter:()=>{l(void 0),s({iconBackgroundColorValue:void 0})}});let P=(0,Ho.__experimentalUseMultipleOriginColorsAndGradients)(),N=P.hasColorsOrGradients&&!v;return(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)(Ho.InspectorControls,{children:(0,Tn.jsxs)(Gl.__experimentalToolsPanel,{label:(0,Aa.__)("Settings"),resetAll:()=>{s({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:k,children:[(0,Tn.jsx)(Gl.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Aa.__)("Icon size"),onDeselect:()=>s({size:void 0}),children:(0,Tn.jsx)(Gl.SelectControl,{label:(0,Aa.__)("Icon size"),onChange:I=>{s({size:I===""?void 0:I})},value:f??"",options:SRe})}),(0,Tn.jsx)(Gl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Aa.__)("Show text"),hasValue:()=>!!m,onDeselect:()=>s({showLabels:!1}),children:(0,Tn.jsx)(Gl.ToggleControl,{label:(0,Aa.__)("Show text"),checked:m,onChange:()=>s({showLabels:!m})})}),(0,Tn.jsx)(Gl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Aa.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>s({openInNewTab:!1}),children:(0,Tn.jsx)(Gl.ToggleControl,{label:(0,Aa.__)("Open links in new tab"),checked:p,onChange:()=>s({openInNewTab:!p})})})]})}),N&&(0,Tn.jsxs)(Ho.InspectorControls,{group:"color",children:[S.map(({onChange:I,label:B,value:E,resetAllFilter:L})=>(0,Tn.jsx)(Ho.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:E,label:B,onColorChange:I,isShownByDefault:!0,resetAllFilter:L,enableAlpha:!0,clearable:!0}],panelId:t,...P},`social-links-color-${B}`)),!_&&(0,Tn.jsx)(Ho.ContrastChecker,{textColor:d,backgroundColor:u,isLargeText:!1})]}),(0,Tn.jsx)("ul",{...C})]})}var PRe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},f0e=(0,Ho.withColors)(PRe)(TRe);var O9={$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 H9=a(R(),1),g0e=a(b(),1);function h0e(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:n}}=e,i=T(n,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),s=H9.useBlockProps.save({className:i}),l=H9.useInnerBlocksProps.save(s);return(0,g0e.jsx)("ul",{...l})}var{name:v0e}=O9,y0e={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:dy,edit:f0e,save:h0e,deprecated:d0e},BRe=()=>M({name:v0e,metadata:O9,settings:y0e});var kO={};J(kO,{init:()=>MRe,metadata:()=>U9,name:()=>R0e,settings:()=>D0e});var b0e=a(R(),1),_0e=a(b(),1),NRe=[{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,_0e.jsx)("div",{...b0e.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],x0e=NRe;var Pn=a(R(),1),T0e=a(V(),1),b1=a(H(),1),j9=a(O(),1);var y1=a(D(),1),Qc=a(R(),1),Ys=a(V(),1),w0e=a(he(),1);var i2=0;var pi=a(b(),1),{useSpacingSizes:IRe}=q(Qc.privateApis);function k0e({label:e,onChange:t,isResizing:r,value:o=""}){let n=(0,w0e.useInstanceId)(Ys.__experimentalUnitControl,"block-spacer-height-input"),i=IRe(),[s]=(0,Qc.useSettings)("spacing.units"),l=s?s.filter(m=>m!=="%"):["px","em","rem","vw","vh"],c=(0,Ys.__experimentalUseCustomUnits)({availableUnits:l,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,d]=(0,Ys.__experimentalParseQuantityAndUnitFromRawValue)(o),p=(0,Qc.isValueSpacingPreset)(o)?o:[u,r?"px":d].join("");return(0,pi.jsx)(pi.Fragment,{children:i?.length<2?(0,pi.jsx)(Ys.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:i2,onChange:t,value:p,units:c,label:e}):(0,pi.jsx)("div",{className:"tools-panel-item-spacing",children:(0,pi.jsx)(Qc.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:m})=>{t(m)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function C0e({setAttributes:e,orientation:t,height:r,width:o,isResizing:n}){let i=X();return(0,pi.jsx)(Qc.InspectorControls,{children:(0,pi.jsxs)(Ys.__experimentalToolsPanel,{label:(0,y1.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,pi.jsx)(Ys.__experimentalToolsPanelItem,{label:(0,y1.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,pi.jsx)(k0e,{label:(0,y1.__)("Width"),value:o,onChange:s=>e({width:s}),isResizing:n})}),t!=="horizontal"&&(0,pi.jsx)(Ys.__experimentalToolsPanelItem,{label:(0,y1.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,pi.jsx)(k0e,{label:(0,y1.__)("Height"),value:r,onChange:s=>e({height:s}),isResizing:n})})]})})}var Qs=a(b(),1),{useSpacingSizes:RRe}=q(Pn.privateApis),S0e=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:n,isResizing:i,setIsResizing:s,...l})=>{let c=d=>e==="horizontal"?d.clientWidth:d.clientHeight,u=d=>`${c(d)}px`;return(0,Qs.jsx)(T0e.ResizableBox,{className:T("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(d,p,m)=>{let f=u(m);t(f),r(f)},onResize:(d,p,m)=>{r(u(m)),i||s(!0)},onResizeStop:(d,p,m)=>{let f=c(m);o(`${f}px`),s(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...l})},DRe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:n,__unstableParentLayout:i,className:s})=>{let l=(0,j9.useSelect)(Y=>Y(Pn.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:d,default:{type:p}={}}=i||{},m=d==="flex"||!d&&p==="flex",f=!u&&m?"horizontal":u||c,{height:g,width:h,style:v={}}=e,{layout:x={}}=v,{selfStretch:_,flexSize:k}=x,y=RRe(),[w,C]=(0,b1.useState)(!1),[S,P]=(0,b1.useState)(null),[N,I]=(0,b1.useState)(null),B=()=>o(!1),E=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:L}=(0,j9.useDispatch)(Pn.store),A=Y=>{E(),m&&r({style:{...v,layout:{...x,flexSize:Y,selfStretch:"fixed"}}}),r({height:Y}),P(null)},U=Y=>{E(),m&&r({style:{...v,layout:{...x,flexSize:Y,selfStretch:"fixed"}}}),r({width:Y}),I(null)},$=()=>{if(!m)return S||(0,Pn.getSpacingPresetCssVar)(g)||void 0},W=()=>{if(!m)return N||(0,Pn.getSpacingPresetCssVar)(h)||void 0},G=f==="horizontal"?N||k:S||k,F={height:f==="horizontal"?24:$(),width:f==="horizontal"?W():void 0,minWidth:f==="vertical"&&m?48:void 0,flexBasis:m?G:void 0,flexGrow:m&&w?0:void 0},Z=Y=>Y==="horizontal"?(0,Qs.jsx)(S0e,{minWidth:i2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Y,onResizeStart:B,onResize:I,onResizeStop:U,isSelected:t,isResizing:w,setIsResizing:C}):(0,Qs.jsx)(Qs.Fragment,{children:(0,Qs.jsx)(S0e,{minHeight:i2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Y,onResizeStart:B,onResize:P,onResizeStop:A,isSelected:t,isResizing:w,setIsResizing:C})});(0,b1.useEffect)(()=>{let Y=ee=>{L(),r(ee)};if(m&&_!=="fill"&&_!=="fit"&&k===void 0)if(f==="horizontal"){let ee=(0,Pn.getCustomValueFromPreset)(h,y)||(0,Pn.getCustomValueFromPreset)(g,y)||"100px";Y({width:"0px",style:{...v,layout:{...x,flexSize:ee,selfStretch:"fixed"}}})}else{let ee=(0,Pn.getCustomValueFromPreset)(g,y)||(0,Pn.getCustomValueFromPreset)(h,y)||"100px";Y({height:"0px",style:{...v,layout:{...x,flexSize:ee,selfStretch:"fixed"}}})}else m&&(_==="fill"||_==="fit")?Y(f==="horizontal"?{width:void 0}:{height:void 0}):!m&&(_||k)&&Y({...f==="horizontal"?{width:k}:{height:k},style:{...v,layout:{...x,flexSize:void 0,selfStretch:void 0}}})},[v,k,g,f,m,x,_,r,y,h,L]);let j=(0,Pn.useBlockEditingMode)();return(0,Qs.jsxs)(Qs.Fragment,{children:[(0,Qs.jsx)("div",{...(0,Pn.useBlockProps)({style:F,className:T(s,{"custom-sizes-disabled":l})}),children:j==="default"&&Z(f)}),!m&&(0,Qs.jsx)(C0e,{setAttributes:r,height:S||g,width:N||h,orientation:f,isResizing:w})]})},P0e=DRe;var U9={$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 E0e=a(K(),1),ARe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,E0e.createBlock)("core/separator",{anchor:e||void 0})}]},B0e=ARe;var s2=a(R(),1),N0e=a(b(),1);function I0e({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:n}={}}=o||{},i=n==="fill"||n==="fit"?void 0:t;return(0,N0e.jsx)("div",{...s2.useBlockProps.save({style:{height:(0,s2.getSpacingPresetCssVar)(i),width:(0,s2.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:R0e}=U9,D0e={icon:UN,transforms:B0e,edit:P0e,save:I0e,deprecated:x0e},MRe=()=>M({name:R0e,metadata:U9,settings:D0e});var SO={};J(SO,{init:()=>FRe,metadata:()=>Q9,name:()=>U0e,settings:()=>W0e});var j0e=a(D(),1);var dg=a(R(),1),Z9=a(O(),1),V0e=a(H(),1);var q9=a(R(),1),k1=a(V(),1),$9=a(D(),1),M0e=a(O(),1);var CO=a(D(),1),G9=a(R(),1),l2=a(V(),1),A0e=a(O(),1);var L0e=a(K(),1),wO=a(R(),1),W9=a(O(),1);function _1(e){let t=(0,W9.useRegistry)(),{insertBlock:r,removeBlock:o,moveBlocksToPosition:n,updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,W9.useDispatch)(wO.store),l=()=>{let{getBlocks:p,getBlockAttributes:m}=t.select(wO.store),f=e?m(e):void 0,g=e?p(e).find(h=>h.name==="core/tab-panels"):void 0;return{tabPanelsClientId:g?.clientId??null,tabPanelBlocks:g?.innerBlocks??[],activeIndex:f?.editorActiveTabIndex??f?.activeTabIndex??0}};return{insertTab:p=>{let{tabPanelsClientId:m,tabPanelBlocks:f}=l();if(!m)return;let g=p??f.length;r((0,L0e.createBlock)("core/tab-panel"),g,m,!1),s(),i(e,{editorActiveTabIndex:g})},removeTab:p=>{let{tabPanelBlocks:m,activeIndex:f}=l(),g=m.length;if(g<=1)return;let h=p??f,v=m[h];if(!v)return;let x=h>=g-1?g-2:h;s(),i(e,{editorActiveTabIndex:x}),o(v.clientId,!1)},moveTab:p=>{let{tabPanelsClientId:m,tabPanelBlocks:f,activeIndex:g}=l();if(!m)return;let h=g+p,v=f[g];!v||h<0||h>=f.length||(s(),i(e,{editorActiveTabIndex:h}),n([v.clientId],m,m,h))}}}var x1=a(b(),1);function Ap({tabsClientId:e}){let{insertTab:t,removeTab:r}=_1(e),o=(0,A0e.useSelect)(n=>e?(n(G9.store).getBlocks(e).find(s=>s.name==="core/tab-panels")?.innerBlocks.length??0)<=1:!0,[e]);return(0,x1.jsx)(G9.BlockControls,{group:"other",children:(0,x1.jsxs)(l2.ToolbarGroup,{children:[(0,x1.jsx)(l2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>t(),text:(0,CO.__)("Add tab")}),(0,x1.jsx)(l2.ToolbarButton,{className:"components-toolbar__control",onClick:()=>r(),text:(0,CO.__)("Remove tab"),disabled:o})]})})}var Xc=a(b(),1);function z0e({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,M0e.useDispatch)(q9.store),n=X();return(0,Xc.jsxs)(Xc.Fragment,{children:[(0,Xc.jsx)(Ap,{tabsClientId:e}),(0,Xc.jsx)(q9.InspectorControls,{children:(0,Xc.jsx)(k1.__experimentalToolsPanel,{label:(0,$9.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,Xc.jsx)(k1.__experimentalToolsPanelItem,{label:(0,$9.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,Xc.jsx)(k1.CheckboxControl,{label:(0,$9.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var K9=a(b(),1);function F0e({clientId:e,isSelected:t}){let{activeTabIndex:r,editorActiveTabIndex:o,blockIndex:n,hasInnerBlocksSelected:i,tabsClientId:s}=(0,Z9.useSelect)(h=>{let{getBlockRootClientId:v,getBlockIndex:x,hasSelectedInnerBlock:_,getBlockAttributes:k}=h(dg.store),y=v(e),w=v(y),C=k(w)??{},S=x(e),P=_(e,!0);return{activeTabIndex:C.activeTabIndex,editorActiveTabIndex:C.editorActiveTabIndex,blockIndex:S,hasInnerBlocksSelected:P,tabsClientId:w}},[e]),l=o??r,{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,Z9.useDispatch)(dg.store);(0,V0e.useEffect)(()=>{(t||i)&&s&&l!==n&&(u(),c(s,{editorActiveTabIndex:n}))},[t,i,s,l,n,c,u]);let d=l===n,p=r===n,m=t||i||d,f=(0,dg.useBlockProps)({hidden:!m,tabIndex:m?0:-1}),g=(0,dg.useInnerBlocksProps)(f,{});return(0,K9.jsxs)("section",{...g,children:[(0,K9.jsx)(z0e,{tabsClientId:s,blockIndex:n,isDefaultTab:p}),m&&g.children]})}var Y9=a(R(),1),O0e=a(b(),1);function H0e(){let e=Y9.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=Y9.useInnerBlocksProps.save(e);return(0,O0e.jsx)("section",{...t})}var Q9={$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 VRe=[["core/paragraph",{placeholder:(0,j0e.__)("Type / to choose a block")}]],{name:U0e}=Q9,W0e={icon:fI,template:VRe,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name,n=r?.trim().length>0;if(t==="list-view"&&(o||n))return o||r;if(t==="breadcrumb"&&o)return o},edit:F0e,save:H0e},FRe=()=>M({name:U0e,metadata:Q9,settings:W0e});var TO={};J(TO,{init:()=>jRe,metadata:()=>J9,name:()=>K0e,settings:()=>Y0e});var w1=a(R(),1),G0e=a(O(),1);var pg=a(b(),1);function $0e({clientId:e}){let t=(0,w1.useBlockProps)(),r=(0,w1.useInnerBlocksProps)(t,{templateLock:!1,renderAppender:!1}),o=(0,G0e.useSelect)(n=>n(w1.store).getBlockRootClientId(e),[e]);return(0,pg.jsxs)(pg.Fragment,{children:[(0,pg.jsx)(Ap,{tabsClientId:o}),(0,pg.jsx)("div",{...r})]})}var X9=a(R(),1),q0e=a(b(),1);function Z0e(){let e=X9.useBlockProps.save(),t=X9.useInnerBlocksProps.save(e);return(0,q0e.jsx)("div",{...t})}var J9={$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 HRe=[["core/tab-panel"],["core/tab-panel"]],{name:K0e}=J9,Y0e={icon:gv,template:HRe,edit:$0e,save:Z0e},jRe=()=>M({name:K0e,metadata:J9,settings:Y0e});var MO={};J(MO,{init:()=>aDe,metadata:()=>eT,name:()=>c1e,settings:()=>u1e});var Jc=a(D(),1);var fr=a(R(),1),pt=a(b(),1),Q0e={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},PO={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"}},URe={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: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,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:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,fr.__experimentalGetColorClassesAndStyles)(e),c=(0,fr.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!fr.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,pt.jsx)(g,{children:f.map(({cells:h},v)=>(0,pt.jsx)("tr",{children:h.map(({content:x,tag:_,scope:k,align:y,colspan:w,rowspan:C},S)=>{let P=T({[`has-text-align-${y}`]:y});return(0,pt.jsx)(fr.RichText.Content,{className:P||void 0,"data-align":y,tagName:_,value:x,scope:_==="th"?k:void 0,colSpan:w,rowSpan:C},S)})},v))})};return(0,pt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,pt.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,pt.jsx)(p,{type:"head",rows:r}),(0,pt.jsx)(p,{type:"body",rows:o}),(0,pt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,pt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:i,className:(0,fr.__experimentalGetElementClassName)("caption")})]})}},EO={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"}},WRe={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:EO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:EO}}}},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:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,fr.__experimentalGetColorClassesAndStyles)(e),c=(0,fr.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!fr.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,pt.jsx)(g,{children:f.map(({cells:h},v)=>(0,pt.jsx)("tr",{children:h.map(({content:x,tag:_,scope:k,align:y},w)=>{let C=T({[`has-text-align-${y}`]:y});return(0,pt.jsx)(fr.RichText.Content,{className:C||void 0,"data-align":y,tagName:_,value:x,scope:_==="th"?k:void 0},w)})},v))})};return(0,pt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,pt.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,pt.jsx)(p,{type:"head",rows:r}),(0,pt.jsx)(p,{type:"body",rows:o}),(0,pt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,pt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:i})]})}},BO={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"}},GRe={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:BO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:BO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:BO}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i,caption:s}=e;if(!r.length&&!o.length&&!n.length)return null;let c=(0,fr.getColorClassName)("background-color",i),u=T(c,{"has-fixed-layout":t,"has-background":!!c}),d=!fr.RichText.isEmpty(s),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,pt.jsx)(g,{children:f.map(({cells:h},v)=>(0,pt.jsx)("tr",{children:h.map(({content:x,tag:_,scope:k,align:y},w)=>{let C=T({[`has-text-align-${y}`]:y});return(0,pt.jsx)(fr.RichText.Content,{className:C||void 0,"data-align":y,tagName:_,value:x,scope:_==="th"?k:void 0},w)})},v))})};return(0,pt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,pt.jsxs)("table",{className:u===""?void 0:u,children:[(0,pt.jsx)(p,{type:"head",rows:r}),(0,pt.jsx)(p,{type:"body",rows:o}),(0,pt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,pt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:s})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Q0e&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Q0e[e.backgroundColor]}}})},NO={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},$Re={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:NO}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:NO}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:NO}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,backgroundColor:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,fr.getColorClassName)("background-color",i),c=T(l,{"has-fixed-layout":t,"has-background":!!l}),u=({type:d,rows:p})=>{if(!p.length)return null;let m=`t${d}`;return(0,pt.jsx)(m,{children:p.map(({cells:f},g)=>(0,pt.jsx)("tr",{children:f.map(({content:h,tag:v,scope:x},_)=>(0,pt.jsx)(fr.RichText.Content,{tagName:v,value:h,scope:v==="th"?x:void 0},_))},g))})};return(0,pt.jsxs)("table",{className:c,children:[(0,pt.jsx)(u,{type:"head",rows:r}),(0,pt.jsx)(u,{type:"body",rows:o}),(0,pt.jsx)(u,{type:"foot",rows:n})]})}},X0e=[URe,WRe,GRe,$Re];var mi=a(H(),1),jo=a(R(),1),It=a(D(),1),ao=a(V(),1);var qRe=["align"];function J0e({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function ZRe(e){if(!Mp(e.head))return e.head[0];if(!Mp(e.body))return e.body[0];if(!Mp(e.foot))return e.foot[0]}function e1e(e,t,r){let{sectionName:o,rowIndex:n,columnIndex:i}=t;return e[o]?.[n]?.cells?.[i]?.[r]}function IO(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([s])=>["head","body","foot"].includes(s))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([s,l])=>n&&n!==s?[s,l]:[s,l.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((d,p)=>KRe({sectionName:s,columnIndex:p,rowIndex:u},t)?r(d):d)})]))}function KRe(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 RO(e,{sectionName:t,rowIndex:r,columnCount:o}){let n=ZRe(e),i=o===void 0?n?.cells?.length:o;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((s,l)=>{let c=n?.cells?.[l]??{};return{...Object.fromEntries(Object.entries(c).filter(([d])=>qRe.includes(d))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function t1e(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,n)=>n!==r)}}function r1e(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,n])=>Mp(n)?[o,n]:[o,n.map(i=>n1e(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function o1e(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,n])=>Mp(n)?[o,n]:[o,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((s,l)=>l!==t):i.cells})).filter(i=>i.cells.length)]))}function DO(e,t){if(!Mp(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return RO(e,{sectionName:t,rowIndex:0,columnCount:r})}function Mp(e){return!e||!e.length||e.every(n1e)}function n1e(e){return!(e.cells&&e.cells.length)}var wt=a(b(),1),YRe=[{icon:RP,title:(0,It.__)("Align column left"),align:"left"},{icon:NP,title:(0,It.__)("Align column center"),align:"center"},{icon:AP,title:(0,It.__)("Align column right"),align:"right"}],QRe={head:(0,It.__)("Header cell text"),body:(0,It.__)("Body cell text"),foot:(0,It.__)("Footer cell text")},XRe={head:(0,It._x)("Header label","table header"),foot:(0,It._x)("Footer label","table footer")};function JRe({name:e,...t}){let r=`t${e}`;return(0,wt.jsx)(r,{...t})}function eDe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:n,head:i,foot:s}=e,[l,c]=(0,mi.useState)(2),[u,d]=(0,mi.useState)(2),[p,m]=(0,mi.useState)(),f=(0,jo.__experimentalUseColorProps)(e),g=(0,jo.__experimentalUseBorderProps)(e),h=(0,jo.useBlockEditingMode)(),v=(0,mi.useRef)(),[x,_]=(0,mi.useState)(!1),k=X();function y(Q){d(Q)}function w(Q){c(Q)}function C(Q){Q.preventDefault(),t(J0e({rowCount:parseInt(l,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function S(){t({hasFixedLayout:!n})}let P=(0,mi.useCallback)(function(Q){p&&t(le=>IO(le,p,oe=>({...oe,content:Q})))},[p,t]);function N(Q){if(!p)return;let le={type:"column",columnIndex:p.columnIndex},oe=IO(e,le,ce=>({...ce,align:Q}));t(oe)}function I(){if(p)return e1e(e,p,"align")}function B(){t(DO(e,"head"))}function E(){t(DO(e,"foot"))}function L(Q){if(!p)return;let{sectionName:le,rowIndex:oe}=p,ce=oe+Q;t(RO(e,{sectionName:le,rowIndex:ce})),m({sectionName:le,rowIndex:ce,columnIndex:0,type:"cell"})}function A(){L(0)}function U(){L(1)}function $(){if(!p)return;let{sectionName:Q,rowIndex:le}=p;m(),t(t1e(e,{sectionName:Q,rowIndex:le}))}function W(Q=0){if(!p)return;let{columnIndex:le}=p,oe=le+Q;t(r1e(e,{columnIndex:oe})),m({rowIndex:0,columnIndex:oe,type:"cell"})}function G(){W(0)}function F(){W(1)}function Z(){if(!p)return;let{sectionName:Q,columnIndex:le}=p;m(),t(o1e(e,{sectionName:Q,columnIndex:le}))}(0,mi.useEffect)(()=>{o||m()},[o]),(0,mi.useEffect)(()=>{x&&(v?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[x]);let j=["head","body","foot"].filter(Q=>!Mp(e[Q])),Y=[{icon:CI,title:(0,It.__)("Insert row before"),isDisabled:!p,onClick:A},{icon:kI,title:(0,It.__)("Insert row after"),isDisabled:!p,onClick:U},{icon:TI,title:(0,It.__)("Delete row"),isDisabled:!p,onClick:$},{icon:yI,title:(0,It.__)("Insert column before"),isDisabled:!p,onClick:G},{icon:hI,title:(0,It.__)("Insert column after"),isDisabled:!p,onClick:F},{icon:_I,title:(0,It.__)("Delete column"),isDisabled:!p,onClick:Z}],ee=j.map(Q=>(0,wt.jsx)(JRe,{name:Q,children:e[Q].map(({cells:le},oe)=>(0,wt.jsx)("tr",{children:le.map((ce,pe)=>{let be=p?.sectionName===Q&&p?.rowIndex===oe&&p?.columnIndex===pe;return(0,wt.jsx)(tDe,{name:Q,rowIndex:oe,columnIndex:pe,onChange:be?P:void 0,setSelectedCell:m,...ce},pe)})},oe))},Q)),te=!j.length;return(0,wt.jsxs)("figure",{...(0,jo.useBlockProps)({ref:v}),children:[!te&&h==="default"&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(jo.BlockControls,{group:"block",children:(0,wt.jsx)(jo.AlignmentControl,{label:(0,It.__)("Align column content"),alignmentControls:YRe,value:I(),onChange:Q=>N(Q)})}),(0,wt.jsx)(jo.BlockControls,{group:"other",children:(0,wt.jsx)(ao.ToolbarDropdownMenu,{icon:EI,label:(0,It.__)("Edit table"),controls:Y})})]}),(0,wt.jsx)(jo.InspectorControls,{children:(0,wt.jsxs)(ao.__experimentalToolsPanel,{label:(0,It.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:k,children:[(0,wt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,It.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,wt.jsx)(ao.ToggleControl,{label:(0,It.__)("Fixed width table cells"),checked:!!n,onChange:S})}),!te&&(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,It.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,wt.jsx)(ao.ToggleControl,{label:(0,It.__)("Header section"),checked:!!(i&&i.length),onChange:B})}),(0,wt.jsx)(ao.__experimentalToolsPanelItem,{hasValue:()=>s&&s.length,label:(0,It.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,wt.jsx)(ao.ToggleControl,{label:(0,It.__)("Footer section"),checked:!!(s&&s.length),onChange:E})})]})]})}),!te&&(0,wt.jsx)("table",{className:T(f.className,g.className,{"has-fixed-layout":n,"has-individual-borders":(0,ao.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...g.style},children:ee}),te?(0,wt.jsx)(ao.Placeholder,{label:(0,It.__)("Table"),icon:(0,wt.jsx)(jo.BlockIcon,{icon:lv,showColors:!0}),instructions:(0,It.__)("Insert a table for sharing data."),children:(0,wt.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,wt.jsx)(ao.TextControl,{type:"number",label:(0,It.__)("Column count"),value:u,onChange:y,min:"1",className:"blocks-table__placeholder-input"}),(0,wt.jsx)(ao.TextControl,{type:"number",label:(0,It.__)("Row count"),value:l,onChange:w,min:"1",className:"blocks-table__placeholder-input"}),(0,wt.jsx)(ao.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,It.__)("Create Table")})]})}):(0,wt.jsx)($o,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,It.__)("Table caption text"),showToolbarButton:o&&h==="default"})]})}var tDe=(0,mi.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:n,rowIndex:i,columnIndex:s,align:l,content:c,onChange:u,setSelectedCell:d}){return(0,wt.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:n,className:T({[`has-text-align-${l}`]:l},"wp-block-table__cell-content"),children:(0,wt.jsx)(jo.RichText,{identifier:`${t}.${i}.cells.${s}.content`,value:c,onChange:u,onFocus:()=>{d({sectionName:t,rowIndex:i,columnIndex:s,type:"cell"})},"aria-label":QRe[t],placeholder:XRe[t]})})}),a1e=eDe;var eT={$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 Xs=a(R(),1),$l=a(b(),1);function i1e({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let l=(0,Xs.__experimentalGetColorClassesAndStyles)(e),c=(0,Xs.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!Xs.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,$l.jsx)(g,{children:f.map(({cells:h},v)=>(0,$l.jsx)("tr",{children:h.map(({content:x,tag:_,scope:k,align:y,colspan:w,rowspan:C},S)=>{let P=T({[`has-text-align-${y}`]:y});return(0,$l.jsx)(Xs.RichText.Content,{className:P||void 0,"data-align":y,tagName:_,value:x,scope:_==="th"?k:void 0,colSpan:w,rowSpan:C},S)})},v))})};return(0,$l.jsxs)("figure",{...Xs.useBlockProps.save(),children:[(0,$l.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,$l.jsx)(p,{type:"head",rows:r}),(0,$l.jsx)(p,{type:"body",rows:o}),(0,$l.jsx)(p,{type:"foot",rows:n})]}),d&&(0,$l.jsx)(Xs.RichText.Content,{tagName:"figcaption",value:i,className:(0,Xs.__experimentalGetElementClassName)("caption")})]})}var s1e=a(K(),1);function LO(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var AO=({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"]}}}}),oDe=e=>({table:{children:{thead:{allowEmpty:!0,children:AO(e)},tfoot:{allowEmpty:!0,children:AO(e)},tbody:{allowEmpty:!0,children:AO(e)}}}}),nDe={from:[{type:"raw",selector:"table",schema:oDe,transform:e=>{let t=Array.from(e.children).reduce((r,o)=>{if(!o.children.length)return r;let n=o.nodeName.toLowerCase().slice(1),i=Array.from(o.children).reduce((s,l)=>{if(!l.children.length)return s;let c=Array.from(l.children).reduce((u,d)=>{let p=LO(d.getAttribute("rowspan")),m=LO(d.getAttribute("colspan")),{textAlign:f}=d.style||{},g;return(f==="left"||f==="center"||f==="right")&&(g=f),u.push({tag:d.nodeName.toLowerCase(),content:d.innerHTML,rowspan:p,colspan:m,align:g}),u},[]);return s.push({cells:c}),s},[]);return r[n]=i,r},{});return(0,s1e.createBlock)("core/table",t)}}]},l1e=nDe;var{name:c1e}=eT,u1e={icon:lv,example:{attributes:{head:[{cells:[{content:(0,Jc.__)("Version"),tag:"th"},{content:(0,Jc.__)("Jazz Musician"),tag:"th"},{content:(0,Jc.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Jc.__)("Jaco Pastorius"),tag:"td"},{content:(0,Jc.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Jc.__)("Betty Carter"),tag:"td"},{content:(0,Jc.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Jc.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Jc.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:l1e,edit:a1e,save:i1e,deprecated:X0e},aDe=()=>M({name:c1e,metadata:eT,settings:u1e});var jO={};J(jO,{init:()=>fDe,metadata:()=>tT,name:()=>T1e,settings:()=>P1e});var ed=a(D(),1);var p1e=a(R(),1),as=a(b(),1),d1e="wp-block-table-of-contents__entry",iDe={headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},sDe={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}}};function m1e(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let n=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:m1e(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}function f1e({nestedHeadingList:e,ordered:t=!0}){return(0,as.jsx)(as.Fragment,{children:e.map((r,o)=>{let{content:n,link:i}=r.heading,s=i?(0,as.jsx)("a",{className:d1e,href:i,children:n}):(0,as.jsx)("span",{className:d1e,children:n}),l=t?"ol":"ul";return(0,as.jsxs)("li",{children:[s,r.children?(0,as.jsx)(l,{children:(0,as.jsx)(f1e,{nestedHeadingList:r.children,ordered:t})}):null]},o)})})}var lDe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),cDe={attributes:iDe,supports:sDe,isEligible:(e,t,{blockNode:r}={})=>lDe(e,"headings")||r?.innerHTML?.includes("wp-block-table-of-contents"),migrate:({headings:e,...t})=>t,save({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,as.jsx)("nav",{...p1e.useBlockProps.save(),children:(0,as.jsx)(r,{children:(0,as.jsx)(f1e,{nestedHeadingList:m1e(e),ordered:t})})})}},g1e=[cDe];var tT={$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:[],role:"local"},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 ql=a(R(),1),k1e=a(K(),1),xo=a(V(),1),d2=a(O(),1),w1e=a(H(),1),Rt=a(D(),1),C1e=a(he(),1),S1e=a(xr(),1);var eu=a(b(),1),h1e="wp-block-table-of-contents__entry";function zO({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,eu.jsx)(eu.Fragment,{children:e.map((n,i)=>{let{content:s,link:l}=n.heading,c=l?(0,eu.jsx)("a",{className:h1e,href:l,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:s}):(0,eu.jsx)("span",{className:h1e,children:s}),u=o?"ol":"ul";return(0,eu.jsxs)("li",{children:[c,n.children?(0,eu.jsx)(u,{children:(0,eu.jsx)(zO,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}var VO=a(K(),1),c2=a(zS(),1);function FO(e){let t=[];return e.forEach((r,o)=>{if(r.content!==""&&r.level===e[0].level)if(e[o+1]?.level>r.level){let n=e.length;for(let i=o+1;i<e.length;i++)if(e[i].level===r.level){n=i;break}t.push({heading:r,children:FO(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}function OO(e,t){return e.map(({heading:{content:r,link:o},children:n})=>(0,VO.createBlock)("core/list-item",{content:o?`<a href="${(0,c2.escapeAttribute)(o)}">${(0,c2.escapeEditableHTML)(r)}</a>`:(0,c2.escapeEditableHTML)(r)},n?.length?[(0,VO.createBlock)("core/list",{ordered:t},OO(n,t))]:[]))}var v1e=a(qJ(),1),y1e=a(O(),1),b1e=a(da(),1),_1e=a(H(),1),u2=a(dr(),1),rT=a(R(),1);function dDe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:n,getClientIdsOfDescendants:i}=e(rT.store),s=e("core/editor").getPermalink()??null,l=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[d=""]=n("core/post-content"),p=i(d),m=1;if(l&&c){let v=p.indexOf(t);for(let[x,_]of p.entries()){if(x>=v)break;o(_)==="core/nextpage"&&m++}}let f=[],g=1,h=null;typeof s=="string"&&(h=l?(0,u2.addQueryArgs)(s,{page:g}):s);for(let v of p){let x=o(v);if(x==="core/nextpage"){if(g++,c&&g>m)break;typeof s=="string"&&(h=(0,u2.addQueryArgs)((0,u2.removeQueryArgs)(s,["page"]),{page:g}))}else if((!c||g===m)&&x==="core/heading"){let _=r(v);if(u&&_.level>u)continue;let k=typeof h=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,b1e.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:k?`${h}#${_.anchor}`:null})}}return f}function pDe(e,t,r){let{getBlockAttributes:o}=e(rT.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(rT.store),s=o(r);if(s===null)return;let l=dDe(e,r);(0,v1e.default)(l,s.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:l})})}function x1e(e){let t=(0,y1e.useRegistry)();(0,_1e.useEffect)(()=>t.subscribe(()=>pDe(t.select,t.dispatch,e)),[t,e])}var Ut=a(b(),1);function mDe({clientId:e,headingTree:t,ordered:r,setAttributes:o}){let n=(0,d2.useSelect)(c=>{let{getBlockRootClientId:u,canInsertBlockType:d}=c(ql.store),p=u(e);return d("core/list",p)},[e]),{replaceBlocks:i}=(0,d2.useDispatch)(ql.store),[s,l]=(0,w1e.useState)(!1);return(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)(ql.BlockControls,{children:[(0,Ut.jsxs)(xo.ToolbarGroup,{children:[(0,Ut.jsx)(xo.ToolbarButton,{icon:(0,Rt.isRTL)()?kv:wv,title:(0,Rt.__)("Unordered"),description:(0,Rt.__)("Convert to unordered list"),onClick:()=>o({ordered:!1}),isActive:r===!1}),(0,Ut.jsx)(xo.ToolbarButton,{icon:(0,Rt.isRTL)()?Cv:gs,title:(0,Rt.__)("Ordered"),description:(0,Rt.__)("Convert to ordered list"),onClick:()=>o({ordered:!0}),isActive:r===!0})]}),n&&(0,Ut.jsx)(xo.ToolbarGroup,{children:(0,Ut.jsx)(xo.ToolbarButton,{onClick:()=>l(!0),children:(0,Rt.__)("Detach")})})]}),s&&(0,Ut.jsx)(xo.__experimentalConfirmDialog,{isOpen:!0,title:(0,Rt.__)("Detach Table of Contents"),__experimentalHideHeader:!1,confirmButtonText:(0,Rt.__)("Detach"),onConfirm:()=>{l(!1),i(e,(0,k1e.createBlock)("core/list",{ordered:r},OO(t,r)))},onCancel:()=>l(!1),size:"medium",children:(0,Rt.__)("The Table of Contents block lists the headings in the post. Detaching will enable you to edit, reorder, or remove entries. However, new headings will no longer be added automatically.")})]})}function HO({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:n,setAttributes:i}){x1e(n);let s=(0,ql.useBlockProps)(),l=(0,C1e.useInstanceId)(HO,"table-of-contents"),{createWarningNotice:c}=(0,d2.useDispatch)(S1e.store),u=h=>{h.preventDefault(),c((0,Rt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${l}`,type:"snackbar"})},d=X(),p=FO(e),m=(0,Ut.jsx)(mDe,{clientId:n,headingTree:p,ordered:o,setAttributes:i}),f=(0,Ut.jsx)(ql.InspectorControls,{children:(0,Ut.jsxs)(xo.__experimentalToolsPanel,{label:(0,Rt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,Ut.jsx)(xo.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Rt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,Ut.jsx)(xo.ToggleControl,{label:(0,Rt.__)("Only include current page"),checked:t,onChange:h=>i({onlyIncludeCurrentPage:h}),help:t?(0,Rt.__)("Only including headings from the current page (if the post is paginated)."):(0,Rt.__)("Include headings from all pages (if the post is paginated).")})}),(0,Ut.jsx)(xo.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Rt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,Ut.jsx)(xo.SelectControl,{label:(0,Rt.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Rt.__)("All levels")},{value:"1",label:(0,Rt.__)("Heading 1")},{value:"2",label:(0,Rt.__)("Heading 2")},{value:"3",label:(0,Rt.__)("Heading 3")},{value:"4",label:(0,Rt.__)("Heading 4")},{value:"5",label:(0,Rt.__)("Heading 5")},{value:"6",label:(0,Rt.__)("Heading 6")}],onChange:h=>i({maxLevel:h?parseInt(h):void 0}),help:r?(0,Rt.__)("Only include headings up to and including this level."):(0,Rt.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("div",{...s,children:(0,Ut.jsx)(xo.Placeholder,{icon:(0,Ut.jsx)(ql.BlockIcon,{icon:hy}),label:(0,Rt.__)("Table of Contents"),instructions:(0,Rt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),f]}):(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("nav",{...s,children:(0,Ut.jsx)(o?"ol":"ul",{children:(0,Ut.jsx)(zO,{nestedHeadingList:p,disableLinkActivation:!0,onClick:u,ordered:o})})}),m,f]})}var{name:T1e}=tT,P1e={icon:hy,deprecated:g1e,edit:HO,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,ed.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,ed.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,ed.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,ed.__)("Subheading")}}],attributes:{headings:[{content:(0,ed.__)("Heading"),level:2},{content:(0,ed.__)("Subheading"),level:3},{content:(0,ed.__)("Heading"),level:2},{content:(0,ed.__)("Subheading"),level:3}]}}},fDe=()=>M({name:T1e,metadata:tT,settings:P1e});var GO={};J(GO,{init:()=>yDe,metadata:()=>nT,name:()=>R1e,settings:()=>D1e});var S1=a(D(),1),na=a(R(),1),T1=a(V(),1),mg=a(O(),1),fg=a(H(),1);var C1=a(D(),1),oT=a(R(),1),UO=a(V(),1);var E1e=a(O(),1);var p2=a(b(),1);function B1e({tabsClientId:e}){let{moveTab:t}=_1(e),{tabCount:r,activeIndex:o}=(0,E1e.useSelect)(n=>{if(!e)return{tabCount:0,activeIndex:0};let{getBlocks:i,getBlockAttributes:s}=n(oT.store),l=s(e);return{tabCount:i(e).find(u=>u.name==="core/tab-panels")?.innerBlocks.length??0,activeIndex:l?.editorActiveTabIndex??l?.activeTabIndex??0}},[e]);return(0,p2.jsxs)(oT.BlockControls,{group:"parent",children:[(0,p2.jsx)(UO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,C1.isRTL)()?Ig:fx,label:(0,C1.__)("Move tab before"),onClick:()=>t(-1),disabled:o<=0,accessibleWhenDisabled:!0}),(0,p2.jsx)(UO.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,C1.isRTL)()?fx:Ig,label:(0,C1.__)("Move tab after"),onClick:()=>t(1),disabled:o>=r-1,accessibleWhenDisabled:!0})]})}var fi=a(b(),1),gDe=[];function hDe({attributes:e,clientId:t,setAttributes:r,__unstableLayoutClassNames:o}){let{ariaLabel:n}=e,i=(0,na.__experimentalUseColorProps)(e),s=(0,na.__experimentalUseBorderProps)(e),l=(0,na.__experimentalGetSpacingClassesAndStyles)(e),c=X(),{tabsClientId:u,tabPanels:d,editorActiveTabIndex:p,activeTabIndex:m}=(0,mg.useSelect)(A=>{let{getBlockRootClientId:U,getBlockAttributes:$,getBlocks:W}=A(na.store),G=U(t),F=$(G),Z=W(G)?.find(j=>j.name==="core/tab-panels");return{tabsClientId:G,tabPanels:Z?.innerBlocks??gDe,editorActiveTabIndex:F?.editorActiveTabIndex,activeTabIndex:F?.activeTabIndex??0}},[t]),f=(0,mg.useRegistry)(),{isBlockSelected:g,hasSelectedInnerBlock:h}=(0,mg.useSelect)(na.store),{updateBlockAttributes:v,selectBlock:x,__unstableMarkNextChangeAsNotPersistent:_}=(0,mg.useDispatch)(na.store),{insertTab:k,removeTab:y}=_1(u),w=p??m,C=(0,fg.useMemo)(()=>d.map(A=>({label:A.attributes.label||"",clientId:A.clientId})),[d]);function S(A){u&&A!==w&&f.batch(()=>{x(t),_(),v(u,{editorActiveTabIndex:A})})}function P(A,U){let $=C[A];$?.clientId&&v($.clientId,{label:U})}let N=(0,fg.useRef)(),I=(0,fg.useRef)(C.length);(0,fg.useEffect)(()=>{let A=I.current;if(I.current=C.length,!N.current||C.length===A||!g(u)&&!h(u,!0))return;($=>{window.requestAnimationFrame(()=>{let W=N.current?.querySelectorAll("button")?.[$];(W?.querySelector("[contenteditable]")??W)?.focus()})})(w)},[w,h,g,u,C.length]);let B=(0,na.useBlockProps)({role:"tablist",ref:N,className:o}),E=T(i.className,s.className),L={...i.style,...s.style,...l.style};return(0,fi.jsxs)(fi.Fragment,{children:[(0,fi.jsx)(na.InspectorControls,{group:"settings",children:(0,fi.jsx)(T1.__experimentalToolsPanel,{label:(0,S1.__)("Settings"),resetAll:()=>r({ariaLabel:void 0}),dropdownMenuProps:c,children:(0,fi.jsx)(T1.__experimentalToolsPanelItem,{label:(0,S1.__)("Label"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>r({ariaLabel:void 0}),children:(0,fi.jsx)(T1.TextControl,{label:(0,S1.__)("Label"),help:(0,S1.__)("Briefly describe this tab section for screen reader users. Examples: Event information, Product details, and Account settings."),value:n||"",onChange:A=>r({ariaLabel:A||void 0})})})})}),(0,fi.jsx)(B1e,{tabsClientId:u}),(0,fi.jsx)(Ap,{tabsClientId:u}),(0,fi.jsx)("div",{...B,children:C.map((A,U)=>(0,fi.jsx)("button",{type:"button",role:"tab","aria-selected":U===w,className:E||void 0,style:L,tabIndex:-1,onFocus:()=>{S(U)},children:(0,fi.jsx)(na.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,S1.__)("Tab title"),value:A.label,onChange:W=>P(U,W),__unstableOnSplitAtEnd:()=>k(U+1),onRemove:()=>y(U)})},A.clientId||U))})]})}var N1e=hDe;var tu=a(R(),1),WO=a(b(),1);function I1e({attributes:e}){let{tabs:t}=e,r=tu.useBlockProps.save({role:"tablist"}),o=(0,tu.__experimentalGetColorClassesAndStyles)(e),n=(0,tu.__experimentalGetBorderClassesAndStyles)(e),i=(0,tu.__experimentalGetSpacingClassesAndStyles)(e),s=T(o.className,n.className),l={...o.style,...n.style,...i.style};return(0,WO.jsx)("div",{...r,children:t.map((c,u)=>(0,WO.jsx)(tu.RichText.Content,{className:s||void 0,style:l,tagName:"button",value:c.label,type:"button",role:"tab"},u))})}var nT={$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:R1e}=nT,D1e={icon:pI,edit:N1e,save:I1e},yDe=()=>M({name:R1e,metadata:nT,settings:D1e});var $O={};J($O,{init:()=>wDe,metadata:()=>cT,name:()=>F1e,settings:()=>O1e});var gg=a(D(),1);var iT=a(R(),1);var aT=a(R(),1),m2=a(O(),1),L1e=a(H(),1),bDe=[];function A1e(e){let{tabPanels:t,tabListClientId:r}=(0,m2.useSelect)(s=>{let{getBlocks:l}=s(aT.store),c=l(e),u=c.find(p=>p.name==="core/tab-panels"),d=c.find(p=>p.name==="core/tab-list");return{tabPanels:u?.innerBlocks??bDe,tabListClientId:d?.clientId??null}},[e]),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,m2.useDispatch)(aT.store),{getBlockAttributes:i}=(0,m2.useSelect)(aT.store);(0,L1e.useEffect)(()=>{if(!r)return;let s=t.map(c=>({label:c.attributes.label||""})),l=i(r)?.tabs??[];JSON.stringify(s)!==JSON.stringify(l)&&(n(),o(r,{tabs:s}))},[t,r,i,o,n])}var sT=a(b(),1);function _De({clientId:e}){A1e(e);let t=(0,iT.useBlockProps)(),r=(0,iT.useInnerBlocksProps)(t,{__experimentalCaptureToolbars:!0,templateLock:"all",renderAppender:!1});return(0,sT.jsxs)("div",{...r,children:[(0,sT.jsx)(Ap,{tabsClientId:e}),r.children]})}var M1e=_De;var lT=a(R(),1),z1e=a(b(),1);function V1e(){let e=lT.useBlockProps.save(),t=lT.useInnerBlocksProps.save(e);return(0,z1e.jsx)("div",{...t})}var cT={$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:F1e}=cT,kDe=[["core/tab-list"],["core/tab-panels"]],O1e={icon:NI,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,gg.__)("Tab 1")},{label:(0,gg.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,gg.sprintf)((0,gg.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,gg.__)("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.")}}]}))}]},template:kDe,edit:M1e,save:V1e},wDe=()=>M({name:F1e,metadata:cT,settings:O1e});var ZO={};J(ZO,{init:()=>BDe,metadata:()=>uT,name:()=>K1e,settings:()=>Y1e});var qO=a(K(),1),CDe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,qO.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,qO.createBlock)("core/categories")}]},H1e=CDe;var uT={$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 Yt=a(V(),1),W1e=a(O(),1),Ma=a(D(),1),P1=a(R(),1),G1e=a(ne(),1),$1e=a(sd(),1),q1e=a(he(),1);var Pr=a(b(),1),TDe=1,PDe=100,j1e=.1,U1e=100;function EDe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:n,numberOfTags:i,smallestFontSize:s,largestFontSize:l}=e,[c]=(0,P1.useSettings)("spacing.units"),u=X(),d=(0,Yt.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,W1e.useSelect)(y=>y(G1e.store).getTaxonomies({per_page:-1}),[]),m=()=>{let y={label:(0,Ma.__)("- Select -"),value:"",disabled:!0},w=(p??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[y,...w]},f=(y,w)=>{let[C,S]=(0,Yt.__experimentalParseQuantityAndUnitFromRawValue)(w);if(!Number.isFinite(C))return;let P={[y]:w};Object.entries({smallestFontSize:s,largestFontSize:l}).forEach(([N,I])=>{let[B,E]=(0,Yt.__experimentalParseQuantityAndUnitFromRawValue)(I);N!==y&&E!==S&&(P[N]=`${B}${S}`)}),t(P)},g=(0,Pr.jsx)(P1.InspectorControls,{children:(0,Pr.jsxs)(Yt.__experimentalToolsPanel,{label:(0,Ma.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,Pr.jsx)(Yt.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Ma.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,Pr.jsx)(Yt.SelectControl,{label:(0,Ma.__)("Taxonomy"),options:m(),value:o,onChange:y=>t({taxonomy:y})})}),(0,Pr.jsx)(Yt.__experimentalToolsPanelItem,{hasValue:()=>s!=="8pt"||l!=="22pt",label:(0,Ma.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,Pr.jsxs)(Yt.Flex,{gap:4,children:[(0,Pr.jsx)(Yt.FlexItem,{isBlock:!0,children:(0,Pr.jsx)(Yt.__experimentalUnitControl,{label:(0,Ma.__)("Smallest size"),value:s,onChange:y=>{f("smallestFontSize",y)},units:d,min:j1e,max:U1e})}),(0,Pr.jsx)(Yt.FlexItem,{isBlock:!0,children:(0,Pr.jsx)(Yt.__experimentalUnitControl,{label:(0,Ma.__)("Largest size"),value:l,onChange:y=>{f("largestFontSize",y)},units:d,min:j1e,max:U1e})})]})}),(0,Pr.jsx)(Yt.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Ma.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,Pr.jsx)(Yt.RangeControl,{label:(0,Ma.__)("Number of tags"),value:i,onChange:y=>t({numberOfTags:y}),min:TDe,max:PDe,required:!0})}),(0,Pr.jsx)(Yt.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,Ma.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,Pr.jsx)(Yt.ToggleControl,{label:(0,Ma.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:h,status:v,error:x}=(0,$1e.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,q1e.useDisabled)(),k=(0,P1.useBlockProps)({ref:_});return(0,Pr.jsxs)(Pr.Fragment,{children:[g,v==="loading"&&(0,Pr.jsx)("div",{...k,children:(0,Pr.jsx)(Yt.Spinner,{})}),v==="error"&&(0,Pr.jsx)("div",{...k,children:(0,Pr.jsx)("p",{children:(0,Ma.sprintf)((0,Ma.__)("Error: %s"),x)})}),v==="success"&&(0,Pr.jsx)(To,{wrapperProps:k,html:h})]})}var Z1e=EDe;var{name:K1e}=uT,Y1e={icon:vy,example:{},edit:Z1e,transforms:H1e},BDe=()=>M({name:K1e,metadata:uT,settings:Y1e});var JO={};J(JO,{init:()=>zDe,metadata:()=>dT,name:()=>Ave,settings:()=>Mve});var Rve=a(ne(),1),Dve=a(O(),1);var XO=a(Ad(),1),Lve=a(Wo(),1);var dT={$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 Cve=a(K(),1),L1=a(O(),1),ko=a(R(),1),nu=a(V(),1),ss=a(D(),1),y2=a(ne(),1),Sve=a(H(),1),Tve=a(xr(),1);var Vp=a(D(),1),vg=a(V(),1),rve=a(H(),1),ove=a(O(),1),nve=a(ne(),1);var E1=a(O(),1),pT=a(ne(),1),Q1e=a(R(),1),X1e=a(H(),1),J1e=a(K(),1),KO=a(D(),1);function B1(e,t){let{templateParts:r,isResolving:o}=(0,E1.useSelect)(i=>{let{getEntityRecords:s,isResolving:l}=i(pT.store),c={per_page:-1};return{templateParts:s("postType","wp_template_part",c),isResolving:l("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,X1e.useMemo)(()=>r?r.filter(i=>Ta(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function N1(e,t){return(0,E1.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(Q1e.store),s=n(t);return i(o,s)},[e,t])}function mT(e,t){let{saveEntityRecord:r}=(0,E1.useDispatch)(pT.store);return async(o=[],n=(0,KO.__)("Untitled Template Part"))=>{let i=rh(n).replace(/[^\w-]+/g,"")||"wp-custom-part",s={title:n,slug:i,content:(0,J1e.serialize)(o),area:e},l=await r("postType","wp_template_part",s);t({slug:l.slug,theme:l.theme,area:void 0})}}function fT(e){return(0,E1.useSelect)(t=>{let r=t(pT.store).getCurrentTheme()?.default_template_part_areas||[],o=r.find(i=>i.area===e),n=r.find(i=>i.area==="uncategorized");return{icon:o?.icon||n?.icon,label:o?.label||(0,KO.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var eve=a(H(),1),zp=a(D(),1),Zl=a(V(),1),td=a(b(),1);function tve({areaLabel:e,onClose:t,onSubmit:r}){let[o,n]=(0,eve.useState)(""),i=s=>{s.preventDefault(),r(o)};return(0,td.jsx)(Zl.Modal,{title:(0,zp.sprintf)((0,zp.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,td.jsx)("form",{onSubmit:i,children:(0,td.jsxs)(Zl.__experimentalVStack,{spacing:"5",children:[(0,td.jsx)(Zl.TextControl,{label:(0,zp.__)("Name"),value:o,onChange:n,placeholder:(0,zp.__)("Custom Template Part")}),(0,td.jsxs)(Zl.__experimentalHStack,{justify:"right",children:[(0,td.jsx)(Zl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,zp.__)("Cancel")}),(0,td.jsx)(Zl.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,zp.__)("Create")})]})]})})})}var hg=a(b(),1);function ave({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:n}){let{templateParts:i,isResolving:s}=B1(e,r),l=N1(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,ove.useSelect)(g=>{let{getCurrentTheme:h,canUser:v}=g(nve.store);return{isBlockBasedTheme:h()?.is_block_theme,canCreateTemplatePart:v("create",{kind:"postType",name:"wp_template_part"})}},[]),[d,p]=(0,rve.useState)(!1),m=fT(e),f=mT(e,n);return(0,hg.jsxs)(vg.Placeholder,{icon:P0(m.icon),label:m.label,instructions:c?(0,Vp.sprintf)((0,Vp.__)("Choose an existing %s or create a new one."),m.label.toLowerCase()):(0,Vp.sprintf)((0,Vp.__)("Choose an existing %s."),m.label.toLowerCase()),children:[s&&(0,hg.jsx)(vg.Spinner,{}),!s&&!!(i.length||l.length)&&(0,hg.jsx)(vg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Vp.__)("Choose")}),!s&&c&&u&&(0,hg.jsx)(vg.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,Vp.__)("Start blank")}),d&&(0,hg.jsx)(tve,{areaLabel:m.label,onClose:()=>p(!1),onSubmit:g=>{f([],g)}})]})}var f2=a(H(),1),Fp=a(D(),1),lve=a(xr(),1),cve=a(O(),1),uve=a(R(),1),gT=a(V(),1);var ive=a(K(),1);function sve(e){return{name:Ta(e.theme,e.slug),title:e.title.rendered,blocks:(0,ive.parse)(e.content.raw),templatePart:e}}var ru=a(b(),1);function dve({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:n}){let[i,s]=(0,f2.useState)(""),{templateParts:l}=B1(o,r),c=(0,f2.useMemo)(()=>{let h=l.map(v=>sve(v));return Mb(h,i)},[l,i]),u=N1(o,n),d=(0,f2.useMemo)(()=>Mb(u,i),[u,i]),{createSuccessNotice:p}=(0,cve.useDispatch)(lve.store),m=h=>{e({slug:h.slug,theme:h.theme,area:void 0}),p((0,Fp.sprintf)((0,Fp.__)('Template Part "%s" inserted.'),h.title?.rendered||h.slug),{type:"snackbar"}),t()},f=!!c.length,g=!!d.length;return(0,ru.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,ru.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,ru.jsx)(gT.SearchControl,{onChange:s,value:i,label:(0,Fp.__)("Search"),placeholder:(0,Fp.__)("Search")})}),f&&(0,ru.jsxs)("div",{children:[(0,ru.jsx)("h2",{children:(0,Fp.__)("Existing template parts")}),(0,ru.jsx)(uve.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:h=>{m(h.templatePart)}})]}),!f&&!g&&(0,ru.jsx)(gT.__experimentalHStack,{alignment:"center",children:(0,ru.jsx)("p",{children:(0,Fp.__)("No results found.")})})]})}var h2=a(ne(),1),hT=a(V(),1),R1=a(D(),1),vve=a(O(),1),yve=a(R(),1);var ou=a(D(),1),g2=a(H(),1),I1=a(O(),1),is=a(V(),1),QO=a(ne(),1),gve=a(xr(),1);var gi=a(K(),1);function pve(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},mve((0,gi.createBlock)("core/legacy-widget",o))}let t=(0,gi.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,gi.createBlock)((0,gi.getGroupingBlockName)(),void 0,YO(r.innerBlocks)):r.innerBlocks.length>0?(0,gi.cloneBlock)(r,void 0,YO(r.innerBlocks)):r}function mve(e){let t=(0,gi.getPossibleBlockTransformations)([e]).filter(r=>{if(!r.transforms)return!0;let o=r.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=r.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!o&&!n});if(t.length)return(0,gi.switchToBlockType)(e,t[0].name)}function YO(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?mve(t):(0,gi.createBlock)(t.name,t.attributes,YO(t.innerBlocks))).filter(t=>!!t)}var rd=a(b(),1),fve={per_page:-1,_fields:"id,name,description,status,widgets"};function hve({area:e,setAttributes:t}){let[r,o]=(0,g2.useState)(""),[n,i]=(0,g2.useState)(!1),s=(0,I1.useRegistry)(),{sidebars:l,hasResolved:c}=(0,I1.useSelect)(f=>{let{getSidebars:g,hasFinishedResolution:h}=f(QO.store);return{sidebars:g(fve),hasResolved:h("getSidebars",[fve])}},[]),{createErrorNotice:u}=(0,I1.useDispatch)(gve.store),d=mT(e,t),p=(0,g2.useMemo)(()=>{let f=(l??[]).filter(g=>g.id!=="wp_inactive_widgets"&&g.widgets.length>0).map(g=>({value:g.id,label:g.name}));return f.length?[{value:"",label:(0,ou.__)("Select widget area")},...f]:[]},[l]);if(!c)return(0,rd.jsx)(is.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function m(f){if(f.preventDefault(),n||!r)return;i(!0);let g=p.find(({value:k})=>k===r),{getWidgets:h}=s.resolveSelect(QO.store),v=await h({sidebar:g.value,_embed:"about"}),x=new Set,_=v.flatMap(k=>{let y=pve(k);return y||(x.add(k.id_base),[])});await d(_,(0,ou.sprintf)((0,ou.__)("Widget area: %s"),g.label)),x.size&&u((0,ou.sprintf)((0,ou.__)("Unable to import the following widgets: %s."),Array.from(x).join(", ")),{type:"snackbar"}),i(!1)}return(0,rd.jsx)(is.__experimentalSpacer,{marginBottom:"4",children:(0,rd.jsxs)(is.__experimentalHStack,{as:"form",onSubmit:m,children:[(0,rd.jsx)(is.FlexBlock,{children:(0,rd.jsx)(is.SelectControl,{label:(0,ou.__)("Import widget area"),value:r,options:p,onChange:f=>o(f),disabled:!p.length})}),(0,rd.jsx)(is.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,rd.jsx)(is.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,ou._x)("Import","button label")})})]})})}var Kl=a(b(),1),{HTMLElementControl:IDe}=q(yve.privateApis);function bve({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:n,hasInnerBlocks:i,clientId:s}){let[l,c]=(0,h2.useEntityProp)("postType","wp_template_part","area",o),[u,d]=(0,h2.useEntityProp)("postType","wp_template_part","title",o),m=(0,vve.useSelect)(f=>f(h2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:g})=>({label:f,value:g}));return(0,Kl.jsxs)(Kl.Fragment,{children:[r&&(0,Kl.jsxs)(Kl.Fragment,{children:[(0,Kl.jsx)(hT.TextControl,{label:(0,R1.__)("Title"),value:u,onChange:f=>{d(f)},onFocus:f=>f.target.select()}),(0,Kl.jsx)(hT.SelectControl,{label:(0,R1.__)("Area"),labelPosition:"top",options:m,value:l,onChange:c})]}),(0,Kl.jsx)(IDe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:s,options:[{label:(0,R1.sprintf)((0,R1.__)("Default based on area (%s)"),`<${n}>`),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,Kl.jsx)(hve,{area:l,setAttributes:t})]})}var D1=a(ne(),1),hi=a(R(),1),v2=a(O(),1),_ve=a(H(),1),xve=a(K(),1),vT=a(b(),1);function RDe(e){if((0,hi.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return hi.InnerBlocks.ButtonBlockAppender}function kve(e){let t=(0,v2.useSelect)(o=>{let{getSettings:n}=o(hi.store);return n()?.supportsLayout},[]),[r]=(0,hi.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function DDe({postId:e,layout:t,tagName:r,blockProps:o}){(0,hi.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,v2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(D1.store),d=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:d.blocks,content:d.content}},[e]),s=(0,_ve.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,xve.parse)(n))},[e,i,n]),l=(0,hi.useInnerBlocksProps)(o,{value:s,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:kve(t)});return(0,vT.jsx)(r,{...l})}function LDe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let i=(0,v2.useSelect)(m=>m(hi.store).getSettings().onNavigateToEntityRecord,[]),[s,l,c]=(0,D1.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,hi.useInnerBlocksProps)(n,{value:s,onInput:l,onChange:c,renderAppender:RDe(t),layout:kve(r)}),p=(0,hi.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,vT.jsx)(o,{...u,...p})}function wve({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:s}=(0,v2.useSelect)(c=>({canViewTemplatePart:!!c(D1.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(D1.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,vT.jsx)(s?LDe:DDe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}):null}var Qt=a(b(),1),Pve=["header","footer","navigation-overlay"];function ADe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=B1(t,r),s=!!i.length;return e&&s&&Pve.includes(t)?(0,Qt.jsx)(nu.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,ss.__)("Replace")}):null}function MDe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let n=N1(e,t);return r&&!!n.length&&Pve.includes(e)?(0,Qt.jsx)(nu.PanelBody,{title:(0,ss.__)("Design"),children:(0,Qt.jsx)(ko.__experimentalBlockPatternsList,{label:(0,ss.__)("Templates"),blockPatterns:n,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function Eve({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,L1.useDispatch)(Tve.store),{editEntityRecord:n}=(0,L1.useDispatch)(y2.store),i=(0,L1.useSelect)(E=>E(y2.store).getCurrentTheme()?.stylesheet,[]),{slug:s,theme:l=i,tagName:c,layout:u={}}=e,d=Ta(l,s),p=(0,ko.useHasRecursion)(d),[m,f]=(0,Sve.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:v,area:x,onNavigateToEntityRecord:_,title:k,canUserEdit:y,canUserEditBlock:w}=(0,L1.useSelect)(E=>{let{getEditedEntityRecord:L,hasFinishedResolution:A}=E(y2.store),{getBlockCount:U,getSettings:$,canEditBlock:W}=E(ko.store),G=["postType","wp_template_part",d],F=d?L(...G):null,Z=F?.area||e.area,j=d?A("getEditedEntityRecord",G):!1,Y=j?E(y2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:d}):!1;return{hasInnerBlocks:U(r)>0,isResolved:j,isMissing:j&&(!F||Object.keys(F).length===0),area:Z,onNavigateToEntityRecord:$().onNavigateToEntityRecord,title:F?.title,canUserEdit:!!Y,canUserEditBlock:W(r)}},[d,e.area,r]),C=fT(x),S=(0,ko.useBlockProps)(),P=!s,N=!P&&!v&&g,I=c||C.tagName,B=async E=>{await n("postType","wp_template_part",d,{blocks:E.blocks,content:(0,Cve.serialize)(E.blocks)}),o((0,ss.sprintf)((0,ss.__)('Template Part "%s" updated.'),k||s),{type:"snackbar"})};return!h&&(s&&!l||s&&v)?(0,Qt.jsx)(I,{...S,children:(0,Qt.jsx)(ko.Warning,{children:(0,ss.sprintf)((0,ss.__)("Template part has been deleted or is unavailable: %s"),s)})}):N&&p?(0,Qt.jsx)(I,{...S,children:(0,Qt.jsx)(ko.Warning,{children:(0,ss.__)("Block cannot be rendered inside itself.")})}):(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsxs)(ko.RecursionProvider,{uniqueId:d,children:[N&&_&&y&&(0,Qt.jsx)(ko.BlockControls,{group:"other",children:(0,Qt.jsx)(nu.ToolbarButton,{onClick:()=>{_({postId:d,postType:"wp_template_part"})},children:(0,ss.__)("Edit original")})}),y&&(0,Qt.jsx)(ko.InspectorControls,{group:"advanced",children:(0,Qt.jsx)(bve,{tagName:c,setAttributes:t,isEntityAvailable:N,templatePartId:d,defaultWrapper:C.tagName,hasInnerBlocks:h,clientId:r})}),P&&(0,Qt.jsx)(I,{...S,children:(0,Qt.jsx)(ave,{area:e.area,templatePartId:d,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Qt.jsx)(ko.BlockSettingsMenuControls,{children:({selectedClientIds:E})=>!w||!(E.length===1&&r===E[0])?null:(0,Qt.jsx)(ADe,{isEntityAvailable:N,area:x,clientId:r,templatePartId:d,isTemplatePartSelectionOpen:m,setIsTemplatePartSelectionOpen:f})}),(0,Qt.jsx)(ko.InspectorControls,{group:"settings",children:(0,Qt.jsx)(MDe,{area:x,clientId:r,isEntityAvailable:N,onSelect:E=>B(E)})}),N&&(0,Qt.jsx)(wve,{tagName:I,blockProps:S,postId:d,hasInnerBlocks:h,layout:u}),!P&&!g&&(0,Qt.jsx)(I,{...S,children:(0,Qt.jsx)(nu.Spinner,{})})]}),m&&(0,Qt.jsx)(nu.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,ss.sprintf)((0,ss.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Qt.jsx)(dve,{templatePartId:d,clientId:r,area:x,setAttributes:t,onClose:()=>f(!1)})})]})}var Bve=a(ne(),1),Nve=a(O(),1);function Ive(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(n,i)=>{let{area:s,theme:l,slug:c}=n;if(s)return s===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:d}=(0,Nve.select)(Bve.store),p=d("postType","wp_template_part",`${l||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},o=e.variations.map(n=>({...n,...!n.isActive&&{isActive:r},...typeof n.icon=="string"&&{icon:P0(n.icon)}}));return{...e,variations:o}}return e}var{name:Ave}=dT,Mve={icon:my,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,Dve.select)(Rve.store),n=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,Lve.decodeEntities)(n.title)||uq(n.slug||"")},edit:Eve},zDe=()=>{(0,XO.addFilter)("blocks.registerBlockType","core/template-part",Ive);let e=["core/post-template","core/post-content"];return(0,XO.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let s of e)if(n(o)?.name===s||i(o,s).length)return!1;return!0}),M({name:Ave,metadata:dT,settings:Mve})};var oH={};J(oH,{init:()=>ODe,metadata:()=>yT,name:()=>Wve,settings:()=>Gve});var yT={$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 yg=a(D(),1),bT=a(R(),1),jve=a(V(),1);var Js=a(V(),1),Yl=a(b(),1),eH=(0,Yl.jsx)(Js.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Yl.jsx)(Js.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"})}),zve=(0,Yl.jsx)(Js.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Yl.jsx)(Js.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"})}),Vve=(0,Yl.jsx)(Js.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Yl.jsx)(Js.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"})}),Fve=(0,Yl.jsx)(Js.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Yl.jsx)(Js.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"})}),Ove=(0,Yl.jsx)(Js.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Yl.jsx)(Js.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 b2=a(ne(),1),tH=a(O(),1);function Hve(e,t){let[r]=(0,b2.useEntityProp)("taxonomy",t,"count",e),o=FDe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":o}}function FDe(){let t=(0,tH.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(b2.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,tH.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(b2.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]&&s[0].count||""},[r,o])}var Op=a(b(),1),rH={none:{label:(0,yg.__)("No brackets"),icon:eH},round:{label:(0,yg.__)("Round brackets"),icon:zve,before:"(",after:")"},square:{label:(0,yg.__)("Square brackets"),icon:Vve,before:"[",after:"]"},curly:{label:(0,yg.__)("Curly brackets"),icon:Fve,before:"{",after:"}"},angle:{label:(0,yg.__)("Angle brackets"),icon:Ove,before:"<",after:">"}};function Uve({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:n}=e,s=Hve(r,o)?.termCount||0,l=(0,bT.useBlockProps)(),c=Object.entries(rH).map(([d,{label:p,icon:m}])=>({role:"menuitemradio",title:p,isActive:n===d,icon:m,onClick:()=>{t({bracketType:d})}})),u=(d,p)=>{let{before:m="",after:f=""}=rH[p]||{};return`${m}${d}${f}`};return(0,Op.jsxs)(Op.Fragment,{children:[(0,Op.jsx)(bT.BlockControls,{group:"block",children:(0,Op.jsx)(jve.ToolbarDropdownMenu,{icon:rH[n]?.icon??eH,label:(0,yg.__)("Change bracket type"),controls:c})}),(0,Op.jsx)("div",{...l,children:u(s,n)})]})}var{name:Wve}=yT,Gve={icon:RI,example:{},edit:Uve},ODe=()=>M({name:Wve,metadata:yT,settings:Gve});var aH={};J(aH,{init:()=>WDe,metadata:()=>_T,name:()=>Qve,settings:()=>Xve});var _T={$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 qve=a(D(),1),Zve=a(R(),1);var _2=a(ne(),1),nH=a(O(),1);function $ve(e,t){let[r,o,n]=(0,_2.useEntityProp)("taxonomy",t,"description",e),i=jDe(),s=!!(e&&t);return{hasContext:s,setDescription:o,termDescription:s?n?.rendered||r||"":i}}function jDe(){let t=(0,nH.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(_2.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,nH.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(_2.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]&&s[0].description||""},[r,o])}var Hp=a(b(),1);function Kve({context:{termId:e,taxonomy:t}}){let{termDescription:r}=$ve(e,t),o=(0,Zve.useBlockProps)();return(0,Hp.jsx)(Hp.Fragment,{children:(0,Hp.jsx)("div",{...o,children:r?(0,Hp.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,Hp.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Hp.jsx)("span",{children:(0,qve.__)("Term Description")})})})})}var UDe={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:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Yve=[UDe];var{name:Qve}=_T,Xve={icon:LI,edit:Kve,example:{},deprecated:Yve},WDe=()=>M({name:Qve,metadata:_T,settings:Xve});var iH={};J(iH,{init:()=>ZDe,metadata:()=>xT,name:()=>oye,settings:()=>nye});var xT={$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 x2=a(D(),1),jp=a(R(),1),A1=a(V(),1),eye=a(Wo(),1);var kT=a(ne(),1),wT=a(O(),1);function Jve(e,t){let r=(0,wT.useSelect)(i=>!e||!t?null:i(kT.store).getEntityRecord("taxonomy",t,e),[e,t]),o=$De(),n=!!(e&&t);return{hasContext:n,term:n?r:o}}function $De(){let t=(0,wT.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(kT.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,wT.useSelect)(n=>{if(!r||!o)return null;let{getEntityRecords:i}=n(kT.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]?s[0]:null},[r,o])}var ls=a(b(),1);function tye({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{level:n=0,isLink:i,levelOptions:s}=e,{term:l}=Jve(r,o),c=l?.name?(0,eye.decodeEntities)(l.name):(0,x2.__)("Term Name"),u=(0,jp.useBlockProps)(),d=X(),p=n===0?"p":`h${n}`,m=c;return i&&(m=(0,ls.jsx)("a",{href:"#term-name-pseudo-link",onClick:f=>f.preventDefault(),children:c})),(0,ls.jsxs)(ls.Fragment,{children:[(0,ls.jsx)(jp.BlockControls,{group:"block",children:(0,ls.jsx)(jp.HeadingLevelDropdown,{value:n,options:s,onChange:f=>{t({level:f})}})}),(0,ls.jsx)(jp.InspectorControls,{children:(0,ls.jsx)(A1.__experimentalToolsPanel,{label:(0,x2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:d,children:(0,ls.jsx)(A1.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,x2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,ls.jsx)(A1.ToggleControl,{label:(0,x2.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,ls.jsx)(p,{...u,children:m})]})}var qDe={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:ke,isEligible(e){return!!e.textAlign},save:()=>null},rye=[qDe];var{name:oye}=xT,nye={icon:AI,example:{},edit:tye,deprecated:rye},ZDe=()=>M({name:oye,metadata:xT,settings:nye});var pH={};J(pH,{init:()=>rLe,metadata:()=>CT,name:()=>Gye,settings:()=>$ye});var CT={$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 zye=a(O(),1),Vye=a(R(),1);var Lye=a(H(),1),PT=a(R(),1);var Ql=a(D(),1),au=a(V(),1),Rye=a(R(),1);var aye=a(ne(),1),iye=a(O(),1),sye=a(H(),1);function ST(){let e=(0,iye.useSelect)(t=>t(aye.store).getTaxonomies({per_page:-1}),[]);return(0,sye.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var lye=a(V(),1);var cye=a(b(),1);function uye({value:e,onChange:t,...r}){let n=ST().map(i=>({label:i.name,value:i.slug}));return(0,cye.jsx)(lye.SelectControl,{options:n,value:e,onChange:t,...r})}var k2=a(D(),1),dye=a(V(),1),pye=a(b(),1);function mye({orderBy:e,order:t,onChange:r,...o}){return(0,pye.jsx)(dye.SelectControl,{options:[{label:(0,k2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,k2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,k2.__)("Count, high to low"),value:"count/desc"},{label:(0,k2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,s]=n.split("/");r(i,s)},...o})}var fye=a(V(),1),gye=a(b(),1);function hye({value:e,onChange:t,...r}){return(0,gye.jsx)(fye.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var vye=a(V(),1),yye=a(b(),1);function bye({value:e,onChange:t,...r}){return(0,yye.jsx)(vye.ToggleControl,{checked:e,onChange:t,...r})}var C2=a(V(),1),w2=a(D(),1),S2=a(b(),1);function _ye({value:e,onChange:t,label:r}){return(0,S2.jsxs)(C2.__experimentalToggleGroupControl,{label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,w2.__)("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,w2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,S2.jsx)(C2.__experimentalToggleGroupControlOption,{value:"default",label:(0,w2.__)("Default")}),(0,S2.jsx)(C2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,w2.__)("Custom")})]})}var xye=a(D(),1),kye=a(V(),1),wye=a(b(),1);function Cye({value:e,onChange:t,...r}){return(0,wye.jsx)(kye.RangeControl,{value:e,min:0,max:100,onChange:t,help:(0,xye.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var Sye=a(D(),1),TT=a(R(),1);var sH=a(b(),1),{HTMLElementControl:YDe}=q(TT.privateApis);function Tye({TagName:e,setAttributes:t,clientId:r}){return(0,sH.jsx)(TT.InspectorControls,{group:"advanced",children:(0,sH.jsx)(YDe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,Sye.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var Eye=a(V(),1),lH=a(O(),1),cH=a(ne(),1),od=a(H(),1),Bye=a(he(),1),uH=a(Wo(),1),Nye=a(b(),1),bg=[],Pye={order:"asc",_fields:"id,name",context:"view"};function Iye({value:e,taxonomy:t,onChange:r,...o}){let[n,i]=(0,od.useState)(""),[s,l]=(0,od.useState)(bg),[c,u]=(0,od.useState)(bg),d=(0,Bye.useDebounce)(i,250),{searchResults:p,searchHasResolved:m}=(0,lH.useSelect)(x=>{if(!n)return{searchResults:bg,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:k}=x(cH.store),y=["taxonomy",t,{...Pye,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...y),searchHasResolved:k("getEntityRecords",y)}},[n,t,e]),f=(0,lH.useSelect)(x=>{if(!e?.length)return bg;let{getEntityRecords:_}=x(cH.store);return _("taxonomy",t,{...Pye,include:e,per_page:e.length})},[e,t]);(0,od.useEffect)(()=>{if(e?.length||l(bg),!f?.length)return;let x=e.reduce((_,k)=>{let y=f.find(w=>w.id===k);return y&&_.push({id:k,value:(0,uH.decodeEntities)(y.name)}),_},[]);l(x)},[e,f]);let g=(0,od.useMemo)(()=>{if(!p?.length)return{names:bg,mapByName:{}};let x=[],_={};return p.forEach(k=>{let y=(0,uH.decodeEntities)(k.name);x.push(y),_[y]=k}),{names:x,mapByName:_}},[p]);(0,od.useEffect)(()=>{m&&u(g.names)},[g.names,m]);let h=(x,_)=>_?.id||x?.[_]?.id;return(0,Nye.jsx)(Eye.FormTokenField,{value:s,onInputChange:d,suggestions:c,onChange:x=>{let _=Array.from(x.reduce((k,y)=>{let w=h(g.mapByName,y);return w&&k.add(w),k},new Set));u(bg),r(_)},help:"",...o})}var Yr=a(b(),1);function Dye({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:n}){let{termQuery:i,tagName:s}=e,{taxonomy:l,orderBy:c,order:u,hideEmpty:d,inherit:p,showNested:m,perPage:f,include:g}=i,h=X(),x=ST().find(L=>L.slug===l)?.hierarchical,_=!!p,k=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),y=x,w=!!g?.length,C=(0,Ql.__)("Query type"),S=(0,Ql.__)("Taxonomy"),P=(0,Ql.__)("Order by"),N=(0,Ql.__)("Show empty terms"),I=(0,Ql.__)("Show nested terms"),B=(0,Ql.__)("Max terms"),E=(0,Ql.__)("Selected terms");return(0,Yr.jsxs)(Yr.Fragment,{children:[(0,Yr.jsx)(Rye.InspectorControls,{children:(0,Yr.jsxs)(au.__experimentalToolsPanel,{label:(0,Ql.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:h,children:[k&&(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Yr.jsx)(_ye,{label:C,value:p,onChange:t})}),!_&&(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>l!=="category",label:S,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Yr.jsx)(uye,{label:S,value:l,onChange:L=>t({taxonomy:L,include:[]})})}),(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:P,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Yr.jsx)(mye,{label:P,orderBy:c,order:u,onChange:(L,A)=>{t({orderBy:L,order:A})},disabled:w,help:w?(0,Ql.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:E,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Yr.jsx)(Iye,{label:E,taxonomy:l,value:g,onChange:L=>t({include:L})})}),(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>d!==!0,label:N,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Yr.jsx)(hye,{label:N,value:d,onChange:L=>t({hideEmpty:L})})}),y&&(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>m!==!1,label:I,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Yr.jsx)(bye,{label:I,value:m,onChange:L=>t({showNested:L}),disabled:w,help:w?(0,Ql.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Yr.jsx)(au.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:B,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Yr.jsx)(Cye,{label:B,value:f,onChange:L=>t({perPage:L})})})]})}),(0,Yr.jsx)(Tye,{TagName:s,setAttributes:r,clientId:o})]})}var _g=a(b(),1);function Aye({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:n}=e,i=(0,PT.useBlockProps)(),s=(0,PT.useInnerBlocksProps)(i,{}),l=(0,Lye.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,_g.jsxs)(_g.Fragment,{children:[(0,_g.jsx)(Dye,{attributes:e,setQuery:l,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,_g.jsx)(n,{...s})]})}var ET=a(O(),1),BT=a(K(),1),M1=a(R(),1),dH=a(b(),1);function Mye({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:n,scopeVariations:i}=(0,ET.useSelect)(d=>{let{getActiveBlockVariation:p,getBlockType:m,getBlockVariations:f}=d(BT.store);return{blockType:m(r),activeBlockVariation:p(r,e),scopeVariations:f(r,"block")}},[r,e]),s=n?.icon?.src||n?.icon||o?.icon?.src,l=n?.title||o?.title,{replaceInnerBlocks:c}=(0,ET.useDispatch)(M1.store),u=(0,M1.useBlockProps)();return(0,dH.jsx)("div",{...u,children:(0,dH.jsx)(M1.__experimentalBlockVariationPicker,{icon:s,label:l,variations:i,onSelect:d=>{d.innerBlocks&&c(t,(0,BT.createBlocksFromInnerBlocksTemplate)(d.innerBlocks),!1)}})})}var Fye=a(b(),1),QDe=e=>{let r=(0,zye.useSelect)(o=>!!o(Vye.store).getBlocks(e.clientId).length,[e.clientId])?Aye:Mye;return(0,Fye.jsx)(r,{...e})},Oye=QDe;var NT=a(R(),1),Hye=a(b(),1);function jye({attributes:{tagName:e="div"}}){let t=NT.useBlockProps.save(),r=NT.useInnerBlocksProps.save(t);return(0,Hye.jsx)(e,{...r})}var T2=a(D(),1),z1=a(V(),1),P2=a(b(),1),XDe=(0,P2.jsx)(z1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,P2.jsx)(z1.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"})}),JDe=(0,P2.jsx)(z1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,P2.jsx)(z1.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"})}),Uye=["core/term-name",{isLink:!0}],eLe=[{name:"name",title:(0,T2.__)("Name"),description:(0,T2.__)("Display the terms' names."),attributes:{},icon:XDe,scope:["block"],innerBlocks:[["core/term-template",{},[Uye]]]},{name:"name-count",title:(0,T2.__)("Name & Count"),description:(0,T2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:JDe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[Uye,["core/term-count"]]]]]]}],Wye=eLe;var{name:Gye}=CT,tLe=[["core/term-template"]],$ye={icon:um,template:tLe,edit:Oye,save:jye,example:{},variations:Wye},rLe=()=>M({name:Gye,metadata:CT,settings:$ye});var mH={};J(mH,{init:()=>cLe,metadata:()=>IT,name:()=>ebe,settings:()=>tbe});var IT={$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 qye=a(V(),1);var V1=a(H(),1),Zye=a(O(),1),E2=a(D(),1),el=a(R(),1),Kye=a(ne(),1),En=a(b(),1),nLe={type:"default"};function aLe({classList:e}){let t=(0,el.useInnerBlocksProps)({className:T("wp-block-term",e)},{__unstableDisableLayoutClassNames:!0,layout:nLe});return(0,En.jsx)("li",{...t})}function iLe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,el.__experimentalUseBlockPreview)({blocks:e,props:{className:T("wp-block-term",r)}}),s=()=>{n(t)};return(0,En.jsx)("li",{...i,tabIndex:0,role:"button",onClick:s,onKeyPress:s,style:{display:o?"none":void 0}})}var sLe=(0,V1.memo)(iLe);function Yye({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:n,orderBy:i,hideEmpty:s,showNested:l=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:d}){let{type:p,columnCount:m=3}=t||{},[f,g]=(0,V1.useState)(),h={hide_empty:s,order:n,orderby:i,per_page:c||-1};!l&&!u?.length&&(h.parent=0),u?.length&&(h.include=u,h.orderby="include",h.order="asc");let{records:v}=(0,Kye.useEntityRecords)("taxonomy",o,h),x=(0,Zye.useSelect)(w=>w(el.store).getBlocks(e),[e]),_=(0,el.useBlockProps)({className:d}),k=(0,V1.useMemo)(()=>v?.map(w=>({taxonomy:o,termId:w.id,classList:`term-${w.id}`,termData:w})),[v,o]);if(!v)return(0,En.jsx)("ul",{..._,children:(0,En.jsx)("li",{className:"wp-block-term term-loading",children:(0,En.jsx)("div",{className:"term-loading-placeholder"})})});if(!v.length)return(0,En.jsxs)("p",{..._,children:[" ",(0,E2.__)("No terms found.")]});let y=w=>r(C=>({layout:{...C.layout,...w}}));return(0,En.jsxs)(En.Fragment,{children:[(0,En.jsx)(el.BlockControls,{children:(0,En.jsx)(qye.ToolbarGroup,{controls:[{icon:dl,title:(0,E2._x)("List view","Term template block display setting"),onClick:()=>y({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:ki,title:(0,E2._x)("Grid view","Term template block display setting"),onClick:()=>y({type:"grid",columnCount:m}),isActive:p==="grid"}]})}),(0,En.jsx)("ul",{..._,children:k?.map(w=>(0,En.jsxs)(el.BlockContextProvider,{value:w,children:[w.termId===(f||k[0]?.termId)?(0,En.jsx)(aLe,{classList:w.classList}):null,(0,En.jsx)(sLe,{blocks:x,blockContextId:w.termId,classList:w.classList,setActiveBlockContextId:g,isHidden:w.termId===(f||k[0]?.termId)})]},w.termId))})]})}var Qye=a(R(),1),Xye=a(b(),1);function Jye(){return(0,Xye.jsx)(Qye.InnerBlocks.Content,{})}var{name:ebe}=IT,lLe=[["core/term-name"]],tbe={icon:cm,template:lLe,edit:Yye,save:Jye,example:{}},cLe=()=>M({name:ebe,metadata:IT,settings:tbe});var fH={};J(fH,{init:()=>pLe,metadata:()=>DT,name:()=>ibe,settings:()=>sbe});var F1=a(D(),1),RT=a(V(),1),iu=a(R(),1),rbe=a(Lm(),1),cs=a(b(),1);function obe({attributes:e,setAttributes:t}){let{width:r,content:o,columns:n}=e;return(0,rbe.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,cs.jsxs)(cs.Fragment,{children:[(0,cs.jsx)(iu.BlockControls,{children:(0,cs.jsx)(iu.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,cs.jsx)(iu.InspectorControls,{children:(0,cs.jsx)(RT.PanelBody,{children:(0,cs.jsx)(RT.RangeControl,{label:(0,F1.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,cs.jsx)("div",{...(0,iu.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,s)=>(0,cs.jsx)("div",{className:"wp-block-column",children:(0,cs.jsx)(iu.RichText,{tagName:"p",value:o?.[s]?.children,onChange:l=>{t({content:[...o.slice(0,s),{children:l},...o.slice(s+1)]})},"aria-label":(0,F1.sprintf)((0,F1.__)("Column %d text"),s+1),placeholder:(0,F1.__)("New Column")})},`column-${s}`))})]})}var DT={$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 AT=a(R(),1),LT=a(b(),1);function nbe({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,LT.jsx)("div",{...AT.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((n,i)=>(0,LT.jsx)("div",{className:"wp-block-column",children:(0,LT.jsx)(AT.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var MT=a(K(),1),dLe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,MT.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:n})=>(0,MT.createBlock)("core/column",{},[(0,MT.createBlock)("core/paragraph",{content:n})])))}]},abe=dLe;var{name:ibe}=DT,sbe={transforms:abe,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:obe,save:nbe},pLe=()=>M({name:ibe,metadata:DT,settings:sbe});var bH={};J(bH,{init:()=>_Le,metadata:()=>FT,name:()=>fbe,settings:()=>HT});var yH=a(D(),1);var mbe=a(K(),1);var xg=a(R(),1);var O1=a(b(),1),mLe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,O1.jsx)(xg.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:ke},fLe={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=T({[`has-text-align-${t}`]:t});return(0,O1.jsx)("pre",{...xg.useBlockProps.save({className:o}),children:(0,O1.jsx)(xg.RichText.Content,{value:r})})},migrate(e){return ke(er(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},gLe={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=T({[`has-text-align-${t}`]:t});return(0,O1.jsx)("pre",{...xg.useBlockProps.save({className:o}),children:(0,O1.jsx)(xg.RichText.Content,{value:r})})},migrate:ke,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},lbe=[gLe,fLe,mLe];var gH=a(D(),1),zT=a(R(),1),VT=a(K(),1);var cbe=a(b(),1);function ube(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:n,insertBlocksAfter:i,style:s}=e,{content:l}=t;Et(e);let c=(0,zT.useBlockProps)({style:s});return(0,cbe.jsx)(zT.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:u=>{r({content:u})},"aria-label":(0,gH.__)("Poetry text"),placeholder:(0,gH.__)("Write poetry\u2026"),onRemove:n,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:i?()=>i((0,VT.createBlock)((0,VT.getDefaultBlockName)())):void 0})}var FT={$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 OT=a(R(),1),hH=a(b(),1);function dbe({attributes:e}){let{content:t}=e;return(0,hH.jsx)("pre",{...OT.useBlockProps.save(),children:(0,hH.jsx)(OT.RichText.Content,{value:t})})}var vH=a(K(),1),vLe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,vH.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,vH.createBlock)("core/paragraph",e)}]},pbe=vLe;var{fieldsKey:yLe,formKey:bLe}=q(mbe.privateApis),{name:fbe}=FT,HT={icon:Sy,example:{attributes:{content:(0,yH.__)(`WHAT was he doing, the great god Pan,
 144      Down in the reeds by the river?
 145  Spreading ruin and scattering ban,
 146  Splashing and paddling with hoofs of a goat,
 147  And breaking the golden lilies afloat
 148      With the dragon-fly on the river.`)}},transforms:pbe,deprecated:lbe,merge(e,t){return{content:e.content+`
 149  
 150  `+t.content}},edit:ube,save:dbe};window.__experimentalContentOnlyInspectorFields&&(HT[yLe]=[{id:"content",label:(0,yH.__)("Content"),type:"text",Edit:"rich-text"}],HT[bLe]={fields:["content"]});var _Le=()=>M({name:fbe,metadata:FT,settings:HT});var kH={};J(kH,{init:()=>zLe,metadata:()=>H1,name:()=>Rbe,settings:()=>GT});var WT=a(D(),1);var Ibe=a(K(),1);var B2=a(R(),1);var H1={$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 gbe=a(b(),1);function j1({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,gbe.jsx)("track",{...o},r??o.src)})}var U1=a(b(),1),{attributes:kLe}=H1,wLe={attributes:kLe,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:s,preload:l,src:c,playsInline:u,tracks:d}=e;return(0,U1.jsxs)("figure",{...B2.useBlockProps.save(),children:[c&&(0,U1.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:s,preload:l!=="metadata"?l:void 0,src:c,playsInline:u,children:(0,U1.jsx)(j1,{tracks:d})}),!B2.RichText.isEmpty(r)&&(0,U1.jsx)(B2.RichText.Content,{tagName:"figcaption",value:r})]})}},CLe=[wLe],hbe=CLe;var Cbe=a(Or(),1),$1=a(V(),1),Va=a(R(),1),wg=a(H(),1),I2=a(D(),1),Sbe=a(O(),1);var Tbe=a(xr(),1),Pbe=a(dr(),1);var io=a(D(),1),za=a(V(),1),N2=a(H(),1),Bn=a(b(),1),SLe=[{value:"auto",label:(0,io.__)("Auto")},{value:"metadata",label:(0,io.__)("Metadata")},{value:"none",label:(0,io._x)("None","Preload value")}],TLe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:n,muted:i,playsInline:s,preload:l}=t,c=(0,io.__)("Autoplay may cause usability issues for some users."),u=(0,N2.useCallback)(m=>m?c:null,[]),d=(0,N2.useMemo)(()=>{let m=f=>g=>{e({[f]:g,...f==="autoplay"&&{muted:g,playsInline:g}})};return{autoplay:m("autoplay"),loop:m("loop"),muted:m("muted"),controls:m("controls"),playsInline:m("playsInline")}},[]),p=(0,N2.useCallback)(m=>{e({preload:m})},[]);return(0,Bn.jsxs)(Bn.Fragment,{children:[(0,Bn.jsx)(za.__experimentalToolsPanelItem,{label:(0,io.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,Bn.jsx)(za.ToggleControl,{label:(0,io.__)("Autoplay"),onChange:d.autoplay,checked:!!r,help:u})}),(0,Bn.jsx)(za.__experimentalToolsPanelItem,{label:(0,io.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,Bn.jsx)(za.ToggleControl,{label:(0,io.__)("Loop"),onChange:d.loop,checked:!!n})}),(0,Bn.jsx)(za.__experimentalToolsPanelItem,{label:(0,io.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,Bn.jsx)(za.ToggleControl,{label:(0,io.__)("Muted"),onChange:d.muted,checked:!!i,disabled:r,help:r?(0,io.__)("Muted because of Autoplay."):null})}),(0,Bn.jsx)(za.__experimentalToolsPanelItem,{label:(0,io.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,Bn.jsx)(za.ToggleControl,{label:(0,io.__)("Playback controls"),onChange:d.controls,checked:!!o})}),(0,Bn.jsx)(za.__experimentalToolsPanelItem,{label:(0,io.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>{e({playsInline:!1})},children:(0,Bn.jsx)(za.ToggleControl,{label:(0,io.__)("Play inline"),onChange:d.playsInline,checked:!!s,disabled:r,help:r?(0,io.__)("Play inline enabled because of Autoplay."):(0,io.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,Bn.jsx)(za.__experimentalToolsPanelItem,{label:(0,io.__)("Preload"),isShownByDefault:!0,hasValue:()=>l!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,Bn.jsx)(za.SelectControl,{label:(0,io.__)("Preload"),value:l,onChange:p,options:SLe,hideCancelButton:!0})})]})},vbe=TLe;var Wt=a(D(),1),it=a(V(),1),W1=a(R(),1);var bbe=a(O(),1),kg=a(H(),1),_be=a(dr(),1);var ot=a(b(),1),{Badge:PLe}=q(it.privateApis),ybe=["text/vtt"],ELe="subtitles",BLe=[{label:(0,Wt.__)("Subtitles"),value:"subtitles"},{label:(0,Wt.__)("Captions"),value:"captions"},{label:(0,Wt.__)("Descriptions"),value:"descriptions"},{label:(0,Wt.__)("Chapters"),value:"chapters"},{label:(0,Wt.__)("Metadata"),value:"metadata"}],xbe={src:"",label:"",srcLang:"en",kind:ELe,default:!1};function NLe({tracks:e,onEditPress:t}){let r=e.map((o,n)=>(0,ot.jsxs)(it.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,ot.jsx)("span",{children:o.label}),(0,ot.jsxs)(it.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,ot.jsx)(PLe,{children:(0,Wt.__)("Default")}),(0,ot.jsx)(it.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Wt.sprintf)((0,Wt._x)("Edit %s","text tracks"),o.label),children:(0,Wt.__)("Edit")})]})]},o.id??o.src));return(0,ot.jsx)(it.MenuGroup,{label:(0,Wt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function ILe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:n}){let[i,s]=(0,kg.useState)({...xbe,...e}),{src:l,label:c,srcLang:u,kind:d,default:p}=i,m=l.startsWith("blob:")?"":(0,_be.getFilename)(l)||"";return(0,ot.jsxs)(it.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,ot.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Wt.__)("Edit track")}),(0,ot.jsxs)("span",{children:[(0,Wt.__)("File"),": ",(0,ot.jsx)("b",{children:m})]}),(0,ot.jsxs)(it.__experimentalGrid,{columns:2,gap:4,children:[(0,ot.jsx)(it.TextControl,{onChange:f=>s(g=>({...g,label:f})),label:(0,Wt.__)("Label"),value:c,help:(0,Wt.__)("Title of track")}),(0,ot.jsx)(it.TextControl,{onChange:f=>s(g=>({...g,srcLang:f})),label:(0,Wt.__)("Source language"),value:u,help:(0,Wt.__)("Language tag (en, fr, etc.)")})]}),(0,ot.jsxs)(it.__experimentalVStack,{spacing:"4",children:[(0,ot.jsx)(it.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:BLe,value:d,label:(0,Wt.__)("Kind"),onChange:f=>s(g=>({...g,kind:f}))}),(0,ot.jsx)(it.ToggleControl,{label:(0,Wt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>s(g=>({...g,default:f}))}),(0,ot.jsxs)(it.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,ot.jsx)(it.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Wt.__)("Remove track")}),(0,ot.jsx)(it.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Wt.__)("Apply")})]})]})]})}function kbe({tracks:e=[],onChange:t}){let r=(0,bbe.useSelect)(c=>c(W1.store).getSettings().mediaUpload,[]),[o,n]=(0,kg.useState)(null),i=(0,kg.useRef)(),s=(c=[],u=!1)=>{let d=new Map(e.map(m=>[m.id,m])),p=c.map(({id:m,title:f,url:g})=>d.has(m)?d.get(m):{...xbe,id:m,label:f||"",src:g});p.length!==0&&t([...u?e:[],...p])};function l(c){let u=c.target.files;r({allowedTypes:ybe,filesList:u,onFileChange:d=>{if(!Array.isArray(d))return;let p=d.filter(m=>!!m?.id);p.length&&s(p,!0)}})}return(0,kg.useEffect)(()=>{i.current?.focus()},[o]),r?(0,ot.jsx)(it.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,ot.jsx)(it.ToolbarGroup,{children:(0,ot.jsx)(it.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Wt.__)("Text tracks")})}),renderContent:()=>o!==null?(0,ot.jsx)(ILe,{track:e[o],onChange:c=>{let u=[...e];u[o]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==o)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[o].default}):(0,ot.jsxs)(ot.Fragment,{children:[e.length===0&&(0,ot.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,ot.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Wt.__)("Text tracks")}),(0,ot.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Wt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,ot.jsxs)(it.NavigableMenu,{children:[(0,ot.jsx)(NLe,{tracks:e,onEditPress:n}),(0,ot.jsx)(it.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Wt.__)("Add tracks"),children:(0,ot.jsxs)(W1.MediaUploadCheck,{children:[(0,ot.jsx)(W1.MediaUpload,{onSelect:s,allowedTypes:ybe,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,ot.jsx)(it.MenuItem,{icon:Iv,onClick:c,children:(0,Wt.__)("Open Media Library")})}),(0,ot.jsx)(it.FormFileUpload,{onChange:l,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,ot.jsx)(it.MenuItem,{icon:cu,onClick:c,children:(0,Wt._x)("Upload","verb")})})]})})]})]})}):null}var G1=a(D(),1);var jT=({controls:e,loop:t,autoplay:r,muted:o,playsInline:n}={})=>!e&&!!t&&!!r&&!!o&&!!n,RLe=[{name:"video",title:(0,G1.__)("Video"),description:(0,G1.__)("A video with customizable playback and interaction controls."),icon:uu,attributes:{controls:!0},isActive:e=>!jT(e),scope:["block","transform"]},{name:"gif",title:(0,G1.__)("GIF"),description:(0,G1.__)("A muted, looping video that plays automatically like an animated GIF."),icon:uu,keywords:[(0,G1.__)("animated"),"gif"],attributes:{controls:!1,loop:!0,autoplay:!0,muted:!0,playsInline:!0},isActive:e=>jT(e),scope:["block","transform"]}],wbe=RLe;var Er=a(b(),1),_H=["video"];function DLe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:n,onReplace:i}){let s=(0,wg.useRef)(),{id:l,controls:c,poster:u,src:d,tracks:p,width:m,height:f}=t,g=jT(t),h=m&&f?`${m} / ${f}`:void 0,[v,x]=(0,wg.useState)(t.blob),_=X(),y=(0,Va.useBlockEditingMode)()==="default";tc({url:v,allowedTypes:_H,onChange:w,onError:P}),(0,wg.useEffect)(()=>{s.current&&s.current.load()},[u]),(0,wg.useEffect)(()=>{g&&s.current?.play().catch(()=>{})},[g,d,u]);function w(E){if(!E||!E.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),x();return}if((0,Cbe.isBlobURL)(E.url)){x(E.url);return}o({blob:void 0,src:E.url,id:E.id,poster:E.image?.src!==E.icon?E.image?.src:void 0,caption:E.caption}),x()}function C(E){if(E!==d){let L=(0,Pbe.prependHTTPS)(E),A=Cd({attributes:{url:L}});if(A!==void 0&&i){i(A);return}o({blob:void 0,src:L,id:void 0,poster:void 0}),x()}}let{createErrorNotice:S}=(0,Sbe.useDispatch)(Tbe.store);function P(E){S(E,{type:"snackbar"})}let N=E=>(0,Er.jsx)($1.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:uu,label:(0,I2.__)("Video"),instructions:(0,I2.__)("Drag and drop a video, upload, or choose from your library."),children:E}),I=T(r,{"is-transient":!!v}),B=(0,Va.useBlockProps)({className:I});return!d&&!v?(0,Er.jsx)("div",{...B,children:(0,Er.jsx)(Va.MediaPlaceholder,{icon:(0,Er.jsx)(Va.BlockIcon,{icon:uu}),onSelect:w,onSelectURL:C,accept:"video/*",allowedTypes:_H,value:t,onError:P,placeholder:N})}):(0,Er.jsxs)(Er.Fragment,{children:[e&&(0,Er.jsxs)(Er.Fragment,{children:[(0,Er.jsx)(Va.BlockControls,{children:(0,Er.jsx)(kbe,{tracks:p,onChange:E=>{o({tracks:E})}})}),(0,Er.jsx)(Va.BlockControls,{group:"other",children:(0,Er.jsx)(Va.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:_H,accept:"video/*",onSelect:w,onSelectURL:C,onError:P,onReset:()=>w(void 0),variant:"toolbar"})})]}),!g&&(0,Er.jsx)(Va.InspectorControls,{children:(0,Er.jsxs)($1.__experimentalToolsPanel,{label:(0,I2.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:_,children:[(0,Er.jsx)(vbe,{setAttributes:o,attributes:t}),(0,Er.jsx)(a4,{poster:u,onChange:E=>o({poster:E?.url})})]})}),(0,Er.jsxs)("figure",{...B,children:[(0,Er.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:d||v,ref:s,autoPlay:g,loop:g,muted:g,playsInline:g,width:m,height:f,style:h?{aspectRatio:h}:void 0,children:(0,Er.jsx)(j1,{tracks:p})}),!!v&&(0,Er.jsx)($1.Spinner,{}),(0,Er.jsx)($o,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:n,label:(0,I2.__)("Video caption text"),showToolbarButton:e&&y})]})]})}var Ebe=DLe;var Cg=a(R(),1);var q1=a(b(),1);function Bbe({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:s,preload:l,src:c,playsInline:u,tracks:d,width:p,height:m}=e,f=p&&m?`${p} / ${m}`:void 0;return(0,q1.jsxs)("figure",{...Cg.useBlockProps.save(),children:[c&&(0,q1.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:s,preload:l!=="metadata"?l:void 0,src:c,playsInline:u,width:p,height:m,style:f?{aspectRatio:f}:void 0,children:(0,q1.jsx)(j1,{tracks:d})}),!Cg.RichText.isEmpty(r)&&(0,q1.jsx)(Cg.RichText.Content,{className:(0,Cg.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var UT=a(Or(),1),xH=a(K(),1),LLe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,xH.createBlock)("core/video",{blob:(0,UT.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:r,webm:o,ogv:n,flv:i}})=>e||t||r||o||n||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,UT.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,xH.createBlock)("core/video",r)}}]},Nbe=LLe;var{fieldsKey:ALe,formKey:MLe}=q(Ibe.privateApis),{name:Rbe}=H1,GT={icon:uu,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,WT.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Nbe,variations:wbe,deprecated:hbe,edit:Ebe,save:Bbe};window.__experimentalContentOnlyInspectorFields&&(GT[ALe]=[{id:"video",label:(0,WT.__)("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,WT.__)("Caption"),type:"text",Edit:"rich-text"}],GT[MLe]={fields:["video","caption"]});var zLe=()=>M({name:Rbe,metadata:H1,settings:GT});var EH={};J(EH,{init:()=>WLe,metadata:()=>$T,name:()=>ZT,settings:()=>jbe});var Hbe=a(hl(),1);var Sg=a(R(),1),Dbe=a(ne(),1),R2=a(D(),1),wH=a(V(),1);var tl=a(b(),1);function Lbe({context:{postType:e,postId:t}}){let[r,o]=(0,Dbe.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i;try{i=JSON.parse(r?.footnotes||"[]")}catch{}let s=Array.isArray(i)?i:[],l=(0,Sg.useBlockProps)();return n?s.length?(0,tl.jsx)("ol",{...l,children:s.map(({id:c,content:u})=>(0,tl.jsxs)("li",{onMouseDown:d=>{d.target===d.currentTarget&&(d.target.firstElementChild.focus(),d.preventDefault())},children:[(0,tl.jsx)(Sg.RichText,{id:c,tagName:"span",value:u,identifier:c,onFocus:d=>{d.target.textContent.trim()||d.target.scrollIntoView()},onChange:d=>{o({...r,footnotes:JSON.stringify(s.map(p=>p.id===c?{content:d,id:c}:p))})}})," ",(0,tl.jsx)("a",{href:`#${c}-link`,children:"\u21A9\uFE0E"})]},c))}):(0,tl.jsx)("div",{...l,children:(0,tl.jsx)(wH.Placeholder,{icon:(0,tl.jsx)(Sg.BlockIcon,{icon:gs}),label:(0,R2.__)("Footnotes"),instructions:(0,R2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,tl.jsx)("div",{...l,children:(0,tl.jsx)(wH.Placeholder,{icon:(0,tl.jsx)(Sg.BlockIcon,{icon:gs}),label:(0,R2.__)("Footnotes"),instructions:(0,R2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var $T={$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 Nn=[];for(let e=0;e<256;++e)Nn.push((e+256).toString(16).slice(1));function Abe(e,t=0){return(Nn[e[t+0]]+Nn[e[t+1]]+Nn[e[t+2]]+Nn[e[t+3]]+"-"+Nn[e[t+4]]+Nn[e[t+5]]+"-"+Nn[e[t+6]]+Nn[e[t+7]]+"-"+Nn[e[t+8]]+Nn[e[t+9]]+"-"+Nn[e[t+10]]+Nn[e[t+11]]+Nn[e[t+12]]+Nn[e[t+13]]+Nn[e[t+14]]+Nn[e[t+15]]).toLowerCase()}var FLe=new Uint8Array(16);function CH(){return crypto.getRandomValues(FLe)}function OLe(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():HLe(e,t,r)}function HLe(e,t,r){e=e||{};let o=e.random??e.rng?.()??CH();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 n=0;n<16;++n)t[r+n]=o[n];return t}return Abe(o)}var SH=OLe;var TH=a(D(),1);var zbe=a(hl(),1),nd=a(R(),1),Z1=a(O(),1),Vbe=a(ne(),1),qT=a(K(),1);var Fbe=a(b(),1),PH="core/footnote",{usesContextKey:jLe}=q(nd.privateApis),Mbe="core/post-content",ULe="core/block",Obe={title:(0,TH.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[jLe]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:n,postId:i}}){let s=(0,Z1.useRegistry)(),{getSelectedBlockClientId:l,getBlocks:c,getBlockRootClientId:u,getBlockName:d,getBlockParentsByBlockName:p}=s.select(nd.store),m=(0,Z1.useSelect)(v=>{if(!v(qT.store).getBlockType("core/footnotes"))return!1;let x=v(nd.store).getSettings().allowedBlockTypes;if(x===!1||Array.isArray(x)&&!x.includes("core/footnotes")||typeof v(Vbe.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:k,getSelectedBlockClientId:y,getBlockName:w}=v(nd.store),C=y();if(!C||w(C)===ZT)return!1;let S=k(C,ULe);return!S||S.length===0},[n,i]),{selectionChange:f,insertBlock:g}=(0,Z1.useDispatch)(nd.store);if(!m)return null;function h(){s.batch(()=>{let v;if(o)v=t.replacements[t.start]?.attributes?.["data-fn"];else{v=`fn-${SH()}`;let w=(0,zbe.insertObject)(t,{type:PH,attributes:{"data-fn":v},innerHTML:`<a href="#${v}" id="${v}-link">*</a>`},t.end,t.end);w.start=w.end-1,r(w)}let x=l(),_=p(x,Mbe),k=_.length?c(_[0]):c(),y=null;{let w=[...k];for(;w.length;){let C=w.shift();if(C.name==="core/footnotes"){y=C;break}w.push(...C.innerBlocks)}}if(!y){let w=u(x);for(;w&&d(w)!==Mbe;)w=u(w);y=(0,qT.createBlock)("core/footnotes"),g(y,void 0,w)}f(y.clientId,v,0,0)})}return(0,Fbe.jsx)(nd.RichTextToolbarButton,{icon:gs,title:(0,TH.__)("Footnote"),onClick:h,isActive:o})}};var{name:ZT}=$T,jbe={icon:gs,edit:Lbe},WLe=()=>{(0,Hbe.registerFormatType)(PH,Obe),M({name:ZT,metadata:$T,settings:jbe})};function Ube(e){return e&&"__experimental"in e&&e.__experimental!==!1}var BH={};Iq(BH,{NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Lc,NavigationLinkUI:ZS});var KT=a(b(),1),GLe=()=>{let e=[Iz,XA,AA,SA,iM,yM,nF,WI,GI,$I,qI,ZI,jD,ZD,QD,JD,rL,cL,dL,fL,_L,tA,rA,sA,pA,BA,FA,cM,JA,rM,SM,TM,PM,fz,_z,Sz,yz,Kz,Qz,xV,kV,aF,sF,mF,fF,hF,bO,xO,kO,MO,$O,GO,TO,SO,ZO,fH,bH,kH,EH,sz,uz,pz,yF,kF,_F,FV,JO,YI,vV,uV,pV,sV,Jz,eV,rV,oV,iV,lV,gV,mV,fV,hV,WV,$V,qV,KV,HV,rF,iF,yL,xL,kL,CL,SL,TL,EL,ML,RL,LL,AL,NL,aV,jO,MA,GA,bM,hz,oH,aH,iH,pH,mH,JV,tV,UD];return window?.__experimentalEnableBlockExperiments,e.push(nL),e.filter(Boolean)},Zbe=()=>GLe().filter(({metadata:e})=>!Ube(e)),$Le=(e=Zbe())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=q((0,Gbe.select)(rl.store)).getBootstrappedBlockType(t);(0,rl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},usesContext:Array.from(new Set([...r?.usesContext??[],"postId"])),edit:function({attributes:n,context:i}){let s=(0,Wbe.useDisabled)(),l=(0,$be.useBlockProps)({ref:s}),{content:c,status:u,error:d}=(0,qbe.useServerSideRender)({block:t,attributes:n,urlQueryArgs:{post_id:i?.postId}});return u==="loading"?(0,KT.jsx)("div",{...l,children:(0,D2.__)("Loading\u2026")}):u==="error"?(0,KT.jsx)("div",{...l,children:(0,D2.sprintf)((0,D2.__)("Error loading block: %s"),d)}):(0,KT.jsx)(To,{wrapperProps:l,html:c})},save:()=>null})}),(0,rl.setDefaultBlockName)(M6),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===ub)&&(0,rl.setFreeformContentHandlerName)(ub),(0,rl.setUnregisteredTypeHandlerName)(Gb),(0,rl.setGroupingBlockName)(X4)},qLe=void 0;return m_e(ZLe);})();
 151  /*! Bundled license information:
 152  
 153  use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
 154    (**
 155     * @license React
 156     * use-sync-external-store-shim.production.js
 157     *
 158     * Copyright (c) Meta Platforms, Inc. and affiliates.
 159     *
 160     * This source code is licensed under the MIT license found in the
 161     * LICENSE file in the root directory of this source tree.
 162     *)
 163  
 164  fast-average-color/dist/index.esm.js:
 165    (*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
 166  */
 167  (window.wp ||= {}).blockLibrary = wp.blockLibrary;
 168  })();


Generated : Sat Oct 3 08:20:34 2026 Cross-referenced by PHPXref