PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/index.min.js +105 -49 23.5.0 → trunk View file →
@@ -1,22 +1,59 @@
1 -"use strict";var wp;(wp||={}).blockLibrary=(()=>{var Kfe=Object.create;var Oy=Object.defineProperty;var Yfe=Object.getOwnPropertyDescriptor;var Qfe=Object.getOwnPropertyNames;var Xfe=Object.getPrototypeOf,Jfe=Object.prototype.hasOwnProperty;var ehe=(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 we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)Oy(e,r,{get:t[r],enumerable:!0})},Dz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Qfe(t))!Jfe.call(e,n)&&n!==r&&Oy(e,n,{get:()=>t[n],enumerable:!(o=Yfe(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?Kfe(Xfe(e)):{},Dz(t||!e||!e.__esModule?Oy(r,"default",{value:e,enumerable:!0}):r,e)),the=e=>Dz(Oy({},"__esModule",{value:!0}),e);var $=we((n7e,Lz)=>{Lz.exports=window.wp.blocks});var fe=we((i7e,Mz)=>{Mz.exports=window.wp.compose});var F=we((l7e,Az)=>{Az.exports=window.wp.data});var T=we((s7e,Rz)=>{Rz.exports=window.wp.blockEditor});var zu=we((c7e,zz)=>{zz.exports=window.wp.serverSideRender});var B=we((u7e,Vz)=>{Vz.exports=window.wp.i18n});var k7=we(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.Doctype=nr.CDATA=nr.Tag=nr.Style=nr.Script=nr.Comment=nr.Directive=nr.Text=nr.Root=nr.isTag=nr.ElementType=void 0;var Zn;(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"})(Zn=nr.ElementType||(nr.ElementType={}));function ohe(e){return e.type===Zn.Tag||e.type===Zn.Script||e.type===Zn.Style}nr.isTag=ohe;nr.Root=Zn.Root;nr.Text=Zn.Text;nr.Directive=Zn.Directive;nr.Comment=Zn.Comment;nr.Script=Zn.Script;nr.Style=Zn.Style;nr.Tag=Zn.Tag;nr.CDATA=Zn.CDATA;nr.Doctype=Zn.Doctype});var T7=we(We=>{"use strict";var Vu=We&&We.__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)}})(),E0=We&&We.__assign||function(){return E0=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},E0.apply(this,arguments)};Object.defineProperty(We,"__esModule",{value:!0});We.cloneNode=We.hasChildren=We.isDocument=We.isDirective=We.isComment=We.isText=We.isCDATA=We.isTag=We.Element=We.Document=We.CDATA=We.NodeWithChildren=We.ProcessingInstruction=We.Comment=We.Text=We.DataNode=We.Node=void 0;var yn=k7(),C7=(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),S7(this,t)},e})();We.Node=C7;var jy=(function(e){Vu(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})(C7);We.DataNode=jy;var Hz=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(jy);We.Text=Hz;var Oz=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(jy);We.Comment=Oz;var jz=(function(e){Vu(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=yn.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(jy);We.ProcessingInstruction=jz;var Uy=(function(e){Vu(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})(C7);We.NodeWithChildren=Uy;var Uz=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Uy);We.CDATA=Uz;var Gz=(function(e){Vu(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=yn.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Uy);We.Document=Gz;var Wz=(function(e){Vu(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?yn.ElementType.Script:r==="style"?yn.ElementType.Style:yn.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=o,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(o){var 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})(Uy);We.Element=Wz;function $z(e){return(0,yn.isTag)(e)}We.isTag=$z;function qz(e){return e.type===yn.ElementType.CDATA}We.isCDATA=qz;function Zz(e){return e.type===yn.ElementType.Text}We.isText=Zz;function Kz(e){return e.type===yn.ElementType.Comment}We.isComment=Kz;function Yz(e){return e.type===yn.ElementType.Directive}We.isDirective=Yz;function Qz(e){return e.type===yn.ElementType.Root}We.isDocument=Qz;function ahe(e){return Object.prototype.hasOwnProperty.call(e,"children")}We.hasChildren=ahe;function S7(e,t){t===void 0&&(t=!1);var r;if(Zz(e))r=new Hz(e.data);else if(Kz(e))r=new Oz(e.data);else if($z(e)){var o=t?w7(e.children):[],n=new Wz(e.name,E0({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=E0({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=E0({},e["x-attribsPrefix"])),r=n}else if(qz(e)){var o=t?w7(e.children):[],i=new Uz(o);o.forEach(function(u){return u.parent=i}),r=i}else if(Qz(e)){var o=t?w7(e.children):[],l=new Gz(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(Yz(e)){var s=new jz(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}We.cloneNode=S7;function w7(e){for(var t=e.map(function(o){return S7(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var eV=we(Ts=>{"use strict";var nhe=Ts&&Ts.__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]})),ihe=Ts&&Ts.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&nhe(t,e,r)};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.DomHandler=void 0;var P7=k7(),Fu=T7();ihe(T7(),Ts);var Xz={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Jz=(function(){function e(t,r,o){this.dom=[],this.root=new Fu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=Xz),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??Xz,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new Fu.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?P7.ElementType.Tag:void 0,n=new Fu.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===P7.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new Fu.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===P7.ElementType.Comment){this.lastNode.data+=t;return}var r=new Fu.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new Fu.Text(""),r=new Fu.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 Fu.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})();Ts.DomHandler=Jz;Ts.default=Jz});var tV=we(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=Vo.CARRIAGE_RETURN_PLACEHOLDER=Vo.CARRIAGE_RETURN_REGEX=Vo.CARRIAGE_RETURN=Vo.CASE_SENSITIVE_TAG_NAMES_MAP=Vo.CASE_SENSITIVE_TAG_NAMES=void 0;Vo.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"];Vo.CASE_SENSITIVE_TAG_NAMES_MAP=Vo.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});Vo.CARRIAGE_RETURN="\r";Vo.CARRIAGE_RETURN_REGEX=new RegExp(Vo.CARRIAGE_RETURN,"g");Vo.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");Vo.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(Vo.CARRIAGE_RETURN_PLACEHOLDER,"g")});var B7=we(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.formatAttributes=rV;Bf.escapeSpecialCharacters=che;Bf.revertEscapedCharacters=oV;Bf.formatDOM=aV;var Gy=eV(),N0=tV();function lhe(e){return N0.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function rV(e){for(var t={},r=0,o=e.length;r<o;r++){var n=e[r];t[n.name]=n.value}return t}function she(e){e=e.toLowerCase();var t=lhe(e);return t||e}function che(e){return e.replace(N0.CARRIAGE_RETURN_REGEX,N0.CARRIAGE_RETURN_PLACEHOLDER)}function oV(e){return e.replace(N0.CARRIAGE_RETURN_PLACEHOLDER_REGEX,N0.CARRIAGE_RETURN)}function aV(e,t,r){t===void 0&&(t=null);for(var o=[],n,i=0,l=e.length;i<l;i++){var s=e[i];switch(s.nodeType){case 1:{var c=she(s.nodeName);n=new Gy.Element(c,rV(s.attributes)),n.children=aV(c==="template"?s.content.childNodes:s.childNodes,n);break}case 3:n=new Gy.Text(oV(s.nodeValue));break;case 8:n=new Gy.Comment(s.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 Gy.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 pV=we(I7=>{"use strict";Object.defineProperty(I7,"__esModule",{value:!0});I7.default=phe;var uhe=B7(),nV="html",iV="head",Wy="body",mhe=/<([a-zA-Z]+[0-9]?)/,lV=/<head[^]*>/i,sV=/<body[^]*>/i,qy=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},E7=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},cV=typeof window=="object"&&window.DOMParser;typeof cV=="function"&&(uV=new cV,mV="text/html",E7=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),uV.parseFromString(e,mV)},qy=E7);var uV,mV;typeof document=="object"&&document.implementation&&(I0=document.implementation.createHTMLDocument(),qy=function(e,t){if(t){var r=I0.documentElement.querySelector(t);return r&&(r.innerHTML=e),I0}return I0.documentElement.innerHTML=e,I0});var I0,$y=typeof document=="object"&&document.createElement("template"),N7;$y&&$y.content&&(N7=function(e){return $y.innerHTML=e,$y.content.childNodes});function phe(e){var t,r;e=(0,uhe.escapeSpecialCharacters)(e);var o=e.match(mhe),n=o&&o[1]?o[1].toLowerCase():"";switch(n){case nV:{var i=E7(e);if(!lV.test(e)){var l=i.querySelector(iV);(t=l?.parentNode)===null||t===void 0||t.removeChild(l)}if(!sV.test(e)){var l=i.querySelector(Wy);(r=l?.parentNode)===null||r===void 0||r.removeChild(l)}return i.querySelectorAll(nV)}case iV:case Wy:{var s=qy(e).querySelectorAll(n);return sV.test(e)&&lV.test(e)?s[0].parentNode.childNodes:s}default:{if(N7)return N7(e);var l=qy(e,Wy).querySelector(Wy);return l.childNodes}}}});var dV=we(D0=>{"use strict";var dhe=D0&&D0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(D0,"__esModule",{value:!0});D0.default=vhe;var fhe=dhe(pV()),hhe=B7(),ghe=/<(![a-zA-Z\s]+)>/;function vhe(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(ghe),r=t?t[1]:void 0;return(0,hhe.formatDOM)((0,fhe.default)(e),null,r)}});var fV=we(Zy=>{var bhe=0;Zy.SAME=bhe;var yhe=1;Zy.CAMELCASE=yhe;Zy.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 gV=we(Nl=>{"use strict";function _he(e){return Fo.hasOwnProperty(e)?Fo[e]:null}function Ra(e,t,r,o,n,i,l){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=l}var Fo={},xhe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];xhe.forEach(e=>{Fo[e]=new Ra(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Fo[e]=new Ra(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{Fo[e]=new Ra(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Fo[e]=new Ra(e,2,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{Fo[e]=new Ra(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{Fo[e]=new Ra(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{Fo[e]=new Ra(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{Fo[e]=new Ra(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{Fo[e]=new Ra(e,5,!1,e.toLowerCase(),null,!1,!1)});var D7=/[\-\:]([a-z])/g,L7=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(D7,L7);Fo[t]=new Ra(t,1,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{let t=e.replace(D7,L7);Fo[t]=new Ra(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(D7,L7);Fo[t]=new Ra(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{Fo[e]=new Ra(e,1,!1,e.toLowerCase(),null,!1,!1)});var khe="xlinkHref";Fo[khe]=new Ra("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{Fo[e]=new Ra(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:whe,SAME:Che,possibleStandardNames:hV}=fV(),She=":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",The=She+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Phe=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+The+"]*$")),Bhe=Object.keys(hV).reduce((e,t)=>{let r=hV[t];return r===Che?e[t]=t:r===whe?e[t.toLowerCase()]=t:e[t]=r,e},{});Nl.BOOLEAN=3;Nl.BOOLEANISH_STRING=2;Nl.NUMERIC=5;Nl.OVERLOADED_BOOLEAN=4;Nl.POSITIVE_NUMERIC=6;Nl.RESERVED=0;Nl.STRING=1;Nl.getPropertyInfo=_he;Nl.isCustomAttribute=Phe;Nl.possibleStandardNames=Bhe});var Hu=we((x7e,vV)=>{vV.exports=window.React});var wV=we((k7e,kV)=>{"use strict";var bV=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ehe=/\n/g,Nhe=/^\s*/,Ihe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dhe=/^:\s*/,Lhe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mhe=/^[;\s]*/,Ahe=/^\s+|\s+$/g,Rhe=`
2 -`,yV="/",_V="*",vp="",zhe="comment",Vhe="declaration";function Fhe(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(h){var g=h.match(Ehe);g&&(r+=g.length);var b=h.lastIndexOf(Rhe);o=~b?h.length-b:o+h.length}function i(){var h={line:r,column:o};return function(g){return g.position=new l(h),u(),g}}function l(h){this.start=h,this.end={line:r,column:o},this.source=t.source}l.prototype.content=e;function s(h){var g=new Error(t.source+":"+r+":"+o+": "+h);if(g.reason=h,g.filename=t.source,g.line=r,g.column=o,g.source=e,!t.silent)throw g}function c(h){var g=h.exec(e);if(g){var b=g[0];return n(b),e=e.slice(b.length),g}}function u(){c(Nhe)}function m(h){var g;for(h=h||[];g=p();)g!==!1&&h.push(g);return h}function p(){var h=i();if(!(yV!=e.charAt(0)||_V!=e.charAt(1))){for(var g=2;vp!=e.charAt(g)&&(_V!=e.charAt(g)||yV!=e.charAt(g+1));)++g;if(g+=2,vp===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return o+=2,n(b),e=e.slice(g),o+=2,h({type:zhe,comment:b})}}function d(){var h=i(),g=c(Ihe);if(g){if(p(),!c(Dhe))return s("property missing ':'");var b=c(Lhe),y=h({type:Vhe,property:xV(g[0].replace(bV,vp)),value:b?xV(b[0].replace(bV,vp)):vp});return c(Mhe),y}}function f(){var h=[];m(h);for(var g;g=d();)g!==!1&&(h.push(g),m(h));return h}return u(),f()}function xV(e){return e?e.replace(Ahe,vp):vp}kV.exports=Fhe});var CV=we(L0=>{"use strict";var Hhe=L0&&L0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L0,"__esModule",{value:!0});L0.default=jhe;var Ohe=Hhe(wV());function jhe(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,Ohe.default)(e),n=typeof t=="function";return o.forEach(i=>{if(i.type!=="declaration")return;let{property:l,value:s}=i;n?t(l,s,i):s&&(r=r||{},r[l]=s)}),r}});var TV=we(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.camelCase=void 0;var Uhe=/^--[a-zA-Z0-9_-]+$/,Ghe=/-([a-z])/g,Whe=/^[^-]+$/,$he=/^-(webkit|moz|ms|o|khtml)-/,qhe=/^-(ms)-/,Zhe=function(e){return!e||Whe.test(e)||Uhe.test(e)},Khe=function(e,t){return t.toUpperCase()},SV=function(e,t){return"".concat(t,"-")},Yhe=function(e,t){return t===void 0&&(t={}),Zhe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(qhe,SV):e=e.replace($he,SV),e.replace(Ghe,Khe))};Ky.camelCase=Yhe});var BV=we((A7,PV)=>{"use strict";var Qhe=A7&&A7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Xhe=Qhe(CV()),Jhe=TV();function M7(e,t){var r={};return!e||typeof e!="string"||(0,Xhe.default)(e,function(o,n){o&&n&&(r[(0,Jhe.camelCase)(o,t)]=n)}),r}M7.default=M7;PV.exports=M7});var R7=we(za=>{"use strict";var ege=za&&za.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(za,"__esModule",{value:!0});za.returnFirstArg=za.canTextBeChildOfNode=za.ELEMENTS_WITH_NO_TEXT_CHILDREN=za.PRESERVE_CUSTOM_ATTRIBUTES=void 0;za.isCustomComponent=age;za.setStyleProp=ige;var tge=Hu(),rge=ege(BV()),oge=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function age(e,t){return e.includes("-")?!oge.has(e):!!(t&&typeof t.is=="string")}var nge={reactCompat:!0};function ige(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,rge.default)(e,nge)}catch{t.style={}}}}za.PRESERVE_CUSTOM_ATTRIBUTES=Number(tge.version.split(".")[0])>=16;za.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var lge=function(e){return!za.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};za.canTextBeChildOfNode=lge;var sge=function(e){return e};za.returnFirstArg=sge});var V7=we(z7=>{"use strict";Object.defineProperty(z7,"__esModule",{value:!0});z7.default=pge;var M0=gV(),EV=R7(),cge=["checked","value"],uge=["input","select","textarea"],mge={reset:!0,submit:!0};function pge(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&mge[e.type]);for(var n in e){var i=e[n];if((0,M0.isCustomAttribute)(n)){r[n]=i;continue}var l=n.toLowerCase(),s=NV(l);if(s){var c=(0,M0.getPropertyInfo)(s);switch(cge.includes(s)&&uge.includes(t)&&!o&&(s=NV("default"+l)),r[s]=i,c&&c.type){case M0.BOOLEAN:r[s]=!0;break;case M0.OVERLOADED_BOOLEAN:i===""&&(r[s]=!0);break}continue}EV.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,EV.setStyleProp)(e.style,r),r}function NV(e){return M0.possibleStandardNames[e]}});var DV=we(R0=>{"use strict";var dge=R0&&R0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R0,"__esModule",{value:!0});R0.default=IV;var F7=Hu(),fge=dge(V7()),A0=R7(),hge={cloneElement:F7.cloneElement,createElement:F7.createElement,isValidElement:F7.isValidElement};function IV(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",n=t.transform||A0.returnFirstArg,i=t.library||hge,l=i.cloneElement,s=i.createElement,c=i.isValidElement,u=e.length,m=0;m<u;m++){var p=e[m];if(o){var d=t.replace(p,m);if(c(d)){u>1&&(d=l(d,{key:d.key||m})),r.push(n(d,p,m));continue}}if(p.type==="text"){var f=!p.data.trim().length;if(f&&p.parent&&!(0,A0.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,m));continue}var h=p,g={};gge(h)?((0,A0.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,fge.default)(h.attribs,h.name));var b=void 0;switch(p.type){case"script":case"style":p.children[0]&&(g.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":p.name==="textarea"&&p.children[0]?g.defaultValue=p.children[0].data:p.children&&p.children.length&&(b=IV(p.children,t));break;default:continue}u>1&&(g.key=m),r.push(n(s(p.name,g,b),p,m))}return r.length===1?r[0]:r}function gge(e){return A0.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,A0.isCustomComponent)(e.name,e.attribs)}});var H7=we(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.Doctype=ir.CDATA=ir.Tag=ir.Style=ir.Script=ir.Comment=ir.Directive=ir.Text=ir.Root=ir.isTag=ir.ElementType=void 0;var Kn;(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"})(Kn=ir.ElementType||(ir.ElementType={}));function vge(e){return e.type===Kn.Tag||e.type===Kn.Script||e.type===Kn.Style}ir.isTag=vge;ir.Root=Kn.Root;ir.Text=Kn.Text;ir.Directive=Kn.Directive;ir.Comment=Kn.Comment;ir.Script=Kn.Script;ir.Style=Kn.Style;ir.Tag=Kn.Tag;ir.CDATA=Kn.CDATA;ir.Doctype=Kn.Doctype});var G7=we($e=>{"use strict";var Ou=$e&&$e.__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)}})(),z0=$e&&$e.__assign||function(){return z0=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},z0.apply(this,arguments)};Object.defineProperty($e,"__esModule",{value:!0});$e.cloneNode=$e.hasChildren=$e.isDocument=$e.isDirective=$e.isComment=$e.isText=$e.isCDATA=$e.isTag=$e.Element=$e.Document=$e.CDATA=$e.NodeWithChildren=$e.ProcessingInstruction=$e.Comment=$e.Text=$e.DataNode=$e.Node=void 0;var _n=H7(),j7=(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),U7(this,t)},e})();$e.Node=j7;var Yy=(function(e){Ou(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})(j7);$e.DataNode=Yy;var LV=(function(e){Ou(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Yy);$e.Text=LV;var MV=(function(e){Ou(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Yy);$e.Comment=MV;var AV=(function(e){Ou(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=_n.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Yy);$e.ProcessingInstruction=AV;var Qy=(function(e){Ou(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})(j7);$e.NodeWithChildren=Qy;var RV=(function(e){Ou(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Qy);$e.CDATA=RV;var zV=(function(e){Ou(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=_n.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Qy);$e.Document=zV;var VV=(function(e){Ou(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?_n.ElementType.Script:r==="style"?_n.ElementType.Style:_n.ElementType.Tag);var l=e.call(this,n)||this;return l.name=r,l.attribs=o,l.type=i,l}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(o){var 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})(Qy);$e.Element=VV;function FV(e){return(0,_n.isTag)(e)}$e.isTag=FV;function HV(e){return e.type===_n.ElementType.CDATA}$e.isCDATA=HV;function OV(e){return e.type===_n.ElementType.Text}$e.isText=OV;function jV(e){return e.type===_n.ElementType.Comment}$e.isComment=jV;function UV(e){return e.type===_n.ElementType.Directive}$e.isDirective=UV;function GV(e){return e.type===_n.ElementType.Root}$e.isDocument=GV;function bge(e){return Object.prototype.hasOwnProperty.call(e,"children")}$e.hasChildren=bge;function U7(e,t){t===void 0&&(t=!1);var r;if(OV(e))r=new LV(e.data);else if(jV(e))r=new MV(e.data);else if(FV(e)){var o=t?O7(e.children):[],n=new VV(e.name,z0({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=z0({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=z0({},e["x-attribsPrefix"])),r=n}else if(HV(e)){var o=t?O7(e.children):[],i=new RV(o);o.forEach(function(u){return u.parent=i}),r=i}else if(GV(e)){var o=t?O7(e.children):[],l=new zV(o);o.forEach(function(u){return u.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else if(UV(e)){var s=new AV(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}$e.cloneNode=U7;function O7(e){for(var t=e.map(function(o){return U7(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var qV=we(Ps=>{"use strict";var yge=Ps&&Ps.__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]})),_ge=Ps&&Ps.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yge(t,e,r)};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.DomHandler=void 0;var W7=H7(),ju=G7();_ge(G7(),Ps);var WV={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},$V=(function(){function e(t,r,o){this.dom=[],this.root=new ju.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=WV),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??WV,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new ju.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?W7.ElementType.Tag:void 0,n=new ju.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===W7.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new ju.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===W7.ElementType.Comment){this.lastNode.data+=t;return}var r=new ju.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new ju.Text(""),r=new ju.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 ju.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})();Ps.DomHandler=$V;Ps.default=$V});var q7=we(co=>{"use strict";var $7=co&&co.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(co,"__esModule",{value:!0});co.htmlToDOM=co.domToReact=co.attributesToProps=co.Text=co.ProcessingInstruction=co.Element=co.Comment=void 0;co.default=wge;var ZV=$7(dV());co.htmlToDOM=ZV.default;var xge=$7(V7());co.attributesToProps=xge.default;var KV=$7(DV());co.domToReact=KV.default;var Xy=qV();Object.defineProperty(co,"Comment",{enumerable:!0,get:function(){return Xy.Comment}});Object.defineProperty(co,"Element",{enumerable:!0,get:function(){return Xy.Element}});Object.defineProperty(co,"ProcessingInstruction",{enumerable:!0,get:function(){return Xy.ProcessingInstruction}});Object.defineProperty(co,"Text",{enumerable:!0,get:function(){return Xy.Text}});var kge={lowerCaseAttributeNames:!1};function wge(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,KV.default)((0,ZV.default)(e,t?.htmlparser2||kge),t):[]}});var Va=we((L7e,QV)=>{QV.exports=window.wp.dom});var v=we((M7e,XV)=>{XV.exports=window.ReactJSXRuntime});var j=we((V7e,tF)=>{tF.exports=window.wp.element});var D=we((H7e,rF)=>{rF.exports=window.wp.primitives});var R=we((LNe,oF)=>{oF.exports=window.wp.components});var Br=we((MNe,aF)=>{aF.exports=window.wp.blob});var X=we((ANe,nF)=>{nF.exports=window.wp.coreData});var lr=we((IIe,HF)=>{HF.exports=window.wp.url});var Oo=we((MIe,WF)=>{WF.exports=window.wp.htmlEntities});var _r=we(($Ie,nH)=>{nH.exports=window.wp.notices});var lH=we((YIe,iH)=>{iH.exports=window.wp.privateApis});var Ds=we((FDe,VH)=>{VH.exports=window.wp.keycodes});var Uf=we((GDe,OH)=>{OH.exports=window.wp.deprecated});var em=we((fLe,JH)=>{JH.exports=window.wp.richText});var $f=we((hMe,AO)=>{AO.exports=window.wp.a11y});var Yk=we((URe,fU)=>{fU.exports=window.wp.date});var lv=we((xze,EU)=>{EU.exports=window.wp.apiFetch});var $c=we((XVe,uW)=>{uW.exports=window.wp.hooks});var yv=we((_Oe,X5)=>{var H$={\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"},O$=Object.keys(H$).join("|"),Iye=new RegExp(O$,"g"),Dye=new RegExp(O$,"");function Lye(e){return H$[e]}var j$=function(e){return e.replace(Iye,Lye)},Mye=function(e){return!!e.match(Dye)};X5.exports=j$;X5.exports.has=Mye;X5.exports.remove=j$});var uK=we((OGe,cK)=>{cK.exports=window.wp.uploadMedia});var eL=we((YKe,hJ)=>{hJ.exports=window.wp.escapeHtml});var yae=we((Zot,bae)=>{bae.exports=window.wp.wordcount});var Ele=we((Olt,Ble)=>{Ble.exports=window.wp.patterns});var kse=we((qst,xse)=>{xse.exports=window.wp.autop});var Cse=we((Zst,wse)=>{wse.exports=window.wp.shortcode});var Que=we((Npt,Yue)=>{"use strict";Yue.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 l=i[n];if(!e(t[l],r[l]))return!1}return!0}return t!==t&&r!==r}});var Pfe=we((Xgt,Tfe)=>{Tfe.exports=window.wp.keyboardShortcuts});var r7e={};Z(r7e,{__experimentalGetCoreBlocks:()=>Rfe,__experimentalRegisterExperimentalCoreBlocks:()=>t7e,privateApis:()=>kz,registerCoreBlocks:()=>e7e});var Cl=a($(),1),Ife=a(fe(),1),Dfe=a(F(),1),Lfe=a(T(),1),Mfe=a(zu(),1),Ly=a(B(),1);function Fz(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=Fz(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function rhe(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Fz(e))&&(o&&(o+=" "),o+=t);return o}var w=rhe;var Z7=a(q7(),1),Il=a(q7(),1),YV=Z7.default.default||Z7.default;var JV=a(Va(),1),eF=a(v(),1),Cge=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:l,attribs:s,parent:c,children:u})=>{if(l==="tag"&&i){let m=(0,Il.attributesToProps)(s||{}),p=i;if(!c){let d={...m,...e,className:w(m.className,e.className),style:{...m.style||{},...e.style||{}}};return(0,eF.jsx)(p,{...d,children:(0,Il.domToReact)(u,r)})}}}},o=(0,JV.safeHTML)(t);return YV(o,r)},uo=Cge;var xE={};Z(xE,{init:()=>Bge,metadata:()=>Hx,name:()=>pF,settings:()=>dF});var _E=a(B(),1);var Jy=a(j(),1),Fa=(0,Jy.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,Jy.cloneElement)(e,{width:t,height:t,...r,ref:o}));var V0=a(D(),1),F0=a(v(),1),K7=(0,F0.jsxs)(V0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,F0.jsx)(V0.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z"}),(0,F0.jsx)(V0.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z"})]});var bp=a(D(),1),yp=a(v(),1),Y7=(0,yp.jsxs)(bp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,yp.jsx)(bp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z"}),(0,yp.jsx)(bp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z"}),(0,yp.jsx)(bp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z"}),(0,yp.jsx)(bp.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z"})]});var _p=a(D(),1),xp=a(v(),1),Q7=(0,xp.jsxs)(_p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,xp.jsx)(_p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z"}),(0,xp.jsx)(_p.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z"}),(0,xp.jsx)(_p.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z"}),(0,xp.jsx)(_p.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z"})]});var e2=a(D(),1),X7=a(v(),1),kp=(0,X7.jsx)(e2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,X7.jsx)(e2.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 t2=a(D(),1),J7=a(v(),1),e9=(0,J7.jsx)(t2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J7.jsx)(t2.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var r2=a(D(),1),t9=a(v(),1),r9=(0,t9.jsx)(r2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t9.jsx)(r2.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var o2=a(D(),1),o9=a(v(),1),a9=(0,o9.jsx)(o2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o9.jsx)(o2.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var a2=a(D(),1),n9=a(v(),1),i9=(0,n9.jsx)(a2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,n9.jsx)(a2.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var n2=a(D(),1),l9=a(v(),1),s9=(0,l9.jsx)(n2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,l9.jsx)(n2.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 i2=a(D(),1),c9=a(v(),1),Yn=(0,c9.jsx)(i2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,c9.jsx)(i2.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 l2=a(D(),1),u9=a(v(),1),m9=(0,u9.jsx)(l2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u9.jsx)(l2.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 s2=a(D(),1),p9=a(v(),1),H0=(0,p9.jsx)(s2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,p9.jsx)(s2.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 c2=a(D(),1),d9=a(v(),1),f9=(0,d9.jsx)(c2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,d9.jsx)(c2.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var u2=a(D(),1),h9=a(v(),1),g9=(0,h9.jsx)(u2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,h9.jsx)(u2.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 m2=a(D(),1),v9=a(v(),1),b9=(0,v9.jsx)(m2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,v9.jsx)(m2.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 p2=a(D(),1),y9=a(v(),1),O0=(0,y9.jsx)(p2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,y9.jsx)(p2.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 d2=a(D(),1),_9=a(v(),1),x9=(0,_9.jsx)(d2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_9.jsx)(d2.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 f2=a(D(),1),k9=a(v(),1),Uu=(0,k9.jsx)(f2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,k9.jsx)(f2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z"})});var h2=a(D(),1),w9=a(v(),1),j0=(0,w9.jsx)(h2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,w9.jsx)(h2.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var g2=a(D(),1),C9=a(v(),1),S9=(0,C9.jsx)(g2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,C9.jsx)(g2.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var v2=a(D(),1),T9=a(v(),1),P9=(0,T9.jsx)(v2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,T9.jsx)(v2.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var b2=a(D(),1),B9=a(v(),1),E9=(0,B9.jsx)(b2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,B9.jsx)(b2.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var y2=a(D(),1),N9=a(v(),1),U0=(0,N9.jsx)(y2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,N9.jsx)(y2.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 _2=a(D(),1),I9=a(v(),1),wp=(0,I9.jsx)(_2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,I9.jsx)(_2.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var x2=a(D(),1),D9=a(v(),1),G0=(0,D9.jsx)(x2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,D9.jsx)(x2.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});var k2=a(D(),1),L9=a(v(),1),M9=(0,L9.jsx)(k2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,L9.jsx)(k2.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 w2=a(D(),1),A9=a(v(),1),R9=(0,A9.jsx)(w2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,A9.jsx)(w2.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 C2=a(D(),1),z9=a(v(),1),W0=(0,z9.jsx)(C2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,z9.jsx)(C2.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})});var Cp=a(D(),1),Ef=a(v(),1),V9=(0,Ef.jsxs)(Cp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Ef.jsx)(Cp.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,Ef.jsx)(Cp.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15"}),(0,Ef.jsx)(Cp.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var S2=a(D(),1),F9=a(v(),1),H9=(0,F9.jsx)(S2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,F9.jsx)(S2.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 T2=a(D(),1),O9=a(v(),1),j9=(0,O9.jsx)(T2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,O9.jsx)(T2.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 P2=a(D(),1),U9=a(v(),1),G9=(0,U9.jsx)(P2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,U9.jsx)(P2.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 B2=a(D(),1),W9=a(v(),1),$0=(0,W9.jsx)(B2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,W9.jsx)(B2.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 E2=a(D(),1),$9=a(v(),1),q0=(0,$9.jsx)(E2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$9.jsx)(E2.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 N2=a(D(),1),q9=a(v(),1),Sp=(0,q9.jsx)(N2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,q9.jsx)(N2.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})});var I2=a(D(),1),Z9=a(v(),1),Tp=(0,Z9.jsx)(I2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Z9.jsx)(I2.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 D2=a(D(),1),K9=a(v(),1),Z0=(0,K9.jsx)(D2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,K9.jsx)(D2.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 L2=a(D(),1),Y9=a(v(),1),Q9=(0,Y9.jsx)(L2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,Y9.jsx)(L2.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 K0=a(D(),1),Y0=a(v(),1),X9=(0,Y0.jsxs)(K0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,Y0.jsx)(K0.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,Y0.jsx)(K0.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var M2=a(D(),1),J9=a(v(),1),Q0=(0,J9.jsx)(M2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,J9.jsx)(M2.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 A2=a(D(),1),eT=a(v(),1),X0=(0,eT.jsx)(A2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eT.jsx)(A2.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 R2=a(D(),1),tT=a(v(),1),rT=(0,tT.jsx)(R2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tT.jsx)(R2.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 z2=a(D(),1),oT=a(v(),1),aT=(0,oT.jsx)(z2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oT.jsx)(z2.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 V2=a(D(),1),nT=a(v(),1),iT=(0,nT.jsx)(V2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nT.jsx)(V2.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 F2=a(D(),1),lT=a(v(),1),sT=(0,lT.jsx)(F2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lT.jsx)(F2.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 H2=a(D(),1),cT=a(v(),1),uT=(0,cT.jsx)(H2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cT.jsx)(H2.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 O2=a(D(),1),mT=a(v(),1),J0=(0,mT.jsx)(O2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mT.jsx)(O2.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 j2=a(D(),1),pT=a(v(),1),e1=(0,pT.jsx)(j2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pT.jsx)(j2.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 U2=a(D(),1),dT=a(v(),1),t1=(0,dT.jsx)(U2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dT.jsx)(U2.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 G2=a(D(),1),fT=a(v(),1),Oi=(0,fT.jsx)(G2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fT.jsx)(G2.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 W2=a(D(),1),hT=a(v(),1),gT=(0,hT.jsx)(W2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hT.jsx)(W2.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 $2=a(D(),1),vT=a(v(),1),r1=(0,vT.jsx)($2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vT.jsx)($2.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 q2=a(D(),1),bT=a(v(),1),o1=(0,bT.jsx)(q2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,bT.jsx)(q2.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 Z2=a(D(),1),yT=a(v(),1),Pp=(0,yT.jsx)(Z2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yT.jsx)(Z2.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 K2=a(D(),1),_T=a(v(),1),a1=(0,_T.jsx)(K2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,_T.jsx)(K2.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 Y2=a(D(),1),xT=a(v(),1),Dl=(0,xT.jsx)(Y2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xT.jsx)(Y2.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 Q2=a(D(),1),kT=a(v(),1),Bp=(0,kT.jsx)(Q2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kT.jsx)(Q2.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 X2=a(D(),1),wT=a(v(),1),CT=(0,wT.jsx)(X2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wT.jsx)(X2.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 J2=a(D(),1),ST=a(v(),1),TT=(0,ST.jsx)(J2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ST.jsx)(J2.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})});var e_=a(D(),1),PT=a(v(),1),BT=(0,PT.jsx)(e_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PT.jsx)(e_.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 t_=a(D(),1),ET=a(v(),1),NT=(0,ET.jsx)(t_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ET.jsx)(t_.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 r_=a(D(),1),IT=a(v(),1),DT=(0,IT.jsx)(r_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IT.jsx)(r_.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})});var o_=a(D(),1),LT=a(v(),1),MT=(0,LT.jsx)(o_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LT.jsx)(o_.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 a_=a(D(),1),AT=a(v(),1),RT=(0,AT.jsx)(a_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AT.jsx)(a_.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 n_=a(D(),1),zT=a(v(),1),VT=(0,zT.jsx)(n_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zT.jsx)(n_.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var i_=a(D(),1),FT=a(v(),1),HT=(0,FT.jsx)(i_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,FT.jsx)(i_.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var l_=a(D(),1),OT=a(v(),1),jT=(0,OT.jsx)(l_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,OT.jsx)(l_.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 s_=a(D(),1),UT=a(v(),1),Gu=(0,UT.jsx)(s_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,UT.jsx)(s_.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});var c_=a(D(),1),GT=a(v(),1),WT=(0,GT.jsx)(c_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GT.jsx)(c_.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 u_=a(D(),1),$T=a(v(),1),Ep=(0,$T.jsx)(u_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$T.jsx)(u_.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 m_=a(D(),1),qT=a(v(),1),n1=(0,qT.jsx)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,qT.jsx)(m_.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});var p_=a(D(),1),ZT=a(v(),1),Qn=(0,ZT.jsx)(p_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZT.jsx)(p_.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var d_=a(D(),1),KT=a(v(),1),YT=(0,KT.jsx)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KT.jsx)(d_.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 f_=a(D(),1),QT=a(v(),1),Ll=(0,QT.jsx)(f_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QT.jsx)(f_.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 h_=a(D(),1),XT=a(v(),1),JT=(0,XT.jsx)(h_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XT.jsx)(h_.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 g_=a(D(),1),eP=a(v(),1),Np=(0,eP.jsx)(g_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eP.jsx)(g_.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 v_=a(D(),1),tP=a(v(),1),rP=(0,tP.jsx)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tP.jsx)(v_.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 b_=a(D(),1),oP=a(v(),1),aP=(0,oP.jsx)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,oP.jsx)(b_.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 y_=a(D(),1),nP=a(v(),1),iP=(0,nP.jsx)(y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nP.jsx)(y_.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var i1=a(D(),1),l1=a(v(),1),s1=(0,l1.jsxs)(i1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,l1.jsx)(i1.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l1.jsx)(i1.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 __=a(D(),1),lP=a(v(),1),sP=(0,lP.jsx)(__.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lP.jsx)(__.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var x_=a(D(),1),cP=a(v(),1),c1=(0,cP.jsx)(x_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cP.jsx)(x_.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var k_=a(D(),1),uP=a(v(),1),mP=(0,uP.jsx)(k_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uP.jsx)(k_.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var w_=a(D(),1),pP=a(v(),1),dP=(0,pP.jsx)(w_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,pP.jsx)(w_.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 C_=a(D(),1),fP=a(v(),1),Ip=(0,fP.jsx)(C_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fP.jsx)(C_.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var S_=a(D(),1),hP=a(v(),1),gP=(0,hP.jsx)(S_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hP.jsx)(S_.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var T_=a(D(),1),vP=a(v(),1),bP=(0,vP.jsx)(T_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vP.jsx)(T_.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 P_=a(D(),1),yP=a(v(),1),_P=(0,yP.jsx)(P_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yP.jsx)(P_.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 u1=a(D(),1),m1=a(v(),1),Mc=(0,m1.jsxs)(u1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,m1.jsx)(u1.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,m1.jsx)(u1.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 Nf=a(D(),1),If=a(v(),1),xP=(0,If.jsxs)(Nf.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,If.jsx)(Nf.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,If.jsx)(Nf.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,If.jsx)(Nf.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var B_=a(D(),1),kP=a(v(),1),wP=(0,kP.jsx)(B_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,kP.jsx)(B_.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});var E_=a(D(),1),CP=a(v(),1),Dp=(0,CP.jsx)(E_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CP.jsx)(E_.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var N_=a(D(),1),SP=a(v(),1),p1=(0,SP.jsx)(N_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SP.jsx)(N_.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 I_=a(D(),1),TP=a(v(),1),PP=(0,TP.jsx)(I_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,TP.jsx)(I_.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 D_=a(D(),1),BP=a(v(),1),Df=(0,BP.jsx)(D_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BP.jsx)(D_.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var L_=a(D(),1),EP=a(v(),1),NP=(0,EP.jsx)(L_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EP.jsx)(L_.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var M_=a(D(),1),IP=a(v(),1),DP=(0,IP.jsx)(M_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IP.jsx)(M_.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var A_=a(D(),1),LP=a(v(),1),MP=(0,LP.jsx)(A_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LP.jsx)(A_.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var R_=a(D(),1),AP=a(v(),1),Lp=(0,AP.jsx)(R_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AP.jsx)(R_.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 z_=a(D(),1),RP=a(v(),1),Lf=(0,RP.jsx)(z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,RP.jsx)(z_.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 V_=a(D(),1),zP=a(v(),1),d1=(0,zP.jsx)(V_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zP.jsx)(V_.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 F_=a(D(),1),VP=a(v(),1),FP=(0,VP.jsx)(F_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VP.jsx)(F_.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 H_=a(D(),1),HP=a(v(),1),OP=(0,HP.jsx)(H_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HP.jsx)(H_.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})});var O_=a(D(),1),jP=a(v(),1),UP=(0,jP.jsx)(O_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jP.jsx)(O_.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var f1=a(D(),1),h1=a(v(),1),g1=(0,h1.jsxs)(f1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,h1.jsx)(f1.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,h1.jsx)(f1.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 j_=a(D(),1),GP=a(v(),1),WP=(0,GP.jsx)(j_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GP.jsx)(j_.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 U_=a(D(),1),$P=a(v(),1),qP=(0,$P.jsx)(U_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$P.jsx)(U_.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 G_=a(D(),1),ZP=a(v(),1),v1=(0,ZP.jsx)(G_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZP.jsx)(G_.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 W_=a(D(),1),KP=a(v(),1),YP=(0,KP.jsx)(W_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,KP.jsx)(W_.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 $_=a(D(),1),QP=a(v(),1),XP=(0,QP.jsx)($_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,QP.jsx)($_.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 q_=a(D(),1),JP=a(v(),1),eB=(0,JP.jsx)(q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,JP.jsx)(q_.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var Z_=a(D(),1),tB=a(v(),1),rB=(0,tB.jsx)(Z_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,tB.jsx)(Z_.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var K_=a(D(),1),oB=a(v(),1),aB=(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:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var Y_=a(D(),1),nB=a(v(),1),iB=(0,nB.jsx)(Y_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,nB.jsx)(Y_.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var Q_=a(D(),1),lB=a(v(),1),b1=(0,lB.jsx)(Q_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,lB.jsx)(Q_.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var X_=a(D(),1),sB=a(v(),1),y1=(0,sB.jsx)(X_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sB.jsx)(X_.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 J_=a(D(),1),cB=a(v(),1),_1=(0,cB.jsx)(J_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,cB.jsx)(J_.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 ex=a(D(),1),uB=a(v(),1),x1=(0,uB.jsx)(ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,uB.jsx)(ex.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var tx=a(D(),1),mB=a(v(),1),pB=(0,mB.jsx)(tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mB.jsx)(tx.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 rx=a(D(),1),dB=a(v(),1),fB=(0,dB.jsx)(rx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dB.jsx)(rx.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 ox=a(D(),1),hB=a(v(),1),gB=(0,hB.jsx)(ox.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hB.jsx)(ox.Path,{d:"M7 11.5h10V13H7z"})});var ax=a(D(),1),vB=a(v(),1),bB=(0,vB.jsx)(ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,vB.jsx)(ax.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var nx=a(D(),1),yB=a(v(),1),_B=(0,yB.jsx)(nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,yB.jsx)(nx.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 ix=a(D(),1),xB=a(v(),1),kB=(0,xB.jsx)(ix.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xB.jsx)(ix.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 lx=a(D(),1),wB=a(v(),1),k1=(0,wB.jsx)(lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,wB.jsx)(lx.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})});var sx=a(D(),1),CB=a(v(),1),w1=(0,CB.jsx)(sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,CB.jsx)(sx.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var cx=a(D(),1),SB=a(v(),1),TB=(0,SB.jsx)(cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,SB.jsx)(cx.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var ux=a(D(),1),PB=a(v(),1),C1=(0,PB.jsx)(ux.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,PB.jsx)(ux.Path,{d:"M9 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 mx=a(D(),1),BB=a(v(),1),S1=(0,BB.jsx)(mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,BB.jsx)(mx.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 px=a(D(),1),EB=a(v(),1),NB=(0,EB.jsx)(px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,EB.jsx)(px.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 dx=a(D(),1),IB=a(v(),1),DB=(0,IB.jsx)(dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,IB.jsx)(dx.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});var fx=a(D(),1),LB=a(v(),1),MB=(0,LB.jsx)(fx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,LB.jsx)(fx.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var hx=a(D(),1),AB=a(v(),1),RB=(0,AB.jsx)(hx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,AB.jsx)(hx.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 gx=a(D(),1),zB=a(v(),1),T1=(0,zB.jsx)(gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,zB.jsx)(gx.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 vx=a(D(),1),VB=a(v(),1),FB=(0,VB.jsx)(vx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,VB.jsx)(vx.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 bx=a(D(),1),HB=a(v(),1),OB=(0,HB.jsx)(bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,HB.jsx)(bx.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 yx=a(D(),1),jB=a(v(),1),UB=(0,jB.jsx)(yx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,jB.jsx)(yx.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 _x=a(D(),1),GB=a(v(),1),WB=(0,GB.jsx)(_x.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,GB.jsx)(_x.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 xx=a(D(),1),$B=a(v(),1),qB=(0,$B.jsx)(xx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,$B.jsx)(xx.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 kx=a(D(),1),ZB=a(v(),1),KB=(0,ZB.jsx)(kx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ZB.jsx)(kx.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 P1=a(D(),1),B1=a(v(),1),E1=(0,B1.jsxs)(P1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,B1.jsx)(P1.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,B1.jsx)(P1.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 wx=a(D(),1),YB=a(v(),1),QB=(0,YB.jsx)(wx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,YB.jsx)(wx.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 Cx=a(D(),1),XB=a(v(),1),JB=(0,XB.jsx)(Cx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,XB.jsx)(Cx.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 Sx=a(D(),1),eE=a(v(),1),tE=(0,eE.jsx)(Sx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,eE.jsx)(Sx.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 Tx=a(D(),1),rE=a(v(),1),oE=(0,rE.jsx)(Tx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,rE.jsx)(Tx.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 Px=a(D(),1),aE=a(v(),1),nE=(0,aE.jsx)(Px.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,aE.jsx)(Px.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 Bx=a(D(),1),iE=a(v(),1),N1=(0,iE.jsx)(Bx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,iE.jsx)(Bx.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 I1=a(D(),1),D1=a(v(),1),lE=(0,D1.jsxs)(I1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,D1.jsx)(I1.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,D1.jsx)(I1.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 Ex=a(D(),1),sE=a(v(),1),cE=(0,sE.jsx)(Ex.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,sE.jsx)(Ex.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 L1=a(D(),1),M1=a(v(),1),uE=(0,M1.jsxs)(L1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,M1.jsx)(L1.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,M1.jsx)(L1.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 Nx=a(D(),1),mE=a(v(),1),A1=(0,mE.jsx)(Nx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,mE.jsx)(Nx.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});var Ix=a(D(),1),pE=a(v(),1),Ml=(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,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var Dx=a(D(),1),dE=a(v(),1),Ac=(0,dE.jsx)(Dx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,dE.jsx)(Dx.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var Lx=a(D(),1),fE=a(v(),1),R1=(0,fE.jsx)(Lx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,fE.jsx)(Lx.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 Mx=a(D(),1),hE=a(v(),1),Mf=(0,hE.jsx)(Mx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,hE.jsx)(Mx.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 Ax=a(D(),1),gE=a(v(),1),vE=(0,gE.jsx)(Ax.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,gE.jsx)(Ax.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 ua=a(T(),1),Xn=a(B(),1),So=a(R(),1),Af=a(F(),1),Vx=a($(),1);var Rx=a(F(),1),Mp=a(j(),1),Wu=a(Br(),1),bE=a(T(),1),iF=a(X(),1),lF=a(fe(),1);function zx(e,t,r){return(0,Rx.useSelect)(o=>o(iF.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function Bs(e={}){let t=(0,Mp.useRef)(e),r=(0,Mp.useRef)(!1),{getSettings:o}=(0,Rx.useSelect)(bE.store);(0,Mp.useLayoutEffect)(()=>{t.current=e}),(0,Mp.useEffect)(()=>{if(r.current||!t.current.url||!(0,Wu.isBlobURL)(t.current.url))return;let n=(0,Wu.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=o();u&&(r.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([m])=>{(0,Wu.isBlobURL)(m?.url)||((0,Wu.revokeBlobURL)(i),s(m),r.current=!1)},onError:m=>{(0,Wu.revokeBlobURL)(i),c(m),r.current=!1}}))},[o])}function z1(){return(0,Rx.useSelect)(t=>{let{getSettings:r}=t(bE.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function q(){return(0,lF.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var yr=a(v(),1),yE="core/accordion-item",Sge="core/accordion-heading",Tge={name:yE};function sF({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,Af.useRegistry)(),{getBlockOrder:u}=(0,Af.useSelect)(ua.store),m=(0,ua.useBlockProps)({role:"group"}),p=q(),{updateBlockAttributes:d,insertBlock:f}=(0,Af.useDispatch)(ua.store),g=(0,ua.useBlockEditingMode)()==="contentOnly",b=(0,ua.useInnerBlocksProps)(m,{template:[[yE]],defaultBlock:Tge,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,yr.jsxs)(yr.Fragment,{children:[s&&!g&&(0,yr.jsxs)(yr.Fragment,{children:[(0,yr.jsx)(ua.BlockControls,{children:(0,yr.jsx)(So.ToolbarGroup,{children:(0,yr.jsx)(ua.HeadingLevelDropdown,{value:o,options:n,onChange:x=>{let k=u(i),S=[];k.forEach(C=>{let E=u(C);S.push(...E)}),c.batch(()=>{l({headingLevel:x}),d(S,{level:x})})}})})}),(0,yr.jsx)(ua.BlockControls,{group:"other",children:(0,yr.jsx)(So.ToolbarButton,{onClick:()=>{let x=(0,Vx.createBlock)(yE,{},[(0,Vx.createBlock)(Sge,{level:o}),(0,Vx.createBlock)("core/accordion-panel",{})]);f(x,void 0,i)},children:(0,Xn.__)("Add item")})})]}),(0,yr.jsx)(ua.InspectorControls,{children:(0,yr.jsxs)(So.__experimentalToolsPanel,{label:(0,Xn.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,yr.jsx)(So.__experimentalToolsPanelItem,{label:(0,Xn.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,yr.jsx)(So.ToggleControl,{label:(0,Xn.__)("Auto-close"),onChange:x=>{l({autoclose:x})},checked:e,help:(0,Xn.__)("Automatically close accordions when a new one is opened.")})}),(0,yr.jsx)(So.__experimentalToolsPanelItem,{label:(0,Xn.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>l({showIcon:!0}),children:(0,yr.jsx)(So.ToggleControl,{label:(0,Xn.__)("Show icon"),onChange:x=>{l({showIcon:x,iconPosition:x?t:"right"})},checked:r,help:(0,Xn.__)("Display a plus icon next to the accordion header.")})}),r&&(0,yr.jsx)(So.__experimentalToolsPanelItem,{label:(0,Xn.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,yr.jsxs)(So.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,Xn.__)("Icon Position"),value:t,onChange:x=>{l({iconPosition:x})},children:[(0,yr.jsx)(So.__experimentalToggleGroupControlOption,{label:(0,Xn.__)("Left"),value:"left"}),(0,yr.jsx)(So.__experimentalToggleGroupControlOption,{label:(0,Xn.__)("Right"),value:"right"})]})})]})},"setting"),(0,yr.jsx)("div",{...b})]})}var Fx=a(T(),1),cF=a(v(),1);function uF(){let e=Fx.useBlockProps.save({role:"group"});return(0,cF.jsx)("div",{...Fx.useInnerBlocksProps.save(e)})}var Hx={$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,__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 mF=a($(),1);function I(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,mF.registerBlockType)({name:o,...t},r)}var{name:pF}=Hx,dF={icon:Q7,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,_E.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,_E.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:sF,save:uF},Bge=()=>I({name:pF,metadata:Hx,settings:dF});var kE={};Z(kE,{init:()=>Ige,metadata:()=>jx,name:()=>bF,settings:()=>yF});var V1=a(B(),1),$u=a(T(),1),fF=a(F(),1),Rf=a(R(),1);var Es=a(v(),1),Ege=[["core/accordion-heading"],["core/accordion-panel"]];function hF({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:n}=e,i=q(),{isSelected:l}=(0,fF.useSelect)(u=>o||n?{isSelected:!0}:{isSelected:u($u.store).hasSelectedInnerBlock(t,!0)},[t,o,n]),s=(0,$u.useBlockProps)({className:w({"is-open":n||l})}),c=(0,$u.useInnerBlocksProps)(s,{template:Ege,templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Es.jsxs)(Es.Fragment,{children:[(0,Es.jsx)($u.InspectorControls,{children:(0,Es.jsx)(Rf.__experimentalToolsPanel,{label:(0,V1.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,Es.jsx)(Rf.__experimentalToolsPanelItem,{label:(0,V1.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,Es.jsx)(Rf.ToggleControl,{label:(0,V1.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,V1.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,Es.jsx)("div",{...c})]})}var Ox=a(T(),1);var gF=a(v(),1);function vF({attributes:e}){let{openByDefault:t}=e,r=Ox.useBlockProps.save({className:w({"is-open":t})}),o=Ox.useInnerBlocksProps.save(r);return(0,gF.jsx)("div",{...o})}var jx={$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:bF}=jx,yF={icon:Y7,edit:hF,save:vF},Ige=()=>I({name:bF,metadata:jx,settings:yF});var wE={};Z(wE,{init:()=>Age,metadata:()=>Ux,name:()=>TF,settings:()=>PF});var _F=a(B(),1),xF=a(j(),1),ji=a(T(),1),kF=a(F(),1),Ap=a(v(),1);function wF({attributes:e,setAttributes:t,context:r}){let{title:o}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=r,s="h"+l,{__unstableMarkNextChangeAsNotPersistent:c}=(0,kF.useDispatch)(ji.store);(0,xF.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,m]=(0,ji.useSettings)("typography.fluid","layout"),p=(0,ji.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:m?.wideSize}}),d=(0,ji.useBlockProps)(),f=(0,ji.__experimentalGetSpacingClassesAndStyles)(e);return(0,Ap.jsx)(s,{...d,children:(0,Ap.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,Ap.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Ap.jsx)(ji.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:h=>t({title:h}),placeholder:(0,_F.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,Ap.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var qu=a(T(),1),Rp=a(v(),1);function CF({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),l=(0,qu.getTypographyClassesAndStyles)(e),s=qu.useBlockProps.save(),c=(0,qu.__experimentalGetSpacingClassesAndStyles)(e);return(0,Rp.jsx)(i,{...s,children:(0,Rp.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,Rp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Rp.jsx)(qu.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,Rp.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Ux={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-heading",title:"Accordion Heading",category:"design",description:"Displays a heading that toggles the accordion panel.",parent:["core/accordion-item"],usesContext:["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},selectors:{typography:{letterSpacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title",textDecoration:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},textdomain:"default"};var Al=a(T(),1),Ui=a(v(),1),Lge={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),l=Al.useBlockProps.save(),s=(0,Al.__experimentalGetSpacingClassesAndStyles)(e);return(0,Ui.jsx)(i,{...l,children:(0,Ui.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&o==="left"&&(0,Ui.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Ui.jsx)(Al.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&o==="right"&&(0,Ui.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},Mge={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),l=(0,Al.getTypographyClassesAndStyles)(e),s=Al.useBlockProps.save(),c=(0,Al.__experimentalGetSpacingClassesAndStyles)(e);return(0,Ui.jsx)(i,{...s,children:(0,Ui.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,Ui.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,Ui.jsx)(Al.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&o==="right"&&(0,Ui.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},SF=[Lge,Mge];var{name:TF}=Ux,PF={icon:K7,edit:wF,save:CF,deprecated:SF},Age=()=>I({name:TF,metadata:Ux,settings:PF});var CE={};Z(CE,{init:()=>zge,metadata:()=>Wx,name:()=>LF,settings:()=>MF});var zf=a(T(),1),BF=a(F(),1),EF=a(v(),1);function NF({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:n,templateLock:i}=e,l=t["core/accordion-open-by-default"],{hasSelection:s}=(0,BF.useSelect)(m=>{if(o||l)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:d,hasSelectedInnerBlock:f}=m(zf.store),h=p(r);return{hasSelection:d(h)||f(h,!0)}},[r,o,l]),c=(0,zf.useBlockProps)({"aria-hidden":!s,role:"region"}),u=(0,zf.useInnerBlocksProps)(c,{allowedBlocks:n,template:[["core/paragraph",{}]],templateLock:i});return(0,EF.jsx)("div",{...u})}var Gx=a(T(),1),IF=a(v(),1);function DF(){let e=Gx.useBlockProps.save({role:"region"}),t=Gx.useInnerBlocksProps.save(e);return(0,IF.jsx)("div",{...t})}var Wx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-panel",title:"Accordion Panel",category:"design",description:"Contains the hidden or revealed content beneath the heading.",parent:["core/accordion-item"],usesContext:["core/accordion-open-by-default"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,layout:{allowEditing:!1},visibility:!1,contentRole:!0,allowedBlocks:!0,lock:!1},attributes:{templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1],default:!1}},textdomain:"default",style:"wp-block-accordion-panel"};var{name:LF}=Wx,MF={icon:q0,edit:NF,save:DF},zge=()=>I({name:LF,metadata:Wx,settings:MF});var SE={};Z(SE,{init:()=>Fge,metadata:()=>$x,name:()=>VF,settings:()=>FF});var $x={$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 Ha=a(R(),1),Ho=a(B(),1),qx=a(T(),1),AF=a(zu(),1),RF=a(fe(),1);var Yr=a(v(),1);function zF({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:n,displayAsDropdown:i,type:l}=e,s=q(),{content:c,status:u,error:m}=(0,AF.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,RF.useDisabled)(),d=(0,qx.useBlockProps)({ref:p});return(0,Yr.jsxs)(Yr.Fragment,{children:[(0,Yr.jsx)(qx.InspectorControls,{children:(0,Yr.jsxs)(Ha.__experimentalToolsPanel,{label:(0,Ho.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:s,children:[(0,Yr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Ho.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,Yr.jsx)(Ha.ToggleControl,{label:(0,Ho.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,Yr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Ho.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,Yr.jsx)(Ha.ToggleControl,{label:(0,Ho.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,Yr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Ho.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,Yr.jsx)(Ha.ToggleControl,{label:(0,Ho.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,Yr.jsx)(Ha.__experimentalToolsPanelItem,{label:(0,Ho.__)("Group by"),isShownByDefault:!0,hasValue:()=>l!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,Yr.jsx)(Ha.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ho.__)("Group by"),options:[{label:(0,Ho.__)("Year"),value:"yearly"},{label:(0,Ho.__)("Month"),value:"monthly"},{label:(0,Ho.__)("Week"),value:"weekly"},{label:(0,Ho.__)("Day"),value:"daily"}],value:l,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,Yr.jsx)("div",{...d,children:(0,Yr.jsx)(Ha.Spinner,{})}),u==="error"&&(0,Yr.jsx)("div",{...d,children:(0,Yr.jsx)("p",{children:(0,Ho.sprintf)((0,Ho.__)("Error: %s"),m)})}),u==="success"&&(0,Yr.jsx)(uo,{wrapperProps:d,html:c})]})}var{name:VF}=$x,FF={icon:s9,example:{},edit:zF},Fge=()=>I({name:VF,metadata:$x,settings:FF});var PE={};Z(PE,{init:()=>Wge,metadata:()=>Zx,name:()=>rH,settings:()=>oH});var Zx={$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 zp=a(T(),1),xn=a(R(),1),Gi=a(B(),1),Yx=a(lr(),1);var F1=a(X(),1),Zu=a(B(),1),OF=a(F(),1);function jF(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 UF({commentId:e}){let[t]=(0,F1.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,F1.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=jF(n),s=z1();return{src:o?o[o.length-1]:s,minSize:i,maxSize:l,alt:r?(0,Zu.sprintf)((0,Zu.__)("%s Avatar"),r):(0,Zu.__)("Default Avatar")}}function GF({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,OF.useSelect)(u=>{let{getEditedEntityRecord:m,getUser:p}=u(F1.store);if(e)return{authorDetails:p(e)};let d=m("postType",r,t)?.author;return{authorDetails:d?p(d):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:l,maxSize:s}=jF(i),c=z1();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:o?(0,Zu.sprintf)((0,Zu.__)("%s Avatar"),o?.name):(0,Zu.__)("Default Avatar")}}var TE=a(B(),1),$F=a(R(),1),qF=a(F(),1),ZF=a(X(),1),Kx=a(j(),1),KF=a(fe(),1),YF=a(Oo(),1),QF=a(v(),1),Oge={who:"authors",per_page:100,_fields:"id,name",context:"view"};function XF({value:e,onChange:t}){let[r,o]=(0,Kx.useState)(""),{authors:n,isLoading:i}=(0,qF.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(ZF.store),m={...Oge};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,Kx.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,YF.decodeEntities)(s.name)})),[n]);return(0,QF.jsx)($F.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,TE.__)("User"),help:(0,TE.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:l,onFilterValueChange:(0,KF.debounce)(o,300),isLoading:i})}var At=a(v(),1),JF=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let n=q();return(0,At.jsx)(zp.InspectorControls,{children:(0,At.jsxs)(xn.__experimentalToolsPanel,{label:(0,Gi.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,At.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Gi.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,At.jsx)(xn.RangeControl,{__next40pxDefaultSize:!0,label:(0,Gi.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,At.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Gi.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,At.jsx)(xn.ToggleControl,{label:(0,Gi.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,At.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Gi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,At.jsx)(xn.ToggleControl,{label:(0,Gi.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,At.jsx)(xn.__experimentalToolsPanelItem,{label:(0,Gi.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,At.jsx)(XF,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},jge=({children:e,isLink:t})=>t?(0,At.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,eH=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:n})=>{let i=(0,zp.__experimentalUseBorderProps)(t),l=(0,Yx.addQueryArgs)((0,Yx.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,At.jsx)("div",{...o,children:(0,At.jsx)(jge,{isLink:t.isLink,children:(0,At.jsx)(xn.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,m)=>{e({size:parseInt(t.size+(m.height||m.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Gi.isRTL)(),bottom:!0,left:(0,Gi.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,At.jsx)("img",{src:l,alt:r.alt,className:w("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},Uge=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:n}=t,i=(0,zp.useBlockProps)(),l=UF({commentId:n});return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(JF,{avatar:l,setAttributes:r,attributes:e,selectUser:!1}),(0,At.jsx)(eH,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:r})]})},Gge=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:n,postType:i}=t,l=GF({userId:e?.userId,postId:n,postType:i}),s=(0,zp.useBlockProps)();return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(JF,{selectUser:!0,attributes:e,avatar:l,setAttributes:r}),(0,At.jsx)(eH,{attributes:e,avatar:l,blockProps:s,isSelected:o,setAttributes:r})]})};function tH(e){return e?.context?.commentId||e?.context?.commentId===null?(0,At.jsx)(Uge,{...e}):(0,At.jsx)(Gge,{...e})}var{name:rH}=Zx,oH={icon:W0,edit:tH,example:{}},Wge=()=>I({name:rH,metadata:Zx,settings:oH});var AE={};Z(AE,{init:()=>r0e,metadata:()=>Jx,name:()=>EH,settings:()=>ek});var ME=a(B(),1);var BH=a($(),1);var BE=a(T(),1),H1=a(v(),1),aH=[{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,H1.jsxs)("figure",{children:[(0,H1.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!BE.RichText.isEmpty(r)&&(0,H1.jsx)(BE.RichText.Content,{tagName:"figcaption",value:r})]})}}];var yH=a(Br(),1),Jn=a(R(),1),kn=a(T(),1),Oa=a(B(),1),_H=a(F(),1);var xH=a(_r(),1),kH=a(j(),1);function Vf(e,t){var r=0,o,n;t=t||{};function i(){var l=o,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==o&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},o?(o.prev=l,l.next=o):n=l,r===t.maxSize?(n=n.prev,n.next=null):r++,o=l,l.val}return i.clear=function(){o=null,n=null,r=0},i}var uH=a(R(),1),NE=a(j(),1),Is=a($(),1),mH=a(lr(),1);var Ns={$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 O1=[{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"}],EE="wp-embed";var sH=a(lH(),1),{lock:cH,unlock:W}=(0,sH.__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 Qx=a(v(),1),{name:Ff}=Ns,{kebabCase:qge}=W(uH.privateApis),pH=e=>(0,Is.getBlockVariations)(Ff)?.find(({name:t})=>t===e),IE=(e,t=[])=>t.some(r=>e.match(r)),Hf=e=>(0,Is.getBlockVariations)(Ff)?.find(({patterns:t})=>IE(e,t));function j1(e){if(!e||(0,mH.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var dH=e=>e&&e.includes('class="wp-embedded-content"'),fH=e=>{let t=e.url||e.thumbnail_url,r=(0,Qx.jsx)("p",{children:(0,Qx.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,NE.renderToString)(r)},Yu=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:n,providerNameSlug:i,type:l,...s}=o;if(!n||!(0,Is.getBlockType)(Ff))return;let c=Hf(n),u=i==="wordpress"||l===EE;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,Is.createBlock)(Ff,{url:n,...s,...c.attributes});let p=(0,Is.getBlockVariations)(Ff)?.find(({name:d})=>d==="wordpress");if(!(!p||!r||!dH(r.html)||u))return(0,Is.createBlock)(Ff,{url:n,...p.attributes,...t})},Zge=e=>e?O1.some(({className:t})=>e.includes(t)):!1,Ku=e=>{if(!e)return e;let t=O1.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 Kge(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function DE(e,t,r=!0){if(!r||Kge(e))return Ku(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 l=0;l<O1.length;l++){let s=O1[l];if(i>=s.ratio)return i-s.ratio>.1?Ku(t):w(Ku(t),s.className,"wp-has-aspect-ratio")}}return t}function hH(e,t){t((0,Is.createBlock)("core/paragraph",{content:(0,NE.renderToString)((0,Qx.jsx)("a",{href:e,children:e}))}))}var Yge=Vf((e,t,r,o,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=qge((c||t).toLowerCase());return dH(s)&&(l=EE),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),Zge(r)||(i.className=DE(s,r,o&&n)),i}),gH=(e,t,r,o)=>{let{allowResponsive:n,className:i}=e;return{...e,...Yge(t,r,i,o,n)}};var Vp=a(j(),1),vH=a(fe(),1),U1=a(B(),1),Rc=a(T(),1),bH=a(R(),1);var Xx=a($(),1),Qu=a(v(),1);function ma({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n,placeholder:i=(0,U1.__)("Add caption"),label:l=(0,U1.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:m,tagName:p="figcaption",addLabel:d=(0,U1.__)("Add caption"),removeLabel:f=(0,U1.__)("Remove caption"),icon:h=x9,...g}){let b=t[e],y=(0,vH.usePrevious)(b),_=Rc.RichText.isEmpty(b),x=Rc.RichText.isEmpty(y),[k,S]=(0,Vp.useState)(!_);(0,Vp.useEffect)(()=>{!_&&x&&S(!0)},[_,x]),(0,Vp.useEffect)(()=>{!o&&_&&S(!1)},[o,_]);let C=(0,Vp.useCallback)(E=>{E&&_&&E.focus()},[_]);return(0,Qu.jsxs)(Qu.Fragment,{children:[s&&(0,Qu.jsx)(Rc.BlockControls,{group:"block",children:(0,Qu.jsx)(bH.ToolbarButton,{onClick:()=>{S(!k),k&&b&&r({[e]:void 0})},icon:h,isPressed:k,label:k?f:d})}),k&&(!Rc.RichText.isEmpty(b)||o)&&(0,Qu.jsx)(Rc.RichText,{identifier:e,tagName:p,className:w(u,c?"":(0,Rc.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":l,placeholder:i,value:b,onChange:E=>r({[e]:E}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,Xx.createBlock)((0,Xx.getDefaultBlockName)())),readOnly:m,...g})]})}var Er=a(v(),1),LE=["audio"];function Qge({attributes:e,className:t,setAttributes:r,onReplace:o,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:m}=e,[p,d]=(0,kH.useState)(e.blob),h=(0,kn.useBlockEditingMode)()==="default";Bs({url:p,allowedTypes:LE,onChange:k,onError:_});function g(P){return N=>{r({[P]:N})}}function b(P){if(P!==m){let N=Yu({attributes:{url:P}});if(N!==void 0&&o){o(N);return}r({src:P,id:void 0,blob:void 0}),d()}}let{createErrorNotice:y}=(0,_H.useDispatch)(xH.store);function _(P){y(P,{type:"snackbar"})}function x(P){return P?(0,Oa.__)("Autoplay may cause usability issues for some users."):null}function k(P){if(!P||!P.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,yH.isBlobURL)(P.url)){d(P.url);return}r({blob:void 0,src:P.url,id:P.id,caption:P.caption}),d()}let S=w(t,{"is-transient":!!p}),C=(0,kn.useBlockProps)({className:S}),E=q();return!m&&!p?(0,Er.jsx)("div",{...C,children:(0,Er.jsx)(kn.MediaPlaceholder,{icon:(0,Er.jsx)(kn.BlockIcon,{icon:Yn}),onSelect:k,onSelectURL:b,accept:"audio/*",allowedTypes:LE,value:e,onError:_})}):(0,Er.jsxs)(Er.Fragment,{children:[n&&(0,Er.jsx)(kn.BlockControls,{group:"other",children:(0,Er.jsx)(kn.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:LE,accept:"audio/*",onSelect:k,onSelectURL:b,onError:_,onReset:()=>k(void 0),variant:"toolbar"})}),(0,Er.jsx)(kn.InspectorControls,{children:(0,Er.jsxs)(Jn.__experimentalToolsPanel,{label:(0,Oa.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:E,children:[(0,Er.jsx)(Jn.__experimentalToolsPanelItem,{label:(0,Oa.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({autoplay:!1}),children:(0,Er.jsx)(Jn.ToggleControl,{label:(0,Oa.__)("Autoplay"),onChange:g("autoplay"),checked:!!s,help:x})}),(0,Er.jsx)(Jn.__experimentalToolsPanelItem,{label:(0,Oa.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Er.jsx)(Jn.ToggleControl,{label:(0,Oa.__)("Loop"),onChange:g("loop"),checked:!!c})}),(0,Er.jsx)(Jn.__experimentalToolsPanelItem,{label:(0,Oa.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Er.jsx)(Jn.SelectControl,{__next40pxDefaultSize:!0,label:(0,Oa._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:P=>r({preload:P||void 0}),options:[{value:"",label:(0,Oa.__)("Browser default")},{value:"auto",label:(0,Oa.__)("Auto")},{value:"metadata",label:(0,Oa.__)("Metadata")},{value:"none",label:(0,Oa._x)("None","Preload value")}]})})]})}),(0,Er.jsxs)("figure",{...C,children:[(0,Er.jsx)("audio",{controls:"controls",inert:n?void 0:"true",src:m??p}),!!p&&(0,Er.jsx)(Jn.Spinner,{}),(0,Er.jsx)(ma,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,Oa.__)("Audio caption text"),showToolbarButton:n&&h})]})]})}var wH=Qge;var Jx={$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 Fp=a(T(),1),G1=a(v(),1);function CH({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return i&&(0,G1.jsxs)("figure",{...Fp.useBlockProps.save(),children:[(0,G1.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!Fp.RichText.isEmpty(r)&&(0,G1.jsx)(Fp.RichText.Content,{tagName:"figcaption",value:r,className:(0,Fp.__experimentalGetElementClassName)("caption")})]})}var SH=a(Br(),1),TH=a($(),1),Jge={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,TH.createBlock)("core/audio",{blob:(0,SH.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}}}]},PH=Jge;var{fieldsKey:e0e,formKey:t0e}=W(BH.privateApis),{name:EH}=Jx,ek={icon:Yn,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:PH,deprecated:aH,edit:wH,save:CH};window.__experimentalContentOnlyInspectorFields&&(ek[e0e]=[{id:"audio",label:(0,ME.__)("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,ME.__)("Caption"),type:"text",Edit:"rich-text"}],ek[t0e]={fields:["audio","caption"]});var r0e=()=>I({name:EH,metadata:Jx,settings:ek});var RE={};Z(RE,{init:()=>a0e,metadata:()=>tk,name:()=>MH,settings:()=>AH});var tk={$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 Fr=a(B(),1),W1=a(T(),1),jo=a(R(),1),NH=a(F(),1),ok=a(X(),1),zc=a(j(),1),IH=a(zu(),1),DH=a(fe(),1);var wt=a(v(),1),rk="/";function LH({attributes:e,setAttributes:t,name:r,context:{postId:o,postType:n,templateSlug:i}}){let{separator:l,showHomeItem:s,showCurrentItem:c,prefersTaxonomy:u,showOnHomePage:m}=e,{post:p,isPostTypeHierarchical:d,postTypeHasTaxonomies:f,hasTermsAssigned:h,isLoading:g}=(0,NH.useSelect)(L=>{if(!n)return{};let U=L(ok.store).getEntityRecord("postType",n,o),H=L(ok.store).getPostType(n),G=H&&H.taxonomies.length,Y;return G&&(Y=L(ok.store).getTaxonomies({type:n,per_page:-1})),{post:U,isPostTypeHierarchical:H?.hierarchical,postTypeHasTaxonomies:G,hasTermsAssigned:U&&(Y||[]).filter(({visibility:O})=>O?.publicly_queryable).some(O=>!!U[O.rest_base]?.length),isLoading:o&&!U||!H||G&&!Y}},[n,o]),[b,y]=(0,zc.useState)(0);(0,zc.useEffect)(()=>{y(L=>L+1)},[p]);let _=q(),{content:x,status:k,error:S}=(0,IH.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:b}}),C=(0,zc.useRef)("");(0,zc.useEffect)(()=>{k==="success"&&(C.current=x)},[x,k]);let[E,P]=(0,zc.useState)(!1);(0,zc.useEffect)(()=>{if(k!=="loading")return;let L=setTimeout(()=>{P(!0)},400);return()=>{clearTimeout(L),P(!1)}},[k]);let N=(0,DH.useDisabled)(),z=(0,W1.useBlockProps)({ref:N});if(g)return(0,wt.jsx)("div",{...z,children:(0,wt.jsx)(jo.Spinner,{})});let V;!d&&!p?.parent?V=!0:f?V=u:V=!1;let A=null,M=!o||!n||i&&!n||!V&&!d||V&&!h;if(M){let L=[];s&&L.push((0,Fr.__)("Home")),i&&!o?L.push((0,Fr.__)("Page")):V?L.push((0,Fr.__)("Category")):L.push((0,Fr.__)("Ancestor"),(0,Fr.__)("Parent")),A=(0,wt.jsx)("nav",{...z,style:{"--separator":`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...z.style},children:(0,wt.jsxs)("ol",{children:[L.map((U,H)=>(0,wt.jsx)("li",{children:(0,wt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${H}`,children:U})},H)),c&&(0,wt.jsx)("li",{children:(0,wt.jsx)("span",{"aria-current":"page",children:(0,Fr.__)("Current")})})]})})}return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(W1.InspectorControls,{children:(0,wt.jsxs)(jo.__experimentalToolsPanel,{label:(0,Fr.__)("Settings"),resetAll:()=>{t({separator:rk,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,wt.jsx)(jo.__experimentalToolsPanelItem,{label:(0,Fr.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showHomeItem:!0}),children:(0,wt.jsx)(jo.ToggleControl,{label:(0,Fr.__)("Show home breadcrumb"),onChange:L=>t({showHomeItem:L}),checked:s})}),(0,wt.jsx)(jo.__experimentalToolsPanelItem,{label:(0,Fr.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,wt.jsx)(jo.ToggleControl,{label:(0,Fr.__)("Show current breadcrumb"),onChange:L=>t({showCurrentItem:L}),checked:c})}),(0,wt.jsx)(jo.__experimentalToolsPanelItem,{label:(0,Fr.__)("Separator"),isShownByDefault:!0,hasValue:()=>l!==rk,onDeselect:()=>t({separator:rk}),children:(0,wt.jsx)(jo.TextControl,{autoComplete:"off",label:(0,Fr.__)("Separator"),value:l,onChange:L=>t({separator:L}),onBlur:()=>{l||t({separator:rk})}})})]})}),(0,wt.jsxs)(W1.InspectorControls,{group:"advanced",children:[(0,wt.jsx)(jo.CheckboxControl,{label:(0,Fr.__)("Show on homepage"),checked:m,onChange:L=>t({showOnHomePage:L}),help:(0,Fr.__)("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,wt.jsx)(jo.CheckboxControl,{label:(0,Fr.__)("Prefer taxonomy terms"),checked:u,onChange:L=>t({prefersTaxonomy:L}),help:(0,Fr.__)("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.")})]}),k==="loading"&&!M&&(C.current?(0,wt.jsx)(uo,{wrapperProps:{...z,style:{...z.style,opacity:E?.3:1}},html:C.current}):(0,wt.jsx)("div",{...z,children:(0,wt.jsx)(jo.Spinner,{})})),k==="error"&&(0,wt.jsx)("div",{...z,children:(0,wt.jsx)("p",{children:(0,Fr.sprintf)((0,Fr.__)("Error: %s"),S)})}),M&&A,!M&&k==="success"&&(0,wt.jsx)(uo,{wrapperProps:z,html:x})]})}var{name:MH}=tk,AH={icon:f9,example:{},edit:LH},a0e=()=>I({name:MH,metadata:tk,settings:AH});var OE={};Z(OE,{init:()=>x0e,metadata:()=>lk,name:()=>YH,settings:()=>ck});var sk=a(B(),1);var KH=a($(),1);var pe=a(T(),1),Rl=a(fe(),1);var RH=a(T(),1);var{cleanEmptyObject:n0e}=W(RH.privateApis);function Ut(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:n0e({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function he(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Rt=a(v(),1),Wi=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},Of=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 i0e(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:w(r.className,`align${e.align}`)}}var VE=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}},zE=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 VE(o)},Vc={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"}},l0e={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:l,style:s,text:c,title:u,url:m,width:p}=e,d=r||"a",f=d==="button",h=o||"button",g=(0,pe.__experimentalGetBorderClassesAndStyles)(e),b=(0,pe.__experimentalGetColorClassesAndStyles)(e),y=(0,pe.__experimentalGetSpacingClassesAndStyles)(e),_=(0,pe.__experimentalGetShadowClassesAndStyles)(e),x=(0,pe.getTypographyClassesAndStyles)(e),k=w("wp-block-button__link",b.className,g.className,x.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,pe.__experimentalGetElementClassName)("button")),S={...g.style,...b.style,...y.style,..._.style,...x.style,writingMode:void 0},C=w(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:C}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:d,type:f?h:null,className:k,href:f?null:m,title:u,style:S,value:c,target:f?null:i,rel:f?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:Wi},s0e={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:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",g=o||"button",b=(0,pe.__experimentalGetBorderClassesAndStyles)(e),y=(0,pe.__experimentalGetColorClassesAndStyles)(e),_=(0,pe.__experimentalGetSpacingClassesAndStyles)(e),x=(0,pe.__experimentalGetShadowClassesAndStyles)(e),k=(0,pe.getTypographyClassesAndStyles)(e),S=w("wp-block-button__link",y.className,b.className,k.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,pe.__experimentalGetElementClassName)("button")),C={...b.style,...y.style,..._.style,...x.style,...k.style,writingMode:void 0},E=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:E}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:f,type:h?g:null,className:S,href:h?null:p,title:m,style:C,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return!!e.textAlign||typeof e.width=="number"},migrate:(0,Rl.compose)(Wi,he)},c0e={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:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=r||"a",h=f==="button",g=o||"button",b=(0,pe.__experimentalGetBorderClassesAndStyles)(e),y=(0,pe.__experimentalGetColorClassesAndStyles)(e),_=(0,pe.__experimentalGetSpacingClassesAndStyles)(e),x=(0,pe.__experimentalGetShadowClassesAndStyles)(e),k=w("wp-block-button__link",y.className,b.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,pe.__experimentalGetElementClassName)("button")),S={...b.style,...y.style,..._.style,...x.style},C=w(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:C}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:f,type:h?g:null,className:k,href:h?null:p,title:m,style:S,value:u,target:h?null:l,rel:h?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:Wi},u0e={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:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,pe.__experimentalGetBorderClassesAndStyles)(e),p=(0,pe.__experimentalGetColorClassesAndStyles)(e),d=(0,pe.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:g}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:n})})}},m0e={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:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,pe.__experimentalGetBorderClassesAndStyles)(e),p=(0,pe.__experimentalGetColorClassesAndStyles)(e),d=(0,pe.__experimentalGetSpacingClassesAndStyles)(e),f=w("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),h={...m.style,...p.style,...d.style},g=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:g}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:h,value:l,target:o,rel:n})})},migrate:(0,Rl.compose)(Wi,Ut),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},p0e=[l0e,s0e,c0e,u0e,m0e,{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:{...Vc,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:l,title:s,url:c,width:u}=e;if(!l)return null;let m=i?.border?.radius,p=(0,pe.__experimentalGetColorClassesAndStyles)(e),d=w("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:m||void 0,...p.style},h=w(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":r||i?.typography?.fontSize});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:h}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:o,rel:n})})},migrate:(0,Rl.compose)(Wi,Ut,Of)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Vc,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:l,url:s,width:c}=e,u=(0,pe.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:d}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:o,rel:n})})},migrate:(0,Rl.compose)(Wi,Ut,Of)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Vc,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:l,url:s,width:c}=e,u=(0,pe.__experimentalGetColorClassesAndStyles)(e),m=w("wp-block-button__link",u.className,{"no-border-radius":r===0}),p={borderRadius:r?r+"px":void 0,...u.style},d=w(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,Rt.jsx)("div",{...pe.useBlockProps.save({className:d}),children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:o,rel:n})})},migrate:(0,Rl.compose)(Wi,Ut,Of)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Vc,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:l}=e,s=w("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:r,rel:o})},migrate:(0,Rl.compose)(Wi,Of)},{supports:{align:!0,alignWide:!1},attributes:{...Vc,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,Rl.compose)(Wi,Of,VE,i0e),save({attributes:e}){let{backgroundColor:t,borderRadius:r,customBackgroundColor:o,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:m,title:p,url:d}=e,f=(0,pe.getColorClassName)("color",m),h=!i&&(0,pe.getColorClassName)("background-color",t),g=(0,pe.__experimentalGetGradientClass)(s),b=w("wp-block-button__link",{"has-text-color":m||n,[f]:f,"has-background":t||o||i||s,[h]:h,"no-border-radius":r===0,[g]:g}),y={background:i||void 0,backgroundColor:h||i||s?void 0:o,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Rt.jsx)("div",{children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:b,href:d,title:p,style:y,value:u,target:l,rel:c})})}},{attributes:{...Vc,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()),Of(VE({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,customTextColor:o,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,m=(0,pe.getColorClassName)("color",s),p=(0,pe.getColorClassName)("background-color",t),d=w("wp-block-button__link",{"has-text-color":s||o,[m]:m,"has-background":t||r,[p]:p}),f={backgroundColor:p?void 0:r,color:m?void 0:o};return(0,Rt.jsx)("div",{children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...Vc,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,Rl.compose)(Wi,zE),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,pe.getColorClassName)("color",i),u=(0,pe.getColorClassName)("background-color",n),m=w("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),p={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,Rt.jsx)("div",{children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:m,href:t,title:o,style:p,value:r})})}},{attributes:{...Vc,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:l}=e,s={backgroundColor:i,color:l};return(0,Rt.jsx)("div",{className:`align${n}`,children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:s,value:r})})},migrate:(0,Rl.compose)(Wi,zE)},{attributes:{...Vc,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:l}=e;return(0,Rt.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Rt.jsx)(pe.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:r})})},migrate:(0,Rl.compose)(Wi,zE)}],zH=p0e;var $i=a(B(),1),Uo=a(j(),1),Ju=a(R(),1),nt=a(T(),1),Xu=a(Ds(),1);var Fc=a($(),1),Hp=a(fe(),1),q1=a(F(),1);var ak="noopener",nk="_blank",jf="nofollow";var FH=a(lr(),1);function HH({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let n,i=e;if(r)n=nk,i=i?.includes(ak)?i:i+` ${ak}`;else{let l=new RegExp(`\\b${ak}\\s*`,"g");i=i?.replace(l,"").trim()}if(o)i=i?.includes(jf)?i:(i+` ${jf}`).trim();else{let l=new RegExp(`\\b${jf}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,FH.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function $1(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var jH=a(fe(),1),ik=a(j(),1),UH=a(Uf(),1),GH=a(F(),1),WH=a(T(),1);function vt(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,GH.useDispatch)(WH.store),l=(0,jH.useEvent)(()=>{(0,UH.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),o(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,ik.useRef)();(0,ik.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}function FE(e){return typeof e=="string"&&e.endsWith("%")}function $H(e){if(!e)return{};if(FE(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 pa=a(v(),1),{HTMLElementControl:d0e}=W(nt.privateApis),{subscribeDelegatedListener:f0e}=W(Hp.privateApis),h0e=[...nt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,$i.__)("Mark as nofollow")}];function g0e(e){let{replaceBlocks:t,selectionChange:r}=(0,q1.useDispatch)(nt.store),{getBlock:o,getBlockRootClientId:n,getBlockIndex:i}=(0,q1.useSelect)(nt.store),l=(0,Uo.useRef)(e);return l.current=e,(0,Hp.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==Xu.ENTER)return;let{content:m,clientId:p}=l.current;if(m.length)return;u.preventDefault();let d=o(n(p)),f=i(p),h=(0,Fc.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,f)}),g=(0,Fc.createBlock)((0,Fc.getDefaultBlockName)()),b=d.innerBlocks.slice(f+1),y=b.length?[(0,Fc.cloneBlock)({...d,innerBlocks:b})]:[];t(d.clientId,[h,g,...y],1),r(g.clientId)}return f0e(s,"keydown",c,!0)},[])}function v0e(e){let{attributes:t,setAttributes:r,className:o,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:m,placeholder:p,rel:d,style:f,text:h,url:g,metadata:b}=t,y=f?.dimensions?.width;vt(e);let _=u||"a";function x(Se){Xu.isKeyboardEvent.primary(Se,"k")?ee(Se):Xu.isKeyboardEvent.primaryShift(Se,"k")&&(ve(),A.current?.focus())}let[k,S]=(0,Uo.useState)(null),C=(0,nt.__experimentalUseBorderProps)(t),E=(0,nt.__experimentalUseColorProps)(t),P=(0,nt.__experimentalGetSpacingClassesAndStyles)(t),N=(0,nt.__experimentalGetShadowClassesAndStyles)(t),z=(0,nt.__experimentalGetDimensionsClassesAndStyles)(t),V=(0,Uo.useRef)(),A=(0,Uo.useRef)(),M=(0,nt.useBlockProps)({ref:(0,Hp.useMergeRefs)([S,V]),onKeyDown:x}),L=(0,nt.useBlockEditingMode)(),[U,H]=(0,Uo.useState)(!1),G=!!g,Y=m===nk,O=!!d?.includes(jf),te=_==="a",{createPageEntity:se,userCanCreatePages:Q,lockUrlControls:ce=!1}=(0,q1.useSelect)(Se=>{if(!n)return{};let Oe=Se(nt.store).getSettings(),K=(0,Fc.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:Oe.__experimentalCreatePageEntity,userCanCreatePages:Oe.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!K?.canUserEditValue?.({select:Se,context:c,args:b?.bindings?.url?.args})}},[c,n,b?.bindings?.url]);async function Ee(Se){let Oe=await se({title:Se,status:"draft"});return{id:Oe.id,type:Oe.type,title:Oe.title.rendered,url:Oe.link,kind:"post-type"}}function le(Se){return(0,Uo.createInterpolateElement)((0,$i.sprintf)((0,$i.__)("Create page: <mark>%s</mark>"),Se),{mark:(0,pa.jsx)("mark",{})})}function ee(Se){Se.preventDefault(),H(!0)}function ve(){r({url:void 0,linkTarget:void 0,rel:void 0}),H(!1)}(0,Uo.useEffect)(()=>{n||H(!1)},[n]);let Ne=(0,Uo.useMemo)(()=>({url:g,opensInNewTab:Y,nofollow:O}),[g,Y,O]),Re=g0e({content:h,clientId:s}),Be=(0,Hp.useMergeRefs)([Re,A]),[Ve,oe,J]=(0,nt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),re=(0,Uo.useMemo)(()=>J?[...J?.custom??[],...J?.theme??[],...J?.default??[]]:[],[J]),Me=(0,nt.getTypographyClassesAndStyles)(t,{typography:{fluid:Ve},layout:{wideSize:oe?.wideSize}}),mt=(0,Uo.useMemo)(()=>{if(!y)return;let Se="var:preset|dimension|";if(y.startsWith(Se)){let Oe=y.slice(Se.length);return re?.find(ne=>ne.slug===Oe)?.size??y}return y},[y,re]),jt=L==="default"||te&&!ce,ae=w(M.className,$H(mt)),Ue=(0,Uo.useMemo)(()=>y?FE(mt)?{"--wp--block-button--width":parseFloat(mt)}:z.style:{},[y,mt,z.style]);return(0,pa.jsxs)(pa.Fragment,{children:[(0,pa.jsx)("div",{...M,className:ae,style:{...M.style,...Ue},children:(0,pa.jsx)(nt.RichText,{ref:Be,"aria-label":(0,$i.__)("Button text"),placeholder:p||(0,$i.__)("Add text\u2026"),value:h,onChange:Se=>r({text:$1(Se)}),withoutInteractiveFormatting:!0,className:w(o,"wp-block-button__link",E.className,C.className,Me.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":M.style.fontSize},(0,nt.__experimentalGetElementClassName)("button")),style:{...C.style,...E.style,...P.style,...N.style,...Me.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),jt&&(0,pa.jsx)(nt.BlockControls,{group:"block",children:te&&!ce&&(0,pa.jsx)(Ju.ToolbarButton,{name:"link",icon:G?n1:Qn,title:G?(0,$i.__)("Unlink"):(0,$i.__)("Link"),shortcut:G?Xu.displayShortcut.primaryShift("k"):Xu.displayShortcut.primary("k"),onClick:G?ve:ee,isActive:G})}),te&&n&&(U||G)&&!ce&&(0,pa.jsx)(Ju.Popover,{placement:"bottom",onClose:()=>{H(!1),A.current?.focus()},anchor:k,focusOnMount:U?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,pa.jsx)(nt.LinkControl,{value:Ne,onChange:({url:Se,opensInNewTab:Oe,nofollow:K})=>r(HH({rel:d,url:Se,opensInNewTab:Oe,nofollow:K})),onRemove:()=>{ve(),A.current?.focus()},forceIsEditingLink:U,settings:h0e,createSuggestion:se&&Ee,withCreateSuggestion:Q,createSuggestionButtonText:le})}),(0,pa.jsxs)(nt.InspectorControls,{group:"advanced",children:[(0,pa.jsx)(d0e,{tagName:u,onChange:Se=>r({tagName:Se}),options:[{label:(0,$i.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),te&&(0,pa.jsx)(Ju.TextControl,{label:(0,$i.__)("Link relation"),help:(0,Uo.createInterpolateElement)((0,$i.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,pa.jsx)(Ju.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:Se=>r({rel:Se})})]})]})}var qH=v0e;var lk={$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 da=a(T(),1),HE=a(v(),1);function ZH({attributes:e}){let{tagName:t,type:r,fontSize:o,linkTarget:n,rel:i,style:l,text:s,title:c,url:u}=e,m=t||"a",p=m==="button",d=r||"button",f=(0,da.__experimentalGetBorderClassesAndStyles)(e),h=(0,da.__experimentalGetColorClassesAndStyles)(e),g=(0,da.__experimentalGetSpacingClassesAndStyles)(e),b=(0,da.__experimentalGetShadowClassesAndStyles)(e),y=(0,da.getTypographyClassesAndStyles)(e),_=w("wp-block-button__link",h.className,f.className,y.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":o||l?.typography?.fontSize},(0,da.__experimentalGetElementClassName)("button")),x={...f.style,...h.style,...g.style,...b.style,...y.style,writingMode:void 0};return(0,HE.jsx)("div",{...da.useBlockProps.save(),children:(0,HE.jsx)(da.RichText.Content,{tagName:m,type:p?d:null,className:_,href:p?null:u,title:c,style:x,value:s,target:p?null:n,rel:p?null:i})})}var{fieldsKey:y0e,formKey:_0e}=W(KH.privateApis),{name:YH}=lk,ck={icon:g9,example:{attributes:{className:"is-style-fill",text:(0,sk.__)("Call to action")}},edit:qH,save:ZH,deprecated:zH,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&&(ck[y0e]=[{id:"text",label:(0,sk.__)("Content"),type:"text",Edit:"rich-text"},{id:"link",label:(0,sk.__)("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})}],ck[_0e]={fields:["text","link"]});var x0e=()=>I({name:YH,metadata:lk,settings:ck});var GE={};Z(GE,{init:()=>P0e,metadata:()=>mk,name:()=>nO,settings:()=>iO});var UE=a(B(),1);var K1=a(T(),1),Z1=a(v(),1),QH=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},k0e=[{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:QH,save({attributes:{contentJustification:e,orientation:t}}){return(0,Z1.jsx)("div",{...K1.useBlockProps.save({className:w({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,Z1.jsx)(K1.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,Z1.jsx)("div",{children:(0,Z1.jsx)(K1.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return QH({...e,align:void 0,contentJustification:e.align})}}],XH=k0e;var Q1=a($(),1),jE=a(em(),1);var Y1=a($(),1);function Hc(e,t,r=null){if(!e)return;let o=(0,Y1.getBlockType)(t);if(!o)return;let n={};if((0,Y1.hasBlockSupport)(o,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,Y1.hasBlockSupport)(o,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(r&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?r(u):u),s),{});Object.keys(l).length>0&&(n.metadata=l)}}if(Object.keys(n).length!==0)return n}var w0e={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,Q1.createBlock)("core/buttons",{},e.map(t=>(0,Q1.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Q1.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,jE.__unstableCreateElement)(document,r),n=o.innerText||"",l=o.querySelector("a")?.getAttribute("href");return(0,Q1.createBlock)("core/button",{...t,...Hc(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let r=(0,jE.__unstableCreateElement)(document,t.content),o=r.innerText||"",n=r.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},eO=w0e;var uk=a(T(),1),tO=a(v(),1),C0e={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function S0e({attributes:e,className:t}){let{fontSize:r,layout:o,style:n}=e,i=(0,uk.useBlockProps)({className:w(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),l=(0,uk.useInnerBlocksProps)(i,{defaultBlock:C0e,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:o?.orientation??"horizontal"});return(0,tO.jsx)("div",{...l})}var rO=S0e;var mk={$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 pk=a(T(),1),oO=a(v(),1);function aO({attributes:e,className:t}){let{fontSize:r,style:o}=e,n=pk.useBlockProps.save({className:w(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=pk.useInnerBlocksProps.save(n);return(0,oO.jsx)("div",{...i})}var{name:nO}=mk,iO={icon:b9,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,UE.__)("Find out more")}},{name:"core/button",attributes:{text:(0,UE.__)("Contact us")}}]},deprecated:XH,transforms:eO,edit:rO,save:aO},P0e=()=>I({name:nO,metadata:mk,settings:iO});var $E={};Z($E,{init:()=>I0e,metadata:()=>dk,name:()=>fO,settings:()=>hO});var dk={$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 X1=a(R(),1),lO=a(F(),1),sO=a(zu(),1),cO=a(T(),1),uO=a(X(),1),Gf=a(B(),1),mO=a(fe(),1);var ei=a(v(),1),E0e=Vf(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function pO({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:n}=(0,lO.useSelect)(m=>{let{getEntityRecords:p,hasFinishedResolution:d}=m(uO.store),f={status:"publish",per_page:1},h=p("postType","post",f),g=d("getEntityRecords",["postType","post",f]),b,y=m("core/editor");return y&&y.getEditedPostAttribute("type")==="post"&&(b=y.getEditedPostAttribute("date")),{date:b,hasPostsResolved:g,hasPosts:g&&h?.length===1}},[]),{content:i,status:l,error:s}=(0,sO.useServerSideRender)({attributes:{...e,...E0e(r)},block:t}),c=(0,mO.useDisabled)(),u=(0,cO.useBlockProps)({ref:c});return o?(0,ei.jsxs)(ei.Fragment,{children:[l==="loading"&&(0,ei.jsx)("div",{...u,children:(0,ei.jsx)(X1.Spinner,{})}),l==="error"&&(0,ei.jsx)("div",{...u,children:(0,ei.jsx)("p",{children:(0,Gf.sprintf)((0,Gf.__)("Error: %s"),s)})}),l==="success"&&(0,ei.jsx)(uo,{wrapperProps:u,html:i})]}):(0,ei.jsx)("div",{...u,children:(0,ei.jsx)(X1.Placeholder,{icon:O0,label:(0,Gf.__)("Calendar"),children:n?(0,Gf.__)("No published posts found."):(0,ei.jsx)(X1.Spinner,{})})})}var WE=a($(),1),N0e={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,WE.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,WE.createBlock)("core/archives")}]},dO=N0e;var{name:fO}=dk,hO={icon:O0,example:{},edit:pO,transforms:dO},I0e=()=>I({name:fO,metadata:dk,settings:hO});var lN={};Z(lN,{init:()=>r1e,metadata:()=>fk,name:()=>$O,settings:()=>qO});var fk={$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 kr=a(R(),1),OO=a(fe(),1),Zf=a(T(),1),jO=a(Oo(),1),xr=a(B(),1);var nN=a(X(),1),UO=a(F(),1);var vO=a(Hu(),1),gO={};function qE(e,t){let r=vO.useRef(gO);return r.current===gO&&(r.current=e(t)),r}function L0e(e,t){return function(o,...n){let i=new URL(e);return i.searchParams.set("code",o.toString()),n.forEach(l=>i.searchParams.append("args[]",l)),`${t} error #${o}; visit ${i} for the full message.`}}var M0e=L0e("https://base-ui.com/production-error","Base UI"),bO=M0e;var jp=a(Hu(),1);function ZE(e,t,r,o){let n=qE(_O).current;return A0e(n,e,t,r,o)&&xO(n,[e,t,r,o]),n.callback}function yO(e){let t=qE(_O).current;return R0e(t,e)&&xO(t,e),t.callback}function _O(){return{callback:null,cleanup:null,refs:[]}}function A0e(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function R0e(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function xO(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 l=i(r);typeof l=="function"&&(o[n]=l);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 l=o[n];typeof l=="function"?l():i(null);break}case"object":{i.current=null;break}default:}}}}}}var CO=a(Hu(),1);var kO=a(Hu(),1),z0e=parseInt(kO.version,10);function wO(e){return z0e>=e}function KE(e){if(!CO.isValidElement(e))return null;let t=e,r=t.props;return(wO(19)?r?.ref:t.ref)??null}function J1(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var YLe=Object.freeze([]),Wf=Object.freeze({});function SO(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 TO(e,t){return typeof e=="function"?e(t):e}function PO(e,t){return typeof e=="function"?e(t):e}var YE={};function Op(e,t,r,o,n){if(!r&&!o&&!n&&!e)return hk(t);let i=hk(e);return t&&(i=ev(i,t)),r&&(i=ev(i,r)),o&&(i=ev(i,o)),n&&(i=ev(i,n)),i}function BO(e){if(e.length===0)return YE;if(e.length===1)return hk(e[0]);let t=hk(e[0]);for(let r=1;r<e.length;r+=1)t=ev(t,e[r]);return t}function hk(e){return QE(e)?{...NO(e,YE)}:V0e(e)}function ev(e,t){return QE(t)?NO(t,e):F0e(e,t)}function V0e(e){let t={...e};for(let r in t){let o=t[r];EO(r,o)&&(t[r]=IO(o))}return t}function F0e(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=J1(e.style,o);break}case"className":{e[r]=XE(e.className,o);break}default:EO(r,o)?e[r]=H0e(e[r],o):e[r]=o}}return e}function EO(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 QE(e){return typeof e=="function"}function NO(e,t){return QE(e)?e(t):e??YE}function H0e(e,t){return t?e?(...r)=>{let o=r[0];if(LO(o)){let i=o;DO(i);let l=t(...r);return i.baseUIHandlerPrevented||e?.(...r),l}let n=t(...r);return e?.(...r),n}:IO(t):e}function IO(e){return e&&((...t)=>{let r=t[0];return LO(r)&&DO(r),e(...t)})}function DO(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function XE(e,t){return t?e?t+" "+e:t:e}function LO(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var JE=a(Hu(),1);function MO(e,t,r={}){let o=t.render,n=O0e(t,r);if(r.enabled===!1)return null;let i=r.state??Wf;return G0e(e,o,n,i)}function O0e(e,t={}){let{className:r,style:o,render:n}=e,{state:i=Wf,ref:l,props:s,stateAttributesMapping:c,enabled:u=!0}=t,m=u?TO(r,i):void 0,p=u?PO(o,i):void 0,d=u?SO(i,c):Wf,f=u&&s?j0e(s):void 0,h=u?J1(d,f)??{}:Wf;return typeof document<"u"&&(u?Array.isArray(l)?h.ref=yO([h.ref,KE(n),...l]):h.ref=ZE(h.ref,KE(n),l):ZE(null,null)),u?(m!==void 0&&(h.className=XE(h.className,m)),p!==void 0&&(h.style=J1(h.style,p)),h):Wf}function j0e(e){return Array.isArray(e)?BO(e):Op(void 0,e)}var U0e=Symbol.for("react.lazy");function G0e(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=Op(r,t.props);n.ref=r.ref;let i=t;return i?.$$typeof===U0e&&(i=jp.Children.toArray(t)[0]),jp.cloneElement(i,n)}if(e&&typeof e=="string")return W0e(e,r);throw new Error(bO(8))}function W0e(e,t){return e==="button"?(0,JE.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,JE.createElement)("img",{alt:"",...t,key:t.key}):jp.createElement(e,t)}function gk(e){return MO(e.defaultTagName??"div",e,e)}var RO=a(j(),1),eN="data-wp-hash";function tN(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&q0e(document)),e.__wpStyleRuntime}function $0e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${eN}]`))if(r.getAttribute(eN)===t)return!0;return!1}function zO(e,t,r){if(!e.head)return;let o=tN(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if($0e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(eN,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function q0e(e){let t=tN();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)zO(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 Z0e(e,t){let r=tN();r.styles.set(e,t);for(let o of r.documents.keys())zO(o,e,t)}typeof process>"u",Z0e("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 K0e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},ti=(0,RO.forwardRef)(function({render:t,...r},o){return gk({render:t,ref:o,props:Op({className:K0e["visually-hidden"]},r,{"data-visually-hidden":""})})});var VO=a(j(),1),FO=a(B(),1),qf=a(v(),1),rN="data-wp-hash";function oN(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Q0e(document)),e.__wpStyleRuntime}function Y0e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${rN}]`))if(r.getAttribute(rN)===t)return!0;return!1}function HO(e,t,r){if(!e.head)return;let o=oN(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Y0e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(rN,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Q0e(e){let t=oN();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)HO(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 bk(e,t){let r=oN();r.styles.set(e,t);for(let o of r.documents.keys())HO(o,e,t)}typeof process>"u",bk("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var X0e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",bk("5f8e7aa0bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._08e8a2e44959f892__outset-ring--focus:focus,._970d04df7376df67__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c5cb3ee4bddaa8e4__outset-ring--focus-within-visible:focus-within:has(:focus-visible),.cd83dfc2126a0846__outset-ring--focus-within:focus-within,.d0541bc9dd9dc7b6__outset-ring--focus-visible:focus-visible,.e25b2bdd7aa21721__outset-ring--focus-except-active:focus:not(:active),:focus-visible .ecadb9e080e2dfa5__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var J0e={"outset-ring--focus":"_08e8a2e44959f892__outset-ring--focus","outset-ring--focus-except-active":"e25b2bdd7aa21721__outset-ring--focus-except-active","outset-ring--focus-visible":"d0541bc9dd9dc7b6__outset-ring--focus-visible","outset-ring--focus-within":"cd83dfc2126a0846__outset-ring--focus-within","outset-ring--focus-within-except-active":"_970d04df7376df67__outset-ring--focus-within-except-active","outset-ring--focus-within-visible":"c5cb3ee4bddaa8e4__outset-ring--focus-within-visible","outset-ring--focus-parent-visible":"ecadb9e080e2dfa5__outset-ring--focus-parent-visible"};typeof process>"u",bk("7e0119b657",'@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-regular,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 vk={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",bk("d390e935a7","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");var e1e={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},aN=(0,VO.forwardRef)(function({children:t,variant:r="default",tone:o="brand",openInNewTab:n=!1,render:i,className:l,...s},c){return gk({render:i,defaultTagName:"a",ref:c,props:Op(s,{className:w(e1e.a,X0e["box-sizing"],J0e["outset-ring--focus"],r!=="unstyled"&&vk.link,r!=="unstyled"&&vk[`is-${o}`],r==="unstyled"&&vk["is-unstyled"],l),target:n?"_blank":void 0,children:(0,qf.jsxs)(qf.Fragment,{children:[t,n&&(0,qf.jsx)("span",{className:vk["link-icon"],role:"img","aria-label":(0,FO.__)("(opens in a new tab)")})]})})})});var GO=a(_r(),1);var lt=a(v(),1);function iN({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:r,showOnlyTopLevel:o,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:m}){let p=(0,OO.useInstanceId)(iN,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,nN.useEntityRecords)("root","taxonomy",{per_page:-1}),h=d?.filter(G=>G.visibility.public),g=h?.find(G=>G.slug===s),b=!f&&g?.hierarchical,y={per_page:-1,hide_empty:!n,context:"view"};b&&o&&(y.parent=0);let{records:_,isResolving:x}=(0,nN.useEntityRecords)("taxonomy",s,y),{createWarningNotice:k}=(0,UO.useDispatch)(GO.store),S=G=>{G.preventDefault(),k((0,xr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${m}`,type:"snackbar"})},C=G=>_?.length?G===null?_:_.filter(({parent:Y})=>Y===G):[],E=G=>Y=>c({[G]:Y}),P=G=>G?(0,jO.decodeEntities)(G).trim():(0,xr.__)("(Untitled)"),N=()=>C(b&&t?0:null).map(O=>z(O)),z=G=>{let Y=C(G.id),{id:O,link:te,count:se,name:Q}=G;return(0,lt.jsxs)("li",{className:`cat-item cat-item-${O}`,children:[(0,lt.jsx)("a",{href:te,onClick:S,children:P(Q)}),r&&` (${se})`,b&&t&&!!Y.length&&(0,lt.jsx)("ul",{className:"children",children:Y.map(ce=>z(ce))})]},O)},V=()=>{let Y=C(b&&t?0:null);return(0,lt.jsxs)(lt.Fragment,{children:[l?(0,lt.jsx)(Zf.RichText,{className:"wp-block-categories__label","aria-label":(0,xr.__)("Label text"),placeholder:g?.name,withoutInteractiveFormatting:!0,value:i,onChange:O=>c({label:O})}):(0,lt.jsx)(ti,{render:(0,lt.jsx)("label",{htmlFor:p}),children:i||g?.name}),(0,lt.jsxs)("select",{id:p,children:[(0,lt.jsx)("option",{children:(0,xr.sprintf)((0,xr.__)("Select %s"),g?.labels?.singular_name)}),Y.map(O=>A(O,0))]})]})},A=(G,Y)=>{let{id:O,count:te,name:se}=G,Q=C(O);return[(0,lt.jsxs)("option",{className:`level-${Y}`,children:[Array.from({length:Y*3}).map(()=>"\xA0"),P(se),r&&` (${te})`]},O),b&&t&&!!Q.length&&Q.map(ce=>A(ce,Y+1))]},M=_?.length&&!e&&!x?"ul":"div",L=w(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!x,"wp-block-categories-dropdown":!!_?.length&&e&&!x}),U=(0,Zf.useBlockProps)({className:L}),H=q();return(0,lt.jsxs)(M,{...U,children:[(0,lt.jsx)(Zf.InspectorControls,{children:(0,lt.jsxs)(kr.__experimentalToolsPanel,{label:(0,xr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:H,children:[Array.isArray(h)&&(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,xr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,lt.jsx)(kr.SelectControl,{__next40pxDefaultSize:!0,label:(0,xr.__)("Taxonomy"),options:h.map(G=>({label:G.name,value:G.slug})),value:s,onChange:G=>c({taxonomy:G})})}),(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,xr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,lt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Display as dropdown"),checked:e,onChange:E("displayAsDropdown")})}),e&&(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,xr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,lt.jsx)(kr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,xr.__)("Show label"),checked:l,onChange:E("showLabel")})}),(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,xr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,lt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show post counts"),checked:r,onChange:E("showPostCounts")})}),b&&(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,xr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,lt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show only top level terms"),checked:o,onChange:E("showOnlyTopLevel")})}),(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,xr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,lt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show empty terms"),checked:n,onChange:E("showEmpty")})}),b&&!o&&(0,lt.jsx)(kr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,xr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,lt.jsx)(kr.ToggleControl,{label:(0,xr.__)("Show hierarchy"),checked:t,onChange:E("showHierarchy")})})]})}),x&&(0,lt.jsx)(kr.Placeholder,{icon:p1,label:(0,xr.__)("Terms"),children:(0,lt.jsx)(kr.Spinner,{})}),!x&&_?.length===0&&(0,lt.jsx)("p",{children:g.labels.no_terms}),!x&&_?.length>0&&(e?V():N())]})}var yk=a(B(),1);var t1e=[{name:"terms",title:(0,yk.__)("Terms List"),icon:Uu,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,yk.__)("Categories List"),description:(0,yk.__)("Display a list of all categories."),icon:Uu,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],WO=t1e;var{name:$O}=fk,qO={icon:Uu,example:{},edit:iN,variations:WO},r1e=()=>I({name:$O,metadata:fk,settings:qO});var cN={};Z(cN,{init:()=>i1e,metadata:()=>tv,name:()=>rv,settings:()=>aj});var Oc=a(T(),1),Ck=a(F(),1),jc=a(R(),1),Qf=a(j(),1),Yf=a(B(),1);var ZO=a(T(),1),sN=a(R(),1),kk=a($(),1),_k=a(B(),1),xk=a(v(),1);function KO({content:e,onReplace:t}){let r=[(0,xk.jsx)(sN.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>t((0,kk.rawHandler)({HTML:e})),children:(0,_k.__)("Convert to blocks")},"convert-to-blocks"),(0,xk.jsx)(sN.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>t((0,kk.createBlock)("core/html",{content:e})),children:(0,_k.__)("Convert to HTML")},"convert-to-html")];return(0,xk.jsx)(ZO.Warning,{actions:r,children:(0,_k.__)("The Classic block is being phased out. Convert this content to blocks for the best editing experience, or move it to a Custom HTML block to preserve the original markup.")})}var YO=a(T(),1),zl=a(R(),1),wk=a(j(),1),Kf=a(B(),1),QO=a(F(),1);var XO=a(fe(),1),qi=a(v(),1);function o1e({onClick:e,isModalFullScreen:t}){return(0,XO.useViewportMatch)("small","<")?null:(0,qi.jsx)(zl.Button,{size:"compact",onClick:e,icon:Pp,isPressed:t,label:t?(0,Kf.__)("Exit fullscreen"):(0,Kf.__)("Enter fullscreen")})}function a1e(e){let t=(0,QO.useSelect)(r=>r(YO.store).getSettings().styles);return(0,wk.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 l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,qi.jsx)("textarea",{...e})}function JO({clientId:e,content:t,onClose:r,onChange:o}){let[n,i]=(0,wk.useState)(!1),l=`editor-${e}`;return(0,qi.jsxs)(zl.Modal,{title:(0,Kf.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,qi.jsx)(o1e,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,qi.jsx)(a1e,{id:l,defaultValue:t}),(0,qi.jsxs)(zl.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,qi.jsx)(zl.FlexItem,{children:(0,qi.jsx)(zl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Kf.__)("Cancel")})}),(0,qi.jsx)(zl.FlexItem,{children:(0,qi.jsx)(zl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(l)),r()},children:(0,Kf.__)("Save")})})]})]})}var fa=a(v(),1);function ej({attributes:e,setAttributes:t,clientId:r,onReplace:o}){let{content:n}=e,[i,l]=(0,Qf.useState)(!1),s=(0,Qf.useRef)(null),c=(0,Ck.useSelect)(m=>m(Oc.store).canRemoveBlock(r),[r]),{removeBlock:u}=(0,Ck.useDispatch)(Oc.store);return(0,fa.jsxs)(fa.Fragment,{children:[(0,fa.jsx)(Oc.BlockControls,{children:(0,fa.jsx)(jc.ToolbarGroup,{children:(0,fa.jsx)(jc.ToolbarButton,{ref:s,onClick:()=>l(!0),children:(0,Yf.__)("Edit")})})}),(0,fa.jsxs)("div",{...(0,Oc.useBlockProps)(),children:[c&&n&&(0,fa.jsx)(KO,{content:n,onReplace:o}),n?(0,fa.jsx)(Qf.RawHTML,{children:n}):(0,fa.jsxs)(jc.Placeholder,{icon:(0,fa.jsx)(Oc.BlockIcon,{icon:U0}),label:(0,Yf.__)("Classic"),instructions:(0,Yf.__)("The Classic block is being phased out. It\u2019s recommended to use other blocks for the best editing experience."),children:[c&&(0,fa.jsx)(jc.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>u(r),children:(0,Yf.__)("Remove block")}),(0,fa.jsx)(jc.Button,{__next40pxDefaultSize:!0,variant:c?"secondary":"primary",onClick:()=>l(!0),children:(0,Yf.__)("Edit contents")})]}),i&&(0,fa.jsx)(JO,{clientId:r,content:n,onClose:()=>{l(!1),s.current&&s.current.focus()},onChange:m=>t({content:m})})]})]})}var tv={$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 tj=a(j(),1),rj=a(v(),1);function oj({attributes:e}){let{content:t}=e;return(0,rj.jsx)(tj.RawHTML,{children:t})}var{name:rv}=tv,aj={icon:U0,edit:ej,save:oj},i1e=()=>{let e={...tv.supports,inserter:!!window?.__needsClassicBlock};return I({name:rv,metadata:tv,settings:{...aj,supports:e}})};var fN={};Z(fN,{init:()=>d1e,metadata:()=>Pk,name:()=>mj,settings:()=>Nk});var dN=a(B(),1);var uj=a($(),1);var uN=a(B(),1),Sk=a(T(),1),Tk=a($(),1),mN=a(v(),1);function nj({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:n}){let i=(0,Sk.useBlockProps)();return(0,mN.jsx)("pre",{...i,children:(0,mN.jsx)(Sk.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:r,onMerge:n,placeholder:(0,uN.__)("Write code\u2026"),"aria-label":(0,uN.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>o((0,Tk.createBlock)((0,Tk.getDefaultBlockName)())),style:{whiteSpace:"break-spaces"}})})}var Pk={$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 Bk=a(T(),1);var ij=a(fe(),1);function lj(e){return(0,ij.pipe)(s1e,c1e)(e||"")}function s1e(e){return e.replace(/\[/g,"&#91;")}function c1e(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var pN=a(v(),1);function sj({attributes:e}){return(0,pN.jsx)("pre",{...Bk.useBlockProps.save(),children:(0,pN.jsx)(Bk.RichText.Content,{tagName:"code",value:lj(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var ov=a($(),1),Ek=a(em(),1);var u1e={from:[{type:"input",regExp:/^```$/,transform:()=>(0,ov.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,ov.createBlock)("core/code",{...e,...Hc(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return(0,ov.createBlock)("core/code",{...e,...Hc(e,"core/code"),content:(0,Ek.toHTMLString)({value:(0,Ek.create)({text:t})})})}},{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,ov.createBlock)("core/paragraph",{...Hc(e,"core/paragraph"),content:t})}}]},cj=u1e;var{fieldsKey:m1e,formKey:p1e}=W(uj.privateApis),{name:mj}=Pk,Nk={icon:G0,example:{attributes:{content:(0,dN.__)(`// A \u201Cblock\u201D is the abstract term used
1 +(function() {
2 +"use strict";var wp;(wp||={}).blockLibrary=(()=>{var S_e=Object.create;var Ak=Object.defineProperty;var T_e=Object.getOwnPropertyDescriptor;var E_e=Object.getOwnPropertyNames;var P_e=Object.getPrototypeOf,B_e=Object.prototype.hasOwnProperty;var I_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)Ak(e,r,{get:t[r],enumerable:!0})},MH=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of E_e(t))!B_e.call(e,n)&&n!==r&&Ak(e,n,{get:()=>t[n],enumerable:!(o=T_e(t,n))||o.enumerable});return e};var a=(e,t,r)=>(r=e!=null?S_e(P_e(e)):{},MH(t||!e||!e.__esModule?Ak(r,"default",{value:e,enumerable:!0}):r,e)),N_e=e=>MH(Ak({},"__esModule",{value:!0}),e);var te=Ae((VRe,LH)=>{LH.exports=window.wp.blocks});var _e=Ae((zRe,RH)=>{RH.exports=window.wp.compose});var H=Ae((HRe,DH)=>{DH.exports=window.wp.data});var I=Ae((jRe,AH)=>{AH.exports=window.wp.blockEditor});var bd=Ae((URe,OH)=>{OH.exports=window.wp.serverSideRender});var L=Ae((WRe,FH)=>{FH.exports=window.wp.i18n});var AE=Ae(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.Doctype=hr.CDATA=hr.Tag=hr.Style=hr.Script=hr.Comment=hr.Directive=hr.Text=hr.Root=hr.isTag=hr.ElementType=void 0;var Ti;(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"})(Ti=hr.ElementType||(hr.ElementType={}));function L_e(e){return e.type===Ti.Tag||e.type===Ti.Script||e.type===Ti.Style}hr.isTag=L_e;hr.Root=Ti.Root;hr.Text=Ti.Text;hr.Directive=Ti.Directive;hr.Comment=Ti.Comment;hr.Script=Ti.Script;hr.Style=Ti.Style;hr.Tag=Ti.Tag;hr.CDATA=Ti.CDATA;hr.Doctype=Ti.Doctype});var zE=Ae(Je=>{"use strict";var yd=Je&&Je.__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)}})(),Sb=Je&&Je.__assign||function(){return Sb=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},Sb.apply(this,arguments)};Object.defineProperty(Je,"__esModule",{value:!0});Je.cloneNode=Je.hasChildren=Je.isDocument=Je.isDirective=Je.isComment=Je.isText=Je.isCDATA=Je.isTag=Je.Element=Je.Document=Je.CDATA=Je.NodeWithChildren=Je.ProcessingInstruction=Je.Comment=Je.Text=Je.DataNode=Je.Node=void 0;var $a=AE(),FE=(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),VE(this,t)},e})();Je.Node=FE;var Ok=(function(e){yd(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})(FE);Je.DataNode=Ok;var zH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t})(Ok);Je.Text=zH;var HH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t})(Ok);Je.Comment=HH;var jH=(function(e){yd(t,e);function t(r,o){var n=e.call(this,o)||this;return n.name=r,n.type=$a.ElementType.Directive,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t})(Ok);Je.ProcessingInstruction=jH;var Fk=(function(e){yd(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})(FE);Je.NodeWithChildren=Fk;var UH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t})(Fk);Je.CDATA=UH;var WH=(function(e){yd(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=$a.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t})(Fk);Je.Document=WH;var GH=(function(e){yd(t,e);function t(r,o,n,i){n===void 0&&(n=[]),i===void 0&&(i=r==="script"?$a.ElementType.Script:r==="style"?$a.ElementType.Style:$a.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})(Fk);Je.Element=GH;function $H(e){return(0,$a.isTag)(e)}Je.isTag=$H;function qH(e){return e.type===$a.ElementType.CDATA}Je.isCDATA=qH;function ZH(e){return e.type===$a.ElementType.Text}Je.isText=ZH;function KH(e){return e.type===$a.ElementType.Comment}Je.isComment=KH;function YH(e){return e.type===$a.ElementType.Directive}Je.isDirective=YH;function QH(e){return e.type===$a.ElementType.Root}Je.isDocument=QH;function R_e(e){return Object.prototype.hasOwnProperty.call(e,"children")}Je.hasChildren=R_e;function VE(e,t){t===void 0&&(t=!1);var r;if(ZH(e))r=new zH(e.data);else if(KH(e))r=new HH(e.data);else if($H(e)){var o=t?OE(e.children):[],n=new GH(e.name,Sb({},e.attribs),o);o.forEach(function(c){return c.parent=n}),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Sb({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Sb({},e["x-attribsPrefix"])),r=n}else if(qH(e)){var o=t?OE(e.children):[],i=new UH(o);o.forEach(function(u){return u.parent=i}),r=i}else if(QH(e)){var o=t?OE(e.children):[],s=new WH(o);o.forEach(function(u){return u.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(YH(e)){var l=new jH(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}Je.cloneNode=VE;function OE(e){for(var t=e.map(function(o){return VE(o,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}});var jE=Ae(nc=>{"use strict";var D_e=nc&&nc.__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]})),A_e=nc&&nc.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&D_e(t,e,r)};Object.defineProperty(nc,"__esModule",{value:!0});nc.DomHandler=void 0;var HE=AE(),vd=zE();A_e(zE(),nc);var XH={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},JH=(function(){function e(t,r,o){this.dom=[],this.root=new vd.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(o=r,r=XH),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??XH,this.elementCB=o??null}return e.prototype.onparserinit=function(t){this.parser=t},e.prototype.onreset=function(){this.dom=[],this.root=new vd.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?HE.ElementType.Tag:void 0,n=new vd.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===HE.ElementType.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{var o=new vd.Text(t);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===HE.ElementType.Comment){this.lastNode.data+=t;return}var r=new vd.Comment(t);this.addNode(r),this.lastNode=r},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var t=new vd.Text(""),r=new vd.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 vd.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})();nc.DomHandler=JH;nc.default=JH});var ej=Ae(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.CARRIAGE_RETURN_PLACEHOLDER_REGEX=on.CARRIAGE_RETURN_PLACEHOLDER=on.CARRIAGE_RETURN_REGEX=on.CARRIAGE_RETURN=on.CASE_SENSITIVE_TAG_NAMES_MAP=on.CASE_SENSITIVE_TAG_NAMES=void 0;on.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"];on.CASE_SENSITIVE_TAG_NAMES_MAP=on.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{});on.CARRIAGE_RETURN="\r";on.CARRIAGE_RETURN_REGEX=new RegExp(on.CARRIAGE_RETURN,"g");on.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__");on.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(on.CARRIAGE_RETURN_PLACEHOLDER,"g")});var UE=Ae(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.formatAttributes=tj;Ag.escapeSpecialCharacters=V_e;Ag.revertEscapedCharacters=rj;Ag.formatDOM=oj;var Vk=jE(),Tb=ej();function O_e(e){return Tb.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function tj(e){for(var t={},r=0,o=e.length;r<o;r++){var n=e[r];t[n.name]=n.value}return t}function F_e(e){e=e.toLowerCase();var t=O_e(e);return t||e}function V_e(e){return e.replace(Tb.CARRIAGE_RETURN_REGEX,Tb.CARRIAGE_RETURN_PLACEHOLDER)}function rj(e){return e.replace(Tb.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Tb.CARRIAGE_RETURN)}function oj(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=F_e(l.nodeName);n=new Vk.Element(c,tj(l.attributes)),n.children=oj(c==="template"?l.content.childNodes:l.childNodes,n);break}case 3:n=new Vk.Text(rj(l.nodeValue));break;case 8:n=new Vk.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 Vk.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 dj=Ae($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.default=j_e;var z_e=UE(),nj="html",aj="head",zk="body",H_e=/<([a-zA-Z]+[0-9]?)/,ij=/<head[^]*>/i,sj=/<body[^]*>/i,jk=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},WE=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lj=typeof window=="object"&&window.DOMParser;typeof lj=="function"&&(cj=new lj,uj="text/html",WE=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),cj.parseFromString(e,uj)},jk=WE);var cj,uj;typeof document=="object"&&document.implementation&&(Eb=document.implementation.createHTMLDocument(),jk=function(e,t){if(t){var r=Eb.documentElement.querySelector(t);return r&&(r.innerHTML=e),Eb}return Eb.documentElement.innerHTML=e,Eb});var Eb,Hk=typeof document=="object"&&document.createElement("template"),GE;Hk&&Hk.content&&(GE=function(e){return Hk.innerHTML=e,Hk.content.childNodes});function j_e(e){var t,r;e=(0,z_e.escapeSpecialCharacters)(e);var o=e.match(H_e),n=o&&o[1]?o[1].toLowerCase():"";switch(n){case nj:{var i=WE(e);if(!ij.test(e)){var s=i.querySelector(aj);(t=s?.parentNode)===null||t===void 0||t.removeChild(s)}if(!sj.test(e)){var s=i.querySelector(zk);(r=s?.parentNode)===null||r===void 0||r.removeChild(s)}return i.querySelectorAll(nj)}case aj:case zk:{var l=jk(e).querySelectorAll(n);return sj.test(e)&&ij.test(e)?l[0].parentNode.childNodes:l}default:{if(GE)return GE(e);var s=jk(e,zk).querySelector(zk);return s.childNodes}}}});var pj=Ae(Pb=>{"use strict";var U_e=Pb&&Pb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pb,"__esModule",{value:!0});Pb.default=q_e;var W_e=U_e(dj()),G_e=UE(),$_e=/<(![a-zA-Z\s]+)>/;function q_e(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match($_e),r=t?t[1]:void 0;return(0,G_e.formatDOM)((0,W_e.default)(e),null,r)}});var mj=Ae(Uk=>{var Z_e=0;Uk.SAME=Z_e;var K_e=1;Uk.CAMELCASE=K_e;Uk.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 gj=Ae(ul=>{"use strict";function Y_e(e){return nn.hasOwnProperty(e)?nn[e]:null}function da(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 nn={},Q_e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Q_e.forEach(e=>{nn[e]=new da(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{nn[e]=new da(e,1,!1,t,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(e=>{nn[e]=new da(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{nn[e]=new da(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=>{nn[e]=new da(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(e=>{nn[e]=new da(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(e=>{nn[e]=new da(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(e=>{nn[e]=new da(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(e=>{nn[e]=new da(e,5,!1,e.toLowerCase(),null,!1,!1)});var qE=/[\-\:]([a-z])/g,ZE=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(qE,ZE);nn[t]=new da(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(qE,ZE);nn[t]=new da(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(e=>{let t=e.replace(qE,ZE);nn[t]=new da(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(e=>{nn[e]=new da(e,1,!1,e.toLowerCase(),null,!1,!1)});var X_e="xlinkHref";nn[X_e]=new da("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(e=>{nn[e]=new da(e,1,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:J_e,SAME:e2e,possibleStandardNames:fj}=mj(),t2e=":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",r2e=t2e+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",o2e=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r2e+"]*$")),n2e=Object.keys(fj).reduce((e,t)=>{let r=fj[t];return r===e2e?e[t]=t:r===J_e?e[t.toLowerCase()]=t:e[t]=r,e},{});ul.BOOLEAN=3;ul.BOOLEANISH_STRING=2;ul.NUMERIC=5;ul.OVERLOADED_BOOLEAN=4;ul.POSITIVE_NUMERIC=6;ul.RESERVED=0;ul.STRING=1;ul.getPropertyInfo=Y_e;ul.isCustomAttribute=o2e;ul.possibleStandardNames=n2e});var Ne=Ae((tDe,hj)=>{hj.exports=window.React});var kj=Ae((rDe,xj)=>{"use strict";var bj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a2e=/\n/g,i2e=/^\s*/,s2e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l2e=/^:\s*/,c2e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u2e=/^[;\s]*/,d2e=/^\s+|\s+$/g,p2e=`
3 +`,yj="/",vj="*",am="",m2e="comment",f2e="declaration";function g2e(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(a2e);h&&(r+=h.length);var b=g.lastIndexOf(p2e);o=~b?g.length-b: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 b=h[0];return n(b),e=e.slice(b.length),h}}function u(){c(i2e)}function d(g){var h;for(g=g||[];h=p();)h!==!1&&g.push(h);return g}function p(){var g=i();if(!(yj!=e.charAt(0)||vj!=e.charAt(1))){for(var h=2;am!=e.charAt(h)&&(vj!=e.charAt(h)||yj!=e.charAt(h+1));)++h;if(h+=2,am===e.charAt(h-1))return l("End of comment missing");var b=e.slice(2,h-2);return o+=2,n(b),e=e.slice(h),o+=2,g({type:m2e,comment:b})}}function m(){var g=i(),h=c(s2e);if(h){if(p(),!c(l2e))return l("property missing ':'");var b=c(c2e),_=g({type:f2e,property:_j(h[0].replace(bj,am)),value:b?_j(b[0].replace(bj,am)):am});return c(u2e),_}}function f(){var g=[];d(g);for(var h;h=m();)h!==!1&&(g.push(h),d(g));return g}return u(),f()}function _j(e){return e?e.replace(d2e,am):am}xj.exports=g2e});var wj=Ae(Bb=>{"use strict";var h2e=Bb&&Bb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bb,"__esModule",{value:!0});Bb.default=y2e;var b2e=h2e(kj());function y2e(e,t){let r=null;if(!e||typeof e!="string")return r;let o=(0,b2e.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 Sj=Ae(Wk=>{"use strict";Object.defineProperty(Wk,"__esModule",{value:!0});Wk.camelCase=void 0;var v2e=/^--[a-zA-Z0-9_-]+$/,_2e=/-([a-z])/g,x2e=/^[^-]+$/,k2e=/^-(webkit|moz|ms|o|khtml)-/,w2e=/^-(ms)-/,C2e=function(e){return!e||x2e.test(e)||v2e.test(e)},S2e=function(e,t){return t.toUpperCase()},Cj=function(e,t){return"".concat(t,"-")},T2e=function(e,t){return t===void 0&&(t={}),C2e(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(w2e,Cj):e=e.replace(k2e,Cj),e.replace(_2e,S2e))};Wk.camelCase=T2e});var Ej=Ae((YE,Tj)=>{"use strict";var E2e=YE&&YE.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},P2e=E2e(wj()),B2e=Sj();function KE(e,t){var r={};return!e||typeof e!="string"||(0,P2e.default)(e,function(o,n){o&&n&&(r[(0,B2e.camelCase)(o,t)]=n)}),r}KE.default=KE;Tj.exports=KE});var QE=Ae(pa=>{"use strict";var I2e=pa&&pa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pa,"__esModule",{value:!0});pa.returnFirstArg=pa.canTextBeChildOfNode=pa.ELEMENTS_WITH_NO_TEXT_CHILDREN=pa.PRESERVE_CUSTOM_ATTRIBUTES=void 0;pa.isCustomComponent=R2e;pa.setStyleProp=A2e;var N2e=Ne(),M2e=I2e(Ej()),L2e=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function R2e(e,t){return e.includes("-")?!L2e.has(e):!!(t&&typeof t.is=="string")}var D2e={reactCompat:!0};function A2e(e,t){if(typeof e=="string"){if(!e.trim()){t.style={};return}try{t.style=(0,M2e.default)(e,D2e)}catch{t.style={}}}}pa.PRESERVE_CUSTOM_ATTRIBUTES=Number(N2e.version.split(".")[0])>=16;pa.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var O2e=function(e){return!pa.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)};pa.canTextBeChildOfNode=O2e;var F2e=function(e){return e};pa.returnFirstArg=F2e});var JE=Ae(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.default=j2e;var Ib=gj(),Pj=QE(),V2e=["checked","value"],z2e=["input","select","textarea"],H2e={reset:!0,submit:!0};function j2e(e,t){e===void 0&&(e={});var r={},o=!!(e.type&&H2e[e.type]);for(var n in e){var i=e[n];if((0,Ib.isCustomAttribute)(n)){r[n]=i;continue}var s=n.toLowerCase(),l=Bj(s);if(l){var c=(0,Ib.getPropertyInfo)(l);switch(V2e.includes(l)&&z2e.includes(t)&&!o&&(l=Bj("default"+s)),r[l]=i,c&&c.type){case Ib.BOOLEAN:r[l]=!0;break;case Ib.OVERLOADED_BOOLEAN:i===""&&(r[l]=!0);break}continue}Pj.PRESERVE_CUSTOM_ATTRIBUTES&&(r[n]=i)}return(0,Pj.setStyleProp)(e.style,r),r}function Bj(e){return Ib.possibleStandardNames[e]}});var Nj=Ae(Mb=>{"use strict";var U2e=Mb&&Mb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mb,"__esModule",{value:!0});Mb.default=Ij;var eP=Ne(),W2e=U2e(JE()),Nb=QE(),G2e={cloneElement:eP.cloneElement,createElement:eP.createElement,isValidElement:eP.isValidElement};function Ij(e,t){t===void 0&&(t={});for(var r=[],o=typeof t.replace=="function",n=t.transform||Nb.returnFirstArg,i=t.library||G2e,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,Nb.canTextBeChildOfNode)(p.parent)||t.trim&&f)continue;r.push(n(p.data,p,d));continue}var g=p,h={};$2e(g)?((0,Nb.setStyleProp)(g.attribs.style,g.attribs),h=g.attribs):g.attribs&&(h=(0,W2e.default)(g.attribs,g.name));var b=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&&(b=Ij(p.children,t));break;default:continue}u>1&&(h.key=d),r.push(n(l(p.name,h,b),p,d))}return r.length===1?r[0]:r}function $2e(e){return Nb.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,Nb.isCustomComponent)(e.name,e.attribs)}});var rP=Ae(To=>{"use strict";var tP=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(To,"__esModule",{value:!0});To.htmlToDOM=To.domToReact=To.attributesToProps=To.Text=To.ProcessingInstruction=To.Element=To.Comment=void 0;To.default=K2e;var Mj=tP(pj());To.htmlToDOM=Mj.default;var q2e=tP(JE());To.attributesToProps=q2e.default;var Lj=tP(Nj());To.domToReact=Lj.default;var Gk=jE();Object.defineProperty(To,"Comment",{enumerable:!0,get:function(){return Gk.Comment}});Object.defineProperty(To,"Element",{enumerable:!0,get:function(){return Gk.Element}});Object.defineProperty(To,"ProcessingInstruction",{enumerable:!0,get:function(){return Gk.ProcessingInstruction}});Object.defineProperty(To,"Text",{enumerable:!0,get:function(){return Gk.Text}});var Z2e={lowerCaseAttributeNames:!1};function K2e(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e?(0,Lj.default)((0,Mj.default)(e,t?.htmlparser2||Z2e),t):[]}});var ma=Ae((uDe,Dj)=>{Dj.exports=window.wp.dom});var y=Ae((dDe,Aj)=>{Aj.exports=window.ReactJSXRuntime});var W=Ae((gDe,Vj)=>{Vj.exports=window.wp.element});var A=Ae((bDe,zj)=>{zj.exports=window.wp.primitives});var F=Ae((kHe,Hj)=>{Hj.exports=window.wp.components});var Ur=Ae((wHe,jj)=>{jj.exports=window.wp.blob});var ae=Ae((CHe,Uj)=>{Uj.exports=window.wp.coreData});var qt=Ae((kje,SU)=>{SU.exports=window.wp.url});var $o=Ae((Sje,IU)=>{IU.exports=window.wp.htmlEntities});var _W=Ae((oWe,vW)=>{vW.exports=window.ReactDOM});var SW=Ae(CW=>{"use strict";var Sh=Ne();function Rke(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dke=typeof Object.is=="function"?Object.is:Rke,Ake=Sh.useState,Oke=Sh.useEffect,Fke=Sh.useLayoutEffect,Vke=Sh.useDebugValue;function zke(e,t){var r=t(),o=Ake({inst:{value:r,getSnapshot:t}}),n=o[0].inst,i=o[1];return Fke(function(){n.value=r,n.getSnapshot=t,rM(n)&&i({inst:n})},[e,r,t]),Oke(function(){return rM(n)&&i({inst:n}),e(function(){rM(n)&&i({inst:n})})},[e]),Vke(r),r}function rM(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Dke(e,r)}catch{return!0}}function Hke(e,t){return t()}var jke=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hke:zke;CW.useSyncExternalStore=Sh.useSyncExternalStore!==void 0?Sh.useSyncExternalStore:jke});var EW=Ae((wWe,TW)=>{"use strict";TW.exports=SW()});var PM=Ae((xKe,$G)=>{$G.exports=window.wp.privateApis});var O_=Ae((AKe,n$)=>{n$.exports=window.wp.a11y});var br=Ae((qQe,hq)=>{hq.exports=window.wp.notices});var fc=Ae((rJe,Xq)=>{Xq.exports=window.wp.keycodes});var jm=Ae((sJe,tZ)=>{tZ.exports=window.wp.deprecated});var vl=Ae((NJe,fZ)=>{fZ.exports=window.wp.richText});var MC=Ae((Crt,pY)=>{pY.exports=window.wp.date});var l2=Ae((rot,EY)=>{EY.exports=window.wp.apiFetch});var Kd=Ae((Fnt,mX)=>{mX.exports=window.wp.hooks});var iee=Ae((sst,aee)=>{aee.exports=window.wp.styleEngine});var uee=Ae((ust,cee)=>{"use strict";cee.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 kte=Ae((Xlt,Y3)=>{var vte={\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"},_te=Object.keys(vte).join("|"),t6e=new RegExp(_te,"g"),r6e=new RegExp(_te,"");function o6e(e){return vte[e]}var xte=function(e){return e.replace(t6e,o6e)},n6e=function(e){return!!e.match(r6e)};Y3.exports=xte;Y3.exports.has=n6e;Y3.exports.remove=xte});var kre=Ae((wut,xre)=>{xre.exports=window.wp.uploadMedia});var P9=Ae((ygt,Sie)=>{Sie.exports=window.wp.escapeHtml});var ape=Ae((h2t,npe)=>{npe.exports=window.wp.wordcount});var lge=Ae((nwt,sge)=>{sge.exports=window.wp.patterns});var the=Ae((c4t,ehe)=>{ehe.exports=window.wp.autop});var ohe=Ae((u4t,rhe)=>{rhe.exports=window.wp.shortcode});var ARe={};J(ARe,{__experimentalGetCoreBlocks:()=>m_e,__experimentalRegisterExperimentalCoreBlocks:()=>DRe,privateApis:()=>_H,registerCoreBlocks:()=>RRe});var al=a(te(),1),l_e=a(_e(),1),c_e=a(H(),1),u_e=a(I(),1),d_e=a(bd(),1),Pk=a(L(),1);function VH(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=VH(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function M_e(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=VH(e))&&(o&&(o+=" "),o+=t);return o}var T=M_e;var oP=a(rP(),1),dl=a(rP(),1),Rj=oP.default.default||oP.default;var Oj=a(ma(),1),Fj=a(y(),1),Y2e=({wrapperProps:e={},html:t=""})=>{let r={replace:({name:i,type:s,attribs:l,parent:c,children:u})=>{if(s==="tag"&&i){let d=(0,dl.attributesToProps)(l||{}),p=i;if(!c){let m={...d,...e,className:T(d.className,e.className),style:{...d.style||{},...e.style||{}}};return(0,Fj.jsx)(p,{...m,children:(0,dl.domToReact)(u,r)})}}}},o=(0,Oj.safeHTML)(t);return Rj(o,r)},Eo=Y2e;var EN={};J(EN,{init:()=>txe,metadata:()=>Bw,name:()=>Qj,settings:()=>Xj});var TN=a(L(),1);var $k=a(W(),1),fa=(0,$k.forwardRef)(({icon:e,size:t=24,style:r,...o},n)=>{let i=e.props.style,s=i||r?{...i,...r}:void 0;return(0,$k.cloneElement)(e,{width:t,height:t,...o,...s?{style:s}:{},ref:n})});var qk=a(A(),1),nP=a(y(),1),aP=(0,nP.jsx)(qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nP.jsx)(qk.Path,{d:"M4.755 14.5L7 12L4.755 9.5M10 12H20",vectorEffect:"non-scaling-stroke"})});var Zk=a(A(),1),iP=a(y(),1),sP=(0,iP.jsx)(Zk.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)(Zk.Path,{d:"M4.755 10.5L7 8L4.755 5.5M10 12H19.5M10 16H19.5M10 8H19.5",vectorEffect:"non-scaling-stroke"})});var Kk=a(A(),1),lP=a(y(),1),cP=(0,lP.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,lP.jsx)(Kk.Path,{d:"M4.755 10.5L7 8L4.755 5.5M4.755 18.5L7 16L4.755 13.5M10 8H20M10 16H20",vectorEffect:"non-scaling-stroke"})});var Yk=a(A(),1),uP=a(y(),1),im=(0,uP.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,uP.jsx)(Yk.Path,{d:"M10.5 17H8C5.23858 17 3 14.7614 3 12C3 9.23858 5.23858 7 8 7H11M8.5 19.5L10.5 17L8.5 14.5M13.5 12H21.5M13.5 7H21.5M13.5 17H21.5",vectorEffect:"non-scaling-stroke"})});var Qk=a(A(),1),dP=a(y(),1),pP=(0,dP.jsx)(Qk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,dP.jsx)(Qk.Path,{d:"M7.5 5H16.5M4 12H20M7.5 19H16.5",vectorEffect:"non-scaling-stroke"})});var Xk=a(A(),1),mP=a(y(),1),fP=(0,mP.jsx)(Xk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mP.jsx)(Xk.Path,{d:"M4 5H13M4 12H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var Og=a(A(),1),Lb=a(y(),1),gP=(0,Lb.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,Lb.jsx)(Og.Path,{d:"M5 5H19M5 19H19",vectorEffect:"non-scaling-stroke"}),(0,Lb.jsx)(Og.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var Jk=a(A(),1),hP=a(y(),1),bP=(0,hP.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,hP.jsx)(Jk.Path,{d:"M11 5H20M4 12H20M11 19H20",vectorEffect:"non-scaling-stroke"})});var e5=a(A(),1),yP=a(y(),1),vP=(0,yP.jsx)(e5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yP.jsx)(e5.Path,{d:"M8.5 11H15.5M8.5 14.5H15.5M20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5Z",vectorEffect:"non-scaling-stroke"})});var Rb=a(A(),1),Db=a(y(),1),sm=(0,Db.jsxs)(Rb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Db.jsx)(Rb.Path,{d:"M13.25 16.5C13.25 18.0188 12.0188 19.25 10.5 19.25C8.98122 19.25 7.75 18.0188 7.75 16.5C7.75 14.9812 8.98122 13.75 10.5 13.75C12.0188 13.75 13.25 14.9812 13.25 16.5Z",fill:"currentColor",stroke:"none"}),(0,Db.jsx)(Rb.Path,{d:"M10.5 19.25C12.0188 19.25 13.25 18.0188 13.25 16.5C13.25 14.9812 12.0188 13.75 10.5 13.75C8.98122 13.75 7.75 14.9812 7.75 16.5C7.75 18.0188 8.98122 19.25 10.5 19.25ZM10.5 19.25C13.4867 19.25 13.75 16.5 13.75 15.1379V7.99998C13.75 4.9108 16.4 5.00254 18 5.00233",vectorEffect:"non-scaling-stroke"})]});var Ab=a(A(),1),Ob=a(y(),1),_P=(0,Ob.jsxs)(Ab.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ob.jsx)(Ab.Path,{d:"M3.75 10C3.75 9.30964 4.30964 8.75 5 8.75H19C19.6904 8.75 20.25 9.30964 20.25 10V18C20.25 18.6904 19.6904 19.25 19 19.25H5C4.30964 19.25 3.75 18.6904 3.75 18V10Z",vectorEffect:"non-scaling-stroke"}),(0,Ob.jsx)(Ab.Path,{d:"M10.5 6.5V9H6.5V6.5H10.5ZM17.5 6.5V9H13.5V6.5H17.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var t5=a(A(),1),xP=a(y(),1),Fb=(0,xP.jsx)(t5.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)(t5.Path,{d:"M4.75 9.5V6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6V9.5M4.75 9.5H12M4.75 9.5V14.5M19.25 9.5H12M19.25 9.5V14.5M12 9.5V14.5M12 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V14.5M12 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.5M12 19.25V14.5M12 14.5H19.25M12 14.5H4.75",vectorEffect:"non-scaling-stroke"})});var Fg=a(A(),1),Vg=a(y(),1),kP=(0,Vg.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,Vg.jsx)(Fg.Path,{d:"M6.25 11.25H4.75V12.75H6.25V11.25Z",fill:"currentColor",stroke:"none"}),(0,Vg.jsx)(Fg.Path,{d:"M19.25 11.25H17.75V12.75H19.25V11.25Z",fill:"currentColor",stroke:"none"}),(0,Vg.jsx)(Fg.Path,{d:"M10.755 14.5L13 12L10.755 9.5M4.75 11.25H6.25V12.75H4.75V11.25ZM17.75 11.25H19.25V12.75H17.75V11.25Z",vectorEffect:"non-scaling-stroke"})]});var r5=a(A(),1),wP=a(y(),1),CP=(0,wP.jsx)(r5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wP.jsx)(r5.Path,{d:"M8 11.75H16M5 16.25H19C19.6904 16.25 20.25 15.6904 20.25 15V8.5C20.25 7.80964 19.6904 7.25 19 7.25H5C4.30964 7.25 3.75 7.80964 3.75 8.5V15C3.75 15.6904 4.30964 16.25 5 16.25Z",vectorEffect:"non-scaling-stroke"})});var o5=a(A(),1),SP=a(y(),1),TP=(0,SP.jsx)(o5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,SP.jsx)(o5.Path,{d:"M9.5 7.25H14.5M9.5 16.75H14.5M7 19.75H17C17.6904 19.75 18.25 19.1904 18.25 18.5V15C18.25 14.3096 17.6904 13.75 17 13.75H7C6.30964 13.75 5.75 14.3096 5.75 15V18.5C5.75 19.1904 6.30964 19.75 7 19.75ZM7 10.25H17C17.6904 10.25 18.25 9.69036 18.25 9V5.5C18.25 4.80964 17.6904 4.25 17 4.25H7C6.30964 4.25 5.75 4.80964 5.75 5.5V9C5.75 9.69036 6.30964 10.25 7 10.25Z",vectorEffect:"non-scaling-stroke"})});var Vb=a(A(),1),zb=a(y(),1),Hb=(0,zb.jsxs)(Vb.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)(Vb.Path,{d:"M4.75 7.25L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V7.25V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25ZM19.25 7.25H4.75M7.25 10.75H9.25M11 10.75H13M14.75 10.75H16.75M7.25 14.5H9.25M11 14.5H13M14.75 14.5H16.75",vectorEffect:"non-scaling-stroke"}),(0,zb.jsx)(Vb.Path,{d:"M18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25H19.25V6C19.25 5.30964 18.6904 4.75 18 4.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var n5=a(A(),1),EP=a(y(),1),PP=(0,EP.jsx)(n5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,EP.jsx)(n5.Path,{d:"M8 15.25H10M11 15.25H13M14 15.25H16M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})});var lm=a(A(),1),cm=a(y(),1),_d=(0,cm.jsxs)(lm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cm.jsx)(lm.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,cm.jsx)(lm.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,cm.jsx)(lm.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,cm.jsx)(lm.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 a5=a(A(),1),BP=a(y(),1),jb=(0,BP.jsx)(a5.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)(a5.Path,{d:"M7 11L12 15L17 11",vectorEffect:"non-scaling-stroke"})});var i5=a(A(),1),IP=a(y(),1),NP=(0,IP.jsx)(i5.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)(i5.Path,{d:"M13.5 8.5L10.5 12L13.5 15.5",vectorEffect:"non-scaling-stroke"})});var s5=a(A(),1),MP=a(y(),1),l5=(0,MP.jsx)(s5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,MP.jsx)(s5.Path,{d:"M14 6.5L9 12L14 17.5",vectorEffect:"non-scaling-stroke"})});var c5=a(A(),1),LP=a(y(),1),RP=(0,LP.jsx)(c5.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)(c5.Path,{d:"M10.5 8.5L13.5 12L10.5 15.5",vectorEffect:"non-scaling-stroke"})});var u5=a(A(),1),DP=a(y(),1),zg=(0,DP.jsx)(u5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DP.jsx)(u5.Path,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})});var d5=a(A(),1),AP=a(y(),1),OP=(0,AP.jsx)(d5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,AP.jsx)(d5.Path,{d:"M7 13L12 9L17 13",vectorEffect:"non-scaling-stroke"})});var p5=a(A(),1),FP=a(y(),1),Ub=(0,FP.jsx)(p5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,FP.jsx)(p5.Path,{d:"M5 10H7M8 10H10M11 10H13M14 10H16M17 10H19M5 14H7M8 14H16M17 14H19M4 18.25H20C20.6904 18.25 21.25 17.6904 21.25 17V7C21.25 6.30964 20.6904 5.75 20 5.75H4C3.30964 5.75 2.75 6.30964 2.75 7V17C2.75 17.6904 3.30964 18.25 4 18.25Z",vectorEffect:"non-scaling-stroke"})});var m5=a(A(),1),VP=a(y(),1),um=(0,VP.jsx)(m5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,VP.jsx)(m5.Path,{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})});var f5=a(A(),1),zP=a(y(),1),Wb=(0,zP.jsx)(f5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,zP.jsx)(f5.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 Gb=a(A(),1),$b=a(y(),1),HP=(0,$b.jsxs)(Gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$b.jsx)(Gb.Path,{d:"M14.75 5.75H19C19.6904 5.75 20.25 6.30964 20.25 7V17C20.25 17.6904 19.6904 18.25 19 18.25H14.75M14.75 5.75V18.25M14.75 5.75H9.25M14.75 18.25H9.25M9.25 18.25H5C4.30964 18.25 3.75 17.6904 3.75 17V7C3.75 6.30964 4.30964 5.75 5 5.75H9.25M9.25 18.25V5.75",vectorEffect:"non-scaling-stroke"}),(0,$b.jsx)(Gb.Path,{d:"M14.75 18.25V5.75H9.25V18.25H14.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var g5=a(A(),1),jP=a(y(),1),UP=(0,jP.jsx)(g5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,jP.jsx)(g5.Path,{d:"M14.75 5.75H19C19.6904 5.75 20.25 6.30964 20.25 7V17C20.25 17.6904 19.6904 18.25 19 18.25H14.75M14.75 5.75V18.25M14.75 5.75H9.25M14.75 18.25H9.25M9.25 18.25H5C4.30964 18.25 3.75 17.6904 3.75 17V7C3.75 6.30964 4.30964 5.75 5 5.75H9.25M9.25 18.25V5.75",vectorEffect:"non-scaling-stroke"})});var Hg=a(A(),1),jg=a(y(),1),qb=(0,jg.jsxs)(Hg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,jg.jsx)(Hg.Path,{d:"M8 18.0476V16C8 14.8954 8.89543 14 10 14H14C15.1046 14 16 14.8954 16 16V18.0476",vectorEffect:"non-scaling-stroke"}),(0,jg.jsx)(Hg.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"}),(0,jg.jsx)(Hg.Path,{d:"M13.75 10C13.75 10.9665 12.9665 11.75 12 11.75C11.0335 11.75 10.25 10.9665 10.25 10C10.25 9.0335 11.0335 8.25 12 8.25C12.9665 8.25 13.75 9.0335 13.75 10Z",vectorEffect:"non-scaling-stroke"})]});var Zb=a(A(),1),Kb=a(y(),1),WP=(0,Kb.jsxs)(Zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Kb.jsx)(Zb.Path,{d:"M8 16.25H18C18.6904 16.25 19.25 15.6904 19.25 15V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V16.25V18.6596C4.75 19.1225 5.32471 19.3369 5.62784 18.9871L8 16.25ZM8 16.25V15C8 13.8954 8.89543 13 10 13H14C15.1046 13 16 13.8954 16 15V16.25",vectorEffect:"non-scaling-stroke"}),(0,Kb.jsx)(Zb.Path,{d:"M13.75 9C13.75 9.9665 12.9665 10.75 12 10.75C11.0335 10.75 10.25 9.9665 10.25 9C10.25 8.0335 11.0335 7.25 12 7.25C12.9665 7.25 13.75 8.0335 13.75 9Z",vectorEffect:"non-scaling-stroke"})]});var h5=a(A(),1),GP=a(y(),1),$P=(0,GP.jsx)(h5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,GP.jsx)(h5.Path,{d:"M8 12H12M8 9H16M4.75 16.25V6C4.75 5.30964 5.30964 4.75 6 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V15C19.25 15.6904 18.6904 16.25 18 16.25H8L5.62784 18.9871C5.32471 19.3369 4.75 19.1225 4.75 18.6596V16.25Z",vectorEffect:"non-scaling-stroke"})});var Ug=a(A(),1),Wg=a(y(),1),qP=(0,Wg.jsxs)(Ug.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Wg.jsx)(Ug.Path,{d:"M13.25 6.5V5.25C13.25 4.97386 13.0261 4.75 12.75 4.75H5.25C4.97386 4.75 4.75 4.97386 4.75 5.25V13.0086C4.75 13.0977 4.85771 13.1423 4.92071 13.0793L7 11H8.5",vectorEffect:"non-scaling-stroke"}),(0,Wg.jsx)(Ug.Path,{d:"M7 19.25H14",vectorEffect:"non-scaling-stroke"}),(0,Wg.jsx)(Ug.Path,{d:"M12 15L9.5 15.5L10 13L18 5L20 7L12 15Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Yb=a(A(),1),Qb=a(y(),1),ZP=(0,Qb.jsxs)(Yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qb.jsx)(Yb.Path,{d:"M13.25 6.5V5.25C13.25 4.97386 13.0261 4.75 12.75 4.75H5.25C4.97386 4.75 4.75 4.97386 4.75 5.25V13.0086C4.75 13.0977 4.85771 13.1423 4.92071 13.0793L7 11H8.5",vectorEffect:"non-scaling-stroke"}),(0,Qb.jsx)(Yb.Path,{d:"M14.25 17L10.75 13L14.25 9M10.75 13H17.25C20.25 13 20.5 15.8 20.5 19",vectorEffect:"non-scaling-stroke"})]});var b5=a(A(),1),KP=a(y(),1),Xb=(0,KP.jsx)(b5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,KP.jsx)(b5.Path,{d:"M18 5.5H6C5.30964 5.5 4.75 6.05964 4.75 6.75V16V18.4096C4.75 18.8725 5.32471 19.0869 5.62784 18.7371L8 16H18C18.6904 16 19.25 15.4404 19.25 14.75V6.75C19.25 6.05964 18.6904 5.5 18 5.5Z",vectorEffect:"non-scaling-stroke"})});var y5=a(A(),1),YP=a(y(),1),Jb=(0,YP.jsx)(y5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YP.jsx)(y5.Path,{d:"M19.25 10V8C19.25 7.30964 18.6904 6.75 18 6.75H16M19.25 14V16C19.25 16.6904 18.6904 17.25 18 17.25H16M13.5 17.25H10.5M8 17.25H6C5.30964 17.25 4.75 16.6904 4.75 16V14M13.5 6.75H10.5M8 6.75H6C5.30964 6.75 4.75 7.30964 4.75 8V10",vectorEffect:"non-scaling-stroke"})});var ey=a(A(),1),ty=a(y(),1),dm=(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.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,ty.jsx)(ey.Path,{d:"M11.5 13.4V3.75H16.5V13.4L14 10.3L11.5 13.4Z",fill:"currentColor",stroke:"none"})]});var v5=a(A(),1),QP=a(y(),1),pm=(0,QP.jsx)(v5.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)(v5.Path,{d:"M6.75 6.75V16C6.75 16.6904 7.30964 17.25 8 17.25H17.25M6.75 6.75H4M6.75 6.75V4M17.25 17.25V20M17.25 17.25H20M17.25 14.75V8C17.25 7.30964 16.6904 6.75 16 6.75H9.25",vectorEffect:"non-scaling-stroke"})});var _5=a(A(),1),XP=a(y(),1),mm=(0,XP.jsx)(_5.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)(_5.Path,{d:"M8.5 8.75H7C5.20507 8.75 3.75 10.2051 3.75 12C3.75 13.7949 5.20507 15.25 7 15.25H8.5M7.5 12H12.5M11.5 15.25H13C14.7949 15.25 16.25 13.7949 16.25 12C16.25 10.2051 14.7949 8.75 13 8.75H11.5M7.75 6.5V6C7.75 5.30964 8.30964 4.75 9 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9C8.30964 19.25 7.75 18.6904 7.75 18V17.5",vectorEffect:"non-scaling-stroke"})});var x5=a(A(),1),JP=a(y(),1),eB=(0,JP.jsx)(x5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,JP.jsx)(x5.Path,{d:"M8 12V8M8 4V8M8 8H12M8 8H4M8 8L10.8284 10.8284M8 8L5.17157 5.17157M8 8L10.8284 5.17157M8 8L5.17157 10.8284M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var ry=a(A(),1),oy=a(y(),1),tB=(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 17.5H20M4 12H20M10 6.5H20",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,oy.jsx)(ry.Path,{d:"M4.75 8V5L6.75 6.5L4.75 8Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var k5=a(A(),1),rB=a(y(),1),oB=(0,rB.jsx)(k5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,rB.jsx)(k5.Path,{d:"M12 9L12 14M12 15.5V17M11.1284 5.04947L3.83827 18.0097C3.46331 18.6763 3.94502 19.5 4.70985 19.5H19.2902C20.055 19.5 20.5367 18.6763 20.1617 18.0097L12.8716 5.04947C12.4893 4.36982 11.5107 4.36982 11.1284 5.04947Z",vectorEffect:"non-scaling-stroke"})});var w5=a(A(),1),nB=a(y(),1),ny=(0,nB.jsx)(w5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,nB.jsx)(w5.Path,{d:"M9.5 6.25H6.5C5.80964 6.25 5.25 6.80964 5.25 7.5V17.5C5.25 18.1904 5.80964 18.75 6.5 18.75H16.5C17.1904 18.75 17.75 18.1904 17.75 17.5V14.5M11.5 12.5L18.75 5.25M12.5 5.25H18.75V11.5",vectorEffect:"non-scaling-stroke"})});var C5=a(A(),1),aB=a(y(),1),ay=(0,aB.jsx)(C5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,aB.jsx)(C5.Path,{d:"M3.75 6V17.5C3.75 18.1904 4.30964 18.75 5 18.75H19C19.6904 18.75 20.25 18.1904 20.25 17.5V8.5C20.25 7.80964 19.6904 7.25 19 7.25H13.3463C12.8352 7.25 12.3755 6.93881 12.1857 6.46424L11.8143 5.53576C11.6245 5.06119 11.1648 4.75 10.6537 4.75H5C4.30964 4.75 3.75 5.30964 3.75 6Z",vectorEffect:"non-scaling-stroke"})});var S5=a(A(),1),iB=a(y(),1),sB=(0,iB.jsx)(S5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iB.jsx)(S5.Path,{d:"M9 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V6C4.75 5.30964 5.30964 4.75 6 4.75H9M15 4.75L16.5 4.75M15 19.25H16.5M12 22V2M19.25 16.5V14.5M19.25 13V11M19.25 9.5V7.5M18 4.75C18.6904 4.75 19.25 5.30964 19.25 6M18 19.25C18.6904 19.25 19.25 18.6904 19.25 18",vectorEffect:"non-scaling-stroke"})});var T5=a(A(),1),lB=a(y(),1),cB=(0,lB.jsx)(T5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lB.jsx)(T5.Path,{d:"M4.75 9L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 9M19.25 15L19.25 16.5M4.75 15L4.75 16.5M2 12L22 12M7.5 19.25L9.5 19.25M11 19.25L13 19.25M14.5 19.25L16.5 19.25M19.25 18C19.25 18.6904 18.6904 19.25 18 19.25M4.75 18C4.75 18.6904 5.30964 19.25 6 19.25",vectorEffect:"non-scaling-stroke"})});var iy=a(A(),1),sy=a(y(),1),uB=(0,sy.jsxs)(iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,sy.jsx)(iy.Path,{d:"M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V14.25M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V14.25M9.75 4.75V14.25M19.25 14.25V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.25M19.25 14.25H9.75M9.75 14.25H4.75",vectorEffect:"non-scaling-stroke"}),(0,sy.jsx)(iy.Path,{d:"M19.25 15.5V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15.5C4.75 14.8096 5.30964 14.25 6 14.25H18C18.6904 14.25 19.25 14.8096 19.25 15.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var E5=a(A(),1),dB=a(y(),1),pB=(0,dB.jsx)(E5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,dB.jsx)(E5.Path,{d:"M20 8H4M13.5 16H4M20 13L17 16L20 19",vectorEffect:"non-scaling-stroke"})});var P5=a(A(),1),mB=a(y(),1),fB=(0,mB.jsx)(P5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mB.jsx)(P5.Path,{d:"M4 8H20M10.5 16H20M4 13L7 16L4 19",vectorEffect:"non-scaling-stroke"})});var xd=a(A(),1),kd=a(y(),1),ly=(0,kd.jsxs)(xd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,kd.jsx)(xd.Path,{d:"M13 8H4M13 16H4",vectorEffect:"non-scaling-stroke"}),(0,kd.jsx)(xd.Path,{d:"M18 9.25C17.3096 9.25 16.75 8.69036 16.75 8C16.75 7.30964 17.3096 6.75 18 6.75C18.6904 6.75 19.25 7.30964 19.25 8C19.25 8.69036 18.6904 9.25 18 9.25Z",fill:"currentColor",stroke:"none"}),(0,kd.jsx)(xd.Path,{d:"M18 17.25C17.3096 17.25 16.75 16.6904 16.75 16C16.75 15.3096 17.3096 14.75 18 14.75C18.6904 14.75 19.25 15.3096 19.25 16C19.25 16.6904 18.6904 17.25 18 17.25Z",fill:"currentColor",stroke:"none"}),(0,kd.jsx)(xd.Path,{d:"M18 9.25C17.3096 9.25 16.75 8.69036 16.75 8C16.75 7.30964 17.3096 6.75 18 6.75C18.6904 6.75 19.25 7.30964 19.25 8C19.25 8.69036 18.6904 9.25 18 9.25Z",vectorEffect:"non-scaling-stroke"}),(0,kd.jsx)(xd.Path,{d:"M18 17.25C17.3096 17.25 16.75 16.6904 16.75 16C16.75 15.3096 17.3096 14.75 18 14.75C18.6904 14.75 19.25 15.3096 19.25 16C19.25 16.6904 18.6904 17.25 18 17.25Z",vectorEffect:"non-scaling-stroke"})]});var wd=a(A(),1),Cd=a(y(),1),cy=(0,Cd.jsxs)(wd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Cd.jsx)(wd.Path,{d:"M11 8H20M11 16H20",vectorEffect:"non-scaling-stroke"}),(0,Cd.jsx)(wd.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",fill:"currentColor",stroke:"none"}),(0,Cd.jsx)(wd.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",fill:"currentColor",stroke:"none"}),(0,Cd.jsx)(wd.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",vectorEffect:"non-scaling-stroke"}),(0,Cd.jsx)(wd.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",vectorEffect:"non-scaling-stroke"})]});var Gg=a(A(),1),$g=a(y(),1),uy=(0,$g.jsxs)(Gg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$g.jsx)(Gg.Path,{d:"M13 8H4M13 16H4",vectorEffect:"non-scaling-stroke"}),(0,$g.jsx)(Gg.Path,{d:"M20.1241 17.5H18.1241C18.1241 15.4333 20.1241 15.95 20.1241 14.4C20.1241 13.625 19.1241 12.975 18.1241 13.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,$g.jsx)(Gg.Path,{d:"M19 10V5.5L17.5 6",vectorEffect:"non-scaling-stroke"})]});var qg=a(A(),1),Zg=a(y(),1),vs=(0,Zg.jsxs)(qg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Zg.jsx)(qg.Path,{d:"M11 8H20M11 16H20",vectorEffect:"non-scaling-stroke"}),(0,Zg.jsx)(qg.Path,{d:"M6.62408 17.5H4.62408C4.62408 15.4333 6.62408 15.95 6.62408 14.4C6.62408 13.625 5.62408 12.975 4.62408 13.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Zg.jsx)(qg.Path,{d:"M5.5 10V5.5L4 6",vectorEffect:"non-scaling-stroke"})]});var dy=a(A(),1),py=a(y(),1),gB=(0,py.jsxs)(dy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,py.jsx)(dy.Path,{d:"M7.75 20V4.75L11.75 4.75M11.75 20V4.75M11.75 4.75H15.5M17.5 8.5L20.5 12L17.5 15.5",vectorEffect:"non-scaling-stroke"}),(0,py.jsx)(dy.Path,{d:"M2.75 9C2.75 11.3472 4.65279 13.25 7 13.25H7.75V4.75H7C4.65279 4.75 2.75 6.65279 2.75 9Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var my=a(A(),1),fy=a(y(),1),gy=(0,fy.jsxs)(my.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,fy.jsx)(my.Path,{d:"M16 13L19 16L16 19",vectorEffect:"non-scaling-stroke"}),(0,fy.jsx)(my.Path,{d:"M4 8H20M4 16H13.5",vectorEffect:"non-scaling-stroke"})]});var hy=a(A(),1),by=a(y(),1),yy=(0,by.jsxs)(hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,by.jsx)(hy.Path,{d:"M8 13L5 16L8 19",vectorEffect:"non-scaling-stroke"}),(0,by.jsx)(hy.Path,{d:"M20 8H4M20 16H10.5",vectorEffect:"non-scaling-stroke"})]});var B5=a(A(),1),hB=a(y(),1),fm=(0,hB.jsx)(B5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,hB.jsx)(B5.Path,{d:"M4.75 10V4.75H10M4.75 4.75L10 10M14 19.25H19.25V14M19.25 19.25L14 14",vectorEffect:"non-scaling-stroke"})});var vy=a(A(),1),_y=a(y(),1),gm=(0,_y.jsxs)(vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,_y.jsx)(vy.Path,{d:"M20.25 6.75V19C20.25 19.6904 19.6904 20.25 19 20.25H6.75",vectorEffect:"non-scaling-stroke"}),(0,_y.jsx)(vy.Path,{d:"M17.25 12.596L14.2948 9.6397C14.2558 9.60064 14.1925 9.60063 14.1534 9.63969L10.5584 13.2347C10.5245 13.2686 10.4713 13.2737 10.4316 13.2469L7.39239 11.1909C7.35761 11.1674 7.31184 11.1681 7.27781 11.1927L3.75 13.7408M17.25 12.596V5C17.25 4.30964 16.6904 3.75 16 3.75H5C4.30964 3.75 3.75 4.30964 3.75 5V13.7408M17.25 12.596V16C17.25 16.6904 16.6904 17.25 16 17.25H5C4.30964 17.25 3.75 16.6904 3.75 16V13.7408",vectorEffect:"non-scaling-stroke"})]});var I5=a(A(),1),bB=a(y(),1),Ei=(0,bB.jsx)(I5.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)(I5.Path,{d:"M12 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V12M12 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V12M12 4.75V19.25M12 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V12M12 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V12M19.25 12H4.75",vectorEffect:"non-scaling-stroke"})});var xy=a(A(),1),ky=a(y(),1),wy=(0,ky.jsxs)(xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ky.jsx)(xy.Path,{d:"M4.75 11C4.75 10.3096 5.30964 9.75 6 9.75H13C13.6904 9.75 14.25 10.3096 14.25 11V18C14.25 18.6904 13.6904 19.25 13 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V11Z",vectorEffect:"non-scaling-stroke"}),(0,ky.jsx)(xy.Path,{d:"M9.75 6C9.75 5.30964 10.3096 4.75 11 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V13C19.25 13.6904 18.6904 14.25 18 14.25H11C10.3096 14.25 9.75 13.6904 9.75 13V6Z",vectorEffect:"non-scaling-stroke"})]});var Cy=a(A(),1),Sy=a(y(),1),yB=(0,Sy.jsxs)(Cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Sy.jsx)(Cy.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"}),(0,Sy.jsx)(Cy.Path,{d:"M19.25 8.5V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V8.5C4.75 9.19036 5.30964 9.75 6 9.75H18C18.6904 9.75 19.25 9.19036 19.25 8.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Ty=a(A(),1),Ey=a(y(),1),vB=(0,Ey.jsxs)(Ty.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ey.jsx)(Ty.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Ey.jsx)(Ty.Path,{d:"M17 17C17 16.1556 17 10.213 17 7.75L14 8.55556",vectorEffect:"non-scaling-stroke"})]});var Py=a(A(),1),By=a(y(),1),_B=(0,By.jsxs)(Py.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,By.jsx)(Py.Path,{d:"M19.1415 16.25H14.75C14.75 11.7122 19.25 12.9034 19.25 9.5C19.25 7.79832 16.9457 6.29831 14.75 8",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,By.jsx)(Py.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var Iy=a(A(),1),Ny=a(y(),1),xB=(0,Ny.jsxs)(Iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ny.jsx)(Iy.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Ny.jsx)(Iy.Path,{d:"M14.5 15.4934C17 17.1638 19.5 15.8275 19.5 13.823C19.5 13.2323 19.2366 12.6658 18.7678 12.2481C18.2989 11.8305 17.663 11.5958 17 11.5958M17 11.5958C17.663 11.5958 18.2989 11.3612 18.7678 10.9435C19.2366 10.5258 19.5 9.95933 19.5 9.36864C19.5 7.69825 17.125 6.58466 15 7.69825M17 11.5958H16.75",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var My=a(A(),1),Ly=a(y(),1),kB=(0,Ly.jsxs)(My.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ly.jsx)(My.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Ly.jsx)(My.Path,{d:"M19.25 17V12.75M19.25 9V12.75M15 7V7.5L13.75 12.75H19.25",vectorEffect:"non-scaling-stroke"})]});var Ry=a(A(),1),Dy=a(y(),1),wB=(0,Dy.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,Dy.jsx)(Ry.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Dy.jsx)(Ry.Path,{d:"M14 15.4934C16.5 17.1638 19 15.8275 19 13.823C19 13.2323 18.7366 12.6658 18.2678 12.2482C17.7989 11.8305 17.163 11.5958 16.5 11.5958H14.25L14.75 7.75H18",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var Ay=a(A(),1),Oy=a(y(),1),CB=(0,Oy.jsxs)(Ay.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)(Ay.Path,{d:"M5.25 12H11M5.25 12V7.75M5.25 12L5.25 16.25M11 12V7.75M11 12V16.25",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"}),(0,Oy.jsx)(Ay.Path,{d:"M19.0092 8.10342C17.1095 7.1899 15.4694 8.08711 14.7634 9.38026C14.0574 10.6734 13.8551 12.0834 14.0986 13.62C14.177 14.1146 14.3884 14.8582 14.9041 15.3039C15.4198 15.7496 16.1193 16 16.8486 16C17.578 16 18.2775 15.7496 18.7932 15.3039C19.3089 14.8582 19.5986 14.2537 19.5986 13.6234C19.5986 12.9931 19.3089 12.3918 18.7932 11.9461C18.2775 11.5004 17.578 11.25 16.8486 11.25C16.1193 11.25 15.4198 11.5004 14.9041 11.9461C14.3884 12.3918 14.0986 12.9931 14.0986 13.6234",vectorEffect:"non-scaling-stroke"})]});var N5=a(A(),1),SB=a(y(),1),TB=(0,SB.jsx)(N5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,SB.jsx)(N5.Path,{d:"M6.75 5.25H17.25V16.375L12 12L6.75 16.375V5.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})});var M5=a(A(),1),EB=a(y(),1),PB=(0,EB.jsx)(M5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,EB.jsx)(M5.Path,{d:"M13.75 19.25H19.25V8.5L12 5L4.75 8.5V19.25H10.25M13.75 19.25V13.7H10.25V19.25M13.75 19.25H10.25",vectorEffect:"non-scaling-stroke"})});var L5=a(A(),1),BB=a(y(),1),IB=(0,BB.jsx)(L5.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)(L5.Path,{d:"M1.5 15V12M1.5 9V12M1.5 12H5.5M5.5 12V9M5.5 12V15M6.75 9.75H9M11.25 9.75H9M9 9.75V15M19.5 9V14.25H22.5M12.5 15V9.75H12.75L14.5 12H15L16.75 9.75H17V15",vectorEffect:"non-scaling-stroke"})});var R5=a(A(),1),NB=a(y(),1),Sd=(0,NB.jsx)(R5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,NB.jsx)(R5.Path,{d:"M19.25 14.2513L16.0707 11.0707C16.0317 11.0317 15.9683 11.0317 15.9293 11.0707L12.0584 14.9416C12.0245 14.9755 11.9713 14.9806 11.9316 14.9537L8.65791 12.7392C8.62313 12.7156 8.57736 12.7163 8.54332 12.7409L4.75 15.4808M19.25 14.2513V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V15.4808M19.25 14.2513V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V15.4808",vectorEffect:"non-scaling-stroke"})});var D5=a(A(),1),MB=a(y(),1),LB=(0,MB.jsx)(D5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,MB.jsx)(D5.Path,{d:"M8.25 21L4.75 17L8.25 13M4.75 17H14.125C17.5077 17 20.25 14.2577 20.25 10.875C20.25 7.49226 17.5077 4.75 14.125 4.75H12",vectorEffect:"non-scaling-stroke"})});var A5=a(A(),1),RB=a(y(),1),hm=(0,RB.jsx)(A5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,RB.jsx)(A5.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"})});var O5=a(A(),1),DB=a(y(),1),Fy=(0,DB.jsx)(O5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DB.jsx)(O5.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 F5=a(A(),1),AB=a(y(),1),Pi=(0,AB.jsx)(F5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,AB.jsx)(F5.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 Vy=a(A(),1),zy=a(y(),1),OB=(0,zy.jsxs)(Vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,zy.jsx)(Vy.Path,{d:"M12 12H20",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,zy.jsx)(Vy.Path,{d:"M6 13.25C6.69036 13.25 7.25 12.6904 7.25 12C7.25 11.3096 6.69036 10.75 6 10.75C5.30964 10.75 4.75 11.3096 4.75 12C4.75 12.6904 5.30964 13.25 6 13.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Hy=a(A(),1),jy=a(y(),1),pl=(0,jy.jsxs)(Hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,jy.jsx)(Hy.Path,{d:"M4 17.5H20M12 12H20M4 6.5H20",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,jy.jsx)(Hy.Path,{d:"M6 13.25C6.69036 13.25 7.25 12.6904 7.25 12C7.25 11.3096 6.69036 10.75 6 10.75C5.30964 10.75 4.75 11.3096 4.75 12C4.75 12.6904 5.30964 13.25 6 13.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var V5=a(A(),1),FB=a(y(),1),VB=(0,FB.jsx)(V5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,FB.jsx)(V5.Path,{d:"M7.75 6.5V6C7.75 5.30964 8.30964 4.75 9 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9C8.30964 19.25 7.75 18.6904 7.75 18V17.5M5 12H14.5M11.5 15L14.5 12L11.5 9",vectorEffect:"non-scaling-stroke"})});var z5=a(A(),1),zB=a(y(),1),bm=(0,zB.jsx)(z5.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)(z5.Path,{d:"M9.63852 15.2138C9.21283 15.3979 8.74333 15.5 8.25 15.5C6.317 15.5 4.75 13.933 4.75 12C4.75 10.067 6.317 8.5 8.25 8.5C10.183 8.5 11.5 9.75 12 12C12.5 14.25 13.817 15.5 15.75 15.5C17.683 15.5 19.25 13.933 19.25 12C19.25 10.067 17.683 8.5 15.75 8.5C15.2567 8.5 14.7872 8.60207 14.3615 8.78624",vectorEffect:"non-scaling-stroke"})});var Uy=a(A(),1),Wy=a(y(),1),HB=(0,Wy.jsxs)(Uy.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)(Uy.Path,{d:"M6.75 10.37C6.75 7.4705 9.10051 5.12 12 5.12C14.8995 5.12 17.25 7.4705 17.25 10.37C17.25 13.2695 14 17 12 19.25C10 17 6.75 13.2695 6.75 10.37Z",vectorEffect:"non-scaling-stroke"}),(0,Wy.jsx)(Uy.Path,{d:"M12 12A1.5 1.5 0 1 0 12 9A1.5 1.5 0 0 0 12 12Z",fill:"currentColor",stroke:"none"})]});var H5=a(A(),1),jB=a(y(),1),UB=(0,jB.jsx)(H5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,jB.jsx)(H5.Path,{d:"M3 14H5L6.8916 16.3645C6.93974 16.4247 7.03496 16.4101 7.06289 16.3383L10.2521 8.13755C10.4015 7.75318 10.7717 7.5 11.1841 7.5H19M17 11L14.5 13.5M12 16L14.5 13.5M14.5 13.5L17 16M14.5 13.5L12 11",vectorEffect:"non-scaling-stroke"})});var Kg=a(A(),1),Gy=a(y(),1),WB=(0,Gy.jsxs)(Kg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Gy.jsx)(Kg.Path,{d:"M14 8H21M14 12H21M14 16H21",vectorEffect:"non-scaling-stroke"}),(0,Gy.jsx)(Kg.Rect,{x:"3",y:"6",width:"8",height:"12",fill:"currentColor",stroke:"none"})]});var ac=a(A(),1),mu=a(y(),1),$y=(0,mu.jsxs)(ac.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,mu.jsx)(ac.Path,{d:"M14 12.375V6.51534C14 6.21609 13.7879 5.95882 13.4941 5.9018L11.8239 5.57758C11.5677 5.52784 11.341 5.37988 11.1924 5.1653L10.3985 4.01913C10.2818 3.85057 10.0898 3.75 9.88474 3.75H8.11526C7.91022 3.75 7.71822 3.85057 7.60147 4.01913L6.80758 5.1653C6.65896 5.37988 6.43232 5.52784 6.17608 5.57758L4.5059 5.9018C4.21213 5.95882 4 6.21609 4 6.51534V12.375C4 12.7202 4.27982 13 4.625 13H13.375C13.7202 13 14 12.7202 14 12.375Z",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Circle,{cx:"9",cy:"9",r:"1",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M20 17.25V9",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M17 10H20V9H17V10Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M11.75 18.5C12.4404 18.5 13 17.9404 13 17.25V16H11.75C11.0596 16 10.5 16.5596 10.5 17.25C10.5 17.9404 11.0596 18.5 11.75 18.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,mu.jsx)(ac.Path,{d:"M18.75 18.5C19.4404 18.5 20 17.9404 20 17.25V16H18.75C18.0596 16 17.5 16.5596 17.5 17.25C17.5 17.9404 18.0596 18.5 18.75 18.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var j5=a(A(),1),GB=a(y(),1),$B=(0,GB.jsx)(j5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,GB.jsx)(j5.Path,{d:"M5 12H19M5 18.25H19M5 5.75H19",vectorEffect:"non-scaling-stroke"})});var fu=a(A(),1),gu=a(y(),1),qy=(0,gu.jsxs)(fu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,gu.jsx)(fu.Path,{d:"M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z",fill:"currentColor",stroke:"none"}),(0,gu.jsx)(fu.Path,{d:"M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z",fill:"currentColor",stroke:"none"}),(0,gu.jsx)(fu.Path,{d:"M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z",fill:"currentColor",stroke:"none"}),(0,gu.jsx)(fu.Path,{d:"M11.75 18.25L12.25 18.25L12.25 17.75L11.75 17.75L11.75 18.25Z",vectorEffect:"non-scaling-stroke"}),(0,gu.jsx)(fu.Path,{d:"M11.75 12.25L12.25 12.25L12.25 11.75L11.75 11.75L11.75 12.25Z",vectorEffect:"non-scaling-stroke"}),(0,gu.jsx)(fu.Path,{d:"M11.75 6.25L12.25 6.25L12.25 5.75L11.75 5.75L11.75 6.25Z",vectorEffect:"non-scaling-stroke"})]});var U5=a(A(),1),qB=a(y(),1),ZB=(0,qB.jsx)(U5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,qB.jsx)(U5.Path,{d:"M4 10H20M4 14H8M10 14H14M16 14H20",vectorEffect:"non-scaling-stroke"})});var Zy=a(A(),1),Ky=a(y(),1),KB=(0,Ky.jsxs)(Zy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Ky.jsx)(Zy.Path,{d:"M4.75 9.25V16C4.75 16.6904 5.30964 17.25 6 17.25H8M4.75 9.25V6C4.75 5.30964 5.30964 4.75 6 4.75H16C16.6904 4.75 17.25 5.30964 17.25 6V8M4.75 9.25H8",vectorEffect:"non-scaling-stroke"}),(0,Ky.jsx)(Zy.Path,{d:"M10.75 11.25C10.75 10.9739 10.9739 10.75 11.25 10.75H18.75C19.0261 10.75 19.25 10.9739 19.25 11.25V18.75C19.25 19.0261 19.0261 19.25 18.75 19.25H11.25C10.9739 19.25 10.75 19.0261 10.75 18.75V11.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Yy=a(A(),1),Qy=a(y(),1),ym=(0,Qy.jsxs)(Yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qy.jsx)(Yy.Path,{d:"M9 16L13.5 12.8421L15 8L10.5 11.1579L9 16Z",fill:"currentColor",stroke:"none"}),(0,Qy.jsx)(Yy.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 W5=a(A(),1),YB=a(y(),1),Xy=(0,YB.jsx)(W5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YB.jsx)(W5.Path,{d:"M7 17.5L12 12L7 6.5M13 17.5L18 12L13 6.5",vectorEffect:"non-scaling-stroke"})});var G5=a(A(),1),QB=a(y(),1),XB=(0,QB.jsx)(G5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QB.jsx)(G5.Path,{d:"M19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25H8.65766L9.51577 16.6757M9.51577 16.6757L11.8243 9.75H12.3784L14.6869 16.6757L15.6386 19.5305C15.681 19.658 15.7027 19.7915 15.7027 19.9258V20M14.6869 16.6757H9.51577",vectorEffect:"non-scaling-stroke"})});var $5=a(A(),1),JB=a(y(),1),eI=(0,JB.jsx)($5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,JB.jsx)($5.Path,{d:"M7.25 9L7.25 6C7.25 5.30964 7.80964 4.75 8.5 4.75H15.5C16.1904 4.75 16.75 5.30964 16.75 6V9M7.25 15V18C7.25 18.6904 7.80964 19.25 8.5 19.25H15.5C16.1904 19.25 16.75 18.6904 16.75 18V15M4 12H20",vectorEffect:"non-scaling-stroke"})});var q5=a(A(),1),tI=a(y(),1),hu=(0,tI.jsx)(q5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,tI.jsx)(q5.Path,{d:"M8.5 8.25H15.5M8.5 11.75H15.5M8.5 15.25H15.5M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z",vectorEffect:"non-scaling-stroke"})});var Jy=a(A(),1),ev=a(y(),1),rI=(0,ev.jsxs)(Jy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ev.jsx)(Jy.Path,{d:"M7.75 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V5.75",vectorEffect:"non-scaling-stroke"}),(0,ev.jsx)(Jy.Path,{d:"M7.5 6.25H14.5M7.5 9.75H14.5M7.5 13.25H14.5M17.25 16V4C17.25 3.30964 16.6904 2.75 16 2.75H6C5.30964 2.75 4.75 3.30964 4.75 4L4.75 16C4.75 16.6904 5.30964 17.25 6 17.25H16C16.6904 17.25 17.25 16.6904 17.25 16Z",vectorEffect:"non-scaling-stroke"})]});var tv=a(A(),1),rv=a(y(),1),oI=(0,rv.jsxs)(tv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,rv.jsx)(tv.Path,{d:"M10.75 20V4.75L14.75 4.75M14.75 20V4.75M14.75 4.75H18.5",vectorEffect:"non-scaling-stroke"}),(0,rv.jsx)(tv.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 ov=a(A(),1),nv=a(y(),1),vm=(0,nv.jsxs)(ov.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,nv.jsx)(ov.Path,{d:"M5 19.25H12",vectorEffect:"non-scaling-stroke"}),(0,nv.jsx)(ov.Path,{d:"M10 15L7.5 15.5L8 13L16 5L18 7L10 15Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var Z5=a(A(),1),nI=a(y(),1),av=(0,nI.jsx)(Z5.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)(Z5.Path,{d:"M5 19L10 14M13.5355 17.5355L6.46447 10.4645C7.731 9.19794 9.50794 8.75292 11.1332 9.12941L14.5 4.50002L19.5 9.50002L14.8706 12.8669C15.2471 14.4921 14.8021 16.269 13.5355 17.5355Z",vectorEffect:"non-scaling-stroke"})});var Yg=a(A(),1),Qg=a(y(),1),aI=(0,Qg.jsxs)(Yg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Qg.jsx)(Yg.Path,{d:"M16.25 13.5V10.5L18.25 12L16.25 13.5Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Qg.jsx)(Yg.Path,{d:"M11.25 16.5C11.25 18.0188 10.0188 19.25 8.5 19.25C6.98122 19.25 5.75 18.0188 5.75 16.5C5.75 14.9812 6.98122 13.75 8.5 13.75C10.0188 13.75 11.25 14.9812 11.25 16.5Z",fill:"currentColor",stroke:"none"}),(0,Qg.jsx)(Yg.Path,{d:"M8.5 19.25C10.0188 19.25 11.25 18.0188 11.25 16.5C11.25 14.9812 10.0188 13.75 8.5 13.75C6.98122 13.75 5.75 14.9812 5.75 16.5C5.75 18.0188 6.98122 19.25 8.5 19.25ZM8.5 19.25C11.4867 19.25 11.75 16.5 11.75 15.1379V7.99998C11.75 4.9108 14.4 5.00254 16 5.00233",vectorEffect:"non-scaling-stroke"})]});var Xg=a(A(),1),Jg=a(y(),1),iv=(0,Jg.jsxs)(Xg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Jg.jsx)(Xg.Path,{d:"M15 10L20 10M15 15L20 15",vectorEffect:"non-scaling-stroke"}),(0,Jg.jsx)(Xg.Path,{d:"M11.25 16.5C11.25 18.0188 10.0188 19.25 8.5 19.25C6.98122 19.25 5.75 18.0188 5.75 16.5C5.75 14.9812 6.98122 13.75 8.5 13.75C10.0188 13.75 11.25 14.9812 11.25 16.5Z",fill:"currentColor",stroke:"none"}),(0,Jg.jsx)(Xg.Path,{d:"M8.5 19.25C10.0188 19.25 11.25 18.0188 11.25 16.5C11.25 14.9812 10.0188 13.75 8.5 13.75C6.98122 13.75 5.75 14.9812 5.75 16.5C5.75 18.0188 6.98122 19.25 8.5 19.25ZM8.5 19.25C11.4867 19.25 11.75 16.5 11.75 15.1379V7.99998C11.75 4.9108 14.4 5.00254 16 5.00233",vectorEffect:"non-scaling-stroke"})]});var K5=a(A(),1),iI=a(y(),1),sI=(0,iI.jsx)(K5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,iI.jsx)(K5.Path,{d:"M15.3995 11.5711L12.2175 8.38909L10.273 6.44454L7.67678 9.04074C7.3017 9.41581 7.09099 9.92452 7.09099 10.455L7.09099 13.455C7.09099 13.7202 6.98563 13.9745 6.7981 14.1621L5.14645 15.8137C4.95118 16.009 4.95118 16.3256 5.14645 16.5208L7.26777 18.6421C7.46303 18.8374 7.77961 18.8374 7.97487 18.6421L9.62652 16.9905C9.81406 16.8029 10.0684 16.6976 10.3336 16.6976H13.3336C13.8641 16.6976 14.3728 16.4869 14.7478 16.1118L17.344 13.5156L15.3995 11.5711ZM12.2175 8.38909L16.1066 4.5M15.3995 11.5711L19.2886 7.68198",vectorEffect:"non-scaling-stroke"})});var Y5=a(A(),1),lI=a(y(),1),eh=(0,lI.jsx)(Y5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,lI.jsx)(Y5.Path,{d:"M12 18V6M18 12H6",vectorEffect:"non-scaling-stroke"})});var th=a(A(),1),sv=a(y(),1),cI=(0,sv.jsxs)(th.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)(th.Path,{d:"M5 4.75H19M5 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,sv.jsx)(th.Rect,{x:"7",y:"9",width:"10",height:"6",fill:"currentColor",stroke:"none"})]});var rh=a(A(),1),lv=a(y(),1),uI=(0,lv.jsxs)(rh.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)(rh.Path,{d:"M5 4.75H13M5 19.25H13",vectorEffect:"non-scaling-stroke"}),(0,lv.jsx)(rh.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var oh=a(A(),1),cv=a(y(),1),dI=(0,cv.jsxs)(oh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,cv.jsx)(oh.Path,{d:"M11 4.75H19M11 19.25H19",vectorEffect:"non-scaling-stroke"}),(0,cv.jsx)(oh.Rect,{x:"5",y:"9",width:"14",height:"6",fill:"currentColor",stroke:"none"})]});var Q5=a(A(),1),pI=a(y(),1),_m=(0,pI.jsx)(Q5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,pI.jsx)(Q5.Path,{d:"M4 15H20M4 19H13M4.75 12V11C4.75 9.89543 5.64543 9 6.75 9H10.75C11.8546 9 12.75 9.89543 12.75 11V12M10.5 4.5C10.5 5.4665 9.7165 6.25 8.75 6.25C7.7835 6.25 7 5.4665 7 4.5C7 3.5335 7.7835 2.75 8.75 2.75C9.7165 2.75 10.5 3.5335 10.5 4.5Z",vectorEffect:"non-scaling-stroke"})});var X5=a(A(),1),mI=a(y(),1),nh=(0,mI.jsx)(X5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,mI.jsx)(X5.Path,{d:"M4 5H20M4 9H13M6 19.25H9C9.69036 19.25 10.25 18.6904 10.25 18V15C10.25 14.3096 9.69036 13.75 9 13.75H6C5.30964 13.75 4.75 14.3096 4.75 15V18C4.75 18.6904 5.30964 19.25 6 19.25ZM15 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V15C19.25 14.3096 18.6904 13.75 18 13.75H15C14.3096 13.75 13.75 14.3096 13.75 15V18C13.75 18.6904 14.3096 19.25 15 19.25Z",vectorEffect:"non-scaling-stroke"})});var J5=a(A(),1),fI=a(y(),1),uv=(0,fI.jsx)(J5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,fI.jsx)(J5.Path,{d:"M4 5H20M4 9H13M17.5 13L17.3636 14.5M17.3636 14.5L17.1364 17M17.3636 14.5H15.75M17.3636 14.5H19.8636M17.1364 17L17 18.5M17.1364 17H15.5M17.1364 17H19.6364M20 13L19.8636 14.5M19.8636 14.5L19.6364 17M19.8636 14.5H21.25M19.6364 17L19.5 18.5M19.6364 17H21M6 13H12.5C13.1904 13 13.75 13.5596 13.75 14.25V18.291C13.75 18.9813 13.1904 19.541 12.5 19.541H7.76724L5.6268 21.9948C5.32306 22.343 4.75 22.1282 4.75 21.6662V19.541V14.25C4.75 13.5596 5.30964 13 6 13Z",vectorEffect:"non-scaling-stroke"})});var dv=a(A(),1),pv=a(y(),1),gI=(0,pv.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,pv.jsx)(dv.Path,{d:"M4 5H20M4 9H13",vectorEffect:"non-scaling-stroke"}),(0,pv.jsx)(dv.Path,{d:"M12.5 13H6C5.30964 13 4.75 13.5596 4.75 14.25V19.541V21.6662C4.75 22.1282 5.32306 22.343 5.6268 21.9948L7.76724 19.541H12.5C13.1904 19.541 13.75 18.9813 13.75 18.291V14.25C13.75 13.5596 13.1904 13 12.5 13Z",vectorEffect:"non-scaling-stroke"})]});var ew=a(A(),1),hI=a(y(),1),bI=(0,hI.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,hI.jsx)(ew.Path,{d:"M12 13H18.5C19.1904 13 19.75 13.5596 19.75 14.25V19.541V21.6662C19.75 22.1282 19.1769 22.343 18.8732 21.9948L16.7328 19.541H12C11.3096 19.541 10.75 18.9813 10.75 18.291V14.25C10.75 13.5596 11.3096 13 12 13Z",vectorEffect:"non-scaling-stroke"})});var tw=a(A(),1),yI=a(y(),1),vI=(0,yI.jsx)(tw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,yI.jsx)(tw.Path,{d:"M4 14H20M4 18H20M4 10H20M4 6H13",vectorEffect:"non-scaling-stroke"})});var ah=a(A(),1),ih=a(y(),1),mv=(0,ih.jsxs)(ah.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ih.jsx)(ah.Path,{d:"M4.75 7.25L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V7.25V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25ZM19.25 7.25H4.75",vectorEffect:"non-scaling-stroke"}),(0,ih.jsx)(ah.Path,{d:"M18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V7.25H19.25V6C19.25 5.30964 18.6904 4.75 18 4.75Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,ih.jsx)(ah.Path,{d:"M13 15.0988H11C11 13.0322 13 13.5489 13 11.9989C13 11.2239 12 10.5738 11 11.3488",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var fv=a(A(),1),gv=a(y(),1),_I=(0,gv.jsxs)(fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,gv.jsx)(fv.Path,{d:"M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"}),(0,gv.jsx)(fv.Path,{d:"M7.75 7.25H4.75V6M7.75 7.25V9.5C7.75 10.3921 7.08772 11.25 5 11.25M7.75 7.25V6M4.75 6V4.75H7.75V6M4.75 6H7.75M13 7.25H10V6M13 7.25V9.5C13 10.3921 12.3377 11.25 10.25 11.25M13 7.25V6M10 6V4.75H13V6M10 6H13",vectorEffect:"non-scaling-stroke"})]});var rw=a(A(),1),xI=a(y(),1),kI=(0,xI.jsx)(rw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,xI.jsx)(rw.Path,{d:"M19.25 9.25131L14.0498 7.02135C14.0187 7.00803 13.983 7.01131 13.9549 7.03006L11.0501 8.96658C11.0193 8.98714 10.9796 8.98896 10.947 8.97131L8.65525 7.72992C8.62147 7.71163 8.5802 7.7143 8.54907 7.73679L4.75 10.4808M19.25 9.25131V5C19.25 4.30964 18.6904 3.75 18 3.75H6C5.30964 3.75 4.75 4.30964 4.75 5V10.4808M19.25 9.25131V10C19.25 10.6904 18.6904 11.25 18 11.25H5.51917C5.09437 11.25 4.75 10.9056 4.75 10.4808M4 15H20M4 19H13",vectorEffect:"non-scaling-stroke"})});var ow=a(A(),1),wI=a(y(),1),hv=(0,wI.jsx)(ow.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wI.jsx)(ow.Path,{d:"M7 10H8.5M10 10H17M7 14H8.5M10 14H17M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})});var nw=a(A(),1),CI=a(y(),1),SI=(0,CI.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,CI.jsx)(nw.Path,{d:"M4 15H20M4 19H13M4.75 3.85V8.11432C4.75 8.24693 4.80268 8.37411 4.89645 8.46788L8.82502 12.3964C9.02028 12.5917 9.33686 12.5917 9.53212 12.3964L13.3964 8.53212C13.5917 8.33686 13.5917 8.02028 13.3964 7.82502L9.46788 3.89645C9.37411 3.80268 9.24693 3.75 9.11432 3.75H4.85C4.79477 3.75 4.75 3.79477 4.75 3.85Z",vectorEffect:"non-scaling-stroke"})});var bv=a(A(),1),yv=a(y(),1),TI=(0,yv.jsxs)(bv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,yv.jsx)(bv.Path,{d:"M18 4H6C4.9 4 4 4.9 4 6V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4ZM18.5 18C18.5 18.3 18.3 18.5 18 18.5H6C5.7 18.5 5.5 18.3 5.5 18V6C5.5 5.7 5.7 5.5 6 5.5H18C18.3 5.5 18.5 5.7 18.5 6V18ZM7 16.5H13V15H7V16.5ZM11 12.5H17V11H11V12.5ZM9 11H7V12.5H9V11ZM15 16.5H17V15H15V16.5Z",fill:"currentColor",stroke:"none"}),(0,yv.jsx)(bv.Path,{d:"M7 11.75H9M11 11.75H17M15 15.75H17M7 15.75H13M6 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25Z",vectorEffect:"non-scaling-stroke"})]});var aw=a(A(),1),EI=a(y(),1),PI=(0,EI.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,EI.jsx)(aw.Path,{d:"M17 6.5L12 12L17 17.5M11 6.5L6 12L11 17.5",vectorEffect:"non-scaling-stroke"})});var vv=a(A(),1),_v=a(y(),1),BI=(0,_v.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,_v.jsx)(vv.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,_v.jsx)(vv.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]});var xv=a(A(),1),kv=a(y(),1),II=(0,kv.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,kv.jsx)(xv.Path,{d:"M10 18L4 18L4 6L10 6L10 18Z",fill:"currentColor",stroke:"none"}),(0,kv.jsx)(xv.Path,{d:"M13 9.25H20M20 14.75H13",vectorEffect:"non-scaling-stroke"})]});var wv=a(A(),1),Cv=a(y(),1),NI=(0,Cv.jsxs)(wv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Cv.jsx)(wv.Path,{d:"M20 18L14 18L14 6L20 6L20 18Z",fill:"currentColor",stroke:"none"}),(0,Cv.jsx)(wv.Path,{d:"M4 9.25H11M11 14.75H4",vectorEffect:"non-scaling-stroke"})]});var Sv=a(A(),1),Tv=a(y(),1),MI=(0,Tv.jsxs)(Sv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Tv.jsx)(Sv.Path,{d:"M4 4.75H20M4 19.25H20",vectorEffect:"non-scaling-stroke"}),(0,Tv.jsx)(Sv.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 iw=a(A(),1),LI=a(y(),1),Ev=(0,LI.jsx)(iw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,LI.jsx)(iw.Path,{d:"M7 12H9M11 12H13M16 9.5L18 12L16 14.5",vectorEffect:"non-scaling-stroke"})});var sh=a(A(),1),lh=a(y(),1),Pv=(0,lh.jsxs)(sh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,lh.jsx)(sh.Path,{d:"M8 14.25C8 13.85 8 10.9167 8 9.75L6.5 10.25",vectorEffect:"non-scaling-stroke"}),(0,lh.jsx)(sh.Path,{d:"M11 12H13",vectorEffect:"non-scaling-stroke"}),(0,lh.jsx)(sh.Path,{d:"M17.5 13.5H15.5C15.5 11.4333 17.5 11.95 17.5 10.4C17.5 9.62503 16.5 8.975 15.5 9.74999",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var sw=a(A(),1),RI=a(y(),1),Bv=(0,RI.jsx)(sw.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)(sw.Path,{d:"M11 12L13 12M15 12H17M8 14.5L6 12L8 9.5",vectorEffect:"non-scaling-stroke"})});var lw=a(A(),1),DI=a(y(),1),Iv=(0,DI.jsx)(lw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,DI.jsx)(lw.Path,{d:"M9 12L11 12M13 12H15M18 9.5L20 12L18 14.5M6 14.5L4 12L6 9.5",vectorEffect:"non-scaling-stroke"})});var ch=a(A(),1),uh=a(y(),1),AI=(0,uh.jsxs)(ch.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,uh.jsx)(ch.Path,{d:"M10 11.25V6.75H4.75V11.25H10ZM10 11.25V16C10 17.5 9.5 19 6 19M19 11.25V6.75H13.75V11.25H19ZM19 11.25V16C19 17.5 18.5 19 15 19",vectorEffect:"non-scaling-stroke"}),(0,uh.jsx)(ch.Path,{d:"M10 6.75V11.25H4.75V6.75H10Z",fill:"currentColor",stroke:"none"}),(0,uh.jsx)(ch.Path,{d:"M19 6.75V11.25H13.75V6.75H19Z",fill:"currentColor",stroke:"none"})]});var cw=a(A(),1),OI=a(y(),1),FI=(0,OI.jsx)(cw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,OI.jsx)(cw.Path,{d:"M10.5 17H8C5.23858 17 3 14.7614 3 12C3 9.23858 5.23858 7 8 7H11M8.5 19.5L10.5 17L8.5 14.5M13.5 12H17.1143M21.5 12H20M13.5 7H19.4M13.5 17H14.8286M21.5 17H18M13 21L14.8286 17M21 3.5L19.4 7M19.4 7L17.1143 12M17.1143 12L14.8286 17",vectorEffect:"non-scaling-stroke"})});var uw=a(A(),1),VI=a(y(),1),zI=(0,VI.jsx)(uw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,VI.jsx)(uw.Path,{d:"M7 12H17",vectorEffect:"non-scaling-stroke"})});var dw=a(A(),1),HI=a(y(),1),jI=(0,HI.jsx)(dw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,HI.jsx)(dw.Path,{d:"M11.5 18.75H5.25V12.5M5.25 18.75L18.75 5.25M18.75 11.5V5.25H12.5",vectorEffect:"non-scaling-stroke"})});var Nv=a(A(),1),Mv=a(y(),1),UI=(0,Mv.jsxs)(Nv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Mv.jsx)(Nv.Path,{d:"M12 19.25C7.99593 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99593 4.75 12 4.75L14 4.75M12 2L14 4.75L12 7.5",vectorEffect:"non-scaling-stroke"}),(0,Mv.jsx)(Nv.Path,{d:"M9.22553 18.6981C12.9248 20.2304 17.1658 18.4737 18.6981 14.7745C19.7261 12.2927 19.2738 9.56712 17.7477 7.57918",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]});var pw=a(A(),1),WI=a(y(),1),GI=(0,WI.jsx)(pw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,WI.jsx)(pw.Path,{d:"M20 16.75L15 16.75C14.3096 16.75 13.75 16.1904 13.75 15.5L13.75 8.5C13.75 7.80964 14.3096 7.25 15 7.25L20 7.25M4 7.25L9 7.25C9.69036 7.25 10.25 7.80964 10.25 8.5L10.25 15.5C10.25 16.1904 9.69036 16.75 9 16.75L4 16.75",vectorEffect:"non-scaling-stroke"})});var Lv=a(A(),1),Rv=a(y(),1),Dv=(0,Rv.jsxs)(Lv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Rv.jsx)(Lv.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,Rv.jsx)(Lv.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 mw=a(A(),1),$I=a(y(),1),qI=(0,$I.jsx)(mw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,$I.jsx)(mw.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 fw=a(A(),1),ZI=a(y(),1),KI=(0,ZI.jsx)(fw.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)(fw.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 gw=a(A(),1),YI=a(y(),1),Av=(0,YI.jsx)(gw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,YI.jsx)(gw.Path,{d:"M15.75 5.69118V7C15.75 7.13807 15.8619 7.25 16 7.25H18C18.1381 7.25 18.25 7.13807 18.25 7V5C18.25 4.86193 18.1381 4.75 18 4.75H16C15.8619 4.75 15.75 4.86193 15.75 5V5.69118ZM15.75 5.69118L8.25 11.4265M15.75 18.3088V19C15.75 19.1381 15.8619 19.25 16 19.25H18C18.1381 19.25 18.25 19.1381 18.25 19V17C18.25 16.8619 18.1381 16.75 18 16.75H16C15.8619 16.75 15.75 16.8619 15.75 17V18.3088ZM15.75 18.3088L8.25 12.5735M8.25 11.4265V11C8.25 10.8619 8.13807 10.75 8 10.75H6C5.86193 10.75 5.75 10.8619 5.75 11V13C5.75 13.1381 5.86193 13.25 6 13.25H8C8.13807 13.25 8.25 13.1381 8.25 13V12.5735M8.25 11.4265V12.5735",vectorEffect:"non-scaling-stroke"})});var hw=a(A(),1),QI=a(y(),1),Ov=(0,QI.jsx)(hw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,QI.jsx)(hw.Path,{d:"M8 4.75H4.75V19.25H8M16 4.75H19.25V19.25H16M10 17L14 7",vectorEffect:"non-scaling-stroke"})});var Fv=a(A(),1),Vv=a(y(),1),XI=(0,Vv.jsxs)(Fv.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)(Fv.Path,{d:"M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75",vectorEffect:"non-scaling-stroke"}),(0,Vv.jsx)(Fv.Path,{d:"M6 19.25H9.75V9.75H4.75V18C4.75 18.6904 5.30964 19.25 6 19.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"})]});var bw=a(A(),1),JI=a(y(),1),eN=(0,JI.jsx)(bw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,JI.jsx)(bw.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 yw=a(A(),1),tN=a(y(),1),rN=(0,tN.jsx)(yw.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)(yw.Path,{d:"M5.75 12V18.25H12M12 5.75H18.25V12",vectorEffect:"non-scaling-stroke"})});var vw=a(A(),1),oN=a(y(),1),nN=(0,oN.jsx)(vw.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)(vw.Path,{d:"M7.25 20L7.25 15C7.25 14.3096 7.80965 13.75 8.5 13.75L15.5 13.75C16.1904 13.75 16.75 14.3096 16.75 15L16.75 20M16.75 4L16.75 9C16.75 9.69035 16.1904 10.25 15.5 10.25L8.5 10.25C7.80964 10.25 7.25 9.69036 7.25 9L7.25 4",vectorEffect:"non-scaling-stroke"})});var zv=a(A(),1),Hv=a(y(),1),jv=(0,Hv.jsxs)(zv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Hv.jsx)(zv.Path,{d:"M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,Hv.jsx)(zv.Path,{d:"M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5",vectorEffect:"non-scaling-stroke"})]});var Uv=a(A(),1),Wv=a(y(),1),aN=(0,Wv.jsxs)(Uv.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)(Uv.Path,{d:"M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z",vectorEffect:"non-scaling-stroke"}),(0,Wv.jsx)(Uv.Path,{d:"M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5",vectorEffect:"non-scaling-stroke"})]});var Gv=a(A(),1),$v=a(y(),1),iN=(0,$v.jsxs)(Gv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,$v.jsx)(Gv.Path,{d:"M10.25 13.25H4.75V11.25C4.75 10.6977 5.19772 10.25 5.75 10.25H9.25C9.80228 10.25 10.25 10.6977 10.25 11.25V13.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,$v.jsx)(Gv.Path,{d:"M13.75 14L13.75 11.25C13.75 10.6977 14.1977 10.25 14.75 10.25H18.25C18.8023 10.25 19.25 10.6977 19.25 11.25V14",vectorEffect:"non-scaling-stroke"})]});var qv=a(A(),1),Zv=a(y(),1),sN=(0,Zv.jsxs)(qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Zv.jsx)(qv.Path,{d:"M4.75 10L4.75 7.25C4.75 6.69772 5.19772 6.25 5.75 6.25H9.25C9.80228 6.25 10.25 6.69772 10.25 7.25V10",vectorEffect:"non-scaling-stroke"}),(0,Zv.jsx)(qv.Path,{d:"M4 13H20M4 17H13",vectorEffect:"non-scaling-stroke"})]});var Kv=a(A(),1),Yv=a(y(),1),lN=(0,Yv.jsxs)(Kv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Yv.jsx)(Kv.Path,{d:"M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.5M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9.75M9.75 4.75V9.5M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V14.5M9.75 19.25V14.5M9.75 14.5H4.75M9.75 14.5V9.5M4.75 14.5V9.5M9.75 9.5H4.75",vectorEffect:"non-scaling-stroke"}),(0,Yv.jsx)(Kv.Path,{d:"M17.5 12H14.5M11.5 12H14.5M14.5 12V9M14.5 12V15",vectorEffect:"non-scaling-stroke"})]});var Qv=a(A(),1),Xv=a(y(),1),cN=(0,Xv.jsxs)(Qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,Xv.jsx)(Qv.Path,{d:"M14.25 19.25L18 19.25C18.6904 19.25 19.25 18.6904 19.25 18L19.25 14.5M14.25 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 6C4.75 5.30964 5.30965 4.75 6 4.75L14.25 4.75M14.25 19.25L14.25 14.5M14.25 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 9.5M14.25 4.75L14.25 9.5M14.25 9.5L19.25 9.5M14.25 9.5L14.25 14.5M19.25 9.5L19.25 14.5M14.25 14.5L19.25 14.5",vectorEffect:"non-scaling-stroke"}),(0,Xv.jsx)(Qv.Path,{d:"M6.5 12L9.5 12M12.5 12L9.5 12M9.5 12L9.5 15M9.5 12L9.5 9",vectorEffect:"non-scaling-stroke"})]});var Jv=a(A(),1),e_=a(y(),1),uN=(0,e_.jsxs)(Jv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,e_.jsx)(Jv.Path,{d:"M9.75 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V18C4.75 18.6904 5.30964 19.25 6 19.25H9.75M9.75 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H9.75M9.75 4.75V19.25",vectorEffect:"non-scaling-stroke"}),(0,e_.jsx)(Jv.Path,{d:"M16.6213 14.1213L14.5 12M12.3787 9.87868L14.5 12M14.5 12L16.6213 9.87868M14.5 12L12.3787 14.1213",vectorEffect:"non-scaling-stroke"})]});var bu=a(A(),1),yu=a(y(),1),t_=(0,yu.jsxs)(bu.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,yu.jsx)(bu.Path,{d:"M11 8H20M15 16H20",vectorEffect:"non-scaling-stroke"}),(0,yu.jsx)(bu.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",fill:"currentColor",stroke:"none"}),(0,yu.jsx)(bu.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",fill:"currentColor",stroke:"none"}),(0,yu.jsx)(bu.Path,{d:"M6 9.25C6.69036 9.25 7.25 8.69036 7.25 8C7.25 7.30964 6.69036 6.75 6 6.75C5.30964 6.75 4.75 7.30964 4.75 8C4.75 8.69036 5.30964 9.25 6 9.25Z",vectorEffect:"non-scaling-stroke"}),(0,yu.jsx)(bu.Path,{d:"M6 17.25C6.69036 17.25 7.25 16.6904 7.25 16C7.25 15.3096 6.69036 14.75 6 14.75C5.30964 14.75 4.75 15.3096 4.75 16C4.75 16.6904 5.30964 17.25 6 17.25Z",vectorEffect:"non-scaling-stroke"}),(0,yu.jsx)(bu.Path,{d:"M11 17.25C11.6904 17.25 12.25 16.6904 12.25 16C12.25 15.3096 11.6904 14.75 11 14.75C10.3096 14.75 9.75 15.3096 9.75 16C9.75 16.6904 10.3096 17.25 11 17.25Z",vectorEffect:"non-scaling-stroke"})]});var r_=a(A(),1),o_=a(y(),1),dN=(0,o_.jsxs)(r_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,o_.jsx)(r_.Path,{d:"M19.25 9.75L19.25 6C19.25 5.30964 18.6904 4.75 18 4.75L14.5 4.75M19.25 9.75L19.25 18C19.25 18.6904 18.6904 19.25 18 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 9.75M19.25 9.75L14.5 9.75M4.75 9.75L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L9.5 4.75M4.75 9.75L9.5 9.75M9.5 9.75L9.5 4.75M9.5 9.75L14.5 9.75M9.5 4.75L14.5 4.75M14.5 9.75L14.5 4.75",vectorEffect:"non-scaling-stroke"}),(0,o_.jsx)(r_.Path,{d:"M12 17.5L12 14.5M12 11.5L12 14.5M12 14.5L15 14.5M12 14.5L9 14.5",vectorEffect:"non-scaling-stroke"})]});var n_=a(A(),1),a_=a(y(),1),pN=(0,a_.jsxs)(n_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,a_.jsx)(n_.Path,{d:"M4.75 14.25L4.75 18C4.75 18.6904 5.30964 19.25 6 19.25L9.5 19.25M4.75 14.25L4.75 6C4.75 5.30964 5.30964 4.75 6 4.75L18 4.75C18.6904 4.75 19.25 5.30964 19.25 6L19.25 14.25M4.75 14.25L9.5 14.25M19.25 14.25L19.25 18C19.25 18.6904 18.6904 19.25 18 19.25L14.5 19.25M19.25 14.25L14.5 14.25M14.5 14.25L14.5 19.25M14.5 14.25L9.5 14.25M14.5 19.25L9.5 19.25M9.5 14.25L9.5 19.25",vectorEffect:"non-scaling-stroke"}),(0,a_.jsx)(n_.Path,{d:"M12 6.5L12 9.5M12 12.5L12 9.5M12 9.5L9 9.5M12 9.5L15 9.5",vectorEffect:"non-scaling-stroke"})]});var i_=a(A(),1),s_=a(y(),1),mN=(0,s_.jsxs)(i_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,s_.jsx)(i_.Path,{d:"M19.25 9.75L19.25 6C19.25 5.30964 18.6904 4.75 18 4.75L6 4.75C5.30964 4.75 4.75 5.30964 4.75 6L4.75 9.75M19.25 9.75L19.25 18C19.25 18.6904 18.6904 19.25 18 19.25L6 19.25C5.30964 19.25 4.75 18.6904 4.75 18L4.75 9.75M19.25 9.75L4.75 9.75",vectorEffect:"non-scaling-stroke"}),(0,s_.jsx)(i_.Path,{d:"M9.87868 16.6213L12 14.5M14.1213 12.3787L12 14.5M12 14.5L14.1213 16.6213M12 14.5L9.87868 12.3787",vectorEffect:"non-scaling-stroke"})]});var _w=a(A(),1),fN=a(y(),1),gN=(0,fN.jsx)(_w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,fN.jsx)(_w.Path,{d:"M19.25 12V6C19.25 5.30964 18.6904 4.75 18 4.75H12M19.25 12V18C19.25 18.6904 18.6904 19.25 18 19.25H12M19.25 12H4.75M4.75 12V18C4.75 18.6904 5.30964 19.25 6 19.25H12M4.75 12V6C4.75 5.30964 5.30964 4.75 6 4.75H12M12 4.75V19.25",vectorEffect:"non-scaling-stroke"})});var dh=a(A(),1),ph=a(y(),1),hN=(0,ph.jsxs)(dh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,ph.jsx)(dh.Path,{d:"M4 13H20M4 17H13",vectorEffect:"non-scaling-stroke"}),(0,ph.jsx)(dh.Path,{d:"M10.25 9.25H4.75V7.25C4.75 6.69772 5.19772 6.25 5.75 6.25H9.25C9.80228 6.25 10.25 6.69772 10.25 7.25V9.25Z",fill:"currentColor",vectorEffect:"non-scaling-stroke"}),(0,ph.jsx)(dh.Path,{d:"M13.75 10L13.75 7.25C13.75 6.69772 14.1977 6.25 14.75 6.25H18.25C18.8023 6.25 19.25 6.69772 19.25 7.25V10",vectorEffect:"non-scaling-stroke"})]});var l_=a(A(),1),c_=a(y(),1),u_=(0,c_.jsxs)(l_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,c_.jsx)(l_.Path,{d:"M4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429Z",vectorEffect:"non-scaling-stroke"}),(0,c_.jsx)(l_.Path,{d:"M9.75 8.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor",stroke:"none"})]});var d_=a(A(),1),p_=a(y(),1),bN=(0,p_.jsxs)(d_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,p_.jsx)(d_.Path,{d:"M4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429Z",vectorEffect:"non-scaling-stroke"}),(0,p_.jsx)(d_.Path,{d:"M14.1563 12.7915L12.7421 14.2057C11.2807 12.7443 13.0603 11.6955 11.9643 10.5995C11.4163 10.0515 10.2495 10.2989 10.0904 11.554",strokeLinecap:"square",vectorEffect:"non-scaling-stroke"})]});var xw=a(A(),1),yN=a(y(),1),vN=(0,yN.jsx)(xw.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)(xw.Path,{d:"M4 15H11M4 19H8M12 15H20M9 19H15M4.75 12V11.7703L5.59234 9.24324M5.59234 9.24324L7.50676 3.5H7.96622L9.88063 9.24324L10.723 11.7703V12M9.88063 9.24324H5.59234",vectorEffect:"non-scaling-stroke"})});var kw=a(A(),1),_N=a(y(),1),xN=(0,_N.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,_N.jsx)(kw.Path,{d:"M14.5 14.5L9 9M12.8964 4.89645L20.1464 12.1464C20.3417 12.3417 20.3417 12.6583 20.1464 12.8536L12.8536 20.1464C12.6583 20.3417 12.3417 20.3417 12.1464 20.1464L4.89645 12.8964C4.80268 12.8027 4.75 12.6755 4.75 12.5429V4.85C4.75 4.79477 4.79477 4.75 4.85 4.75H12.5429C12.6755 4.75 12.8027 4.80268 12.8964 4.89645Z",vectorEffect:"non-scaling-stroke"})});var m_=a(A(),1),f_=a(y(),1),g_=(0,f_.jsxs)(m_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,f_.jsx)(m_.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,f_.jsx)(m_.Path,{d:"M15 15L11.75 12.25V8",vectorEffect:"non-scaling-stroke"})]});var ww=a(A(),1),kN=a(y(),1),ml=(0,kN.jsx)(ww.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,kN.jsx)(ww.Path,{d:"M4 15H20M4 19H13M4 4.5H7M7 4.5H10M7 4.5V12",vectorEffect:"non-scaling-stroke"})});var Cw=a(A(),1),wN=a(y(),1),vu=(0,wN.jsx)(Cw.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,wN.jsx)(Cw.Path,{d:"M4.75 15V19.25H12M12 19.25V4.5M12 19.25H19.25V15M17.5 10L12 4.5L6.5 10",vectorEffect:"non-scaling-stroke"})});var mh=a(A(),1),fh=a(y(),1),h_=(0,fh.jsxs)(mh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,fh.jsx)(mh.Path,{d:"M8.5 14C9 12 12.5 7.5 17 5.5",vectorEffect:"non-scaling-stroke"}),(0,fh.jsx)(mh.Path,{d:"M8 14C7.66667 11.1667 9 5 17 3C17.1667 4.66667 17.2 8.6 16 11C14.8 13.4 10.1667 14 8 14ZM8 14L7 16",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,fh.jsx)(mh.Path,{d:"M5 19.25H12",vectorEffect:"non-scaling-stroke"})]});var b_=a(A(),1),y_=a(y(),1),gh=(0,y_.jsxs)(b_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,y_.jsx)(b_.Path,{d:"M10 15L15 12L10 9V15Z",fill:"currentColor",stroke:"none"}),(0,y_.jsx)(b_.Path,{d:"M4.75 6C4.75 5.30964 5.30964 4.75 6 4.75H18C18.6904 4.75 19.25 5.30964 19.25 6V18C19.25 18.6904 18.6904 19.25 18 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V6Z",vectorEffect:"non-scaling-stroke"})]});var v_=a(A(),1),__=a(y(),1),CN=(0,__.jsxs)(v_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,__.jsx)(v_.Path,{d:"M6.28261 7.75L6.09288 9.93182M6.09288 9.93182L5.77668 13.5682M6.09288 9.93182H3.84783M6.09288 9.93182H9.57115M5.77668 13.5682L5.58696 15.75M5.77668 13.5682H3.5M5.77668 13.5682H9.25494M9.76087 7.75L9.57115 9.93182M9.57115 9.93182L9.25494 13.5682M9.57115 9.93182H11.5M9.25494 13.5682L9.06522 15.75M9.25494 13.5682H11.1522",vectorEffect:"non-scaling-stroke"}),(0,__.jsx)(v_.Path,{d:"M19 7.75C19 7.75 19 11.8033 19 13.0386C19 14.2739 19.1824 15 20.5 15M19 11.2941C19 9.23529 17.8235 8.41176 16.3824 8.41176C14.7905 8.41176 13.5 9.64706 13.5 11.7059C13.5 13.7647 14.7905 15 16.3824 15C17.5592 15 19 13.7647 19 12.1176",vectorEffect:"non-scaling-stroke"})]});var Dn=a(I(),1),Bi=a(L(),1),Go=a(F(),1),hh=a(H(),1),Ew=a(te(),1);var Sw=a(H(),1),xm=a(W(),1),Td=a(Ur(),1),SN=a(I(),1),Wj=a(ae(),1),Gj=a(_e(),1);function Tw(e,t,r){return(0,Sw.useSelect)(o=>o(Wj.store).canUser("update",{kind:e,name:t,id:r}),[e,t,r])}function ic(e={}){let t=(0,xm.useRef)(e),r=(0,xm.useRef)(!1),{getSettings:o}=(0,Sw.useSelect)(SN.store);(0,xm.useLayoutEffect)(()=>{t.current=e}),(0,xm.useEffect)(()=>{if(r.current||!t.current.url||!(0,Td.isBlobURL)(t.current.url))return;let n=(0,Td.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,Td.isBlobURL)(d?.url)||((0,Td.revokeBlobURL)(i),l(d),r.current=!1)},onError:d=>{(0,Td.revokeBlobURL)(i),c(d),r.current=!1}}))},[o])}function x_(){return(0,Sw.useSelect)(t=>{let{getSettings:r}=t(SN.store),{__experimentalDiscussionSettings:o}=r();return o?.avatarURL??""},[])}function ee(){return(0,Gj.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var Nr=a(y(),1),$j="core/accordion-item",Q2e="core/accordion-heading",X2e={name:$j};function qj({attributes:{autoclose:e,iconPosition:t,showIcon:r,headingLevel:o,levelOptions:n},clientId:i,setAttributes:s,isSelected:l}){let c=(0,hh.useRegistry)(),{getBlockOrder:u}=(0,hh.useSelect)(Dn.store),d=(0,Dn.useBlockProps)({role:"group"}),p=ee(),{updateBlockAttributes:m,insertBlock:f}=(0,hh.useDispatch)(Dn.store),h=(0,Dn.useBlockEditingMode)()==="contentOnly",b=(0,Dn.useInnerBlocksProps)(d,{defaultBlock:X2e,directInsert:!0});return(0,Nr.jsxs)(Nr.Fragment,{children:[l&&!h&&(0,Nr.jsxs)(Nr.Fragment,{children:[(0,Nr.jsx)(Dn.BlockControls,{children:(0,Nr.jsx)(Go.ToolbarGroup,{children:(0,Nr.jsx)(Dn.HeadingLevelDropdown,{value:o,options:n,onChange:w=>{let x=u(i),k=[];x.forEach(C=>{let S=u(C);k.push(...S)}),c.batch(()=>{s({headingLevel:w}),m(k,{level:w})})}})})}),(0,Nr.jsx)(Dn.BlockControls,{group:"other",children:(0,Nr.jsx)(Go.ToolbarButton,{onClick:()=>{let w=(0,Ew.createBlock)($j,{},[(0,Ew.createBlock)(Q2e,{level:o}),(0,Ew.createBlock)("core/accordion-panel",{})]);f(w,void 0,i)},children:(0,Bi.__)("Add item")})})]}),(0,Nr.jsx)(Dn.InspectorControls,{children:(0,Nr.jsxs)(Go.__experimentalToolsPanel,{label:(0,Bi.__)("Settings"),resetAll:()=>{s({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,Nr.jsx)(Go.__experimentalToolsPanelItem,{label:(0,Bi.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>s({autoclose:!1}),children:(0,Nr.jsx)(Go.ToggleControl,{label:(0,Bi.__)("Auto-close"),onChange:w=>{s({autoclose:w})},checked:e,help:(0,Bi.__)("Automatically close accordions when a new one is opened.")})}),(0,Nr.jsx)(Go.__experimentalToolsPanelItem,{label:(0,Bi.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>s({showIcon:!0}),children:(0,Nr.jsx)(Go.ToggleControl,{label:(0,Bi.__)("Show icon"),onChange:w=>{s({showIcon:w,iconPosition:w?t:"right"})},checked:r,help:(0,Bi.__)("Display a plus icon next to the accordion header.")})}),r&&(0,Nr.jsx)(Go.__experimentalToolsPanelItem,{label:(0,Bi.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>s({iconPosition:"right"}),children:(0,Nr.jsxs)(Go.__experimentalToggleGroupControl,{isBlock:!0,label:(0,Bi.__)("Icon Position"),value:t,onChange:w=>{s({iconPosition:w})},children:[(0,Nr.jsx)(Go.__experimentalToggleGroupControlOption,{label:(0,Bi.__)("Left"),value:"left"}),(0,Nr.jsx)(Go.__experimentalToggleGroupControlOption,{label:(0,Bi.__)("Right"),value:"right"})]})})]})},"setting"),(0,Nr.jsx)("div",{...b})]})}var Pw=a(I(),1),Zj=a(y(),1);function Kj(){let e=Pw.useBlockProps.save({role:"group"});return(0,Zj.jsx)("div",{...Pw.useInnerBlocksProps.save(e)})}var Bw={$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,link:!0,heading:!0,button:!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 Yj=a(te(),1);function D(e){if(!e)return;let{metadata:t,settings:r,name:o}=e;return(0,Yj.registerBlockType)({name:o,...t},r)}var{name:Qj}=Bw,exe=[["core/accordion-item"]],Xj={icon:cP,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,TN.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,TN.__)("Suspendisse commodo lacus, interdum et.")}}]}]},template:exe,templateInsertUpdatesSelection:!0,edit:qj,save:Kj},txe=()=>D({name:Qj,metadata:Bw,settings:Xj});var PN={};J(PN,{init:()=>nxe,metadata:()=>Nw,name:()=>oU,settings:()=>nU});var k_=a(L(),1),Ed=a(I(),1),Jj=a(H(),1),bh=a(F(),1);var sc=a(y(),1);function eU({attributes:e,clientId:t,setAttributes:r,isSelected:o}){let{openByDefault:n}=e,i=ee(),{isSelected:s}=(0,Jj.useSelect)(u=>o||n?{isSelected:!0}:{isSelected:u(Ed.store).hasSelectedInnerBlock(t,!0)},[t,o,n]),l=(0,Ed.useBlockProps)({className:T({"is-open":n||s})}),c=(0,Ed.useInnerBlocksProps)(l,{templateLock:"all",directInsert:!0});return(0,sc.jsxs)(sc.Fragment,{children:[(0,sc.jsx)(Ed.InspectorControls,{children:(0,sc.jsx)(bh.__experimentalToolsPanel,{label:(0,k_.__)("Settings"),resetAll:()=>{r({openByDefault:!1})},dropdownMenuProps:i,children:(0,sc.jsx)(bh.__experimentalToolsPanelItem,{label:(0,k_.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{r({openByDefault:!1})},children:(0,sc.jsx)(bh.ToggleControl,{label:(0,k_.__)("Open by default"),onChange:u=>{r({openByDefault:u})},checked:n,help:(0,k_.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,sc.jsx)("div",{...c})]})}var Iw=a(I(),1);var tU=a(y(),1);function rU({attributes:e}){let{openByDefault:t}=e,r=Iw.useBlockProps.save({className:T({"is-open":t})}),o=Iw.useInnerBlocksProps.save(r);return(0,tU.jsx)("div",{...o})}var Nw={$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,background:{gradient:!0},color:{background:!0,gradients:!0,link:!0,heading:!0,button:!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:oU}=Nw,oxe=[["core/accordion-heading"],["core/accordion-panel"]],nU={icon:sP,template:oxe,templateInsertUpdatesSelection:!0,edit:eU,save:rU},nxe=()=>D({name:oU,metadata:Nw,settings:nU});var BN={};J(BN,{init:()=>cxe,metadata:()=>Mw,name:()=>dU,settings:()=>pU});var aU=a(L(),1),iU=a(W(),1),_s=a(I(),1),sU=a(H(),1),km=a(y(),1);function lU({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,sU.useDispatch)(_s.store);(0,iU.useEffect)(()=>{n!==void 0&&i!==void 0&&(c(),t({iconPosition:n,showIcon:i}))},[n,i,t,c]);let[u,d]=(0,_s.useSettings)("typography.fluid","layout"),p=(0,_s.getTypographyClassesAndStyles)(e,{typography:{fluid:u},layout:{wideSize:d?.wideSize}}),m=(0,_s.useBlockProps)({className:T({"has-icon":i,"has-icon-left":i&&n==="left","has-icon-right":i&&n==="right"})}),f=(0,_s.__experimentalGetSpacingClassesAndStyles)(e);return(0,km.jsx)(l,{...m,children:(0,km.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:f.style,tabIndex:"-1",children:[i&&n==="left"&&(0,km.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,km.jsx)(_s.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:o,onChange:g=>t({title:g}),placeholder:(0,aU.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:p.style.letterSpacing,textDecoration:p.style.textDecoration}}),i&&n==="right"&&(0,km.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Pd=a(I(),1),wm=a(y(),1);function cU({attributes:e}){let{level:t,title:r,iconPosition:o,showIcon:n}=e,i="h"+(t||3),s=(0,Pd.getTypographyClassesAndStyles)(e),l=Pd.useBlockProps.save({className:T({"has-icon":n,"has-icon-left":n&&o==="left","has-icon-right":n&&o==="right"})}),c=(0,Pd.__experimentalGetSpacingClassesAndStyles)(e);return(0,wm.jsx)(i,{...l,children:(0,wm.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,wm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,wm.jsx)(Pd.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,wm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Mw={$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 ga=a(I(),1),an=a(y(),1),ixe={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=ga.useBlockProps.save(),l=(0,ga.__experimentalGetSpacingClassesAndStyles)(e);return(0,an.jsx)(i,{...s,children:(0,an.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:l.style,children:[n&&o==="left"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,an.jsx)(ga.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:r}),n&&o==="right"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},sxe={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,ga.getTypographyClassesAndStyles)(e),l=ga.useBlockProps.save(),c=(0,ga.__experimentalGetSpacingClassesAndStyles)(e);return(0,an.jsx)(i,{...l,children:(0,an.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,an.jsx)(ga.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,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},lxe={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,ga.getTypographyClassesAndStyles)(e),l=ga.useBlockProps.save(),c=(0,ga.__experimentalGetSpacingClassesAndStyles)(e);return(0,an.jsx)(i,{...l,children:(0,an.jsxs)("button",{type:"button",className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&o==="left"&&(0,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,an.jsx)(ga.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,an.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},uU=[lxe,sxe,ixe];var{name:dU}=Mw,pU={icon:aP,edit:lU,save:cU,deprecated:uU},cxe=()=>D({name:dU,metadata:Mw,settings:pU});var IN={};J(IN,{init:()=>pxe,metadata:()=>Rw,name:()=>yU,settings:()=>vU});var yh=a(I(),1),mU=a(H(),1),fU=a(y(),1);function gU({attributes:e,context:t,clientId:r,isSelected:o}){let{allowedBlocks:n,templateLock:i}=e,s=t["core/accordion-open-by-default"],{hasSelection:l}=(0,mU.useSelect)(d=>{if(o||s)return{hasSelection:!0};let{getBlockRootClientId:p,isBlockSelected:m,hasSelectedInnerBlock:f}=d(yh.store),g=p(r);return{hasSelection:m(g)||f(g,!0)}},[r,o,s]),c=(0,yh.useBlockProps)({hidden:!l,role:"region"}),u=(0,yh.useInnerBlocksProps)(c,{allowedBlocks:n,templateLock:i});return(0,fU.jsx)("div",{...u})}var Lw=a(I(),1),hU=a(y(),1);function bU(){let e=Lw.useBlockProps.save({role:"region"}),t=Lw.useInnerBlocksProps.save(e);return(0,hU.jsx)("div",{...t})}var Rw={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{background:!0,gradients:!0,link:!0,heading:!0,button:!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:yU}=Rw,dxe=[["core/paragraph",{}]],vU={icon:Jb,template:dxe,edit:gU,save:bU},pxe=()=>D({name:yU,metadata:Rw,settings:vU});var NN={};J(NN,{init:()=>fxe,metadata:()=>Dw,name:()=>wU,settings:()=>CU});var Dw={$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},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 ha=a(F(),1),sn=a(L(),1),Aw=a(I(),1),_U=a(bd(),1),xU=a(_e(),1);var uo=a(y(),1);function kU({attributes:e,setAttributes:t,name:r}){let{showLabel:o,showPostCounts:n,displayAsDropdown:i,type:s}=e,l=ee(),{content:c,status:u,error:d}=(0,_U.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),p=(0,xU.useDisabled)(),m=(0,Aw.useBlockProps)({ref:p});return(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)(Aw.InspectorControls,{children:(0,uo.jsxs)(ha.__experimentalToolsPanel,{label:(0,sn.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:l,children:[(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,uo.jsx)(ha.ToggleControl,{label:(0,sn.__)("Display as dropdown"),checked:i,onChange:()=>t({displayAsDropdown:!i})})}),i&&(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,uo.jsx)(ha.ToggleControl,{label:(0,sn.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({showPostCounts:!1}),children:(0,uo.jsx)(ha.ToggleControl,{label:(0,sn.__)("Show post counts"),checked:n,onChange:()=>t({showPostCounts:!n})})}),(0,uo.jsx)(ha.__experimentalToolsPanelItem,{label:(0,sn.__)("Group by"),isShownByDefault:!0,hasValue:()=>s!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,uo.jsx)(ha.SelectControl,{label:(0,sn.__)("Group by"),options:[{label:(0,sn.__)("Year"),value:"yearly"},{label:(0,sn.__)("Month"),value:"monthly"},{label:(0,sn.__)("Week"),value:"weekly"},{label:(0,sn.__)("Day"),value:"daily"}],value:s,onChange:f=>t({type:f})})})]})}),u==="loading"&&(0,uo.jsx)("div",{...m,children:(0,uo.jsx)(ha.Spinner,{})}),u==="error"&&(0,uo.jsx)("div",{...m,children:(0,uo.jsx)("p",{children:(0,sn.sprintf)((0,sn.__)("Error: %s"),d)})}),u==="success"&&(0,uo.jsx)(Eo,{wrapperProps:m,html:c})]})}var{name:wU}=Dw,CU={icon:vP,example:{},edit:kU},fxe=()=>D({name:wU,metadata:Dw,settings:CU});var LN={};J(LN,{init:()=>_xe,metadata:()=>Ow,name:()=>HU,settings:()=>jU});var Ow={$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 Cm=a(I(),1),qa=a(F(),1),xs=a(L(),1),Vw=a(qt(),1);var w_=a(ae(),1),Bd=a(L(),1),TU=a(H(),1);function EU(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 PU({commentId:e}){let[t]=(0,w_.useEntityProp)("root","comment","author_avatar_urls",e),[r]=(0,w_.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:s}=EU(n),l=x_();return{src:o?o[o.length-1]:l,minSize:i,maxSize:s,alt:r?(0,Bd.sprintf)((0,Bd.__)("%s Avatar"),r):(0,Bd.__)("Default Avatar")}}function BU({userId:e,postId:t,postType:r}){let{authorDetails:o}=(0,TU.useSelect)(u=>{let{getEditedEntityRecord:d,getUser:p}=u(w_.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}=EU(i),c=x_();return{src:n?n[n.length-1]:c,minSize:s,maxSize:l,alt:o?(0,Bd.sprintf)((0,Bd.__)("%s Avatar"),o?.name):(0,Bd.__)("Default Avatar")}}var MN=a(L(),1),NU=a(F(),1),MU=a(H(),1),LU=a(ae(),1),Fw=a(W(),1),RU=a(_e(),1),DU=a($o(),1),AU=a(y(),1),hxe={who:"authors",per_page:100,_fields:"id,name",context:"view"};function OU({value:e,onChange:t}){let[r,o]=(0,Fw.useState)(""),{authors:n,isLoading:i}=(0,MU.useSelect)(l=>{let{getUsers:c,isResolving:u}=l(LU.store),d={...hxe};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,DU.decodeEntities)(l.name)})),[n]);return(0,AU.jsx)(NU.ComboboxControl,{label:(0,MN.__)("User"),help:(0,MN.__)("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,RU.debounce)(o,300),isLoading:i})}var Zt=a(y(),1),FU=({setAttributes:e,avatar:t,attributes:r,selectUser:o})=>{let n=ee();return(0,Zt.jsx)(Cm.InspectorControls,{children:(0,Zt.jsxs)(qa.__experimentalToolsPanel,{label:(0,xs.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("Image size"),isShownByDefault:!0,hasValue:()=>r?.size!==96,onDeselect:()=>e({size:96}),children:(0,Zt.jsx)(qa.RangeControl,{label:(0,xs.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:r?.size,value:r?.size})}),(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>r?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,Zt.jsx)(qa.ToggleControl,{label:(0,xs.__)("Link to user profile"),onChange:()=>e({isLink:!r.isLink}),checked:r.isLink})}),r.isLink&&(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,Zt.jsx)(qa.ToggleControl,{label:(0,xs.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:r.linkTarget==="_blank"})}),o&&(0,Zt.jsx)(qa.__experimentalToolsPanelItem,{label:(0,xs.__)("User"),isShownByDefault:!0,hasValue:()=>!!r?.userId,onDeselect:()=>e({userId:void 0}),children:(0,Zt.jsx)(OU,{value:r?.userId,onChange:i=>{e({userId:i})}})})]})})},bxe=({children:e,isLink:t})=>t?(0,Zt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:r=>r.preventDefault(),children:e}):e,VU=({setAttributes:e,attributes:t,avatar:r,blockProps:o,isSelected:n})=>{let i=(0,Cm.__experimentalUseBorderProps)(t),s=(0,Vw.addQueryArgs)((0,Vw.removeQueryArgs)(r?.src,["s"]),{s:t?.size*2});return(0,Zt.jsx)("div",{...o,children:(0,Zt.jsx)(bxe,{isLink:t.isLink,children:(0,Zt.jsx)(qa.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,xs.isRTL)(),bottom:!0,left:(0,xs.isRTL)()},minWidth:r.minSize,maxWidth:r.maxSize,children:(0,Zt.jsx)("img",{src:s,alt:r.alt,className:T("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},yxe=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{commentId:n}=t,i=(0,Cm.useBlockProps)(),s=PU({commentId:n});return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(FU,{avatar:s,setAttributes:r,attributes:e,selectUser:!1}),(0,Zt.jsx)(VU,{attributes:e,avatar:s,blockProps:i,isSelected:o,setAttributes:r})]})},vxe=({attributes:e,context:t,setAttributes:r,isSelected:o})=>{let{postId:n,postType:i}=t,s=BU({userId:e?.userId,postId:n,postType:i}),l=(0,Cm.useBlockProps)();return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(FU,{selectUser:!0,attributes:e,avatar:s,setAttributes:r}),(0,Zt.jsx)(VU,{attributes:e,avatar:s,blockProps:l,isSelected:o,setAttributes:r})]})};function zU(e){return e?.context?.commentId||e?.context?.commentId===null?(0,Zt.jsx)(yxe,{...e}):(0,Zt.jsx)(vxe,{...e})}var{name:HU}=Ow,jU={icon:qb,edit:zU,example:{}},_xe=()=>D({name:HU,metadata:Ow,settings:jU});var ML={};J(ML,{init:()=>Kwe,metadata:()=>W4,name:()=>zq,settings:()=>Hq});var RN=a(I(),1),C_=a(y(),1),UU=[{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,C_.jsxs)("figure",{children:[(0,C_.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!RN.RichText.isEmpty(r)&&(0,C_.jsx)(RN.RichText.Content,{tagName:"figcaption",value:r})]})}}];var Nq=a(Ur(),1),Ii=a(F(),1);var UG=a(W(),1);var Sm=a(Ne(),1);function zw({controlled:e,default:t,name:r,state:o="value"}){let{current:n}=Sm.useRef(e!==void 0),[i,s]=Sm.useState(t),l=n&&e!==void 0?e:i,c=Sm.useCallback(u=>{n||s(u)},[]);return[l,c]}var xxe=a(Ne(),1),S_={...xxe};var GU=a(Ne(),1),WU={};function po(e,t){let r=GU.useRef(WU);return r.current===WU&&(r.current=e(t)),r}var DN=S_.useInsertionEffect,kxe=DN&&DN!==S_.useLayoutEffect?DN:e=>e();function Ve(e){let t=po(wxe).current;return t.next=e,kxe(t.effect),t.trampoline}function wxe(){let e={next:void 0,callback:Cxe,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Cxe(){}function Mr(){}var _u=Object.freeze([]),Za=Object.freeze({});var xu=a(Ne(),1);var $U=a(Ne(),1),Sxe=()=>{},Ge=typeof document<"u"?$U.useLayoutEffect:Sxe;var Hw=a(Ne(),1),AN=Hw.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function qU(){return Hw.useContext(AN)}var ZU=a(y(),1);function jw(e){let{children:t,elementsRef:r,labelsRef:o,onMapChange:n}=e,i=Ve(n),[,s]=xu.useState(!1),l=po(Exe).current,c=po(Txe).current,u=xu.useRef(0),d=xu.useRef(!0),p=xu.useRef(null),m=xu.useRef(null),f=Ve(()=>{d.current||(d.current=!0,s(k=>!k))}),g=Ve((k,C)=>{c.set(k,C),f()}),h=Ve(k=>{c.delete(k),f()}),b=Ve(k=>{let C=new Map;return r.current.length=0,o&&(o.current.length=0),k.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 _(k){if(m.current?.disconnect(),m.current=null,typeof MutationObserver!="function"||k.length<2)return;let C=new MutationObserver(P=>{if(!Ixe(P))return;let B=null;for(let N of k)if(N.isConnected){if(B&&KU(B,N)>0){C.disconnect(),f();return}B=N}});m.current=C;let S=new Set;for(let P=1;P<k.length;P+=1){let B=Bxe(k[P-1],k[P]);B&&S.add(B)}S.forEach(P=>C.observe(P,{childList:!0}))}let v=Ve(()=>{let[k,C]=Pxe(c),S=b(k),P=p.current,B=!P||P.length!==k.length||k.some((N,E)=>{let M=P[E];return N.index!==M.index||N.element!==M.element||N.registration.index!==M.registration.index||N.registration.metadata!==M.registration.metadata});_(C),p.current=k,d.current=!1,B&&(l.forEach(N=>N(S)),i(S))});Ge(()=>(!d.current&&p.current&&b(p.current),()=>{r.current=[],o&&(o.current=[])}),[r,o,b]),Ge(()=>{d.current&&v()}),Ge(()=>()=>{m.current?.disconnect(),d.current=!0},[]);let w=Ve(k=>(l.add(k),()=>{l.delete(k)})),x=xu.useMemo(()=>({register:g,unregister:h,subscribeMapChange:w,nextIndexRef:u}),[g,h,w,u]);return(0,ZU.jsx)(AN.Provider,{value:x,children:t})}function Txe(){return new Map}function Exe(){return new Set}function Pxe(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)=>KU(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 Bxe(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}function Ixe(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 KU(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Nxe(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 Mxe=Nxe("https://base-ui.com/production-error","Base UI"),ks=Mxe;var Id=a(Ne(),1);function Tm(e,t,r,o){let n=po(QU).current;return Lxe(n,e,t,r,o)&&XU(n,[e,t,r,o]),n.callback}function YU(e){let t=po(QU).current;return Rxe(t,e)&&XU(t,e),t.callback}function QU(){return{callback:null,cleanup:null,refs:[]}}function Lxe(e,t,r,o,n){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==n}function Rxe(e,t){return e.refs.length!==t.length||e.refs.some((r,o)=>r!==t[o])}function XU(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 eW=a(Ne(),1);var JU=a(Ne(),1),Dxe=parseInt(JU.version,10);function Uw(e){return Dxe>=e}function ON(e){if(!eW.isValidElement(e))return null;let t=e,r=t.props;return(Uw(19)?r?.ref:t.ref)??null}function T_(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function tW(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 rW(e,t){return typeof e=="function"?e(t):e}function oW(e,t){return typeof e=="function"?e(t):e}var FN={};function Wr(e,t,r,o,n){if(!r&&!o&&!n&&!e)return Ww(t);let i=Ww(e);return t&&(i=E_(i,t)),r&&(i=E_(i,r)),o&&(i=E_(i,o)),n&&(i=E_(i,n)),i}function nW(e){if(e.length===0)return FN;if(e.length===1)return Ww(e[0]);let t=Ww(e[0]);for(let r=1;r<e.length;r+=1)t=E_(t,e[r]);return t}function Ww(e){return VN(e)?{...iW(e,FN)}:Axe(e)}function E_(e,t){return VN(t)?iW(t,e):Oxe(e,t)}function Axe(e){let t={...e};for(let r in t){let o=t[r];aW(r,o)&&(t[r]=sW(o))}return t}function Oxe(e,t){if(!t)return e;for(let r in t){let o=t[r];switch(r){case"style":{e[r]=T_(e.style,o);break}case"className":{e[r]=zN(e.className,o);break}default:aW(r,o)?e[r]=Fxe(e[r],o):e[r]=o}}return e}function aW(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 VN(e){return typeof e=="function"}function iW(e,t){return VN(e)?e(t):e??FN}function Fxe(e,t){return t?e?(...r)=>{let o=r[0];if(lW(o)){let i=o;P_(i);let s=t(...r);return i.baseUIHandlerPrevented||e?.(...r),s}let n=t(...r);return e?.(...r),n}:sW(t):e}function sW(e){return e&&((...t)=>{let r=t[0];return lW(r)&&P_(r),e(...t)})}function P_(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zN(e,t){return t?e?t+" "+e:t:e}function lW(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var HN=a(Ne(),1);function xr(e,t,r={}){let o=t.render;r.enabled!==!1&&(o=jxe(o));let n=Vxe(t,r,o);if(r.enabled===!1)return null;let i=r.state??Za;return Uxe(e,o,n,i)}function Vxe(e,t,r){let{className:o,style:n}=e,{state:i=Za,ref:s,props:l,stateAttributesMapping:c,enabled:u=!0}=t,d=u?rW(o,i):void 0,p=u?oW(n,i):void 0,m=u?tW(i,c):Za,f=u&&l?zxe(l):void 0,g=u?T_(m,f)??{}:Za;return typeof document<"u"&&(u?Array.isArray(s)?g.ref=YU([g.ref,ON(r),...s]):g.ref=Tm(g.ref,ON(r),s):Tm(null,null)),u?(d!==void 0&&(g.className=zN(g.className,d)),p!==void 0&&(g.style=T_(g.style,p)),g):Za}function zxe(e){return Array.isArray(e)?nW(e):Wr(void 0,e)}var Hxe=Symbol.for("react.lazy");function jxe(e){if(e?.$$typeof!==Hxe)return e;let t=Id.Children.toArray(e)[0];return Id.isValidElement(t)?t:e}function Uxe(e,t,r,o){if(t){if(typeof t=="function")return t(r,o);let n=Wr(r,t.props);return n.ref=r.ref,Id.cloneElement(t,n)}if(e&&typeof e=="string")return Wxe(e,r);throw new Error(ks(8))}function Wxe(e,t){return e==="button"?(0,HN.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,HN.createElement)("img",{alt:"",...t,key:t.key}):Id.createElement(e,t)}var Gw=a(Ne(),1);var cW=0;function Gxe(e,t="mui"){let[r,o]=Gw.useState(e),n=e||r;return Gw.useEffect(()=>{r==null&&(cW+=1,o(`${t}-${cW}`))},[r,t]),n}var uW=S_.useId;function dW(e,t){if(uW!==void 0){let r=uW();return e??(t?`${t}-${r}`:r)}return Gxe(e,t)}function Ka(e){return dW(e,"base-ui")}var ws={};J(ws,{cancelOpen:()=>vke,chipRemovePress:()=>tke,clearPress:()=>eke,closePress:()=>Xxe,closeWatcher:()=>pke,decrementPress:()=>nke,disabled:()=>xke,drag:()=>hke,escapeKey:()=>dke,focusOut:()=>uke,imperativeAction:()=>Cke,incrementPress:()=>oke,initial:()=>wke,inputBlur:()=>ske,inputChange:()=>ake,inputClear:()=>ike,inputPaste:()=>lke,inputPress:()=>cke,itemPress:()=>Qxe,keyboard:()=>fke,linkPress:()=>Jxe,listNavigation:()=>mke,missing:()=>kke,none:()=>$xe,outsidePress:()=>Yxe,pointer:()=>gke,scrub:()=>yke,siblingOpen:()=>_ke,swipe:()=>Ske,trackPress:()=>rke,triggerFocus:()=>Kxe,triggerHover:()=>Zxe,triggerPress:()=>qxe,wheel:()=>bke,windowResize:()=>Tke});var $xe="none",qxe="trigger-press",Zxe="trigger-hover",Kxe="trigger-focus",Yxe="outside-press",Qxe="item-press",Xxe="close-press",Jxe="link-press",eke="clear-press",tke="chip-remove-press",rke="track-press",oke="increment-press",nke="decrement-press",ake="input-change",ike="input-clear",ske="input-blur",lke="input-paste",cke="input-press",uke="focus-out",dke="escape-key",pke="close-watcher",mke="list-navigation",fke="keyboard",gke="pointer",hke="drag",bke="wheel",yke="scrub",vke="cancel-open",_ke="sibling-open",xke="disabled",kke="missing",wke="initial",Cke="imperative-action",Ske="swipe",Tke="window-resize";function vh(e,t,r,o){let n=!1,i=!1,s=o??Za;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 UN=a(Ne(),1);var pW=a(Ne(),1);function $w(e){pW.useEffect(e,_u)}var qw=null,IUe=globalThis.requestAnimationFrame,jN=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.callbacks[r]=null,this.callbacksCount-=1)}},Zw=new jN;var lc=class e{static create(){return new e}static request(t){return Zw.request(t)}static cancel(t){return Zw.cancel(t)}currentId=qw;request(t){this.cancel(),this.currentId=Zw.request(()=>{this.currentId=qw,t()})}cancel=()=>{this.currentId!==qw&&(Zw.cancel(this.currentId),this.currentId=qw)};disposeEffect=()=>this.cancel};function mW(){let e=po(lc.create).current;return $w(e.disposeEffect),e}function _h(e,t=!1,r=!1,o=!1){let[n,i]=UN.useState(e&&t?"idle":void 0),[s,l]=UN.useState(e&&!o);return e&&!s&&(l(!0),i("starting")),!e&&s&&n!=="ending"&&!r&&i("ending"),!e&&!s&&n==="ending"&&i(void 0),Ge(()=>{if(!e&&s&&n!=="ending"&&r){let c=lc.request(()=>{i("ending")});return()=>{lc.cancel(c)}}},[e,s,n,r]),Ge(()=>{if(!e||t)return;let c=lc.request(()=>{i(void 0)});return()=>{lc.cancel(c)}},[t,e]),Ge(()=>{if(!e||!t)return;e&&s&&n!=="idle"&&i("starting");let c=lc.request(()=>{i("idle")});return()=>{lc.cancel(c)}},[t,e,s,n]),{mounted:s,setMounted:l,transitionStatus:n}}var Em=a(Ne(),1);function Kw(e={}){let{guess:t,label:r,metadata:o,textRef:n,index:i}=e,{register:s,unregister:l,subscribeMapChange:c,nextIndexRef:u}=qU(),d=Em.useRef(-1),[p,m]=Em.useState(i==null&&t?()=>{if(d.current===-1){let b=u.current;u.current+=1,d.current=b}return d.current}:-1),f=i??p,g=Em.useRef(null),h=Em.useCallback(b=>{let _=g.current;_&&l(_),g.current=b,b&&s(b,{metadata:o??null,index:i??null,label:r,textRef:n})},[i,s,l,o,r,n]);return Ge(()=>{if(i==null)return c(b=>{let _=g.current?b.get(g.current)?.index:null;_!=null&&m(_)})},[i,c]),{ref:h,index:f}}var xh={};J(xh,{endingStyle:()=>WN,startingStyle:()=>B_});var B_="data-starting-style",WN="data-ending-style";var Eke={[B_]:""},Pke={[WN]:""},Yw={transitionStatus(e){return e==="starting"?Eke:e==="ending"?Pke:null}};var wh=a(Ne(),1);function GN(){return typeof window<"u"}function fW(e){return gW(e)?(e.nodeName||"").toLowerCase():"#document"}function fl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bke(e){var t;return(t=(gW(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gW(e){return GN()?e instanceof Node||e instanceof fl(e).Node:!1}function Cs(e){return GN()?e instanceof HTMLElement||e instanceof fl(e).HTMLElement:!1}function Qw(e){return!GN()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fl(e).ShadowRoot}function hW(e){return/^(html|body|#document)$/.test(fW(e))}function Xw(e){return fl(e).getComputedStyle(e)}function $N(e){if(fW(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Qw(e)&&e.host||Bke(e);return Qw(t)?t.host:t}var Jw=a(Ne(),1),qN=Jw.createContext(void 0);function kh(e=!1){let t=Jw.useContext(qN);if(t===void 0&&!e)throw new Error(ks(16));return t}var bW=a(Ne(),1);function yW(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:bW.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 Pm(e){return e?.ownerDocument||document}function e4(e,t,{detail:r=0}={}){e.dispatchEvent(new(fl(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function KN(e={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:o=0,native:n=!0,composite:i}=e,s=wh.useRef(null),l=kh(!0),c=i??l!==void 0,{props:u}=yW({focusableWhenDisabled:r,disabled:t,composite:c,tabIndex:o,isNativeButton:n}),d=wh.useCallback(()=>{let f=s.current;ZN(f)&&c&&t&&u.disabled===void 0&&f.disabled&&(f.disabled=!1)},[t,u.disabled,c]);Ge(d,[d]);let p=wh.useCallback((f={})=>{let{onClick:g,onMouseDown:h,onKeyUp:b,onKeyDown:_,onPointerDown:v,...w}=f;return Wr({onClick(x){if(t){x.preventDefault();return}g?.(x)},onMouseDown(x){t||h?.(x)},onKeyDown(x){if(t||(P_(x),_?.(x),x.baseUIHandlerPrevented))return;let k=x.target===x.currentTarget,C=x.currentTarget,S=ZN(C),P=!n&&Ike(C),B=k&&(n?S:!P),N=x.key==="Enter",E=x.key===" ",M=C.getAttribute("role"),R=M?.startsWith("menuitem")||M==="option"||M==="gridcell";if(k&&c&&E){if(x.defaultPrevented&&R)return;x.preventDefault(),(!n||S)&&(x.preventBaseUIHandler(),e4(C,x));return}if(!B||n||!E&&!N){k&&P&&E&&x.preventDefault();return}x.defaultPrevented||(x.preventDefault(),N&&(x.preventBaseUIHandler(),e4(C,x)))},onKeyUp(x){if(!t){if(P_(x),b?.(x),x.target===x.currentTarget&&n&&c&&ZN(x.currentTarget)&&x.key===" "){x.preventDefault();return}x.baseUIHandlerPrevented||x.target===x.currentTarget&&!n&&!c&&!x.defaultPrevented&&x.key===" "&&(x.preventBaseUIHandler(),e4(x.currentTarget,x))}},onPointerDown(x){if(t){x.preventDefault();return}v?.(x)}},n?{type:"button"}:{role:"button"},u,w)},[t,u,c,n]),m=Ve(f=>{s.current=f,d()});return{getButtonProps:p,buttonRef:m}}function ZN(e){return Cs(e)&&e.tagName==="BUTTON"}function Ike(e){return Cs(e)&&e.tagName==="A"&&!!e.href}var wW=a(Ne(),1);var YN=a(_W(),1);function xW(e){return e==null?e:"current"in e?e.current:e}var t4=null;function Nke(e){if(!t4){let t=[];t4=t,queueMicrotask(()=>{t4=null,YN.flushSync(()=>{for(let r of t)r()})})}t4.push(e)}function kW(e,t=!1,r=!1){let o=mW();return Ve((n,i=null)=>{o.cancel();let s=xW(e);if(s==null)return;let l=s,c=()=>{if(!r){YN.flushSync(n);return}Nke(()=>{i?.aborted||n()})};if(typeof l.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){n();return}function u(){Promise.all(l.getAnimations().map(d=>d.finished)).then(()=>{i?.aborted||c()},()=>{if(i?.aborted)return;if(l.getAnimations().some(p=>p.pending||p.playState!=="finished")){u();return}c()})}if(t){let d=B_;if(!l.hasAttribute(d)){o.request(u);return}let p=new MutationObserver(()=>{l.hasAttribute(d)||(p.disconnect(),u())});p.observe(l,{attributes:!0,attributeFilter:[d]}),i?.addEventListener("abort",()=>p.disconnect(),{once:!0});return}o.request(u)})}function r4(e){let{enabled:t=!0,open:r,ref:o,batch:n=!1,onComplete:i}=e,s=Ve(i),l=kW(o,r,n);wW.useEffect(()=>{if(!t)return;let c=new AbortController;return l(s,c.signal),()=>{c.abort()}},[t,r,s,l])}var I_=0,QN=class e{static create(){return new e}currentId=I_;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=I_,r()},t)}isStarted(){return this.currentId!==I_}clear=()=>{this.currentId!==I_&&(clearTimeout(this.currentId),this.currentId=I_)};disposeEffect=()=>this.clear};function o4(){let e=po(QN.create).current;return $w(e.disposeEffect),e}function N_(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function XN(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&Qw(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Ch(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var JN=Math.round;function M_(e,t){return t<0||t>=e.length}function eM(e,t){return Bm(e.current,{disabledIndices:t})}function tM(e,t){return Bm(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Bm(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&&Im(e,i,o));return i}function Im(e,t,r){if(typeof r=="function"?r(t):r?.includes(t)??!1)return!0;let n=e[t];return n?!Lke(n)||n.matches(":disabled")?!0:!r&&(n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"):!1}function Mke(e){return e.visibility==="hidden"||e.visibility==="collapse"}function Lke(e,t=e?Xw(e):null){return!e||!e.isConnected||!t||Mke(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}var n4=a(Ne(),1);function PW(){let[,e]=n4.useState({});return n4.useCallback(()=>{e({})},[])}var i4="ArrowUp",s4="ArrowDown",l4="ArrowLeft",c4="ArrowRight",u4="Home",d4="End";var IW=new Set([i4,s4,l4,c4,u4,d4]),Uke="Shift",NW=[Uke,"Control","Alt","Meta"];function Wke(e){return Cs(e)&&e.tagName==="INPUT"}function oM(e){return!!(Wke(e)&&e.selectionStart!=null||Cs(e)&&e.tagName==="TEXTAREA")}function nM(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=BW(e,t,"left"),u=a4(e),d=a4(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=BW(e,t,"top"),u=a4(e),d=a4(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 BW(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 a4(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 MW(e){return Uw(19)?e:e?"true":void 0}var LW=a(Ne(),1);function RW(e,t){let r=LW.useRef(e),o=Ve(t);Ge(()=>{r.current!==e&&o(r.current),r.current=e},[e,o])}var p4=a(Ne(),1);var DW="data-valid",AW="data-invalid";var Nm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},$ke={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},OW={disabled:!1,...$ke},Ss={valid(e){return e===null?null:e?{[DW]:""}:{[AW]:""}}};var qke={invalid:void 0,name:void 0,validityData:{state:Nm,errors:[],error:"",value:"",initialValue:null},setValidityData:Mr,disabled:void 0,setTouched:Mr,setDirty:Mr,setFilled:Mr,setFocused:Mr,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:OW,registerFieldControl:Mr,validation:{getValidationProps:(e,t=Za)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Mr,getInputControl:()=>null,commit:async()=>{},change:Mr}},aM=p4.createContext(qke);function Ya(e=!0){let t=p4.useContext(aM);if(t.setValidityData===Mr&&!e)throw new Error(ks(28));return t}function FW(e,t,r,o,n=!0,i){let{registerFieldControl:s}=Ya(),l=po(()=>Symbol());Ge(()=>{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]),Ge(()=>{let c=l.current;return()=>{s(c,void 0)}},[s,l])}var m4=a(Ne(),1);var Zke=m4.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Mr,validationMode:"onSubmit",submitCountRef:{current:0}});function cc(){return m4.useContext(Zke)}var sM=a(Ne(),1);var f4=a(Ne(),1);var iM=f4.createContext({controlId:void 0,registerControlId:Mr,resetControlId:Mr,labelId:void 0,setLabelId:Mr,messageIds:[],setMessageIds:Mr,getDescriptionProps:e=>e});function An(){return f4.useContext(iM)}function VW(e={}){let{id:t,enabled:r=!0}=e,{controlId:o,registerControlId:n,resetControlId:i}=An(),s=Ka(),l=po(()=>Symbol()),c=sM.useRef(!1),u=sM.useRef(!1),d=Ve(()=>{!c.current||n===Mr||(c.current=!1,n(l.current,void 0))});return Ge(()=>{if(!r||n===Mr){d();return}let p;if(t!==void 0)u.current=!0,p=t;else if(u.current)p=s;else{i();return}if(p===void 0){d();return}c.current=!0,n(l.current,p)},[t,r,n,i,s,l,d]),Ge(()=>d,[d]),(r?o:void 0)??t??s}var g4=a(Ne(),1),lM=g4.createContext(void 0);function cM(){return g4.useContext(lM)?.direction??"ltr"}var h4=a(Ne(),1),uM=h4.createContext({disabled:!1});function b4(){return h4.useContext(uM)}var ku=a(Ne(),1);function Mm(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var dM=Object.keys(Nm);function Kke(e,t){return e.matches(":disabled")?!1:!t||e.form===t?!0:e.form===null&&!e.hasAttribute("form")}function zW(e,t){let r=null;for(let o of e.keys())if(Kke(o,t)){if(!o.validity.valid)return o;r??=o}return r}function HW(e){return{...Nm,valid:!e,customError:e}}function pM(e){return e&&e.validationMessage?[e.validationMessage]:[]}function jW(e){let{elementRef:t,formRef:r}=cc(),{setValidityData:o,validate:n,validityData:i,validationDebounceTime:s,invalid:l,markedDirtyRef:c,state:u,shouldValidateOnChange:d,validationMode:p,registeredFieldIdRef:m}=e,{controlId:f,getDescriptionProps:g}=An(),h=o4(),b=ku.useRef(null),_=po(()=>new Map).current,v=ku.useRef(0),w=ku.useRef(null),x=ku.useCallback((B,N)=>(_.set(B,N),()=>{_.delete(B)}),[_]),k=Ve(()=>{let B=zW(_,t.current);return B&&_.get(B)?.controlRef.current||null}),C=Ve(async(B,N=!1)=>{v.current+=1;let E=v.current;function M(Z,U=l){let X=m.current??f;if(X==null)return;let Q=r.current.fields.get(X);if(!Q)return;let ie=Mm(Z,U);r.current.fields.set(X,{...Q,validityData:ie})}function R(Z,U){let X=Z.valid===!1?U:[];return{value:B,state:Z,error:X[0]??"",errors:X,initialValue:i.initialValue}}function O(Z,U){let X=Z.validity.customError?Z.validationMessage:"",Q=U.replace(/\r\n?/g,`
4 +`);Z.setCustomValidity(Q),w.current=[Z,Q,X]}function j(){let Z=w.current;w.current=null,Z&&(!Z[0].willValidate||Z[0].validationMessage===Z[1])&&Z[0].setCustomValidity(Z[2])}function V(Z,U,X){let Q=R(Z,U);M(Q,X),o(Q)}function G(Z){let U=dM.reduce((Q,ie)=>(Q[ie]=Z.validity[ie],Q),{}),X=!1;for(let Q of dM)if(Q!=="valid"){if(Q==="valueMissing"&&U[Q])X=!0;else if(U[Q])return U}return X&&!c.current&&(U.valid=!0,U.valueMissing=!1),U}function $(){return _.size>0?zW(_,t.current):b.current}let z=$();function K(){return z=$(),z?.willValidate?G(z):HW(!1)}if(N){if(u.valid!==!1||!z)return;if(!z.validity.valueMissing){j();let Z=$(),U=Z?.validity.customError?pM(Z):[];V(HW(U.length>0),U,!1);return}for(let Z of dM)if(Z!=="valid"&&Z!=="valueMissing"&&Z!=="customError"&&z.validity[Z])return}h.clear(),j();let q=K(),Y=pM(z),oe=d();if(Y.length===0||oe){let Z=Array.from(r.current.fields.values()).reduce((Q,ie)=>(ie.name&&(Q[ie.name]=ie.getValue()),Q),{}),U=n(B,Z),X;if(typeof U=="object"&&U!==null&&"then"in U){if(q.valid===!1?V(q,Y):(p==="onSubmit"||!i.state.customError)&&(q.valid=null,V(q,Y)),X=await U,E!==v.current)return;q=K()}else X=U;Y=X?[].concat(X).filter(Boolean):[],Y.length>0?(q.valid=!1,q.customError=!0,z?.willValidate&&O(z,Y.join(`
5 +`))):Y=pM(z)}V(q,Y)}),S=Ve((B,N=!1)=>{if(h.clear(),v.current+=1,N)return;let E=d();E&&B!==""&&s?h.start(s,()=>{C(B)}):C(B,!E)}),P=ku.useCallback((B,N={})=>Wr(g(N),u.valid===!1&&!u.disabled&&!B?{"aria-invalid":!0}:Za),[g,u.disabled,u.valid]);return ku.useMemo(()=>({getValidationProps:P,inputRef:b,registeredInputs:_,registerInput:x,getInputControl:k,commit:C,change:S}),[P,_,x,k,C,S])}function UW(e,t){let r=Ka(e);return Ge(()=>(t(r),()=>{t(o=>o===r?void 0:o)}),[r,t]),r}function WW(e={}){let{id:t,fallbackControlId:r,native:o=!1,setLabelId:n,focusControl:i}=e,{controlId:s,setLabelId:l}=An(),c=Ve(f=>{l(f),n?.(f)}),u=UW(t,c),d=s??r;function p(f){if(i){i(f,d);return}if(!d)return;let g=Pm(f.currentTarget).getElementById(d);Cs(g)&&Yke(g)}function m(f){Ch(f.nativeEvent)?.closest("button,input,select,textarea")||(!f.defaultPrevented&&f.detail>1&&f.preventDefault(),!o&&p(f))}return o?{id:u,htmlFor:d,onMouseDown:m}:{id:u,onClick:m,onPointerDown(f){f.preventDefault()}}}function Yke(e){e.focus({focusVisible:!0})}var GW=a(Ne(),1);function $W(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:o}=kh(),{ref:n,index:i}=Kw(e),s=r===i,l=GW.useRef(null),c=Tm(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 mM(e){let t=Xw(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Cs(e),i=n?e.offsetWidth:r,s=n?e.offsetHeight:o;return(JN(r)!==i||JN(o)!==s)&&(r=i,o=s),{width:r,height:o}}var qW=a(Ne(),1);var ZW=a(y(),1),y4=function(t){let{direction:r="ltr"}=t,o=qW.useMemo(()=>({direction:r}),[r]);return(0,ZW.jsx)(lM.Provider,{value:o,children:t.children})};function KW(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}var v4=a(Ne(),1),Qke=v4.createContext(void 0),Xke={disableStyleElements:!1};function YW(){return v4.useContext(Qke)??Xke}function QW(e,t){let r=(t??fl(e).getComputedStyle(e)).transform,o=0,n=0,i=1;if(r&&r!=="none"){let s=r.match(/matrix(?:3d)?\(([^)]+)\)/);if(s){let l=s[1].split(", ").map(parseFloat);l.length===6?(o=l[4],n=l[5],i=Math.sqrt(l[0]*l[0]+l[1]*l[1])):l.length===16&&(o=l[12],n=l[13],i=l[0])}}return{x:o,y:n,scale:i}}var On={};J(On,{Control:()=>iG,Description:()=>aG,Error:()=>oG,Item:()=>cG,Label:()=>rG,Root:()=>tG,Validity:()=>lG});var qo=a(Ne(),1);var _4=a(Ne(),1),Jke=_4.createContext(void 0);function XW(e=!1){let t=_4.useContext(Jke);if(!t&&!e)throw new Error(ks(86));return t}var Nd=a(Ne(),1);var JW=a(y(),1),x4=function(t){let r=Ka(),[o,n]=Nd.useState(r),[i,s]=Nd.useState(),[l,c]=Nd.useState([]),u=o===void 0?r:o,d=po(()=>new Map),{messageIds:p}=An(),m=Ve((b,_)=>{let v=d.current;_===void 0?v.delete(b):v.set(b,_),n(w=>{if(v.size===0)return w;let x;for(let k of v.values()){if(k===w)return w;x===void 0&&(x=k)}return x})}),f=Ve(()=>{d.current.size===0&&n(r)}),g=Nd.useCallback(b=>{let _=b["aria-describedby"]?b["aria-describedby"].split(" "):[];return _.push(...p,...l),{...b,"aria-describedby":Array.from(new Set(_)).join(" ")||void 0}},[p,l]),h=Nd.useMemo(()=>({controlId:u,registerControlId:m,resetControlId:f,labelId:i,setLabelId:s,messageIds:l,setMessageIds:c,getDescriptionProps:g}),[u,m,f,i,s,l,c,g]);return(0,JW.jsx)(iM.Provider,{value:h,children:t.children})};var k4=a(Ne(),1);function eG(e){let{change:t,commit:r,invalid:o,markedDirtyRef:n,name:i,setRegisteredFieldName:s,registeredFieldIdRef:l,setValidityData:c,validityData:u}=e,{formRef:d}=cc(),p=k4.useRef(null),m=k4.useRef(null),f=k4.useRef(!1),g=Ve(()=>{let k=m.current;if(k)return k.getValue?k.getValue():k.value});function h(k){return k.value===void 0?g():k.value}let b=Ve(()=>{let k=m.current;if(n.current=!0,!k){r(u.value);return}r(h(k))});function _(){let k=m.current;!k||!k.id||d.current.fields.set(k.id,{getValue:g,name:i??k.name,controlRef:k.controlRef,validityData:Mm(u,o),validate:b})}function v(k=m.current?.id){k&&d.current.fields.delete(k)}function w(k){if(f.current)return;f.current=!0;let C=h(k);c(S=>S.initialValue===C?S:{...S,initialValue:C})}Ge(()=>{let k=m.current;!k||!k.id||(s(i?void 0:k.name),d.current.fields.set(k.id,{getValue:g,name:i??k.name,controlRef:k.controlRef,validityData:Mm(u,o),validate:b}))},[d,g,o,i,s,b,u]),Ge(()=>{let k=d.current.fields;return()=>{let C=m.current?.id;C&&k.delete(C)}},[d]);let x=Ve((k,C)=>{if(!C){p.current===k&&(p.current=null,t(void 0,!0),v(),m.current=null,s(void 0),l.current=void 0);return}let S=m.current?.id,P=p.current;P&&P!==k&&t(void 0,!0),p.current=k,m.current=C,i||s(C.name),l.current=C.id,S&&S!==C.id&&v(S),w(C),_()});return[b,x]}var w4=a(y(),1),e5e=qo.forwardRef(function(t,r){let{errors:o,validationMode:n,submitCountRef:i}=cc(),{render:s,className:l,validate:c,validationDebounceTime:u=0,validationMode:d=n,name:p,disabled:m=!1,invalid:f,dirty:g,touched:h,actionsRef:b,style:_,...v}=t,w=XW(!0)?.disabled,x=Ve(c||(()=>null)),k=w||m,[C,S]=qo.useState(!1),[P,B]=qo.useState(!1),[N,E]=qo.useState(!1),[M,R]=qo.useState(!1),O=g??P,j=h??C,V=qo.useRef(O),G=qo.useRef(void 0),[$,z]=qo.useState(),K=p??$;Ge(()=>{g!==void 0&&(V.current=g)},[g]);let q=Ve(ce=>{g===void 0&&(ce&&(V.current=!0),B(ce))}),Y=Ve(ce=>{h===void 0&&S(ce)}),oe=Ve(()=>d==="onChange"||d==="onSubmit"&&i.current>0),Z=K&&Object.hasOwn(o,K)?o[K]:null,U=!!(Array.isArray(Z)?Z.length:Z),X=f===!0||U,[Q,ie]=qo.useState({state:Nm,error:"",errors:[],value:null,initialValue:null}),me=!X&&(k?null:Q.state.valid),xe=qo.useMemo(()=>({disabled:k,touched:j,dirty:O,valid:me,filled:N,focused:M}),[k,j,O,me,N,M]),Be=jW({setValidityData:ie,validate:x,validityData:Q,validationDebounceTime:u,invalid:X,markedDirtyRef:V,state:xe,shouldValidateOnChange:oe,validationMode:d,registeredFieldIdRef:G}),[se,he]=eG({change:Be.change,commit:Be.commit,invalid:X,markedDirtyRef:V,name:p,setRegisteredFieldName:z,registeredFieldIdRef:G,setValidityData:ie,validityData:Q});qo.useImperativeHandle(b,()=>({validate:se}),[se]);let ze=qo.useMemo(()=>({invalid:X,name:K,validityData:Q,setValidityData:ie,disabled:k,setTouched:Y,setDirty:q,setFilled:E,setFocused:R,validationMode:d,shouldValidateOnChange:oe,state:xe,registerFieldControl:he,validation:Be}),[X,K,Q,k,Y,q,E,R,d,oe,xe,he,Be]),qe=xr("div",t,{ref:r,state:xe,props:v,stateAttributesMapping:Ss});return(0,w4.jsx)(aM.Provider,{value:ze,children:qe})}),tG=qo.forwardRef(function(t,r){return(0,w4.jsx)(x4,{children:(0,w4.jsx)(e5e,{...t,ref:r})})});var L_=a(Ne(),1);var rG=L_.forwardRef(function(t,r){let{render:o,className:n,style:i,id:s,nativeLabel:l=!0,...c}=t,u=Ya(!1),d=b4(),{labelId:p}=An(),m={...u.state,disabled:u.disabled||d.disabled},f=L_.useRef(null),g=WW({id:p??s,native:l});return xr("label",t,{ref:[r,f],state:m,props:[g,c],stateAttributesMapping:Ss})});var Lm=a(Ne(),1);var fM=a(y(),1),t5e={...Ss,...Yw},oG=Lm.forwardRef(function(t,r){let{render:o,id:n,className:i,match:s,style:l,...c}=t,u=Ka(n),{validityData:d,state:p,name:m}=Ya(!1),{setMessageIds:f}=An(),{errors:g}=cc(),h=m&&Object.hasOwn(g,m)?g[m]:null,b=!!(Array.isArray(h)?h.length:h),_=typeof s=="string",v=!1;s===!0?v=!0:p.disabled?v=!1:_?v=!!d.state[s]:v=b||d.state.valid===!1;let{mounted:w,transitionStatus:x,setMounted:k}=_h(v);Ge(()=>{if(!(!v||!u))return f(V=>V.concat(u)),()=>{f(V=>V.filter(G=>G!==u))}},[v,u,f]);let C=Lm.useRef(null),[S,P]=Lm.useState(null),[B,N]=Lm.useState(null),E=d.error;!_&&b?E=h:d.errors.length>1&&(E=d.errors);let M=E;Array.isArray(E)&&(M=E.length>1?(0,fM.jsx)("ul",{children:E.map(V=>(0,fM.jsx)("li",{children:V},V))}):E[0]);let R=Array.isArray(E)?JSON.stringify(E):E;v&&R!==B&&(N(R),P(M)),r4({open:v,ref:C,onComplete(){v||k(!1)}});let O={...p,transitionStatus:x},j=xr("div",t,{ref:[r,C],state:O,props:[{id:u,children:v?M:S},c],stateAttributesMapping:t5e,enabled:w});return w?j:null});var nG=a(Ne(),1);var aG=nG.forwardRef(function(t,r){let{render:o,id:n,className:i,style:s,...l}=t,c=Ka(n),u=Ya(!1),d=b4(),{setMessageIds:p}=An(),m={...u.state,disabled:u.disabled||d.disabled};return Ge(()=>{if(c)return p(g=>g.concat(c)),()=>{p(g=>g.filter(h=>h!==c))}},[c,p]),xr("p",t,{ref:r,state:m,props:[{id:c},l],stateAttributesMapping:Ss})});var C4=a(Ne(),1);var iG=C4.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:b,setTouched:_,setDirty:v,validityData:w,setFocused:x,setFilled:k,validationMode:C,validation:S}=Ya(),{clearErrors:P,elementRef:B,submitCountRef:N}=cc(),E=b||c,M=h??s,R={...g,disabled:E},{labelId:O}=An(),j=VW({id:i}),[V]=zw({controlled:l,default:d,name:"FieldControl",state:"value"}),G=l!==void 0,$=G?V:void 0,z=$==null?void 0:String($),K=Ve(()=>S.inputRef.current?.value);FW(S.inputRef,j,z,K,!E,s),Ge(()=>{let Z=z??S.inputRef.current?.value;Z!==void 0&&k(Z!=="")},[z,S.inputRef,k]),RW(z,()=>{z!==void 0&&(P(M),v(z!==(w.initialValue??"")),S.change(z))});let q=C4.useRef(null),Y=o4();return Ge(()=>{p&&q.current===N_(Pm(q.current))&&x(!0)},[p,x]),xr("input",t,{ref:[r,q],state:R,props:[{id:j,disabled:E,name:M,ref:S.inputRef,"aria-labelledby":O,autoFocus:p,...G?{value:$}:{defaultValue:d},onChange(Z){let U=Z.currentTarget.value,X=vh(ws.none,Z.nativeEvent);u?.(U,X),!G&&(v(U!==(w.initialValue??"")),k(U!==""),!Z.nativeEvent.defaultPrevented&&!X.isCanceled&&(P(M),S.change(U)))},onFocus(){x(!0)},onBlur(Z){if(_(!0),x(!1),C==="onBlur"){let U=Z.currentTarget.value;S.commit(U),G&&queueMicrotask(()=>{let X=S.inputRef.current?.value;X!==void 0&&X!==U&&X!==(w.initialValue??"")&&S.commit(X)})}},onKeyDown(Z){if(Z.currentTarget.tagName==="INPUT"&&Z.key==="Enter"){_(!0);let U=Z.currentTarget.value,X=Z.currentTarget.form;if(X&&X===B.current&&!Z.defaultPrevented){let Q=Z.currentTarget,ie=N.current;Y.start(0,()=>{N.current===ie&&S.commit(Q.value)})}else S.commit(U)}}},f,Z=>S.getValidationProps(E,Z)],stateAttributesMapping:Ss})});var R_=a(Ne(),1);var sG=a(y(),1),lG=function(t){let{children:r}=t,{validityData:o,invalid:n}=Ya(!1),i=R_.useMemo(()=>Mm(o,n),[o,n]),s=i.state.valid===!1,{transitionStatus:l}=_h(s),c=R_.useMemo(()=>({...i,validity:i.state,transitionStatus:l}),[i,l]);return(0,sG.jsx)(R_.Fragment,{children:r(c)})};var S4=a(Ne(),1);var gM=a(y(),1),cG=S4.forwardRef(function(t,r){let{render:o,className:n,style:i,disabled:s=!1,...l}=t,{state:c,disabled:u}=Ya(!1),d=u||s,p={...c,disabled:d},m=S4.useMemo(()=>({disabled:d}),[d]),f=xr("div",t,{ref:r,state:p,props:l,stateAttributesMapping:Ss});return(0,gM.jsx)(x4,{children:(0,gM.jsx)(uM.Provider,{value:m,children:f})})});var uG=a(Ne(),1);var dG=a(y(),1),hM=uG.forwardRef(function(t,r){return(0,dG.jsx)(On.Control,{ref:r,...t})});var mG=a(Ne(),1);var Rm=a(Ne(),1);var D_="data-composite-item-active";function pG(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=_u}=e,[f,g]=Rm.useState(0),h=o!=null,b=Rm.useRef(null),_=Tm(b,c),v=Rm.useRef([]),w=Rm.useRef(!1),x=Rm.useRef(null),k=s??f,C=Ve((E,M=!1)=>{if(x.current=v.current[E]??null,(l??g)(E),M){let R=v.current[E];nM(b.current,R,i,r)}}),S=Ve(E=>{if(E.size===0)return;if(w.current){let j=v.current,V=j.indexOf(x.current);if(V===-1){let G=j[k];!G||Im(j,k,p)?C(r5e(j,p)):x.current=G}else V!==k&&C(V);return}w.current=!0;let M=Array.from(E.keys()),R=M.find(j=>j?.hasAttribute(D_))??null,O=R?E.get(R)?.index??-1:-1;if(O!==-1)C(O);else if(Im(M,k,p)){let j=Bm(M,{disabledIndices:p});M_(M,j)||C(j)}nM(b.current,R,i,r)});Ge(()=>{if(p==null||s!=null||!w.current)return;let E=v.current;if(Im(E,k,p)){let M=Bm(E,{disabledIndices:p});M_(E,M)||C(M)}},[p,s,k,v,C]);let P=Ve((E,M,R)=>n?n(E,M,R,v):R),B=Ve(E=>{let M=E.key===u4||E.key===d4;if(!IW.has(E.key)||!u&&M||o5e(E,m)||!b.current)return;let O=i==="rtl",j=O?l4:c4,V=O?c4:l4,G=r==="vertical"?s4:j,$=r==="vertical"?i4:V,z=Ch(E.nativeEvent);if(z!=null&&oM(z)&&!KW(z)){let U=z.selectionStart,X=z.selectionEnd,Q=z.value;if(U==null||E.shiftKey||U!==X||E.key!==$&&U<Q.length||E.key!==G&&U>0)return}let K=k,q=eM(v,p),Y=tM(v,p);o!=null&&(K=o({disabledIndices:p,elementsRef:v,event:E,highlightedIndex:k,loopFocus:t,maxIndex:Y,minIndex:q,onLoop:P,orientation:r,rtl:O}));let oe=r!=="vertical"&&E.key===j||r!=="horizontal"&&E.key===s4,Z=r!=="vertical"&&E.key===V||r!=="horizontal"&&E.key===i4;u&&(E.key===u4?K=q:E.key===d4&&(K=Y)),K===k&&(oe||Z)&&(t&&K===Y&&oe?(K=q,n&&(K=n(E,k,K,v))):t&&K===q&&Z?(K=Y,n&&(K=n(E,k,K,v))):K=Bm(v.current,{startingIndex:K,decrement:Z,disabledIndices:p})),K!==k&&!M_(v.current,K)&&(d&&E.stopPropagation(),(h||M||oe||Z)&&E.preventDefault(),C(K,!0),queueMicrotask(()=>{v.current[K]?.focus()}))});return{props:{ref:_,onFocus(E){let M=b.current,R=Ch(E.nativeEvent);!M||R==null||!oM(R)||R.setSelectionRange(0,R.value.length)},onKeyDown:B},highlightedIndex:k,onHighlightedIndexChange:C,elementsRef:v,onMapChange:S,relayKeyboardEvent:B}}function r5e(e,t){let r=-1;for(let o=0;o<e.length;o+=1){let n=e[o];if(!(!n||Im(e,o,t))){if(n.hasAttribute(D_))return o;r===-1&&(r=o)}}return Math.max(r,0)}function o5e(e,t){for(let r of NW)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}var bM=a(y(),1);function fG(e){let{render:t,className:r,style:o,refs:n=_u,props:i=_u,state:s=Za,stateAttributesMapping:l,highlightedIndex:c,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:m,onLoop:f,enableHomeAndEndKeys:g,onMapChange:h,stopEventPropagation:b=!0,rootRef:_,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:k="div",...C}=e,S=cM(),{props:P,highlightedIndex:B,onHighlightedIndexChange:N,elementsRef:E,onMapChange:M,relayKeyboardEvent:R}=pG({grid:p,loopFocus:m,onLoop:f,orientation:d,highlightedIndex:c,onHighlightedIndexChange:u,rootRef:_,stopEventPropagation:b,enableHomeAndEndKeys:g,direction:S,disabledIndices:v,modifierKeys:w}),O=xr(k,e,{state:s,ref:n,props:[P,...i,C],stateAttributesMapping:l}),j=mG.useMemo(()=>({highlightedIndex:B,onHighlightedIndexChange:N,highlightItemOnHover:x,relayKeyboardEvent:R}),[B,N,x,R]);return(0,bM.jsx)(qN.Provider,{value:j,children:(0,bM.jsx)(jw,{elementsRef:E,onMapChange:V=>{h?.(V),M(V)},children:O})})}var gG=a(EW(),1);function n5e(){return Mr}function a5e(){return!1}function i5e(){return!0}function hG(){return(0,gG.useSyncExternalStore)(n5e,a5e,i5e)}var jqe=a(Ne(),1);var bG=a(y(),1);function yG(e){let{script:t}=e,{nonce:r}=YW();return hG()?(0,bG.jsx)("script",{nonce:r,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var hl={};J(hl,{Indicator:()=>LG,List:()=>AG,Panel:()=>DG,Root:()=>xG,Tab:()=>kG});var eo=a(Ne(),1);var T4=a(Ne(),1),yM=T4.createContext(void 0);function Md(){let e=T4.useContext(yM);if(e===void 0)throw new Error(ks(64));return e}var vG="data-activation-direction";var uc={tabActivationDirection:e=>({[vG]:e})};var vM=a(y(),1),xG=eo.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=eo.useRef([]),[f,g]=eo.useState(()=>new Map),[h,b]=zw({controlled:c,default:n,name:"Tabs",state:"value"}),_=c!==void 0,[v,w]=eo.useState(()=>new Map),x=eo.useRef(void 0),k=eo.useCallback(ie=>_M(v,ie),[v]),[C,S]=eo.useState(()=>({previousValue:h,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:B}=C,N=B,E=!1;P!==h&&(N=_G(P,h,s,v),E=P!=null&&h!=null&&k(h)==null);let M=E?P:h,R=P!==M||B!==N;Ge(()=>{R&&S({previousValue:M,tabActivationDirection:N})},[M,R,N]);let O=Ve((ie,me)=>{let xe=_G(h,ie,s,v);me.activationDirection=xe,i?.(ie,me),!me.isCanceled&&b(ie)}),j=Ve((ie,me)=>{i?.(ie,vh(me,void 0,void 0,{activationDirection:"none"}))}),V=Ve((ie,me)=>(g(xe=>{let Be=new Map(xe);return Be.set(ie,me),Be}),()=>{g(xe=>{if(xe.get(ie)!==me)return xe;let Be=new Map(xe);return Be.delete(ie),Be})})),G=eo.useCallback(ie=>f.get(ie),[f]),$=eo.useCallback(ie=>{for(let me of v.values())if(ie===me.value)return me.id},[v]),z=eo.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:$,getTabPanelIdByValue:G,onValueChange:O,orientation:s,registerMountedTabPanel:V,setTabMap:w,tabActivationDirection:N,value:h}),[k,$,G,O,s,V,w,N,h]),K=eo.useMemo(()=>{for(let ie of v.values())if(ie.value===h)return ie},[v,h]),q=eo.useMemo(()=>{for(let ie of v.values())if(!ie.disabled)return ie.value},[v]),Y=eo.useRef(!p),oe=eo.useRef(n),Z=eo.useRef(p),U=eo.useRef(!1);Ge(()=>{if(_)return;function ie(se,he){b(se),S({previousValue:se,tabActivationDirection:"none"}),j(se,he),Y.current=!1}if(v.size===0){U.current&&h!==null&&!x.current?.isConnected&&ie(null,ws.missing);return}U.current=!0,x.current=v.keys().next().value;let me=K?.disabled,xe=K==null&&h!==null;if(!me&&h===oe.current&&(Z.current=!1),Z.current&&me&&h===oe.current)return;let Be=Y.current;if(me||xe){let se=q??null;if(h===se){Y.current=!1;return}let he=ws.missing;Be?he=ws.initial:me&&(he=ws.disabled),ie(se,he);return}Be&&K!=null&&(j(h,ws.initial),Y.current=!1)},[q,_,j,K,b,v,h]);let Q=xr("div",t,{state:{orientation:s,tabActivationDirection:N},ref:r,props:d,stateAttributesMapping:uc});return(0,vM.jsx)(yM.Provider,{value:z,children:(0,vM.jsx)(jw,{elementsRef:m,children:Q})})});function _M(e,t){for(let[r,o]of e.entries())if(t===o.value)return r;return null}function _G(e,t,r,o){if(e==null||t==null)return"none";let[n,i,s]=r==="horizontal"?["left","left","right"]:["top","up","down"],l=_M(o,e),c=_M(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 wu=a(Ne(),1);var E4=a(Ne(),1),xM=E4.createContext(void 0);function P4(){let e=E4.useContext(xM);if(e===void 0)throw new Error(ks(65));return e}var kG=wu.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}=Md(),{activateOnFocus:b,registerTabResizeObserverElement:_,tabsListElement:v}=P4(),{highlightedIndex:w,onHighlightedIndexChange:x}=kh(),k=Ka(l),C=wu.useMemo(()=>({disabled:n,id:k,value:s}),[n,k,s]),{compositeProps:S,compositeRef:P,index:B}=$W({metadata:C}),N=s===p,E=wu.useRef(!1),M=wu.useRef(null),R=Ve(U=>{M.current?.(),M.current=U?_(U):null});Ge(()=>{if(E.current){E.current=!1;return}if(!(N&&B>-1&&w!==B))return;let U=v;if(U!=null){let X=N_(Pm(U));if(X&&XN(U,X))return}n||x(B)},[N,B,w,x,n,v]);let{getButtonProps:O,buttonRef:j}=KN({disabled:n,native:c,focusableWhenDisabled:!0}),V=m(s),G=wu.useRef(!1),$=wu.useRef(!1);function z(U){f(s,vh(ws.none,U.nativeEvent,void 0,{activationDirection:"none"}))}function K(U){N||n||z(U)}function q(U){N||n||b&&(!G.current||$.current)&&z(U)}function Y(U){if(N||n)return;G.current=!0,$.current=U.button===0;let X=Pm(U.currentTarget);function Q(){G.current=!1,$.current=!1,X.removeEventListener("pointerup",Q),X.removeEventListener("pointercancel",Q)}X.addEventListener("pointerup",Q),X.addEventListener("pointercancel",Q)}return xr("button",t,{state:{disabled:n,active:N,orientation:g,tabActivationDirection:h},ref:[r,j,P,R],props:[S,{role:"tab","aria-controls":V,"aria-selected":N,id:k,onClick:K,onFocus:q,onPointerDown:Y,[D_]:N?"":void 0,onKeyDownCapture(){E.current=!0}},d,O],stateAttributesMapping:uc})});var Th=a(Ne(),1);var wG="--active-tab-left",CG="--active-tab-right",SG="--active-tab-top",TG="--active-tab-bottom",EG="--active-tab-width",PG="--active-tab-height";var B4=a(y(),1),BG,c5e={...uc,activeTabPosition:()=>null,activeTabSize:()=>null},IG=2,LG=Th.forwardRef(function(t,r){let{className:o,render:n,renderBeforeHydration:i=!1,style:s,...l}=t,{getTabElementBySelectedValue:c,orientation:u,tabActivationDirection:d,value:p}=Md(),{tabsListElement:m,registerIndicatorUpdateListener:f}=P4(),g=PW();Th.useEffect(()=>f(g),[f,g]);let h=0,b=0,_=0,v=0,w=0,x=0,k=!1;if(p!=null&&m!=null){let M=c(p);if(M!=null){k=!0;let{width:R,height:O}=mM(M),{width:j,height:V}=mM(m),G=M.getBoundingClientRect(),$=m.getBoundingClientRect(),z=j>0?$.width/j:1,K=V>0?$.height/V:1,q=u5e(M,m);h=q.left,_=q.top;let Y=(G.left-$.left)/z+m.scrollLeft-m.clientLeft,oe=(G.top-$.top)/K+m.scrollTop-m.clientTop,Z=d5e(M);Math.abs(Y-Z.x-h)<=IG&&Math.abs(oe-Z.y-_)<=IG&&(h=Y,_=oe),w=R,x=O,b=m.scrollWidth-h-w,v=m.scrollHeight-_-x}}let C=k?{left:h,right:b,top:_,bottom:v}:null,S=k?{width:w,height:x}:null,P=k?{[wG]:`${h}px`,[CG]:`${b}px`,[SG]:`${_}px`,[TG]:`${v}px`,[EG]:`${w}px`,[PG]:`${x}px`}:void 0,B=k&&w>0&&x>0,E=xr("span",t,{state:{orientation:u,activeTabPosition:C,activeTabSize:S,tabActivationDirection:d},ref:r,props:[{role:"presentation",style:P,hidden:!B},l,{suppressHydrationWarning:!0}],stateAttributesMapping:c5e});return p==null?null:(0,B4.jsxs)(Th.Fragment,{children:[E,i&&(BG||(BG=(0,B4.jsx)(yG,{script:""})))]})});function u5e(e,t){let r=NG(e),o=NG(t),n=r.left-o.left-t.clientLeft,i=r.top-o.top-t.clientTop,s=$N(e);for(;Cs(s)&&s!==t&&!hW(s);)n-=s.scrollLeft,i-=s.scrollTop,s=$N(s);return{left:n,top:i}}function NG(e){let t=0,r=0,o=e;for(;o!=null;){t+=o.offsetLeft,r+=o.offsetTop;let n=o.offsetParent;n!=null&&(t+=n.clientLeft,r+=n.clientTop),o=n}return{left:t,top:r}}function d5e(e){let t=fl(e).getComputedStyle(e),{x:r,y:o}=QW(e,t),n=r,i=o,{translate:s}=t;if(s&&s!=="none"){let l=s.split(" ");n+=MG(l[0],e.offsetWidth),i+=MG(l[1],e.offsetHeight)}return{x:n,y:i}}function MG(e,t){if(!e)return 0;let r=parseFloat(e);return Number.isFinite(r)?e.endsWith("%")?r/100*t:r:0}var I4=a(Ne(),1);var RG="data-index";var AZe=xh.startingStyle,OZe=xh.endingStyle;var m5e={...uc,...Yw},DG=I4.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}=Md(),g=Ka(),{ref:h,index:b}=Kw(),_=n===u,{mounted:v,transitionStatus:w,setMounted:x}=_h(_),k=!v,C=d(n),S={hidden:k,orientation:p,tabActivationDirection:m,transitionStatus:w},P=I4.useRef(null),B=xr("div",t,{state:S,ref:[r,h,P],props:[{"aria-labelledby":C,hidden:k,id:g,role:"tabpanel",tabIndex:_?0:-1,inert:MW(!_),[RG]:b},c],stateAttributesMapping:m5e});return r4({open:_,ref:P,onComplete(){_||x(!1)}}),Ge(()=>{if(!(g==null||k&&!s))return f(n,g)},[k,s,n,g,f]),s||v?B:null});var gl=a(Ne(),1);var kM=a(y(),1),AG=gl.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}=Md(),[m,f]=gl.useState(0),[g,h]=gl.useState(null),b=gl.useRef(new Set),_=gl.useRef(new Set),v=gl.useRef(null);Ge(()=>{if(typeof ResizeObserver>"u")return;let P=new ResizeObserver(()=>{b.current.forEach(B=>{B()})});return v.current=P,g&&P.observe(g),_.current.forEach(B=>{P.observe(B)}),()=>{P.disconnect(),v.current=null}},[g]);let w=Ve(P=>(b.current.add(P),()=>{b.current.delete(P)})),x=Ve(P=>(_.current.add(P),v.current?.observe(P),()=>{_.current.delete(P),v.current?.unobserve(P)})),k={orientation:u,tabActivationDirection:p},C={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},S=gl.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:g}),[o,w,x,g]);return(0,kM.jsx)(xM.Provider,{value:S,children:(0,kM.jsx)(fG,{render:s,className:n,style:l,state:k,refs:[r,h],props:[C,c],stateAttributesMapping:uc,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:f,onMapChange:d,disabledIndices:_u})})});function Ts(e){return xr(e.defaultTagName??"div",e,e)}var VG=a(W(),1),wM="data-wp-hash";function CM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&g5e(document)),e.__wpStyleRuntime}function f5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${wM}]`))if(r.getAttribute(wM)===t)return!0;return!1}function zG(e,t,r){if(!e.head)return;let o=CM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(f5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(wM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function g5e(e){let t=CM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)zG(e,r,o);return()=>{let r=t.documents.get(e);if(r!==void 0){if(r<=1){t.documents.delete(e);return}t.documents.set(e,r-1)}}}function HG(e,t){let r=CM();r.styles.set(e,t);for(let o of r.documents.keys())zG(o,e,t)}typeof process>"u",HG("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 OG={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",HG("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 FG={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"},Dm=(0,VG.forwardRef)(function({variant:t="body-md",render:r,className:o,...n},i){return Ts({render:r,defaultTagName:"span",ref:i,props:Wr(n,{className:T(OG.text,FG.heading,FG.p,OG[t],o)})})});var GG=a(y(),1),SM="data-wp-hash";function TM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&b5e(document)),e.__wpStyleRuntime}function h5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${SM}]`))if(r.getAttribute(SM)===t)return!0;return!1}function WG(e,t,r){if(!e.head)return;let o=TM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(h5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(SM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function b5e(e){let t=TM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)WG(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 y5e(e,t){let r=TM();r.styles.set(e,t);for(let o of r.documents.keys())WG(o,e,t)}typeof process>"u",y5e("40ea4a6382","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._96e6251aad1a6136__badge{border-radius:var(--wpds-border-radius-lg,8px);padding-block:var(--wpds-dimension-padding-xs,4px);padding-inline:var(--wpds-dimension-padding-sm,8px)}._99f7158cb520f750__is-high-intent{background-color:var(--wpds-color-background-surface-error,#fae5e1);color:var(--wpds-color-foreground-content-error,#470000)}.c20ebef2365bc8b7__is-medium-intent{background-color:var(--wpds-color-background-surface-warning,#fde6be);color:var(--wpds-color-foreground-content-warning,#2e1900)}._365e1626c6202e52__is-low-intent{background-color:var(--wpds-color-background-surface-caution,#fee995);color:var(--wpds-color-foreground-content-caution,#281d00)}._33f8198127ddf4ef__is-stable-intent{background-color:var(--wpds-color-background-surface-success,#c2f8ca);color:var(--wpds-color-foreground-content-success,#002900)}._04c1aca8fc449412__is-informational-intent{background-color:var(--wpds-color-background-surface-info,#deebfa);color:var(--wpds-color-foreground-content-info,#001b4f)}._90726e69d495ec19__is-draft-intent{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}._898f4a544993bd39__is-none-intent{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);padding-block:calc(var(--wpds-dimension-padding-xs, 4px) - var(--wpds-border-width-xs, 1px));padding-inline:calc(var(--wpds-dimension-padding-sm, 8px) - var(--wpds-border-width-xs, 1px))}}}");var jG={badge:"_96e6251aad1a6136__badge","is-high-intent":"_99f7158cb520f750__is-high-intent","is-medium-intent":"c20ebef2365bc8b7__is-medium-intent","is-low-intent":"_365e1626c6202e52__is-low-intent","is-stable-intent":"_33f8198127ddf4ef__is-stable-intent","is-informational-intent":"_04c1aca8fc449412__is-informational-intent","is-draft-intent":"_90726e69d495ec19__is-draft-intent","is-none-intent":"_898f4a544993bd39__is-none-intent"},EM=(0,UG.forwardRef)(function({intent:t="none",className:r,...o},n){return(0,GG.jsx)(Dm,{ref:n,className:T(jG.badge,jG[`is-${t}-intent`],r),...o,variant:"body-sm"})});var qG=a(L(),1),ZG=a(y(),1);function KG({children:e}){return(0,ZG.jsx)(y4,{direction:(0,qG.isRTL)()?"rtl":"ltr",children:e})}var YG=a(W(),1),QG=a(L(),1),Eh=a(y(),1),BM="data-wp-hash";function IM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_5e(document)),e.__wpStyleRuntime}function v5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${BM}]`))if(r.getAttribute(BM)===t)return!0;return!1}function XG(e,t,r){if(!e.head)return;let o=IM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(v5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(BM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function _5e(e){let t=IM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)XG(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 M4(e,t){let r=IM();r.styles.set(e,t);for(let o of r.documents.keys())XG(o,e,t)}typeof process>"u",M4("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var x5e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",M4("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 k5e={"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",M4("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 N4={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",M4("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 w5e={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"},bl=(0,YG.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 Ts({render:s,defaultTagName:"a",ref:u,props:Wr(c,{className:T(w5e.a,x5e["box-sizing"],k5e["outset-ring--focus-except-active"],r!=="unstyled"&&N4.link,r!=="unstyled"&&N4[`is-${o}`],r==="unstyled"&&N4["is-unstyled"],l),target:i??(n?"_blank":void 0),children:(0,Eh.jsxs)(Eh.Fragment,{children:[t,d&&(0,Eh.jsx)("span",{className:N4["link-icon"],role:"img","aria-label":(0,QG.__)("(opens in a new tab)")})]})})})});var JG=a(W(),1),e$=a(A(),1),t$=a(y(),1),A_=(0,JG.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,t$.jsx)(e$.SVG,{ref:i,...t.props,...n,...s?{style:s}:{},width:r,height:r})});var r$=a(W(),1),NM="data-wp-hash";function MM(){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 C5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${NM}]`))if(r.getAttribute(NM)===t)return!0;return!1}function o$(e,t,r){if(!e.head)return;let o=MM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(C5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(NM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function S5e(e){let t=MM();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 T5e(e,t){let r=MM();r.styles.set(e,t);for(let o of r.documents.keys())o$(o,e,t)}typeof process>"u",T5e("f4df7461e9","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;overflow-wrap:normal;padding:0;position:absolute;width:1px;word-break:normal}}}");var E5e={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},ln=(0,r$.forwardRef)(function({render:t,...r},o){return Ts({render:t,ref:o,props:Wr({className:E5e["visually-hidden"]},r,{"data-visually-hidden":""})})});var a$=a(W(),1),LM="data-wp-hash";function RM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&B5e(document)),e.__wpStyleRuntime}function P5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${LM}]`))if(r.getAttribute(LM)===t)return!0;return!1}function i$(e,t,r){if(!e.head)return;let o=RM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(P5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(LM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function B5e(e){let t=RM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)i$(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 I5e(e,t){let r=RM();r.styles.set(e,t);for(let o of r.documents.keys())i$(o,e,t)}typeof process>"u",I5e("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var N5e={stack:"_19ce0419607e1896__stack"},M5e={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)"},Es=(0,a$.forwardRef)(function({direction:t,gap:r,align:o,justify:n,wrap:i,render:s,...l},c){let u={gap:r&&M5e[r],alignItems:o,justifyContent:n,flexDirection:t,flexWrap:i};return Ts({render:s,ref:c,props:Wr(l,{style:u,className:N5e.stack})})});var s$=a(_e(),1),Am=a(W(),1);function l$(e){let t=(0,s$.useEvent)(e),r=(0,Am.useRef)(null),o=(0,Am.useRef)(!1),n=(0,Am.useCallback)(()=>{o.current||(r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{t(),r.current=null},0))},[t]);return(0,Am.useEffect)(()=>(o.current=!1,()=>{o.current=!0,r.current&&clearTimeout(r.current)}),[]),n}var h$=a(W(),1);var F_=a(W(),1),V_=a(y(),1),DM="data-wp-hash";function AM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&R5e(document)),e.__wpStyleRuntime}function L5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${DM}]`))if(r.getAttribute(DM)===t)return!0;return!1}function c$(e,t,r){if(!e.head)return;let o=AM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(L5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(DM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function R5e(e){let t=AM();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 OM(e,t){let r=AM();r.styles.set(e,t);for(let o of r.documents.keys())c$(o,e,t)}typeof process>"u",OM("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 D5e={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",OM("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var A5e={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",OM("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 Ph={"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"},u$=(0,F_.forwardRef)(function({className:t,children:r,visuallyDisabled:o,size:n="default",isBorderless:i,prefix:s,suffix:l,...c},u){return(0,V_.jsxs)("div",{ref:u,className:T(D5e.div,A5e["box-sizing"],Ph["input-layout"],Ph[`is-size-${n}`],o&&Ph["is-disabled"],i&&Ph["is-borderless"],t),...c,children:[F_.Children.count(s)>0&&(0,V_.jsx)("div",{className:Ph["slot-wrapper"],"data-slot-type":"prefix",children:s}),r,F_.Children.count(l)>0&&(0,V_.jsx)("div",{className:Ph["slot-wrapper"],"data-slot-type":"suffix",children:l})]})});var p$=a(W(),1),f$=a(y(),1),FM="data-wp-hash";function VM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&F5e(document)),e.__wpStyleRuntime}function O5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${FM}]`))if(r.getAttribute(FM)===t)return!0;return!1}function m$(e,t,r){if(!e.head)return;let o=VM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(O5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(FM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function F5e(e){let t=VM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)m$(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 V5e(e,t){let r=VM();r.styles.set(e,t);for(let o of r.documents.keys())m$(o,e,t)}typeof process>"u",V5e("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 d$={"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"},zM=(0,p$.forwardRef)(function({padding:t="default",className:r,...o},n){return(0,f$.jsx)("div",{ref:n,className:T(d$["input-layout-slot"],d$[`is-padding-${t}`],r),...o})});zM.displayName="InputLayout.Slot";var g$=Object.assign(u$,{Slot:zM});var jM=a(y(),1),HM="data-wp-hash";function UM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&H5e(document)),e.__wpStyleRuntime}function z5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${HM}]`))if(r.getAttribute(HM)===t)return!0;return!1}function b$(e,t,r){if(!e.head)return;let o=UM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(z5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(HM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function H5e(e){let t=UM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)b$(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 WM(e,t){let r=UM();r.styles.set(e,t);for(let o of r.documents.keys())b$(o,e,t)}typeof process>"u",WM("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 j5e={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",WM("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 U5e={"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",WM("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 W5e={input:"_2ae7be2fc1bb17a3__input"},GM=(0,h$.forwardRef)(function({className:t,size:r="default",prefix:o,suffix:n,style:i,...s},l){return(0,jM.jsx)(g$,{className:T(U5e["outset-ring--focus-within"],t),style:i,size:r,visuallyDisabled:s.disabled,prefix:o,suffix:n,children:(0,jM.jsx)(hM,{ref:l,className:T(j5e.input,W5e.input),...s})})});var XM=a(L(),1),Po=a(W(),1);var y$=a(W(),1),z_=a(y(),1),qM="data-wp-hash";function ZM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&$5e(document)),e.__wpStyleRuntime}function G5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${qM}]`))if(r.getAttribute(qM)===t)return!0;return!1}function v$(e,t,r){if(!e.head)return;let o=ZM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(G5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(qM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function $5e(e){let t=ZM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)v$(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 q5e(e,t){let r=ZM();r.styles.set(e,t);for(let o of r.documents.keys())v$(o,e,t)}typeof process>"u",q5e("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 $M={spinner:"ab4d64c07c0ba587__spinner",track:"dc51f80c84b35fe2__track",indicator:"a7654e10245bb7d2__indicator","spinner-spin":"_02322d973909703c__spinner-spin"},KM=(0,y$.forwardRef)(function({className:t,...r},o){return(0,z_.jsxs)("svg",{className:T($M.spinner,t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...r,ref:o,children:[(0,z_.jsx)("circle",{className:$M.track,cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,z_.jsx)("path",{className:$M.indicator,d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})});var H_=a(y(),1),YM="data-wp-hash";function QM(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&K5e(document)),e.__wpStyleRuntime}function Z5e(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${YM}]`))if(r.getAttribute(YM)===t)return!0;return!1}function _$(e,t,r){if(!e.head)return;let o=QM(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Z5e(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(YM,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function K5e(e){let t=QM();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)_$(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=QM();r.styles.set(e,t);for(let o of r.documents.keys())_$(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 Y5e={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$("d11816833c",'@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,#008030)}.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 L4={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"},Q5e={valid:BI,invalid:oB};function R4({id:e,type:t,message:r}){return(0,H_.jsxs)("p",{id:e,className:T(Y5e.p,L4.indicator,L4[`is-${t}`]),children:[t==="validating"?(0,H_.jsx)(KM,{className:L4["indicator-spinner"]}):(0,H_.jsx)(A_,{className:L4["indicator-icon"],icon:Q5e[t],size:16,fill:"currentColor"}),r]})}var dc=a(y(),1),X5e=e=>(0,dc.jsx)(Es,{...e,direction:"column",gap:"sm"});function J5e(e,t,r){let o;return t&&!r?o=`(${(0,XM.__)("Required")})`:!t&&r&&(o=`(${(0,XM.__)("Optional")})`),o?typeof e=="string"?`${e} ${o}`:(0,dc.jsxs)(dc.Fragment,{children:[e," ",o]}):e}var k$="data-validity-visible",JM=(0,Po.forwardRef)(function({required:t,markWhenOptional:r,customValidity:o,getValidityTarget:n,children:i,render:s=X5e,...l},c){let[u,d]=(0,Po.useState)(),[p,m]=(0,Po.useState)(),[f,g]=(0,Po.useState)(!1),[h,b]=(0,Po.useState)(!1),_=(0,Po.useRef)(null);(0,Po.useEffect)(()=>{let C=n(),S=()=>{o?.type!=="validating"&&d(C?.validationMessage),g(!0),C?.setAttribute(k$,"")};return C?.addEventListener("invalid",S),()=>C?.removeEventListener("invalid",S)},[o?.type,n]),(0,Po.useEffect)(()=>{let C=n(),S=B=>{if(B.preventDefault(),!B.isTrusted)return;let N=B.target,E=Array.from(N.form?.elements??[]).find(M=>!M.validity.valid);(!N.form||E===N)&&N.focus()},P=C?.type==="radio"&&C?.name?Array.from(_.current?.querySelectorAll(`input[type="radio"][name="${C?.name}"]`)??[]).filter(B=>B!==C):[];return C?.addEventListener("invalid",S),P.forEach(B=>B.addEventListener("invalid",S)),()=>{C?.removeEventListener("invalid",S),P.forEach(B=>B.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 v=C=>{if(C.relatedTarget&&C.currentTarget.contains(C.relatedTarget))return;h||(b(!0),n()?.setAttribute(k$,""));let S=n(),P=o?.type==="validating";window.queueMicrotask(()=>{P||d(S?.validationMessage)})},w=(0,Po.useId)(),x=u?(0,dc.jsx)(R4,{id:w,type:"invalid",message:u}):p?.type?(0,dc.jsx)(R4,{id:w,type:p.type,message:p.message}):null,k=f?x:null;return(0,Po.useEffect)(()=>{let C=n();if(!C)return;function S(P,B){let N=(P.getAttribute("aria-describedby")??"").split(" ").filter(E=>E&&E!==w);B&&N.push(w),N.length?P.setAttribute("aria-describedby",N.join(" ")):P.removeAttribute("aria-describedby")}return S(C,!!k),()=>S(C,!1)},[k,w,n]),Ts({render:s,ref:[c,_],props:Wr(l,{onBlur:v,children:(0,dc.jsxs)(dc.Fragment,{children:[(0,Po.cloneElement)(i,{label:J5e(i.props.label,t,r),required:t}),k]})})})});var Om={};J(Om,{Control:()=>W$,Description:()=>O$,Details:()=>H$,Item:()=>P$,Label:()=>M$,Root:()=>S$,VisualLabel:()=>pL});var w$=a(W(),1);var rL=a(y(),1),eL="data-wp-hash";function tL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&twe(document)),e.__wpStyleRuntime}function ewe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${eL}]`))if(r.getAttribute(eL)===t)return!0;return!1}function C$(e,t,r){if(!e.head)return;let o=tL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(ewe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(eL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function twe(e){let t=tL();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 rwe(e,t){let r=tL();r.styles.set(e,t);for(let o of r.documents.keys())C$(o,e,t)}typeof process>"u",rwe("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var owe={"box-sizing":"_336cd3e4e743482f__box-sizing"},nwe=e=>(0,rL.jsx)(Es,{...e,direction:"column",gap:"sm"}),S$=(0,w$.forwardRef)(function({className:t,render:r=nwe,...o},n){return(0,rL.jsx)(On.Root,{ref:n,className:T(owe["box-sizing"],t),render:r,...o})});var T$=a(W(),1),E$=a(y(),1),P$=(0,T$.forwardRef)(function(t,r){return(0,E$.jsx)(On.Item,{ref:r,...t})});var I$=a(W(),1);var nL=a(y(),1),oL="data-wp-hash";function aL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&iwe(document)),e.__wpStyleRuntime}function awe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${oL}]`))if(r.getAttribute(oL)===t)return!0;return!1}function N$(e,t,r){if(!e.head)return;let o=aL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(awe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(oL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function iwe(e){let t=aL();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 swe(e,t){let r=aL();r.styles.set(e,t);for(let o of r.documents.keys())N$(o,e,t)}typeof process>"u",swe("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"},M$=(0,I$.forwardRef)(function({className:t,hideFromVision:r,variant:o,...n},i){let s=(0,nL.jsx)(On.Label,{ref:i,className:T(B$.label,o&&B$[`is-${o}`],t),...n});return r?(0,nL.jsx)(ln,{render:s}):s});var L$=a(W(),1),A$=a(y(),1),iL="data-wp-hash";function sL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&cwe(document)),e.__wpStyleRuntime}function lwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${iL}]`))if(r.getAttribute(iL)===t)return!0;return!1}function R$(e,t,r){if(!e.head)return;let o=sL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(lwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(iL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function cwe(e){let t=sL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)R$(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=sL();r.styles.set(e,t);for(let o of r.documents.keys())R$(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 uwe={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$("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 dwe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},O$=(0,L$.forwardRef)(function({className:t,...r},o){return(0,A$.jsx)(On.Description,{ref:o,className:T(uwe.p,dwe.description,t),...r})});var F$=a(W(),1),V$=a(L(),1);var Ld=a(y(),1),lL="data-wp-hash";function cL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&mwe(document)),e.__wpStyleRuntime}function pwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${lL}]`))if(r.getAttribute(lL)===t)return!0;return!1}function z$(e,t,r){if(!e.head)return;let o=cL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(pwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(lL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function mwe(e){let t=cL();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 fwe(e,t){let r=cL();r.styles.set(e,t);for(let o of r.documents.keys())z$(o,e,t)}typeof process>"u",fwe("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 gwe={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},H$=(0,F$.forwardRef)(function({className:t,...r},o){return(0,Ld.jsxs)(Ld.Fragment,{children:[(0,Ld.jsx)(ln,{render:(0,Ld.jsx)(On.Description,{}),children:(0,V$.__)("More details follow the field.")}),(0,Ld.jsx)("div",{ref:o,className:T(gwe.description,t),...r})]})});var j$=a(W(),1),U$=a(y(),1),W$=(0,j$.forwardRef)(function(t,r){return(0,U$.jsx)(On.Control,{ref:r,...t})});var $$=a(W(),1),uL="data-wp-hash";function dL(){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 hwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${uL}]`))if(r.getAttribute(uL)===t)return!0;return!1}function q$(e,t,r){if(!e.head)return;let o=dL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(hwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(uL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function bwe(e){let t=dL();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 ywe(e,t){let r=dL();r.styles.set(e,t);for(let o of r.documents.keys())q$(o,e,t)}typeof process>"u",ywe("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 G$={label:"_2d5ad850b2f90964__label","is-plain":"_17c4214649230bea__is-plain",description:"_08a3750500e0233f__description"},pL=(0,$$.forwardRef)(function({className:t,render:r,variant:o,...n},i){return Ts({defaultTagName:"span",render:r,ref:i,props:Wr(n,{className:T(G$.label,o&&G$[`is-${o}`],t)})})});pL.displayName="Field.VisualLabel";var D4=a(W(),1);var fL=a(y(),1),mL="data-wp-hash";function gL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&_we(document)),e.__wpStyleRuntime}function vwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${mL}]`))if(r.getAttribute(mL)===t)return!0;return!1}function K$(e,t,r){if(!e.head)return;let o=gL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(vwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(mL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function _we(e){let t=gL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)K$(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 Y$(e,t){let r=gL();r.styles.set(e,t);for(let o of r.documents.keys())K$(o,e,t)}typeof process>"u",Y$("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 Z$={wrapper:"_1e441c22c9dc5d28__wrapper",textarea:"_414844876c32ecee__textarea"};typeof process>"u",Y$("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 xwe={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"},kwe=(e,t)=>function(o){return typeof e=="function"?e(Wr(o,t)):(0,D4.cloneElement)(e,Wr(o,t))},A4=(0,D4.forwardRef)(function({className:t,defaultValue:r,disabled:o,onValueChange:n,render:i,rows:s=4,style:l,value:c,...u},d){return(0,fL.jsx)(GM,{className:T(Z$.wrapper,t),style:l,render:kwe(i||(p=>(0,fL.jsx)("textarea",{...p})),{className:T(xwe.textarea,Z$.textarea),ref:d,rows:s,...u}),value:c,defaultValue:r,onValueChange:n,disabled:o})});var Q$=a(W(),1);var Fm=a(y(),1),hL=(0,Q$.forwardRef)(function({className:t,label:r,description:o,details:n,hideLabelFromVision:i,...s},l){return(0,Fm.jsxs)(Om.Root,{className:t,children:[(0,Fm.jsx)(Om.Label,{hideFromVision:i,children:r}),(0,Fm.jsx)(A4,{ref:l,...s}),o&&(0,Fm.jsx)(Om.Description,{children:o}),n&&(0,Fm.jsx)(Om.Details,{children:n})]})});var O4=a(W(),1),X$=a(_e(),1);var bL=a(y(),1),yL=(0,O4.forwardRef)(function({required:t,markWhenOptional:r,customValidity:o,...n},i){let s=(0,O4.useRef)(null),l=(0,X$.useMergeRefs)([i,s]);return(0,bL.jsx)(JM,{required:t,markWhenOptional:r,customValidity:o,getValidityTarget:()=>s.current,children:(0,bL.jsx)(hL,{ref:l,...n})})});var Rd={};J(Rd,{List:()=>rq,Panel:()=>uq,Root:()=>pq,Tab:()=>gq});var Vm=a(W(),1);var eq=a(_e(),1),F4=a(y(),1),vL="data-wp-hash";function _L(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Cwe(document)),e.__wpStyleRuntime}function wwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${vL}]`))if(r.getAttribute(vL)===t)return!0;return!1}function tq(e,t,r){if(!e.head)return;let o=_L(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(wwe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(vL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Cwe(e){let t=_L();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)tq(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 Swe(e,t){let r=_L();r.styles.set(e,t);for(let o of r.documents.keys())tq(o,e,t)}typeof process>"u",Swe("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 j_={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"},J$=1,rq=(0,Vm.forwardRef)(function({children:t,variant:r="default",className:o,activateOnFocus:n,...i},s){let[l,c]=(0,Vm.useState)(null),[u,d]=(0,Vm.useState)({first:!1,last:!1,isScrolling:!1});(0,Vm.useEffect)(()=>{if(!l)return;let m=()=>{let{scrollWidth:v,clientWidth:w,scrollLeft:x}=l,k=Math.max(v-w,0),S=(l.dir||(typeof window<"u"?window.getComputedStyle(l).direction:"ltr"))==="rtl"&&x<0?-x:x,P={first:S>J$,last:S<k-J$,isScrolling:v>w};d(B=>B.first===P.first&&B.last===P.last&&B.isScrolling===P.isScrolling?B:P)},f=new ResizeObserver(m),g=()=>{f.disconnect(),f.observe(l),l.querySelectorAll('[role="tab"]').forEach(v=>f.observe(v))},h=new MutationObserver(g);h.observe(l,{childList:!0,subtree:!0});let b=!1,_=()=>{b||(requestAnimationFrame(()=>{m(),b=!1}),b=!0)};return l.addEventListener("scroll",_,{passive:!0}),g(),m(),()=>{l.removeEventListener("scroll",_),f.disconnect(),h.disconnect()}},[l]);let p=(0,eq.useMergeRefs)([s,m=>c(m)]);return(0,F4.jsxs)(hl.List,{ref:p,activateOnFocus:n,"data-select-on-move":n?"true":"false",className:T(j_.tablist,u.first&&j_["is-overflowing-first"],u.last&&j_["is-overflowing-last"],j_[`is-${r}-variant`],o),...i,tabIndex:i.tabIndex??(u.isScrolling?-1:void 0),children:[t,(0,F4.jsx)(hl.Indicator,{className:j_.indicator})]})});var iq=a(W(),1);var Fn=a(W(),1);var U_=a(y(),1),V4=!1,xL=V4?(0,Fn.createContext)(null):null;function Twe(){let e=(0,Fn.useContext)(xL);(0,Fn.useEffect)(()=>{if(e)return e.registerTab()},[e])}function Ewe(){}var oq=V4?Twe:Ewe;function Pwe(){let e=(0,Fn.useContext)(xL);(0,Fn.useEffect)(()=>{if(e)return e.registerPanel()},[e])}function Bwe(){}var nq=V4?Pwe:Bwe;function Iwe({children:e}){let t=(0,Fn.useRef)(0),r=(0,Fn.useRef)(0),o=l$(()=>{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,Fn.useCallback)(()=>(t.current+=1,o(),()=>{t.current-=1,o()}),[o]),i=(0,Fn.useCallback)(()=>(r.current+=1,o(),()=>{r.current-=1,o()}),[o]),s=(0,Fn.useMemo)(()=>({registerTab:n,registerPanel:i}),[n,i]);return(0,U_.jsx)(xL.Provider,{value:s,children:e})}function Nwe({children:e}){return(0,U_.jsx)(U_.Fragment,{children:e})}var aq=V4?Iwe:Nwe;var cq=a(y(),1),kL="data-wp-hash";function wL(){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 Mwe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${kL}]`))if(r.getAttribute(kL)===t)return!0;return!1}function sq(e,t,r){if(!e.head)return;let o=wL(),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(kL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Lwe(e){let t=wL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)sq(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 lq(e,t){let r=wL();r.styles.set(e,t);for(let o of r.documents.keys())sq(o,e,t)}typeof process>"u",lq("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 Rwe={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",lq("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 Dwe={"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"},uq=(0,iq.forwardRef)(function({className:t,...r},o){return nq(),(0,cq.jsx)(hl.Panel,{ref:o,className:T(Rwe.div,Dwe["outset-ring--focus-visible"],t),...r})});var dq=a(W(),1);var z4=a(y(),1),pq=(0,dq.forwardRef)(function({...t},r){return(0,z4.jsx)(KG,{children:(0,z4.jsx)(aq,{children:(0,z4.jsx)(hl.Root,{ref:r,...t})})})});var mq=a(W(),1);var W_=a(y(),1),SL="data-wp-hash";function TL(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Owe(document)),e.__wpStyleRuntime}function Awe(e,t){if(!e.head)return!1;for(let r of e.head.querySelectorAll(`style[${SL}]`))if(r.getAttribute(SL)===t)return!0;return!1}function fq(e,t,r){if(!e.head)return;let o=TL(),n=o.injectedStyles.get(e);if(n||(n=new Set,o.injectedStyles.set(e,n)),n.has(t))return;if(Awe(e,t)){n.add(t);return}let i=e.createElement("style");i.setAttribute(SL,t),i.appendChild(e.createTextNode(r)),e.head.appendChild(i),n.add(t)}function Owe(e){let t=TL();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[r,o]of t.styles)fq(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 Fwe(e,t){let r=TL();r.styles.set(e,t);for(let o of r.documents.keys())fq(o,e,t)}typeof process>"u",Fwe("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 CL={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"},gq=(0,mq.forwardRef)(function({className:t,children:r,...o},n){return oq(),(0,W_.jsxs)(hl.Tab,{ref:n,className:T(CL.tab,t),...o,children:[(0,W_.jsx)("span",{className:CL["tab-children"],children:r}),(0,W_.jsx)(A_,{icon:zg,className:CL["tab-chevron"]})]})});var Qa=a(I(),1),ba=a(L(),1),Mq=a(H(),1);var Lq=a(br(),1),Rq=a(W(),1);function Bh(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 PL=a(W(),1),mc=a(te(),1),wq=a(qt(),1);var Dd=function(){return Dd=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},Dd.apply(this,arguments)};function bq(e){return e.toLowerCase()}var Vwe=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],zwe=/[^A-Z0-9]+/gi;function H4(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?Vwe:r,n=t.stripRegexp,i=n===void 0?zwe:n,s=t.transform,l=s===void 0?bq:s,c=t.delimiter,u=c===void 0?" ":c,d=yq(yq(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 yq(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function vq(e){return e.charAt(0).toUpperCase()+e.substr(1)}function Hwe(e){return vq(e.toLowerCase())}function _q(e,t){return t===void 0&&(t={}),H4(e,Dd({delimiter:" ",transform:Hwe},t))}function xq(e,t){return t===void 0&&(t={}),H4(e,Dd({delimiter:"."},t))}function Ih(e,t){return t===void 0&&(t={}),xq(e,Dd({delimiter:"-"},t))}function kq(e){let t=e?.toString?.()??"";return t=t.replace(/['\u2019]/,""),Ih(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 pc={$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 G_=[{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"}],EL="wp-embed";var j4=a(y(),1),{name:Nh}=pc,Cq=e=>(0,mc.getBlockVariations)(Nh)?.find(({name:t})=>t===e),BL=(e,t=[])=>t.some(r=>e.match(r)),Mh=e=>(0,mc.getBlockVariations)(Nh)?.find(({patterns:t})=>BL(e,t));function $_(e){if(!e||(0,wq.getAuthority)(e)!=="x.com")return e;let t=new URL(e);return t.host="twitter.com",t.toString()}var Sq=e=>e&&e.includes('class="wp-embedded-content"'),Tq=e=>{let t=e.url||e.thumbnail_url,r=(0,j4.jsx)("p",{children:(0,j4.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,PL.renderToString)(r)},Od=(e,t={})=>{let{preview:r,attributes:o={}}=e,{url:n,providerNameSlug:i,type:s,...l}=o;if(!n||!(0,mc.getBlockType)(Nh))return;let c=Mh(n),u=i==="wordpress"||s===EL;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,mc.createBlock)(Nh,{url:n,...l,...c.attributes});let p=(0,mc.getBlockVariations)(Nh)?.find(({name:m})=>m==="wordpress");if(!(!p||!r||!Sq(r.html)||u))return(0,mc.createBlock)(Nh,{url:n,...p.attributes,...t})},Uwe=e=>e?G_.some(({className:t})=>e.includes(t)):!1,Ad=e=>{if(!e)return e;let t=G_.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 Wwe(e){return/padding-(top|bottom)\s*:\s*[\d.]+%/i.test(e)}function IL(e,t,r=!0){if(!r||Wwe(e))return Ad(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<G_.length;s++){let l=G_[s];if(i>=l.ratio)return i-l.ratio>.1?Ad(t):T(Ad(t),l.className,"wp-has-aspect-ratio")}}return t}function Eq(e,t){t((0,mc.createBlock)("core/paragraph",{content:(0,PL.renderToString)((0,j4.jsx)("a",{href:e,children:e}))}))}var Gwe=Bh((e,t,r,o,n=!0)=>{if(!e)return{};let i={},{type:s="rich"}=e,{html:l,provider_name:c}=e,u=kq((c||t).toLowerCase());return Sq(l)&&(s=EL),(l||s==="photo")&&(i.type=s,i.providerNameSlug=u),Uwe(r)||(i.className=IL(l,r,o&&n)),i}),Pq=(e,t,r,o)=>{let{allowResponsive:n,className:i}=e;return{...e,...Gwe(t,r,i,o,n)}};var zm=a(W(),1),Bq=a(_e(),1),q_=a(L(),1),Cu=a(I(),1),Iq=a(F(),1);var U4=a(te(),1),Fd=a(y(),1);function Zo({attributeKey:e="caption",attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n,placeholder:i=(0,q_.__)("Add caption"),label:s=(0,q_.__)("Caption text"),showToolbarButton:l=!0,excludeElementClassName:c,className:u,readOnly:d,tagName:p="figcaption",addLabel:m=(0,q_.__)("Add caption"),removeLabel:f=(0,q_.__)("Remove caption"),icon:g=PP,...h}){let b=t[e],_=(0,Bq.usePrevious)(b),v=Cu.RichText.isEmpty(b),w=Cu.RichText.isEmpty(_),[x,k]=(0,zm.useState)(!v);(0,zm.useEffect)(()=>{!v&&w&&k(!0)},[v,w]),(0,zm.useEffect)(()=>{!o&&v&&k(!1)},[o,v]);let C=(0,zm.useCallback)(S=>{S&&v&&S.focus()},[v]);return(0,Fd.jsxs)(Fd.Fragment,{children:[l&&(0,Fd.jsx)(Cu.BlockControls,{group:"block",children:(0,Fd.jsx)(Iq.ToolbarButton,{onClick:()=>{k(!x),x&&b&&r({[e]:void 0})},icon:g,isPressed:x,label:x?f:m})}),x&&(!Cu.RichText.isEmpty(b)||o)&&(0,Fd.jsx)(Cu.RichText,{identifier:e,tagName:p,className:T(u,c?"":(0,Cu.__experimentalGetElementClassName)("caption")),ref:C,"aria-label":s,placeholder:i,value:b,onChange:S=>r({[e]:S}),inlineToolbar:!0,__unstableOnSplitAtEnd:n?()=>n((0,U4.createBlock)((0,U4.getDefaultBlockName)())):void 0,readOnly:d,...h})]})}var Lr=a(y(),1),NL=["audio"];function $we({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,Rq.useState)(e.blob),g=(0,Qa.useBlockEditingMode)()==="default";ic({url:p,allowedTypes:NL,onChange:w,onError:v});function h(S){return P=>{r({[S]:P})}}function b(S){if(S!==d){let P=Od({attributes:{url:S}});if(P!==void 0&&o){o(P);return}r({src:S,id:void 0,blob:void 0}),m()}}let{createErrorNotice:_}=(0,Mq.useDispatch)(Lq.store);function v(S){_(S,{type:"snackbar"})}function w(S){if(!S||!S.url){r({src:void 0,id:void 0,caption:void 0,blob:void 0}),m();return}if((0,Nq.isBlobURL)(S.url)){m(S.url);return}r({blob:void 0,src:S.url,id:S.id,caption:S.caption}),m()}let x=T(t,{"is-transient":!!p}),k=(0,Qa.useBlockProps)({className:x}),C=ee();return!d&&!p?(0,Lr.jsx)("div",{...k,children:(0,Lr.jsx)(Qa.MediaPlaceholder,{icon:(0,Lr.jsx)(Qa.BlockIcon,{icon:sm}),onSelect:w,onSelectURL:b,accept:"audio/*",allowedTypes:NL,value:e,onError:v})}):(0,Lr.jsxs)(Lr.Fragment,{children:[n&&(0,Lr.jsx)(Qa.BlockControls,{group:"other",children:(0,Lr.jsx)(Qa.MediaReplaceFlow,{mediaId:s,mediaURL:d,allowedTypes:NL,accept:"audio/*",onSelect:w,onSelectURL:b,onError:v,onReset:()=>w(void 0),variant:"toolbar"})}),(0,Lr.jsx)(Qa.InspectorControls,{children:(0,Lr.jsxs)(Ii.__experimentalToolsPanel,{label:(0,ba.__)("Settings"),resetAll:()=>{r({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:C,children:[(0,Lr.jsx)(Dm,{className:"wp-block-audio__autoplay-help-text",children:(0,ba.__)("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,Lr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,ba.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({autoplay:!1}),children:(0,Lr.jsx)(Ii.ToggleControl,{label:(0,ba.__)("Autoplay"),onChange:h("autoplay"),checked:!!l})}),(0,Lr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,ba.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>r({loop:!1}),children:(0,Lr.jsx)(Ii.ToggleControl,{label:(0,ba.__)("Loop"),onChange:h("loop"),checked:!!c})}),(0,Lr.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,ba.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>r({preload:void 0}),children:(0,Lr.jsx)(Ii.SelectControl,{label:(0,ba._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:S=>r({preload:S||void 0}),options:[{value:"",label:(0,ba.__)("Browser default")},{value:"auto",label:(0,ba.__)("Auto")},{value:"metadata",label:(0,ba.__)("Metadata")},{value:"none",label:(0,ba._x)("None","Preload value")}]})})]})}),(0,Lr.jsxs)("figure",{...k,children:[(0,Lr.jsx)("audio",{controls:"controls",inert:n?void 0:"true",src:d??p}),!!p&&(0,Lr.jsx)(Ii.Spinner,{}),(0,Lr.jsx)(Zo,{attributes:e,setAttributes:r,isSelected:n,insertBlocksAfter:i,label:(0,ba.__)("Audio caption text"),showToolbarButton:n&&g})]})]})}var Dq=$we;var W4={$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,color:{background:!1,link:!0,text:!1,__experimentalDefaultControls:{link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var Hm=a(I(),1),Z_=a(y(),1);function Aq({attributes:e}){let{autoplay:t,caption:r,loop:o,preload:n,src:i}=e;return i&&(0,Z_.jsxs)("figure",{...Hm.useBlockProps.save(),children:[(0,Z_.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:o,preload:n}),!Hm.RichText.isEmpty(r)&&(0,Z_.jsx)(Hm.RichText.Content,{tagName:"figcaption",value:r,className:(0,Hm.__experimentalGetElementClassName)("caption")})]})}var Oq=a(Ur(),1),Fq=a(te(),1),Zwe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,Fq.createBlock)("core/audio",{blob:(0,Oq.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}}}]},Vq=Zwe;var{name:zq}=W4,Hq={icon:sm,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Vq,deprecated:UU,edit:Dq,save:Aq},Kwe=()=>D({name:zq,metadata:W4,settings:Hq});var LL={};J(LL,{init:()=>Qwe,metadata:()=>G4,name:()=>$q,settings:()=>qq});var G4={$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},background:{gradient:!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 to=a(L(),1),K_=a(I(),1),cn=a(F(),1),jq=a(H(),1),q4=a(ae(),1),Su=a(W(),1),Uq=a(bd(),1),Wq=a(_e(),1);var Lt=a(y(),1),$4="/";function Gq({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,jq.useSelect)(O=>{if(!n)return{};let j=O(q4.store).getEntityRecord("postType",n,o),V=O(q4.store).getPostType(n),G=V&&V.taxonomies.length,$;return G&&($=O(q4.store).getTaxonomies({type:n,per_page:-1})),{post:j,isPostTypeHierarchical:V?.hierarchical,postTypeHasTaxonomies:G,hasTermsAssigned:j&&($||[]).filter(({visibility:z})=>z?.publicly_queryable).some(z=>!!j[z.rest_base]?.length),isLoading:o&&!j||!V||G&&!$}},[n,o]),[b,_]=(0,Su.useState)(0);(0,Su.useEffect)(()=>{_(O=>O+1)},[p]);let v=ee(),{content:w,status:x,error:k}=(0,Uq.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{post_id:o,invalidationKey:b}}),C=(0,Su.useRef)("");(0,Su.useEffect)(()=>{x==="success"&&(C.current=w)},[w,x]);let[S,P]=(0,Su.useState)(!1);(0,Su.useEffect)(()=>{if(x!=="loading")return;let O=setTimeout(()=>{P(!0)},400);return()=>{clearTimeout(O),P(!1)}},[x]);let B=(0,Wq.useDisabled)(),N=(0,K_.useBlockProps)({ref:B});if(h)return(0,Lt.jsx)("div",{...N,children:(0,Lt.jsx)(cn.Spinner,{})});let E;!m&&!p?.parent?E=!0:f?E=u:E=!1;let M=null,R=!o||!n||i&&!n||!E&&!m||E&&!g;if(R){let O=[];l&&O.push((0,to.__)("Home")),i&&!o?O.push((0,to.__)("Page")):E?O.push((0,to.__)("Category")):O.push((0,to.__)("Ancestor"),(0,to.__)("Parent")),M=(0,Lt.jsx)("nav",{...N,style:{"--separator":`"${s.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,...N.style},children:(0,Lt.jsxs)("ol",{children:[O.map((j,V)=>(0,Lt.jsx)("li",{children:(0,Lt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${V}`,children:j})},V)),c&&(0,Lt.jsx)("li",{children:(0,Lt.jsx)("span",{"aria-current":"page",children:(0,to.__)("Current")})})]})})}return(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(K_.InspectorControls,{children:(0,Lt.jsxs)(cn.__experimentalToolsPanel,{label:(0,to.__)("Settings"),resetAll:()=>{t({separator:$4,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:v,children:[(0,Lt.jsx)(cn.__experimentalToolsPanelItem,{label:(0,to.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>t({showHomeItem:!0}),children:(0,Lt.jsx)(cn.ToggleControl,{label:(0,to.__)("Show home breadcrumb"),onChange:O=>t({showHomeItem:O}),checked:l})}),(0,Lt.jsx)(cn.__experimentalToolsPanelItem,{label:(0,to.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>t({showCurrentItem:!0}),children:(0,Lt.jsx)(cn.ToggleControl,{label:(0,to.__)("Show current breadcrumb"),onChange:O=>t({showCurrentItem:O}),checked:c})}),(0,Lt.jsx)(cn.__experimentalToolsPanelItem,{label:(0,to.__)("Separator"),isShownByDefault:!0,hasValue:()=>s!==$4,onDeselect:()=>t({separator:$4}),children:(0,Lt.jsx)(cn.TextControl,{autoComplete:"off",label:(0,to.__)("Separator"),value:s,onChange:O=>t({separator:O}),onBlur:()=>{s||t({separator:$4})}})})]})}),(0,Lt.jsxs)(K_.InspectorControls,{group:"advanced",children:[(0,Lt.jsx)(cn.CheckboxControl,{label:(0,to.__)("Show on homepage"),checked:d,onChange:O=>t({showOnHomePage:O}),help:(0,to.__)("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,Lt.jsx)(cn.CheckboxControl,{label:(0,to.__)("Prefer taxonomy terms"),checked:u,onChange:O=>t({prefersTaxonomy:O}),help:(0,to.__)("The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.")})]}),x==="loading"&&!R&&(C.current?(0,Lt.jsx)(Eo,{wrapperProps:{...N,style:{...N.style,opacity:S?.3:1}},html:C.current}):(0,Lt.jsx)("div",{...N,children:(0,Lt.jsx)(cn.Spinner,{})})),x==="error"&&(0,Lt.jsx)("div",{...N,children:(0,Lt.jsx)("p",{children:(0,to.sprintf)((0,to.__)("Error: %s"),k)})}),R&&M,!R&&x==="success"&&(0,Lt.jsx)(Eo,{wrapperProps:N,html:w})]})}var{name:$q}=G4,qq={icon:kP,example:{},edit:Gq},Qwe=()=>D({name:$q,metadata:G4,settings:qq});var FL={};J(FL,{init:()=>p4e,metadata:()=>Q4,name:()=>uZ,settings:()=>dZ});var cZ=a(L(),1);var Ce=a(I(),1),yl=a(_e(),1);var Yq=a(I(),1);var Zq=a(PM(),1),{lock:Kq,unlock:le}=(0,Zq.__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{cleanEmptyObject:Xwe}=le(Yq.privateApis);function or(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...r}=e.style.typography;return{...e,style:Xwe({...e.style,typography:r}),fontFamily:t.split("|").pop()}}function we(e){let{textAlign:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var Kt=a(y(),1),Ps=e=>{let{width:t,...r}=e;return t?{...r,style:{...r.style,dimensions:{...r.style?.dimensions,width:`${t}%`}}}:r},Lh=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 Jwe(e){if(!e.align)return e;let{align:t,...r}=e;return{...r,className:T(r.className,`align${e.align}`)}}var DL=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}},RL=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 DL(o)},Tu={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"}},e4e={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,Ce.__experimentalGetBorderClassesAndStyles)(e),b=(0,Ce.__experimentalGetColorClassesAndStyles)(e),_=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),v=(0,Ce.__experimentalGetShadowClassesAndStyles)(e),w=(0,Ce.getTypographyClassesAndStyles)(e),x=T("wp-block-button__link",b.className,h.className,w.className,{"no-border-radius":l?.border?.radius===0,"has-custom-font-size":n||l?.typography?.fontSize},(0,Ce.__experimentalGetElementClassName)("button")),k={...h.style,...b.style,..._.style,...v.style,...w.style,writingMode:void 0},C=T(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:C}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:m,type:f?g:null,className:x,href:f?null:d,title:u,style:k,value:c,target:f?null:i,rel:f?null:s})})},isEligible(e){return typeof e.width=="number"},migrate:Ps},t4e={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",b=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),_=(0,Ce.__experimentalGetColorClassesAndStyles)(e),v=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),w=(0,Ce.__experimentalGetShadowClassesAndStyles)(e),x=(0,Ce.getTypographyClassesAndStyles)(e),k=T("wp-block-button__link",_.className,b.className,x.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,Ce.__experimentalGetElementClassName)("button")),C={...b.style,..._.style,...v.style,...w.style,...x.style,writingMode:void 0},S=T(t,{[`has-custom-width wp-block-button__width-${m}`]:m});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:S}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:f,type:g?h:null,className:k,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,yl.compose)(Ps,we)},r4e={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",b=(0,Ce.__experimentalGetBorderClassesAndStyles)(e),_=(0,Ce.__experimentalGetColorClassesAndStyles)(e),v=(0,Ce.__experimentalGetSpacingClassesAndStyles)(e),w=(0,Ce.__experimentalGetShadowClassesAndStyles)(e),x=T("wp-block-button__link",_.className,b.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,Ce.__experimentalGetElementClassName)("button")),k={...b.style,..._.style,...v.style,...w.style},C=T(t,{[`has-custom-width wp-block-button__width-${m}`]:m,"has-custom-font-size":i||c?.typography?.fontSize});return(0,Kt.jsx)("div",{...Ce.useBlockProps.save({className:C}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:f,type:g?h:null,className:x,href:g?null:p,title:d,style:k,value:u,target:g?null:s,rel:g?null:l})})},isEligible(e){return typeof e.width=="number"},migrate:Ps},o4e={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,Ce.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ce.__experimentalGetColorClassesAndStyles)(e),m=(0,Ce.__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,Kt.jsx)("div",{...Ce.useBlockProps.save({className:h}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:f,href:c,title:l,style:g,value:s,target:o,rel:n})})}},n4e={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,Ce.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ce.__experimentalGetColorClassesAndStyles)(e),m=(0,Ce.__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,Kt.jsx)("div",{...Ce.useBlockProps.save({className:h}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:f,href:c,title:l,style:g,value:s,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or),isEligible({style:e,width:t}){return e?.typography?.fontFamily||typeof t=="number"}},a4e=[e4e,t4e,r4e,o4e,n4e,{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:{...Tu,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,Ce.__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,Kt.jsx)("div",{...Ce.useBlockProps.save({className:g}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:m,href:c,title:l,style:f,value:s,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or,Lh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Tu,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,Ce.__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,Kt.jsx)("div",{...Ce.useBlockProps.save({className:m}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:d,href:l,title:s,style:p,value:i,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or,Lh)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Tu,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,Ce.__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,Kt.jsx)("div",{...Ce.useBlockProps.save({className:m}),children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:d,href:l,title:s,style:p,value:i,target:o,rel:n})})},migrate:(0,yl.compose)(Ps,or,Lh)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Tu,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,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:l,href:s,title:i,style:c,value:n,target:r,rel:o})},migrate:(0,yl.compose)(Ps,Lh)},{supports:{align:!0,alignWide:!1},attributes:{...Tu,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,yl.compose)(Ps,Lh,DL,Jwe),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,Ce.getColorClassName)("color",d),g=!i&&(0,Ce.getColorClassName)("background-color",t),h=(0,Ce.__experimentalGetGradientClass)(l),b=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}),_={background:i||void 0,backgroundColor:g||i||l?void 0:o,color:f?void 0:n,borderRadius:r?r+"px":void 0};return(0,Kt.jsx)("div",{children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:b,href:m,title:p,style:_,value:u,target:s,rel:c})})}},{attributes:{...Tu,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()),Lh(DL({...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,Ce.getColorClassName)("color",l),p=(0,Ce.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,Kt.jsx)("div",{children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:m,href:u,title:c,style:f,value:s,target:n,rel:i})})}},{attributes:{...Tu,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:(0,yl.compose)(Ps,RL),save({attributes:e}){let{url:t,text:r,title:o,backgroundColor:n,textColor:i,customBackgroundColor:s,customTextColor:l}=e,c=(0,Ce.getColorClassName)("color",i),u=(0,Ce.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,Kt.jsx)("div",{children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:d,href:t,title:o,style:p,value:r})})}},{attributes:{...Tu,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,Kt.jsx)("div",{className:`align${n}`,children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:l,value:r})})},migrate:(0,yl.compose)(Ps,RL)},{attributes:{...Tu,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,Kt.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,Kt.jsx)(Ce.RichText.Content,{tagName:"a",href:t,title:o,style:{color:s},value:r})})},migrate:(0,yl.compose)(Ps,RL)}],Qq=a4e;var Bs=a(L(),1),zn=a(W(),1),Dh=a(F(),1),yt=a(I(),1),Vd=a(fc(),1);var Eu=a(te(),1),Um=a(_e(),1),Q_=a(H(),1);var Z4="noopener",K4="_blank",Rh="nofollow";var Jq=a(qt(),1);function eZ({rel:e="",url:t="",opensInNewTab:r,nofollow:o}){let n,i=e;if(r)n=K4,i=i?.includes(Z4)?i:i+` ${Z4}`;else{let s=new RegExp(`\\b${Z4}\\s*`,"g");i=i?.replace(s,"").trim()}if(o)i=i?.includes(Rh)?i:(i+` ${Rh}`).trim();else{let s=new RegExp(`\\b${Rh}\\s*`,"g");i=i?.replace(s,"").trim()}return{url:(0,Jq.prependHTTPS)(t),linkTarget:n,rel:i||void 0}}function Y_(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var rZ=a(_e(),1),Y4=a(W(),1),oZ=a(jm(),1),nZ=a(H(),1),aZ=a(I(),1);function Pt(e){let{name:t,attributes:r,setAttributes:o}=e,{textAlign:n}=r,{__unstableMarkNextChangeAsNotPersistent:i}=(0,nZ.useDispatch)(aZ.store),s=(0,rZ.useEvent)(()=>{(0,oZ.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,Y4.useRef)();(0,Y4.useEffect)(()=>{n!==l.current&&(l.current=n,s())},[n,s])}function AL(e){return typeof e=="string"&&e.endsWith("%")}function iZ(e){if(!e)return{};if(AL(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 Vn=a(y(),1),{HTMLElementControl:i4e}=le(yt.privateApis),{subscribeDelegatedListener:s4e}=le(Um.privateApis),l4e=[...yt.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,Bs.__)("Mark as nofollow")}];function c4e(e){let{replaceBlocks:t,selectionChange:r}=(0,Q_.useDispatch)(yt.store),{getBlock:o,getBlockAttributes:n,getBlockRootClientId:i,getBlockIndex:s}=(0,Q_.useSelect)(yt.store);return(0,Um.useRefEffect)(l=>{function c(u){if(u.defaultPrevented||u.keyCode!==Vd.ENTER)return;let{text:d}=n(e)??{};if(d?.length)return;u.preventDefault();let p=o(i(e)),m=s(e),f=(0,Eu.cloneBlock)({...p,innerBlocks:p.innerBlocks.slice(0,m)}),g=(0,Eu.createBlock)((0,Eu.getDefaultBlockName)()),h=p.innerBlocks.slice(m+1),b=h.length?[(0,Eu.cloneBlock)({...p,innerBlocks:h})]:[];t(p.clientId,[f,g,...b],1),r(g.clientId)}return s4e(l,"keydown",c,!0)},[])}function u4e(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:b}=t,_=f?.dimensions?.width;Pt(e);let v=u||"a";function w(de){Vd.isKeyboardEvent.primary(de,"k")?X(de):Vd.isKeyboardEvent.primaryShift(de,"k")&&(Q(),M.current?.focus())}let[x,k]=(0,zn.useState)(null),C=(0,yt.__experimentalUseBorderProps)(t),S=(0,yt.__experimentalUseColorProps)(t),P=(0,yt.__experimentalGetSpacingClassesAndStyles)(t),B=(0,yt.__experimentalGetShadowClassesAndStyles)(t),N=(0,yt.__experimentalGetDimensionsClassesAndStyles)(t),E=(0,zn.useRef)(),M=(0,zn.useRef)(),R=(0,yt.useBlockProps)({ref:(0,Um.useMergeRefs)([k,E]),onKeyDown:w}),O=(0,yt.useBlockEditingMode)(),[j,V]=(0,zn.useState)(!1),G=!!h,$=d===K4,z=!!m?.includes(Rh),K=v==="a",{createPageEntity:q,userCanCreatePages:Y,lockUrlControls:oe=!1}=(0,Q_.useSelect)(de=>{if(!n)return{};let re=de(yt.store).getSettings(),Pe=(0,Eu.getBlockBindingsSource)(b?.bindings?.url?.source);return{createPageEntity:re.__experimentalCreatePageEntity,userCanCreatePages:re.__experimentalUserCanCreatePages,lockUrlControls:!!b?.bindings?.url&&!Pe?.canUserEditValue?.({select:de,context:c,args:b?.bindings?.url?.args})}},[c,n,b?.bindings?.url]);async function Z(de){let re=await q({title:de,status:"draft"});return{id:re.id,type:re.type,title:re.title.rendered,url:re.link,kind:"post-type"}}function U(de){return(0,zn.createInterpolateElement)((0,Bs.sprintf)((0,Bs.__)("Create page: <mark>%s</mark>"),de),{mark:(0,Vn.jsx)("mark",{})})}function X(de){de.preventDefault(),V(!0)}function Q(){r({url:void 0,linkTarget:void 0,rel:void 0}),V(!1)}(0,zn.useEffect)(()=>{n||V(!1)},[n]);let ie=(0,zn.useMemo)(()=>({url:h,opensInNewTab:$,nofollow:z}),[h,$,z]),me=c4e(l),xe=(0,Um.useMergeRefs)([me,M]),[Be,se,he]=(0,yt.useSettings)("typography.fluid","layout","dimensions.dimensionSizes"),ze=(0,zn.useMemo)(()=>he?[...he?.custom??[],...he?.theme??[],...he?.default??[]]:[],[he]),qe=(0,yt.getTypographyClassesAndStyles)(t,{typography:{fluid:Be},layout:{wideSize:se?.wideSize}}),ce=(0,zn.useMemo)(()=>{if(!_)return;let de="var:preset|dimension|";if(_.startsWith(de)){let re=_.slice(de.length);return ze?.find(Se=>Se.slug===re)?.size??_}return _},[_,ze]),Qe=O==="default"||K&&!oe,ye=T(R.className,iZ(ce)),fe=(0,zn.useMemo)(()=>_?AL(ce)?{"--wp--block-button--width":parseFloat(ce)}:N.style:{},[_,ce,N.style]);return(0,Vn.jsxs)(Vn.Fragment,{children:[(0,Vn.jsx)("div",{...R,className:ye,style:{...R.style,...fe},children:(0,Vn.jsx)(yt.RichText,{ref:xe,"aria-label":(0,Bs.__)("Button text"),placeholder:p||(0,Bs.__)("Add text\u2026"),value:g,onChange:de=>r({text:Y_(de)}),withoutInteractiveFormatting:!0,className:T(o,"wp-block-button__link",S.className,C.className,qe.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":R.style.fontSize},(0,yt.__experimentalGetElementClassName)("button")),style:{...C.style,...S.style,...P.style,...B.style,...qe.style,writingMode:void 0},onReplace:i,onMerge:s,identifier:"text"})}),Qe&&(0,Vn.jsx)(yt.BlockControls,{group:"block",children:K&&!oe&&(0,Vn.jsx)(Dh.ToolbarButton,{name:"link",icon:G?Fy:Pi,title:G?(0,Bs.__)("Unlink"):(0,Bs.__)("Link"),shortcut:G?Vd.displayShortcut.primaryShift("k"):Vd.displayShortcut.primary("k"),onClick:G?Q:X,isActive:G})}),K&&n&&(j||G)&&!oe&&(0,Vn.jsx)(Dh.Popover,{placement:"bottom",onClose:()=>{V(!1),M.current?.focus()},anchor:x,focusOnMount:j?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,Vn.jsx)(yt.LinkControl,{value:ie,onChange:({url:de,opensInNewTab:re,nofollow:Pe})=>r(eZ({rel:m,url:de,opensInNewTab:re,nofollow:Pe})),onRemove:()=>{Q(),M.current?.focus()},forceIsEditingLink:j,settings:l4e,createSuggestion:q&&Z,withCreateSuggestion:Y,createSuggestionButtonText:U})}),(0,Vn.jsxs)(yt.InspectorControls,{group:"advanced",children:[(0,Vn.jsx)(i4e,{tagName:u,onChange:de=>r({tagName:de}),options:[{label:(0,Bs.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),K&&(0,Vn.jsx)(Dh.TextControl,{label:(0,Bs.__)("Link relation"),help:(0,zn.createInterpolateElement)((0,Bs.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Vn.jsx)(bl,{openInNewTab:!0,href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:m||"",onChange:de=>r({rel:de})})]})]})}var sZ=u4e;var Q4={$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 Hn=a(I(),1),OL=a(y(),1);function lZ({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,Hn.__experimentalGetBorderClassesAndStyles)(e),g=(0,Hn.__experimentalGetColorClassesAndStyles)(e),h=(0,Hn.__experimentalGetSpacingClassesAndStyles)(e),b=(0,Hn.__experimentalGetShadowClassesAndStyles)(e),_=(0,Hn.getTypographyClassesAndStyles)(e),v=T("wp-block-button__link",g.className,f.className,_.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":o||s?.typography?.fontSize},(0,Hn.__experimentalGetElementClassName)("button")),w={...f.style,...g.style,...h.style,...b.style,..._.style,writingMode:void 0};return(0,OL.jsx)("div",{...Hn.useBlockProps.save(),children:(0,OL.jsx)(Hn.RichText.Content,{tagName:d,type:p?m:null,className:v,href:p?null:u,title:c,style:w,value:l,target:p?null:n,rel:p?null:i})})}var{name:uZ}=Q4,dZ={icon:CP,example:{attributes:{className:"is-style-fill",text:(0,cZ.__)("Call to action")}},edit:sZ,save:lZ,deprecated:Qq,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}},p4e=()=>D({name:uZ,metadata:Q4,settings:dZ});var HL={};J(HL,{init:()=>v4e,metadata:()=>J4,name:()=>_Z,settings:()=>xZ});var zL=a(L(),1);var J_=a(I(),1),X_=a(y(),1),pZ=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},m4e=[{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:pZ,save({attributes:{contentJustification:e,orientation:t}}){return(0,X_.jsx)("div",{...J_.useBlockProps.save({className:T({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,X_.jsx)(J_.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,X_.jsx)("div",{children:(0,X_.jsx)(J_.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return pZ({...e,align:void 0,contentJustification:e.align})}}],mZ=m4e;var t2=a(te(),1),VL=a(vl(),1);var e2=a(te(),1);function Pu(e,t,r=null){if(!e)return;let o=(0,e2.getBlockType)(t);if(!o)return;let n={};if((0,e2.hasBlockSupport)(o,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,e2.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 f4e={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,t2.createBlock)("core/buttons",{},e.map(t=>(0,t2.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,t2.createBlock)("core/buttons",{},e.map(t=>{let{content:r}=t,o=(0,VL.__unstableCreateElement)(document,r),n=o.innerText||"",s=o.querySelector("a")?.getAttribute("href");return(0,t2.createBlock)("core/button",{...t,...Pu(t,"core/button",({content:l})=>({text:l})),text:n,url:s})})),isMatch:e=>e.every(t=>{let r=(0,VL.__unstableCreateElement)(document,t.content),o=r.innerText||"",n=r.querySelectorAll("a");return o.length<=30&&n.length<=1})}]},gZ=f4e;var X4=a(I(),1),hZ=a(y(),1),g4e={name:"core/button"};function h4e({attributes:e,className:t}){let{fontSize:r,layout:o,style:n}=e,i=(0,X4.useBlockProps)({className:T(t,{"has-custom-font-size":r||n?.typography?.fontSize})}),s=(0,X4.useInnerBlocksProps)(i,{defaultBlock:g4e,orientation:o?.orientation??"horizontal"});return(0,hZ.jsx)("div",{...s})}var bZ=h4e;var J4={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 eC=a(I(),1),yZ=a(y(),1);function vZ({attributes:e,className:t}){let{fontSize:r,style:o}=e,n=eC.useBlockProps.save({className:T(t,{"has-custom-font-size":r||o?.typography?.fontSize})}),i=eC.useInnerBlocksProps.save(n);return(0,yZ.jsx)("div",{...i})}var{name:_Z}=J4,y4e=[["core/button"]],xZ={icon:TP,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,zL.__)("Find out more")}},{name:"core/button",attributes:{text:(0,zL.__)("Contact us")}}]},deprecated:mZ,transforms:gZ,template:y4e,templateInsertUpdatesSelection:!0,edit:bZ,save:vZ},v4e=()=>D({name:_Z,metadata:J4,settings:xZ});var UL={};J(UL,{init:()=>w4e,metadata:()=>tC,name:()=>BZ,settings:()=>IZ});var tC={$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 r2=a(F(),1),kZ=a(H(),1),wZ=a(bd(),1),CZ=a(I(),1),SZ=a(ae(),1),Ah=a(L(),1),TZ=a(_e(),1);var Ni=a(y(),1),x4e=Bh(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function EZ({attributes:e,name:t}){let{date:r,hasPosts:o,hasPostsResolved:n}=(0,kZ.useSelect)(d=>{let{getEntityRecords:p,hasFinishedResolution:m}=d(SZ.store),f={status:"publish",per_page:1},g=p("postType","post",f),h=m("getEntityRecords",["postType","post",f]),b,_=d("core/editor");return _&&_.getEditedPostAttribute("type")==="post"&&(b=_.getEditedPostAttribute("date")),{date:b,hasPostsResolved:h,hasPosts:h&&g?.length===1}},[]),{content:i,status:s,error:l}=(0,wZ.useServerSideRender)({attributes:{...e,...x4e(r)},block:t}),c=(0,TZ.useDisabled)(),u=(0,CZ.useBlockProps)({ref:c});return o?(0,Ni.jsxs)(Ni.Fragment,{children:[s==="loading"&&(0,Ni.jsx)("div",{...u,children:(0,Ni.jsx)(r2.Spinner,{})}),s==="error"&&(0,Ni.jsx)("div",{...u,children:(0,Ni.jsx)("p",{children:(0,Ah.sprintf)((0,Ah.__)("Error: %s"),l)})}),s==="success"&&(0,Ni.jsx)(Eo,{wrapperProps:u,html:i})]}):(0,Ni.jsx)("div",{...u,children:(0,Ni.jsx)(r2.Placeholder,{icon:Hb,label:(0,Ah.__)("Calendar"),children:n?(0,Ah.__)("No published posts found."):(0,Ni.jsx)(r2.Spinner,{})})})}var jL=a(te(),1),k4e={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,jL.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,jL.createBlock)("core/archives")}]},PZ=k4e;var{name:BZ}=tC,IZ={icon:Hb,example:{},edit:EZ,transforms:PZ},w4e=()=>D({name:BZ,metadata:tC,settings:IZ});var $L={};J($L,{init:()=>T4e,metadata:()=>rC,name:()=>AZ,settings:()=>OZ});var rC={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textColumns:!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}},shadow:!0},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var Dr=a(F(),1),NZ=a(_e(),1),Oh=a(I(),1),MZ=a($o(),1),Rr=a(L(),1);var WL=a(ae(),1),LZ=a(H(),1);var RZ=a(br(),1);var Ct=a(y(),1);function GL({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,NZ.useInstanceId)(GL,"blocks-category-select"),{records:m,isResolvingTaxonomies:f}=(0,WL.useEntityRecords)("root","taxonomy",{per_page:-1}),g=m?.filter(G=>G.visibility.public),h=g?.find(G=>G.slug===l),b=!f&&h?.hierarchical,_={per_page:-1,hide_empty:!n,context:"view"};b&&o&&(_.parent=0);let{records:v,isResolving:w}=(0,WL.useEntityRecords)("taxonomy",l,_),{createWarningNotice:x}=(0,LZ.useDispatch)(RZ.store),k=G=>{G.preventDefault(),x((0,Rr.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${d}`,type:"snackbar"})},C=G=>v?.length?G===null?v:v.filter(({parent:$})=>$===G):[],S=G=>$=>c({[G]:$}),P=G=>G?(0,MZ.decodeEntities)(G).trim():(0,Rr.__)("(Untitled)"),B=()=>C(b&&t?0:null).map(z=>N(z)),N=G=>{let $=C(G.id),{id:z,link:K,count:q,name:Y}=G;return(0,Ct.jsxs)("li",{className:`cat-item cat-item-${z}`,children:[(0,Ct.jsx)("a",{href:K,onClick:k,children:P(Y)}),r&&` (${q})`,b&&t&&!!$.length&&(0,Ct.jsx)("ul",{className:"children",children:$.map(oe=>N(oe))})]},z)},E=()=>{let $=C(b&&t?0:null);return(0,Ct.jsxs)(Ct.Fragment,{children:[s?(0,Ct.jsx)(Oh.RichText,{className:"wp-block-categories__label","aria-label":(0,Rr.__)("Label text"),placeholder:h?.name,withoutInteractiveFormatting:!0,value:i,onChange:z=>c({label:z})}):(0,Ct.jsx)(ln,{render:(0,Ct.jsx)("label",{htmlFor:p}),children:i||h?.name}),(0,Ct.jsxs)("select",{id:p,children:[(0,Ct.jsx)("option",{children:(0,Rr.sprintf)((0,Rr.__)("Select %s"),h?.labels?.singular_name)}),$.map(z=>M(z,0))]})]})},M=(G,$)=>{let{id:z,count:K,name:q}=G,Y=C(z);return[(0,Ct.jsxs)("option",{className:`level-${$}`,children:[Array.from({length:$*3}).map(()=>"\xA0"),P(q),r&&` (${K})`]},z),b&&t&&!!Y.length&&Y.map(oe=>M(oe,$+1))]},R=v?.length&&!e&&!w?"ul":"div",O=T(u,`wp-block-categories-taxonomy-${l}`,{"wp-block-categories-list":!!v?.length&&!e&&!w,"wp-block-categories-dropdown":!!v?.length&&e&&!w}),j=(0,Oh.useBlockProps)({className:O}),V=ee();return(0,Ct.jsxs)(R,{...j,children:[(0,Ct.jsx)(Oh.InspectorControls,{children:(0,Ct.jsxs)(Dr.__experimentalToolsPanel,{label:(0,Rr.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:V,children:[Array.isArray(g)&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>l!=="category",label:(0,Rr.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,Ct.jsx)(Dr.SelectControl,{label:(0,Rr.__)("Taxonomy"),options:g.map(G=>({label:G.name,value:G.slug})),value:l,onChange:G=>c({taxonomy:G})})}),(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,Rr.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Display as dropdown"),checked:e,onChange:S("displayAsDropdown")})}),e&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Rr.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{className:"wp-block-categories__indentation",label:(0,Rr.__)("Show label"),checked:s,onChange:S("showLabel")})}),(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Rr.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show post counts"),checked:r,onChange:S("showPostCounts")})}),b&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,Rr.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show only top level terms"),checked:o,onChange:S("showOnlyTopLevel")})}),(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Rr.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show empty terms"),checked:n,onChange:S("showEmpty")})}),b&&!o&&(0,Ct.jsx)(Dr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Rr.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,Ct.jsx)(Dr.ToggleControl,{label:(0,Rr.__)("Show hierarchy"),checked:t,onChange:S("showHierarchy")})})]})}),w&&(0,Ct.jsx)(Dr.Placeholder,{icon:av,label:(0,Rr.__)("Terms"),children:(0,Ct.jsx)(Dr.Spinner,{})}),!w&&v?.length===0&&(0,Ct.jsx)("p",{children:h.labels.no_terms}),!w&&v?.length>0&&(e?E():B())]})}var oC=a(L(),1);var S4e=[{name:"terms",title:(0,oC.__)("Terms List"),icon:_d,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,oC.__)("Categories List"),description:(0,oC.__)("Display a list of all categories."),icon:_d,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],DZ=S4e;var{name:AZ}=rC,OZ={icon:_d,example:{},edit:GL,variations:DZ},T4e=()=>D({name:AZ,metadata:rC,settings:OZ});var ZL={};J(ZL,{init:()=>N4e,metadata:()=>sC,name:()=>n2,settings:()=>QZ});var Bu=a(I(),1),$Z=a(H(),1),Iu=a(F(),1),Vh=a(W(),1),o2=a(L(),1);var FZ=a(L(),1),VZ=a(F(),1),nC=a(H(),1),aC=a(te(),1),qL=a(I(),1),zZ=a(y(),1),E4e=({clientId:e})=>{let{replaceBlocks:t}=(0,nC.useDispatch)(qL.store),r=(0,nC.useSelect)(o=>o(qL.store).getBlock(e),[e]);return(0,zZ.jsx)(VZ.ToolbarButton,{onClick:()=>t(r.clientId,(0,aC.rawHandler)({HTML:(0,aC.serialize)(r)})),children:(0,FZ.__)("Convert to blocks")})},HZ=E4e;var jZ=a(I(),1),_l=a(F(),1),iC=a(W(),1),Fh=a(L(),1),UZ=a(H(),1);var WZ=a(_e(),1),Is=a(y(),1);function P4e({onClick:e,isModalFullScreen:t}){return(0,WZ.useViewportMatch)("small","<")?null:(0,Is.jsx)(_l.Button,{size:"compact",onClick:e,icon:fm,isPressed:t,label:t?(0,Fh.__)("Exit fullscreen"):(0,Fh.__)("Enter fullscreen")})}function B4e(e){let t=(0,UZ.useSelect)(r=>r(jZ.store).getSettings().styles);return(0,iC.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,Is.jsx)("textarea",{...e})}function GZ({clientId:e,content:t,onClose:r,onChange:o}){let[n,i]=(0,iC.useState)(!1),s=`editor-${e}`;return(0,Is.jsxs)(_l.Modal,{title:(0,Fh.__)("Classic Editor"),onRequestClose:r,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:n,className:"block-editor-freeform-modal__content",headerActions:(0,Is.jsx)(P4e,{onClick:()=>i(!n),isModalFullScreen:n}),children:[(0,Is.jsx)(B4e,{id:s,defaultValue:t}),(0,Is.jsxs)(_l.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Is.jsx)(_l.FlexItem,{children:(0,Is.jsx)(_l.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:r,children:(0,Fh.__)("Cancel")})}),(0,Is.jsx)(_l.FlexItem,{children:(0,Is.jsx)(_l.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{o(window.wp.oldEditor.getContent(s)),r()},children:(0,Fh.__)("Save")})})]})]})}var un=a(y(),1);function qZ({attributes:e,setAttributes:t,clientId:r}){let{content:o}=e,[n,i]=(0,Vh.useState)(!1),s=(0,Vh.useRef)(null),l=(0,$Z.useSelect)(c=>c(Bu.store).canRemoveBlock(r),[r]);return(0,un.jsxs)(un.Fragment,{children:[l&&(0,un.jsx)(Bu.BlockControls,{children:(0,un.jsx)(Iu.ToolbarGroup,{children:(0,un.jsx)(HZ,{clientId:r})})}),(0,un.jsx)(Bu.BlockControls,{children:(0,un.jsx)(Iu.ToolbarGroup,{children:(0,un.jsx)(Iu.ToolbarButton,{ref:s,onClick:()=>i(!0),children:(0,o2.__)("Edit")})})}),(0,un.jsxs)("div",{...(0,Bu.useBlockProps)(),children:[o?(0,un.jsx)(Vh.RawHTML,{children:o}):(0,un.jsx)(Iu.Placeholder,{icon:(0,un.jsx)(Bu.BlockIcon,{icon:Ub}),label:(0,o2.__)("Classic"),instructions:(0,o2.__)("Use the classic editor to add content."),children:(0,un.jsx)(Iu.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>i(!0),children:(0,o2.__)("Edit contents")})}),n&&(0,un.jsx)(GZ,{clientId:r,content:o,onClose:()=>{i(!1),s.current&&s.current.focus()},onChange:c=>t({content:c})})]})]})}var sC={$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(W(),1),KZ=a(y(),1);function YZ({attributes:e}){let{content:t}=e;return(0,KZ.jsx)(ZZ.RawHTML,{children:t})}var{name:n2}=sC,QZ={icon:Ub,edit:qZ,save:YZ},N4e=()=>D({name:n2,metadata:sC,settings:QZ});var XL={};J(XL,{init:()=>A4e,metadata:()=>uC,name:()=>nK,settings:()=>aK});var oK=a(L(),1);var KL=a(L(),1),lC=a(I(),1),cC=a(te(),1),YL=a(y(),1);function XZ({attributes:e,setAttributes:t,onRemove:r,insertBlocksAfter:o,mergeBlocks:n}){let i=(0,lC.useBlockProps)();return(0,YL.jsx)("pre",{...i,children:(0,YL.jsx)(lC.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:s=>t({content:s}),onRemove:r,onMerge:n,placeholder:(0,KL.__)("Write code\u2026"),"aria-label":(0,KL.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:o?()=>o((0,cC.createBlock)((0,cC.getDefaultBlockName)())):void 0,style:{whiteSpace:"break-spaces"}})})}var uC={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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}},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-code"};var dC=a(I(),1);var JZ=a(_e(),1);function eK(e){return(0,JZ.pipe)(L4e,R4e)(e||"")}function L4e(e){return e.replace(/\[/g,"&#91;")}function R4e(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1&#47;&#47;$2")}var QL=a(y(),1);function tK({attributes:e}){return(0,QL.jsx)("pre",{...dC.useBlockProps.save(),children:(0,QL.jsx)(dC.RichText.Content,{tagName:"code",value:eK(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var Wm=a(te(),1),pC=a(vl(),1);var D4e={from:[{type:"input",regExp:/^```$/,transform:()=>(0,Wm.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,Wm.createBlock)("core/code",{...e,...Pu(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],__experimentalConvert(e){let{attributes:t}=e;return(0,Wm.createBlock)("core/code",{...t,...Pu(t,"core/code"),content:(0,pC.toHTMLString)({value:(0,pC.create)({text:(0,Wm.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,Wm.createBlock)("core/paragraph",{...Pu(e,"core/paragraph"),content:t})}}]},rK=D4e;var{name:nK}=uC,aK={icon:Wb,example:{attributes:{content:(0,oK.__)(`// A \u201Cblock\u201D is the abstract term used
3 12 // to describe units of markup that
4 13 // when composed together, form the
5 14 // content or layout of a page.
6 15 registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+`
7 16
8 -`+t.content}},transforms:cj,edit:nj,save:sj};window.__experimentalContentOnlyInspectorFields&&(Nk[m1e]=[{id:"content",label:(0,dN.__)("Code"),type:"text",Edit:"rich-text"}],Nk[p1e]={fields:["content"]});var d1e=()=>I({name:mj,metadata:Pk,settings:Nk});var gN={};Z(gN,{init:()=>b1e,metadata:()=>Dk,name:()=>vj,settings:()=>bj});var pj=a(T(),1),hN=a(v(),1),f1e=[{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=w({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:r+"%"};return(0,hN.jsx)("div",{className:o,style:n,children:(0,hN.jsx)(pj.InnerBlocks.Content,{})})}}],dj=f1e;var Go=a(T(),1),tm=a(R(),1),Ik=a(F(),1),Up=a(B(),1);var ri=a(v(),1);function h1e({width:e,setAttributes:t}){let[r]=(0,Go.useSettings)("spacing.units"),o=(0,tm.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=q();return(0,ri.jsx)(tm.__experimentalToolsPanel,{label:(0,Up.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,ri.jsx)(tm.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Up.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,ri.jsx)(tm.__experimentalUnitControl,{label:(0,Up.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function g1e({attributes:{verticalAlignment:e,width:t,templateLock:r,allowedBlocks:o},setAttributes:n,clientId:i}){let l=w("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,Ik.useSelect)(_=>{let{getBlockOrder:x,getBlockRootClientId:k}=_(Go.store),S=k(i);return{hasChildBlocks:x(i).length>0,rootClientId:S,columnsIds:x(S)}},[i]),{updateBlockAttributes:m}=(0,Ik.useDispatch)(Go.store),p=_=>{n({verticalAlignment:_}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,Go.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),h=s.length,g=s.indexOf(i)+1,b=(0,Up.sprintf)((0,Up.__)("%1$s (%2$d of %3$d)"),f["aria-label"],g,h),y=(0,Go.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:r,allowedBlocks:o,renderAppender:c?void 0:Go.InnerBlocks.ButtonBlockAppender});return(0,ri.jsxs)(ri.Fragment,{children:[(0,ri.jsx)(Go.BlockControls,{children:(0,ri.jsx)(Go.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,ri.jsx)(Go.InspectorControls,{children:(0,ri.jsx)(h1e,{width:t,setAttributes:n})}),(0,ri.jsx)("div",{...y})]})}var fj=g1e;var Dk={$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 Lk=a(T(),1),hj=a(v(),1);function gj({attributes:e}){let{verticalAlignment:t,width:r}=e,o=w({[`is-vertically-aligned-${t}`]:t}),n;if(r&&/\d/.test(r)){let s=Number.isFinite(r)?r+"%":r;!Number.isFinite(r)&&r?.endsWith("%")&&(s=Math.round(Number.parseFloat(r)*1e12)/1e12+"%"),n={flexBasis:s}}let i=Lk.useBlockProps.save({className:o,style:n}),l=Lk.useInnerBlocksProps.save(i);return(0,hj.jsx)("div",{...l})}var{name:vj}=Dk,bj={icon:M9,edit:fj,save:gj,deprecated:dj},b1e=()=>I({name:vj,metadata:Dk,settings:bj});var yN={};Z(yN,{init:()=>L1e,metadata:()=>Rk,name:()=>Bj,settings:()=>Ej});var av=a(B(),1);var yj=a($(),1),Wp=a(T(),1),Gp=a(v(),1);function Mk(e){let{doc:t}=Mk;t||(t=document.implementation.createHTMLDocument(""),Mk.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 y1e=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}},_j=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:y1e,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:n,customTextColor:i}=e,l=(0,Wp.getColorClassName)("background-color",r),s=(0,Wp.getColorClassName)("color",n),c=w({"has-background":r||o,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Gp.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:o,color:s?void 0:i},children:(0,Gp.jsx)(Wp.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>Mk(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((l,s)=>{let{originalContent:c}=s,u=Mk(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,yj.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,Gp.jsx)("div",{className:`has-${t}-columns`,children:(0,Gp.jsx)(Wp.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=w(`has-${r}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Gp.jsx)("div",{className:o,children:(0,Gp.jsx)(Wp.InnerBlocks.Content,{})})}}];var $p=a(B(),1),Ki=a(R(),1),Hr=a(T(),1),Zi=a(F(),1),qp=a($(),1);var Ak=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function xj(e,t){let{width:r=100/t}=e.attributes;return Ak(r)}function _1e(e,t=e.length){return e.reduce((r,o)=>r+xj(o,t),0)}function x1e(e,t=e.length){return e.reduce((r,o)=>{let n=xj(o,t);return Object.assign(r,{[o.clientId]:n})},{})}function vN(e,t,r=e.length){let o=_1e(e,r);return Object.fromEntries(Object.entries(x1e(e,r)).map(([n,i])=>{let l=t*i/o;return[n,Ak(l)]}))}function kj(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function bN(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var mo=a(v(),1),k1e={name:"core/column"};function w1e({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:n,minCount:i}=(0,Zi.useSelect)(m=>{let{canInsertBlockType:p,canRemoveBlock:d,getBlockOrder:f}=m(Hr.store),h=f(e),g=h.reduce((b,y,_)=>(d(y)||b.push(_),b),[]);return{count:h.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...g)+1}},[e]),{getBlocks:l}=(0,Zi.useSelect)(Hr.store),{replaceInnerBlocks:s}=(0,Zi.useDispatch)(Hr.store);function c(m,p){let d=l(e),f=kj(d),h=p>m;if(h&&f){let g=Ak(100/p),b=p-m,y=vN(d,100-g*b);d=[...bN(d,y),...Array.from({length:b}).map(()=>(0,qp.createBlock)("core/column",{width:`${g}%`}))]}else if(h)d=[...d,...Array.from({length:p-m}).map(()=>(0,qp.createBlock)("core/column"))];else if(p<m&&(d=d.slice(0,-(m-p)),f)){let g=vN(d,100);d=bN(d,g)}s(e,d)}let u=q();return(0,mo.jsxs)(Ki.__experimentalToolsPanel,{label:(0,$p.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,mo.jsxs)(Ki.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,mo.jsx)(Ki.RangeControl,{__next40pxDefaultSize:!0,label:(0,$p.__)("Columns"),value:o,onChange:m=>c(o,Math.max(i,m)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,mo.jsx)(Ki.Notice,{status:"warning",isDismissible:!1,children:(0,$p.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,mo.jsx)(Ki.__experimentalToolsPanelItem,{label:(0,$p.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,mo.jsx)(Ki.ToggleControl,{label:(0,$p.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function C1e({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:n,templateLock:i}=e,l=(0,Zi.useRegistry)(),{getBlockOrder:s}=(0,Zi.useSelect)(Hr.store),{updateBlockAttributes:c}=(0,Zi.useDispatch)(Hr.store),u=w({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!o}),m=(0,Hr.useBlockProps)({className:u}),p=(0,Hr.useInnerBlocksProps)(m,{defaultBlock:k1e,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function d(f){let h=s(r);l.batch(()=>{t({verticalAlignment:f}),c(h,{verticalAlignment:f})})}return(0,mo.jsxs)(mo.Fragment,{children:[(0,mo.jsx)(Hr.BlockControls,{children:(0,mo.jsx)(Hr.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,mo.jsx)(Hr.InspectorControls,{children:(0,mo.jsx)(w1e,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,mo.jsx)("div",{...p})]})}function S1e({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:n}=(0,Zi.useSelect)(s=>{let{getBlockVariations:c,getBlockType:u}=s(qp.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,Zi.useDispatch)(Hr.store),l=(0,Hr.useBlockProps)();return(0,mo.jsx)("div",{...l,children:(0,mo.jsx)(Hr.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:n,instructions:(0,$p.__)("Divide into columns. Select a layout:"),onSelect:s=>{s.attributes&&r(s.attributes),s.innerBlocks&&i(e,(0,qp.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!0)}})})}var T1e=e=>{let{clientId:t}=e,o=(0,Zi.useSelect)(n=>n(Hr.store).getBlocks(t).length>0,[t])?C1e:S1e;return(0,mo.jsx)(o,{...e})},wj=T1e;var Rk={$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 zk=a(T(),1),Cj=a(v(),1);function Sj({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=w({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=zk.useBlockProps.save({className:o}),i=zk.useInnerBlocksProps.save(n);return(0,Cj.jsx)("div",{...i})}var wn=a(R(),1),oi=a(B(),1),ai=a(v(),1),B1e=[{name:"one-column-full",title:(0,oi.__)("100"),description:(0,oi.__)("One column"),icon:(0,ai.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ai.jsx)(wn.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,oi.__)("50 / 50"),description:(0,oi.__)("Two columns; equal split"),icon:(0,ai.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ai.jsx)(wn.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,oi.__)("33 / 66"),description:(0,oi.__)("Two columns; one-third, two-thirds split"),icon:(0,ai.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ai.jsx)(wn.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,oi.__)("66 / 33"),description:(0,oi.__)("Two columns; two-thirds, one-third split"),icon:(0,ai.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ai.jsx)(wn.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,oi.__)("33 / 33 / 33"),description:(0,oi.__)("Three columns; equal split"),icon:(0,ai.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ai.jsx)(wn.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,oi.__)("25 / 50 / 25"),description:(0,oi.__)("Three columns; wide center column"),icon:(0,ai.jsx)(wn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ai.jsx)(wn.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"]}],Tj=B1e;var Ls=a($(),1),E1e=6,N1e=(e,t)=>{let r=+(100/t).toFixed(2),o=Array.from({length:t},(n,i)=>["core/column",{width:`${r}%`},e.filter((l,s)=>s%t===i)]);return(0,Ls.createBlocksFromInnerBlocksTemplate)(o)},I1e=e=>e.flatMap(t=>{let r=t.innerBlocks||[];return r.length>1?[(0,Ls.createBlock)("core/group",{layout:{type:"constrained"}},r)]:r}),D1e={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:n}=r;return(0,Ls.createBlock)("core/columns",o,N1e(t,n))},isMatch:({layout:e})=>e?.type==="grid"&&Number.isInteger(e?.columnCount)&&e.columnCount>0},{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),r=e.map(({name:o,attributes:n,innerBlocks:i})=>["core/column",{width:`${t}%`},[[o,{...n},i]]]);return(0,Ls.createBlock)("core/columns",{},(0,Ls.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=E1e},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:r,backgroundColor:o,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:m,mediaUrl:p,mediaWidth:d,verticalAlignment:f}=e,h;if(m==="image"||!m){let b={id:s,alt:l,url:p,sizeSlug:u},y={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};h=["core/image",{...b,...y}]}else h=["core/video",{id:s,src:p}];let g=[["core/column",{width:`${d}%`},[h]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&g.reverse(),(0,Ls.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:n,style:i,verticalAlignment:f},(0,Ls.createBlocksFromInnerBlocksTemplate)(g))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,Ls.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},I1e(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},Pj=D1e;var{name:Bj}=Rk,Ej={icon:R9,variations:Tj,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,av.__)("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,av.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,av.__)("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,av.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:_j,edit:wj,save:Sj,transforms:Pj},L1e=()=>I({name:Bj,metadata:Rk,settings:Ej});var wN={};Z(wN,{init:()=>F1e,metadata:()=>Vk,name:()=>qj,settings:()=>Zj});var Vk={$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 Fk=a(T(),1),_N=a(v(),1),A1e={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=Fk.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,_N.jsx)(e,{...i,children:(0,_N.jsx)(Fk.InnerBlocks.Content,{})})}},Nj=[A1e];var Uk=a(T(),1);var Ij=a(B(),1),nv=a(T(),1);var Hk=a(v(),1),{HTMLElementControl:R1e}=W(nv.privateApis);function Dj({attributes:{tagName:e},setAttributes:t}){return(0,Hk.jsx)(nv.InspectorControls,{children:(0,Hk.jsx)(nv.InspectorControls,{group:"advanced",children:(0,Hk.jsx)(R1e,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,Ij.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var om=a(T(),1),kN=a(B(),1),Oj=a(R(),1);var Rj=a(T(),1),Qr=a(B(),1),zj=a(F(),1),Vj=a(X(),1),Fj=a(j(),1);var Yi=a(B(),1),rm=a(T(),1),Lj=a(R(),1),Mj=a(fe(),1),Ok=a(X(),1),xN=a(F(),1),ja=a(v(),1),Aj=()=>{let e=(0,Mj.useInstanceId)(Aj);return(0,ja.jsxs)("div",{className:"comment-respond",children:[(0,ja.jsx)("h3",{className:"comment-reply-title",children:(0,Yi.__)("Leave a Reply")}),(0,ja.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,ja.jsxs)("p",{children:[(0,ja.jsx)("label",{htmlFor:`comment-${e}`,children:(0,Yi.__)("Comment")}),(0,ja.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,ja.jsx)("p",{className:"form-submit wp-block-button",children:(0,ja.jsx)("input",{name:"submit",type:"submit",className:w("wp-block-button__link",(0,rm.__experimentalGetElementClassName)("button")),label:(0,Yi.__)("Post Comment"),value:(0,Yi.__)("Post Comment"),"aria-disabled":"true"})})]})]})},z1e=({postId:e,postType:t})=>{let[r,o]=(0,Ok.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,xN.useSelect)(s=>s(rm.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),l=(0,xN.useSelect)(s=>t?!!s(Ok.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let s=[(0,ja.jsx)(Lj.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,Yi._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,ja.jsx)(rm.Warning,{actions:s,children:(0,Yi.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,ja.jsx)(rm.Warning,{children:(0,Yi.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,ja.jsx)(rm.Warning,{children:(0,Yi.sprintf)((0,Yi.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,ja.jsx)(Aj,{})},jk=z1e;var tt=a(v(),1);function Hj({postType:e,postId:t}){let[r]=(0,Vj.useEntityProp)("postType",e,"title",t);r=r||(0,Qr.__)("Post Title");let o=(0,zj.useSelect)(n=>n(Rj.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,tt.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,tt.jsx)("h3",{children:(0,Qr.sprintf)((0,Qr.__)("One response to %s"),r)}),(0,tt.jsxs)("div",{className:"navigation",children:[(0,tt.jsx)("div",{className:"alignleft",children:(0,tt.jsxs)("a",{href:"#top",children:["\xAB ",(0,Qr.__)("Older Comments")]})}),(0,tt.jsx)("div",{className:"alignright",children:(0,tt.jsxs)("a",{href:"#top",children:[(0,Qr.__)("Newer Comments")," \xBB"]})})]}),(0,tt.jsx)("ol",{className:"commentlist",children:(0,tt.jsx)("li",{className:"comment even thread-even depth-1",children:(0,tt.jsxs)("article",{className:"comment-body",children:[(0,tt.jsxs)("footer",{className:"comment-meta",children:[(0,tt.jsxs)("div",{className:"comment-author vcard",children:[(0,tt.jsx)("img",{alt:(0,Qr.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,tt.jsx)("b",{className:"fn",children:(0,tt.jsx)("a",{href:"#top",className:"url",children:(0,Qr.__)("A WordPress Commenter")})})," ",(0,tt.jsxs)("span",{className:"says",children:[(0,Qr.__)("says"),":"]})]}),(0,tt.jsxs)("div",{className:"comment-metadata",children:[(0,tt.jsx)("a",{href:"#top",children:(0,tt.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,Qr.__)("January 1, 2000 at 00:00 am")})})," ",(0,tt.jsx)("span",{className:"edit-link",children:(0,tt.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,Qr.__)("Edit")})})]})]}),(0,tt.jsx)("div",{className:"comment-content",children:(0,tt.jsxs)("p",{children:[(0,Qr.__)("Hi, this is a comment."),(0,tt.jsx)("br",{}),(0,Qr.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,tt.jsx)("br",{}),(0,Fj.createInterpolateElement)((0,Qr.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,tt.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,tt.jsx)("div",{className:"reply",children:(0,tt.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,Qr.__)("Reply to A WordPress Commenter"),children:(0,Qr._x)("Reply","verb")})})]})})}),(0,tt.jsxs)("div",{className:"navigation",children:[(0,tt.jsx)("div",{className:"alignleft",children:(0,tt.jsxs)("a",{href:"#top",children:["\xAB ",(0,Qr.__)("Older Comments")]})}),(0,tt.jsx)("div",{className:"alignright",children:(0,tt.jsxs)("a",{href:"#top",children:[(0,Qr.__)("Newer Comments")," \xBB"]})})]}),(0,tt.jsx)(jk,{postId:t,postType:e})]})}var Vl=a(v(),1);function jj({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:n}=e,i=[(0,Vl.jsx)(Oj.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,kN.__)("Switch to editable mode")},"convert")],l=(0,om.useBlockProps)({className:w({[`has-text-align-${n}`]:n})});return(0,Vl.jsxs)(Vl.Fragment,{children:[(0,Vl.jsx)(om.BlockControls,{group:"block",children:(0,Vl.jsx)(om.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,Vl.jsxs)("div",{...l,children:[(0,Vl.jsx)(om.Warning,{actions:i,children:(0,kN.__)("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,Vl.jsx)(Hj,{postId:o,postType:r})]})]})}var V1e=[["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"]],Uj=V1e;var am=a(v(),1);function Gj(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:n,legacy:i}=t,l=(0,Uk.useBlockProps)(),s=(0,Uk.useInnerBlocksProps)(l,{template:Uj});return i?(0,am.jsx)(jj,{...e}):(0,am.jsxs)(am.Fragment,{children:[(0,am.jsx)(Dj,{attributes:t,setAttributes:r,clientId:o}),(0,am.jsx)(n,{...s})]})}var Gk=a(T(),1),Wj=a(v(),1);function $j({attributes:{tagName:e,legacy:t}}){let r=Gk.useBlockProps.save(),o=Gk.useInnerBlocksProps.save(r);return t?null:(0,Wj.jsx)(e,{...o})}var{name:qj}=Vk,Zj={icon:OP,example:{},edit:Gj,save:$j,deprecated:Nj},F1e=()=>I({name:qj,metadata:Vk,settings:Zj});var SN={};Z(SN,{init:()=>O1e,metadata:()=>Wk,name:()=>Qj,settings:()=>Xj});var Wk={$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 nm=a(T(),1),Xf=a(R(),1),CN=a(X(),1),Kj=a(F(),1),Zp=a(B(),1),Fl=a(v(),1);function Yj({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:n,width:i}=e,[l]=(0,CN.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,CN.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,m=u?u[0]:24,p=u?u[u.length-1]:96,d=(0,nm.useBlockProps)(),f=(0,nm.__experimentalGetSpacingClassesAndStyles)(e),h=Math.floor(p*2.5),g=(0,Kj.useSelect)(_=>{let{__experimentalDiscussionSettings:x}=_(nm.store).getSettings();return x?.avatarURL},[]),b=(0,Fl.jsx)(nm.InspectorControls,{children:(0,Fl.jsx)(Xf.PanelBody,{title:(0,Zp.__)("Settings"),children:(0,Fl.jsx)(Xf.RangeControl,{__next40pxDefaultSize:!0,label:(0,Zp.__)("Image size"),onChange:_=>r({width:_,height:_}),min:m,max:h,initialPosition:i,value:i})})}),y=(0,Fl.jsx)(Xf.ResizableBox,{size:{width:i,height:n},showHandle:o,onResizeStop:(_,x,k,S)=>{r({height:parseInt(n+S.height,10),width:parseInt(i+S.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Zp.isRTL)(),bottom:!0,left:(0,Zp.isRTL)()},minWidth:m,maxWidth:h,children:(0,Fl.jsx)("img",{src:c?c[c.length-1]:g,alt:`${s} ${(0,Zp.__)("Avatar")}`,...d})});return(0,Fl.jsxs)(Fl.Fragment,{children:[b,(0,Fl.jsx)("div",{...f,children:y})]})}var{name:Qj}=Wk,Xj={icon:W0,edit:Yj},O1e=()=>I({name:Qj,metadata:Wk,settings:Xj});var TN={};Z(TN,{init:()=>W1e,metadata:()=>$k,name:()=>oU,settings:()=>aU});var $k={$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 Uc=a(B(),1),Jj=a(F(),1),qk=a(T(),1),eU=a(X(),1),im=a(R(),1);var ni=a(v(),1);function tU(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:n}=e;vt(e);let i=q(),l=(0,qk.useBlockProps)(),s=(0,Jj.useSelect)(m=>{let{getEntityRecord:p}=m(eU.store),d=p("root","comment",o),f=d?.author_name;return d&&!f?p("root","user",d.author)?.name??(0,Uc.__)("Anonymous"):f??""},[o]),c=(0,ni.jsx)(qk.InspectorControls,{children:(0,ni.jsxs)(im.__experimentalToolsPanel,{label:(0,Uc.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,ni.jsx)(im.__experimentalToolsPanelItem,{label:(0,Uc.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,ni.jsx)(im.ToggleControl,{label:(0,Uc.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,ni.jsx)(im.__experimentalToolsPanelItem,{label:(0,Uc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,ni.jsx)(im.ToggleControl,{label:(0,Uc.__)("Open in new tab"),onChange:m=>n({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!s)&&(s=(0,Uc._x)("Comment Author","block title")),(0,ni.jsxs)(ni.Fragment,{children:[c,(0,ni.jsx)("div",{...l,children:t?(0,ni.jsx)("a",{href:"#comment-author-pseudo-link",onClick:m=>m.preventDefault(),children:s}):s})]})}var U1e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},G1e={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:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},rU=[U1e,G1e];var{name:oU}=$k,aU={icon:V9,edit:tU,deprecated:rU,example:{}},W1e=()=>I({name:oU,metadata:$k,settings:aU});var PN={};Z(PN,{init:()=>Z1e,metadata:()=>Zk,name:()=>pU,settings:()=>dU});var Zk={$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 nU=a(B(),1),iU=a(j(),1),lU=a(R(),1),sU=a(X(),1),cU=a(T(),1);var Hl=a(v(),1);function uU(e){let{context:{commentId:t}}=e;vt(e);let r=(0,cU.useBlockProps)(),[o]=(0,sU.useEntityProp)("root","comment","content",t);return!t||!o?(0,Hl.jsx)(Hl.Fragment,{children:(0,Hl.jsx)("div",{...r,children:(0,Hl.jsx)("p",{children:(0,nU._x)("Comment Content","block title")})})}):(0,Hl.jsx)(Hl.Fragment,{children:(0,Hl.jsx)("div",{...r,children:(0,Hl.jsx)(lU.Disabled,{children:(0,Hl.jsx)(iU.RawHTML,{children:o.rendered},"html")})})})}var q1e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},mU=[q1e];var{name:pU}=Zk,dU={icon:H9,edit:uU,deprecated:mU,example:{}},Z1e=()=>I({name:pU,metadata:Zk,settings:dU});var EN={};Z(EN,{init:()=>Q1e,metadata:()=>Kk,name:()=>vU,settings:()=>bU});var Kk={$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 BN=a(X(),1),Yp=a(Yk(),1),Jf=a(T(),1),Qp=a(R(),1),Kp=a(B(),1);var Ua=a(v(),1);function hU({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let n=(0,Jf.useBlockProps)(),i=q(),[l]=(0,BN.useEntityProp)("root","comment","date",r),[s=(0,Yp.getSettings)().formats.date]=(0,BN.useEntityProp)("root","site","date_format"),c=(0,Ua.jsx)(Jf.InspectorControls,{children:(0,Ua.jsxs)(Qp.__experimentalToolsPanel,{label:(0,Kp.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,Ua.jsx)(Qp.__experimentalToolsPanelItem,{label:(0,Kp.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,Ua.jsx)(Jf.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:m=>o({format:m})})}),(0,Ua.jsx)(Qp.__experimentalToolsPanelItem,{label:(0,Kp.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,Ua.jsx)(Qp.ToggleControl,{label:(0,Kp.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!l)&&(l=(0,Kp._x)("Comment Date","block title"));let u=l instanceof Date?(0,Ua.jsx)("time",{dateTime:(0,Yp.dateI18n)("c",l),children:e==="human-diff"?(0,Yp.humanTimeDiff)(l):(0,Yp.dateI18n)(e||s,l)}):(0,Ua.jsx)("time",{children:l});return t&&(u=(0,Ua.jsx)("a",{href:"#comment-date-pseudo-link",onClick:m=>m.preventDefault(),children:u})),(0,Ua.jsxs)(Ua.Fragment,{children:[c,(0,Ua.jsx)("div",{...n,children:u})]})}var Y1e={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:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},gU=[Y1e];var{name:vU}=Kk,bU={icon:g1,edit:hU,deprecated:gU,example:{}},Q1e=()=>I({name:vU,metadata:Kk,settings:bU});var NN={};Z(NN,{init:()=>eve,metadata:()=>Qk,name:()=>xU,settings:()=>kU});var Qk={$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 Xk=a(T(),1),eh=a(R(),1),iv=a(B(),1);var Ol=a(v(),1);function yU(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;vt(e);let n=(0,Xk.useBlockProps)(),i=q(),l=(0,Ol.jsx)(Xk.InspectorControls,{children:(0,Ol.jsx)(eh.__experimentalToolsPanel,{label:(0,iv.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,Ol.jsx)(eh.__experimentalToolsPanelItem,{label:(0,iv.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ol.jsx)(eh.ToggleControl,{label:(0,iv.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,Ol.jsxs)(Ol.Fragment,{children:[l,(0,Ol.jsx)("div",{...n,children:(0,Ol.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,iv.__)("Edit")})})]})}var J1e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},_U=[J1e];var{name:xU}=Qk,kU={icon:j9,edit:yU,deprecated:_U,example:{}},eve=()=>I({name:xU,metadata:Qk,settings:kU});var IN={};Z(IN,{init:()=>ave,metadata:()=>Jk,name:()=>PU,settings:()=>BU});var Jk={$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 wU=a(B(),1),CU=a(T(),1);var th=a(v(),1);function rve(e){vt(e);let t=(0,CU.useBlockProps)();return(0,th.jsx)(th.Fragment,{children:(0,th.jsx)("div",{...t,children:(0,th.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,wU._x)("Reply","verb")})})})}var SU=rve;var ove={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},TU=[ove];var{name:PU}=Jk,BU={edit:SU,icon:G9,deprecated:TU,example:{}},ave=()=>I({name:PU,metadata:Jk,settings:BU});var LN={};Z(LN,{init:()=>pve,metadata:()=>e5,name:()=>WU,settings:()=>$U});var e5={$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 t5=a(j(),1),DN=a(F(),1),zU=a(B(),1),jl=a(T(),1),VU=a(R(),1),FU=a(X(),1);var Xp=a(j(),1),IU=a(F(),1),DU=a(T(),1),LU=a(lr(),1),MU=a(lv(),1),NU=100,AU=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:n}=(0,IU.useSelect)(s=>{let{getSettings:c}=s(DU.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,NU):NU,l=ive({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,Xp.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},ive=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[n,i]=(0,Xp.useState)({}),l=`${t}_${r}`,s=n[l]||0;return(0,Xp.useEffect)(()=>{s||e!=="newest"||(0,MU.default)({path:(0,LU.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,[l]:u<=1?1:u})}).catch(()=>{i({...n,[l]:1})})},[e,t,r,i]),e==="newest"?s:1},RU=e=>(0,Xp.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(v(),1),lve=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],sve=({perPage:e,pageComments:t,threadComments:r,threadCommentsDepth:o})=>{let n=r?Math.min(o,3):1,i=s=>{if(s<n){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&l.push({commentId:-3,children:[]}),l};function cve({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:n}){let{children:i,...l}=(0,jl.useInnerBlocksProps)({},{template:lve});return(0,ii.jsxs)("li",{...l,children:[e.commentId===(t||o)?i:null,(0,ii.jsx)(mve,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,ii.jsx)(HU,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:o}):null]})}var uve=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let n=(0,jl.__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})},mve=(0,t5.memo)(uve),HU=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})=>(0,ii.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,ii.jsx)(jl.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,ii.jsx)(cve,{comment:{commentId:l,...s},activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})},s.commentId||c))});function OU({clientId:e,context:{postId:t}}){let r=(0,jl.useBlockProps)(),[o,n]=(0,t5.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,DN.useSelect)(h=>{let{getSettings:g}=h(jl.store);return g().__experimentalDiscussionSettings??{}},[]),m=AU({postId:t}),{topLevelComments:p,blocks:d}=(0,DN.useSelect)(h=>{let{getEntityRecords:g}=h(FU.store),{getBlocks:b}=h(jl.store);return{topLevelComments:m?g("root","comment",m):null,blocks:b(e)}},[e,m]),f=RU(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=sve({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,ii.jsx)(HU,{comments:f,blockProps:r,blocks:d,activeCommentId:o,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,ii.jsx)("p",{...r,children:(0,zU.__)("No results found.")})):(0,ii.jsx)("p",{...r,children:(0,ii.jsx)(VU.Spinner,{})})}var jU=a(T(),1),UU=a(v(),1);function GU(){return(0,UU.jsx)(jU.InnerBlocks.Content,{})}var{name:WU}=e5,$U={icon:Ep,edit:OU,save:GU},pve=()=>I({name:WU,metadata:e5,settings:$U});var AN={};Z(AN,{init:()=>hve,metadata:()=>r5,name:()=>KU,settings:()=>YU});var ZU=a(B(),1);var r5={$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 MN=a(B(),1),o5=a(T(),1),sv=a(v(),1),fve={none:"",arrow:"\u2190",chevron:"\xAB"};function qU({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=fve[r];return(0,sv.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,o5.useBlockProps)(),children:[o&&(0,sv.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,sv.jsx)(o5.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,MN.__)("Older comments page link"),placeholder:(0,MN.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:KU}=r5,YU={icon:_1,edit:qU,example:{attributes:{label:(0,ZU.__)("Older Comments")}}},hve=()=>I({name:KU,metadata:r5,settings:YU});var zN={};Z(zN,{init:()=>bve,metadata:()=>a5,name:()=>rG,settings:()=>oG});var a5={$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 n5=a(B(),1),Gl=a(T(),1),RN=a(F(),1),i5=a(R(),1);var Jp=a(B(),1),rh=a(R(),1),oh=a(v(),1);function QU({value:e,onChange:t}){return(0,oh.jsxs)(rh.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Jp.__)("Arrow"),value:e,onChange:t,help:(0,Jp.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,oh.jsx)(rh.__experimentalToggleGroupControlOption,{value:"none",label:(0,Jp._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,oh.jsx)(rh.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Jp._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,oh.jsx)(rh.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Jp._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var Ul=a(v(),1),vve=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function XU({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,RN.useSelect)(c=>{let{getBlocks:u}=c(Gl.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,Gl.useBlockProps)(),i=q(),l=(0,Gl.useInnerBlocksProps)(n,{template:vve});return(0,RN.useSelect)(c=>{let{getSettings:u}=c(Gl.store),{__experimentalDiscussionSettings:m}=u();return m?.pageComments},[])?(0,Ul.jsxs)(Ul.Fragment,{children:[o&&(0,Ul.jsx)(Gl.InspectorControls,{children:(0,Ul.jsx)(i5.__experimentalToolsPanel,{label:(0,n5.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,Ul.jsx)(i5.__experimentalToolsPanelItem,{label:(0,n5.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Ul.jsx)(QU,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,Ul.jsx)("div",{...l})]}):(0,Ul.jsx)(Gl.Warning,{children:(0,n5.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var JU=a(T(),1),eG=a(v(),1);function tG(){return(0,eG.jsx)(JU.InnerBlocks.Content,{})}var{name:rG}=a5,oG={icon:x1,edit:XU,save:tG},bve=()=>I({name:rG,metadata:a5,settings:oG});var FN={};Z(FN,{init:()=>xve,metadata:()=>l5,name:()=>iG,settings:()=>lG});var nG=a(B(),1);var l5={$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 VN=a(B(),1),s5=a(T(),1),cv=a(v(),1),_ve={none:"",arrow:"\u2192",chevron:"\xBB"};function aG({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=_ve[r];return(0,cv.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,s5.useBlockProps)(),children:[(0,cv.jsx)(s5.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,VN.__)("Newer comments page link"),placeholder:(0,VN.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),o&&(0,cv.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:iG}=l5,lG={icon:b1,edit:aG,example:{attributes:{label:(0,nG.__)("Newer Comments")}}},xve=()=>I({name:iG,metadata:l5,settings:lG});var HN={};Z(HN,{init:()=>wve,metadata:()=>c5,name:()=>uG,settings:()=>mG});var c5={$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 sG=a(T(),1),Qi=a(v(),1),ed=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,Qi.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,Qi.jsx)(t,{className:`page-numbers ${r}`,children:e});function cG(){return(0,Qi.jsxs)("div",{...(0,sG.useBlockProps)(),children:[(0,Qi.jsx)(ed,{content:"1"}),(0,Qi.jsx)(ed,{content:"2"}),(0,Qi.jsx)(ed,{content:"3",tag:"span",extraClass:"current"}),(0,Qi.jsx)(ed,{content:"4"}),(0,Qi.jsx)(ed,{content:"5"}),(0,Qi.jsx)(ed,{content:"...",tag:"span",extraClass:"dots"}),(0,Qi.jsx)(ed,{content:"8"})]})}var{name:uG}=c5,mG={icon:y1,edit:cG,example:{}},wve=()=>I({name:uG,metadata:c5,settings:mG});var ON={};Z(ON,{init:()=>Pve,metadata:()=>u5,name:()=>bG,settings:()=>yG});var u5={$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 Ms=a(T(),1),Nr=a(B(),1),pG=a(X(),1),lm=a(R(),1),m5=a(j(),1),dG=a(F(),1),fG=a(lv(),1),hG=a(lr(),1);var Cn=a(v(),1);function gG(e){vt(e);let{attributes:t,setAttributes:r,context:o}=e,{showPostTitle:n,showCommentsCount:i,level:l=2,levelOptions:s}=t,{postId:c,postType:u}=o,m="h"+l,[p,d]=(0,m5.useState)(),[f]=(0,pG.useEntityProp)("postType",u,"title",c),h=typeof c>"u",g=(0,Ms.useBlockProps)(),{threadCommentsDepth:b,threadComments:y,commentsPerPage:_,pageComments:x}=(0,dG.useSelect)(N=>{let{getSettings:z}=N(Ms.store);return z().__experimentalDiscussionSettings??{}},[]),k=q();(0,m5.useEffect)(()=>{if(h){let z=y?Math.min(b,3)-1:0,V=x?_:3,A=parseInt(z)+parseInt(V);d(Math.min(A,3));return}let N=c;(0,fG.default)({path:(0,hG.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(z=>{N===c&&d(parseInt(z.headers.get("X-WP-Total")))}).catch(()=>{d(0)})},[c]);let S=(0,Cn.jsx)(Ms.BlockControls,{group:"block",children:(0,Cn.jsx)(Ms.HeadingLevelDropdown,{value:l,options:s,onChange:N=>r({level:N})})}),C=(0,Cn.jsx)(Ms.InspectorControls,{children:(0,Cn.jsxs)(lm.__experimentalToolsPanel,{label:(0,Nr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:k,children:[(0,Cn.jsx)(lm.__experimentalToolsPanelItem,{label:(0,Nr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,Cn.jsx)(lm.ToggleControl,{label:(0,Nr.__)("Show post title"),checked:n,onChange:N=>r({showPostTitle:N})})}),(0,Cn.jsx)(lm.__experimentalToolsPanelItem,{label:(0,Nr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,Cn.jsx)(lm.ToggleControl,{label:(0,Nr.__)("Show comments count"),checked:i,onChange:N=>r({showCommentsCount:N})})})]})}),E=h?(0,Nr.__)("Post Title"):f,P;return i&&p!==void 0?n?p===1?P=(0,Nr.sprintf)((0,Nr.__)('One response to "%s"'),E):P=(0,Nr.sprintf)((0,Nr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',p),p,E):p===1?P=(0,Nr.__)("One response"):P=(0,Nr.sprintf)((0,Nr._n)("%s response","%s responses",p),p):n?p===1?P=(0,Nr.sprintf)((0,Nr.__)('Response to "%s"'),E):P=(0,Nr.sprintf)((0,Nr.__)('Responses to "%s"'),E):p===1?P=(0,Nr.__)("Response"):P=(0,Nr.__)("Responses"),(0,Cn.jsxs)(Cn.Fragment,{children:[S,C,(0,Cn.jsx)(m,{...g,children:P})]})}var Sve={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 he(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Tve={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 he(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},vG=[Sve,Tve];var{name:bG}=u5,yG={icon:Ml,edit:gG,deprecated:vG,example:{}},Pve=()=>I({name:bG,metadata:u5,settings:yG});var iI={};Z(iI,{init:()=>Zbe,metadata:()=>E5,name:()=>xW,settings:()=>I5});var nI=a(B(),1);var _W=a($(),1);var f5=a($(),1),_e=a(T(),1),h5=a(B(),1),uv=a(fe(),1);var p5=a(Br(),1),Bve={"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"},Gt="image",wr="video",Gc="embed-video",_G=50;var Eve={x:.5,y:.5},d5=["image","video"];function Wo({x:e,y:t}=Eve){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Xi(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function xG(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,p5.isBlobURL)(e.url)&&(e.type=(0,p5.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Gt?t=Gt:t=wr;else if(e.type&&(e.type===Gt||e.type===wr))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===wr?{hasParallax:void 0}:{}}}function Ga(e){return!e||e==="center center"||e==="center"}function Sn(e){return Ga(e)?"":Bve[e]}var me=a(v(),1);function As(e){return e?{backgroundImage:`url(${e})`}:{}}function td(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function g5(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function sm(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var rd={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"}},mv={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]}},jN={...mv,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Nve={...jN,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},ah={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}},UN={...ah,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}},Ive={...UN,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},Dve={attributes:Nve,supports:Ive,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_,sizeSlug:x}=e,k=(0,_e.getColorClassName)("background-color",d),S=(0,_e.__experimentalGetGradientClass)(r),C=b&&y?`${b}${y}`:b,E=Gt===t,P=wr===t,N=!(u||p),z={minHeight:C||void 0},V={backgroundColor:k?void 0:i,background:n||void 0},A=s&&N?Wo(s):void 0,M=f?`url(${f})`:void 0,L=Wo(s),U=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ga(o)},Sn(o)),H=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),G=r||n;return(0,me.jsxs)(_,{..._e.useBlockProps.save({className:U,style:z}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",k,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&G&&l!==0,"has-background-gradient":G,[S]:S}),style:V}),!c&&E&&f&&(N?(0,me.jsx)("img",{className:H,alt:h,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}):(0,me.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:H,style:{backgroundPosition:L,backgroundImage:M}})),P&&f&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:A},"data-object-fit":"cover","data-object-position":A}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Lve={attributes:jN,supports:UN,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_}=e,x=(0,_e.getColorClassName)("background-color",d),k=(0,_e.__experimentalGetGradientClass)(r),S=b&&y?`${b}${y}`:b,C=Gt===t,E=wr===t,P=!(u||p),N={minHeight:S||void 0},z={backgroundColor:x?void 0:i,background:n||void 0},V=s&&P?Wo(s):void 0,A=f?`url(${f})`:void 0,M=Wo(s),L=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ga(o)},Sn(o)),U=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),H=r||n;return(0,me.jsxs)(_,{..._e.useBlockProps.save({className:L,style:N}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&H&&l!==0,"has-background-gradient":H,[k]:k}),style:z}),!c&&C&&f&&(P?(0,me.jsx)("img",{className:U,alt:h,src:f,style:{objectPosition:V},"data-object-fit":"cover","data-object-position":V}):(0,me.jsx)("div",{role:"img",className:U,style:{backgroundPosition:M,backgroundImage:A}})),E&&f&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:V},"data-object-fit":"cover","data-object-position":V}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Mve={attributes:jN,supports:UN,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:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_}=e,x=(0,_e.getColorClassName)("background-color",d),k=(0,_e.__experimentalGetGradientClass)(r),S=b&&y?`${b}${y}`:b,C=Gt===t,E=wr===t,P=!(u||p),N={minHeight:S||void 0},z={backgroundColor:x?void 0:i,background:n||void 0},V=s&&P?Wo(s):void 0,A=f?`url(${f})`:void 0,M=Wo(s),L=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ga(o)},Sn(o)),U=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),H=r||n;return(0,me.jsxs)(_,{..._e.useBlockProps.save({className:L,style:N}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",x,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&H&&l!==0,"has-background-gradient":H,[k]:k}),style:z}),!c&&C&&f&&(P?(0,me.jsx)("img",{className:U,alt:h,src:f,style:{objectPosition:V},"data-object-fit":"cover","data-object-position":V}):(0,me.jsx)("div",{role:"img",className:U,style:{backgroundPosition:M,backgroundImage:A}})),E&&f&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:V},"data-object-fit":"cover","data-object-position":V}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Ave={attributes:mv,supports:ah,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y}=e,_=(0,_e.getColorClassName)("background-color",d),x=(0,_e.__experimentalGetGradientClass)(r),k=b&&y?`${b}${y}`:b,S=Gt===t,C=wr===t,E=!(u||p),P={minHeight:k||void 0},N={backgroundColor:_?void 0:i,background:n||void 0},z=s&&E?Wo(s):void 0,V=f?`url(${f})`:void 0,A=Wo(s),M=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ga(o)},Sn(o)),L=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{"has-parallax":u,"is-repeated":p}),U=r||n;return(0,me.jsxs)("div",{..._e.useBlockProps.save({className:M,style:P}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&U&&l!==0,"has-background-gradient":U,[x]:x}),style:N}),!c&&S&&f&&(E?(0,me.jsx)("img",{className:L,alt:h,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}):(0,me.jsx)("div",{role:"img",className:L,style:{backgroundPosition:A,backgroundImage:V}})),C&&f&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:sm},Rve={attributes:mv,supports:ah,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y}=e,_=(0,_e.getColorClassName)("background-color",d),x=(0,_e.__experimentalGetGradientClass)(r),k=b&&y?`${b}${y}`:b,S=Gt===t,C=wr===t,E=!(u||p),P={...S&&!E&&!c?As(f):{},minHeight:k||void 0},N={backgroundColor:_?void 0:i,background:n||void 0},z=s&&E?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,V=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ga(o)},Sn(o)),A=r||n;return(0,me.jsxs)("div",{..._e.useBlockProps.save({className:V,style:P}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",_,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&A&&l!==0,"has-background-gradient":A,[x]:x}),style:N}),!c&&S&&E&&f&&(0,me.jsx)("img",{className:w("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:h,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),C&&f&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:z},"data-object-fit":"cover","data-object-position":z}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:sm},zve={attributes:mv,supports:ah,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:g,minHeightUnit:b}=e,y=(0,_e.getColorClassName)("background-color",p),_=(0,_e.__experimentalGetGradientClass)(r),x=b?`${g}${b}`:g,k=Gt===t,S=wr===t,C=!(c||m),E={...k&&!C?As(d):{},minHeight:x||void 0},P={backgroundColor:y?void 0:i,background:n||void 0},N=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,z=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Ga(o)},Sn(o)),V=r||n;return(0,me.jsxs)("div",{..._e.useBlockProps.save({className:z,style:E}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",y,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&V&&l!==0,"has-background-gradient":V,[_]:_}),style:P}),k&&C&&d&&(0,me.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),S&&d&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:sm},Vve={attributes:mv,supports:ah,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:h,minHeight:g,minHeightUnit:b}=e,y=(0,_e.getColorClassName)("background-color",p),_=(0,_e.__experimentalGetGradientClass)(r),x=b?`${g}${b}`:g,k=Gt===t,S=wr===t,C=!(c||m),E={...k&&!C?As(d):{},minHeight:x||void 0},P={backgroundColor:y?void 0:i,background:n||void 0},N=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,z=w({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Ga(o)},Sn(o));return(0,me.jsxs)("div",{..._e.useBlockProps.save({className:z,style:E}),children:[(0,me.jsx)("span",{"aria-hidden":"true",className:w(y,Xi(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":r||n,[_]:!d&&_}),style:P}),k&&C&&d&&(0,me.jsx)("img",{className:w("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:f,src:d,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),S&&d&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,me.jsx)("div",{..._e.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:sm},Fve={attributes:{...rd,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:ah,save({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:f,minHeight:h,minHeightUnit:g}=e,b=(0,_e.getColorClassName)("background-color",m),y=(0,_e.__experimentalGetGradientClass)(r),_=g?`${h}${g}`:h,x=Gt===t,k=wr===t,S=!(c||u),C={...x&&!S?As(p):{},backgroundColor:b?void 0:i,background:n&&!p?n:void 0,minHeight:_||void 0},E=s&&S?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,P=w(td(l),b,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[y]:!p&&y,"has-custom-content-position":!Ga(o)},Sn(o));return(0,me.jsxs)("div",{..._e.useBlockProps.save({className:P,style:C}),children:[p&&(r||n)&&l!==0&&(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",y),style:n?{background:n}:void 0}),x&&S&&p&&(0,me.jsx)("img",{className:w("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,me.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,me.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,me.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,uv.compose)(g5,sm)},Hve={attributes:{...rd,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:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,minHeight:d,minHeightUnit:f}=e,h=(0,_e.getColorClassName)("background-color",m),g=(0,_e.__experimentalGetGradientClass)(r),b=f?`${d}${f}`:d,y=Gt===t,_=wr===t,x=y?As(p):{},k={};h||(x.backgroundColor=i),n&&!p&&(x.background=n),x.minHeight=b||void 0;let S;s&&(S=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,y&&!c&&(x.backgroundPosition=S),_&&(k.objectPosition=S));let C=w(td(l),h,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[g]:!p&&g,"has-custom-content-position":!Ga(o)},Sn(o));return(0,me.jsxs)("div",{..._e.useBlockProps.save({className:C,style:x}),children:[p&&(r||n)&&l!==0&&(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",g),style:n?{background:n}:void 0}),_&&p&&(0,me.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:k}),(0,me.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,me.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,uv.compose)(g5,sm)},Ove={attributes:{...rd,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:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,_e.getColorClassName)("background-color",c),d=(0,_e.__experimentalGetGradientClass)(r),f=t===Gt?As(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),o&&!u&&(f.background=o),f.minHeight=m||void 0;let h=w(td(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,me.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),wr===t&&u&&(0,me.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,me.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,me.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,uv.compose)(g5,sm)},jve={attributes:{...rd,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:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,_e.getColorClassName)("background-color",c),d=(0,_e.__experimentalGetGradientClass)(r),f=t===Gt?As(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),o&&!u&&(f.background=o),f.minHeight=m||void 0;let h=w(td(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":o,[d]:!u&&d});return(0,me.jsxs)("div",{className:h,style:f,children:[u&&(r||o)&&i!==0&&(0,me.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__gradient-background",d),style:o?{background:o}:void 0}),wr===t&&u&&(0,me.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,me.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,me.jsx)(_e.InnerBlocks.Content,{})})]})},migrate:(0,uv.compose)(g5,sm)},Uve={attributes:{...rd,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:l,overlayColor:s,title:c,url:u}=e,m=(0,_e.getColorClassName)("background-color",s),p=t===Gt?As(u):{};m||(p.backgroundColor=o),i&&!l&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=w(td(n),m,{"has-background-dim":n!==0,"has-parallax":l,[`has-${r}-content`]:r!=="center"});return(0,me.jsxs)("div",{className:d,style:p,children:[wr===t&&u&&(0,me.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!_e.RichText.isEmpty(c)&&(0,me.jsx)(_e.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,f5.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,h5.__)("Write title\u2026")})]]}},Gve={attributes:{...rd,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:l,overlayColor:s,customOverlayColor:c}=e,u=(0,_e.getColorClassName)("background-color",s),m=As(t);u||(m.backgroundColor=c);let p=w("wp-block-cover-image",td(n),u,{"has-background-dim":n!==0,"has-parallax":o,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,me.jsx)("div",{className:p,style:m,children:!_e.RichText.isEmpty(r)&&(0,me.jsx)(_e.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,f5.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,h5.__)("Write title\u2026")})]]}},Wve={attributes:{...rd,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,l=As(t),s=w("wp-block-cover-image",td(n),{"has-background-dim":n!==0,"has-parallax":o},i?`align${i}`:null);return(0,me.jsx)("section",{className:s,style:l,children:(0,me.jsx)(_e.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,f5.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,h5.__)("Write title\u2026")})]]}},kG=[Dve,Lve,Mve,Ave,Rve,zve,Vve,Fve,Hve,Ove,jve,Uve,Gve,Wve];var hv=a(X(),1),Tn=a(j(),1),id=a(R(),1),B5=a(fe(),1),Or=a(T(),1),oI=a(B(),1),qc=a(F(),1),dW=a(Br(),1),fW=a(_r(),1);var IG=a(j(),1),Xt=a(R(),1),DG=a(fe(),1),$o=a(T(),1),po=a(B(),1),WN=a(F(),1),LG=a(X(),1);var wG=a(T(),1);var{cleanEmptyObject:v5,getStyleForState:$ve,setStyleForState:CG}=W(wG.privateApis);function GN(e,t){return $ve(e,t)||{}}function qve(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function Zve(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function nh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function Kve(e,t){return GN(e,t)?.dimensions||{}}function li(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:n,attributeKey:i,styleKey:l=i,rootValue:s}=e;return n?Kve(r,o)?.[l]:Object.hasOwn(e,"rootValue")?s:t?.[i]}function Yve(e,t,r){let o=GN(e,t);return CG(e,t,v5({...o,dimensions:v5({...o?.dimensions,...r})}))}function ih({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:n,dimensionKeys:i}){let l=Zve(o,i);return r?{style:Yve(e,t,qve(l,n))}:l}function SG(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return v5({...e,dimensions:v5({...e?.dimensions,...r})})}function Qve(e,t,r){return CG(e,t,SG(GN(e,t),r))}function lh({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:n,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?Qve(t,r,n):SG(t,n)}}var od="full";var sh=a(T(),1),PG=a(_r(),1),Wa=a(R(),1),BG=a(Br(),1),si=a(B(),1),b5=a(j(),1),EG=a(fe(),1),y5=a(F(),1),ha=a(v(),1),TG=["image"];function NG({poster:e,onChange:t}){let r=(0,b5.useRef)(),[o,n]=(0,b5.useState)(!1),i=(0,EG.useInstanceId)(NG,"block-library-poster-image-description"),{getSettings:l}=(0,y5.useSelect)(sh.store),{createErrorNotice:s}=(0,y5.useDispatch)(PG.store),c=m=>{l().mediaUpload({allowedTypes:TG,filesList:m,onFileChange:([p])=>{if((0,BG.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{s(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&o?(0,ha.jsx)(Wa.Spinner,{}):e?(0,si.__)("Replace"):(0,si.__)("Set poster image");return(0,ha.jsx)(sh.MediaUploadCheck,{children:(0,ha.jsxs)(Wa.__experimentalToolsPanelItem,{label:(0,si.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,ha.jsx)(Wa.BaseControl.VisualLabel,{children:(0,si.__)("Poster image")}),(0,ha.jsx)(sh.MediaUpload,{title:(0,si.__)("Select poster image"),onSelect:t,allowedTypes:TG,render:({open:m})=>(0,ha.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,ha.jsxs)(Wa.Button,{__next40pxDefaultSize:!0,onClick:m,"aria-haspopup":"dialog","aria-label":(0,si.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,ha.jsx)("img",{src:e,alt:(0,si.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,ha.jsx)(Wa.Spinner,{})]}),(0,ha.jsxs)(Wa.__experimentalHStack,{className:w("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,ha.jsx)(Wa.Button,{__next40pxDefaultSize:!0,onClick:m,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,ha.jsx)("p",{id:i,hidden:!0,children:e?(0,si.sprintf)((0,si.__)("The current poster image url is %s."),e):(0,si.__)("There is no poster image currently selected.")}),!!e&&(0,ha.jsx)(Wa.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,si.__)("Remove")})]}),(0,ha.jsx)(Wa.DropZone,{onFilesDrop:c})]})})]})})}var _5=NG;var pt=a(v(),1),{cleanEmptyObject:Xve,isDefaultBlockStyleState:Jve,ResolutionTool:ebe,HTMLElementControl:tbe}=W($o.privateApis);function rbe({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,DG.useInstanceId)(Xt.__experimentalUnitControl)}`,l=r==="px",[s]=(0,$o.useSettings)("spacing.units"),c=(0,Xt.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},m=(0,IG.useMemo)(()=>{let[d]=(0,Xt.__experimentalParseQuantityAndUnitFromRawValue)(o);return[d,r].join("")},[r,o]),p=l?_G:0;return(0,pt.jsx)(Xt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,po.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:m})}function MG({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:m,focalPoint:p,hasParallax:d,isRepeated:f,minHeight:h,minHeightUnit:g,alt:b,tagName:y,poster:_}=e,{isVideoBackground:x,isImageBackground:k,mediaElement:S,url:C,overlayColor:E}=i,P=e.sizeSlug||od,{gradientValue:N,setGradient:z}=(0,$o.__experimentalUseGradient)(),{imageSizes:V,selectedStyleState:A}=(0,WN.useSelect)(re=>{let{getSettings:Me,getSelectedBlockStyleState:mt}=W(re($o.store));return{imageSizes:Me()?.imageSizes,selectedStyleState:mt(r)}},[r]),M=!Jve(A),L=nh(A),U=li({attributes:e,selectedState:A,hasSelectedStyleState:M,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[H,G]=(0,Xt.__experimentalParseQuantityAndUnitFromRawValue)(U||""),Y=M?H:h,O=M&&G||g,te=li({attributes:e,selectedState:A,hasSelectedStyleState:M,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),se=(0,WN.useSelect)(re=>u&&k?re(LG.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,k]),Q=c?s:se;function ce(re){let Me=Q?.media_details?.sizes?.[re]?.source_url;if(!Me)return null;t({url:Me,sizeSlug:re})}let Ee=V?.filter(({slug:re})=>Q?.media_details?.sizes?.[re]?.source_url)?.map(({name:re,slug:Me})=>({value:Me,label:re})),le=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},ee=()=>{t({isRepeated:!f})},ve=x||k,Ne=re=>{let[Me,mt]=S.current?[S.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];Me[mt]=Wo(re)},Re=(0,$o.__experimentalUseMultipleOriginColorsAndGradients)(),Be=Re.hasColorsOrGradients&&!M,Ve=(re,Me)=>{if(M){t(ih({style:e.style,selectedState:A,hasSelectedStyleState:M,nextDimensions:{minHeight:re===void 0?void 0:`${re}${Me||O||"px"}`,aspectRatio:void 0}}));return}t({minHeight:re,style:Xve({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},oe=(re=e)=>lh({style:re.style,selectedState:A,hasSelectedStyleState:M,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),J=q();return(0,pt.jsxs)(pt.Fragment,{children:[(!!C||c)&&(0,pt.jsx)($o.InspectorControls,{children:(0,pt.jsxs)(Xt.__experimentalToolsPanel,{label:(0,po.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),ce(od)},dropdownMenuProps:J,children:[k&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Xt.__experimentalToolsPanelItem,{label:(0,po.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,pt.jsx)(Xt.ToggleControl,{label:(0,po.__)("Fixed background"),checked:!!d,onChange:le})}),(0,pt.jsx)(Xt.__experimentalToolsPanelItem,{label:(0,po.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,pt.jsx)(Xt.ToggleControl,{label:(0,po.__)("Repeated background"),checked:f,onChange:ee})})]}),ve&&(0,pt.jsx)(Xt.__experimentalToolsPanelItem,{label:(0,po.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,pt.jsx)(Xt.FocalPointPicker,{label:(0,po.__)("Focal point"),url:C,value:p,onDragStart:Ne,onDrag:Ne,onChange:re=>t({focalPoint:re})})}),x&&(0,pt.jsx)(_5,{poster:_,onChange:re=>t({poster:re?.url})}),!c&&C&&!x&&(0,pt.jsx)(Xt.__experimentalToolsPanelItem,{label:(0,po.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>t({alt:""}),children:(0,pt.jsx)(Xt.TextareaControl,{label:(0,po.__)("Alternative text"),value:b,onChange:re=>t({alt:re}),help:(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(aN,{openInNewTab:!0,href:(0,po.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,po.__)("Describe the purpose of the image.")}),(0,pt.jsx)("br",{}),(0,po.__)("Leave empty if decorative.")]})})}),!!Ee?.length&&(0,pt.jsx)(ebe,{value:P,onChange:ce,options:Ee,defaultValue:od})]})}),Be&&(0,pt.jsxs)($o.InspectorControls,{group:"color",children:[(0,pt.jsx)($o.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:E.color,gradientValue:N,label:(0,po.__)("Overlay"),onColorChange:o,onGradientChange:z,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...Re}),(0,pt.jsx)(Xt.__experimentalToolsPanelItem,{hasValue:()=>m===void 0?!1:m!==(C?50:100),label:(0,po.__)("Overlay opacity"),onDeselect:()=>l(C?50:100),resetAllFilter:()=>({dimRatio:C?50:100}),isShownByDefault:!0,panelId:r,children:(0,pt.jsx)(Xt.RangeControl,{label:(0,po.__)("Overlay opacity"),value:m,onChange:re=>l(re),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,pt.jsx)($o.InspectorControls,{group:"dimensions",children:(0,pt.jsx)(Xt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!Y,label:(0,po.__)("Minimum height"),onDeselect:()=>t(oe()),resetAllFilter:oe,isShownByDefault:!0,panelId:r,children:(0,pt.jsx)(rbe,{value:te?"":Y,unit:O,onChange:re=>Ve(re),onUnitChange:re=>{if(M){Y!==void 0&&Ve(Y,re);return}t({minHeightUnit:re})}})},L)}),(0,pt.jsx)($o.InspectorControls,{group:"advanced",children:(0,pt.jsx)(tbe,{tagName:y,onChange:re=>t({tagName:re}),clientId:r,options:[{label:(0,po.__)("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 x5=a(j(),1),Wl=a(T(),1),uh=a(B(),1),k5=a(R(),1);var $N=a(j(),1),cm=a(R(),1),ad=a(B(),1);var AG=a($(),1);var obe="core/embed",abe=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function RG(e){return e?nbe(e)!==null:!1}function nbe(e){let t=(0,AG.getBlockVariations)(obe);if(!t)return null;let r=t.find(({patterns:o})=>IE(e,o));return!r||!abe.includes(r.name)?null:r}function zG(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=lbe(r);return e.replace(r,o)}function ibe(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 lbe(e){if(!e)return e;try{let t=new URL(e);switch(ibe(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 ch=a(v(),1);function VG({onSubmit:e,onClose:t,initialUrl:r=""}){let[o,n]=(0,$N.useState)(r),[i,l]=(0,$N.useState)("");return(0,ch.jsx)(cm.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!o){l((0,ad.__)("Please enter a URL."));return}if(!RG(o)){l((0,ad.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(o),t()},onCancel:t,confirmButtonText:(0,ad.__)("Add video"),size:"medium",children:(0,ch.jsxs)(cm.__experimentalVStack,{spacing:4,children:[i&&(0,ch.jsx)(cm.Notice,{status:"error",isDismissible:!1,children:i}),(0,ch.jsx)(cm.TextControl,{type:"url",label:(0,ad.__)("Video URL"),value:o,onChange:c=>{n(c),l("")},placeholder:(0,ad.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,ad.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var ci=a(v(),1),{cleanEmptyObject:sbe}=W(Wl.privateApis);function FG({attributes:e,setAttributes:t,onSelectMedia:r,currentSettings:o,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,onEditMedia:s,editMediaButtonRef:c,showEditMediaButton:u,blockEditingMode:m}){let{contentPosition:p,id:d,useFeaturedImage:f,minHeight:h,minHeightUnit:g,backgroundType:b}=e,{hasInnerBlocks:y,url:_}=o,[x,k]=(0,x5.useState)(h),[S,C]=(0,x5.useState)(g),[E,P]=(0,x5.useState)(!1),N=g==="vh"&&h===100&&!e?.style?.dimensions?.aspectRatio,z=m==="contentOnly",V=()=>N?t(S==="vh"&&x===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:x,minHeightUnit:S}):(k(h),C(g),t({minHeight:100,minHeightUnit:"vh",style:sbe({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,ci.jsxs)(ci.Fragment,{children:[!z&&(0,ci.jsxs)(Wl.BlockControls,{group:"block",children:[(0,ci.jsx)(Wl.__experimentalBlockAlignmentMatrixControl,{label:(0,uh.__)("Change content position"),value:p,onChange:A=>t({contentPosition:A}),isDisabled:!y}),(0,ci.jsx)(Wl.__experimentalBlockFullHeightAligmentControl,{isActive:N,onToggle:V,isDisabled:!y}),u&&(0,ci.jsx)(k5.ToolbarButton,{ref:c,icon:Tp,label:(0,uh.__)("Crop background image"),onClick:s,"aria-haspopup":"dialog"})]}),(0,ci.jsx)(Wl.BlockControls,{group:"other",children:(0,ci.jsx)(Wl.MediaReplaceFlow,{mediaId:d,mediaURL:_,allowedTypes:d5,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:f,name:_?(0,uh.__)("Replace"):(0,uh.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:A})=>(0,ci.jsx)(k5.MenuItem,{icon:Qn,onClick:()=>{P(!0),A()},children:(0,uh.__)("Embed video from URL")})})}),E&&(0,ci.jsx)(VG,{onSubmit:A=>{l(A)},onClose:()=>P(!1),initialUrl:b===Gc?_:""})]})}var w5=a(T(),1),HG=a(B(),1);var OG=a(Br(),1);var qN=a(v(),1);function ZN({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:n,toggleUseFeaturedImage:i}){let l=s=>{s.length===1&&r({url:(0,OG.createBlobURL)(s[0])})};return(0,qN.jsx)(w5.MediaPlaceholder,{icon:(0,qN.jsx)(w5.BlockIcon,{icon:Sp}),labels:{title:(0,HG.__)("Cover")},onSelect:r,allowedTypes:d5,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:l,onError:o,style:n,children:t})}var jG=a(j(),1),UG=a(T(),1);var GG=a(v(),1),cbe={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:ube}=W(UG.privateApis);function KN({className:e,height:t,minHeight:r,onResize:o,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[m,p]=(0,jG.useState)(!1),d={className:w(e,{"is-resizing":m}),enable:cbe,onResizeStart:(f,h,g)=>{n(g.clientHeight),o(g.clientHeight)},onResize:(f,h,g)=>{o(g.clientHeight),m||p(!0)},onResizeStop:(f,h,g)=>{i(g.clientHeight),p(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,GG.jsx)(ube,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var mbe={grad:.9,turn:360,rad:360/(2*Math.PI)},Wc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},To=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Ji=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},XG=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},WG=function(e){return{r:Ji(e.r,0,255),g:Ji(e.g,0,255),b:Ji(e.b,0,255),a:Ji(e.a)}},YN=function(e){return{r:To(e.r),g:To(e.g),b:To(e.b),a:To(e.a,3)}},pbe=/^#([0-9a-f]{3,8})$/i,C5=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},JG=function(e){var t=e.r,r=e.g,o=e.b,n=e.a,i=Math.max(t,r,o),l=i-Math.min(t,r,o),s=l?i===t?(r-o)/l:i===r?2+(o-t)/l:4+(t-r)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:n}},eW=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),l=o*(1-r),s=o*(1-(t-i)*r),c=o*(1-(1-t+i)*r),u=i%6;return{r:255*[o,s,l,l,c,o][u],g:255*[c,o,o,s,l,l][u],b:255*[l,l,c,o,o,s][u],a:n}},$G=function(e){return{h:XG(e.h),s:Ji(e.s,0,100),l:Ji(e.l,0,100),a:Ji(e.a)}},qG=function(e){return{h:To(e.h),s:To(e.s),l:To(e.l),a:To(e.a,3)}},ZG=function(e){return eW((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},pv=function(e){return{h:(t=JG(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},dbe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fbe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hbe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gbe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,JN={string:[[function(e){var t=pbe.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?To(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?To(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=hbe.exec(e)||gbe.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:WG({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=dbe.exec(e)||fbe.exec(e);if(!t)return null;var r,o,n=$G({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(mbe[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return ZG(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 Wc(t)&&Wc(r)&&Wc(o)?WG({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(!Wc(t)||!Wc(r)||!Wc(o))return null;var l=$G({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return ZG(l)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,i=n===void 0?1:n;if(!Wc(t)||!Wc(r)||!Wc(o))return null;var l=(function(s){return{h:XG(s.h),s:Ji(s.s,0,100),v:Ji(s.v,0,100),a:Ji(s.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return eW(l)},"hsv"]]},KG=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]},vbe=function(e){return typeof e=="string"?KG(e.trim(),JN.string):typeof e=="object"&&e!==null?KG(e,JN.object):[null,void 0]};var QN=function(e,t){var r=pv(e);return{h:r.h,s:Ji(r.s+100*t,0,100),l:r.l,a:r.a}},XN=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},YG=function(e,t){var r=pv(e);return{h:r.h,s:r.s,l:Ji(r.l+100*t,0,100),a:r.a}},eI=(function(){function e(t){this.parsed=vbe(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 To(XN(this.rgba),2)},e.prototype.isDark=function(){return XN(this.rgba)<.5},e.prototype.isLight=function(){return XN(this.rgba)>=.5},e.prototype.toHex=function(){return t=YN(this.rgba),r=t.r,o=t.g,n=t.b,l=(i=t.a)<1?C5(To(255*i)):"","#"+C5(r)+C5(o)+C5(n)+l;var t,r,o,n,i,l},e.prototype.toRgb=function(){return YN(this.rgba)},e.prototype.toRgbString=function(){return t=YN(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 qG(pv(this.rgba))},e.prototype.toHslString=function(){return t=qG(pv(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=JG(this.rgba),{h:To(t.h),s:To(t.s),v:To(t.v),a:To(t.a,3)};var t},e.prototype.invert=function(){return fo({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),fo(QN(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),fo(QN(this.rgba,-t))},e.prototype.grayscale=function(){return fo(QN(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),fo(YG(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),fo(YG(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"?fo({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):To(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=pv(this.rgba);return typeof t=="number"?fo({h:t,s:r.s,l:r.l,a:r.a}):To(r.h)},e.prototype.isEqual=function(t){return this.toHex()===fo(t).toHex()},e})(),fo=function(e){return e instanceof eI?e:new eI(e)},QG=[],tW=function(e){e.forEach(function(t){QG.indexOf(t)<0&&(t(eI,JN),QG.push(t))})};function rW(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(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=o[this.toHex()];if(u)return u;if(l?.closest){var m=this.toRgb(),p=1/0,d="black";if(!i.length)for(var f in r)i[f]=new e(r[f]).toRgb();for(var h in r){var g=(s=m,c=i[h],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));g<p&&(p=g,d=h)}return d}},t.string.push([function(l){var s=l.toLowerCase(),c=s==="transparent"?"#0000":r[s];return c?new e(c).toRgb():null},"name"])}function bbe(e){var t=e.toString(16);return t.length===1?"0"+t:t}function oW(e){return"#"+e.map(bbe).join("")}function ybe(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function _be(e){return e?xbe(e)?e:[e]:[]}function xbe(e){return Array.isArray(e[0])}function rI(e,t,r){for(var o=0;o<r.length;o++)if(kbe(e,t,r[o]))return!0;return!1}function kbe(e,t,r){switch(r.length){case 3:if(wbe(e,t,r))return!0;break;case 4:if(Cbe(e,t,r))return!0;break;case 5:if(Sbe(e,t,r))return!0;break;default:return!1}}function wbe(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function Cbe(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 S5(e,t,r){return e>=t-r&&e<=t+r}function Sbe(e,t,r){var o=r[0],n=r[1],i=r[2],l=r[3],s=r[4],c=e[t+3],u=S5(c,l,s);return l?!!(!c&&u||S5(e[t],o,s)&&S5(e[t+1],n,s)&&S5(e[t+2],i,s)&&u):u}function Tbe(e,t,r){for(var o={},n=24,i=r.ignoredColor,l=r.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],m=e[c+1],p=e[c+2],d=e[c+3];if(!(i&&rI(e,c,i))){var f=Math.round(u/n)+","+Math.round(m/n)+","+Math.round(p/n);o[f]?o[f]=[o[f][0]+u*d,o[f][1]+m*d,o[f][2]+p*d,o[f][3]+d,o[f][4]+1]:o[f]=[u*d,m*d,p*d,d,1],s[4]<o[f][4]&&(s=o[f])}}var h=s[0],g=s[1],b=s[2],y=s[3],_=s[4];return y?[Math.round(h/y),Math.round(g/y),Math.round(b/y),Math.round(y/_)]:r.defaultColor}function Pbe(e,t,r){for(var o=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m+3],d=e[m]*p,f=e[m+1]*p,h=e[m+2]*p;c&&rI(e,m,c)||(o+=d,n+=f,i+=h,l+=p,s++)}return l?[Math.round(o/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:r.defaultColor}function Bbe(e,t,r){for(var o=0,n=0,i=0,l=0,s=0,c=r.ignoredColor,u=r.step,m=0;m<t;m+=u){var p=e[m],d=e[m+1],f=e[m+2],h=e[m+3];c&&rI(e,m,c)||(o+=p*p*h,n+=d*d*h,i+=f*f*h,l+=h,s++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:r.defaultColor}function aW(e){return fv(e,"defaultColor",[0,0,0,0])}function fv(e,t,r){return e[t]===void 0?r:e[t]}var nW=10,tI=100;function Ebe(e){return e.search(/\.svg(\?|$)/i)!==-1}function Nbe(e){if(lW(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&Ebe(e.src)&&(t=r=tI),{width:t,height:r}}return Dbe(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function iW(e){return Lbe(e)?"canvas":Ibe(e)?"offscreencanvas":Mbe(e)?"imagebitmap":e.src}function lW(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function Ibe(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function Dbe(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function Lbe(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function Mbe(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function Abe(e,t){var r=fv(t,"left",0),o=fv(t,"top",0),n=fv(t,"width",e.width),i=fv(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=tI,s=Math.round(l/c)):(c=i/n,s=tI,l=Math.round(s/c)),(l>n||s>i||l<nW||s<nW)&&(l=n,s=i),{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var Rbe=typeof window>"u";function zbe(){return Rbe?new OffscreenCanvas(1,1):document.createElement("canvas")}var sW="FastAverageColor: ";function T5(e,t,r){t||(console.error(sW+e),r&&console.error(r))}function dv(e){return Error(sW+e)}var cW=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(dv("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(dv("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(lW(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=aW(r);if(!t)return T5("call .getColor(null) without resource",r.silent),this.prepareResult(o);var n=Nbe(t),i=Abe(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return T5('incorrect sizes for resource "'.concat(iW(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=zbe()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return T5("Canvas Context 2D is not supported in this browser",r.silent),this.prepareResult(o);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=o;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,r)}catch(c){T5("security error (CORS) for resource ".concat(iW(t),`.
9 -Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),r.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,r){r=r||{};var o=4,n=t.length,i=aW(r);if(n<o)return i;var l=n-n%o,s=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=Pbe;break;case"sqrt":c=Bbe;break;case"dominant":c=Tbe;break;default:throw dv("".concat(r.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:_be(r.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var r=t.slice(0,3),o=[t[0],t[1],t[2],t[3]/255],n=ybe(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:oW(r),hexa:oW(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 l=function(){u();var m=o.getColor(t,r);m.error?i(m.error):n(m)},s=function(){u(),i(dv('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(dv('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",l),t.removeEventListener("error",s),t.removeEventListener("abort",c)};t.addEventListener("load",l),t.addEventListener("error",s),t.addEventListener("abort",c)})},e})();var mW=a($c(),1);tW([rW]);var mh="#FFF",pW="#000";function Vbe(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 P5(){return P5.fastAverageColor||(P5.fastAverageColor=new cW),P5.fastAverageColor}var nd=Vf(async e=>{if(!e)return mh;let{r:t,g:r,b:o,a:n}=fo(mh).toRgb();try{let i=(0,mW.applyFilters)("media.crossOrigin",void 0,e);return(await P5().getColorAsync(e,{defaultColor:[t,r,o,n*255],silent:!0,crossOrigin:i})).hex}catch{return mh}});function um(e,t,r){if(t===r||e===100)return fo(t).isDark();let o=fo(t).alpha(e/100).toRgb(),n=fo(r).toRgb(),i=Vbe(o,n);return fo(i).isDark()}var Wt=a(v(),1),{openMediaEditorModalKey:Fbe}=W(Or.privateApis);function Hbe(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,oI.__)("Write title\u2026"),...e}]]}var Obe=(e,t)=>!e&&(0,dW.isBlobURL)(t);function jbe({attributes:e,clientId:t,isSelected:r,overlayColor:o,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:m,url:p,backgroundType:d,useFeaturedImage:f,dimRatio:h,focalPoint:g,hasParallax:b,isDark:y,isRepeated:_,minHeight:x,minHeightUnit:k,alt:S,allowedBlocks:C,templateLock:E,tagName:P="div",isUserOverlayColor:N,sizeSlug:z,poster:V}=e,[A]=(0,hv.useEntityProp)("postType",c,"featured_media",s),{getSettings:M}=(0,qc.useSelect)(Or.store),L=(0,qc.useSelect)(Te=>Te(Or.store).getSettings()[Fbe],[]),{__unstableMarkNextChangeAsNotPersistent:U}=(0,qc.useDispatch)(Or.store),H=(0,Tn.useRef)({attributes:e,overlayColor:o});(0,Tn.useLayoutEffect)(()=>{H.current={attributes:e,overlayColor:o}});let{media:G}=(0,qc.useSelect)(Te=>({media:A&&f?Te(hv.store).getEntityRecord("postType","attachment",A,{context:"view"}):void 0}),[A,f]),Y=G?.media_details?.sizes?.[z]?.source_url??G?.source_url;(0,Tn.useEffect)(()=>{(async()=>{if(!f)return;let Te=await nd(Y),{attributes:at,overlayColor:ar}=H.current,Vr=ar.color;at.isUserOverlayColor||(Vr=Te,U(),i(Vr));let br=um(at.dimRatio,Vr,Te);U(),n({isDark:br,isUserOverlayColor:at.isUserOverlayColor||!1})})()},[Y,U,n,i,f]);let O=f?Y:p?.replaceAll("&amp;","&"),te=f?Gt:d,{createErrorNotice:se}=(0,qc.useDispatch)(fW.store),{gradientClass:Q,gradientValue:ce}=(0,Or.__experimentalUseGradient)(),Ee=async Te=>{let at=xG(Te),ar=[Te?.type,Te?.media_type].includes(Gt),Vr=await nd(ar?Te?.url:void 0),{attributes:br,overlayColor:Pl}=H.current,gn=Pl.color;br.isUserOverlayColor||(gn=Vr,i(gn),U());let Lu=br.url===void 0&&br.dimRatio===100?50:br.dimRatio,Mu=um(Lu,gn,Vr);if(te===Gt&&at?.id){let{imageDefaultSize:vn}=M();z&&(Te?.sizes?.[z]||Te?.media_details?.sizes?.[z])?(at.sizeSlug=z,at.url=Te?.sizes?.[z]?.url||Te?.media_details?.sizes?.[z]?.source_url):Te?.sizes?.[vn]||Te?.media_details?.sizes?.[vn]?(at.sizeSlug=vn,at.url=Te?.sizes?.[vn]?.url||Te?.media_details?.sizes?.[vn]?.source_url):at.sizeSlug=od}n({...at,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Lu,isDark:Mu,isUserOverlayColor:br.isUserOverlayColor||!1})},le=()=>{let Te=o.color;N||(Te=pW,i(void 0),U());let at=um(h,Te,mh);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:at})},ee=async Te=>{let at=await nd(O),{attributes:ar}=H.current,Vr=um(ar.dimRatio,Te,at);i(Te),U(),n({isUserOverlayColor:!0,isDark:Vr})},ve=async Te=>{let at=await nd(O),{overlayColor:ar}=H.current,Vr=um(Te,ar.color,at);n({dimRatio:Te,isDark:Vr})},Ne=Te=>{se(Te,{type:"snackbar"})},Re=Te=>{n({url:Te,backgroundType:Gc,dimRatio:p===void 0&&h===100?50:h,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:Be,isFetchingEmbed:Ve}=(0,qc.useSelect)(Te=>{if(te!==Gc||!O)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:at,isRequestingEmbedPreview:ar}=Te(hv.store);return{embedPreview:at(O),isFetchingEmbed:ar(O)}},[O,te]),oe=(0,Tn.useMemo)(()=>te!==Gc||!Be?.html?null:zG(Be.html),[Be,te]),J=Obe(m,O),re=Gt===te,Me=wr===te,mt=Gc===te,Lt=(0,Or.useBlockEditingMode)(),jt=Lt==="default",[ae,{height:Ue,width:Se}]=(0,B5.useResizeObserver)(),Oe=(0,Tn.useMemo)(()=>({height:k==="px"&&x?x:"auto",width:"auto"}),[x,k]),K=x&&k?`${x}${k}`:x,ne=!(b||_),Ge={minHeight:K||void 0},gt=O?`url(${O})`:void 0,je=Wo(g),or={backgroundColor:o.color},mr={objectPosition:g&&ne?Wo(g):void 0},fn=!!(O||o.color||ce),Fe=(0,qc.useSelect)(Te=>Te(Or.store).getBlock(t).innerBlocks.length>0,[t]),zr=(0,Tn.useRef)(),Kr=(0,Or.useBlockProps)({ref:zr}),[Nc]=(0,Or.useSettings)("typography.fontSizes"),Du=Nc?.length>0,ks=Hbe({fontSize:Du?"large":void 0}),C0=(0,Or.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Fe?void 0:ks,templateInsertUpdatesSelection:!0,allowedBlocks:C,templateLock:E,dropZoneElement:zr.current}),Sl=(0,Tn.useRef)(),Ic=(0,Tn.useRef)(),ws={isVideoBackground:Me,isImageBackground:re,mediaElement:Sl,hasInnerBlocks:Fe,url:O,isImgElement:ne,overlayColor:o},Dc=(0,Tn.useCallback)(()=>{!m||!L||L({id:m,onClose:()=>{Ic.current?.focus()},onUpdate:async({id:Te,url:at})=>{if(typeof Te!="number")return;let ar={id:Te,backgroundType:Gt,...at?{url:at}:{},...Te!==m?{sizeSlug:od}:{}};if(at){let Vr=await nd(at),{attributes:br,overlayColor:Pl}=H.current,gn=Pl.color;br.isUserOverlayColor||(gn=Vr,i(gn),U()),ar.isDark=um(br.dimRatio,gn,Vr),ar.isUserOverlayColor=br.isUserOverlayColor||!1}n(ar)}})},[m,L,n,i,U]),S0=jt&&!f&&re&&!!m&&!!O&&!J&&!!L,qn=async()=>{let Te=!f,at=Te?await nd(Y):mh,{attributes:ar,overlayColor:Vr}=H.current,br=ar.isUserOverlayColor?Vr.color:at;ar.isUserOverlayColor||(i(Te?br:void 0),U());let Pl=ar.dimRatio===100?50:ar.dimRatio,gn=um(Pl,br,at);n({id:void 0,url:void 0,useFeaturedImage:Te,dimRatio:Pl,backgroundType:f?Gt:void 0,isDark:gn})},Tl=(0,Wt.jsx)(FG,{attributes:e,setAttributes:n,onSelectMedia:Ee,onSelectEmbedUrl:Re,currentSettings:ws,toggleUseFeaturedImage:qn,onClearMedia:le,blockEditingMode:Lt,onEditMedia:Dc,editMediaButtonRef:Ic,showEditMediaButton:S0}),Ro=(0,Wt.jsx)(MG,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:ee,coverRef:zr,currentSettings:ws,toggleUseFeaturedImage:qn,updateDimRatio:ve,onClearMedia:le,featuredImage:G}),hn={className:"block-library-cover__resize-container",clientId:t,height:Ue,minHeight:K,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:Te=>{n({minHeight:Te})},onResizeStop:Te=>{l(!0),n({minHeight:Te})},showHandle:!e.style?.dimensions?.aspectRatio,size:Oe,width:Se};if(!f&&!Fe&&!fn)return(0,Wt.jsxs)(Wt.Fragment,{children:[Tl,Ro,jt&&r&&(0,Wt.jsx)(KN,{...hn}),(0,Wt.jsxs)(P,{...Kr,className:w("is-placeholder",Kr.className),style:{...Kr.style,minHeight:K||void 0},children:[ae,(0,Wt.jsx)(ZN,{onSelectMedia:Ee,onError:Ne,toggleUseFeaturedImage:qn,children:(0,Wt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Wt.jsx)(Or.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:ee,clearable:!1,asButtons:!0,"aria-label":(0,oI.__)("Overlay color")})})})]})]});let wf=w({"is-dark-theme":y,"is-light":!y,"is-transient":J,"has-parallax":b,"is-repeated":_,"has-custom-content-position":!Ga(u)},Sn(u)),pp=O||!f||f&&!O;return(0,Wt.jsxs)(Wt.Fragment,{children:[Tl,Ro,(0,Wt.jsxs)(P,{...Kr,className:w(wf,Kr.className),style:{...Ge,...Kr.style},"data-url":O,children:[ae,!O&&f&&(0,Wt.jsx)(id.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),O&&re&&(ne?(0,Wt.jsx)("img",{ref:Sl,className:"wp-block-cover__image-background",alt:S,src:O,style:mr}):(0,Wt.jsx)("div",{ref:Sl,role:S?"img":void 0,"aria-label":S||void 0,className:w(wf,"wp-block-cover__image-background"),style:{backgroundImage:gt,backgroundPosition:je}})),O&&Me&&(0,Wt.jsx)("video",{ref:Sl,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:O,poster:V,style:mr}),mt&&oe&&(0,Wt.jsx)("div",{ref:Sl,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:mr,children:(0,Wt.jsx)(id.SandBox,{allowSameOrigin:!0,html:oe,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),mt&&!oe&&Ve&&(0,Wt.jsx)(id.Spinner,{}),pp&&(0,Wt.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",Xi(h),{[o.class]:o.class,"has-background-dim":h!==void 0,"wp-block-cover__gradient-background":O&&ce&&h!==0,"has-background-gradient":ce,[Q]:Q}),style:{backgroundImage:ce,...or}}),J&&(0,Wt.jsx)(id.Spinner,{}),(0,Wt.jsx)(ZN,{disableMediaButtons:!0,onSelectMedia:Ee,onError:Ne,toggleUseFeaturedImage:qn}),(0,Wt.jsx)("div",{...C0})]}),jt&&r&&(0,Wt.jsx)(KN,{...hn})]})}var hW=(0,B5.compose)([(0,Or.withColors)({overlayColor:"background-color"})])(jbe);var E5={$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"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var mm=a(T(),1);var Rs=a(v(),1);function gW({attributes:e}){let{backgroundType:t,gradient:r,contentPosition:o,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:h,id:g,minHeight:b,minHeightUnit:y,tagName:_,sizeSlug:x,poster:k}=e,S=(0,mm.getColorClassName)("background-color",d),C=(0,mm.__experimentalGetGradientClass)(r),E=b&&y?`${b}${y}`:b,P=Gt===t,N=wr===t,z=Gc===t,V=!(u||p),A={minHeight:E||void 0},M={backgroundColor:S?void 0:i,background:n||void 0},L=s&&V?Wo(s):void 0,U=f?`url(${f})`:void 0,H=Wo(s),G=w({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!Ga(o)},Sn(o)),Y=w("wp-block-cover__image-background",g?`wp-image-${g}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),O=r||n;return(0,Rs.jsxs)(_,{...mm.useBlockProps.save({className:G,style:A}),children:[!c&&P&&f&&(V?(0,Rs.jsx)("img",{className:Y,alt:h,src:f,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}):(0,Rs.jsx)("div",{role:h?"img":void 0,"aria-label":h||void 0,className:Y,style:{backgroundPosition:H,backgroundImage:U}})),N&&f&&(0,Rs.jsx)("video",{className:w("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:k,style:{objectPosition:L},"data-object-fit":"cover","data-object-position":L}),z&&f&&(0,Rs.jsx)("figure",{className:w("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,Rs.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,Rs.jsx)("span",{"aria-hidden":"true",className:w("wp-block-cover__background",S,Xi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&O&&l!==0,"has-background-gradient":O,[C]:C}),style:M}),(0,Rs.jsx)("div",{...mm.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var ui=a($(),1),vW=a(T(),1);var{cleanEmptyObject:N5}=W(vW.privateApis),Gbe={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:l})=>(0,ui.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,ui.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,ui.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:wr,anchor:n},[(0,ui.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:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,ui.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=n||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:r,anchor:o,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:N5({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,ui.createBlock)("core/cover",c,[(0,ui.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===Gt:!r&&!o&&!n&&!i,transform:({title:e,url:t,alt:r,align:o,id:n,anchor:i,style:l})=>(0,ui.createBlock)("core/image",{caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:r,customOverlayColor:o,gradient:n,customGradient:i})=>t?e===wr:!r&&!o&&!n&&!i,transform:({title:e,url:t,align:r,id:o,anchor:n})=>(0,ui.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:N5({...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=N5(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,ui.createBlock)("core/group",o,t[0]?.innerBlocks):(0,ui.createBlock)("core/group",{...r,...o,style:N5({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,ui.createBlock)("core/group",{...e,...r},t)}}]},bW=Gbe;var aI=a(B(),1);var Wbe=[{name:"cover",title:(0,aI.__)("Cover"),description:(0,aI.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Sp}],yW=Wbe;var{fieldsKey:$be,formKey:qbe}=W(_W.privateApis),{name:xW}=E5,I5={icon:Sp,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,nI.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:bW,save:gW,edit:hW,deprecated:kG,variations:yW};window.__experimentalContentOnlyInspectorFields&&(I5[$be]=[{id:"background",label:(0,nI.__)("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})}],I5[qbe]={fields:["background"]});var Zbe=()=>I({name:xW,metadata:E5,settings:I5});var lI={};Z(lI,{init:()=>tye,metadata:()=>D5,name:()=>BW,settings:()=>M5});var pm=a(B(),1),PW=a($(),1);var D5={$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 $l=a(T(),1),zs=a(R(),1),Zc=a(B(),1),kW=a(j(),1),wW=a(F(),1);var Pn=a(v(),1),{withIgnoreIMEEvents:Ybe}=W(zs.privateApis),Qbe=[["core/paragraph",{placeholder:(0,Zc.__)("Type / to add a hidden block")}]];function Xbe({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,$l.useBlockProps)(),u=(0,$l.useInnerBlocksProps)(c,{template:Qbe,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[m,p]=(0,kW.useState)(n),d=q(),f=(0,wW.useSelect)(b=>b($l.store).hasSelectedInnerBlock(r,!0),[r]),h=b=>{b.key==="Enter"&&!b.shiftKey&&(p(y=>!y),b.preventDefault())},g=b=>{b.key===" "&&b.preventDefault()};return(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)($l.InspectorControls,{children:(0,Pn.jsx)(zs.__experimentalToolsPanel,{label:(0,Zc.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,Pn.jsx)(zs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Zc.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,Pn.jsx)(zs.ToggleControl,{label:(0,Zc.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,Pn.jsx)($l.InspectorControls,{group:"advanced",children:(0,Pn.jsx)(zs.TextControl,{label:(0,Zc.__)("Name attribute"),value:o||"",onChange:b=>t({name:b}),help:(0,Zc.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,Pn.jsxs)("details",{...u,open:m||f,onToggle:b=>p(b.target.open),name:o||"",children:[(0,Pn.jsx)("summary",{onKeyDown:Ybe(h),onKeyUp:g,children:(0,Pn.jsx)($l.RichText,{identifier:"summary","aria-label":(0,Zc.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,Zc.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:b=>t({summary:b})})}),u.children]})]})}var CW=Xbe;var dh=a(T(),1),ph=a(v(),1);function SW({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",n=dh.useBlockProps.save();return(0,ph.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,ph.jsx)("summary",{children:(0,ph.jsx)(dh.RichText.Content,{value:o})}),(0,ph.jsx)(dh.InnerBlocks.Content,{})]})}var L5=a($(),1),TW={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,L5.createBlock)("core/details",{},e.map(t=>(0,L5.cloneBlock)(t)))}}]};var{fieldsKey:Jbe,formKey:eye}=W(PW.privateApis),{name:BW}=D5,M5={icon:X9,example:{attributes:{summary:(0,pm.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,pm.__)("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,pm.sprintf)((0,pm.__)("Details. %s"),r):(0,pm.__)("Details. Empty.")},save:SW,edit:CW,transforms:TW};window.__experimentalContentOnlyInspectorFields&&(M5[Jbe]=[{id:"summary",label:(0,pm.__)("Summary"),type:"text",Edit:"rich-text"}],M5[eye]={fields:["summary"]});var tye=()=>I({name:BW,metadata:D5,settings:M5});var dI={};Z(dI,{init:()=>pye,metadata:()=>Ns,name:()=>u$,settings:()=>m$});var sd=a(B(),1),vh=a(j(),1),gv=a(F(),1),F5=a(T(),1),mI=a(X(),1),pI=a(D(),1);var ld=a(B(),1),Vs=a(R(),1),A5=a(T(),1);var el=a(v(),1);function rye(e){return e?(0,ld.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,ld.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var oye=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:n,switchBackToURLInput:i})=>{let l=q();return(0,el.jsxs)(el.Fragment,{children:[(0,el.jsx)(A5.BlockControls,{children:(0,el.jsx)(Vs.ToolbarGroup,{children:t&&(0,el.jsx)(Vs.ToolbarButton,{className:"components-toolbar__control",label:(0,ld.__)("Edit URL"),icon:Dp,onClick:i})})}),r&&e&&(0,el.jsx)(A5.InspectorControls,{children:(0,el.jsx)(Vs.__experimentalToolsPanel,{label:(0,ld.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,el.jsx)(Vs.__experimentalToolsPanelItem,{label:(0,ld.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{n(!o)},children:(0,el.jsx)(Vs.ToggleControl,{label:(0,ld.__)("Resize for smaller devices"),checked:o,help:rye,onChange:n})})})})]})},EW=oye;var ye=a(R(),1),xe=a(v(),1),ql=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.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"})}),R5=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.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"})}),sI=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.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"})}),fh=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,xe.jsx)(ye.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"})}),NW={foreground:"#000000",src:(0,xe.jsx)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})})},IW={foreground:"#ff0000",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})})},DW={foreground:"#3b5998",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})})},LW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.G,{children:(0,xe.jsx)(ye.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"})})}),MW={foreground:"#0073AA",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.G,{children:(0,xe.jsx)(ye.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"})})})},AW={foreground:"#1db954",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})})},RW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})}),zW={foreground:"#1ab7ea",src:(0,xe.jsx)(ye.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.G,{children:(0,xe.jsx)(ye.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"})})})},VW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})}),FW={foreground:"#35465c",src:(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})})},HW=(0,xe.jsxs)(ye.SVG,{viewBox:"0 0 24 24",children:[(0,xe.jsx)(ye.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,xe.jsx)(ye.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,xe.jsx)(ye.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"})]}),OW=(0,xe.jsxs)(ye.SVG,{viewBox:"0 0 24 24",children:[(0,xe.jsx)(ye.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,xe.jsx)(ye.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,xe.jsx)(ye.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,xe.jsx)(ye.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,xe.jsx)(ye.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,xe.jsx)(ye.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),jW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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"})}),UW=(0,xe.jsx)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xe.jsx)(ye.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"})}),GW=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 44 44",children:(0,xe.jsx)(ye.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"})}),WW={foreground:"#f43e37",src:(0,xe.jsxs)(ye.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,xe.jsx)(ye.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,xe.jsx)(ye.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"})]})},$W=(0,xe.jsx)(ye.SVG,{viewBox:"0 0 24 24",children:(0,xe.jsx)(ye.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 qW=a(R(),1),cI=a(v(),1),aye=()=>(0,cI.jsx)("div",{className:"wp-block-embed is-loading",children:(0,cI.jsx)(qW.Spinner,{})}),ZW=aye;var Fs=a(B(),1),En=a(R(),1),KW=a(T(),1),Bn=a(v(),1),nye=({icon:e,label:t,value:r,onSubmit:o,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s})=>(0,Bn.jsxs)(En.Placeholder,{icon:(0,Bn.jsx)(KW.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Fs.__)("Paste a link to the content you want to display on your site."),children:[(0,Bn.jsxs)("form",{onSubmit:o,children:[(0,Bn.jsx)(En.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,Fs.__)("Enter URL to embed here\u2026"),onChange:n}),(0,Bn.jsx)(En.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Fs._x)("Embed","button label")})]}),(0,Bn.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Bn.jsx)(En.ExternalLink,{href:(0,Fs.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,Fs.__)("Learn more about embeds")})}),i&&(0,Bn.jsxs)(En.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,Bn.jsx)("div",{className:"components-placeholder__instructions",children:(0,Fs.__)("Sorry, this content could not be embedded.")}),(0,Bn.jsxs)(En.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,Bn.jsx)(En.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,Fs._x)("Try again","button label")})," ",(0,Bn.jsx)(En.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,Fs._x)("Convert to link","button label")})]})]})]}),YW=nye;var gh=a(B(),1),V5=a(R(),1),XW=a(T(),1),JW=a(j(),1),e$=a(lr(),1);var z5=a(fe(),1),hh=a(j(),1),uI=a(v(),1),iye={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function QW({html:e}){let t=(0,hh.useRef)(),r=(0,hh.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[iye[l]||l]=s)}),i},[e]);return(0,hh.useEffect)(()=>{let{ownerDocument:o}=t.current,{defaultView:n}=o;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==r["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,uI.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,uI.jsx)("iframe",{ref:(0,z5.useMergeRefs)([t,(0,z5.useFocusableIframe)()]),title:r.title,...r})})}var Nn=a(v(),1);function t$({preview:e,previewable:t,url:r,type:o,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,JW.useState)(!1);!n&&c&&u(!1);let m=()=>{u(!0)},{scripts:p}=e,d=o==="photo"?fH(e):e.html,f=(0,e$.getAuthority)(r),h=(0,gh.sprintf)((0,gh.__)("Embedded content from %s"),f),g=w(o,i,"wp-block-embed__wrapper");return(0,Nn.jsx)(Nn.Fragment,{children:t?o==="wp-embed"?(0,Nn.jsx)(QW,{html:d}):(0,Nn.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,Nn.jsx)(V5.SandBox,{allowSameOrigin:!0,html:d,scripts:p,title:h,type:g,onFocus:m}),!c&&(0,Nn.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m})]}):(0,Nn.jsxs)(V5.Placeholder,{icon:(0,Nn.jsx)(XW.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,Nn.jsx)("p",{className:"components-placeholder__error",children:(0,Nn.jsx)("a",{href:r,children:r})}),(0,Nn.jsx)("p",{className:"components-placeholder__error",children:(0,gh.sprintf)((0,gh.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var mi=a(v(),1),lye=e=>{let{attributes:{providerNameSlug:t,previewable:r,responsive:o,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:m}=e,p={title:(0,sd._x)("Embed","block title"),icon:ql},{icon:d,title:f}=pH(t)||p,[h,g]=(0,vh.useState)(n),[b,y]=(0,vh.useState)(!1),{invalidateResolution:_}=(0,gv.useDispatch)(mI.store),{__unstableMarkNextChangeAsNotPersistent:x}=(0,gv.useDispatch)(F5.store),{preview:k,fetching:S,themeSupportsResponsive:C,cannotEmbed:E,hasResolved:P}=(0,gv.useSelect)(O=>{let{getEmbedPreview:te,isPreviewEmbedFallback:se,isRequestingEmbedPreview:Q,getThemeSupports:ce,hasFinishedResolution:Ee}=O(mI.store);if(!n)return{fetching:!1,cannotEmbed:!1};let le=te(n),ee=se(n),ve=le?.html===!1&&le?.type===void 0,Ne=le?.data?.status===404,Re=!!le&&!ve&&!Ne;return{preview:Re?le:void 0,fetching:Q(n),themeSupportsResponsive:ce()["responsive-embeds"],cannotEmbed:!Re||ee,hasResolved:Ee("getEmbedPreview",[n])}},[n]),N=()=>gH(i,k,f,o);function z(O){let{className:te}=i,{html:se}=k;c({allowResponsive:O,className:DE(se,te,o&&O)})}(0,vh.useEffect)(()=>{if(!E||!P||!n)return;let O=n.replace(/\/$/,"");O!==n&&(g(O),y(!1),x(),c({url:O}))},[n,E,P,c,x]),(0,vh.useEffect)(()=>{if(!k||b)return;let O=N();if(s){let se=Yu(e,O);if(se){x(),c(se.attributes);return}}Object.keys(O).some(se=>O[se]!==i[se])&&(x(),c(O))},[k,b]);let V=(0,F5.useBlockProps)();if(S)return(0,mi.jsx)(pI.View,{...V,children:(0,mi.jsx)(ZW,{})});let A=(0,sd.sprintf)((0,sd.__)("%s URL"),f);if(!k||E||b)return(0,mi.jsx)(pI.View,{...V,children:(0,mi.jsx)(YW,{icon:d,label:A,onFocus:m,onSubmit:O=>{O&&O.preventDefault();let te=j1(h),se=Ku(i.className);g(te),c({url:te,...Hf(te)?.attributes,className:se}),y(!1)},value:h,cannotEmbed:E,onChange:O=>g(O),fallback:()=>hH(h,s),tryAgain:()=>{_("getEmbedPreview",[h])}})});let{caption:L,type:U,allowResponsive:H,className:G}=N(),Y=w(G,e.className);return(0,mi.jsxs)(mi.Fragment,{children:[(0,mi.jsx)(EW,{showEditButton:k&&!E,themeSupportsResponsive:C,blockSupportsResponsive:o,allowResponsive:H,toggleResponsive:z,switchBackToURLInput:()=>y(!0)}),(0,mi.jsxs)("figure",{...V,className:w(V.className,Y,{[`is-type-${U}`]:U,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,mi.jsx)(t$,{preview:k,previewable:r,className:Y,url:h,type:U,caption:L,onCaptionChange:O=>c({caption:O}),isSelected:l,icon:d,label:A,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,mi.jsx)(ma,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,sd.__)("Embed caption text"),showToolbarButton:l})]})]})},r$=lye;var cd=a(T(),1),vv=a(v(),1);function o$({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,vv.jsxs)("figure",{...cd.useBlockProps.save({className:i}),children:[(0,vv.jsx)("div",{className:"wp-block-embed__wrapper",children:`
17 +`+t.content}},transforms:rK,edit:XZ,save:tK},A4e=()=>D({name:nK,metadata:uC,settings:aK});var eR={};J(eR,{init:()=>H4e,metadata:()=>fC,name:()=>dK,settings:()=>pK});var iK=a(I(),1),JL=a(y(),1),O4e=[{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,JL.jsx)("div",{className:o,style:n,children:(0,JL.jsx)(iK.InnerBlocks.Content,{})})}}],sK=O4e;var dn=a(I(),1),zd=a(F(),1),mC=a(H(),1),Gm=a(L(),1);var Mi=a(y(),1);function F4e({width:e,setAttributes:t}){let[r]=(0,dn.useSettings)("spacing.units"),o=(0,zd.__experimentalUseCustomUnits)({availableUnits:r||["%","px","em","rem","vw"]}),n=ee();return(0,Mi.jsx)(zd.__experimentalToolsPanel,{label:(0,Gm.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,Mi.jsx)(zd.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Gm.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,Mi.jsx)(zd.__experimentalUnitControl,{label:(0,Gm.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:o})})})}function V4e({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,mC.useSelect)(v=>{let{getBlockOrder:w,getBlockRootClientId:x}=v(dn.store),k=x(i);return{hasChildBlocks:w(i).length>0,rootClientId:k,columnsIds:w(k)}},[i]),{updateBlockAttributes:d}=(0,mC.useDispatch)(dn.store),p=v=>{n({verticalAlignment:v}),d(u,{verticalAlignment:null})},m=Number.isFinite(t)?t+"%":t,f=(0,dn.useBlockProps)({className:s,style:m?{flexBasis:m}:void 0}),g=l.length,h=l.indexOf(i)+1,b=(0,Gm.sprintf)((0,Gm.__)("%1$s (%2$d of %3$d)"),f["aria-label"],h,g),_=(0,dn.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:r,allowedBlocks:o,renderAppender:c?!1:dn.InnerBlocks.ButtonBlockAppender});return(0,Mi.jsxs)(Mi.Fragment,{children:[(0,Mi.jsx)(dn.BlockControls,{children:(0,Mi.jsx)(dn.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,Mi.jsx)(dn.InspectorControls,{children:(0,Mi.jsx)(F4e,{width:t,setAttributes:n})}),(0,Mi.jsx)("div",{..._})]})}var lK=V4e;var fC={$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,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:{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 gC=a(I(),1),cK=a(y(),1);function uK({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=gC.useBlockProps.save({className:o,style:n}),s=gC.useInnerBlocksProps.save(i);return(0,cK.jsx)("div",{...s})}var{name:dK}=fC,pK={icon:HP,edit:lK,save:uK,deprecated:sK},H4e=()=>D({name:dK,metadata:fC,settings:pK});var oR={};J(oR,{init:()=>iCe,metadata:()=>yC,name:()=>TK,settings:()=>EK});var a2=a(L(),1);var mK=a(te(),1),qm=a(I(),1),$m=a(y(),1);function hC(e){let{doc:t}=hC;t||(t=document.implementation.createHTMLDocument(""),hC.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 j4e=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}},fK=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:j4e,save({attributes:e}){let{verticalAlignment:t,backgroundColor:r,customBackgroundColor:o,textColor:n,customTextColor:i}=e,s=(0,qm.getColorClassName)("background-color",r),l=(0,qm.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,$m.jsx)("div",{className:c||void 0,style:{backgroundColor:s?void 0:o,color:l?void 0:i},children:(0,$m.jsx)(qm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(o=>/layout-column-\d+/.test(o.originalContent))?t.some(o=>hC(o.originalContent)!==void 0):!1},migrate(e,t){let o=t.reduce((s,l)=>{let{originalContent:c}=l,u=hC(c);return u===void 0&&(u=0),s[u]||(s[u]=[]),s[u].push(l),s},[]).map(s=>(0,mK.createBlock)("core/column",{},s)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},o]},save({attributes:e}){let{columns:t}=e;return(0,$m.jsx)("div",{className:`has-${t}-columns`,children:(0,$m.jsx)(qm.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,$m.jsx)("div",{className:o,children:(0,$m.jsx)(qm.InnerBlocks.Content,{})})}}];var Zm=a(L(),1),Ms=a(F(),1),ro=a(I(),1),Ns=a(H(),1),Km=a(te(),1);var bC=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function gK(e,t){let{width:r=100/t}=e.attributes;return bC(r)}function U4e(e,t=e.length){return e.reduce((r,o)=>r+gK(o,t),0)}function W4e(e,t=e.length){return e.reduce((r,o)=>{let n=gK(o,t);return Object.assign(r,{[o.clientId]:n})},{})}function tR(e,t,r=e.length){let o=U4e(e,r);return Object.fromEntries(Object.entries(W4e(e,r)).map(([n,i])=>{let s=t*i/o;return[n,bC(s)]}))}function hK(e){return e.every(t=>{let r=t.attributes.width;return Number.isFinite(r?.endsWith?.("%")?parseFloat(r):r)})}function rR(e,t){return e.map(r=>({...r,attributes:{...r.attributes,width:`${t[r.clientId]}%`}}))}var Bo=a(y(),1),G4e={name:"core/column"};function $4e({clientId:e,setAttributes:t,isStackedOnMobile:r}){let{count:o,canInsertColumnBlock:n,minCount:i}=(0,Ns.useSelect)(d=>{let{canInsertBlockType:p,canRemoveBlock:m,getBlockOrder:f}=d(ro.store),g=f(e),h=g.reduce((b,_,v)=>(m(_)||b.push(v),b),[]);return{count:g.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...h)+1}},[e]),{getBlocks:s}=(0,Ns.useSelect)(ro.store),{replaceInnerBlocks:l}=(0,Ns.useDispatch)(ro.store);function c(d,p){let m=s(e),f=hK(m),g=p>d;if(g&&f){let h=bC(100/p),b=p-d,_=tR(m,100-h*b);m=[...rR(m,_),...Array.from({length:b}).map(()=>(0,Km.createBlock)("core/column",{width:`${h}%`}))]}else if(g)m=[...m,...Array.from({length:p-d}).map(()=>(0,Km.createBlock)("core/column"))];else if(p<d&&(m=m.slice(0,-(d-p)),f)){let h=tR(m,100);m=rR(m,h)}l(e,m)}let u=ee();return(0,Bo.jsxs)(Ms.__experimentalToolsPanel,{label:(0,Zm.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,Bo.jsxs)(Ms.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,Bo.jsx)(Ms.RangeControl,{label:(0,Zm.__)("Columns"),value:o,onChange:d=>c(o,Math.max(i,d)),min:Math.max(1,i),max:Math.max(6,o)}),o>6&&(0,Bo.jsx)(Ms.Notice,{status:"warning",isDismissible:!1,children:(0,Zm.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Bo.jsx)(Ms.__experimentalToolsPanelItem,{label:(0,Zm.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>r!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Bo.jsx)(Ms.ToggleControl,{label:(0,Zm.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})})})]})}function q4e({attributes:e,setAttributes:t,clientId:r}){let{isStackedOnMobile:o,verticalAlignment:n,templateLock:i}=e,s=(0,Ns.useRegistry)(),{getBlockOrder:l}=(0,Ns.useSelect)(ro.store),{updateBlockAttributes:c}=(0,Ns.useDispatch)(ro.store),u=T({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!o}),d=(0,ro.useBlockProps)({className:u}),p=(0,ro.useInnerBlocksProps)(d,{defaultBlock:G4e,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,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(ro.BlockControls,{children:(0,Bo.jsx)(ro.BlockVerticalAlignmentToolbar,{onChange:m,value:n})}),(0,Bo.jsx)(ro.InspectorControls,{children:(0,Bo.jsx)($4e,{clientId:r,setAttributes:t,isStackedOnMobile:o})}),(0,Bo.jsx)("div",{...p})]})}function Z4e({clientId:e,name:t,setAttributes:r}){let{blockType:o,variations:n}=(0,Ns.useSelect)(l=>{let{getBlockVariations:c,getBlockType:u}=l(Km.store);return{blockType:u(t),variations:c(t,"block")}},[t]),{replaceInnerBlocks:i}=(0,Ns.useDispatch)(ro.store),s=(0,ro.useBlockProps)();return(0,Bo.jsx)("div",{...s,children:(0,Bo.jsx)(ro.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:n,instructions:(0,Zm.__)("Divide into columns. Select a layout:"),onSelect:l=>{l.attributes&&r(l.attributes),l.innerBlocks&&i(e,(0,Km.createBlocksFromInnerBlocksTemplate)(l.innerBlocks),!0)}})})}var K4e=e=>{let{clientId:t}=e,o=(0,Ns.useSelect)(n=>n(ro.store).getBlocks(t).length>0,[t])?q4e:Z4e;return(0,Bo.jsx)(o,{...e})},bK=K4e;var yC={$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}},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 vC=a(I(),1),yK=a(y(),1);function vK({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:r}=e,o=T({[`are-vertically-aligned-${r}`]:r,"is-not-stacked-on-mobile":!t}),n=vC.useBlockProps.save({className:o}),i=vC.useInnerBlocksProps.save(n);return(0,yK.jsx)("div",{...i})}var Xa=a(F(),1),Li=a(L(),1),Ri=a(y(),1),Q4e=[{name:"one-column-full",title:(0,Li.__)("100"),description:(0,Li.__)("One column"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("50 / 50"),description:(0,Li.__)("Two columns; equal split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("33 / 66"),description:(0,Li.__)("Two columns; one-third, two-thirds split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("66 / 33"),description:(0,Li.__)("Two columns; two-thirds, one-third split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("33 / 33 / 33"),description:(0,Li.__)("Three columns; equal split"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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,Li.__)("25 / 50 / 25"),description:(0,Li.__)("Three columns; wide center column"),icon:(0,Ri.jsx)(Xa.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,Ri.jsx)(Xa.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"]}],_K=Q4e;var Io=a(te(),1),X4e=6,xK=["top","center","bottom"],J4e=[...xK,"stretch"],eCe=["fixed","fixedNoShrink"],kK={type:"default"},gc=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:{},wK=e=>{let t=(0,Io.getBlockType)("core/group")?.attributes;if(!t)return{};let r=gc(e);return Object.fromEntries(Object.entries(r).filter(([o])=>Object.hasOwn(t,o)))},CK=e=>{if(Number.isFinite(e))return`${e}%`;if(typeof e=="string"&&/\d/.test(e))return e},tCe=(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,Io.createBlocksFromInnerBlocksTemplate)(o)},rCe=e=>e.map(t=>{let r=gc(t?.attributes?.style),{selfStretch:o,flexSize:n,...i}=gc(r.layout),s=eCe.includes(o)?CK(n):void 0,l={...r};Object.keys(i).length?l.layout=i:delete l.layout;let c=(0,Io.cloneSanitizedBlock)(t,{style:Object.keys(l).length?l:void 0});return(0,Io.createBlock)("core/column",s?{width:s}:{},[c])}),oCe=e=>e.flatMap(t=>{let r=t.innerBlocks||[],{layout:o,style:n,...i}=wK(t?.attributes),s=gc(n),l=gc(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,Io.createBlock)("core/group",{...i,layout:d?l:kK,...u&&{style:s}},r)]:r}),nCe=e=>{let t=e.map(n=>CK(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}=wK(n?.attributes),m=gc(d),f=gc(u),g=Object.keys(p).length>0,h=Object.keys(m).length>0,b=Object.keys(f).length>0;if(s.length===1&&!g&&!h&&!b){let _=s[0],v=gc(_.attributes?.style),x={...gc(v.layout),...c};return l||delete x.flexSize,(0,Io.cloneSanitizedBlock)(_,{style:{...v,layout:x}})}return(0,Io.createBlock)("core/group",{...p,layout:b?f:kK,style:{...m,layout:{...gc(m.layout),...c}}},s)})},aCe={from:[{type:"block",blocks:["core/group"],priority:1,transform:(e,t)=>{let{layout:r,...o}=e,{columnCount:n}=r;return(0,Io.createBlock)("core/columns",o,tCe(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=xK.includes(r?.verticalAlignment)?r.verticalAlignment:void 0;return(0,Io.createBlock)("core/columns",{...o,verticalAlignment:n},rCe(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,Io.createBlock)("core/columns",{},(0,Io.createBlocksFromInnerBlocksTemplate)(r))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=X4e},{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 b={id:l,alt:s,url:p,sizeSlug:u},_={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};g=["core/image",{...b,..._}]}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,Io.createBlock)("core/columns",{align:r,backgroundColor:o,textColor:n,style:i,verticalAlignment:f},(0,Io.createBlocksFromInnerBlocksTemplate)(h))}}],to:[{type:"block",blocks:["core/group"],variationName:"group-row",transform:(e,t)=>{let{verticalAlignment:r}=e,o=J4e.includes(r)?r:"stretch";return(0,Io.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:o}},nCe(t))}},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let r=t.length;return(0,Io.createBlock)("core/group",{...e,isStackedOnMobile:void 0,verticalAlignment:void 0,layout:{type:"grid",...r&&{columnCount:r}}},oCe(t))}}],ungroup:(e,t)=>t.flatMap(r=>r.innerBlocks)},SK=aCe;var{name:TK}=yC,EK={icon:UP,variations:_K,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,a2.__)("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,a2.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,a2.__)("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,a2.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:fK,edit:bK,save:vK,transforms:SK},iCe=()=>D({name:TK,metadata:yC,settings:EK});var sR={};J(sR,{init:()=>pCe,metadata:()=>_C,name:()=>GK,settings:()=>$K});var _C={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,button:!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 xC=a(I(),1),nR=a(y(),1),lCe={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=xC.useBlockProps.save(),{className:r}=t,n=(r?.split(" ")||[])?.filter(s=>s!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,nR.jsx)(e,{...i,children:(0,nR.jsx)(xC.InnerBlocks.Content,{})})}},PK=[lCe];var SC=a(I(),1);var BK=a(L(),1),i2=a(I(),1);var kC=a(y(),1),{HTMLElementControl:cCe}=le(i2.privateApis);function IK({attributes:{tagName:e},setAttributes:t}){return(0,kC.jsx)(i2.InspectorControls,{children:(0,kC.jsx)(i2.InspectorControls,{group:"advanced",children:(0,kC.jsx)(cCe,{tagName:e,onChange:r=>t({tagName:r}),options:[{label:(0,BK.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var jd=a(I(),1),iR=a(L(),1),VK=a(F(),1);var RK=a(I(),1),mo=a(L(),1),DK=a(H(),1),AK=a(ae(),1),OK=a(W(),1);var Ls=a(L(),1),Hd=a(I(),1),NK=a(F(),1),MK=a(_e(),1),wC=a(ae(),1),aR=a(H(),1),ya=a(y(),1),LK=()=>{let e=(0,MK.useInstanceId)(LK);return(0,ya.jsxs)("div",{className:"comment-respond",children:[(0,ya.jsx)("h3",{className:"comment-reply-title",children:(0,Ls.__)("Leave a Reply")}),(0,ya.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,ya.jsxs)("p",{children:[(0,ya.jsx)("label",{htmlFor:`comment-${e}`,children:(0,Ls.__)("Comment")}),(0,ya.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,ya.jsx)("p",{className:"form-submit wp-block-button",children:(0,ya.jsx)("input",{name:"submit",type:"submit",className:T("wp-block-button__link",(0,Hd.__experimentalGetElementClassName)("button")),label:(0,Ls.__)("Post Comment"),value:(0,Ls.__)("Post Comment"),"aria-disabled":"true"})})]})]})},uCe=({postId:e,postType:t})=>{let[r,o]=(0,wC.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,i=(0,aR.useSelect)(l=>l(Hd.store).getSettings().__experimentalDiscussionSettings?.defaultCommentStatus,[]),s=(0,aR.useSelect)(l=>t?!!l(wC.store).getPostType(t)?.supports.comments:!1);if(!n&&r!=="open")if(r==="closed"){let l=[(0,ya.jsx)(NK.Button,{__next40pxDefaultSize:!0,onClick:()=>o("open"),variant:"primary",children:(0,Ls._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,ya.jsx)(Hd.Warning,{actions:l,children:(0,Ls.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(s){if(i!=="open")return(0,ya.jsx)(Hd.Warning,{children:(0,Ls.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,ya.jsx)(Hd.Warning,{children:(0,Ls.sprintf)((0,Ls.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,ya.jsx)(LK,{})},CC=uCe;var pt=a(y(),1);function FK({postType:e,postId:t}){let[r]=(0,AK.useEntityProp)("postType",e,"title",t);r=r||(0,mo.__)("Post Title");let o=(0,DK.useSelect)(n=>n(RK.store).getSettings().__experimentalDiscussionSettings?.avatarURL,[]);return(0,pt.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,pt.jsx)("h3",{children:(0,mo.sprintf)((0,mo.__)("One response to %s"),r)}),(0,pt.jsxs)("div",{className:"navigation",children:[(0,pt.jsx)("div",{className:"alignleft",children:(0,pt.jsxs)("a",{href:"#top",children:["\xAB ",(0,mo.__)("Older Comments")]})}),(0,pt.jsx)("div",{className:"alignright",children:(0,pt.jsxs)("a",{href:"#top",children:[(0,mo.__)("Newer Comments")," \xBB"]})})]}),(0,pt.jsx)("ol",{className:"commentlist",children:(0,pt.jsx)("li",{className:"comment even thread-even depth-1",children:(0,pt.jsxs)("article",{className:"comment-body",children:[(0,pt.jsxs)("footer",{className:"comment-meta",children:[(0,pt.jsxs)("div",{className:"comment-author vcard",children:[(0,pt.jsx)("img",{alt:(0,mo.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,pt.jsx)("b",{className:"fn",children:(0,pt.jsx)("a",{href:"#top",className:"url",children:(0,mo.__)("A WordPress Commenter")})})," ",(0,pt.jsxs)("span",{className:"says",children:[(0,mo.__)("says"),":"]})]}),(0,pt.jsxs)("div",{className:"comment-metadata",children:[(0,pt.jsx)("a",{href:"#top",children:(0,pt.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,mo.__)("January 1, 2000 at 00:00 am")})})," ",(0,pt.jsx)("span",{className:"edit-link",children:(0,pt.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,mo.__)("Edit")})})]})]}),(0,pt.jsx)("div",{className:"comment-content",children:(0,pt.jsxs)("p",{children:[(0,mo.__)("Hi, this is a comment."),(0,pt.jsx)("br",{}),(0,mo.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,pt.jsx)("br",{}),(0,OK.createInterpolateElement)((0,mo.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,pt.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,pt.jsx)("div",{className:"reply",children:(0,pt.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,mo.__)("Reply to A WordPress Commenter"),children:(0,mo._x)("Reply","verb")})})]})})}),(0,pt.jsxs)("div",{className:"navigation",children:[(0,pt.jsx)("div",{className:"alignleft",children:(0,pt.jsxs)("a",{href:"#top",children:["\xAB ",(0,mo.__)("Older Comments")]})}),(0,pt.jsx)("div",{className:"alignright",children:(0,pt.jsxs)("a",{href:"#top",children:[(0,mo.__)("Newer Comments")," \xBB"]})})]}),(0,pt.jsx)(CC,{postId:t,postType:e})]})}var xl=a(y(),1);function zK({attributes:e,setAttributes:t,context:{postType:r,postId:o}}){let{textAlign:n}=e,i=[(0,xl.jsx)(VK.Button,{__next40pxDefaultSize:!0,onClick:()=>{t({legacy:!1})},variant:"primary",children:(0,iR.__)("Switch to editable mode")},"convert")],s=(0,jd.useBlockProps)({className:T({[`has-text-align-${n}`]:n})});return(0,xl.jsxs)(xl.Fragment,{children:[(0,xl.jsx)(jd.BlockControls,{group:"block",children:(0,xl.jsx)(jd.AlignmentControl,{value:n,onChange:l=>{t({textAlign:l})}})}),(0,xl.jsxs)("div",{...s,children:[(0,xl.jsx)(jd.Warning,{actions:i,children:(0,iR.__)("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,xl.jsx)(FK,{postId:o,postType:r})]})]})}var Ud=a(y(),1);function HK(e){let{attributes:t,setAttributes:r,clientId:o}=e,{tagName:n,legacy:i}=t,s=(0,SC.useBlockProps)(),l=(0,SC.useInnerBlocksProps)(s);return i?(0,Ud.jsx)(zK,{...e}):(0,Ud.jsxs)(Ud.Fragment,{children:[(0,Ud.jsx)(IK,{attributes:t,setAttributes:r,clientId:o}),(0,Ud.jsx)(n,{...l})]})}var TC=a(I(),1),jK=a(y(),1);function UK({attributes:{tagName:e,legacy:t}}){let r=TC.useBlockProps.save(),o=TC.useInnerBlocksProps.save(r);return t?null:(0,jK.jsx)(e,{...o})}var dCe=[["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"]],WK=dCe;var{name:GK}=_C,$K={icon:bI,example:{},template:WK,edit:HK,save:UK,deprecated:PK},pCe=()=>D({name:GK,metadata:_C,settings:$K});var cR={};J(cR,{init:()=>fCe,metadata:()=>EC,name:()=>KK,settings:()=>YK});var EC={$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 Wd=a(I(),1),zh=a(F(),1),lR=a(ae(),1),qK=a(H(),1),Ym=a(L(),1),kl=a(y(),1);function ZK({attributes:e,context:{commentId:t},setAttributes:r,isSelected:o}){let{height:n,width:i}=e,[s]=(0,lR.useEntityProp)("root","comment","author_avatar_urls",t),[l]=(0,lR.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,Wd.useBlockProps)(),f=(0,Wd.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(p*2.5),h=(0,qK.useSelect)(v=>{let{__experimentalDiscussionSettings:w}=v(Wd.store).getSettings();return w?.avatarURL},[]),b=(0,kl.jsx)(Wd.InspectorControls,{children:(0,kl.jsx)(zh.PanelBody,{title:(0,Ym.__)("Settings"),children:(0,kl.jsx)(zh.RangeControl,{label:(0,Ym.__)("Image size"),onChange:v=>r({width:v,height:v}),min:d,max:g,initialPosition:i,value:i})})}),_=(0,kl.jsx)(zh.ResizableBox,{size:{width:i,height:n},showHandle:o,onResizeStop:(v,w,x,k)=>{r({height:parseInt(n+k.height,10),width:parseInt(i+k.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Ym.isRTL)(),bottom:!0,left:(0,Ym.isRTL)()},minWidth:d,maxWidth:g,children:(0,kl.jsx)("img",{src:c?c[c.length-1]:h,alt:`${l} ${(0,Ym.__)("Avatar")}`,...m})});return(0,kl.jsxs)(kl.Fragment,{children:[b,(0,kl.jsx)("div",{...f,children:_})]})}var{name:KK}=EC,YK={icon:qb,edit:ZK},fCe=()=>D({name:KK,metadata:EC,settings:YK});var uR={};J(uR,{init:()=>yCe,metadata:()=>PC,name:()=>tY,settings:()=>rY});var PC={$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,background:{gradient:!0},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 Nu=a(L(),1),QK=a(H(),1),BC=a(I(),1),XK=a(ae(),1),Gd=a(F(),1);var Di=a(y(),1);function JK(e){let{attributes:{isLink:t,linkTarget:r},context:{commentId:o},setAttributes:n}=e;Pt(e);let i=ee(),s=(0,BC.useBlockProps)(),l=(0,QK.useSelect)(d=>{let{getEntityRecord:p}=d(XK.store),m=p("root","comment",o),f=m?.author_name;return m&&!f?p("root","user",m.author)?.name??(0,Nu.__)("Anonymous"):f??""},[o]),c=(0,Di.jsx)(BC.InspectorControls,{children:(0,Di.jsxs)(Gd.__experimentalToolsPanel,{label:(0,Nu.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,Di.jsx)(Gd.__experimentalToolsPanelItem,{label:(0,Nu.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>n({isLink:!0}),children:(0,Di.jsx)(Gd.ToggleControl,{label:(0,Nu.__)("Link to authors URL"),onChange:()=>n({isLink:!t}),checked:t})}),t&&(0,Di.jsx)(Gd.__experimentalToolsPanelItem,{label:(0,Nu.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,Di.jsx)(Gd.ToggleControl,{label:(0,Nu.__)("Open in new tab"),onChange:d=>n({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})});return(!o||!l)&&(l=(0,Nu._x)("Comment Author","block title")),(0,Di.jsxs)(Di.Fragment,{children:[c,(0,Di.jsx)("div",{...s,children:t?(0,Di.jsx)("a",{href:"#comment-author-pseudo-link",onClick:d=>d.preventDefault(),children:l}):l})]})}var hCe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},bCe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},eY=[hCe,bCe];var{name:tY}=PC,rY={icon:WP,edit:JK,deprecated:eY,example:{}},yCe=()=>D({name:tY,metadata:PC,settings:rY});var dR={};J(dR,{init:()=>xCe,metadata:()=>IC,name:()=>uY,settings:()=>dY});var IC={$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,background:{gradient:!0},color:{gradients:!0,heading:!0,button:!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 oY=a(L(),1),nY=a(W(),1),aY=a(F(),1),iY=a(ae(),1),sY=a(I(),1);var wl=a(y(),1);function lY(e){let{context:{commentId:t}}=e;Pt(e);let r=(0,sY.useBlockProps)(),[o]=(0,iY.useEntityProp)("root","comment","content",t);return!t||!o?(0,wl.jsx)(wl.Fragment,{children:(0,wl.jsx)("div",{...r,children:(0,wl.jsx)("p",{children:(0,oY._x)("Comment Content","block title")})})}):(0,wl.jsx)(wl.Fragment,{children:(0,wl.jsx)("div",{...r,children:(0,wl.jsx)(aY.Disabled,{children:(0,wl.jsx)(nY.RawHTML,{children:o.rendered},"html")})})})}var _Ce={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},cY=[_Ce];var{name:uY}=IC,dY={icon:$P,edit:lY,deprecated:cY,example:{}},xCe=()=>D({name:uY,metadata:IC,settings:dY});var mR={};J(mR,{init:()=>CCe,metadata:()=>NC,name:()=>gY,settings:()=>hY});var NC={$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,background:{gradient:!0},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 pR=a(ae(),1),Xm=a(MC(),1),Hh=a(I(),1),Jm=a(F(),1),Qm=a(L(),1);var va=a(y(),1);function mY({attributes:{format:e,isLink:t},context:{commentId:r},setAttributes:o}){let n=(0,Hh.useBlockProps)(),i=ee(),[s]=(0,pR.useEntityProp)("root","comment","date",r),[l=(0,Xm.getSettings)().formats.date]=(0,pR.useEntityProp)("root","site","date_format"),c=(0,va.jsx)(Hh.InspectorControls,{children:(0,va.jsxs)(Jm.__experimentalToolsPanel,{label:(0,Qm.__)("Settings"),resetAll:()=>{o({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,va.jsx)(Jm.__experimentalToolsPanelItem,{label:(0,Qm.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>o({format:void 0}),isShownByDefault:!0,children:(0,va.jsx)(Hh.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:d=>o({format:d})})}),(0,va.jsx)(Jm.__experimentalToolsPanelItem,{label:(0,Qm.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>o({isLink:!0}),isShownByDefault:!0,children:(0,va.jsx)(Jm.ToggleControl,{label:(0,Qm.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})})]})});(!r||!s)&&(s=(0,Qm._x)("Comment Date","block title"));let u=s instanceof Date?(0,va.jsx)("time",{dateTime:(0,Xm.dateI18n)("c",s),children:e==="human-diff"?(0,Xm.humanTimeDiff)(s):(0,Xm.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 wCe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},fY=[wCe];var{name:gY}=NC,hY={icon:mv,edit:mY,deprecated:fY,example:{}},CCe=()=>D({name:gY,metadata:NC,settings:hY});var fR={};J(fR,{init:()=>ECe,metadata:()=>LC,name:()=>vY,settings:()=>_Y});var LC={$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,background:{gradient:!0},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 RC=a(I(),1),jh=a(F(),1),s2=a(L(),1);var Cl=a(y(),1);function bY(e){let{attributes:t,setAttributes:r}=e,{linkTarget:o}=t;Pt(e);let n=(0,RC.useBlockProps)(),i=ee(),s=(0,Cl.jsx)(RC.InspectorControls,{children:(0,Cl.jsx)(jh.__experimentalToolsPanel,{label:(0,s2.__)("Settings"),resetAll:()=>{r({linkTarget:"_self"})},dropdownMenuProps:i,children:(0,Cl.jsx)(jh.__experimentalToolsPanelItem,{label:(0,s2.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o==="_blank",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Cl.jsx)(jh.ToggleControl,{label:(0,s2.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:o==="_blank"})})})});return(0,Cl.jsxs)(Cl.Fragment,{children:[s,(0,Cl.jsx)("div",{...n,children:(0,Cl.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:l=>l.preventDefault(),children:(0,s2.__)("Edit")})})]})}var TCe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},yY=[TCe];var{name:vY}=LC,_Y={icon:qP,edit:bY,deprecated:yY,example:{}},ECe=()=>D({name:vY,metadata:LC,settings:_Y});var gR={};J(gR,{init:()=>NCe,metadata:()=>DC,name:()=>SY,settings:()=>TY});var DC={$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,background:{gradient:!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 xY=a(L(),1),kY=a(I(),1);var Uh=a(y(),1);function BCe(e){Pt(e);let t=(0,kY.useBlockProps)();return(0,Uh.jsx)(Uh.Fragment,{children:(0,Uh.jsx)("div",{...t,children:(0,Uh.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:r=>r.preventDefault(),children:(0,xY._x)("Reply","verb")})})})}var wY=BCe;var ICe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},CY=[ICe];var{name:SY}=DC,TY={edit:wY,icon:ZP,deprecated:CY,example:{}},NCe=()=>D({name:SY,metadata:DC,settings:TY});var bR={};J(bR,{init:()=>VCe,metadata:()=>AC,name:()=>UY,settings:()=>WY});var AC={$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 OC=a(W(),1),hR=a(H(),1),DY=a(L(),1),Sl=a(I(),1),AY=a(F(),1),OY=a(ae(),1);var ef=a(W(),1),BY=a(H(),1),IY=a(I(),1),NY=a(qt(),1),MY=a(l2(),1),PY=100,LY=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:r,commentsPerPage:o,defaultCommentsPage:n}=(0,BY.useSelect)(l=>{let{getSettings:c}=l(IY.store),{__experimentalDiscussionSettings:u}=c();return u??{}},[]),i=r?Math.min(o,PY):PY,s=LCe({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,ef.useMemo)(()=>s?{...t,post:e,per_page:i,page:s}:null,[e,i,s])},LCe=({defaultPage:e,postId:t,perPage:r,queryArgs:o})=>{let[n,i]=(0,ef.useState)({}),s=`${t}_${r}`,l=n[s]||0;return(0,ef.useEffect)(()=>{l||e!=="newest"||(0,MY.default)({path:(0,NY.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},RY=e=>(0,ef.useMemo)(()=>e?.map(({id:r,_embedded:o})=>{let[n]=o?.children||[[]];return{commentId:r,children:n.map(i=>({commentId:i.id}))}}),[e]);var Ai=a(y(),1),RCe=({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 DCe({comment:e,activeCommentId:t,setActiveCommentId:r,firstCommentId:o,blocks:n}){let{children:i,...s}=(0,Sl.useInnerBlocksProps)({});return(0,Ai.jsxs)("li",{...s,children:[e.commentId===(t||o)?i:null,(0,Ai.jsx)(OCe,{blocks:n,commentId:e.commentId,setActiveCommentId:r,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,Ai.jsx)(FY,{comments:e.children,activeCommentId:t,setActiveCommentId:r,blocks:n,firstCommentId:o}):null]})}var ACe=({blocks:e,commentId:t,setActiveCommentId:r,isHidden:o})=>{let n=(0,Sl.__experimentalUseBlockPreview)({blocks:e}),i=()=>{r(t)};return(0,Ai.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:o?"none":void 0},onClick:i,onKeyPress:i})},OCe=(0,OC.memo)(ACe),FY=({comments:e,blockProps:t,activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})=>(0,Ai.jsx)("ol",{...t,children:e&&e.map(({commentId:s,...l},c)=>(0,Ai.jsx)(Sl.BlockContextProvider,{value:{commentId:s<0?null:s},children:(0,Ai.jsx)(DCe,{comment:{commentId:s,...l},activeCommentId:r,setActiveCommentId:o,blocks:n,firstCommentId:i})},l.commentId||c))});function VY({clientId:e,context:{postId:t}}){let r=(0,Sl.useBlockProps)(),[o,n]=(0,OC.useState)(),{commentOrder:i,threadCommentsDepth:s,threadComments:l,commentsPerPage:c,pageComments:u}=(0,hR.useSelect)(g=>{let{getSettings:h}=g(Sl.store);return h().__experimentalDiscussionSettings??{}},[]),d=LY({postId:t}),{topLevelComments:p,blocks:m}=(0,hR.useSelect)(g=>{let{getEntityRecords:h}=g(OY.store),{getBlocks:b}=g(Sl.store);return{topLevelComments:d?h("root","comment",d):null,blocks:b(e)}},[e,d]),f=RY(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=RCe({perPage:c,pageComments:u,threadComments:l,threadCommentsDepth:s})),f.length?(0,Ai.jsx)(FY,{comments:f,blockProps:r,blocks:m,activeCommentId:o,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,Ai.jsx)("p",{...r,children:(0,DY.__)("No results found.")})):(0,Ai.jsx)("p",{...r,children:(0,Ai.jsx)(AY.Spinner,{})})}var zY=a(I(),1),HY=a(y(),1);function jY(){return(0,HY.jsx)(zY.InnerBlocks.Content,{})}var{name:UY}=AC,FCe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],WY={icon:hm,template:FCe,edit:VY,save:jY},VCe=()=>D({name:UY,metadata:AC,settings:WY});var vR={};J(vR,{init:()=>jCe,metadata:()=>FC,name:()=>qY,settings:()=>ZY});var $Y=a(L(),1);var FC={$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,background:{gradient:!0,__experimentalDefaultControls:{gradient:!0}},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 yR=a(L(),1),VC=a(I(),1),c2=a(y(),1),HCe={none:"",arrow:"\u2190",chevron:"\xAB"};function GY({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=HCe[r];return(0,c2.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,VC.useBlockProps)(),children:[o&&(0,c2.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${r}`,children:o}),(0,c2.jsx)(VC.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,yR.__)("Older comments page link"),placeholder:(0,yR.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:qY}=FC,ZY={icon:Bv,edit:GY,example:{attributes:{label:(0,$Y.__)("Older Comments")}}},jCe=()=>D({name:qY,metadata:FC,settings:ZY});var xR={};J(xR,{init:()=>GCe,metadata:()=>zC,name:()=>eQ,settings:()=>tQ});var zC={$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,background:{gradient:!0},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 HC=a(L(),1),El=a(I(),1),_R=a(H(),1),jC=a(F(),1);var tf=a(L(),1),Wh=a(F(),1),Gh=a(y(),1);function KY({value:e,onChange:t}){return(0,Gh.jsxs)(Wh.__experimentalToggleGroupControl,{label:(0,tf.__)("Arrow"),value:e,onChange:t,help:(0,tf.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Gh.jsx)(Wh.__experimentalToggleGroupControlOption,{value:"none",label:(0,tf._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Gh.jsx)(Wh.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,tf._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Gh.jsx)(Wh.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,tf._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var Tl=a(y(),1);function YY({attributes:{paginationArrow:e},setAttributes:t,clientId:r}){let o=(0,_R.useSelect)(c=>{let{getBlocks:u}=c(El.store);return u(r)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,El.useBlockProps)(),i=ee(),s=(0,El.useInnerBlocksProps)(n);return(0,_R.useSelect)(c=>{let{getSettings:u}=c(El.store),{__experimentalDiscussionSettings:d}=u();return d?.pageComments},[])?(0,Tl.jsxs)(Tl.Fragment,{children:[o&&(0,Tl.jsx)(El.InspectorControls,{children:(0,Tl.jsx)(jC.__experimentalToolsPanel,{label:(0,HC.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,Tl.jsx)(jC.__experimentalToolsPanelItem,{label:(0,HC.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Tl.jsx)(KY,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,Tl.jsx)("div",{...s})]}):(0,Tl.jsx)(El.Warning,{children:(0,HC.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var QY=a(I(),1),XY=a(y(),1);function JY(){return(0,XY.jsx)(QY.InnerBlocks.Content,{})}var{name:eQ}=zC,WCe=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]],tQ={icon:Iv,template:WCe,edit:YY,save:JY},GCe=()=>D({name:eQ,metadata:zC,settings:tQ});var wR={};J(wR,{init:()=>ZCe,metadata:()=>UC,name:()=>nQ,settings:()=>aQ});var oQ=a(L(),1);var UC={$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,background:{gradient:!0},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 kR=a(L(),1),WC=a(I(),1),u2=a(y(),1),qCe={none:"",arrow:"\u2192",chevron:"\xBB"};function rQ({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":r}}){let o=qCe[r];return(0,u2.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,WC.useBlockProps)(),children:[(0,u2.jsx)(WC.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,kR.__)("Newer comments page link"),placeholder:(0,kR.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),o&&(0,u2.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${r}`,children:o})]})}var{name:nQ}=UC,aQ={icon:Ev,edit:rQ,example:{attributes:{label:(0,oQ.__)("Newer Comments")}}},ZCe=()=>D({name:nQ,metadata:UC,settings:aQ});var CR={};J(CR,{init:()=>YCe,metadata:()=>GC,name:()=>lQ,settings:()=>cQ});var GC={$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,background:{gradient:!0},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 iQ=a(I(),1),Rs=a(y(),1),rf=({content:e,tag:t="a",extraClass:r=""})=>t==="a"?(0,Rs.jsx)(t,{className:`page-numbers ${r}`,href:"#comments-pagination-numbers-pseudo-link",onClick:o=>o.preventDefault(),children:e}):(0,Rs.jsx)(t,{className:`page-numbers ${r}`,children:e});function sQ(){return(0,Rs.jsxs)("div",{...(0,iQ.useBlockProps)(),children:[(0,Rs.jsx)(rf,{content:"1"}),(0,Rs.jsx)(rf,{content:"2"}),(0,Rs.jsx)(rf,{content:"3",tag:"span",extraClass:"current"}),(0,Rs.jsx)(rf,{content:"4"}),(0,Rs.jsx)(rf,{content:"5"}),(0,Rs.jsx)(rf,{content:"...",tag:"span",extraClass:"dots"}),(0,Rs.jsx)(rf,{content:"8"})]})}var{name:lQ}=GC,cQ={icon:Pv,edit:sQ,example:{}},YCe=()=>D({name:lQ,metadata:GC,settings:cQ});var SR={};J(SR,{init:()=>e3e,metadata:()=>$C,name:()=>hQ,settings:()=>bQ});var $C={$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,background:{gradient:!0},__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 hc=a(I(),1),Gr=a(L(),1),uQ=a(ae(),1),$d=a(F(),1),qC=a(W(),1),dQ=a(H(),1),pQ=a(l2(),1),mQ=a(qt(),1);var Ja=a(y(),1);function fQ(e){Pt(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,qC.useState)(),[f]=(0,uQ.useEntityProp)("postType",u,"title",c),g=typeof c>"u",h=(0,hc.useBlockProps)(),{threadCommentsDepth:b,threadComments:_,commentsPerPage:v,pageComments:w}=(0,dQ.useSelect)(B=>{let{getSettings:N}=B(hc.store);return N().__experimentalDiscussionSettings??{}},[]),x=ee();(0,qC.useEffect)(()=>{if(g){let N=_?Math.min(b,3)-1:0,E=w?v:3,M=parseInt(N)+parseInt(E);m(Math.min(M,3));return}let B=c;(0,pQ.default)({path:(0,mQ.addQueryArgs)("/wp/v2/comments",{post:c,_fields:"id"}),method:"HEAD",parse:!1}).then(N=>{B===c&&m(parseInt(N.headers.get("X-WP-Total")))}).catch(()=>{m(0)})},[c]);let k=(0,Ja.jsx)(hc.BlockControls,{group:"block",children:(0,Ja.jsx)(hc.HeadingLevelDropdown,{value:s,options:l,onChange:B=>r({level:B})})}),C=(0,Ja.jsx)(hc.InspectorControls,{children:(0,Ja.jsxs)($d.__experimentalToolsPanel,{label:(0,Gr.__)("Settings"),resetAll:()=>{r({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:x,children:[(0,Ja.jsx)($d.__experimentalToolsPanelItem,{label:(0,Gr.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!n,onDeselect:()=>r({showPostTitle:!0}),children:(0,Ja.jsx)($d.ToggleControl,{label:(0,Gr.__)("Show post title"),checked:n,onChange:B=>r({showPostTitle:B})})}),(0,Ja.jsx)($d.__experimentalToolsPanelItem,{label:(0,Gr.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!i,onDeselect:()=>r({showCommentsCount:!0}),children:(0,Ja.jsx)($d.ToggleControl,{label:(0,Gr.__)("Show comments count"),checked:i,onChange:B=>r({showCommentsCount:B})})})]})}),S=g?(0,Gr.__)("Post Title"):f,P;return i&&p!==void 0?n?p===1?P=(0,Gr.sprintf)((0,Gr.__)('One response to "%s"'),S):P=(0,Gr.sprintf)((0,Gr._n)('%1$s response to "%2$s"','%1$s responses to "%2$s"',p),p,S):p===1?P=(0,Gr.__)("One response"):P=(0,Gr.sprintf)((0,Gr._n)("%s response","%s responses",p),p):n?p===1?P=(0,Gr.sprintf)((0,Gr.__)('Response to "%s"'),S):P=(0,Gr.sprintf)((0,Gr.__)('Responses to "%s"'),S):p===1?P=(0,Gr.__)("Response"):P=(0,Gr.__)("Responses"),(0,Ja.jsxs)(Ja.Fragment,{children:[k,C,(0,Ja.jsx)(d,{...h,children:P})]})}var XCe={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 we(o)},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},JCe={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 we(o)},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null},gQ=[XCe,JCe];var{name:hQ}=$C,bQ={icon:ml,edit:fQ,deprecated:gQ,example:{}},e3e=()=>D({name:hQ,metadata:$C,settings:bQ});var qR={};J(qR,{init:()=>g7e,metadata:()=>m3,name:()=>SX,settings:()=>TX});var CX=a(L(),1);var KC=a(te(),1),Me=a(I(),1),YC=a(L(),1),d2=a(_e(),1);var ZC=a(Ur(),1),t3e={"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"},nr="image",Ar="video",Mu="embed-video",yQ=50;var r3e={x:.5,y:.5},$h=["image","video"];function pn({x:e,y:t}=r3e){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function Ds(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function vQ(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,ZC.isBlobURL)(e.url)&&(e.type=(0,ZC.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===nr?t=nr:t=Ar;else if(e.type&&(e.type===nr||e.type===Ar))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===Ar?{hasParallax:void 0}:{}}}function _a(e){return!e||e==="center center"||e==="center"}function ei(e){return _a(e)?"":t3e[e]}var be=a(y(),1);function bc(e){return e?{backgroundImage:`url(${e})`}:{}}function of(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function QC(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function qd(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var nf={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"}},p2={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]}},TR={...p2,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},o3e={...TR,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},qh={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}},ER={...qh,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}},n3e={...ER,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},a3e={attributes:o3e,supports:n3e,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:b,minHeightUnit:_,tagName:v,sizeSlug:w}=e,x=(0,Me.getColorClassName)("background-color",m),k=(0,Me.__experimentalGetGradientClass)(r),C=b&&_?`${b}${_}`:b,S=nr===t,P=Ar===t,B=!(u||p),N={minHeight:C||void 0},E={backgroundColor:x?void 0:i,background:n||void 0},M=l&&B?pn(l):void 0,R=f?`url(${f})`:void 0,O=pn(l),j=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),V=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${w}`]:w,"has-parallax":u,"is-repeated":p}),G=r||n;return(0,be.jsxs)(v,{...Me.useBlockProps.save({className:j,style:N}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",x,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&G&&s!==0,"has-background-gradient":G,[k]:k}),style:E}),!c&&S&&f&&(B?(0,be.jsx)("img",{className:V,alt:g,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}):(0,be.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:V,style:{backgroundPosition:O,backgroundImage:R}})),P&&f&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},i3e={attributes:TR,supports:ER,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:b,minHeightUnit:_,tagName:v}=e,w=(0,Me.getColorClassName)("background-color",m),x=(0,Me.__experimentalGetGradientClass)(r),k=b&&_?`${b}${_}`:b,C=nr===t,S=Ar===t,P=!(u||p),B={minHeight:k||void 0},N={backgroundColor:w?void 0:i,background:n||void 0},E=l&&P?pn(l):void 0,M=f?`url(${f})`:void 0,R=pn(l),O=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),j=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),V=r||n;return(0,be.jsxs)(v,{...Me.useBlockProps.save({className:O,style:B}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",w,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&V&&s!==0,"has-background-gradient":V,[x]:x}),style:N}),!c&&C&&f&&(P?(0,be.jsx)("img",{className:j,alt:g,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,be.jsx)("div",{role:"img",className:j,style:{backgroundPosition:R,backgroundImage:M}})),S&&f&&(0,be.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,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},s3e={attributes:TR,supports:ER,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:b,minHeightUnit:_,tagName:v}=e,w=(0,Me.getColorClassName)("background-color",m),x=(0,Me.__experimentalGetGradientClass)(r),k=b&&_?`${b}${_}`:b,C=nr===t,S=Ar===t,P=!(u||p),B={minHeight:k||void 0},N={backgroundColor:w?void 0:i,background:n||void 0},E=l&&P?pn(l):void 0,M=f?`url(${f})`:void 0,R=pn(l),O=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),j=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),V=r||n;return(0,be.jsxs)(v,{...Me.useBlockProps.save({className:O,style:B}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",w,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&V&&s!==0,"has-background-gradient":V,[x]:x}),style:N}),!c&&C&&f&&(P?(0,be.jsx)("img",{className:j,alt:g,src:f,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,be.jsx)("div",{role:"img",className:j,style:{backgroundPosition:R,backgroundImage:M}})),S&&f&&(0,be.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,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},l3e={attributes:p2,supports:qh,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:b,minHeightUnit:_}=e,v=(0,Me.getColorClassName)("background-color",m),w=(0,Me.__experimentalGetGradientClass)(r),x=b&&_?`${b}${_}`:b,k=nr===t,C=Ar===t,S=!(u||p),P={minHeight:x||void 0},B={backgroundColor:v?void 0:i,background:n||void 0},N=l&&S?pn(l):void 0,E=f?`url(${f})`:void 0,M=pn(l),R=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),O=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":u,"is-repeated":p}),j=r||n;return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:R,style:P}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",v,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&j&&s!==0,"has-background-gradient":j,[w]:w}),style:B}),!c&&k&&f&&(S?(0,be.jsx)("img",{className:O,alt:g,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}):(0,be.jsx)("div",{role:"img",className:O,style:{backgroundPosition:M,backgroundImage:E}})),C&&f&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},c3e={attributes:p2,supports:qh,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:b,minHeightUnit:_}=e,v=(0,Me.getColorClassName)("background-color",m),w=(0,Me.__experimentalGetGradientClass)(r),x=b&&_?`${b}${_}`:b,k=nr===t,C=Ar===t,S=!(u||p),P={...k&&!S&&!c?bc(f):{},minHeight:x||void 0},B={backgroundColor:v?void 0:i,background:n||void 0},N=l&&S?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,E=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),M=r||n;return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:E,style:P}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",v,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&M&&s!==0,"has-background-gradient":M,[w]:w}),style:B}),!c&&k&&S&&f&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),C&&f&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},u3e={attributes:p2,supports:qh,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:b}=e,_=(0,Me.getColorClassName)("background-color",p),v=(0,Me.__experimentalGetGradientClass)(r),w=b?`${h}${b}`:h,x=nr===t,k=Ar===t,C=!(c||d),S={...x&&!C?bc(m):{},minHeight:w||void 0},P={backgroundColor:_?void 0:i,background:n||void 0},B=l&&C?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,N=T({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!_a(o)},ei(o)),E=r||n;return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:N,style:S}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",_,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":m&&E&&s!==0,"has-background-gradient":E,[v]:v}),style:P}),x&&C&&m&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),k&&m&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},d3e={attributes:p2,supports:qh,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:b}=e,_=(0,Me.getColorClassName)("background-color",p),v=(0,Me.__experimentalGetGradientClass)(r),w=b?`${h}${b}`:h,x=nr===t,k=Ar===t,C=!(c||d),S={...x&&!C?bc(m):{},minHeight:w||void 0},P={backgroundColor:_?void 0:i,background:n||void 0},B=l&&C?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,N=T({"is-light":!u,"has-parallax":c,"is-repeated":d,"has-custom-content-position":!_a(o)},ei(o));return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:N,style:S}),children:[(0,be.jsx)("span",{"aria-hidden":"true",className:T(_,Ds(s),"wp-block-cover__gradient-background",v,{"has-background-dim":s!==void 0,"has-background-gradient":r||n,[v]:!m&&v}),style:P}),x&&C&&m&&(0,be.jsx)("img",{className:T("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),k&&m&&(0,be.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:B},"data-object-fit":"cover","data-object-position":B}),(0,be.jsx)("div",{...Me.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:qd},p3e={attributes:{...nf,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:qh,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,b=(0,Me.getColorClassName)("background-color",d),_=(0,Me.__experimentalGetGradientClass)(r),v=h?`${g}${h}`:g,w=nr===t,x=Ar===t,k=!(c||u),C={...w&&!k?bc(p):{},backgroundColor:b?void 0:i,background:n&&!p?n:void 0,minHeight:v||void 0},S=l&&k?`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`:void 0,P=T(of(s),b,{"has-background-dim":s!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":r||n,[_]:!p&&_,"has-custom-content-position":!_a(o)},ei(o));return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:P,style:C}),children:[p&&(r||n)&&s!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",_),style:n?{background:n}:void 0}),w&&k&&p&&(0,be.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}),x&&p&&(0,be.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,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},m3e={attributes:{...nf,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,Me.getColorClassName)("background-color",d),h=(0,Me.__experimentalGetGradientClass)(r),b=f?`${m}${f}`:m,_=nr===t,v=Ar===t,w=_?bc(p):{},x={};g||(w.backgroundColor=i),n&&!p&&(w.background=n),w.minHeight=b||void 0;let k;l&&(k=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`,_&&!c&&(w.backgroundPosition=k),v&&(x.objectPosition=k));let C=T(of(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":!_a(o)},ei(o));return(0,be.jsxs)("div",{...Me.useBlockProps.save({className:C,style:w}),children:[p&&(r||n)&&s!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",h),style:n?{background:n}:void 0}),v&&p&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:x}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},f3e={attributes:{...nf,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,Me.getColorClassName)("background-color",c),m=(0,Me.__experimentalGetGradientClass)(r),f=t===nr?bc(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(of(i),p,{"has-background-dim":i!==0,"has-parallax":l,"has-background-gradient":o,[m]:!u&&m});return(0,be.jsxs)("div",{className:g,style:f,children:[u&&(r||o)&&i!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),Ar===t&&u&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},g3e={attributes:{...nf,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,Me.getColorClassName)("background-color",c),m=(0,Me.__experimentalGetGradientClass)(r),f=t===nr?bc(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(of(i),p,{"has-background-dim":i!==0,"has-parallax":l,"has-background-gradient":o,[m]:!u&&m});return(0,be.jsxs)("div",{className:g,style:f,children:[u&&(r||o)&&i!==0&&(0,be.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__gradient-background",m),style:o?{background:o}:void 0}),Ar===t&&u&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,be.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,be.jsx)(Me.InnerBlocks.Content,{})})]})},migrate:(0,d2.compose)(QC,qd)},h3e={attributes:{...nf,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,Me.getColorClassName)("background-color",l),p=t===nr?bc(u):{};d||(p.backgroundColor=o),i&&!s&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let m=T(of(n),d,{"has-background-dim":n!==0,"has-parallax":s,[`has-${r}-content`]:r!=="center"});return(0,be.jsxs)("div",{className:m,style:p,children:[Ar===t&&u&&(0,be.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!Me.RichText.isEmpty(c)&&(0,be.jsx)(Me.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,KC.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,YC.__)("Write title\u2026")})]]}},b3e={attributes:{...nf,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,Me.getColorClassName)("background-color",l),d=bc(t);u||(d.backgroundColor=c);let p=T("wp-block-cover-image",of(n),u,{"has-background-dim":n!==0,"has-parallax":o,[`has-${s}-content`]:s!=="center"},i?`align${i}`:null);return(0,be.jsx)("div",{className:p,style:d,children:!Me.RichText.isEmpty(r)&&(0,be.jsx)(Me.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,KC.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,YC.__)("Write title\u2026")})]]}},y3e={attributes:{...nf,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=bc(t),l=T("wp-block-cover-image",of(n),{"has-background-dim":n!==0,"has-parallax":o},i?`align${i}`:null);return(0,be.jsx)("section",{className:l,style:s,children:(0,be.jsx)(Me.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,KC.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,YC.__)("Write title\u2026")})]]}},_Q=[a3e,i3e,s3e,l3e,c3e,u3e,d3e,p3e,m3e,f3e,g3e,h3e,b3e,y3e];var b2=a(ae(),1),Un=a(W(),1),df=a(F(),1),p3=a(_e(),1),oo=a(I(),1),GR=a(L(),1),Bl=a(H(),1),hX=a(te(),1),bX=a(Ur(),1),yX=a(br(),1);var NQ=a(W(),1),Yt=a(F(),1),MQ=a(_e(),1),Ko=a(I(),1),$r=a(L(),1),NR=a(H(),1),LQ=a(ae(),1),RQ=a(qt(),1);var af=a(I(),1);var{cleanEmptyObject:XC}=le(af.privateApis);function PR(e,t){return(0,af.getStyleForState)(e,t)||{}}function v3e(e,t={}){return Object.fromEntries(Object.entries(e).map(([r,o])=>[t[r]||r,o]))}function _3e(e,t){return t?Object.fromEntries(t.map(r=>[r,e[r]])):e}function Zh(e){return[e?.viewport||"default",e?.pseudo||"default"].join(":")}function x3e(e,t){return PR(e,t)?.dimensions||{}}function Oi(e={}){let{attributes:t={},style:r=t?.style,selectedState:o,hasSelectedStyleState:n,attributeKey:i,styleKey:s=i,rootValue:l}=e;return n?x3e(r,o)?.[s]:Object.hasOwn(e,"rootValue")?l:t?.[i]}function k3e(e,t,r){let o=PR(e,t);return(0,af.setStyleForState)(e,t,XC({...o,dimensions:XC({...o?.dimensions,...r})}))}function Kh({style:e,selectedState:t,hasSelectedStyleState:r,nextDimensions:o,dimensionKeyMap:n,dimensionKeys:i}){let s=_3e(o,i);return r?{style:k3e(e,t,v3e(s,n))}:s}function xQ(e,t){let r=Object.fromEntries(t.map(o=>[o,void 0]));return XC({...e,dimensions:XC({...e?.dimensions,...r})})}function w3e(e,t,r){return(0,af.setStyleForState)(e,t,xQ(PR(e,t),r))}function Yh({attributes:e={},style:t=e?.style,selectedState:r,hasSelectedStyleState:o,keys:n,defaultAttributes:i={}}){return{...o?{}:{...e,...i},style:o?w3e(t,r,n):xQ(t,n)}}var sf="full";var Qh=a(I(),1),wQ=a(br(),1),xa=a(F(),1),CQ=a(Ur(),1),Fi=a(L(),1),JC=a(W(),1),SQ=a(_e(),1),e3=a(H(),1),jn=a(y(),1),kQ=["image"];function TQ({poster:e,onChange:t}){let r=(0,JC.useRef)(),[o,n]=(0,JC.useState)(!1),i=(0,SQ.useInstanceId)(TQ,"block-library-poster-image-description"),{getSettings:s}=(0,e3.useSelect)(Qh.store),{createErrorNotice:l}=(0,e3.useDispatch)(wQ.store),c=d=>{s().mediaUpload({allowedTypes:kQ,filesList:d,onFileChange:([p])=>{if((0,CQ.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,jn.jsx)(xa.Spinner,{}):e?(0,Fi.__)("Replace"):(0,Fi.__)("Set poster image");return(0,jn.jsx)(Qh.MediaUploadCheck,{children:(0,jn.jsxs)(xa.__experimentalToolsPanelItem,{label:(0,Fi.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,jn.jsx)(xa.BaseControl.VisualLabel,{children:(0,Fi.__)("Poster image")}),(0,jn.jsx)(Qh.MediaUpload,{title:(0,Fi.__)("Select poster image"),onSelect:t,allowedTypes:kQ,render:({open:d})=>(0,jn.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,jn.jsxs)(xa.Button,{__next40pxDefaultSize:!0,onClick:d,"aria-haspopup":"dialog","aria-label":(0,Fi.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:o,accessibleWhenDisabled:!0,children:[(0,jn.jsx)("img",{src:e,alt:(0,Fi.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),o&&(0,jn.jsx)(xa.Spinner,{})]}),(0,jn.jsxs)(xa.__experimentalHStack,{className:T("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,jn.jsx)(xa.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,jn.jsx)("p",{id:i,hidden:!0,children:e?(0,Fi.sprintf)((0,Fi.__)("The current poster image url is %s."),e):(0,Fi.__)("There is no poster image currently selected.")}),!!e&&(0,jn.jsx)(xa.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),r.current.focus()},className:"block-library-poster-image__action",disabled:o,accessibleWhenDisabled:!0,children:(0,Fi.__)("Remove")})]}),(0,jn.jsx)(xa.DropZone,{onFilesDrop:c})]})})]})})}var t3=TQ;var ka=a(F(),1),r3=a(I(),1),EQ=a(ma(),1),PQ=a(W(),1),BR=a(L(),1),BQ=a(H(),1);var IQ=a(qt(),1),ti=a(y(),1),C3e=e=>{window.requestAnimationFrame(()=>{let[t]=EQ.focus.tabbable.find(e?.current);t&&t.focus()})};function IR({url:e,filename:t,itemGroupProps:r,className:o,label:n}){return(0,ti.jsx)(ka.__experimentalItemGroup,{...r,as:"span",children:(0,ti.jsxs)(ka.__experimentalHStack,{justify:"flex-start",children:[(0,ti.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,ti.jsx)(ka.FlexBlock,{children:(0,ti.jsx)(ka.__experimentalTruncate,{numberOfLines:1,className:o,children:t??n})})]})})}function Zd({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:n,onSelectURL:i,onError:s,onReset:l,isUploading:c=!1,emptyLabel:u=(0,BR.__)("Media"),useFeaturedImage:d,onToggleFeaturedImage:p}){let{getSettings:m}=(0,BQ.useSelect)(r3.store),f=h=>{let{mediaUpload:b}=m();b&&b({allowedTypes:o,filesList:h,onFileChange([_]){n(_)},onError:s,multiple:!1})},g=(0,PQ.useRef)();return(0,ti.jsxs)("div",{ref:g,className:"block-library-utils__media-control",children:[(0,ti.jsx)(r3.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:n,onSelectURL:i,onError:s,useFeaturedImage:d,onToggleFeaturedImage:p,name:(0,ti.jsx)(IR,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,IQ.getFilename)(r)||u}),renderToggle:h=>(0,ti.jsx)(ka.Button,{...h,__next40pxDefaultSize:!0,children:c?(0,ti.jsx)(ka.Spinner,{}):h.children}),onReset:l}),t&&l&&(0,ti.jsx)(ka.Button,{label:(0,BR.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:zI,onClick:()=>{l(),C3e(g)}}),(0,ti.jsx)(ka.DropZone,{onFilesDrop:f})]})}var lt=a(y(),1),{cleanEmptyObject:S3e,ResolutionTool:T3e,HTMLElementControl:E3e}=le(Ko.privateApis);function P3e({onChange:e,onUnitChange:t,unit:r="px",value:o=""}){let i=`block-cover-height-input-${(0,MQ.useInstanceId)(Yt.__experimentalUnitControl)}`,s=r==="px",[l]=(0,Ko.useSettings)("spacing.units"),c=(0,Yt.__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,NQ.useMemo)(()=>{let[m]=(0,Yt.__experimentalParseQuantityAndUnitFromRawValue)(o);return[m,r].join("")},[r,o]),p=s?yQ:0;return(0,lt.jsx)(Yt.__experimentalUnitControl,{label:(0,$r.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:d})}function DQ({attributes:e,setAttributes:t,clientId:r,setOverlayColor:o,coverRef:n,currentSettings:i,onSelectMedia:s,onUploadError:l,toggleUseFeaturedImage:c,updateDimRatio:u,onClearMedia:d,featuredImage:p,isSelected:m}){let{useFeaturedImage:f,id:g,dimRatio:h,focalPoint:b,hasParallax:_,isRepeated:v,minHeight:w,minHeightUnit:x,alt:k,tagName:C,poster:S}=e,{isVideoBackground:P,isImageBackground:B,mediaElement:N,url:E,overlayColor:M}=i,R=e.sizeSlug||sf,{gradientValue:O,setGradient:j}=(0,Ko.__experimentalUseGradient)(),{imageSizes:V,selectedStyleState:G,hasSelectedStyleState:$}=(0,NR.useSelect)(fe=>{let{getSettings:de,getSelectedBlockStyleState:re,hasSelectedBlockStyleState:Pe}=fe(Ko.store);return{imageSizes:de()?.imageSizes,selectedStyleState:re(r),hasSelectedStyleState:Pe(r)}},[r]),z=Zh(G),K=Oi({attributes:e,selectedState:G,hasSelectedStyleState:$,attributeKey:"minHeight",styleKey:"minHeight",rootValue:void 0}),[q,Y]=(0,Yt.__experimentalParseQuantityAndUnitFromRawValue)(K||""),oe=$?q:w,Z=$&&Y||x,U=Oi({attributes:e,selectedState:G,hasSelectedStyleState:$,attributeKey:"aspectRatio",rootValue:e?.style?.dimensions?.aspectRatio}),X=(0,NR.useSelect)(fe=>g&&B?fe(LQ.store).getEntityRecord("postType","attachment",g,{context:"view"}):null,[g,B]),Q=f?p:X;function ie(fe){let de=Q?.media_details?.sizes?.[fe]?.source_url;if(!de)return null;t({url:de,sizeSlug:fe})}let me=V?.filter(({slug:fe})=>Q?.media_details?.sizes?.[fe]?.source_url)?.map(({name:fe,slug:de})=>({value:de,label:fe})),xe=()=>{t({hasParallax:!_,..._?{}:{focalPoint:void 0}})},Be=()=>{t({isRepeated:!v})},se=P||B,he=fe=>{let[de,re]=N.current?[N.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];de[re]=pn(fe)},ze=(0,Ko.__experimentalUseMultipleOriginColorsAndGradients)(),qe=ze.hasColorsOrGradients&&!$,ce=(fe,de)=>{if($){t(Kh({style:e.style,selectedState:G,hasSelectedStyleState:$,nextDimensions:{minHeight:fe===void 0?void 0:`${fe}${de||Z||"px"}`,aspectRatio:void 0}}));return}t({minHeight:fe,style:S3e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})})},ge=(fe=e)=>Yh({style:fe.style,selectedState:G,hasSelectedStyleState:$,keys:["minHeight"],defaultAttributes:{minHeight:void 0,minHeightUnit:void 0}}),Qe=ee(),ye=m?(0,lt.jsx)(Ko.InspectorControls,{group:"content",children:(0,lt.jsx)(Yt.__experimentalToolsPanel,{label:(0,$r.__)("Media"),resetAll:d,dropdownMenuProps:Qe,children:(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Media"),hasValue:()=>!!E||!!f,onDeselect:d,isShownByDefault:!0,children:(0,lt.jsx)(Zd,{mediaId:g,mediaUrl:E,filename:X?.media_details?.sizes?.full?.file||X?.slug||(0,RQ.getFilename)(E),allowedTypes:$h,onSelect:s,onError:l,onReset:d,useFeaturedImage:f,onToggleFeaturedImage:c,emptyLabel:(0,$r.__)("Add media")})})})}):null;return(0,lt.jsxs)(lt.Fragment,{children:[ye,(!!E||f)&&(0,lt.jsx)(Ko.InspectorControls,{children:(0,lt.jsxs)(Yt.__experimentalToolsPanel,{label:(0,$r.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),ie(sf)},dropdownMenuProps:Qe,children:[B&&(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,lt.jsx)(Yt.ToggleControl,{label:(0,$r.__)("Fixed background"),checked:!!_,onChange:xe})}),(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>v,onDeselect:()=>t({isRepeated:!1}),children:(0,lt.jsx)(Yt.ToggleControl,{label:(0,$r.__)("Repeated background"),checked:v,onChange:Be})})]}),se&&(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>t({focalPoint:void 0}),children:(0,lt.jsx)(Yt.FocalPointPicker,{label:(0,$r.__)("Focal point"),url:E,value:b,onDragStart:he,onDrag:he,onChange:fe=>t({focalPoint:fe})})}),P&&(0,lt.jsx)(t3,{poster:S,onChange:fe=>t({poster:fe?.url})}),!f&&E&&!P&&(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{label:(0,$r.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!k,onDeselect:()=>t({alt:""}),children:(0,lt.jsx)(Yt.TextareaControl,{label:(0,$r.__)("Alternative text"),value:k,onChange:fe=>t({alt:fe}),help:(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(bl,{openInNewTab:!0,href:(0,$r.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,$r.__)("Describe the purpose of the image.")}),(0,lt.jsx)("br",{}),(0,$r.__)("Leave empty if decorative.")]})})}),!!me?.length&&(0,lt.jsx)(T3e,{value:R,onChange:ie,options:me,defaultValue:sf})]})}),qe&&(0,lt.jsxs)(Ko.InspectorControls,{group:"color",children:[(0,lt.jsx)(Ko.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:M.color,gradientValue:O,label:(0,$r.__)("Overlay"),onColorChange:o,onGradientChange:j,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:r,...ze}),(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{hasValue:()=>h===void 0?!1:h!==(E?50:100),label:(0,$r.__)("Overlay opacity"),onDeselect:()=>u(E?50:100),resetAllFilter:()=>({dimRatio:E?50:100}),isShownByDefault:!0,panelId:r,children:(0,lt.jsx)(Yt.RangeControl,{label:(0,$r.__)("Overlay opacity"),value:h,onChange:fe=>u(fe),min:0,max:100,step:10,required:!0})})]}),(0,lt.jsx)(Ko.InspectorControls,{group:"dimensions",children:(0,lt.jsx)(Yt.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!oe,label:(0,$r.__)("Minimum height"),onDeselect:()=>t(ge()),resetAllFilter:ge,isShownByDefault:!0,panelId:r,children:(0,lt.jsx)(P3e,{value:U?"":oe,unit:Z,onChange:fe=>ce(fe),onUnitChange:fe=>{if($){oe!==void 0&&ce(oe,fe);return}t({minHeightUnit:fe})}})},z)}),(0,lt.jsx)(Ko.InspectorControls,{group:"advanced",children:(0,lt.jsx)(E3e,{tagName:C,onChange:fe=>t({tagName:fe}),clientId:r,options:[{label:(0,$r.__)("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 o3=a(W(),1),Pl=a(I(),1),e1=a(L(),1),n3=a(F(),1);var MR=a(W(),1),Jh=a(F(),1),lf=a(L(),1);var AQ=a(te(),1);var B3e="core/embed",OQ=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function FQ(e){return Array.isArray(e)?OQ.filter(t=>e.includes(t)):[]}function VQ(e,t){return e?I3e(e,t)!==null:!1}function I3e(e,t=OQ){let r=(0,AQ.getBlockVariations)(B3e);if(!r)return null;let o=r.find(({patterns:n})=>BL(e,n));return!o||!t.includes(o.name)?null:o}function zQ(e){let t=e?.match(/src=["']([^"']+)["']/);if(!t)return null;let r=t[1],o=M3e(r);return e.replace(r,o)}function N3e(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 M3e(e){if(!e)return e;try{let t=new URL(e);switch(N3e(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 Xh=a(y(),1);function HQ({onSubmit:e,onClose:t,initialUrl:r="",allowedVideoProviders:o}){let[n,i]=(0,MR.useState)(r),[s,l]=(0,MR.useState)("");return(0,Xh.jsx)(Jh.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!n){l((0,lf.__)("Please enter a URL."));return}if(!VQ(n,o)){l((0,lf.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(n),t()},onCancel:t,confirmButtonText:(0,lf.__)("Add video"),size:"medium",children:(0,Xh.jsxs)(Es,{direction:"column",gap:"lg",children:[s&&(0,Xh.jsx)(Jh.Notice,{status:"error",isDismissible:!1,children:s}),(0,Xh.jsx)(Jh.TextControl,{type:"url",label:(0,lf.__)("Video URL"),value:n,onChange:u=>{i(u),l("")},placeholder:(0,lf.__)("Enter YouTube, Vimeo, or other video URL"),help:(0,lf.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var Vi=a(y(),1),{cleanEmptyObject:L3e}=le(Pl.privateApis);function jQ({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:b,backgroundType:_,allowedVideoProviders:v}=e,{hasInnerBlocks:w,url:x}=o,k=FQ(v),C=k.length>0,[S,P]=(0,o3.useState)(h),[B,N]=(0,o3.useState)(b),[E,M]=(0,o3.useState)(!1),R=b==="vh"&&h===100&&!e?.style?.dimensions?.aspectRatio,O=p==="contentOnly",j=()=>R?t(B==="vh"&&S===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:S,minHeightUnit:B}):(P(h),N(b),t({minHeight:100,minHeightUnit:"vh",style:L3e({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,Vi.jsxs)(Vi.Fragment,{children:[!O&&(0,Vi.jsxs)(Pl.BlockControls,{group:"block",children:[(0,Vi.jsx)(Pl.__experimentalBlockAlignmentMatrixControl,{label:(0,e1.__)("Change content position"),value:m,onChange:V=>t({contentPosition:V}),isDisabled:!w}),(0,Vi.jsx)(Pl.__experimentalBlockFullHeightAligmentControl,{isActive:R,onToggle:j,isDisabled:!w}),u&&(0,Vi.jsx)(n3.ToolbarButton,{ref:c,icon:pm,label:(0,e1.__)("Edit image"),onClick:l,"aria-haspopup":"dialog",disabled:d})]}),(0,Vi.jsx)(Pl.BlockControls,{group:"other",children:(0,Vi.jsx)(Pl.MediaReplaceFlow,{mediaId:f,mediaURL:x,allowedTypes:$h,onSelect:r,onToggleFeaturedImage:n,useFeaturedImage:g,name:x?(0,e1.__)("Replace"):(0,e1.__)("Add media"),onReset:i,variant:"toolbar",children:({onClose:V})=>C?(0,Vi.jsx)(n3.MenuItem,{icon:Pi,onClick:()=>{M(!0),V()},children:(0,e1.__)("Embed video from URL")}):null})}),E&&(0,Vi.jsx)(HQ,{onSubmit:V=>{s(V)},onClose:()=>M(!1),initialUrl:_===Mu?x:"",allowedVideoProviders:k})]})}var a3=a(I(),1),UQ=a(L(),1);var WQ=a(Ur(),1);var LR=a(y(),1);function RR({disableMediaButtons:e=!1,children:t,onSelectMedia:r,onError:o,style:n,toggleUseFeaturedImage:i}){let s=l=>{l.length===1&&r({url:(0,WQ.createBlobURL)(l[0])})};return(0,LR.jsx)(a3.MediaPlaceholder,{icon:(0,LR.jsx)(a3.BlockIcon,{icon:dm}),labels:{title:(0,UQ.__)("Cover")},onSelect:r,allowedTypes:$h,disableMediaButtons:e,onToggleFeaturedImage:i,onFilesPreUpload:s,onError:o,style:n,children:t})}var GQ=a(W(),1),$Q=a(I(),1);var qQ=a(y(),1),R3e={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:D3e}=le($Q.privateApis);function DR({className:e,height:t,minHeight:r,onResize:o,onResizeStart:n,onResizeStop:i,showHandle:s,size:l,width:c,...u}){let[d,p]=(0,GQ.useState)(!1),m={className:T(e,{"is-resizing":d}),enable:R3e,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,qQ.jsx)(D3e,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:m,...u})}for(eX={grad:.9,turn:360,rad:360/(2*Math.PI)},yc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},mn=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},ri=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},jR=function(e){return(e=isFinite(e)?e%360:0)<0?e+360:e},l3=function(e,t){return t===void 0&&(t=0),mn(e,t)%360},FR=function(e){return{r:ri(e.r,0,255),g:ri(e.g,0,255),b:ri(e.b,0,255),a:ri(e.a)}},s3=function(e){return{r:mn(e.r),g:mn(e.g),b:mn(e.b),a:mn(e.a,3)}},tX=/^#([0-9a-f]{3,8})$/i,cf=function(e,t){var r=e.charCodeAt(t);return(15&r)+9*(r>>6)},f2=function(e,t){return cf(e,t)<<4|cf(e,t+1)},VR=[],m2=0;m2<256;m2++)VR.push((m2<16?"0":"")+m2.toString(16));var eX,yc,mn,ri,jR,l3,FR,s3,tX,cf,f2,VR,m2,i3=function(e){return VR[ri(e,0,255)]},rX=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}},oX=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}},ZQ=function(e){return{h:jR(e.h),s:ri(e.s,0,100),l:ri(e.l,0,100),a:ri(e.a)}},KQ=function(e){return{h:l3(e.h),s:mn(e.s),l:mn(e.l),a:mn(e.a,3)}},YQ=function(e){return oX((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},t1=function(e){return{h:(t=rX(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},A3e=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*,\s*([+-]?(?:\d*\.\d+|\d+))%\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,O3e=/^hsla?\(\s*([+-]?(?:\d*\.\d+|\d+))(deg|rad|grad|turn)?\s+([+-]?(?:\d*\.\d+|\d+))%\s+([+-]?(?:\d*\.\d+|\d+))%\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,F3e=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:,\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,V3e=/^rgba?\(\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s+([+-]?(?:\d*\.\d+|\d+))(%)?\s*(?:\/\s*([+-]?(?:\d*\.\d+|\d+))(%)?\s*)?\)$/i,zR={string:[[function(e){if(!tX.test(e))return null;var t=e.length;return t<=5?{r:17*cf(e,1),g:17*cf(e,2),b:17*cf(e,3),a:t===5?mn(17*cf(e,4)/255,2):1}:t===7||t===9?{r:f2(e,1),g:f2(e,3),b:f2(e,5),a:t===9?mn(f2(e,7)/255,2):1}:null},"hex"],[function(e){var t=F3e.exec(e)||V3e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:FR({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=A3e.exec(e)||O3e.exec(e);if(!t)return null;var r,o,n=ZQ({h:(r=t[1],o=t[2],o===void 0&&(o="deg"),Number(r)*(eX[o]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return YQ(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 yc(t)&&yc(r)&&yc(o)?FR({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(!yc(t)||!yc(r)||!yc(o))return null;var s=ZQ({h:Number(t),s:Number(r),l:Number(o),a:Number(i)});return YQ(s)},"hsl"],[function(e){var t=e.h,r=e.s,o=e.v,n=e.a,i=n===void 0?1:n;if(!yc(t)||!yc(r)||!yc(o))return null;var s=(function(l){return{h:jR(l.h),s:ri(l.s,0,100),v:ri(l.v,0,100),a:ri(l.a)}})({h:Number(t),s:Number(r),v:Number(o),a:Number(i)});return oX(s)},"hsv"]]},QQ=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]},z3e=function(e){return typeof e=="string"?QQ(e.trim(),zR.string):typeof e=="object"&&e!==null?QQ(e,zR.object):[null,void 0]};var AR=function(e,t){var r=t1(e);return{h:r.h,s:ri(r.s+100*t,0,100),l:r.l,a:r.a}},OR=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},XQ=function(e,t){var r=t1(e);return{h:r.h,s:r.s,l:ri(r.l+100*t,0,100),a:r.a}},HR=(function(){function e(t){this.parsed=z3e(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 mn(OR(this.rgba),2)},e.prototype.isDark=function(){return OR(this.rgba)<.5},e.prototype.isLight=function(){return OR(this.rgba)>=.5},e.prototype.toHex=function(){return t=s3(this.rgba),r=t.r,o=t.g,n=t.b,s=(i=t.a)<1?i3(mn(255*i)):"","#"+i3(r)+i3(o)+i3(n)+s;var t,r,o,n,i,s},e.prototype.toRgb=function(){return s3(this.rgba)},e.prototype.toRgbString=function(){return t=s3(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 KQ(t1(this.rgba))},e.prototype.toHslString=function(){return t=KQ(t1(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=rX(this.rgba),{h:l3(t.h),s:mn(t.s),v:mn(t.v),a:mn(t.a,3)};var t},e.prototype.invert=function(){return yr({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),yr(AR(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),yr(AR(this.rgba,-t))},e.prototype.grayscale=function(){return yr(AR(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),yr(XQ(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),yr(XQ(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(t1(this.rgba).h+t)},e.prototype.alpha=function(t){return typeof t=="number"?yr({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):mn(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=t1(this.rgba);return typeof t=="number"?yr({h:t,s:r.s,l:r.l,a:r.a}):l3(r.h)},e.prototype.isEqual=function(t){return this.toHex()===yr(t).toHex()},e})(),yr=function(e){return e instanceof HR?e:new HR(e)},JQ=[],nX=function(e){e.forEach(function(t){JQ.indexOf(t)<0&&(t(HR,zR),JQ.push(t))})};var aX=function(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 H3e(e){var t=e.toString(16);return t.length===1?"0"+t:t}function iX(e){return"#"+e.map(H3e).join("")}function j3e(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function U3e(e){return e?W3e(e)?e:[e]:[]}function W3e(e){return Array.isArray(e[0])}function WR(e,t,r){for(var o=0;o<r.length;o++)if(G3e(e,t,r[o]))return!0;return!1}function G3e(e,t,r){switch(r.length){case 3:if($3e(e,t,r))return!0;break;case 4:if(q3e(e,t,r))return!0;break;case 5:if(Z3e(e,t,r))return!0;break;default:return!1}}function $3e(e,t,r){return e[t+3]!==255||e[t]===r[0]&&e[t+1]===r[1]&&e[t+2]===r[2]}function q3e(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 c3(e,t,r){return e>=t-r&&e<=t+r}function Z3e(e,t,r){var o=r[0],n=r[1],i=r[2],s=r[3],l=r[4],c=e[t+3],u=c3(c,s,l);return s?!!(!c&&u||c3(e[t],o,l)&&c3(e[t+1],n,l)&&c3(e[t+2],i,l)&&u):u}function K3e(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&&WR(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],b=l[2],_=l[3],v=l[4];return _?[Math.round(g/_),Math.round(h/_),Math.round(b/_),Math.round(_/v)]:r.defaultColor}function Y3e(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&&WR(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 Q3e(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&&WR(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 sX(e){return h2(e,"defaultColor",[0,0,0,0])}function h2(e,t,r){return e[t]===void 0?r:e[t]}var lX=10,UR=100;function X3e(e){return e.search(/\.svg(\?|$)/i)!==-1}function J3e(e){if(uX(e)){var t=e.naturalWidth,r=e.naturalHeight;return!e.naturalWidth&&X3e(e.src)&&(t=r=UR),{width:t,height:r}}return t7e(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function cX(e){return r7e(e)?"canvas":e7e(e)?"offscreencanvas":o7e(e)?"imagebitmap":e.src}function uX(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function e7e(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function t7e(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function r7e(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function o7e(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function n7e(e,t){var r=h2(t,"left",0),o=h2(t,"top",0),n=h2(t,"width",e.width),i=h2(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=UR,l=Math.round(s/c)):(c=i/n,l=UR,s=Math.round(l/c)),(s>n||l>i||s<lX||l<lX)&&(s=n,l=i),{srcLeft:r,srcTop:o,srcWidth:n,srcHeight:i,destWidth:s,destHeight:l}}var a7e=typeof window>"u";function i7e(){return a7e?new OffscreenCanvas(1,1):document.createElement("canvas")}var dX="FastAverageColor: ";function u3(e,t,r){t||(console.error(dX+e),r&&console.error(r))}function g2(e){return Error(dX+e)}var pX=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,r){if(!t)return Promise.reject(g2("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(g2("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(uX(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=sX(r);if(!t)return u3("call .getColor(null) without resource",r.silent),this.prepareResult(o);var n=J3e(t),i=n7e(n,r);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return u3('incorrect sizes for resource "'.concat(cX(t),'"'),r.silent),this.prepareResult(o);if(this.canvas||(this.canvas=i7e()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return u3("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){u3("security error (CORS) for resource ".concat(cX(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=sX(r);if(n<o)return i;var s=n-n%o,l=(r.step||1)*o,c;switch(r.algorithm||"sqrt"){case"simple":c=Y3e;break;case"sqrt":c=Q3e;break;case"dominant":c=K3e;break;default:throw g2("".concat(r.algorithm," is unknown algorithm"))}return c(t,s,{defaultColor:i,ignoredColor:U3e(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=j3e(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+r.join(",")+")",rgba:"rgba("+o.join(",")+")",hex:iX(r),hexa:iX(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(g2('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(g2('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 fX=a(Kd(),1);nX([aX]);var r1="#FFF",gX="#000";function s7e(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 d3(){return d3.fastAverageColor||(d3.fastAverageColor=new pX),d3.fastAverageColor}var uf=Bh(async e=>{if(!e)return r1;let{r:t,g:r,b:o,a:n}=yr(r1).toRgb();try{let i=(0,fX.applyFilters)("media.crossOrigin",void 0,e);return(await d3().getColorAsync(e,{defaultColor:[t,r,o,n*255],silent:!0,crossOrigin:i})).hex}catch{return r1}});function Yd(e,t,r){if(t===r||e===100)return yr(t).isDark();let o=yr(t).alpha(e/100).toRgb(),n=yr(r).toRgb(),i=s7e(o,n);return yr(i).isDark()}var ar=a(y(),1),{openMediaEditorModalKey:l7e}=le(oo.privateApis);function c7e(e){return[["core/paragraph",{style:{typography:{textAlign:"center"}},placeholder:(0,GR.__)("Write title\u2026"),...e}]]}var u7e=(e,t)=>!e&&(0,bX.isBlobURL)(t);function d7e({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:b,isDark:_,isRepeated:v,minHeight:w,minHeightUnit:x,alt:k,allowedBlocks:C,templateLock:S,tagName:P="div",isUserOverlayColor:B,sizeSlug:N,poster:E}=e,[M]=(0,b2.useEntityProp)("postType",c,"featured_media",l),{getSettings:R}=(0,Bl.useSelect)(oo.store),O=(0,Bl.useSelect)(pe=>pe(oo.store).getSettings()[l7e],[]),{__unstableMarkNextChangeAsNotPersistent:j,replaceInnerBlocks:V}=(0,Bl.useDispatch)(oo.store),G=(0,Bl.useRegistry)(),$=(0,Un.useRef)({attributes:e,overlayColor:o});(0,Un.useLayoutEffect)(()=>{$.current={attributes:e,overlayColor:o}});let{media:z}=(0,Bl.useSelect)(pe=>({media:M&&f?pe(b2.store).getEntityRecord("postType","attachment",M,{context:"view"}):void 0}),[M,f]),K=z?.media_details?.sizes?.[N]?.source_url??z?.source_url;(0,Un.useEffect)(()=>{(async()=>{if(!f)return;let pe=await uf(K),{attributes:ve,overlayColor:Ye}=$.current,dt=Ye.color;ve.isUserOverlayColor||(dt=pe,j(),i(dt));let $t=Yd(ve.dimRatio,dt,pe);j(),n({isDark:$t,isUserOverlayColor:ve.isUserOverlayColor||!1})})()},[K,j,n,i,f]);let q=f?K:p?.replaceAll("&amp;","&"),Y=f?nr:m,{createErrorNotice:oe}=(0,Bl.useDispatch)(yX.store),{gradientClass:Z,gradientValue:U}=(0,oo.__experimentalUseGradient)(),X=()=>{let{getBlocks:pe,isBlockSelected:ve,getSelectedBlocksInitialCaretPosition:Ye}=G.select(oo.store);if(pe(t).length>0)return;let[dt]=le(G.select(oo.store)).getBlockSettings(t,"typography.fontSizes"),$t=dt?.length>0;V(t,(0,hX.createBlocksFromInnerBlocksTemplate)(c7e({fontSize:$t?"large":void 0})),ve(t),Ye())},Q=async pe=>{let ve=vQ(pe),Ye=[pe?.type,pe?.media_type].includes(nr),dt=await uf(Ye?pe?.url:void 0),{attributes:$t,overlayColor:nt}=$.current,Ir=nt.color;$t.isUserOverlayColor||(Ir=dt,i(Ir),j());let Ua=$t.url===void 0&&$t.dimRatio===100?50:$t.dimRatio,Ci=Yd(Ua,Ir,dt);if(Y===nr&&ve?.id){let{imageDefaultSize:ll}=R();N&&(pe?.sizes?.[N]||pe?.media_details?.sizes?.[N])?(ve.sizeSlug=N,ve.url=pe?.sizes?.[N]?.url||pe?.media_details?.sizes?.[N]?.source_url):pe?.sizes?.[ll]||pe?.media_details?.sizes?.[ll]?(ve.sizeSlug=ll,ve.url=pe?.sizes?.[ll]?.url||pe?.media_details?.sizes?.[ll]?.source_url):ve.sizeSlug=sf}G.batch(()=>{n({...ve,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:Ua,isDark:Ci,isUserOverlayColor:$t.isUserOverlayColor||!1}),X()})},ie=()=>{let pe=o.color;!B&&o.color&&(pe=gX,i(void 0),j());let ve=Yd(g,pe,r1);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:ve})},me=async pe=>{let ve=await uf(q),{attributes:Ye}=$.current,dt=Yd(Ye.dimRatio,pe,ve);i(pe),j(),G.batch(()=>{n({isUserOverlayColor:!0,isDark:dt}),pe&&X()})},xe=async pe=>{let ve=await uf(q),{overlayColor:Ye}=$.current,dt=Yd(pe,Ye.color,ve);n({dimRatio:pe,isDark:dt})},Be=pe=>{oe(pe,{type:"snackbar"})},se=pe=>{n({url:pe,backgroundType:Mu,dimRatio:p===void 0&&g===100?50:g,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:he,isFetchingEmbed:ze}=(0,Bl.useSelect)(pe=>{if(Y!==Mu||!q)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:ve,isRequestingEmbedPreview:Ye}=pe(b2.store);return{embedPreview:ve(q),isFetchingEmbed:Ye(q)}},[q,Y]),qe=(0,Un.useMemo)(()=>Y!==Mu||!he?.html?null:zQ(he.html),[he,Y]),[ce,ge]=(0,Un.useState)(!1),Qe=u7e(d,q),ye=nr===Y,fe=Ar===Y,de=Mu===Y,re=(0,oo.useBlockEditingMode)(),Pe=re==="default",[Se,{height:rr,width:Ft}]=(0,p3.useResizeObserver)(),gr=(0,Un.useMemo)(()=>({height:x==="px"&&w?w:"auto",width:"auto"}),[w,x]),Wo=w&&x?`${w}${x}`:w,Nn=!(b||v),So={minHeight:Wo||void 0},sa=q?`url(${q})`:void 0,la=pn(h),Mn={backgroundColor:o.color},ca={objectPosition:h&&Nn?pn(h):void 0},md=!!(q||o.color||U),pu=(0,Bl.useSelect)(pe=>pe(oo.store).getBlock(t).innerBlocks.length>0,[t]),za=(0,Un.useRef)(),Ha=(0,oo.useBlockProps)({ref:za}),il=(0,oo.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{allowedBlocks:C,templateLock:S,dropZoneElement:za.current}),ja=(0,Un.useRef)(),sl=(0,Un.useRef)(),bs={isVideoBackground:fe,isImageBackground:ye,mediaElement:ja,hasInnerBlocks:pu,url:q,isImgElement:Nn,overlayColor:o},fd=(0,Un.useCallback)(()=>{!d||!O||O({id:d,onClose:()=>{sl.current?.focus()},onUpdate:async({id:pe,url:ve})=>{if(typeof pe!="number")return;pe!==d&&ve&&ge(!0);let Ye={id:pe,backgroundType:nr,...ve?{url:ve}:{},...pe!==d?{sizeSlug:sf}:{}};if(ve){let nt=await uf(ve),{attributes:Ir,overlayColor:Ua}=$.current,Ci=Ua.color;Ir.isUserOverlayColor||(Ci=nt,i(Ci),j()),Ye.isDark=Yd(Ir.dimRatio,Ci,nt),Ye.isUserOverlayColor=Ir.isUserOverlayColor||!1}n(Ye);let{hasParallax:dt,isRepeated:$t}=$.current.attributes;(dt||$t)&&ge(!1)}})},[d,O,n,i,j]),ua=Pe&&!f&&ye&&!!d&&!!q&&!Qe&&!!O,Ln=async()=>{let pe=!f,ve=pe?await uf(K):r1,{attributes:Ye,overlayColor:dt}=$.current,$t=Ye.isUserOverlayColor?dt.color:ve;Ye.isUserOverlayColor||(i(pe?$t:void 0),j());let nt=Ye.dimRatio===100?50:Ye.dimRatio,Ir=Yd(nt,$t,ve);G.batch(()=>{n({id:void 0,url:void 0,useFeaturedImage:pe,dimRatio:nt,backgroundType:f?nr:void 0,isDark:Ir}),pe&&X()})},wi=(0,ar.jsx)(jQ,{attributes:e,setAttributes:n,onSelectMedia:Q,onSelectEmbedUrl:se,currentSettings:bs,toggleUseFeaturedImage:Ln,onClearMedia:ie,blockEditingMode:re,onEditMedia:fd,editMediaButtonRef:sl,showEditMediaButton:ua,isEditMediaDisabled:ce}),Rn=(0,ar.jsx)(DQ,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:me,coverRef:za,currentSettings:bs,onSelectMedia:Q,onUploadError:Be,toggleUseFeaturedImage:Ln,updateDimRatio:xe,onClearMedia:ie,featuredImage:z,isSelected:r}),ne={className:"block-library-cover__resize-container",clientId:t,height:rr,minHeight:Wo,onResizeStart:()=>{n({minHeightUnit:"px"}),s(!1)},onResize:pe=>{n({minHeight:pe})},onResizeStop:pe=>{s(!0),n({minHeight:pe})},showHandle:!e.style?.dimensions?.aspectRatio,size:gr,width:Ft};if(!f&&!pu&&!md)return(0,ar.jsxs)(ar.Fragment,{children:[wi,Rn,Pe&&r&&(0,ar.jsx)(DR,{...ne}),(0,ar.jsxs)(P,{...Ha,className:T("is-placeholder",Ha.className),style:{...Ha.style,minHeight:Wo||void 0},children:[Se,(0,ar.jsx)(RR,{onSelectMedia:Q,onError:Be,toggleUseFeaturedImage:Ln,children:(0,ar.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,ar.jsx)(oo.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:me,clearable:!1,presentation:"toggle-buttons","aria-label":(0,GR.__)("Overlay color")})})})]})]});let He=T({"is-dark-theme":_,"is-light":!_,"is-transient":Qe||ce,"has-parallax":b,"is-repeated":v,"has-custom-content-position":!_a(u)},ei(u)),bt=q||!f||f&&!q;return(0,ar.jsxs)(ar.Fragment,{children:[wi,Rn,(0,ar.jsxs)(P,{...Ha,className:T(He,Ha.className),style:{...So,...Ha.style},"data-url":q,children:[Se,!q&&f&&(0,ar.jsx)(df.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),q&&ye&&(Nn?(0,ar.jsx)("img",{ref:ja,className:"wp-block-cover__image-background",alt:k,src:q,style:ca,onLoad:()=>ge(!1),onError:()=>ge(!1)}):(0,ar.jsx)("div",{ref:ja,role:k?"img":void 0,"aria-label":k||void 0,className:T(He,"wp-block-cover__image-background"),style:{backgroundImage:sa,backgroundPosition:la}})),q&&fe&&(0,ar.jsx)("video",{ref:ja,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:q,poster:E,style:ca}),de&&qe&&(0,ar.jsx)("div",{ref:ja,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:ca,children:(0,ar.jsx)(df.SandBox,{allowSameOrigin:!0,html:qe,title:"Background video",styles:["iframe{position:fixed;top:0;left:0;width:100%;height:100%;}"]})}),de&&!qe&&ze&&(0,ar.jsx)(df.Spinner,{}),bt&&(0,ar.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",Ds(g),{[o.class]:o.class,"has-background-dim":g!==void 0,"wp-block-cover__gradient-background":q&&U&&g!==0,"has-background-gradient":U,[Z]:Z}),style:{backgroundImage:U,...Mn}}),(Qe||ce)&&(0,ar.jsx)(df.Spinner,{}),(0,ar.jsx)(RR,{disableMediaButtons:!0,onSelectMedia:Q,onError:Be,toggleUseFeaturedImage:Ln}),(0,ar.jsx)("div",{...il})]}),Pe&&r&&(0,ar.jsx)(DR,{...ne})]})}var vX=(0,p3.compose)([(0,oo.withColors)({overlayColor:"background-color"})])(d7e);var m3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},allowedVideoProviders:{type:"array",default:["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"]}},usesContext:["postId","postType"],supports:{__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 Qd=a(I(),1);var vc=a(y(),1);function _X({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:b,minHeightUnit:_,tagName:v,sizeSlug:w,poster:x}=e,k=(0,Qd.getColorClassName)("background-color",m),C=(0,Qd.__experimentalGetGradientClass)(r),S=b&&_?`${b}${_}`:b,P=nr===t,B=Ar===t,N=Mu===t,E=!(u||p),M={minHeight:S||void 0},R={backgroundColor:k?void 0:i,background:n||void 0},O=l&&E?pn(l):void 0,j=f?`url(${f})`:void 0,V=pn(l),G=T({"is-light":!d,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!_a(o)},ei(o)),$=T("wp-block-cover__image-background",h?`wp-image-${h}`:null,{[`size-${w}`]:w,"has-parallax":u,"is-repeated":p}),z=r||n;return(0,vc.jsxs)(v,{...Qd.useBlockProps.save({className:G,style:M}),children:[!c&&P&&f&&(E?(0,vc.jsx)("img",{className:$,alt:g,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}):(0,vc.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:$,style:{backgroundPosition:V,backgroundImage:j}})),B&&f&&(0,vc.jsx)("video",{className:T("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:x,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}),N&&f&&(0,vc.jsx)("figure",{className:T("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,vc.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,vc.jsx)("span",{"aria-hidden":"true",className:T("wp-block-cover__background",k,Ds(s),{"has-background-dim":s!==void 0,"wp-block-cover__gradient-background":f&&z&&s!==0,"has-background-gradient":z,[C]:C}),style:R}),(0,vc.jsx)("div",{...Qd.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var zi=a(te(),1),xX=a(I(),1);var{cleanEmptyObject:f3}=le(xX.privateApis),m7e={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:r,align:o,id:n,anchor:i,style:s})=>(0,zi.createBlock)("core/cover",{dimRatio:50,url:t,alt:r,align:o,id:n,anchor:i,style:{color:{duotone:s?.color?.duotone}}},[(0,zi.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,zi.createBlock)("core/cover",{dimRatio:50,url:t,align:r,id:o,backgroundType:Ar,anchor:n},[(0,zi.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,zi.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:f3({...e?.style,color:s?.color?{...s?.color,background:void 0,gradient:void 0}:void 0})};return(0,zi.createBlock)("core/cover",c,[(0,zi.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===nr:!r&&!o&&!n&&!i,transform:({title:e,url:t,alt:r,align:o,id:n,anchor:i,style:s})=>(0,zi.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===Ar:!r&&!o&&!n&&!i,transform:({title:e,url:t,align:r,id:o,anchor:n})=>(0,zi.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:f3({...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=f3(t[0].attributes||{});return o?.backgroundColor||o?.gradient||o?.style?.color?.background||o?.style?.color?.gradient?(0,zi.createBlock)("core/group",o,t[0]?.innerBlocks):(0,zi.createBlock)("core/group",{...r,...o,style:f3({...o?.style,color:r?.style?.color||o?.style?.color?{...r?.style?.color,...o?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,zi.createBlock)("core/group",{...e,...r},t)}}]},kX=m7e;var $R=a(L(),1);var f7e=[{name:"cover",title:(0,$R.__)("Cover"),description:(0,$R.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:dm}],wX=f7e;var{name:SX}=m3,TX={icon:dm,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,CX.__)("Snow Patrol")}</strong>`,style:{typography:{textAlign:"center"}}}}]},transforms:kX,save:_X,edit:vX,deprecated:_Q,variations:wX},g7e=()=>D({name:SX,metadata:m3,settings:TX});var ZR={};J(ZR,{init:()=>v7e,metadata:()=>g3,name:()=>LX,settings:()=>RX});var ep=a(L(),1);var g3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,shadow:!0,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 Il=a(I(),1),Jd=a(F(),1),Xd=a(L(),1),EX=a(W(),1),PX=a(H(),1),BX=a(fc(),1);var oi=a(y(),1);function b7e({attributes:e,setAttributes:t,clientId:r}){let{name:o,showContent:n,summary:i,allowedBlocks:s,placeholder:l}=e,c=(0,Il.useBlockProps)(),u=(0,Il.useInnerBlocksProps)(c,{__experimentalCaptureToolbars:!0,allowedBlocks:s}),[d,p]=(0,EX.useState)(n),m=ee(),f=(0,PX.useSelect)(b=>b(Il.store).hasSelectedInnerBlock(r,!0),[r]),g=b=>{b.key==="Enter"&&!b.shiftKey&&(p(_=>!_),b.preventDefault())},h=b=>{b.key===" "&&b.preventDefault()};return(0,oi.jsxs)(oi.Fragment,{children:[(0,oi.jsx)(Il.InspectorControls,{children:(0,oi.jsx)(Jd.__experimentalToolsPanel,{label:(0,Xd.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:m,children:(0,oi.jsx)(Jd.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Xd.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,oi.jsx)(Jd.ToggleControl,{label:(0,Xd.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,oi.jsx)(Il.InspectorControls,{group:"advanced",children:(0,oi.jsx)(Jd.TextControl,{label:(0,Xd.__)("Name attribute"),value:o||"",onChange:b=>t({name:b}),help:(0,Xd.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,oi.jsxs)("details",{...u,open:d||f,onToggle:b=>p(b.target.open),name:o||"",children:[(0,oi.jsx)("summary",{onKeyDown:(0,BX.withIgnoreIMEEvents)(g),onKeyUp:h,children:(0,oi.jsx)(Il.RichText,{identifier:"summary","aria-label":(0,Xd.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:l||(0,Xd.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:b=>t({summary:b})})}),u.children]})]})}var IX=b7e;var n1=a(I(),1),o1=a(y(),1);function NX({attributes:e}){let{name:t,showContent:r}=e,o=e.summary?e.summary:"Details",n=n1.useBlockProps.save();return(0,o1.jsxs)("details",{...n,name:t||void 0,open:r,children:[(0,o1.jsx)("summary",{children:(0,o1.jsx)(n1.RichText.Content,{value:o})}),(0,o1.jsx)(n1.InnerBlocks.Content,{})]})}var h3=a(te(),1),MX={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,h3.createBlock)("core/details",{},e.map(t=>(0,h3.cloneSanitizedBlock)(t)))}}]};var{name:LX}=g3,y7e=[["core/paragraph",{placeholder:(0,ep.__)("Type / to add a hidden block")}]],RX={icon:tB,template:y7e,example:{attributes:{summary:(0,ep.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ep.__)("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,ep.sprintf)((0,ep.__)("Details. %s"),r):(0,ep.__)("Details. Empty.")},save:NX,edit:IX,transforms:MX},v7e=()=>D({name:LX,metadata:g3,settings:RX});var JR={};J(JR,{init:()=>B7e,metadata:()=>pc,name:()=>hJ,settings:()=>bJ});var mf=a(L(),1),l1=a(W(),1),y2=a(H(),1),x3=a(I(),1),XR=a(ae(),1);var pf=a(L(),1),_c=a(F(),1),b3=a(I(),1);var As=a(y(),1);function _7e(e){return e?(0,pf.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,pf.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var x7e=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:r,allowResponsive:o,toggleResponsive:n,switchBackToURLInput:i})=>{let s=ee();return(0,As.jsxs)(As.Fragment,{children:[(0,As.jsx)(b3.BlockControls,{children:(0,As.jsx)(_c.ToolbarGroup,{children:t&&(0,As.jsx)(_c.ToolbarButton,{className:"components-toolbar__control",label:(0,pf.__)("Edit URL"),icon:vm,onClick:i})})}),r&&e&&(0,As.jsx)(b3.InspectorControls,{children:(0,As.jsx)(_c.__experimentalToolsPanel,{label:(0,pf.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:s,children:(0,As.jsx)(_c.__experimentalToolsPanelItem,{label:(0,pf.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{n(!o)},children:(0,As.jsx)(_c.ToggleControl,{label:(0,pf.__)("Resize for smaller devices"),checked:o,help:_7e,onChange:n})})})})]})},DX=x7e;var Ie=a(F(),1),Le=a(y(),1),Nl=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})}),y3=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),KR=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),a1=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)(Ie.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"})}),AX={foreground:"#000000",src:(0,Le.jsx)(Ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},OX={foreground:"#ff0000",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},FX={foreground:"#3b5998",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},VX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.G,{children:(0,Le.jsx)(Ie.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"})})}),zX={foreground:"#0073AA",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.G,{children:(0,Le.jsx)(Ie.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"})})})},HX={foreground:"#1db954",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},jX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})}),UX={foreground:"#1ab7ea",src:(0,Le.jsx)(Ie.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.G,{children:(0,Le.jsx)(Ie.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"})})})},WX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})}),GX={foreground:"#35465c",src:(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})})},$X=(0,Le.jsxs)(Ie.SVG,{viewBox:"0 0 24 24",children:[(0,Le.jsx)(Ie.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,Le.jsx)(Ie.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,Le.jsx)(Ie.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"})]}),qX=(0,Le.jsxs)(Ie.SVG,{viewBox:"0 0 24 24",children:[(0,Le.jsx)(Ie.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,Le.jsx)(Ie.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,Le.jsx)(Ie.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,Le.jsx)(Ie.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,Le.jsx)(Ie.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,Le.jsx)(Ie.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),ZX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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"})}),KX=(0,Le.jsx)(Ie.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,Le.jsx)(Ie.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"})}),YX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 44 44",children:(0,Le.jsx)(Ie.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"})}),QX={foreground:"#f43e37",src:(0,Le.jsxs)(Ie.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Le.jsx)(Ie.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,Le.jsx)(Ie.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"})]})},XX=(0,Le.jsx)(Ie.SVG,{viewBox:"0 0 24 24",children:(0,Le.jsx)(Ie.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 JX=a(F(),1),YR=a(y(),1),k7e=()=>(0,YR.jsx)("div",{className:"wp-block-embed is-loading",children:(0,YR.jsx)(JX.Spinner,{})}),eJ=k7e;var xc=a(L(),1),tp=a(F(),1),tJ=a(I(),1);var ni=a(y(),1);function rJ({icon:e,label:t,value:r,onSubmit:o,onChange:n,cannotEmbed:i,fallback:s,tryAgain:l}){return(0,ni.jsxs)(tp.Placeholder,{icon:(0,ni.jsx)(tJ.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,xc.__)("Paste a link to the content you want to display on your site."),children:[(0,ni.jsxs)("form",{onSubmit:o,children:[(0,ni.jsx)(tp.__experimentalInputControl,{type:"url",value:r||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,xc.__)("Enter URL to embed here\u2026"),onChange:n}),(0,ni.jsx)(tp.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,xc._x)("Embed","button label")})]}),(0,ni.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,ni.jsx)(bl,{openInNewTab:!0,href:(0,xc.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,xc.__)("Learn more about embeds")})}),i&&(0,ni.jsxs)(Es,{direction:"column",gap:"md",className:"components-placeholder__error",children:[(0,ni.jsx)("div",{className:"components-placeholder__instructions",children:(0,xc.__)("Sorry, this content could not be embedded.")}),(0,ni.jsxs)(Es,{direction:"row",gap:"md",justify:"flex-start",children:[(0,ni.jsx)(tp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,xc._x)("Try again","button label")}),s&&(0,ni.jsx)(tp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,xc._x)("Convert to link","button label")})]})]})]})}var s1=a(L(),1),_3=a(F(),1),nJ=a(I(),1),aJ=a(W(),1),iJ=a(qt(),1);var v3=a(_e(),1),i1=a(W(),1),QR=a(y(),1),w7e={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function oJ({html:e}){let t=(0,i1.useRef)(),r=(0,i1.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[w7e[s]||s]=l)}),i},[e]);return(0,i1.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,QR.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,QR.jsx)("iframe",{ref:(0,v3.useMergeRefs)([t,(0,v3.useFocusableIframe)()]),title:r.title,...r})})}var ai=a(y(),1);function sJ({preview:e,previewable:t,url:r,type:o,isSelected:n,className:i,icon:s,label:l}){let[c,u]=(0,aJ.useState)(!1);!n&&c&&u(!1);let d=()=>{u(!0)},{scripts:p}=e,m=o==="photo"?Tq(e):e.html,f=(0,iJ.getAuthority)(r),g=(0,s1.sprintf)((0,s1.__)("Embedded content from %s"),f),h=T(o,i,"wp-block-embed__wrapper");return(0,ai.jsx)(ai.Fragment,{children:t?o==="wp-embed"?(0,ai.jsx)(oJ,{html:m}):(0,ai.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,ai.jsx)(_3.SandBox,{allowSameOrigin:!0,html:m,scripts:p,title:g,type:h,onFocus:d}),!c&&(0,ai.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d})]}):(0,ai.jsxs)(_3.Placeholder,{icon:(0,ai.jsx)(nJ.BlockIcon,{icon:s,showColors:!0}),label:l,children:[(0,ai.jsx)("p",{className:"components-placeholder__error",children:(0,ai.jsx)("a",{href:r,children:r})}),(0,ai.jsx)("p",{className:"components-placeholder__error",children:(0,s1.sprintf)((0,s1.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Hi=a(y(),1),C7e=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,mf._x)("Embed","block title"),icon:Nl},{icon:m,title:f}=Cq(t)||p,[g,h]=(0,l1.useState)(n),[b,_]=(0,l1.useState)(!1),{invalidateResolution:v}=(0,y2.useDispatch)(XR.store),{__unstableMarkNextChangeAsNotPersistent:w}=(0,y2.useDispatch)(x3.store),{preview:x,fetching:k,themeSupportsResponsive:C,cannotEmbed:S,hasResolved:P}=(0,y2.useSelect)(z=>{let{getEmbedPreview:K,isPreviewEmbedFallback:q,isRequestingEmbedPreview:Y,getThemeSupports:oe,hasFinishedResolution:Z}=z(XR.store);if(!n)return{fetching:!1,cannotEmbed:!1};let U=K(n),X=q(n),Q=U?.html===!1&&U?.type===void 0,ie=U?.data?.status===404,me=!!U&&!Q&&!ie;return{preview:me?U:void 0,fetching:Y(n),themeSupportsResponsive:oe()["responsive-embeds"],cannotEmbed:!me||X,hasResolved:Z("getEmbedPreview",[n])}},[n]),B=()=>Pq(i,x,f,o);function N(z){let{className:K}=i,{html:q}=x;c({allowResponsive:z,className:IL(q,K,o&&z)})}(0,l1.useEffect)(()=>{if(!S||!P||!n)return;let z=n.replace(/\/$/,"");z!==n&&(h(z),_(!1),w(),c({url:z}))},[n,S,P,c,w]),(0,l1.useEffect)(()=>{if(!x||b)return;let z=B();if(l){let q=Od(e,z);if(q){w(),c(q.attributes);return}}Object.keys(z).some(q=>z[q]!==i[q])&&(w(),c(z))},[x,b]);let E=(0,x3.useBlockProps)();if(k)return(0,Hi.jsx)("div",{...E,children:(0,Hi.jsx)(eJ,{})});let M=(0,mf.sprintf)((0,mf.__)("%s URL"),f);if(!x||S||b)return(0,Hi.jsx)("div",{...E,children:(0,Hi.jsx)(rJ,{icon:m,label:M,onFocus:d,onSubmit:z=>{z&&z.preventDefault();let K=$_(g),q=Ad(i.className);h(K),c({url:K,...Mh(K)?.attributes,className:q}),_(!1)},value:g,cannotEmbed:S,onChange:z=>h(z),fallback:l?()=>Eq(g,l):void 0,tryAgain:()=>{v("getEmbedPreview",[g])}})});let{caption:O,type:j,allowResponsive:V,className:G}=B(),$=T(G,e.className);return(0,Hi.jsxs)(Hi.Fragment,{children:[(0,Hi.jsx)(DX,{showEditButton:x&&!S,themeSupportsResponsive:C,blockSupportsResponsive:o,allowResponsive:V,toggleResponsive:N,switchBackToURLInput:()=>_(!0)}),(0,Hi.jsxs)("figure",{...E,className:T(E.className,$,{[`is-type-${j}`]:j,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,Hi.jsx)(sJ,{preview:x,previewable:r,className:$,url:g,type:j,caption:O,onCaptionChange:z=>c({caption:z}),isSelected:s,icon:m,label:M,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,Hi.jsx)(Zo,{attributes:i,setAttributes:c,isSelected:s,insertBlocksAfter:u,label:(0,mf.__)("Embed caption text"),showToolbarButton:s})]})]})},lJ=C7e;var ff=a(I(),1),v2=a(y(),1);function cJ({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,v2.jsxs)("figure",{...ff.useBlockProps.save({className:i}),children:[(0,v2.jsx)("div",{className:"wp-block-embed__wrapper",children:`
10 19 ${t}
11 -`}),!cd.RichText.isEmpty(r)&&(0,vv.jsx)(cd.RichText.Content,{className:(0,cd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var H5=a($(),1),O5=a(lr(),1);var{name:a$}=Ns,sye={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,O5.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,O5.getFilename)(t)||"")},transform:e=>{let t=j1(e.textContent.trim());return(0,H5.createBlock)(a$,{url:t,...Hf(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=j1(t.content?.trim());return(0,H5.createBlock)(a$,{url:r,...Hf(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,H5.createBlock)("core/paragraph",{content:o,className:Ku(r)})}}]},n$=sye;var ge=a(B(),1);function dt(e){return(0,ge.sprintf)((0,ge.__)("%s Embed"),e)}var i$=[{name:"twitter",title:dt("X"),icon:NW,keywords:["x","twitter","tweet",(0,ge.__)("social")],description:(0,ge.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:dt("YouTube"),icon:IW,keywords:[(0,ge.__)("music"),(0,ge.__)("video")],description:(0,ge.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:dt("Facebook"),icon:DW,keywords:[(0,ge.__)("social")],description:(0,ge.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:dt("Instagram"),icon:LW,keywords:[(0,ge.__)("image"),(0,ge.__)("social")],description:(0,ge.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:dt("WordPress"),icon:MW,keywords:[(0,ge.__)("post"),(0,ge.__)("blog")],description:(0,ge.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:dt("SoundCloud"),icon:R5,keywords:[(0,ge.__)("music"),(0,ge.__)("audio")],description:(0,ge.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:dt("Spotify"),icon:AW,keywords:[(0,ge.__)("music"),(0,ge.__)("audio")],description:(0,ge.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:dt("Flickr"),icon:RW,keywords:[(0,ge.__)("image")],description:(0,ge.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:dt("Vimeo"),icon:zW,keywords:[(0,ge.__)("video")],description:(0,ge.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:dt("Animoto"),icon:OW,description:(0,ge.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:dt("Cloudup"),icon:ql,description:(0,ge.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:dt("CollegeHumor"),icon:fh,description:(0,ge.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:dt("Crowdsignal"),icon:ql,keywords:["polldaddy",(0,ge.__)("survey")],description:(0,ge.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:dt("Dailymotion"),icon:jW,keywords:[(0,ge.__)("video")],description:(0,ge.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:dt("Imgur"),icon:sI,description:(0,ge.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:dt("Issuu"),icon:ql,description:(0,ge.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:dt("Kickstarter"),icon:ql,description:(0,ge.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:dt("Mixcloud"),icon:R5,keywords:[(0,ge.__)("music"),(0,ge.__)("audio")],description:(0,ge.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:dt("Pocket Casts"),icon:WW,keywords:[(0,ge.__)("podcast"),(0,ge.__)("audio")],description:(0,ge.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:dt("Reddit"),icon:VW,description:(0,ge.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:dt("ReverbNation"),icon:R5,description:(0,ge.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:dt("Scribd"),icon:ql,description:(0,ge.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:dt("SmugMug"),icon:sI,description:(0,ge.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:dt("Speaker Deck"),icon:ql,description:(0,ge.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:dt("TikTok"),icon:fh,keywords:[(0,ge.__)("video")],description:(0,ge.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:dt("TED"),icon:fh,description:(0,ge.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:dt("Tumblr"),icon:FW,keywords:[(0,ge.__)("social")],description:(0,ge.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:dt("VideoPress"),icon:fh,keywords:[(0,ge.__)("video")],description:(0,ge.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:dt("WordPress.tv"),icon:fh,description:(0,ge.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:dt("Amazon Kindle"),icon:HW,keywords:[(0,ge.__)("ebook")],description:(0,ge.__)("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:dt("Pinterest"),icon:UW,keywords:[(0,ge.__)("social"),(0,ge.__)("bookmark")],description:(0,ge.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:dt("Wolfram"),icon:GW,description:(0,ge.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:dt("Bluesky"),icon:$W,description:(0,ge.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];i$.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var l$=i$;var ud=a(T(),1),md=a(v(),1),{attributes:s$}=Ns,cye={attributes:s$,save({attributes:e}){let{url:t,caption:r,type:o,providerNameSlug:n}=e;if(!t)return null;let i=w("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,md.jsxs)("figure",{...ud.useBlockProps.save({className:i}),children:[(0,md.jsx)("div",{className:"wp-block-embed__wrapper",children:`
20 +`}),!ff.RichText.isEmpty(r)&&(0,v2.jsx)(ff.RichText.Content,{className:(0,ff.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var k3=a(te(),1),w3=a(qt(),1);var{name:uJ}=pc,S7e={from:[{type:"raw",isMatch:e=>{if(e.nodeName!=="P")return!1;let t=e.textContent.trim();return!(0,w3.isURL)(t)||!/^https:\/\//i.test(t)||t.match(/https:\/\//gi)?.length!==1?!1:!/\.(?!(html?|php)$)[a-z0-9]+$/i.test((0,w3.getFilename)(t)||"")},transform:e=>{let t=$_(e.textContent.trim());return(0,k3.createBlock)(uJ,{url:t,...Mh(t)?.attributes})}},{type:"shortcode",tag:"embed",transform:(e,{shortcode:t})=>{let r=$_(t.content?.trim());return(0,k3.createBlock)(uJ,{url:r,...Mh(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,k3.createBlock)("core/paragraph",{content:o,className:Ad(r)})}}]},dJ=S7e;var Ee=a(L(),1);function Tt(e){return(0,Ee.sprintf)((0,Ee.__)("%s Embed"),e)}var pJ=[{name:"twitter",title:Tt("X"),icon:AX,keywords:["x","twitter","tweet",(0,Ee.__)("social")],description:(0,Ee.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:Tt("YouTube"),icon:OX,keywords:[(0,Ee.__)("music"),(0,Ee.__)("video")],description:(0,Ee.__)("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:FX,keywords:[(0,Ee.__)("social")],description:(0,Ee.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:Tt("Instagram"),icon:VX,keywords:[(0,Ee.__)("image"),(0,Ee.__)("social")],description:(0,Ee.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:Tt("WordPress"),icon:zX,keywords:[(0,Ee.__)("post"),(0,Ee.__)("blog")],description:(0,Ee.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:Tt("SoundCloud"),icon:y3,keywords:[(0,Ee.__)("music"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:Tt("Spotify"),icon:HX,keywords:[(0,Ee.__)("music"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:Tt("Flickr"),icon:jX,keywords:[(0,Ee.__)("image")],description:(0,Ee.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:Tt("Vimeo"),icon:UX,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:Tt("Animoto"),icon:qX,description:(0,Ee.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:Tt("Cloudup"),icon:Nl,description:(0,Ee.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:Tt("CollegeHumor"),icon:a1,description:(0,Ee.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:Tt("Crowdsignal"),icon:Nl,keywords:["polldaddy",(0,Ee.__)("survey")],description:(0,Ee.__)("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:ZX,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:Tt("Imgur"),icon:KR,description:(0,Ee.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:Tt("Issuu"),icon:Nl,description:(0,Ee.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:Tt("Kickstarter"),icon:Nl,description:(0,Ee.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:Tt("Mixcloud"),icon:y3,keywords:[(0,Ee.__)("music"),(0,Ee.__)("audio")],description:(0,Ee.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:Tt("Pocket Casts"),icon:QX,keywords:[(0,Ee.__)("podcast"),(0,Ee.__)("audio")],description:(0,Ee.__)("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:WX,description:(0,Ee.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:Tt("ReverbNation"),icon:y3,description:(0,Ee.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:Tt("Scribd"),icon:Nl,description:(0,Ee.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:Tt("SmugMug"),icon:KR,description:(0,Ee.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:Tt("Speaker Deck"),icon:Nl,description:(0,Ee.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:Tt("TikTok"),icon:a1,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:Tt("TED"),icon:a1,description:(0,Ee.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:Tt("Tumblr"),icon:GX,keywords:[(0,Ee.__)("social")],description:(0,Ee.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:Tt("VideoPress"),icon:a1,keywords:[(0,Ee.__)("video")],description:(0,Ee.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:Tt("WordPress.tv"),icon:a1,description:(0,Ee.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:Tt("Amazon Kindle"),icon:$X,keywords:[(0,Ee.__)("ebook")],description:(0,Ee.__)("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:KX,keywords:[(0,Ee.__)("social"),(0,Ee.__)("bookmark")],description:(0,Ee.__)("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:YX,description:(0,Ee.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:Tt("Bluesky"),icon:XX,description:(0,Ee.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];pJ.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.providerNameSlug===r.providerNameSlug)});var mJ=pJ;var gf=a(I(),1);var hf=a(y(),1),{attributes:fJ}=pc,T7e={attributes:fJ,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,hf.jsxs)("figure",{...gf.useBlockProps.save({className:i}),children:[(0,hf.jsx)("div",{className:"wp-block-embed__wrapper",children:`
12 21 ${t}
13 -`}),!ud.RichText.isEmpty(r)&&(0,md.jsx)(ud.RichText.Content,{tagName:"figcaption",value:r})]})}},uye={attributes:s$,save({attributes:{url:e,caption:t,type:r,providerNameSlug:o}}){if(!e)return null;let n=w("wp-block-embed",{[`is-type-${r}`]:r,[`is-provider-${o}`]:o});return(0,md.jsxs)("figure",{className:n,children:[`
22 +`}),!gf.RichText.isEmpty(r)&&(0,hf.jsx)(gf.RichText.Content,{tagName:"figcaption",value:r})]})}},E7e={attributes:fJ,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,hf.jsxs)("figure",{className:n,children:[`
14 23 ${e}
15 -`,!ud.RichText.isEmpty(t)&&(0,md.jsx)(ud.RichText.Content,{tagName:"figcaption",value:t})]})}},mye=[cye,uye],c$=mye;var{name:u$}=Ns,m$={icon:ql,edit:r$,save:o$,transforms:n$,variations:l$,deprecated:c$},pye=()=>I({name:u$,metadata:Ns,settings:m$});var vI={};Z(vI,{init:()=>Cye,metadata:()=>U5,name:()=>N$,settings:()=>$5});var _h=a(B(),1);var E$=a($(),1);var ho=a(T(),1),Zl=a(B(),1),$t=a(v(),1),dye={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:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=ho.RichText.isEmpty(o)?(0,Zl.__)("PDF embed"):(0,Zl.sprintf)((0,Zl.__)("Embed of %s."),o),p=!ho.RichText.isEmpty(o),d=p?r:void 0;return t&&(0,$t.jsxs)("div",{...ho.useBlockProps.save(),children:[c&&(0,$t.jsx)($t.Fragment,{children:(0,$t.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,$t.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,$t.jsx)(ho.RichText.Content,{value:o})}),l&&(0,$t.jsx)("a",{href:t,className:w("wp-block-file__button",(0,ho.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,$t.jsx)(ho.RichText.Content,{value:s})})]})}},fye={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:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=ho.RichText.isEmpty(o)?(0,Zl.__)("PDF embed"):(0,Zl.sprintf)((0,Zl.__)("Embed of %s."),o),p=!ho.RichText.isEmpty(o),d=p?r:void 0;return t&&(0,$t.jsxs)("div",{...ho.useBlockProps.save(),children:[c&&(0,$t.jsx)($t.Fragment,{children:(0,$t.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,$t.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,$t.jsx)(ho.RichText.Content,{value:o})}),l&&(0,$t.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,$t.jsx)(ho.RichText.Content,{value:s})})]})}},hye={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:l,displayPreview:s,previewHeight:c}=e,u=ho.RichText.isEmpty(r)?(0,Zl.__)("PDF embed"):(0,Zl.sprintf)((0,Zl.__)("Embed of %s."),r);return t&&(0,$t.jsxs)("div",{...ho.useBlockProps.save(),children:[s&&(0,$t.jsx)($t.Fragment,{children:(0,$t.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!ho.RichText.isEmpty(r)&&(0,$t.jsx)("a",{href:o,target:n,rel:n?"noreferrer noopener":void 0,children:(0,$t.jsx)(ho.RichText.Content,{value:r})}),i&&(0,$t.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,$t.jsx)(ho.RichText.Content,{value:l})})]})}},gye=[dye,fye,hye],p$=gye;var hI=a(Br(),1),yh=a(R(),1),bh=a(F(),1),Ko=a(T(),1),v$=a(j(),1),b$=a(fe(),1),Kc=a(B(),1);var y$=a(X(),1),gI=a(_r(),1),_$=a(lr(),1);var qo=a(B(),1),Zo=a(R(),1),d$=a(T(),1);var Po=a(v(),1);function f$({hrefs:e,openInNewWindow:t,showDownloadButton:r,changeLinkDestinationOption:o,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:m,textLinkHref:p,attachmentPage:d}=e,f=q(),h=[{value:m,label:(0,qo.__)("URL")}];return d&&(h=[{value:m,label:(0,qo.__)("Media file")},{value:d,label:(0,qo.__)("Attachment page")}]),(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsxs)(d$.InspectorControls,{children:[m.endsWith(".pdf")&&(0,Po.jsxs)(Zo.__experimentalToolsPanel,{label:(0,qo.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,Po.jsx)(Zo.__experimentalToolsPanelItem,{label:(0,qo.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,Po.jsx)(Zo.ToggleControl,{label:(0,qo.__)("Show inline embed"),help:l?(0,qo.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,Po.jsx)(Zo.__experimentalToolsPanelItem,{label:(0,qo.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,Po.jsx)(Zo.RangeControl,{__next40pxDefaultSize:!0,label:(0,qo.__)("Height in pixels"),min:j5,max:Math.max(fI,c),value:c,onChange:u})})]}),(0,Po.jsxs)(Zo.__experimentalToolsPanel,{label:(0,qo.__)("Settings"),resetAll:()=>{o(m),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,Po.jsx)(Zo.__experimentalToolsPanelItem,{label:(0,qo.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==m,onDeselect:()=>o(m),children:(0,Po.jsx)(Zo.SelectControl,{__next40pxDefaultSize:!0,label:(0,qo.__)("Link to"),value:p,options:h,onChange:o})}),(0,Po.jsx)(Zo.__experimentalToolsPanelItem,{label:(0,qo.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,Po.jsx)(Zo.ToggleControl,{label:(0,qo.__)("Open in new tab"),checked:t,onChange:n})}),(0,Po.jsx)(Zo.__experimentalToolsPanelItem,{label:(0,qo.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,Po.jsx)(Zo.ToggleControl,{label:(0,qo.__)("Show download button"),checked:r,onChange:i})})]})]})})}var g$=()=>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)&&!(h$("AcroPDF.PDF")||h$("PDF.PdfCtrl"))),h$=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var jr=a(v(),1),j5=200,fI=2e3;function vye({text:e,disabled:t}){let{createNotice:r}=(0,bh.useDispatch)(gI.store),o=(0,b$.useCopyToClipboard)(e,()=>{r("info",(0,Kc.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,jr.jsx)(yh.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,Kc.__)("Copy URL")})}function bye({attributes:e,isSelected:t,setAttributes:r,clientId:o}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,[f,h]=(0,v$.useState)(e.blob),{media:g}=(0,bh.useSelect)(M=>({media:n===void 0?void 0:M(y$.store).getEntityRecord("postType","attachment",n)}),[n]),{createErrorNotice:b}=(0,bh.useDispatch)(gI.store),{toggleSelection:y}=(0,bh.useDispatch)(Ko.store);Bs({url:f,onChange:_,onError:x});function _(M){if(!M||!M.url){r({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),h();return}if((0,hI.isBlobURL)(M.url)){h(M.url);return}let L=(M.mime||M.mime_type)==="application/pdf"||(0,_$.getFilename)(M.url).toLowerCase().endsWith(".pdf"),U={displayPreview:L?e.displayPreview??!0:void 0,previewHeight:L?e.previewHeight??600:void 0};r({href:M.url,fileName:M.title,textLinkHref:M.url,id:M.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...U}),h()}function x(M){r({href:void 0}),b(M,{type:"snackbar"})}function k(M){r({textLinkHref:M})}function S(M){r({textLinkTarget:M?"_blank":!1})}function C(M){r({showDownloadButton:M})}function E(M){r({displayPreview:M})}function P(M,L,U,H){y(!0);let G=parseInt(d+H.height,10);r({previewHeight:G})}function N(M){let L=Math.max(parseInt(M,10),j5);r({previewHeight:L})}let z=g&&g.link,V=(0,Ko.useBlockProps)({className:w(!!f&&(0,yh.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),A=g$()&&p;return!l&&!f?(0,jr.jsx)("div",{...V,children:(0,jr.jsx)(Ko.MediaPlaceholder,{icon:(0,jr.jsx)(Ko.BlockIcon,{icon:X0}),labels:{title:(0,Kc.__)("File"),instructions:(0,Kc.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:_,onError:x,accept:"*"})}):(0,jr.jsxs)(jr.Fragment,{children:[(0,jr.jsx)(f$,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:z},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:k,changeOpenInNewWindow:S,changeShowDownloadButton:C,displayPreview:p,changeDisplayPreview:E,previewHeight:d,changePreviewHeight:N}),(0,jr.jsxs)(Ko.BlockControls,{group:"other",children:[(0,jr.jsx)(Ko.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:_,onError:x,onReset:()=>_(void 0)}),(0,jr.jsx)(vye,{text:l,disabled:(0,hI.isBlobURL)(l)})]}),(0,jr.jsxs)("div",{...V,children:[A&&(0,jr.jsxs)(yh.ResizableBox,{size:{height:d,width:"100%"},minHeight:j5,maxHeight:fI,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>y(!1),onResizeStop:P,showHandle:t,children:[(0,jr.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,Kc.__)("Embed of the selected PDF file.")}),!t&&(0,jr.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,jr.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,jr.jsx)(Ko.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Kc.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:M=>r({fileName:$1(M)}),href:s}),u&&(0,jr.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,jr.jsx)(Ko.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Kc.__)("Download button text"),className:w("wp-block-file__button",(0,Ko.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Kc.__)("Add text\u2026"),onChange:M=>r({downloadButtonText:$1(M)})})})]})]})]})}var x$=bye;var U5={$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 Yc=a(T(),1),Kl=a(v(),1);function k$({attributes:e}){let{href:t,fileId:r,fileName:o,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Yc.RichText.isEmpty(o)?"PDF embed":o.toString(),p=!Yc.RichText.isEmpty(o),d=p?r:void 0;return t&&(0,Kl.jsxs)("div",{...Yc.useBlockProps.save(),children:[c&&(0,Kl.jsx)(Kl.Fragment,{children:(0,Kl.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Kl.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Kl.jsx)(Yc.RichText.Content,{value:o})}),l&&(0,Kl.jsx)("a",{href:t,className:w("wp-block-file__button",(0,Yc.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Kl.jsx)(Yc.RichText.Content,{value:s})})]})}var bv=a(Br(),1),Qc=a($(),1),G5=a(F(),1),W5=a(X(),1),C$=a(B(),1),S$=a(lr(),1),w$=(0,C$._x)("Download","button label"),_ye={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,bv.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,Qc.createBlock)("core/video",{blob:(0,bv.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,Qc.createBlock)("core/image",{blob:(0,bv.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,Qc.createBlock)("core/audio",{blob:(0,bv.createBlobURL)(r)})):t.push((0,Qc.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:w$}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,Qc.createBlock)("core/file",{href:t,fileName:e.caption||(0,S$.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:w$})}}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,G5.select)(W5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("audio")},transform:e=>(0,Qc.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,G5.select)(W5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("video")},transform:e=>(0,Qc.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,G5.select)(W5.store),r=t("postType","attachment",e);return!!r&&r.mime_type.includes("image")},transform:e=>(0,Qc.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},T$=_ye;var P$=a(B(),1),xye=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,P$._x)("Download","button label")}}],B$=xye;var{fieldsKey:kye,formKey:wye}=W(E$.privateApis),{name:N$}=U5,$5={icon:X0,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,_h._x)("Armstrong_Small_Step","Name of the file")}},transforms:T$,deprecated:p$,edit:x$,save:k$,variations:B$};window.__experimentalContentOnlyInspectorFields&&($5[kye]=[{id:"file",label:(0,_h.__)("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,_h.__)("Filename"),type:"text",Edit:"rich-text"},{id:"downloadButtonText",label:(0,_h.__)("Button Text"),type:"text",Edit:"rich-text"}],$5[wye]={fields:["file","fileName","downloadButtonText"]});var Cye=()=>I({name:N$,metadata:U5,settings:$5});var kI={};Z(kI,{init:()=>Nye,metadata:()=>K5,name:()=>V$,settings:()=>F$});var z$=a($c(),1);var Bo=a(B(),1),Yl=a(T(),1),Ql=a(R(),1),I$=a(F(),1);var bI=a(B(),1),q5=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,bI.__)("Your form has been submitted successfully")+"</mark>"}]]],Z5=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,bI.__)("There was an error submitting your form.")+"</mark>"}]]];var $a=a(v(),1),Sye=[q5,Z5,["core/form-input",{type:"text",label:(0,Bo.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,Bo.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,Bo.__)("Comment"),required:!0}],["core/form-submit-button",{}]],Tye=({attributes:e,setAttributes:t,clientId:r})=>{let o=q(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,Yl.useBlockProps)(),{hasInnerBlocks:m}=(0,I$.useSelect)(d=>{let{getBlock:f}=d(Yl.store),h=f(r);return{hasInnerBlocks:!!(h&&h.innerBlocks.length)}},[r]),p=(0,Yl.useInnerBlocksProps)(u,{template:Sye,renderAppender:m?void 0:Yl.InnerBlocks.ButtonBlockAppender});return(0,$a.jsxs)($a.Fragment,{children:[(0,$a.jsx)(Yl.InspectorControls,{children:(0,$a.jsxs)(Ql.__experimentalToolsPanel,{dropdownMenuProps:o,label:(0,Bo.__)("Settings"),resetAll:n,children:[(0,$a.jsx)(Ql.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,Bo.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,$a.jsx)(Ql.SelectControl,{__next40pxDefaultSize:!0,label:(0,Bo.__)("Submissions method"),options:[{label:(0,Bo.__)("Send email"),value:"email"},{label:(0,Bo.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,Bo.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,Bo.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,$a.jsx)(Ql.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Bo.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,$a.jsx)(Ql.TextControl,{autoComplete:"off",label:(0,Bo.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,Bo.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,$a.jsxs)(Yl.InspectorControls,{group:"advanced",children:[(0,$a.jsx)(Ql.SelectControl,{__next40pxDefaultSize:!0,label:(0,Bo.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,Bo.__)("Select the method to use for form submissions.")}),(0,$a.jsx)(Ql.TextControl,{autoComplete:"off",label:(0,Bo.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,Bo.__)("The URL where the form should be submitted."),type:"url"})]}),(0,$a.jsx)("form",{...p,encType:c==="email"?"text/plain":null})]})},D$=Tye;var K5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"widgets",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var Y5=a(T(),1),yI=a(v(),1);function L$({attributes:e}){let t=Y5.useBlockProps.save(),{submissionMethod:r}=e;return(0,yI.jsx)("form",{...t,encType:r==="email"?"text/plain":null,children:(0,yI.jsx)(Y5.InnerBlocks.Content,{})})}var tl=a(B(),1);var Bye=[{name:"comment-form",title:(0,tl.__)("Experimental Comment form"),description:(0,tl.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,tl.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,tl.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,tl.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"wp-privacy-form",title:(0,tl.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,tl.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[q5,Z5,["core/paragraph",{content:(0,tl.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,tl.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,tl.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,tl.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"}],M$=Bye;var Hs=a(T(),1),_I=a(v(),1),Eye={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){let{submissionMethod:t}=e,r=(0,Hs.__experimentalGetColorClassesAndStyles)(e),o=(0,Hs.getTypographyClassesAndStyles)(e),n=(0,Hs.__experimentalGetSpacingClassesAndStyles)(e),i=Hs.useBlockProps.save({style:{...r.style,...o.style,...n.style},id:e.anchor});return(0,_I.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,_I.jsx)(Hs.InnerBlocks.Content,{})})}},A$=[Eye];var Q5=a(D(),1),xI=a(v(),1),R$=(0,xI.jsx)(Q5.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,xI.jsx)(Q5.Path,{d:"M18 16H6c-1.1 0-2 .9-2 2s.9 2 2 2h12c1.1 0 2-.9 2-2s-.9-2-2-2Zm0 2.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h12c.3 0 .5.2.5.5s-.2.5-.5.5ZM13 13H4v1.5h9V13Zm-7-2h12c1.1 0 2-.9 2-2s-.9-2-2-2H6c-1.1 0-2 .9-2 2s.9 2 2 2Zm0-2.5h12c.3 0 .5.2.5.5s-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5s.2-.5.5-.5ZM13 4H4v1.5h9V4Z"})});var{name:V$}=K5,F$={icon:R$,edit:D$,save:L$,deprecated:A$,variations:M$,example:{}},Nye=()=>{let e=["core/form"];return(0,z$.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/form")return t;for(let l of e)if(n(o)?.name===l||i(o,l).length)return!1;return!0}),I({name:V$,metadata:K5,settings:F$})};var CI={};Z(CI,{init:()=>jye,metadata:()=>J5,name:()=>eq,settings:()=>tq});var U$=a(yv(),1),Xl=a(T(),1),G$=a(Va(),1),pi=a(v(),1),W$=e=>(0,U$.default)((0,G$.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Aye={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Xl.__experimentalGetBorderClassesAndStyles)(e),u=(0,Xl.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Xl.useBlockProps.save();return t==="hidden"?(0,pi.jsx)("input",{type:t,name:r,value:s}):(0,pi.jsx)("div",{...f,children:(0,pi.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,pi.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,pi.jsx)(Xl.RichText.Content,{value:o})}),(0,pi.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||W$(o),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})})}},Rye={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Xl.__experimentalGetBorderClassesAndStyles)(e),u=(0,Xl.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,pi.jsx)("input",{type:t,name:r,value:s}):(0,pi.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,pi.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,pi.jsx)(Xl.RichText.Content,{value:o})}),(0,pi.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||W$(o),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})}},zye=[Aye,Rye],$$=zye;var ga=a(B(),1),Jl=a(T(),1),es=a(R(),1),q$=a(j(),1);var Xr=a(v(),1);function Vye({attributes:e,setAttributes:t,className:r}){let{type:o,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,m=(0,Jl.useBlockProps)(),p=q(),d=(0,q$.useRef)(),f=o==="textarea"?"textarea":"input",h=(0,Jl.__experimentalUseBorderProps)(e),g=(0,Jl.__experimentalUseColorProps)(e);d.current&&d.current.focus();let b=o==="checkbox"||o==="radio",y=(0,Xr.jsxs)(Xr.Fragment,{children:[o!=="hidden"&&(0,Xr.jsx)(Jl.InspectorControls,{children:(0,Xr.jsxs)(es.__experimentalToolsPanel,{label:(0,ga.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:p,children:[o!=="checkbox"&&(0,Xr.jsx)(es.__experimentalToolsPanelItem,{label:(0,ga.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,Xr.jsx)(es.CheckboxControl,{label:(0,ga.__)("Inline label"),checked:l,onChange:x=>{t({inlineLabel:x})}})}),(0,Xr.jsx)(es.__experimentalToolsPanelItem,{label:(0,ga.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,Xr.jsx)(es.CheckboxControl,{label:(0,ga.__)("Required"),checked:s,onChange:x=>{t({required:x})}})})]})}),(0,Xr.jsxs)(Jl.InspectorControls,{group:"advanced",children:[(0,Xr.jsx)(es.TextControl,{autoComplete:"off",label:(0,ga.__)("Name"),value:n,onChange:x=>{t({name:x})},help:(0,ga.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')}),o==="hidden"&&(0,Xr.jsx)(es.TextControl,{autoComplete:"off",label:(0,ga.__)("Value"),value:u,onChange:x=>t({value:x}),help:(0,ga.__)("Sets the stored value for this hidden field.")})]})]}),_=(0,Xr.jsx)(Jl.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:x=>t({label:x}),"aria-label":i?(0,ga.__)("Label"):(0,ga.__)("Empty label"),"data-empty":!i,placeholder:(0,ga.__)("Type the label for this input")});return o==="hidden"?(0,Xr.jsxs)("div",{...m,children:[y,(0,Xr.jsx)("span",{className:"wp-block-form-input__label is-input-hidden","data-message":(0,ga.__)("Hidden field")})]}):(0,Xr.jsxs)("div",{...m,children:[y,(0,Xr.jsxs)("span",{className:w("wp-block-form-input__label",{"is-label-inline":l||o==="checkbox"}),children:[!b&&_,(0,Xr.jsx)(f,{type:o==="textarea"?void 0:o,className:w(r,"wp-block-form-input__input",g.className,h.className),"aria-label":(0,ga.__)("Optional placeholder text"),placeholder:c?void 0:(0,ga.__)("Optional placeholder\u2026"),value:c,onChange:x=>t({placeholder:x.target.value}),"aria-required":s,style:{...h.style,...g.style}}),b&&_]})]})}var Z$=Vye;var J5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"widgets",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var K$=a(yv(),1),Xc=a(T(),1),Y$=a(Va(),1),Os=a(v(),1),Hye=e=>(0,K$.default)((0,Y$.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function Q$({attributes:e}){let{type:t,name:r,label:o,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Xc.__experimentalGetBorderClassesAndStyles)(e),u=(0,Xc.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=w("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Xc.useBlockProps.save(),h=t==="checkbox"||t==="radio";return t==="hidden"?(0,Os.jsx)("input",{type:t,name:r,value:s}):(0,Os.jsx)("div",{...f,children:(0,Os.jsxs)("label",{className:w("wp-block-form-input__label",{"is-label-inline":n}),children:[!h&&(0,Os.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Os.jsx)(Xc.RichText.Content,{value:o})}),(0,Os.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:r||Hye(o),required:i,"aria-required":i,placeholder:l||void 0,style:m}),h&&(0,Os.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Os.jsx)(Xc.RichText.Content,{value:o})})]})})}var Yo=a(B(),1),Oye=[{name:"text",title:(0,Yo.__)("Text Input"),description:(0,Yo.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,Yo.__)("Textarea Input"),description:(0,Yo.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="textarea"},{name:"checkbox",title:(0,Yo.__)("Checkbox Input"),description:(0,Yo.__)("A simple checkbox input."),attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,Yo.__)("Email Input"),description:(0,Yo.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,Yo.__)("URL Input"),description:(0,Yo.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,Yo.__)("Telephone Input"),description:(0,Yo.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,Yo.__)("Number Input"),description:(0,Yo.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"},{name:"hidden",title:(0,Yo.__)("Hidden Input"),icon:"visibility",description:(0,Yo.__)("A hidden input field."),attributes:{type:"hidden"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="hidden"}],X$=Oye;var ew=a(D(),1),wI=a(v(),1),J$=(0,wI.jsx)(ew.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wI.jsx)(ew.Path,{d:"M5.547 18.892A.99.99 0 0 0 6 19h.72v1H6a1.99 1.99 0 0 1-.908-.22l.455-.888ZM9.12 20H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.587-.22c-.272.14-.58.22-.907.22h-.72v-1H18a.99.99 0 0 0 .453-.108l.454.888ZM5.108 17.547a.99.99 0 0 0 0 .906l-.89.454a1.99 1.99 0 0 1 0-1.815l.89.455Zm14.672-.455a1.99 1.99 0 0 1 0 1.815l-.888-.454a.99.99 0 0 0 0-.906l.888-.455ZM6.72 17H6a.99.99 0 0 0-.453.108l-.455-.89A1.99 1.99 0 0 1 6 16h.72v1ZM18 16c.327 0 .635.08.907.219l-.454.89A.99.99 0 0 0 18 17h-.72v-1H18Zm-8.88 1H7.68v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1Zm2.4 0h-1.44v-1h1.44v1ZM5.5 14.28H4.25v-1H5.5v1Zm2.5 0H6.5v-1H8v1Zm2.5 0H9v-1h1.5v1Zm2.25 0H11.5v-1h1.25v1ZM18 7a2 2 0 1 1 0 4H6a2 2 0 1 1 0-4h12ZM6 8.5a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H6Zm7-3H4V4h9v1.5Z"})});var{name:eq}=J5,tq={icon:J$,deprecated:$$,edit:Z$,save:Q$,variations:X$,example:{}},jye=()=>I({name:eq,metadata:J5,settings:tq});var TI={};Z(TI,{init:()=>$ye,metadata:()=>rw,name:()=>iq,settings:()=>lq});var rq=a(B(),1),tw=a(T(),1),oq=a(v(),1),Uye=[["core/buttons",{},[["core/button",{text:(0,rq.__)("Submit"),tagName:"button",type:"submit"}]]]],Gye=()=>{let e=(0,tw.useBlockProps)(),t=(0,tw.useInnerBlocksProps)(e,{template:Uye,templateLock:"all"});return(0,oq.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},aq=Gye;var rw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"widgets",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var ow=a(T(),1),SI=a(v(),1);function nq(){let e=ow.useBlockProps.save();return(0,SI.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,SI.jsx)(ow.InnerBlocks.Content,{})})}var{name:iq}=rw,lq={edit:aq,save:nq,example:{}},$ye=()=>I({name:iq,metadata:rw,settings:lq});var PI={};Z(PI,{init:()=>Qye,metadata:()=>nw,name:()=>fq,settings:()=>hq});var aw=a(B(),1),dm=a(T(),1),sq=a(F(),1);var cq=a(v(),1),qye=[["core/paragraph",{content:(0,aw.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],Zye=({attributes:e,clientId:t})=>{let{type:r}=e,o=(0,dm.useBlockProps)({className:w("wp-block-form-submission-notification",{[`form-notification-type-${r}`]:r})}),{hasInnerBlocks:n}=(0,sq.useSelect)(l=>{let{getBlock:s}=l(dm.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,dm.useInnerBlocksProps)(o,{template:qye,renderAppender:n?void 0:dm.InnerBlocks.ButtonBlockAppender});return(0,cq.jsx)("div",{...i,"data-message-success":(0,aw.__)("Submission success notification"),"data-message-error":(0,aw.__)("Submission error notification")})},uq=Zye;var nw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"widgets",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var iw=a(T(),1);var mq=a(v(),1);function pq({attributes:e}){let{type:t}=e;return(0,mq.jsx)("div",{...iw.useInnerBlocksProps.save(iw.useBlockProps.save({className:w("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var pd=a(B(),1),Yye=[{name:"form-submission-success",title:(0,pd.__)("Form Submission Success"),description:(0,pd.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,pd.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="success"},{name:"form-submission-error",title:(0,pd.__)("Form Submission Error"),description:(0,pd.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,pd.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="error"}],dq=Yye;var{name:fq}=nw,hq={icon:Bp,edit:uq,save:pq,variations:dq,example:{}},Qye=()=>I({name:fq,metadata:nw,settings:hq});var zI={};Z(zI,{init:()=>b2e,metadata:()=>cw,name:()=>Zq,settings:()=>Kq});var Ir=a(T(),1),bq=a($(),1);var js="none",Us="media",_v="lightbox",Gs="attachment",gq="file",vq="post",xv="large";var He=a(v(),1),yq="file",_q="post";function xh(e){return Math.min(3,e?.images?.length)}function Xye(e,t){switch(t){case yq:return{href:e?.source_url||e?.url,linkDestination:Us};case _q:return{href:e?.link,linkDestination:Gs};case Us:return{href:e?.source_url||e?.url,linkDestination:Us};case Gs:return{href:e?.link,linkDestination:Gs};case js:return{href:void 0,linkDestination:js}}return{}}function kh(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(l=>Jye(l,e.sizeSlug,t)),{images:o,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function Jye(e,t,r){return(0,bq.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Xye(e,r)})}var e2e={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=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=Ir.useBlockProps.save({className:n}),l=Ir.useInnerBlocksProps.save(i);return(0,He.jsxs)("figure",{...l,children:[l.children,!Ir.RichText.isEmpty(t)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},t2e={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=xh(e),imageCrop:o,caption:n,linkTo:i}=e,l=`columns-${r} ${o?"is-cropped":""}`;return(0,He.jsxs)("figure",{...Ir.useBlockProps.save({className:l}),children:[(0,He.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case yq:c=s.fullUrl||s.url;break;case _q:c=s.link;break}let u=(0,He.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,He.jsx)("li",{className:"blocks-gallery-item",children:(0,He.jsxs)("figure",{children:[c?(0,He.jsx)("a",{href:c,children:u}):u,!Ir.RichText.isEmpty(s.caption)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!Ir.RichText.isEmpty(n)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return kh(e)}},r2e={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 kh(e)},save({attributes:e}){let{images:t,columns:r=xh(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,He.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,He.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,He.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,He.jsx)("li",{className:"blocks-gallery-item",children:(0,He.jsxs)("figure",{children:[s?(0,He.jsx)("a",{href:s,children:c}):c,!Ir.RichText.isEmpty(l.caption)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Ir.RichText.isEmpty(n)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},o2e={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 kh(e)},save({attributes:e}){let{images:t,columns:r=xh(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,He.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,He.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,He.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,He.jsx)("li",{className:"blocks-gallery-item",children:(0,He.jsxs)("figure",{children:[s?(0,He.jsx)("a",{href:s,children:c}):c,!Ir.RichText.isEmpty(l.caption)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!Ir.RichText.isEmpty(n)&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},a2e={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=xh(e),imageCrop:o,linkTo:n}=e;return(0,He.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,He.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,He.jsx)("li",{className:"blocks-gallery-item",children:(0,He.jsxs)("figure",{children:[l?(0,He.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return kh(e)}},n2e={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 kh(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=xh(e),imageCrop:o,linkTo:n}=e;return(0,He.jsx)("ul",{className:`columns-${r} ${o?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,He.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,He.jsx)("li",{className:"blocks-gallery-item",children:(0,He.jsxs)("figure",{children:[l?(0,He.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,He.jsx)(Ir.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},i2e={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=xh(e),align:o,imageCrop:n,linkTo:i}=e,l=w(`columns-${r}`,{alignnone:o==="none","is-cropped":n});return(0,He.jsx)("div",{className:l,children:t.map(s=>{let c;switch(i){case"media":c=s.url;break;case"attachment":c=s.link;break}let u=(0,He.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,He.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,He.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return kh(e)}},xq=[e2e,t2e,r2e,o2e,a2e,n2e,i2e];var Et=a(R(),1),Eo=a(T(),1),Cv=a(j(),1),Le=a(B(),1),Sv=a(F(),1),Hq=a(D(),1),Oq=a($(),1),AI=a(Br(),1),jq=a(_r(),1);var kq=a(T(),1);var wq=a(v(),1),Cq=(0,wq.jsx)(kq.BlockIcon,{icon:a1});function lw(e){return e?Math.min(3,e):3}var Sq=(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 Ws=20,dd="none",wh="media",Ch="attachment",BI="custom",Tq=["noopener"],Jc=["image"];var EI=["flex","grid"],kv="full";function NI(e,t,r,o,n){switch(r||t){case gq:case Us:return{href:e?.source_url||e?.url,linkDestination:wh,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case vq:case Gs:return{href:e?.link,linkDestination:Ch,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case _v:return{href:void 0,lightbox:n?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:dd};case js:return{href:void 0,linkDestination:dd,lightbox:void 0}}return{}}function Pq(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function l2e(e){let t=e;return e!==void 0&&t&&(Tq.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 II(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=l2e(t),{linkTarget:r,rel:o}}function Bq(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function DI(e){return Jc.some(t=>e.type.indexOf(t)===0)}function fd({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var LI=a(B(),1),Eq=a(D(),1);var wv=a(v(),1);function Nq(e){let{attributes:t,isSelected:r,setAttributes:o,mediaPlaceholder:n,insertBlocksAfter:i,blockProps:l,__unstableLayoutClassNames:s,isContentLocked:c,multiGallerySelection:u}=e,{align:m,columns:p,imageCrop:d}=t;return(0,wv.jsxs)("figure",{...l,className:w(l.className,s,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":d}),children:[l.children,r&&!l.children&&(0,wv.jsx)(Eq.View,{className:"blocks-gallery-media-placeholder-wrapper",children:n}),(0,wv.jsx)(ma,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:i,showToolbarButton:!u&&!c,className:"blocks-gallery-caption",label:(0,LI.__)("Gallery caption text"),placeholder:(0,LI.__)("Add gallery caption")})]})}var Iq=a(j(),1);function Dq(e,t,r){return(0,Iq.useMemo)(()=>o(),[e,t]);function o(){if(!e||e.length===0)return;let{imageSizes:n}=r(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=n.reduce((m,p)=>{let d=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...m,[p.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return n.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var sw=a(j(),1);function Lq(e,t){let[r,o]=(0,sw.useState)([]);return(0,sw.useMemo)(()=>n(),[e,t]);function n(){let i=!1,l=r.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<r.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&o([...l,...s]),s.length>0?s:null}}var Aq=a(F(),1),Rq=a(X(),1),Mq=[];function zq(e){return(0,Aq.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?Mq:t(Rq.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??Mq},[e])}var hd=a(T(),1);function Vq({blockGap:e,clientId:t}){let r="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",o=r,n=r,i;e&&(i=typeof e=="string"?(0,hd.__experimentalGetGapCSSValue)(e):(0,hd.__experimentalGetGapCSSValue)(e?.top)||r,n=typeof e=="string"?(0,hd.__experimentalGetGapCSSValue)(e):(0,hd.__experimentalGetGapCSSValue)(e?.left)||r,o=i===n?i:`${i} ${n}`);let l=`#block-${t} {
16 - --wp--style--unstable-gallery-gap: ${n==="0"?"0px":n};
17 - gap: ${o}
18 - }`;return(0,hd.useStyleOverride)({css:l}),null}var st=a(v(),1),s2e=8,Fq=[{icon:Z0,label:(0,Le.__)("Link images to attachment pages"),value:Gs,noticeText:(0,Le.__)("Attachment Pages")},{icon:Gu,label:(0,Le.__)("Link images to media files"),value:Us,noticeText:(0,Le.__)("Media Files")},{icon:Pp,label:(0,Le.__)("Enlarge on click"),value:_v,noticeText:(0,Le.__)("Lightbox effect"),infoText:(0,Le.__)("Scale images with a lightbox effect")},{icon:n1,label:(0,Le._x)("None","Media item link option"),value:js,noticeText:(0,Le.__)("None")}],c2e=[{label:(0,Le.__)("Icon"),value:"icon"},{label:(0,Le.__)("Text"),value:"text"},{label:(0,Le.__)("Both"),value:"both"}],MI=["image"],u2e=(0,Le.__)("Drag and drop images, upload, or choose from your library."),m2e={name:"core/image"},p2e=[];function Uq(e){let{setAttributes:t,attributes:r,className:o,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s}=e,[c,u,m,p]=(0,Eo.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),d=c?.allowEditing?Fq:Fq.filter(K=>K.value!==_v),{navigationButtonType:f,columns:h,imageCrop:g,randomOrder:b,linkTarget:y,linkTo:_,sizeSlug:x,aspectRatio:k}=r,{__unstableMarkNextChangeAsNotPersistent:S,replaceInnerBlocks:C,updateBlockAttributes:E,selectBlock:P}=(0,Sv.useDispatch)(Eo.store),{createSuccessNotice:N,createErrorNotice:z}=(0,Sv.useDispatch)(jq.store),{getBlock:V,getSettings:A,innerBlockImages:M,multiGallerySelection:L}=(0,Sv.useSelect)(K=>{let{getBlockName:ne,getMultiSelectedBlockClientIds:Ge,getSettings:gt,getBlock:je}=K(Eo.store),or=Ge();return{getBlock:je,getSettings:gt,innerBlockImages:je(n)?.innerBlocks??p2e,multiGallerySelection:or.length&&or.every(mr=>ne(mr)==="core/gallery")}},[n]),U=(0,Cv.useMemo)(()=>M?.map(K=>({clientId:K.clientId,id:K.attributes.id,url:K.attributes.url,attributes:K.attributes,fromSavedContent:!!K.originalContent})),[M]),H=zq(M),G=Lq(U,H),Y=c?.enabled?U.filter(K=>K.attributes?.lightbox?.enabled===void 0||K.attributes?.lightbox?.enabled===!0).length>0:U.filter(K=>K.attributes.lightbox?.enabled).length>0,O=m?.map(({name:K,ratio:ne})=>({label:K,value:ne})),te=u?.map(({name:K,ratio:ne})=>({label:K,value:ne})),se=[{label:(0,Le._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...p?te||[]:[],...O||[]];(0,Cv.useEffect)(()=>{G?.forEach(K=>{S(),E(K.clientId,{...ce(K.attributes),id:K.id,align:void 0})})},[G]);let Q=Dq(H,i,A);function ce(K){let ne=K.id?H.find(({id:je})=>je===K.id):null,Ge;K.className&&K.className!==""&&(Ge=K.className);let gt;return K.linkTarget||K.rel?gt={linkTarget:K.linkTarget,rel:K.rel}:gt=II(y,r),{...Sq(ne,x),...NI(ne,_,K?.linkDestination),...gt,className:Ge,sizeSlug:x,caption:K.caption.length>0?K.caption:ne.caption?.raw,alt:K.alt||ne.alt_text,aspectRatio:k==="auto"?void 0:k}}function Ee(K){let ne=K.type;return MI.some(Ge=>ne?.indexOf(Ge)===0)||K.blob}function le(K){let ne=Object.prototype.toString.call(K)==="[object FileList]",Ge=ne?Array.from(K).map(Fe=>Fe.url?Fe:{blob:(0,AI.createBlobURL)(Fe)}):K;Ge.every(Ee)||z((0,Le.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let gt=Ge.filter(Fe=>Fe.url||Ee(Fe)).map(Fe=>Fe.url?Fe:{blob:Fe.blob||(0,AI.createBlobURL)(Fe)}),je=gt.reduce((Fe,zr,Kr)=>(Fe[zr.id]=Kr,Fe),{}),or=ne?M:M.filter(Fe=>gt.find(zr=>zr.id===Fe.attributes.id)),fn=gt.filter(Fe=>!or.find(zr=>Fe.id===zr.attributes.id)).map(Fe=>(0,Oq.createBlock)("core/image",{id:Fe.id,blob:Fe.blob,url:Fe.url,caption:Fe.caption,alt:Fe.alt}));C(n,or.concat(fn).sort((Fe,zr)=>je[Fe.attributes.id]-je[zr.attributes.id])),fn?.length>0&&P(fn[0].clientId)}function ee(K){z(K,{type:"snackbar"})}function ve(K){t({linkTo:K});let ne={},Ge=[];V(n).innerBlocks.forEach(je=>{Ge.push(je.clientId);let or=je.attributes.id?H.find(({id:mr})=>mr===je.attributes.id):null;ne[je.clientId]=NI(or,K,!1,je.attributes,c)}),E(Ge,ne,{uniqueByBlock:!0});let gt=[...d].find(je=>je.value===K);N((0,Le.sprintf)((0,Le.__)("All gallery image links updated to: %s"),gt.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Ne(K){t({columns:K})}function Re(){t({imageCrop:!g})}function Be(){t({randomOrder:!b})}function Ve(K){let ne=K?"_blank":void 0;t({linkTarget:ne});let Ge={},gt=[];V(n).innerBlocks.forEach(or=>{gt.push(or.clientId),Ge[or.clientId]=II(ne,or.attributes)}),E(gt,Ge,{uniqueByBlock:!0});let je=K?(0,Le.__)("All gallery images updated to open in new tab"):(0,Le.__)("All gallery images updated to not open in new tab");N(je,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function oe(K){t({sizeSlug:K});let ne={},Ge=[];V(n).innerBlocks.forEach(je=>{Ge.push(je.clientId);let or=je.attributes.id?H.find(({id:mr})=>mr===je.attributes.id):null;ne[je.clientId]=Bq(or,K)}),E(Ge,ne,{uniqueByBlock:!0});let gt=Q.find(je=>je.value===K);N((0,Le.sprintf)((0,Le.__)("All gallery image sizes updated to: %s"),gt?.label??K),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function J(K){t({aspectRatio:K});let ne={},Ge=[];V(n).innerBlocks.forEach(je=>{Ge.push(je.clientId),ne[je.clientId]={aspectRatio:K==="auto"?void 0:K}}),E(Ge,ne,!0);let gt=se.find(je=>je.value===K);N((0,Le.sprintf)((0,Le.__)("All gallery images updated to aspect ratio: %s"),gt?.label||K),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Cv.useEffect)(()=>{_||(S(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||js}))},[_]);let re=!!U.length,Me=re&&U.some(K=>!!K.id),Lt={addToGallery:!1,disableMediaButtons:U.some(K=>!K.id&&K.url?.indexOf("blob:")===0),value:{}},jt=(0,st.jsx)(Eo.MediaPlaceholder,{handleUpload:!1,icon:Cq,labels:{title:(0,Le.__)("Gallery"),instructions:u2e},onSelect:le,allowedTypes:MI,multiple:!0,onError:ee,...Lt}),ae=(0,Eo.useBlockProps)({className:w(o,"has-nested-images")}),Ue=(0,Eo.useInnerBlocksProps)(ae,{defaultBlock:m2e,directInsert:!0,orientation:"horizontal",renderAppender:!1}),Se=q();if(!re)return(0,st.jsxs)(Hq.View,{...Ue,children:[Ue.children,jt]});let Oe=_&&_!=="none";return(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(Eo.InspectorControls,{children:(0,st.jsxs)(Et.__experimentalToolsPanel,{label:(0,Le.__)("Settings"),resetAll:()=>{t({navigationButtonType:"icon",columns:void 0,imageCrop:!0,randomOrder:!1}),J("auto"),x!==xv&&oe(xv),y&&Ve(!1)},dropdownMenuProps:Se,children:[U.length>1&&(0,st.jsx)(Et.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Le.__)("Columns"),hasValue:()=>!!h&&h!==U.length,onDeselect:()=>Ne(void 0),children:(0,st.jsx)(Et.RangeControl,{label:(0,Le.__)("Columns"),value:h||lw(U.length),onChange:Ne,min:1,max:Math.min(s2e,U.length),required:!0,__next40pxDefaultSize:!0})}),Q?.length>0&&(0,st.jsx)(Et.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Le.__)("Resolution"),hasValue:()=>x!==xv,onDeselect:()=>oe(xv),children:(0,st.jsx)(Et.SelectControl,{label:(0,Le.__)("Resolution"),help:(0,Le.__)("Select the size of the source images."),value:x,options:Q,onChange:oe,hideCancelButton:!0,size:"__unstable-large"})}),(0,st.jsx)(Et.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Le.__)("Crop images to fit"),hasValue:()=>!g,onDeselect:()=>t({imageCrop:!0}),children:(0,st.jsx)(Et.ToggleControl,{label:(0,Le.__)("Crop images to fit"),checked:!!g,onChange:Re})}),(0,st.jsx)(Et.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Le.__)("Randomize order"),hasValue:()=>!!b,onDeselect:()=>t({randomOrder:!1}),children:(0,st.jsx)(Et.ToggleControl,{label:(0,Le.__)("Randomize order"),checked:!!b,onChange:Be})}),Oe&&(0,st.jsx)(Et.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Le.__)("Open images in new tab"),hasValue:()=>!!y,onDeselect:()=>Ve(!1),children:(0,st.jsx)(Et.ToggleControl,{label:(0,Le.__)("Open images in new tab"),checked:y==="_blank",onChange:Ve})}),se.length>1&&(0,st.jsx)(Et.__experimentalToolsPanelItem,{hasValue:()=>!!k&&k!=="auto",label:(0,Le.__)("Aspect ratio"),onDeselect:()=>J("auto"),isShownByDefault:!0,children:(0,st.jsx)(Et.SelectControl,{__next40pxDefaultSize:!0,label:(0,Le.__)("Aspect ratio"),help:(0,Le.__)("Set a consistent aspect ratio for all images in the gallery."),value:k,options:se,onChange:J})}),c?.allowEditing&&Y&&(0,st.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Le.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>f!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,st.jsx)(Et.__experimentalToggleGroupControl,{label:(0,Le.__)("Navigation button type"),value:f,onChange:K=>t({navigationButtonType:K}),isBlock:!0,__next40pxDefaultSize:!0,help:(0,Le.__)("Adjust the appearance of buttons in the lightbox."),children:c2e.map(K=>(0,st.jsx)(Et.__experimentalToggleGroupControlOption,{value:K.value,label:K.label},K.value))})})]})}),(0,st.jsx)(Eo.BlockControls,{group:"block",children:(0,st.jsx)(Et.ToolbarDropdownMenu,{icon:Qn,label:(0,Le.__)("Link"),children:({onClose:K})=>(0,st.jsx)(Et.MenuGroup,{children:d.map(ne=>{let Ge=_===ne.value;return(0,st.jsx)(Et.MenuItem,{isSelected:Ge,className:w("components-dropdown-menu__menu-item",{"is-active":Ge}),iconPosition:"left",icon:ne.icon,onClick:()=>{ve(ne.value),K()},role:"menuitemradio",info:ne.infoText,children:ne.label},ne.value)})})})}),(0,st.jsxs)(st.Fragment,{children:[!L&&(0,st.jsx)(Eo.BlockControls,{group:"other",children:(0,st.jsx)(Eo.MediaReplaceFlow,{allowedTypes:MI,handleUpload:!1,onSelect:le,name:(0,Le.__)("Add"),multiple:!0,mediaIds:U.filter(K=>K.id).map(K=>K.id),addToGallery:Me,variant:"toolbar"})}),(0,st.jsx)(Vq,{blockGap:r.style?.spacing?.blockGap,clientId:n})]}),(0,st.jsx)(Nq,{...e,isContentLocked:s,images:U,mediaPlaceholder:re?void 0:jt,blockProps:Ue,insertBlocksAfter:l,multiGallerySelection:L})]})}var cw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",usesContext:["galleryId"],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:[]},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:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},listView:!0},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var eu=a(T(),1),uw=a(v(),1);function Gq({attributes:e}){let{caption:t,columns:r,imageCrop:o}=e,n=w("has-nested-images",{[`columns-${r}`]:r!==void 0,"columns-default":r===void 0,"is-cropped":o}),i=eu.useBlockProps.save({className:n}),l=eu.useInnerBlocksProps.save(i);return(0,uw.jsxs)("figure",{...l,children:[l.children,!eu.RichText.isEmpty(t)&&(0,uw.jsx)(eu.RichText.Content,{tagName:"figcaption",className:w("blocks-gallery-caption",(0,eu.__experimentalGetElementClassName)("caption")),value:t})]})}var rl=a($(),1),Wq=a(Br(),1),RI=a($c(),1);var f2e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],$q=e=>e.map(t=>(0,rl.createBlock)(t.name,t.attributes,$q(t.innerBlocks||[])));function h2e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:n})=>(0,rl.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,RI.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",h2e);function g2e(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:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=n.map(({id:l})=>l);o.attributes.images=n,o.attributes.ids=i}return e}(0,RI.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",g2e);var v2e={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,rl.createBlock)("core/image",i)));return(0,rl.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=f2e(e).map(c=>parseInt(c,10)),l=js;return r==="post"?l=Gs:r==="file"&&(l=Us),(0,rl.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:o==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,rl.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,rl.createBlock)("core/image",{blob:(0,Wq.createBlobURL)(r)}));return(0,rl.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:r,alt:o,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h}})=>(0,rl.createBlock)("core/image",{align:e,url:r,alt:o,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:h})):(0,rl.createBlock)("core/image",{align:e})},{type:"block",blocks:["core/group"],variationName:"group-grid",transform:(e,t)=>{let{allowResize:r,aspectRatio:o,caption:n,columns:i,fixedHeight:l,ids:s,imageCrop:c,images:u,linkTarget:m,linkTo:p,navigationButtonType:d,randomOrder:f,shortCodeTransforms:h,sizeSlug:g,...b}=e;return(0,rl.createBlock)("core/group",{...b,layout:{type:"grid",columnCount:i??lw(t.length)}},$q(t))}}]},qq=v2e;var{name:Zq}=cw,Kq={icon:a1,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:qq,edit:Uq,save:Gq,deprecated:xq},b2e=()=>I({name:Zq,metadata:cw,settings:Kq});var jI={};Z(jI,{init:()=>B2e,metadata:()=>pw,name:()=>hw,settings:()=>uZ});var fw=a(B(),1);var va=a(T(),1),di=a(v(),1),VI=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}},y2e=[{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,di.jsx)(e,{...va.useInnerBlocksProps.save(va.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,di.jsx)(t,{...va.useBlockProps.save(),children:(0,di.jsx)("div",{className:"wp-block-group__inner-container",children:(0,di.jsx)(va.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:VI,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,va.getColorClassName)("background-color",t),l=(0,va.getColorClassName)("color",o),s=w(i,l,{"has-text-color":o||n,"has-background":t||r});return(0,di.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,di.jsx)("div",{className:"wp-block-group__inner-container",children:(0,di.jsx)(va.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:VI,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,va.getColorClassName)("background-color",t),l=(0,va.getColorClassName)("color",o),s=w(i,{"has-text-color":o||n,"has-background":t||r});return(0,di.jsx)("div",{className:s,style:{backgroundColor:i?void 0:r,color:l?void 0:n},children:(0,di.jsx)("div",{className:"wp-block-group__inner-container",children:(0,di.jsx)(va.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:VI,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,va.getColorClassName)("background-color",t),n=w(o,{"has-background":t||r});return(0,di.jsx)("div",{className:n,style:{backgroundColor:o?void 0:r},children:(0,di.jsx)(va.InnerBlocks.Content,{})})}}],Yq=y2e;var mw=a(F(),1),hi=a(T(),1),rZ=a(j(),1),oZ=a(B(),1),aZ=a(D(),1);var Qq=a(F(),1),Xq=a(T(),1),FI=a(B(),1),Jq=a($(),1),Dn=a(R(),1),Tv=a(j(),1),In=a(v(),1),_2e=(e="group")=>({group:(0,In.jsx)(Dn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Dn.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,In.jsx)(Dn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Dn.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,In.jsx)(Dn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Dn.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,In.jsx)(Dn.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,In.jsx)(Dn.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 eZ({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:l}=e,[s,c]=(0,Tv.useState)(!r&&!n&&!l&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,Tv.useEffect)(()=>{(r||n||l||i||o||t==="flex")&&c(!1)},[n,l,i,o,t,r]),[s,c]}function x2e({name:e,onSelect:t}){let r=(0,Qq.useSelect)(n=>n(Jq.store).getBlockVariations(e,"block"),[e]),o=(0,Xq.useBlockProps)({className:"wp-block-group__placeholder"});return(0,Tv.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,In.jsx)("div",{...o,children:(0,In.jsx)(Dn.Placeholder,{instructions:(0,FI.__)("Group blocks together. Select a layout:"),children:(0,In.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,FI.__)("Block variations"),children:r.map(n=>(0,In.jsx)("li",{children:(0,In.jsx)(Dn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:_2e(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var tZ=x2e;var fi=a(v(),1),{HTMLElementControl:k2e}=W(hi.privateApis);function w2e({tagName:e,onSelectTagName:t,clientId:r}){return(0,fi.jsx)(hi.InspectorControls,{group:"advanced",children:(0,fi.jsx)(k2e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,oZ.__)("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 C2e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,mw.useSelect)(k=>{let{getBlock:S,getSettings:C}=k(hi.store),E=S(o);return{hasInnerBlocks:!!(E&&E.innerBlocks.length),themeSupportsLayout:C()?.supportsLayout}},[o]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:m="default"}=u,p=i||m==="flex"||m==="grid",d=(0,rZ.useRef)(),f=(0,hi.useBlockProps)({ref:d}),[h,g]=eZ({attributes:e,usedLayoutType:m,hasInnerBlocks:n}),b;h?b=!1:n||(b=hi.InnerBlocks.ButtonBlockAppender);let y=(0,hi.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:b}),{selectBlock:_}=(0,mw.useDispatch)(hi.store),x=k=>{r(k.attributes),_(o,-1),g(!1)};return(0,fi.jsxs)(fi.Fragment,{children:[(0,fi.jsx)(w2e,{tagName:l,onSelectTagName:k=>r({tagName:k}),clientId:o}),h&&(0,fi.jsxs)(aZ.View,{children:[y.children,(0,fi.jsx)(tZ,{name:t,onSelect:x})]}),p&&!h&&(0,fi.jsx)(l,{...y}),!p&&!h&&(0,fi.jsx)(l,{...f,children:(0,fi.jsx)("div",{...y})})]})}var nZ=C2e;var pw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0,minWidth:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var dw=a(T(),1),iZ=a(v(),1);function lZ({attributes:{tagName:e}}){return(0,iZ.jsx)(e,{...dw.useInnerBlocksProps.save(dw.useBlockProps.save())})}var HI=a($(),1),T2e={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],r=e.reduce((n,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(n)?l:n},void 0),o=e.map(n=>(0,HI.createBlock)(n.name,n.attributes,n.innerBlocks));return(0,HI.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},sZ=T2e;var ba=a(B(),1);var OI={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ba.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,ba.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,ba.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,ba.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,ba.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,ba.__)("Six.")}}]},P2e=[{name:"group",title:(0,ba.__)("Group"),description:(0,ba.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:Bp},{name:"group-row",title:(0,ba._x)("Row","single horizontal line"),description:(0,ba.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:kB,example:OI},{name:"group-stack",title:(0,ba.__)("Stack"),description:(0,ba.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:RB,example:OI},{name:"group-grid",title:(0,ba.__)("Grid"),description:(0,ba.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Dl,example:OI}],cZ=P2e;var{name:hw}=pw,uZ={icon:Bp,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,fw.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,fw.__)("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,fw.__)("Read more")}}],viewportWidth:600},transforms:sZ,edit:nZ,save:lZ,deprecated:Yq,variations:cZ},B2e=()=>I({name:hw,metadata:pw,settings:uZ});var qI={};Z(qI,{init:()=>W2e,metadata:()=>yw,name:()=>xw,settings:()=>kw});var hm=a(B(),1),Ph=a($(),1);var qa=a(T(),1);var $s=a(v(),1),UI={className:!1,anchor:!0},gw={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},Sh=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},mZ=["left","right","center"],Th=e=>{let{align:t,...r}=e;return mZ.includes(t)?{...r,textAlign:t}:e},E2e={supports:UI,attributes:{...gw,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>he(Sh(Th(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:n,customTextColor:i}=e,l="h"+r,s=(0,qa.getColorClassName)("color",n),c=w({[s]:s});return(0,$s.jsx)(qa.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:o})}},N2e={attributes:{...gw,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>he(Sh(Th(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,l="h"+n,s=(0,qa.getColorClassName)("color",i),c=w({[s]:s,[`has-text-align-${t}`]:t});return(0,$s.jsx)(qa.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})},supports:UI},I2e={supports:UI,attributes:{...gw,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>he(Sh(Th(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,l="h"+n,s=(0,qa.getColorClassName)("color",i),c=w({[s]:s,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,$s.jsx)(qa.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:o},value:r})}},D2e={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:gw,isEligible:({align:e})=>mZ.includes(e),migrate:e=>he(Sh(Th(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,n="h"+o,i=w({[`has-text-align-${t}`]:t});return(0,$s.jsx)(n,{...qa.useBlockProps.save({className:i}),children:(0,$s.jsx)(qa.RichText.Content,{value:r})})}},L2e={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=w({[`has-text-align-${t}`]:t});return(0,$s.jsx)(n,{...qa.useBlockProps.save({className:i}),children:(0,$s.jsx)(qa.RichText.Content,{value:r})})},migrate:e=>he(Sh(Th(e)))},M2e={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=w({[`has-text-align-${t}`]:t});return(0,$s.jsx)(n,{...qa.useBlockProps.save({className:i}),children:(0,$s.jsx)(qa.RichText.Content,{value:r})})},migrate:e=>he(Sh(Th(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},A2e=[M2e,L2e,D2e,I2e,N2e,E2e],pZ=A2e;var fZ=a(B(),1),hZ=a(j(),1),bw=a(F(),1),gd=a(T(),1);var dZ=a(yv(),1),GI={},R2e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},z2e=e=>(0,dZ.default)(R2e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),vw=(e,t)=>{let r=z2e(t);if(r==="")return null;delete GI[e];let o=r,n=0;for(;Object.values(GI).includes(o);)n+=1,o=r+"-"+n;return o},WI=(e,t)=>{GI[e]=t};var Pv=a(v(),1);function V2e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:n,style:i,clientId:l}=e;vt(e);let{content:s,level:c,placeholder:u,anchor:m}=t,p="h"+c,d=(0,gd.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,bw.useSelect)(b=>{let{getGlobalBlockCount:y,getSettings:_}=b(gd.store);return{canGenerateAnchors:!!_().generateAnchors||y("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,bw.useDispatch)(gd.store);return(0,hZ.useEffect)(()=>{if(f)return!m&&s&&(h(),r({anchor:vw(l,s)})),WI(l,m),()=>WI(l,null)},[m,s,l,f]),(0,Pv.jsx)(Pv.Fragment,{children:(0,Pv.jsx)(gd.RichText,{identifier:"content",tagName:p,value:s,onChange:b=>{let y={content:b};f&&(!m||!b||vw(l,s)===m)&&(y.anchor=vw(l,b)),r(y)},onMerge:o,onReplace:n,onRemove:()=>n([]),placeholder:u||(0,fZ.__)("Heading"),...d})})}var gZ=V2e;var yw={$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 _w=a(T(),1),$I=a(v(),1);function vZ({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,$I.jsx)(o,{..._w.useBlockProps.save(),children:(0,$I.jsx)(_w.RichText.Content,{value:t})})}var fm=a($(),1);function bZ(e){return Number(e.substr(1))}var H2e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,anchor:o,style:n}=t,i=n?.typography?.textAlign;return(0,fm.createBlock)("core/heading",{...Hc(t,"core/heading",({content:l})=>({content:l})),content:r,anchor:o,...i&&{style:{typography:{textAlign:i}}}})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let r={children:e,attributes:t?[]:["style","id"]};return{h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},transform(e){let t=(0,fm.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=bZ(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,fm.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,fm.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,fm.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:r,style:o}=t,n=o?.typography?.textAlign;return(0,fm.createBlock)("core/paragraph",{...Hc(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},yZ=H2e;var Bv=a(B(),1);var O2e=[TT,BT,NT,DT,MT,RT],j2e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,Bv.sprintf)((0,Bv.__)("Heading %d"),e),description:(0,Bv.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:O2e[e-1],attributes:{level:e},scope:["block","transform"],keywords:[`h${e}`],isActive:t=>t.level===e}))],_Z=j2e;var{fieldsKey:U2e,formKey:G2e}=W(Ph.privateApis),{name:xw}=yw,kw={icon:VT,example:{attributes:{content:(0,hm.__)("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,hm.sprintf)((0,hm.__)("Level %1$s. %2$s"),o,r):(0,hm.sprintf)((0,hm.__)("Level %s. Empty."),o)},transforms:yZ,deprecated:pZ,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:gZ,save:vZ,variations:_Z};window.__experimentalContentOnlyInspectorFields&&(kw[U2e]=[{id:"content",label:(0,hm.__)("Content"),type:"text",Edit:"rich-text"}],kw[G2e]={fields:["content"]});var W2e=()=>{let e=I({name:xw,metadata:yw,settings:kw}),t=(0,Ph.getBlockType)(xw)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,Ph.unregisterBlockVariation)(xw,`h${r}`)}),e};var ZI={};Z(ZI,{init:()=>Z2e,metadata:()=>ww,name:()=>EZ,settings:()=>NZ});var BZ=a(B(),1);var ww={$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 gm=a(T(),1),Za=a(R(),1),Ln=a(B(),1),xZ=a(F(),1),kZ=a(X(),1);var wZ=a(Va(),1);var go=a(v(),1),q2e=e=>e.preventDefault();function CZ({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:n,frontPageId:i,frontPageTemplateId:l}=(0,xZ.useSelect)(g=>{let{getEntityRecord:b,getDefaultTemplateId:y,canUser:_}=g(kZ.store),x=b("root","__unstableBase")?.home,S=_("read",{kind:"root",name:"site"})?b("root","site"):null,C=S?.show_on_front==="page"?S?.page_on_front:null,E=C?null:y({slug:"front-page"});return{homeUrl:x,onNavigateToEntityRecord:g(gm.store).getSettings().onNavigateToEntityRecord,frontPageId:C,frontPageTemplateId:E}},[]),{textColor:s,backgroundColor:c,style:u}=r,{label:m,opensInNewTab:p,description:d}=e,f=q(),h=(0,gm.useBlockProps)({className:w("wp-block-navigation-item",{"has-text-color":!!s||!!u?.color?.text,[`has-${s}-color`]:!!s,"has-background":!!c||!!u?.color?.background,[`has-${c}-background-color`]:!!c}),style:{color:u?.color?.text,backgroundColor:u?.color?.background}});return(0,go.jsxs)(go.Fragment,{children:[(0,go.jsx)(gm.InspectorControls,{group:"content",children:(0,go.jsxs)(Za.__experimentalToolsPanel,{label:(0,Ln.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,go.jsx)(Za.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Ln.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,go.jsx)(Za.TextControl,{label:(0,Ln.__)("Text"),value:m?(0,wZ.__unstableStripHTML)(m):"",onChange:g=>{t({label:g})},autoComplete:"off"})}),(0,go.jsx)(Za.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ln.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,go.jsx)(Za.CheckboxControl,{label:(0,Ln.__)("Open in new tab"),checked:p,onChange:g=>t({opensInNewTab:g})})}),n&&(i||l)&&(0,go.jsx)(Za.Button,{variant:"secondary",onClick:()=>{n(i?{postId:i,postType:"page"}:{postId:l,postType:"wp_template"})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Ln.__)("Edit")}),o&&(0,go.jsx)(Za.Button,{variant:"secondary",href:o,target:"_blank",icon:Q0,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,Ln.__)("View")}),(0,go.jsx)(Za.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Ln.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,go.jsx)(Za.TextareaControl,{label:(0,Ln.__)("Description"),value:d||"",onChange:g=>{t({description:g})},help:(0,Ln.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,go.jsx)("div",{...h,children:(0,go.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:q2e,children:[(0,go.jsx)(gm.RichText,{identifier:"label",className:"wp-block-home-link__label",value:m??(0,Ln.__)("Home"),onChange:g=>{t({label:g})},"aria-label":(0,Ln.__)("Home link text"),placeholder:(0,Ln.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),d&&(0,go.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]})})]})}var SZ=a(T(),1),TZ=a(v(),1);function PZ(){return(0,TZ.jsx)(SZ.InnerBlocks.Content,{})}var{name:EZ}=ww,NZ={icon:HT,edit:CZ,save:PZ,example:{attributes:{label:(0,BZ._x)("Home Link","block example")}}},Z2e=()=>I({name:EZ,metadata:ww,settings:NZ});var QI={};Z(QI,{init:()=>X2e,metadata:()=>Tw,name:()=>qZ,settings:()=>ZZ});var $Z=a(B(),1);var Eh=a(B(),1),VZ=a(j(),1),bm=a(T(),1),ts=a(R(),1);var IZ=a(j(),1),Cw=a(T(),1),DZ=a(R(),1),LZ=a(F(),1),MZ=a(B(),1),vd=a(v(),1),K2e=`
24 +`,!gf.RichText.isEmpty(t)&&(0,hf.jsx)(gf.RichText.Content,{tagName:"figcaption",value:t})]})}},P7e=[T7e,E7e],gJ=P7e;var{name:hJ}=pc,bJ={icon:Nl,edit:lJ,save:cJ,transforms:dJ,variations:mJ,deprecated:gJ},B7e=()=>D({name:hJ,metadata:pc,settings:bJ});var nD={};J(nD,{init:()=>V7e,metadata:()=>S3,name:()=>FJ,settings:()=>VJ});var OJ=a(L(),1);var No=a(I(),1),Ml=a(L(),1),ir=a(y(),1),I7e={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=No.RichText.isEmpty(o)?(0,Ml.__)("PDF embed"):(0,Ml.sprintf)((0,Ml.__)("Embed of %s."),o),p=!No.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,ir.jsxs)("div",{...No.useBlockProps.save(),children:[c&&(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":d})}),p&&(0,ir.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ir.jsx)(No.RichText.Content,{value:o})}),s&&(0,ir.jsx)("a",{href:t,className:T("wp-block-file__button",(0,No.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":m,children:(0,ir.jsx)(No.RichText.Content,{value:l})})]})}},N7e={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=No.RichText.isEmpty(o)?(0,Ml.__)("PDF embed"):(0,Ml.sprintf)((0,Ml.__)("Embed of %s."),o),p=!No.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,ir.jsxs)("div",{...No.useBlockProps.save(),children:[c&&(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":d})}),p&&(0,ir.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,ir.jsx)(No.RichText.Content,{value:o})}),s&&(0,ir.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":m,children:(0,ir.jsx)(No.RichText.Content,{value:l})})]})}},M7e={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=No.RichText.isEmpty(r)?(0,Ml.__)("PDF embed"):(0,Ml.sprintf)((0,Ml.__)("Embed of %s."),r);return t&&(0,ir.jsxs)("div",{...No.useBlockProps.save(),children:[l&&(0,ir.jsx)(ir.Fragment,{children:(0,ir.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!No.RichText.isEmpty(r)&&(0,ir.jsx)("a",{href:o,target:n,rel:n?"noreferrer noopener":void 0,children:(0,ir.jsx)(No.RichText.Content,{value:r})}),i&&(0,ir.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,ir.jsx)(No.RichText.Content,{value:s})})]})}},L7e=[I7e,N7e,M7e],yJ=L7e;var tD=a(Ur(),1),u1=a(F(),1),c1=a(H(),1),hn=a(I(),1),wJ=a(W(),1),CJ=a(_e(),1),Lu=a(L(),1);var SJ=a(ae(),1),rD=a(br(),1),TJ=a(qt(),1);var fn=a(L(),1),gn=a(F(),1),vJ=a(I(),1);var Yo=a(y(),1);function _J({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=ee(),g=[{value:d,label:(0,fn.__)("URL")}];return m&&(g=[{value:d,label:(0,fn.__)("Media file")},{value:m,label:(0,fn.__)("Attachment page")}]),(0,Yo.jsx)(Yo.Fragment,{children:(0,Yo.jsxs)(vJ.InspectorControls,{children:[d.endsWith(".pdf")&&(0,Yo.jsxs)(gn.__experimentalToolsPanel,{label:(0,fn.__)("PDF settings"),resetAll:()=>{l(!0),u(600)},dropdownMenuProps:f,children:[(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>l(!0),children:(0,Yo.jsx)(gn.ToggleControl,{label:(0,fn.__)("Show inline embed"),help:s?(0,fn.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!s,onChange:l})}),s&&(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,Yo.jsx)(gn.RangeControl,{label:(0,fn.__)("Height in pixels"),min:C3,max:Math.max(eD,c),value:c,onChange:u})})]}),(0,Yo.jsxs)(gn.__experimentalToolsPanel,{label:(0,fn.__)("Settings"),resetAll:()=>{o(d),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==d,onDeselect:()=>o(d),children:(0,Yo.jsx)(gn.SelectControl,{label:(0,fn.__)("Link to"),value:p,options:g,onChange:o})}),(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,Yo.jsx)(gn.ToggleControl,{label:(0,fn.__)("Open in new tab"),checked:t,onChange:n})}),(0,Yo.jsx)(gn.__experimentalToolsPanelItem,{label:(0,fn.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!r,onDeselect:()=>i(!0),children:(0,Yo.jsx)(gn.ToggleControl,{label:(0,fn.__)("Show download button"),checked:r,onChange:i})})]})]})})}var kJ=()=>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)&&!(xJ("AcroPDF.PDF")||xJ("PDF.PdfCtrl"))),xJ=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var no=a(y(),1),C3=200,eD=2e3;function R7e({text:e,disabled:t}){let{createNotice:r}=(0,c1.useDispatch)(rD.store),o=(0,CJ.useCopyToClipboard)(e,()=>{r("info",(0,Lu.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,no.jsx)(u1.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t,children:(0,Lu.__)("Copy URL")})}function D7e({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,wJ.useState)(e.blob),{media:h}=(0,c1.useSelect)(R=>({media:n?R(SJ.store).getEntityRecord("postType","attachment",n,{context:"view"}):void 0}),[n]),{createErrorNotice:b}=(0,c1.useDispatch)(rD.store),{toggleSelection:_}=(0,c1.useDispatch)(hn.store);ic({url:f,onChange:v,onError:w});function v(R){if(!R||!R.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,tD.isBlobURL)(R.url)){g(R.url);return}let O=(R.mime||R.mime_type)==="application/pdf"||(0,TJ.getFilename)(R.url).toLowerCase().endsWith(".pdf"),j={displayPreview:O?e.displayPreview??!0:void 0,previewHeight:O?e.previewHeight??600:void 0};r({href:R.url,fileName:R.title,textLinkHref:R.url,id:R.id,fileId:`wp-block-file--media-${o}`,blob:void 0,...j}),g()}function w(R){r({href:void 0}),b(R,{type:"snackbar"})}function x(R){r({textLinkHref:R})}function k(R){r({textLinkTarget:R?"_blank":!1})}function C(R){r({showDownloadButton:R})}function S(R){r({displayPreview:R})}function P(R,O,j,V){_(!0);let G=parseInt(m+V.height,10);r({previewHeight:G})}function B(R){let O=Math.max(parseInt(R,10),C3);r({previewHeight:O})}let N=h&&h.link,E=(0,hn.useBlockProps)({className:T(!!f&&(0,u1.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),M=kJ()&&p;return!s&&!f?(0,no.jsx)("div",{...E,children:(0,no.jsx)(hn.MediaPlaceholder,{icon:(0,no.jsx)(hn.BlockIcon,{icon:ay}),labels:{title:(0,Lu.__)("File"),instructions:(0,Lu.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:v,onError:w,accept:"*"})}):(0,no.jsxs)(no.Fragment,{children:[(0,no.jsx)(_J,{hrefs:{href:s||f,textLinkHref:l,attachmentPage:N},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:x,changeOpenInNewWindow:k,changeShowDownloadButton:C,displayPreview:p,changeDisplayPreview:S,previewHeight:m,changePreviewHeight:B}),(0,no.jsxs)(hn.BlockControls,{group:"other",children:[(0,no.jsx)(hn.MediaReplaceFlow,{mediaId:n,mediaURL:s,accept:"*",onSelect:v,onError:w,onReset:()=>v(void 0)}),(0,no.jsx)(R7e,{text:s,disabled:(0,tD.isBlobURL)(s)})]}),(0,no.jsxs)("div",{...E,children:[M&&(0,no.jsxs)(u1.ResizableBox,{size:{height:m,width:"100%"},minHeight:C3,maxHeight:eD,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>_(!1),onResizeStop:P,showHandle:t,children:[(0,no.jsx)("object",{className:"wp-block-file__preview",data:s,type:"application/pdf","aria-label":(0,Lu.__)("Embed of the selected PDF file.")}),!t&&(0,no.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,no.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,no.jsx)(hn.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Lu.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:R=>r({fileName:Y_(R)}),href:l}),u&&(0,no.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,no.jsx)(hn.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Lu.__)("Download button text"),className:T("wp-block-file__button",(0,hn.__experimentalGetElementClassName)("button")),value:d,withoutInteractiveFormatting:!0,placeholder:(0,Lu.__)("Add text\u2026"),onChange:R=>r({downloadButtonText:Y_(R)})})})]})]})]})}var EJ=D7e;var S3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 Ru=a(I(),1),Ll=a(y(),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=Ru.RichText.isEmpty(o)?"PDF embed":o.toString(),p=!Ru.RichText.isEmpty(o),m=p?r:void 0;return t&&(0,Ll.jsxs)("div",{...Ru.useBlockProps.save(),children:[c&&(0,Ll.jsx)(Ll.Fragment,{children:(0,Ll.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":d})}),p&&(0,Ll.jsx)("a",{id:m,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Ll.jsx)(Ru.RichText.Content,{value:o})}),s&&(0,Ll.jsx)("a",{href:t,className:T("wp-block-file__button",(0,Ru.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":m,children:(0,Ll.jsx)(Ru.RichText.Content,{value:l})})]})}var _2=a(Ur(),1),bf=a(te(),1),IJ=a(H(),1),NJ=a(ae(),1),MJ=a(L(),1),LJ=a(qt(),1),BJ=(0,MJ._x)("Download","button label"),oD=(e,t,r)=>({type:"block",blocks:[e],isMatch:({id:o})=>{if(!o)return!1;let{getEntityRecord:n}=(0,IJ.select)(NJ.store),i=n("postType","attachment",o,{context:"view"});return!!i&&i.mime_type.includes(t)},transform:o=>(0,bf.createBlock)(e,{[r]:o.href,caption:o.fileName,id:o.id,anchor:o.anchor})}),O7e={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(r=>{let o=(0,_2.createBlobURL)(r);r.type.startsWith("video/")?t.push((0,bf.createBlock)("core/video",{blob:(0,_2.createBlobURL)(r)})):r.type.startsWith("image/")?t.push((0,bf.createBlock)("core/image",{blob:(0,_2.createBlobURL)(r)})):r.type.startsWith("audio/")?t.push((0,bf.createBlock)("core/audio",{blob:(0,_2.createBlobURL)(r)})):t.push((0,bf.createBlock)("core/file",{blob:o,fileName:r.name,downloadButtonText:BJ}))}),t}},{type:"block",blocks:["core/audio","core/video","core/image"],transform:e=>{let t=e.src??e.url;return(0,bf.createBlock)("core/file",{href:t,fileName:e.caption||(0,LJ.getFilename)(t),textLinkHref:t,id:e.id,anchor:e.anchor,downloadButtonText:BJ})}}],to:[oD("core/audio","audio","src"),oD("core/video","video","src"),oD("core/image","image","url")]},RJ=O7e;var DJ=a(L(),1),F7e=[{name:"default",isDefault:!0,attributes:{downloadButtonText:(0,DJ._x)("Download","button label")}}],AJ=F7e;var{name:FJ}=S3,VJ={icon:ay,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,OJ._x)("Armstrong_Small_Step","Name of the file")}},transforms:RJ,deprecated:yJ,edit:EJ,save:PJ,variations:AJ},V7e=()=>D({name:FJ,metadata:S3,settings:VJ});var bD={};J(bD,{init:()=>O9e,metadata:()=>H3,name:()=>tte,settings:()=>rte});var qr=a(I(),1),jJ=a(te(),1);var kc="none",wc="media",d1="lightbox",Cc="attachment",zJ="file",HJ="post",x2="large",T3=8;var Ze=a(y(),1),UJ="file",WJ="post";function p1(e){return Math.min(3,e?.images?.length)}function z7e(e,t){switch(t){case UJ:return{href:e?.source_url||e?.url,linkDestination:wc};case WJ:return{href:e?.link,linkDestination:Cc};case wc:return{href:e?.source_url||e?.url,linkDestination:wc};case Cc:return{href:e?.link,linkDestination:Cc};case kc:return{href:void 0,linkDestination:kc}}return{}}function m1(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let r=e.images.map(s=>H7e(s,e.sizeSlug,t)),{images:o,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},r]}function H7e(e,t,r){return(0,jJ.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...z7e(e,r)})}var j7e={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=qr.useBlockProps.save({className:n}),s=qr.useInnerBlocksProps.save(i);return(0,Ze.jsxs)("figure",{...s,children:[s.children,!qr.RichText.isEmpty(t)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},U7e={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=p1(e),imageCrop:o,caption:n,linkTo:i}=e,s=`columns-${r} ${o?"is-cropped":""}`;return(0,Ze.jsxs)("figure",{...qr.useBlockProps.save({className:s}),children:[(0,Ze.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let c;switch(i){case UJ:c=l.fullUrl||l.url;break;case WJ:c=l.link;break}let u=(0,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[c?(0,Ze.jsx)("a",{href:c,children:u}):u,!qr.RichText.isEmpty(l.caption)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!qr.RichText.isEmpty(n)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return m1(e)}},W7e={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 m1(e)},save({attributes:e}){let{images:t,columns:r=p1(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Ze.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ze.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,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[l?(0,Ze.jsx)("a",{href:l,children:c}):c,!qr.RichText.isEmpty(s.caption)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!qr.RichText.isEmpty(n)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},G7e={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 m1(e)},save({attributes:e}){let{images:t,columns:r=p1(e),imageCrop:o,caption:n,linkTo:i}=e;return(0,Ze.jsxs)("figure",{className:`columns-${r} ${o?"is-cropped":""}`,children:[(0,Ze.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,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[l?(0,Ze.jsx)("a",{href:l,children:c}):c,!qr.RichText.isEmpty(s.caption)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!qr.RichText.isEmpty(n)&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},$7e={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=p1(e),imageCrop:o,linkTo:n}=e;return(0,Ze.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,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[s?(0,Ze.jsx)("a",{href:s,children:l}):l,i.caption&&i.caption.length>0&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return m1(e)}},q7e={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 m1(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:r=p1(e),imageCrop:o,linkTo:n}=e;return(0,Ze.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,Ze.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,Ze.jsx)("li",{className:"blocks-gallery-item",children:(0,Ze.jsxs)("figure",{children:[s?(0,Ze.jsx)("a",{href:s,children:l}):l,i.caption&&i.caption.length>0&&(0,Ze.jsx)(qr.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},Z7e={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=p1(e),align:o,imageCrop:n,linkTo:i}=e,s=T(`columns-${r}`,{alignnone:o==="none","is-cropped":n});return(0,Ze.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,Ze.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id});return(0,Ze.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Ze.jsx)("a",{href:c,children:u}):u},l.id||l.url)})})},migrate(e){return m1(e)}},GJ=[j7e,U7e,W7e,G7e,$7e,q7e,Z7e];var Bt=a(F(),1),fo=a(I(),1),dp=a(W(),1),je=a(L(),1),E2=a(H(),1),qee=a(te(),1),gD=a(Ur(),1),Zee=a(br(),1);var $J=a(I(),1);var qJ=a(y(),1),E3=(0,qJ.jsx)($J.BlockIcon,{icon:gm});function P3(e){return e?Math.min(3,e):3}function B3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Sc(e){let t=B3(e)?e.type:void 0;return typeof t!="string"||t===""||t==="flex"}var I3=(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 Tc=20,yf="none",rp="media",op="attachment",aD="custom",ZJ=["noopener"],np=["image"];var iD=["flex","grid"],ap="full";function k2(e,t,r,o,n){switch(r||t){case zJ:case wc:return{href:e?.source_url||e?.url,linkDestination:rp,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case HJ:case Cc:return{href:e?.link,linkDestination:op,lightbox:n?.enabled?{...o?.lightbox,enabled:!1}:void 0};case d1:return{href:void 0,lightbox:n?.enabled?void 0:{...o?.lightbox,enabled:!0},linkDestination:yf};case kc:return{href:void 0,linkDestination:yf,lightbox:void 0}}return{}}function KJ(e){let[t,r=1]=e.split("/").map(Number),o=t/r;return o===1/0||o===0?NaN:o}function K7e(e){let t=e;return e!==void 0&&t&&(ZJ.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 w2(e,{rel:t}){let r=e?"_blank":void 0,o;return!r&&!t?o=void 0:o=K7e(t),{linkTarget:r,rel:o}}function YJ(e,t){let r=e?.media_details?.sizes?.[t]?.source_url;return r?{url:r,width:void 0,height:void 0,sizeSlug:t}:{}}function sD(e){return np.some(t=>e.type.indexOf(t)===0)}function vf({x:e,y:t}={x:.5,y:.5}){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}var lD=a(L(),1);var N3=a(y(),1);function QJ(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=Sc(m);return(0,N3.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,N3.jsx)(Zo,{attributes:t,setAttributes:o,isSelected:r,insertBlocksAfter:n,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,lD.__)("Gallery caption text"),placeholder:(0,lD.__)("Add gallery caption")})]})}var XJ=a(W(),1);function JJ(e,t,r){return(0,XJ.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 M3=a(W(),1);function eee(e,t){let[r,o]=(0,M3.useState)([]);return(0,M3.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 ree=a(H(),1),oee=a(ae(),1),tee=[];function nee(e){return(0,ree.useSelect)(t=>{let r=e.map(o=>o.attributes.id).filter(o=>o!==void 0);return r.length===0?tee:t(oee.store).getEntityRecords("postType","attachment",{include:r.join(","),per_page:-1,orderby:"include"})??tee},[e])}var Rl=a(I(),1),Ree=a(H(),1);var _f=(e,t,r)=>{let o=Array.isArray(t)?t:t.split("."),n=e;return o.forEach(i=>{n=n?.[i]}),n??r};var see=a(iee(),1);function Y7e(e,t){if(!e||!t)return e;if(typeof e=="object"&&"ref"in e&&e?.ref){let r=(0,see.getCSSValueFromRawStyle)(_f(t,e.ref));return typeof r=="object"&&r!==null&&"ref"in r&&r?.ref?void 0:r===void 0?e:r}return e}function Q7e(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 lee(e,t){if(!e||!t)return e;let r=Y7e(e,t);return typeof r=="object"&&r!==null&&"url"in r&&r?.url?{...r,url:Q7e(r.url,t?._links?.["wp:theme-file"])}:r}function X7e(e=[]){let t={r:[],g:[],b:[],a:[]};return e.forEach(r=>{let o=yr(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 dee(e){return`${e}{filter:none}`}function pee(e,t){return`${e}{filter:url(#${t})}`}function mee(e,t){let r=X7e(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 fee={mobile:"480px",tablet:"782px"},gee=/^(\d+|\d*\.\d+)(px|em|rem)$/,J7e=16;function e9e(e){return"mobile"in e||"tablet"in e}function t9e(e){return!e||typeof e!="object"?{}:e9e(e)?e:e.settings?.viewport??{}}function r9e(e){return typeof e=="string"&&gee.test(e.trim())}function cD(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(gee);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*J7e}function uD(e){let t=t9e(e),r={},o={};Object.keys(fee).forEach(l=>{let c=l,u=t[c],d=cD(u);d!==void 0&&r9e(u)&&(r[c]=u.trim(),o[c]=d)});let n=Object.keys(r);if(!n.length)return{...fee};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 hee(e){let t=uD(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 L3(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=_f(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 mD="default";function _ee(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===mD)&&(!r||r===mD)}function o9e(e){return _ee(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==mD)}function n9e(e,t){let r=o9e(t);return r.length?_f(e,r):e}var a9e=new Set(["blocks","variations","css"]),dD=Object.freeze({value:{},sources:{}}),i9e={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function ip(e){let t=i9e[e];return t?{...t}:null}function sp(e,t){return!e||!t?null:{styles:e,source:t}}function s9e(e){return e.join(".")}function l9e(e){return{...e}}function xee(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function pD(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function lp(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!a9e.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}xee(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var bee=new Set(["backgroundImage"]);function kee(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(xee(l))continue;if(pD(l)){if(l.ref.trim()==="")continue;let u=_f(r,l.ref);if(u==null||pD(u))continue;l=u}let c=[...i,s];if(!bee.has(s)&&l!==null&&typeof l=="object"&&!Array.isArray(l)&&!pD(l)){let u=e[s]&&typeof e[s]=="object"&&!Array.isArray(e[s])?e[s]:{};e[s]=kee({...u},l,r,o,n,c)}else e[s]=bee.has(s)&&l!==null&&typeof l=="object"&&!Array.isArray(l)?{...l}:l,o&&n&&(n[s9e(c)]=l9e(o))}return e}function R3(e,t){if(!e)return null;let r=n9e(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var c9e=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function u9e(e){return e.startsWith("elements.")?!1:c9e.some(t=>e===t||e.startsWith(`${t}.`))}function wee(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"&&(wee(n,o),Object.keys(n).length===0&&delete e[r])}function d9e(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&u9e(r)&&(wee(e,r.split(".")),delete t[r])}function p9e(e,t,r){let o=e?.background?.backgroundImage;if(!o)return;let n=lee(o,{...t,_links:r??void 0});n!==void 0&&(e.background.backgroundImage=n)}function yee(e,{blockName:t,variationName:r=null,elements:o=null,viewport:n=null,pseudoState:i=null}={}){if(!e||!e.styles||!t)return dD;let s=e.styles,l={viewport:n,pseudoState:i},c=s,u=s.blocks?.[t]??null,d=(o??[]).map(b=>s.elements?.[b]??null).filter(b=>!!b),p=r?L3(e,t,r)??null:null,m=[sp(lp(c),ip("root")),...d.map(b=>sp(lp(b),ip("element"))),u?sp(lp(u),ip("block")):null,p?sp(lp(p),ip("blockVariation")):null];_ee(l)||m.push(sp(lp(R3(c,l)),ip("root")),...d.map(b=>sp(lp(R3(b,l)),ip("element"))),u?sp(lp(R3(u,l)),ip("block")):null,p?sp(lp(R3(p,l)),ip("blockVariation")):null);let f=m.filter(Boolean);if(f.length===0)return dD;let g={},h=f.reduce((b,_)=>kee(b,_.styles,e,_.source,g),{});return d9e(h,g),p9e(h,e,e._links??null),{value:h,sources:g}}var m9e={},vee=new WeakMap;function Cee(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return yee(e,t);let o=vee.get(r);o||(o=new WeakMap,vee.set(r,o));let n=e?._links??m9e,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=yee(e,t);return i.set(l,c),c}var See=a(PM(),1),{lock:Tee,unlock:_st}=(0,See.__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 f1={};Tee(f1,{getResponsiveMediaQueries:hee,getViewportBreakpoints:uD,getViewportBreakpointValueInPixels:cD,getDuotoneFilter:mee,getDuotoneStylesheet:pee,getDuotoneUnsetStylesheet:dee,resolveStyle:Cee,getVariationStyle:L3});function C2(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function D3(e){return Number.isInteger(e)&&e>=1&&e<=T3}var f9e=/^(auto|\d+(\.\d+)?(\s*\/\s*\d+(\.\d+)?)?)$/;function g9e(e){return typeof e=="string"&&f9e.test(e.trim())}function A3(e,t){return!C2(e)||!C2(e[t])?{}:e[t]}function Eee(e){if(!C2(e))return e;let t=Object.entries(e).filter(([,r])=>r!==void 0);return t.length?Object.fromEntries(t):void 0}function Pee({style:e,viewport:t,baseSettings:r,settings:o}){let n=C2(e)?e:{},i={...A3(n,t)};Object.entries(o).forEach(([c,u])=>{u===void 0||u===r[c]?delete i[c]:i[c]=u});let s=Eee(i),l={...n};return s?l[t]=s:delete l[t],Eee(l)}function Bee(e){return`${e}.wp-block-gallery.has-nested-images`}function h9e(e){return`${Bee(e)}:where(.is-layout-flex)`}function Iee(e){return`${h9e(e)} figure.wp-block-image:not(#individual-image)`}function b9e(e,t){let r=t===1?"100%":`calc((100% - (var(--wp--style--unstable-gallery-gap, 16px) * ${t-1})) / ${t})`;return`${Iee(e)}{width:${r} !important;}`}function y9e(e,t){let r=Iee(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 v9e(e,t){let r=`${Bee(e)} figure.wp-block-image:not(#individual-image) img`,o=t.trim();return o==="auto"?`${r}{aspect-ratio:revert-layer !important;}`:`${r}{aspect-ratio:${o} !important;object-fit:cover !important;}`}function Nee(e,t,r){return C2(r)?Object.entries(r).map(([o,n])=>{if(typeof n!="string")return"";let i=A3(t,o),s="";return D3(i.columns)&&(s+=b9e(e,i.columns)),typeof i.imageCrop=="boolean"&&(s+=y9e(e,i.imageCrop)),g9e(i.aspectRatio)&&(s+=v9e(e,i.aspectRatio)),s?`${n}{${s}}`:""}).join(""):""}var{getResponsiveMediaQueries:_9e}=le(f1),{globalStylesDataKey:x9e}=le(Rl.privateApis),k9e="core/gallery",O3="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";function Mee(e,t){let r=O3;return t&&(r=typeof t=="string"?(0,Rl.__experimentalGetGapCSSValue)(t)||O3:(0,Rl.__experimentalGetGapCSSValue)(t?.left)||O3),`${e} {
54 + --wp--style--unstable-gallery-gap: ${r==="0"?"0px":r}
55 + }`}function Lee(e){if(Object.hasOwn(e?.spacing||{},"blockGap"))return e.spacing.blockGap}function Dee({style:e,clientId:t,isFlexLayout:r}){let o=`.wp-block-gallery-${t}`,[n]=(0,Rl.useSettings)("viewport"),i=(0,Ree.useSelect)(c=>c(Rl.store).getSettings()?.[x9e],[]),s=_9e(n),l="";if(r){let c=i?.blocks?.[k9e]||{},u=Lee(e),d=c?.spacing?.blockGap??O3;l+=Mee(o,u===void 0?d:u),Object.entries(s).forEach(([m,f])=>{let g=Lee(e?.[m]),h=u===void 0?c?.[m]?.spacing?.blockGap:void 0,b=g===void 0?h:g;b!=null&&(l+=`${f}{${Mee(o,b)}}`)})}return l+=Nee(o,e,s),(0,Rl.useStyleOverride)({css:l}),null}var T2=a(W(),1),b1=a(H(),1),Vee=a(I(),1),z3=a(ae(),1),zee=a(te(),1);var F3=a(L(),1),cp="core/attached-media",g1="date",h1="desc",w9e={[cp]:{title:(0,F3.__)("Use attached images"),description:(0,F3.__)("Images attached to the post."),emptyMessage:(0,F3.__)("Images attached to the post will appear here.")}};function V3(e){return w9e[e]}var S2=100;function Aee(e,{postId:t}){let{source:r,args:o={}}=e??{};return r===cp&&t?{parent:t,per_page:S2,media_type:"image",orderby:o.orderBy==="date"||o.orderBy==="title"?o.orderBy:g1,order:o.order==="asc"||o.order==="desc"?o.order:h1}:null}var Oee=[];function C9e(e,t){let{sizeSlug:r,linkTo:o,linkTarget:n,aspectRatio:i}=t,s=!!i&&i!=="auto";return{id:e.id,...I3(e,r),...k2(e,o),...w2(n,t),sizeSlug:r,caption:e.caption?.raw||"",alt:e.alt_text||"",aspectRatio:s?i:void 0,scale:s?"cover":void 0}}function Fee(e,t){return e.map(r=>(0,zee.createBlock)("core/image",C9e(r,t)))}function Hee({attributes:e,setAttributes:t,clientId:r,postId:o,postType:n}){let{dynamicContent:i}=e,s=!!n,l=V3(i?.source),c=i?.args?.orderBy??g1,u=i?.args?.order??h1,d=(0,b1.useRegistry)(),{replaceInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=(0,b1.useDispatch)(Vee.store),f=(0,T2.useMemo)(()=>i?Aee(i,{postId:o}):null,[i,o]),{dynamicMedia:g,dynamicMediaTotal:h,isResolvingDynamic:b}=(0,b1.useSelect)(R=>{if(!f)return{dynamicMedia:Oee,dynamicMediaTotal:0,isResolvingDynamic:!1};let O=["postType","attachment",f];return{dynamicMedia:R(z3.store).getEntityRecords(...O)??Oee,dynamicMediaTotal:R(z3.store).getEntityRecordsTotalItems(...O)??0,isResolvingDynamic:!R(z3.store).hasFinishedResolution("getEntityRecords",O)}},[f]),_=h>S2,{sizeSlug:v,linkTo:w,linkTarget:x,aspectRatio:k}=e,C=(0,T2.useMemo)(()=>({sizeSlug:v,linkTo:w,linkTarget:x,aspectRatio:k}),[v,w,x,k]),S=(0,T2.useMemo)(()=>Fee(g,C),[g,C]),P=(0,T2.useMemo)(()=>({allowResize:e.allowResize??!1,imageCrop:e.imageCrop,fixedHeight:e.fixedHeight,navigationButtonType:e.navigationButtonType}),[e.allowResize,e.imageCrop,e.fixedHeight,e.navigationButtonType]);function B(){d.batch(()=>{t({dynamicContent:{source:cp}}),m(),p(r,[])})}function N(){d.batch(()=>{p(r,Fee(g,C)),m(),t({dynamicContent:void 0})})}function E(R,O){let j={...i?.args};delete j.orderBy,delete j.order,R!==void 0&&(R!==g1||O!==h1)&&(j.orderBy=R,j.order=O);let V={...i};Object.keys(j).length?V.args=j:delete V.args,t({dynamicContent:V})}function M(){t({dynamicContent:{source:i.source}})}return{dynamicContent:i,canUseDynamicSource:s,sourceDescriptor:l,hasMoreImagesThanCap:_,dynamicMediaTotal:h,sourceOrderby:c,sourceOrder:u,dynamicMedia:g,dynamicImageBlocks:S,isResolvingDynamic:b,galleryContext:P,enableDynamicMode:B,convertToStatic:N,setSourceOrder:E,resetSource:M}}var Qt=a(L(),1),y1=a(W(),1),Zr=a(F(),1),up=a(I(),1);var mt=a(y(),1),S9e=[{label:(0,Qt.__)("Newest to oldest"),value:"date/desc"},{label:(0,Qt.__)("Oldest to newest"),value:"date/asc"},{label:(0,Qt.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Qt.__)("Z \u2192 A"),value:"title/desc"}];function T9e({orderby:e,order:t,onChange:r}){return(0,mt.jsx)(Zr.SelectControl,{label:(0,Qt.__)("Order by"),value:`${e}/${t}`,options:S9e,onChange:o=>{let[n,i]=o.split("/");r({orderby:n,order:i})}})}function jee({onConfirm:e,onCancel:t}){return(0,mt.jsx)(Zr.__experimentalConfirmDialog,{isOpen:!0,title:(0,Qt.__)("Detach Gallery"),__experimentalHideHeader:!1,confirmButtonText:(0,Qt.__)("Detach"),onConfirm:e,onCancel:t,size:"medium",children:(0,Qt.__)("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 Uee({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,[b,_]=(0,y1.useState)(!1),[v,w]=(0,y1.useState)(!1);function x(){r?_(!0):d()}return h?(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsxs)(Zr.__experimentalToolsPanel,{label:(0,Qt.__)("Source"),resetAll:p,dropdownMenuProps:t,children:[(0,mt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,mt.jsx)("p",{className:"wp-block-gallery__source-description",children:i?.description??(0,Qt.__)("Dynamic images.")}),(0,mt.jsx)(Zr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>w(!0),disabled:m,accessibleWhenDisabled:!0,children:(0,Qt.__)("Detach Gallery")})]}),f&&(0,mt.jsx)(Zr.Notice,{className:"wp-block-gallery__source-notice",status:"warning",isDismissible:!1,children:(0,Qt.sprintf)((0,Qt.__)("Only the first %1$d of %2$d images will be displayed."),S2,g)}),(0,mt.jsx)(Zr.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Qt.__)("Order by"),hasValue:()=>s!==g1||l!==h1,onDeselect:()=>c(void 0,void 0),children:(0,mt.jsx)(T9e,{orderby:s,order:l,onChange:({orderby:k,order:C})=>c(k,C)})})]}),v&&(0,mt.jsx)(jee,{onConfirm:()=>{u(),w(!1)},onCancel:()=>w(!1)})]}):n?(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(Zr.PanelBody,{title:(0,Qt.__)("Source"),children:(0,mt.jsxs)("div",{className:"wp-block-gallery__source-settings",children:[(0,mt.jsx)("p",{className:"wp-block-gallery__source-description",children:(0,Qt.__)("Images added to the gallery.")}),(0,mt.jsx)(Zr.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:x,children:(0,Qt.__)("Use attached images")})]})}),b&&(0,mt.jsx)(Zr.__experimentalConfirmDialog,{isOpen:!0,title:(0,Qt.__)("Use images attached to the post?"),__experimentalHideHeader:!1,confirmButtonText:(0,Qt.__)("Use attached images"),onConfirm:()=>{d(),_(!1)},onCancel:()=>_(!1),size:"medium",children:(0,Qt.__)("The images in this gallery will be replaced, but will remain in the media library.")})]}):null}function E9e({imageBlocks:e,layout:t}){let{children:r,ref:o,className:n}=(0,up.__experimentalUseBlockPreview)({blocks:e,layout:t});return(0,mt.jsx)("div",{ref:o,className:n,style:{display:"contents"},children:r})}function Wee({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,up.useBlockEditingMode)(),[h,b]=(0,y1.useState)(!1),_=(0,y1.useMemo)(()=>Sc(o.layout)?{...o.layout,type:"flex"}:o.layout,[o.layout]),v=m?(0,Qt.__)("Loading images\u2026"):u?.emptyMessage??(0,Qt.__)("Dynamic images will appear here.");return(0,mt.jsxs)(mt.Fragment,{children:[g==="default"&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(up.BlockControls,{group:"other",children:(0,mt.jsx)(Zr.ToolbarButton,{onClick:()=>b(!0),disabled:m,children:(0,Qt.__)("Detach")})}),h&&(0,mt.jsx)(jee,{onConfirm:()=>{f(),b(!1)},onCancel:()=>b(!1)})]}),(0,mt.jsxs)("figure",{...t,children:[d.length?(0,mt.jsx)(up.BlockContextProvider,{value:p,children:(0,mt.jsx)(E9e,{imageBlocks:d,layout:_})}):(0,mt.jsx)(Zr.Placeholder,{icon:E3,label:(0,Qt.__)("Gallery"),instructions:v,children:m&&(0,mt.jsx)(Zr.Spinner,{})}),(0,mt.jsx)(Zo,{attributes:o,setAttributes:n,isSelected:i,insertBlocksAfter:s,showToolbarButton:!c&&!l,className:"blocks-gallery-caption",label:(0,Qt.__)("Gallery caption text"),placeholder:(0,Qt.__)("Add gallery caption")})]}),r.children]})}var ct=a(y(),1),Gee=[{icon:mm,label:(0,je.__)("Link images to attachment pages"),value:Cc,noticeText:(0,je.__)("Attachment Pages")},{icon:Sd,label:(0,je.__)("Link images to media files"),value:wc,noticeText:(0,je.__)("Media Files")},{icon:fm,label:(0,je.__)("Enlarge on click"),value:d1,noticeText:(0,je.__)("Lightbox effect"),infoText:(0,je.__)("Scale images with a lightbox effect")},{icon:Fy,label:(0,je._x)("None","Media item link option"),value:kc,noticeText:(0,je.__)("None")}],P9e=[{label:(0,je.__)("Icon"),value:"icon"},{label:(0,je.__)("Text"),value:"text"},{label:(0,je.__)("Both"),value:"both"}],fD=["image"],B9e=(0,je.__)("Drag and drop images, upload, or choose from your library."),I9e={name:"core/image"},$ee=[];function Kee(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,fo.useBlockEditingMode)(),[f,g,h,b]=(0,fo.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),_=f?.allowEditing?Gee:Gee.filter(ne=>ne.value!==d1),{align:v,navigationButtonType:w,columns:x,imageCrop:k,randomOrder:C,linkTarget:S,linkTo:P,sizeSlug:B,aspectRatio:N,layout:E}=r,M=Sc(E),R=(0,dp.useRef)(E),{__unstableMarkNextChangeAsNotPersistent:O,replaceInnerBlocks:j,updateBlockAttributes:V,selectBlock:G}=(0,E2.useDispatch)(fo.store),{createSuccessNotice:$,createErrorNotice:z}=(0,E2.useDispatch)(Zee.store);(0,dp.useEffect)(()=>{let ne=R.current;if(R.current=E,!B3(ne)||!B3(E)||ne.type===E.type)return;let He={...E},bt=!1;!Object.hasOwn(E,"columnCount")&&Number.isInteger(ne.columnCount)&&ne.columnCount>0&&(He.columnCount=ne.columnCount,bt=!0),!Object.hasOwn(E,"minimumColumnWidth")&&typeof ne.minimumColumnWidth=="string"&&(He.minimumColumnWidth=ne.minimumColumnWidth,bt=!0),bt&&(R.current=He,O(),t({layout:He}))},[E,t,O]);let{getBlock:K,getSettings:q,innerBlockImages:Y,multiGallerySelection:oe,selectedStyleState:Z}=(0,E2.useSelect)(ne=>{let{getBlockName:He,getMultiSelectedBlockClientIds:bt,getSettings:pe,getBlock:ve,getSelectedBlockStyleState:Ye}=ne(fo.store),dt=bt();return{getBlock:ve,getSettings:pe,innerBlockImages:ve(n)?.innerBlocks??$ee,multiGallerySelection:dt.length&&dt.every($t=>He($t)==="core/gallery"),selectedStyleState:Ye(n)}},[n]),U=Z?.viewport&&Z.viewport!=="default",X=U?A3(r.style,Z.viewport):{},Q=D3(x)?x:void 0,ie=typeof k=="boolean"?k:!0,me=N||"auto",xe=U&&Object.hasOwn(X,"columns")&&D3(X.columns),Be=U&&Object.hasOwn(X,"imageCrop")&&typeof X.imageCrop=="boolean",se=U&&Object.hasOwn(X,"aspectRatio")&&typeof X.aspectRatio=="string"&&!!X.aspectRatio,he=xe?X.columns:Q,ze=Be?X.imageCrop:ie,qe=se?X.aspectRatio:me,ce=(0,dp.useMemo)(()=>Y?.map(ne=>({clientId:ne.clientId,id:ne.attributes.id,url:ne.attributes.url,attributes:ne.attributes,fromSavedContent:!!ne.originalContent})),[Y]),ge=nee(Y),Qe=eee(ce,ge),ye=!!ce.length,fe=!!r.dynamicContent,de=Hee({attributes:r,setAttributes:t,clientId:n,postId:d,postType:p}),re=fe?de.dynamicMedia.length:ce.length,Pe;fe?Pe=P===d1:f?.enabled?Pe=ce.filter(ne=>ne.attributes?.lightbox?.enabled===void 0||ne.attributes?.lightbox?.enabled===!0).length>0:Pe=ce.filter(ne=>ne.attributes.lightbox?.enabled).length>0;let Se=h?.map(({name:ne,ratio:He})=>({label:ne,value:He})),rr=g?.map(({name:ne,ratio:He})=>({label:ne,value:He})),Ft=[{label:(0,je._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...b?rr||[]:[],...Se||[]];(0,dp.useEffect)(()=>{Qe?.forEach(ne=>{O(),V(ne.clientId,{...Wo(ne.attributes),id:ne.id,align:void 0})})},[Qe]);let gr=JJ(fe?de.dynamicMedia:ge,i,q);function Wo(ne){let He=ne.id?ge.find(({id:ve})=>ve===ne.id):null,bt;ne.className&&ne.className!==""&&(bt=ne.className);let pe;return ne.linkTarget||ne.rel?pe={linkTarget:ne.linkTarget,rel:ne.rel}:pe=w2(S,r),{...I3(He,B),...k2(He,P,ne?.linkDestination),...pe,className:bt,sizeSlug:B,caption:ne.caption.length>0?ne.caption:He.caption?.raw,alt:ne.alt||He.alt_text,aspectRatio:N==="auto"?void 0:N,scale:N&&N!=="auto"?"cover":void 0}}function Nn(ne){let He=ne.type;return fD.some(bt=>He?.indexOf(bt)===0)||ne.blob}function So(ne){let He=Object.prototype.toString.call(ne)==="[object FileList]",bt=He?Array.from(ne).map(nt=>nt.url?nt:{blob:(0,gD.createBlobURL)(nt)}):ne;bt.every(Nn)||z((0,je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let pe=bt.filter(nt=>nt.url||Nn(nt)).map(nt=>nt.url?nt:{blob:nt.blob||(0,gD.createBlobURL)(nt)}),ve=pe.reduce((nt,Ir,Ua)=>(nt[Ir.id]=Ua,nt),{}),Ye=He?Y:Y.filter(nt=>pe.find(Ir=>Ir.id===nt.attributes.id)),$t=pe.filter(nt=>!Ye.find(Ir=>nt.id===Ir.attributes.id)).map(nt=>(0,qee.createBlock)("core/image",{id:nt.id,blob:nt.blob,url:nt.url,caption:nt.caption,alt:nt.alt}));j(n,Ye.concat($t).sort((nt,Ir)=>ve[nt.attributes.id]-ve[Ir.attributes.id])),$t?.length>0&&G($t[0].clientId)}function sa(ne){z(ne,{type:"snackbar"})}function la(ne){t({linkTo:ne});let He={},bt=[];K(n).innerBlocks.forEach(ve=>{bt.push(ve.clientId);let Ye=ve.attributes.id?ge.find(({id:dt})=>dt===ve.attributes.id):null;He[ve.clientId]=k2(Ye,ne,!1,ve.attributes,f)}),V(bt,He,{uniqueByBlock:!0});let pe=[..._].find(ve=>ve.value===ne);$((0,je.sprintf)((0,je.__)("All gallery image links updated to: %s"),pe.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Mn(ne){if(!U){t(ne);return}t({style:Pee({style:r.style,viewport:Z.viewport,baseSettings:{columns:Q,imageCrop:ie,aspectRatio:me},settings:ne})})}function ca(ne){Mn({columns:ne})}function md(){Mn({imageCrop:!ze})}function pu(){t({randomOrder:!C})}function za(ne){let He=ne?"_blank":void 0;t({linkTarget:He});let bt={},pe=[];K(n).innerBlocks.forEach(Ye=>{pe.push(Ye.clientId),bt[Ye.clientId]=w2(He,Ye.attributes)}),V(pe,bt,{uniqueByBlock:!0});let ve=ne?(0,je.__)("All gallery images updated to open in new tab"):(0,je.__)("All gallery images updated to not open in new tab");$(ve,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function Ha(ne){t({sizeSlug:ne});let He={},bt=[];K(n).innerBlocks.forEach(ve=>{bt.push(ve.clientId);let Ye=ve.attributes.id?ge.find(({id:dt})=>dt===ve.attributes.id):null;He[ve.clientId]=YJ(Ye,ne)}),V(bt,He,{uniqueByBlock:!0});let pe=gr.find(ve=>ve.value===ne);$((0,je.sprintf)((0,je.__)("All gallery image sizes updated to: %s"),pe?.label??ne),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function il(ne){if(U)Mn({aspectRatio:ne});else{let ve=!ne||ne==="auto"?void 0:ne;t({aspectRatio:ne??"auto"});let Ye={},dt=[];K(n).innerBlocks.forEach($t=>{dt.push($t.clientId),Ye[$t.clientId]={aspectRatio:ve,scale:ve?"cover":void 0}}),V(dt,Ye,!0)}let He=ne??me,bt=Ft.find(ve=>ve.value===He),pe=U?(0,je.sprintf)((0,je.__)("Gallery images in the %1$s viewport updated to aspect ratio: %2$s"),Z.viewport.replace("@",""),bt?.label||He):(0,je.sprintf)((0,je.__)("All gallery images updated to aspect ratio: %s"),bt?.label||He);$(pe,{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,dp.useEffect)(()=>{P||(O(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||kc}))},[P]);let ja=ye&&ce.some(ne=>!!ne.id),bs={addToGallery:!1,disableMediaButtons:ce.some(ne=>!ne.id&&ne.url?.indexOf("blob:")===0),value:{}},fd=(0,fo.useBlockProps)({className:T(o,"has-nested-images",`wp-block-gallery-${n}`,fe&&[u,"blocks-gallery-grid",{[`align${v}`]:v,[`columns-${x}`]:M&&x!==void 0,"columns-default":M&&x===void 0,"is-cropped":M&&k}])}),ua=(0,fo.useInnerBlocksProps)(fd,{defaultBlock:I9e,directInsert:!0,orientation:"horizontal",renderAppender:!1,allowedBlocks:fe?$ee:void 0}),Ln=ee();if(!ye&&!fe)return(0,ct.jsxs)("div",{...ua,children:[ua.children,(0,ct.jsx)(fo.MediaPlaceholder,{handleUpload:!1,icon:E3,labels:{title:(0,je.__)("Gallery"),instructions:B9e},onSelect:So,allowedTypes:fD,multiple:!0,onError:sa,...bs,children:m==="default"&&(0,ct.jsx)(Bt.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:de.enableDynamicMode,children:V3(cp).title})})]});let wi=P&&P!=="none",Rn=M||Ft.length>1;return(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsxs)(fo.InspectorControls,{group:U&&Rn?"viewport":"default",children:[!U&&(0,ct.jsx)(Uee,{dynamic:de,dropdownMenuProps:Ln,hasImages:ye}),(0,ct.jsxs)(Bt.__experimentalToolsPanel,{label:(0,je.__)("Settings"),resetAll:()=>{if(U){Mn({columns:void 0,imageCrop:void 0,aspectRatio:void 0});return}t({navigationButtonType:"icon",randomOrder:!1,...M&&{columns:void 0,imageCrop:!0}}),il("auto"),B!==x2&&Ha(x2),S&&za(!1)},dropdownMenuProps:Ln,children:[M&&re>1&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Columns"),hasValue:()=>U?xe:!!he&&he!==re,onDeselect:()=>ca(void 0),children:(0,ct.jsx)(Bt.RangeControl,{label:(0,je.__)("Columns"),value:he||P3(re),onChange:ca,min:1,max:Math.min(T3,re),required:!0})}),!U&&gr?.length>0&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Resolution"),hasValue:()=>B!==x2,onDeselect:()=>Ha(x2),children:(0,ct.jsx)(Bt.SelectControl,{label:(0,je.__)("Resolution"),help:(0,je.__)("Select the size of the source images."),value:B,options:gr,onChange:Ha,hideCancelButton:!0})}),M&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Crop images to fit"),hasValue:()=>U?Be:!ze,onDeselect:()=>Mn({imageCrop:U?void 0:!0}),children:(0,ct.jsx)(Bt.ToggleControl,{label:(0,je.__)("Crop images to fit"),checked:ze,onChange:md})}),!U&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Randomize order"),hasValue:()=>!!C,onDeselect:()=>t({randomOrder:!1}),children:(0,ct.jsx)(Bt.ToggleControl,{label:(0,je.__)("Randomize order"),checked:!!C,onChange:pu})}),!U&&wi&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,je.__)("Open images in new tab"),hasValue:()=>!!S,onDeselect:()=>za(!1),children:(0,ct.jsx)(Bt.ToggleControl,{label:(0,je.__)("Open images in new tab"),checked:S==="_blank",onChange:za})}),Ft.length>1&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{hasValue:()=>U?se:qe!=="auto",label:(0,je.__)("Aspect ratio"),onDeselect:()=>il(U?void 0:"auto"),isShownByDefault:!0,children:(0,ct.jsx)(Bt.SelectControl,{label:(0,je.__)("Aspect ratio"),help:(0,je.__)("Set a consistent aspect ratio for all images in the gallery."),value:qe,options:Ft,onChange:il})}),!U&&f?.allowEditing&&Pe&&(0,ct.jsx)(Bt.__experimentalToolsPanelItem,{label:(0,je.__)("Navigation button type"),isShownByDefault:!0,hasValue:()=>w!=="icon",onDeselect:()=>t({navigationButtonType:"icon"}),children:(0,ct.jsx)(Bt.__experimentalToggleGroupControl,{label:(0,je.__)("Navigation button type"),value:w,onChange:ne=>t({navigationButtonType:ne}),isBlock:!0,help:(0,je.__)("Adjust the appearance of buttons in the lightbox."),children:P9e.map(ne=>(0,ct.jsx)(Bt.__experimentalToggleGroupControlOption,{value:ne.value,label:ne.label},ne.value))})})]})]}),(0,ct.jsx)(fo.BlockControls,{group:"block",children:(0,ct.jsx)(Bt.ToolbarDropdownMenu,{icon:Pi,label:(0,je.__)("Link"),children:({onClose:ne})=>(0,ct.jsx)(Bt.MenuGroup,{children:_.map(He=>{let bt=P===He.value;return(0,ct.jsx)(Bt.MenuItem,{isSelected:bt,className:T("components-dropdown-menu__menu-item",{"is-active":bt}),iconPosition:"left",icon:He.icon,onClick:()=>{la(He.value),ne()},role:"menuitemradio",info:He.infoText,children:He.label},He.value)})})})}),(0,ct.jsxs)(ct.Fragment,{children:[!oe&&!fe&&(0,ct.jsx)(fo.BlockControls,{group:"other",children:(0,ct.jsx)(fo.MediaReplaceFlow,{allowedTypes:fD,handleUpload:!1,onSelect:So,name:(0,je.__)("Add"),multiple:!0,mediaIds:ce.filter(ne=>ne.id).map(ne=>ne.id),addToGallery:ja,variant:"toolbar"})}),(0,ct.jsx)(Dee,{style:r.style,clientId:n,isFlexLayout:M})]}),fe?(0,ct.jsx)(Wee,{...e,dynamic:de,blockProps:fd,innerBlocksProps:ua,multiGallerySelection:oe}):(0,ct.jsx)(QJ,{...e,isContentLocked:l,images:ce,blockProps:ua,insertBlocksAfter:s,multiGallerySelection:oe})]})}var H3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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 Du=a(I(),1);var j3=a(y(),1);function Yee({attributes:e}){let{caption:t,columns:r,imageCrop:o,dynamicContent:n,layout:i}=e,s=Sc(i),l=!Du.RichText.isEmpty(t)&&(0,j3.jsx)(Du.RichText.Content,{tagName:"figcaption",className:T("blocks-gallery-caption",(0,Du.__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=Du.useBlockProps.save({className:c}),d=Du.useInnerBlocksProps.save(u);return(0,j3.jsxs)("figure",{...d,children:[d.children,l]})}var Os=a(te(),1),Qee=a(Ur(),1),hD=a(Kd(),1);var M9e=e=>e?e.split(",").map(t=>parseInt(t,10)):[],Xee=e=>e.map(t=>(0,Os.createBlock)(t.name,t.attributes,Xee(t.innerBlocks||[])));function L9e(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:r,id:o,alt:n})=>(0,Os.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,hD.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",L9e);function R9e(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,hD.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",R9e);var D9e={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,Os.createBlock)("core/image",i)));return(0,Os.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=M9e(e).map(c=>parseInt(c,10)),s=kc;return r==="post"?s=Cc:r==="file"&&(s=wc),(0,Os.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:s,randomOrder:o==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,Os.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,Os.createBlock)("core/image",{blob:(0,Qee.createBlobURL)(r)}));return(0,Os.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,Os.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,Os.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:b,..._}=e;return(0,Os.createBlock)("core/group",{..._,layout:{type:"grid",columnCount:i??P3(t.length)}},Xee(t))}}]},Jee=D9e;var xf=a(L(),1);var A9e=[{name:"dynamic-gallery",title:(0,xf.__)("Dynamic Gallery"),description:(0,xf.__)("Display images from a source, such as those attached to the current post."),attributes:{dynamicContent:{source:cp}},isActive:e=>!!e.dynamicContent,scope:[]},{name:"gallery-flex",title:(0,xf.__)("Gallery"),description:(0,xf.__)("Arrange images in flexible rows."),icon:gm,attributes:{layout:{type:"flex"}},isActive:e=>Sc(e.layout),scope:["transform"]},{name:"gallery-grid",title:(0,xf.__)("Gallery Grid"),description:(0,xf.__)("Arrange images in a grid."),icon:Ei,attributes:{layout:{type:"grid"}},isActive:e=>e.layout?.type==="grid",scope:["transform"]}],ete=A9e;var{name:tte}=H3,rte={icon:gm,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:Jee,variations:ete,edit:Kee,save:Yee,deprecated:GJ},O9e=()=>D({name:tte,metadata:H3,settings:rte});var xD={};J(xD,{init:()=>q9e,metadata:()=>W3,name:()=>Z3,settings:()=>hte});var q3=a(L(),1);var Wn=a(I(),1),ji=a(y(),1),yD=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}},F9e=[{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,ji.jsx)(e,{...Wn.useInnerBlocksProps.save(Wn.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,ji.jsx)(t,{...Wn.useBlockProps.save(),children:(0,ji.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:yD,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,Wn.getColorClassName)("background-color",t),s=(0,Wn.getColorClassName)("color",o),l=T(i,s,{"has-text-color":o||n,"has-background":t||r});return(0,ji.jsx)("div",{className:l,style:{backgroundColor:i?void 0:r,color:s?void 0:n},children:(0,ji.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:yD,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,textColor:o,customTextColor:n}=e,i=(0,Wn.getColorClassName)("background-color",t),s=(0,Wn.getColorClassName)("color",o),l=T(i,{"has-text-color":o||n,"has-background":t||r});return(0,ji.jsx)("div",{className:l,style:{backgroundColor:i?void 0:r,color:s?void 0:n},children:(0,ji.jsx)("div",{className:"wp-block-group__inner-container",children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:yD,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r}=e,o=(0,Wn.getColorClassName)("background-color",t),n=T(o,{"has-background":t||r});return(0,ji.jsx)("div",{className:n,style:{backgroundColor:o?void 0:r},children:(0,ji.jsx)(Wn.InnerBlocks.Content,{})})}}],ote=F9e;var U3=a(H(),1),Wi=a(I(),1),cte=a(W(),1),ute=a(L(),1);var nte=a(H(),1),ate=a(I(),1),vD=a(L(),1),ite=a(te(),1),si=a(F(),1),P2=a(W(),1),ii=a(y(),1),V9e=(e="group")=>({group:(0,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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,ii.jsx)(si.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,ii.jsx)(si.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 ste({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,P2.useState)(!r&&!n&&!s&&!i&&!o&&t!=="flex"&&t!=="grid");return(0,P2.useEffect)(()=>{(r||n||s||i||o||t==="flex")&&c(!1)},[n,s,i,o,t,r]),[l,c]}function z9e({name:e,onSelect:t}){let r=(0,nte.useSelect)(n=>n(ite.store).getBlockVariations(e,"block"),[e]),o=(0,ate.useBlockProps)({className:"wp-block-group__placeholder"});return(0,P2.useEffect)(()=>{r&&r.length===1&&t(r[0])},[t,r]),(0,ii.jsx)("div",{...o,children:(0,ii.jsx)(si.Placeholder,{instructions:(0,vD.__)("Group blocks together. Select a layout:"),children:(0,ii.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,vD.__)("Block variations"),children:r.map(n=>(0,ii.jsx)("li",{children:(0,ii.jsx)(si.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:V9e(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var lte=z9e;var Ui=a(y(),1),{HTMLElementControl:H9e}=le(Wi.privateApis);function j9e({tagName:e,onSelectTagName:t,clientId:r}){return(0,Ui.jsx)(Wi.InspectorControls,{group:"advanced",children:(0,Ui.jsx)(H9e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,ute.__)("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 U9e({attributes:e,name:t,setAttributes:r,clientId:o}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,U3.useSelect)(x=>{let{getBlock:k,getSettings:C}=x(Wi.store),S=k(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,cte.useRef)(),f=(0,Wi.useBlockProps)({ref:m}),[g,h]=ste({attributes:e,usedLayoutType:d,hasInnerBlocks:n}),b;g?b=!1:n||(b=Wi.InnerBlocks.ButtonBlockAppender);let _=(0,Wi.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:m.current,templateLock:l,allowedBlocks:c,renderAppender:b}),{selectBlock:v}=(0,U3.useDispatch)(Wi.store),w=x=>{r(x.attributes),v(o,-1),h(!1)};return(0,Ui.jsxs)(Ui.Fragment,{children:[(0,Ui.jsx)(j9e,{tagName:s,onSelectTagName:x=>r({tagName:x}),clientId:o}),g&&(0,Ui.jsxs)("div",{children:[_.children,(0,Ui.jsx)(lte,{name:t,onSelect:w})]}),p&&!g&&(0,Ui.jsx)(s,{..._}),!p&&!g&&(0,Ui.jsx)(s,{...f,children:(0,Ui.jsx)("div",{..._})})]})}var dte=U9e;var W3={$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,textColumns:!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 G3=a(I(),1),pte=a(y(),1);function mte({attributes:{tagName:e}}){return(0,pte.jsx)(e,{...G3.useInnerBlocksProps.save(G3.useBlockProps.save())})}var $3=a(te(),1),G9e={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,$3.cloneSanitizedBlock)(n));return(0,$3.createBlock)("core/group",{align:r,layout:{type:"constrained"}},o)}}]},fte=G9e;var Gn=a(L(),1);var _D={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Gn.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,Gn.__)("Six.")}}]},$9e=[{name:"group",title:(0,Gn.__)("Group"),description:(0,Gn.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:wy},{name:"group-row",title:(0,Gn._x)("Row","single horizontal line"),description:(0,Gn.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:GI,example:_D},{name:"group-stack",title:(0,Gn.__)("Stack"),description:(0,Gn.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:nN,example:_D},{name:"group-grid",title:(0,Gn.__)("Grid"),description:(0,Gn.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Ei,example:_D}],gte=$9e;var{name:Z3}=W3,hte={icon:wy,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,q3.__)("La Mancha"),style:{typography:{textAlign:"center"}}}},{name:"core/paragraph",attributes:{style:{typography:{textAlign:"center"}},content:(0,q3.__)("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,q3.__)("Read more")}}],viewportWidth:600},transforms:fte,edit:dte,save:mte,deprecated:ote,variations:gte},q9e=()=>D({name:Z3,metadata:W3,settings:hte});var TD={};J(TD,{init:()=>p6e,metadata:()=>J3,name:()=>t7,settings:()=>Mte});var Cf=a(L(),1),r7=a(te(),1);var wa=a(I(),1);var Ec=a(y(),1),kD={className:!1,anchor:!0},K3={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},v1=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:r,...o}=e;return{...o,style:t}},bte=["left","right","center"],_1=e=>{let{align:t,...r}=e;return bte.includes(t)?{...r,textAlign:t}:e},Z9e={supports:kD,attributes:{...K3,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,level:r,content:o,textColor:n,customTextColor:i}=e,s="h"+r,l=(0,wa.getColorClassName)("color",n),c=T({[l]:l});return(0,Ec.jsx)(wa.RichText.Content,{className:c||void 0,tagName:s,style:{textAlign:t,color:l?void 0:i},value:o})}},K9e={attributes:{...K3,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,s="h"+n,l=(0,wa.getColorClassName)("color",i),c=T({[l]:l,[`has-text-align-${t}`]:t});return(0,Ec.jsx)(wa.RichText.Content,{className:c||void 0,tagName:s,style:{color:l?void 0:o},value:r})},supports:kD},Y9e={supports:kD,attributes:{...K3,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,content:r,customTextColor:o,level:n,textColor:i}=e,s="h"+n,l=(0,wa.getColorClassName)("color",i),c=T({[l]:l,"has-text-color":i||o,[`has-text-align-${t}`]:t});return(0,Ec.jsx)(wa.RichText.Content,{className:c||void 0,tagName:s,style:{color:l?void 0:o},value:r})}},Q9e={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:K3,isEligible:({align:e})=>bte.includes(e),migrate:e=>we(v1(_1(e))),save({attributes:e}){let{align:t,content:r,level:o}=e,n="h"+o,i=T({[`has-text-align-${t}`]:t});return(0,Ec.jsx)(n,{...wa.useBlockProps.save({className:i}),children:(0,Ec.jsx)(wa.RichText.Content,{value:r})})}},X9e={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,Ec.jsx)(n,{...wa.useBlockProps.save({className:i}),children:(0,Ec.jsx)(wa.RichText.Content,{value:r})})},migrate:e=>we(v1(_1(e)))},J9e={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,Ec.jsx)(n,{...wa.useBlockProps.save({className:i}),children:(0,Ec.jsx)(wa.RichText.Content,{value:r})})},migrate:e=>we(v1(_1(e))),isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},e6e=[J9e,X9e,Q9e,Y9e,K9e,Z9e],yte=e6e;var Cte=a(L(),1),Ste=a(W(),1),X3=a(H(),1),kf=a(I(),1);var wte=a(kte(),1),wD={},a6e=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},i6e=e=>(0,wte.default)(a6e(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Q3=(e,t)=>{let r=i6e(t);if(r==="")return null;delete wD[e];let o=r,n=0;for(;Object.values(wD).includes(o);)n+=1,o=r+"-"+n;return o},CD=(e,t)=>{wD[e]=t};var Tte=a(y(),1);function s6e(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onReplace:n,style:i,clientId:s}=e;Pt(e);let{content:l,level:c,placeholder:u,anchor:d}=t,p="h"+c,m=(0,kf.useBlockProps)({style:i}),{canGenerateAnchors:f}=(0,X3.useSelect)(b=>{let{getGlobalBlockCount:_,getSettings:v}=b(kf.store);return{canGenerateAnchors:!!v().generateAnchors||_("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,X3.useDispatch)(kf.store);return(0,Ste.useEffect)(()=>{if(f)return!d&&l&&(g(),r({anchor:Q3(s,l)})),CD(s,d),()=>CD(s,null)},[d,l,s,f,r,g]),(0,Tte.jsx)(kf.RichText,{identifier:"content",tagName:p,value:l,onChange:b=>{let _={content:b};f&&(!d||!b||Q3(s,l)===d)&&(_.anchor=Q3(s,b)),r(_)},onMerge:o,onReplace:n,onRemove:n?()=>n([]):void 0,placeholder:u||(0,Cte.__)("Heading"),...m})}var Ete=s6e;var J3={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!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,textShadow:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var e7=a(I(),1),SD=a(y(),1);function Pte({attributes:e}){let{content:t,level:r}=e,o="h"+r;return(0,SD.jsx)(o,{...e7.useBlockProps.save(),children:(0,SD.jsx)(e7.RichText.Content,{value:t})})}var pp=a(te(),1),B2=a(L(),1);function Bte(e){return Number(e.substr(1))}var c6e={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,B2.sprintf)((0,B2.__)("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,pp.createBlock)("core/heading",{...Pu(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,pp.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:r}=e.style||{};return t.level=Bte(e.nodeName),(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,pp.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,pp.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,pp.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],shortcuts:[{name:"core/block-editor/transform-heading-to-paragraph",description:(0,B2.__)("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,pp.createBlock)("core/paragraph",{...Pu(t,"core/paragraph",({content:i})=>({content:i})),content:r,...n&&{style:{typography:{textAlign:n}}}})})}]},Ite=c6e;var wf=a(L(),1);var u6e=[vB,_B,xB,kB,wB,CB],d6e=[...[1,2,3,4,5,6].map(e=>({name:`h${e}`,title:(0,wf.sprintf)((0,wf.__)("Heading %d"),e),description:(0,wf.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),icon:u6e[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,wf.sprintf)((0,wf.__)("Transform the selected block into a heading %d."),e),keyCombination:{modifier:"access",character:`${e}`}}}))],Nte=d6e;var{name:t7}=J3,Mte={icon:TB,example:{attributes:{content:(0,Cf.__)("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,Cf.sprintf)((0,Cf.__)("Level %1$s. %2$s"),o,r):(0,Cf.sprintf)((0,Cf.__)("Level %s. Empty."),o)},transforms:Ite,deprecated:yte,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Ete,save:Pte,variations:Nte},p6e=()=>{let e=D({name:t7,metadata:J3,settings:Mte}),t=(0,r7.getBlockType)(t7)?.attributes?.levelOptions?.default;return t&&[1,2,3,4,5,6].forEach(r=>{t.includes(r)||(0,r7.unregisterBlockVariation)(t7,`h${r}`)}),e};var ED={};J(ED,{init:()=>g6e,metadata:()=>o7,name:()=>Hte,settings:()=>jte});var zte=a(L(),1);var o7={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var mp=a(I(),1),Ca=a(F(),1),li=a(L(),1),Lte=a(H(),1),Rte=a(ae(),1);var Dte=a(ma(),1);var Mo=a(y(),1),f6e=e=>e.preventDefault();function Ate({attributes:e,setAttributes:t,context:r}){let{homeUrl:o,onNavigateToEntityRecord:n,frontPageId:i,frontPageTemplateId:s}=(0,Lte.useSelect)(h=>{let{getEntityRecord:b,getDefaultTemplateId:_,canUser:v}=h(Rte.store),w=b("root","__unstableBase")?.home,k=v("read",{kind:"root",name:"site"})?b("root","site"):null,C=k?.show_on_front==="page"?k?.page_on_front:null,S=C?null:_({slug:"front-page"});return{homeUrl:w,onNavigateToEntityRecord:h(mp.store).getSettings().onNavigateToEntityRecord,frontPageId:C,frontPageTemplateId:S}},[]),{textColor:l,backgroundColor:c,style:u}=r,{label:d,opensInNewTab:p,description:m}=e,f=ee(),g=(0,mp.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,Mo.jsxs)(Mo.Fragment,{children:[(0,Mo.jsx)(mp.InspectorControls,{group:"content",children:(0,Mo.jsxs)(Ca.__experimentalToolsPanel,{label:(0,li.__)("Settings"),resetAll:()=>{t({label:"",opensInNewTab:!1,description:""})},dropdownMenuProps:f,children:[(0,Mo.jsx)(Ca.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,li.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Mo.jsx)(Ca.TextControl,{label:(0,li.__)("Text"),value:d?(0,Dte.__unstableStripHTML)(d):"",onChange:h=>{t({label:h})},autoComplete:"off"})}),(0,Mo.jsx)(Ca.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,li.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Mo.jsx)(Ca.CheckboxControl,{label:(0,li.__)("Open in new tab"),checked:p,onChange:h=>t({opensInNewTab:h})})}),n&&(i||s)&&(0,Mo.jsx)(Ca.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,li.__)("Edit")}),o&&(0,Mo.jsx)(Ca.Button,{variant:"secondary",href:o,target:"_blank",icon:ny,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,li.__)("View")}),(0,Mo.jsx)(Ca.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,li.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,Mo.jsx)(Ca.TextareaControl,{label:(0,li.__)("Description"),value:m||"",onChange:h=>{t({description:h})},help:(0,li.__)("The description will be displayed in the menu if the current theme supports it.")})})]})}),(0,Mo.jsx)("div",{...g,children:(0,Mo.jsxs)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:f6e,children:[(0,Mo.jsx)(mp.RichText,{identifier:"label",className:"wp-block-home-link__label",value:d??(0,li.__)("Home"),onChange:h=>{t({label:h})},"aria-label":(0,li.__)("Home link text"),placeholder:(0,li.__)("Add label\u2026"),withoutInteractiveFormatting:!0}),m&&(0,Mo.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]})})]})}var Ote=a(I(),1),Fte=a(y(),1);function Vte(){return(0,Fte.jsx)(Ote.InnerBlocks.Content,{})}var{name:Hte}=o7,jte={icon:PB,edit:Ate,save:Vte,example:{attributes:{label:(0,zte._x)("Home Link","block example")}}},g6e=()=>D({name:Hte,metadata:o7,settings:jte});var ID={};J(ID,{init:()=>x6e,metadata:()=>i7,name:()=>ore,settings:()=>nre});var rre=a(L(),1);var x1=a(L(),1),a7=a(W(),1),ci=a(I(),1),Tf=a(te(),1),k1=a(H(),1),Qte=a(jm(),1),Dl=a(F(),1);var Gi=a(L(),1),I2=a(W(),1),Kte=a(H(),1),bn=a(F(),1),gp=a(I(),1);var Yte=a(_e(),1);var Ute=a(W(),1),n7=a(I(),1),Wte=a(F(),1),Gte=a(H(),1),$te=a(L(),1),Sf=a(y(),1),h6e=`
19 56 html,body,:root {
20 57 margin: 0 !important;
21 58 padding: 0 !important;
22 59 overflow: visible !important;
@@ -21,42 +58,31 @@
21 58 padding: 0 !important;
22 59 overflow: visible !important;
23 60 min-height: auto !important;
24 61 }
25 -`;function Sw({content:e,isSelected:t}){let r=(0,LZ.useSelect)(n=>n(Cw.store).getSettings().styles,[]),o=(0,IZ.useMemo)(()=>[K2e,...(0,Cw.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,vd.jsxs)(vd.Fragment,{children:[(0,vd.jsx)(DZ.SandBox,{html:e,styles:o,title:(0,MZ.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,vd.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var gi=a(B(),1),Ev=a(j(),1),RZ=a(F(),1),Qo=a(R(),1),Bh=a(T(),1);var zZ=a(fe(),1);function AZ(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 KI({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
62 +`;function qte({content:e,isSelected:t}){let r=(0,Gte.useSelect)(n=>n(n7.store).getSettings().styles,[]),o=(0,Ute.useMemo)(()=>[h6e,...(0,n7.transformStyles)((r??[]).filter(n=>n.css))],[r]);return(0,Sf.jsxs)(Sf.Fragment,{children:[(0,Sf.jsx)(Wte.SandBox,{html:e,styles:o,title:(0,$te.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,Sf.jsx)("div",{className:"block-library-html__preview-overlay"})]})}function Zte(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 PD({html:e="",css:t="",js:r=""}){let o=[];return t.trim()&&o.push(`<style data-wp-block-html="css">
26 63 ${t}
27 64 </style>`),r.trim()&&o.push(`<script data-wp-block-html="js">
28 65 ${r}
29 66 <\/script>`),e.trim()&&o.push(e),o.join(`
30 67
31 -`)}var Ct=a(v(),1),{Tabs:vm}=W(Qo.privateApis);function YI({onRequestClose:e,content:t,setAttributes:r}){let{html:o,css:n,js:i}=AZ(t),[l,s]=(0,Ev.useState)(o),[c,u]=(0,Ev.useState)(n),[m,p]=(0,Ev.useState)(i),[d,f]=(0,Ev.useState)(!1),h=(0,zZ.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:g}=(0,RZ.useSelect)(k=>({canUserUseUnfilteredHTML:k(Bh.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),b=!g&&(n.trim()||i.trim()),y=()=>{r({content:KI({html:l,css:g?c:"",js:g?m:""})})},_=()=>{y(),e()},x=()=>{f(k=>!k)};return(0,Ct.jsx)(Ct.Fragment,{children:(0,Ct.jsx)(Qo.Modal,{title:(0,gi.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:d,__experimentalHideHeader:!0,children:(0,Ct.jsx)(vm,{orientation:"horizontal",defaultTabId:"html",children:(0,Ct.jsxs)(Qo.__experimentalVStack,{expanded:!0,children:[(0,Ct.jsxs)(Qo.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Ct.jsx)("div",{children:(0,Ct.jsxs)(vm.TabList,{children:[(0,Ct.jsx)(vm.Tab,{tabId:"html",children:"HTML"}),g&&(0,Ct.jsx)(vm.Tab,{tabId:"css",children:"CSS"}),g&&(0,Ct.jsx)(vm.Tab,{tabId:"js",children:(0,gi.__)("JavaScript")})]})}),!h&&(0,Ct.jsx)("div",{children:(0,Ct.jsx)(Qo.Button,{__next40pxDefaultSize:!0,icon:d?MB:Pp,label:(0,gi.__)("Enable/disable fullscreen"),onClick:x,variant:"tertiary"})})]}),b&&(0,Ct.jsx)(Qo.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,gi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Ct.jsxs)(Qo.Flex,{direction:h?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Ct.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Ct.jsx)(vm.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ct.jsx)(Bh.PlainText,{value:l,onChange:s,placeholder:(0,gi.__)("Write HTML\u2026"),"aria-label":(0,gi.__)("HTML"),className:"block-library-html__modal-editor",async:!0})}),g&&(0,Ct.jsx)(vm.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ct.jsx)(Bh.PlainText,{value:c,onChange:u,placeholder:(0,gi.__)("Write CSS\u2026"),"aria-label":(0,gi.__)("CSS"),className:"block-library-html__modal-editor",async:!0})}),g&&(0,Ct.jsx)(vm.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ct.jsx)(Bh.PlainText,{value:m,onChange:p,placeholder:(0,gi.__)("Write JavaScript\u2026"),"aria-label":(0,gi.__)("JavaScript"),className:"block-library-html__modal-editor",async:!0})})]}),(0,Ct.jsx)("div",{className:"block-library-html__preview",children:(0,Ct.jsx)(Sw,{content:KI({html:l,css:c,js:m})})})]}),(0,Ct.jsxs)(Qo.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Ct.jsx)(Qo.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,gi.__)("Cancel")}),(0,Ct.jsx)(Qo.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:_,children:(0,gi.__)("Update")})]})]})})})})}var ya=a(v(),1);function FZ({attributes:e,setAttributes:t,isSelected:r}){let[o,n]=(0,VZ.useState)(!1),i=(0,bm.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,ya.jsxs)("div",{...i,children:[(0,ya.jsx)(bm.BlockControls,{children:(0,ya.jsx)(ts.ToolbarGroup,{children:(0,ya.jsx)(ts.ToolbarButton,{onClick:()=>n(!0),children:(0,Eh.__)("Edit code")})})}),(0,ya.jsx)(bm.InspectorControls,{children:(0,ya.jsx)(ts.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,ya.jsx)(ts.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,Eh.__)("Edit code")})})}),(0,ya.jsx)(Sw,{content:e.content,isSelected:r}),o&&(0,ya.jsx)(YI,{onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]}):(0,ya.jsxs)("div",{...i,children:[(0,ya.jsx)(ts.Placeholder,{icon:(0,ya.jsx)(bm.BlockIcon,{icon:G0}),label:(0,Eh.__)("Custom HTML"),instructions:(0,Eh.__)("Add custom HTML code and preview how it looks."),children:(0,ya.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>n(!0),children:(0,Eh.__)("Edit HTML")})}),o&&(0,ya.jsx)(YI,{onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]})}var Tw={$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",source:"raw",role:"content"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0},customCSS:!1,visibility:!1},editorStyle:"wp-block-html-editor"};var HZ=a(j(),1),OZ=a(v(),1);function jZ({attributes:e}){return(0,OZ.jsx)(HZ.RawHTML,{children:e.content})}var UZ=a($(),1),GZ=a(em(),1),Q2e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,UZ.createBlock)("core/html",{content:(0,GZ.create)({html:e}).text})}]},WZ=Q2e;var{name:qZ}=Tw,ZZ={icon:jT,example:{attributes:{content:"<marquee>"+(0,$Z.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"}},edit:FZ,save:jZ,transforms:WZ},X2e=()=>I({name:qZ,metadata:Tw,settings:ZZ});var tD={};Z(tD,{init:()=>n_e,metadata:()=>Bw,name:()=>iK,settings:()=>lK});var vi=a(B(),1),Ka=a(R(),1);var Xo=a(T(),1),eK=a(j(),1),Dh=a(D(),1),tK=a(F(),1),rK=a(X(),1);var XZ=a(B(),1),Pw=a(R(),1),Ih=a(j(),1),JZ=a(fe(),1);var XI=a(B(),1),KZ=a(R(),1);var qs=a(v(),1);function YZ({icons:e,onChange:t,attributes:r}){return(0,qs.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,qs.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,XI.__)("Icon library"),children:e.map(o=>(0,qs.jsxs)(KZ.Button,{className:"wp-block-icon__inserter-grid-icons-list-item",onClick:()=>t(o.name),variant:o.name===r?.icon?"primary":void 0,__next40pxDefaultSize:!0,children:[(0,qs.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,qs.jsx)(uo,{html:o.content,wrapperProps:{style:{width:"24px"}}})}),(0,qs.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:o.label})]},o.name))}):(0,qs.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,qs.jsx)("p",{children:(0,XI.__)("No results found.")})})})}var QZ=a(yv(),1);function Nh(e=""){return e=(0,QZ.default)(e),e=e.trim().toLowerCase(),e}function J2e(e,t){let r=Nh(t),o=Nh(e.title),n=0;return r===o?n+=30:o.startsWith(r)?n+=20:r.split(" ").every(s=>o.includes(s))&&(n+=10),n}function Nv(e=[],t=""){if(!t)return e;let r=e.map(o=>[o,J2e(o,t)]).filter(([,o])=>o>0);return r.sort(([,o],[,n])=>n-o),r.map(([o])=>o)}var bd=a(v(),1);function JI({icons:e=[],setInserterOpen:t,attributes:r,setAttributes:o}){let[n,i]=(0,Ih.useState)(""),l=(0,JZ.useDebounce)(i,300),s=(0,Ih.useCallback)(u=>{o({icon:u}),t(!1)},[o,t]),c=(0,Ih.useMemo)(()=>{if(n){let u=Nh(n);return e.filter(m=>{let p=Nh(m.name),d=Nh(m.label);return p.includes(u)||d.includes(u)})}return e},[n,e]);return(0,bd.jsx)(Pw.Modal,{className:"wp-block-icon__inserter-modal",title:(0,XZ.__)("Icon library"),onRequestClose:()=>t(!1),isFullScreen:!0,children:(0,bd.jsxs)("div",{className:"wp-block-icon__inserter",children:[(0,bd.jsx)("div",{className:"wp-block-icon__inserter-header",children:(0,bd.jsx)(Pw.SearchControl,{value:n,onChange:l})}),(0,bd.jsx)(YZ,{icons:c,onChange:s,attributes:r})]})})}var zt=a(v(),1),e_e=({className:e,style:t})=>(0,zt.jsxs)(Dh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none",fill:"none","aria-hidden":"true",className:w("wp-block-icon__placeholder",e),style:t,children:[(0,zt.jsx)(Dh.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,zt.jsx)(Dh.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function t_e({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:n,flipVertical:i,rotation:l}=e,[s,c]=(0,eK.useState)(!1),u=(0,Xo.useBlockEditingMode)()==="contentOnly",m=(0,Xo.__experimentalUseColorProps)(e),p=(0,Xo.__experimentalGetSpacingClassesAndStyles)(e),d=(0,Xo.__experimentalUseBorderProps)(e),f=(0,Xo.getDimensionsClassesAndStyles)(e),{selectedIcon:h,allIcons:g=[]}=(0,tK.useSelect)(C=>{let{getEntityRecord:E,getEntityRecords:P}=C(rK.store);return{selectedIcon:r?E("root","icon",r):null,allIcons:s?P("root","icon"):void 0}},[s,r]),b=h?.content||"",y={"is-flip-horizontal":n,"is-flip-vertical":i},_=l?{rotate:`${l}deg`}:{},x=(0,zt.jsxs)(zt.Fragment,{children:[r&&(0,zt.jsxs)(Xo.BlockControls,{group:"block",children:[(0,zt.jsx)(Ka.ToolbarButton,{icon:rT,label:(0,vi.__)("Flip horizontal"),isPressed:n,onClick:()=>t({flipHorizontal:!n})}),(0,zt.jsx)(Ka.ToolbarButton,{icon:aT,label:(0,vi.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,zt.jsx)(Ka.ToolbarButton,{icon:_B,label:(0,vi.__)("Rotate"),onClick:()=>t({rotation:((l||0)+90)%360})})]}),(0,zt.jsxs)(Xo.BlockControls,{group:"other",children:[(0,zt.jsx)(Ka.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,vi.__)("Replace"):(0,vi.__)("Choose icon")}),u&&r&&(0,zt.jsx)(Ka.DropdownMenu,{icon:"",toggleProps:{as:Ka.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,vi.__)("Label"),children:()=>(0,zt.jsx)(Ka.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,vi.__)("Label"),value:o||"",onChange:C=>t({ariaLabel:C}),help:(0,vi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),k=q(),S=r&&(0,zt.jsx)(zt.Fragment,{children:(0,zt.jsx)(Xo.InspectorControls,{group:"settings",children:(0,zt.jsx)(Ka.__experimentalToolsPanel,{label:(0,vi.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:k,children:(0,zt.jsx)(Ka.__experimentalToolsPanelItem,{label:(0,vi.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,zt.jsx)(Ka.TextControl,{label:(0,vi.__)("Label"),help:(0,vi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:C=>t({ariaLabel:C})})})})})});return(0,zt.jsxs)(zt.Fragment,{children:[x,S,(0,zt.jsx)("div",{...(0,Xo.useBlockProps)(),children:r?(0,zt.jsx)(uo,{html:b,wrapperProps:{className:w(m.className,d.className,p.className,f.className,y),style:{...m.style,...d.style,...p.style,...f.style,..._}}}):(0,zt.jsx)(e_e,{className:w(d.className,p.className,f.className,y),style:{...d.style,...p.style,...f.style,..._,height:"auto"}})}),s&&(0,zt.jsx)(JI,{icons:g,setInserterOpen:c,attributes:e,setAttributes:t})]})}var oK=t_e;var Bw={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:{background:!0,text:!0,__experimentalSkipSerialization:!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 Ew=a(R(),1),eD=a(v(),1),o_e=(0,eD.jsx)(Ew.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,eD.jsx)(Ew.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"})}),aK=o_e;var a_e=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],nK=a_e;var{name:iK}=Bw,lK={icon:aK,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:nK,edit:oK},n_e=()=>I({name:iK,metadata:Bw,settings:lK});var sD={};Z(sD,{init:()=>M_e,metadata:()=>zw,name:()=>HK,settings:()=>Fw});var _m=a(B(),1);var FK=a($(),1);var Ze=a(T(),1);var Pe=a(v(),1),i_e={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:l,height:s}=e,u=(0,Pe.jsx)("img",{src:t,alt:r,...l||s?{width:l,height:s}:{}}),m={};return l?m={width:l}:(n==="left"||n==="right")&&(m={maxWidth:"50%"}),(0,Pe.jsxs)("figure",{className:n?`align${n}`:null,style:m,children:[i?(0,Pe.jsx)("a",{href:i,children:u}):u,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{tagName:"figcaption",value:o})]})}},l_e={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:l,height:s,id:c}=e,u=(0,Pe.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Pe.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,Pe.jsx)("a",{href:i,children:u}):u,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{tagName:"figcaption",value:o})]})}},s_e={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:l,height:s,id:c}=e,u=w({[`align${n}`]:n,"is-resized":l||s}),m=(0,Pe.jsx)("img",{src:t,alt:r,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,Pe.jsxs)("figure",{className:u,children:[i?(0,Pe.jsx)("a",{href:i,children:m}):m,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{tagName:"figcaption",value:o})]})}},c_e={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:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,g=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,Pe.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),y=(0,Pe.jsxs)(Pe.Fragment,{children:[i?(0,Pe.jsx)("a",{className:s,href:i,target:p,rel:h,children:b}):b,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{tagName:"figcaption",value:o})]});return n==="left"||n==="right"||n==="center"?(0,Pe.jsx)("div",{...Ze.useBlockProps.save(),children:(0,Pe.jsx)("figure",{className:g,children:y})}):(0,Pe.jsx)("figure",{...Ze.useBlockProps.save({className:g}),children:y})}},u_e={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:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,h=l||void 0,g=w({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,Pe.jsx)("img",{src:t,alt:r,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),y=(0,Pe.jsxs)(Pe.Fragment,{children:[i?(0,Pe.jsx)("a",{className:s,href:i,target:p,rel:h,children:b}):b,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{tagName:"figcaption",value:o})]});return(0,Pe.jsx)("figure",{...Ze.useBlockProps.save({className:g}),children:y})}},m_e={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:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,y=(0,Ze.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=w(y.className,{[`wp-image-${d}`]:!!d}),k=(0,Pe.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p},width:c,height:u,title:g}),S=(0,Pe.jsxs)(Pe.Fragment,{children:[i?(0,Pe.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{className:(0,Ze.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Pe.jsx)("figure",{...Ze.useBlockProps.save({className:_}),children:S})}},p_e={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:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,y=(0,Ze.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=w(y.className,{[`wp-image-${d}`]:!!d}),k=(0,Pe.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p,width:c,height:u},width:c,height:u,title:g}),S=(0,Pe.jsxs)(Pe.Fragment,{children:[i?(0,Pe.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{className:(0,Ze.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Pe.jsx)("figure",{...Ze.useBlockProps.save({className:_}),children:S})}},d_e={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:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:h,title:g}=e,b=l||void 0,y=(0,Ze.__experimentalGetBorderClassesAndStyles)(e),_=w({[`align${n}`]:n,[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=w(y.className,{[`wp-image-${d}`]:!!d}),k=(0,Pe.jsx)("img",{src:t,alt:r,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p,width:c,height:u},title:g}),S=(0,Pe.jsxs)(Pe.Fragment,{children:[i?(0,Pe.jsx)("a",{className:s,href:i,target:f,rel:b,children:k}):k,!Ze.RichText.isEmpty(o)&&(0,Pe.jsx)(Ze.RichText.Content,{className:(0,Ze.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Pe.jsx)("figure",{...Ze.useBlockProps.save({className:_}),children:S})}},f_e={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:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:b,metadata:{bindings:y={}}={}}=e,_=l||void 0,x=(0,Ze.__experimentalGetBorderClassesAndStyles)(e),k=(0,Ze.__experimentalGetShadowClassesAndStyles)(e),S=w({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),C=w(x.className,{[`wp-image-${f}`]:!!f}),E=(0,Pe.jsx)("img",{src:t,alt:r,className:C||void 0,style:{...x.style,...k.style,aspectRatio:m,objectFit:p,objectPosition:d&&p?fd(d):void 0,width:c,height:u},title:b}),P=!Ze.RichText.isEmpty(o)||y.caption||y?.__default?.source==="core/pattern-overrides",N=(0,Pe.jsxs)(Pe.Fragment,{children:[i?(0,Pe.jsx)("a",{className:s,href:i,target:h,rel:_,children:E}):E,P&&(0,Pe.jsx)(Ze.RichText.Content,{className:(0,Ze.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Pe.jsx)("figure",{...Ze.useBlockProps.save({className:S}),children:N})}},sK=[f_e,d_e,p_e,m_e,u_e,c_e,s_e,l_e,i_e];var Ah=a(Br(),1),Iv=a($(),1),NK=a(R(),1),yd=a(F(),1),Qa=a(T(),1),ym=a(j(),1),Ks=a(B(),1);var IK=a(_r(),1),DK=a(fe(),1),Rw=a(lr(),1),LK=a(uK(),1);var kK=a(Br(),1),Ie=a(R(),1),Mh=a(fe(),1),Zs=a(F(),1),yt=a(T(),1),Jt=a(j(),1),ke=a(B(),1),nD=a(lr(),1),Lh=a($(),1);var wK=a(_r(),1),Aw=a(X(),1);var Ya=a(R(),1),Nw=a(T(),1),mK=a(Va(),1),pK=a(j(),1),rD=a(B(),1),dK=a(F(),1);var fK=a(lr(),1),Mn=a(v(),1),h_e=e=>{window.requestAnimationFrame(()=>{let[t]=mK.focus.tabbable.find(e?.current);t&&t.focus()})};function oD({url:e,filename:t,itemGroupProps:r,className:o,label:n}){return(0,Mn.jsx)(Ya.__experimentalItemGroup,{...r,as:"span",children:(0,Mn.jsxs)(Ya.__experimentalHStack,{justify:"flex-start",children:[(0,Mn.jsx)("span",{className:"block-library-utils__media-control__inspector-image-indicator",style:{backgroundImage:e?`url(${e})`:void 0}}),(0,Mn.jsx)(Ya.FlexBlock,{children:(0,Mn.jsx)(Ya.__experimentalTruncate,{numberOfLines:1,className:o,children:t??n})})]})})}function Iw({mediaId:e,mediaUrl:t,filename:r,allowedTypes:o,onSelect:n,onSelectURL:i,onError:l,onReset:s,isUploading:c=!1,emptyLabel:u=(0,rD.__)("Media")}){let{getSettings:m}=(0,dK.useSelect)(Nw.store),p=f=>{let{mediaUpload:h}=m();h&&h({allowedTypes:o,filesList:f,onFileChange([g]){n(g)},onError:l,multiple:!1})},d=(0,pK.useRef)();return(0,Mn.jsxs)("div",{ref:d,className:"block-library-utils__media-control",children:[(0,Mn.jsx)(Nw.MediaReplaceFlow,{className:"block-library-utils__media-control__replace-flow",mediaId:e,mediaURL:t,allowedTypes:o,onSelect:n,onSelectURL:i,onError:l,name:(0,Mn.jsx)(oD,{url:t,filename:r,className:"block-library-utils__media-control__inspector-media-replace-title",label:t&&(0,fK.getFilename)(r)||u}),renderToggle:f=>(0,Mn.jsx)(Ya.Button,{...f,__next40pxDefaultSize:!0,children:c?(0,Mn.jsx)(Ya.Spinner,{}):f.children}),onReset:s}),t&&s&&(0,Mn.jsx)(Ya.Button,{label:(0,rD.__)("Reset"),className:"block-library-utils__media-control__reset",size:"small",icon:gB,onClick:()=>{s(),h_e(d)}}),(0,Mn.jsx)(Ya.DropZone,{onFilesDrop:p})]})}var Dw=a(X(),1),Lw=a(T(),1),bK=a(Va(),1),Mw=a(F(),1),ol=a(j(),1);function hK(e){return typeof e!="string"||!(0,bK.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function g_e(e){let t=e?.caption;if(typeof t=="string")return hK(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return hK(t.raw)}function aD(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:g_e(e)}}function gK(e){return e||""}function v_e(e,t,r){if(!t||!r)return{};let o=aD(t),n=aD(r),i={},l=gK(e.alt);o.alt!==n.alt&&(l===o.alt||!l)&&(i.alt=n.alt);let s=gK(e.caption);return o.caption!==void 0&&n.caption!==void 0&&o.caption!==n.caption&&(s===o.caption||!s)&&(i.caption=n.caption||void 0),i}var{openMediaEditorModalKey:b_e}=W(Lw.privateApis);function y_e({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function vK(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=aD(e).caption!==void 0;return t&&r}function yK({attributes:e,setAttributes:t,onClose:r}){let{id:o,url:n,alt:i,caption:l}=e,s=(0,Mw.useRegistry)(),c=(0,Mw.useSelect)(y=>y(Lw.store).getSettings()[b_e],[]),u=(0,ol.useRef)({id:o,url:n,alt:i,caption:l?.toString()}),m=(0,ol.useRef)(),p=(0,ol.useRef)(0);(0,ol.useEffect)(()=>{u.current={id:o,url:n,alt:i,caption:l?.toString()}},[i,l,o,n]);let d=(0,ol.useCallback)(y=>s.select(Dw.store).getEditedEntityRecord("postType","attachment",y),[s]),f=(0,ol.useCallback)(async y=>{let _=s.resolveSelect(Dw.store);try{return await _.getEntityRecord("postType","attachment",y)}catch{return}},[s]),h=(0,ol.useCallback)(async y=>{let{invalidateResolution:_}=s.dispatch(Dw.store);return _("getEntityRecord",["postType","attachment",y]),f(y)},[s,f]),g=(0,ol.useCallback)(async({id:y,url:_})=>{if(typeof y!="number")return;let x=m.current;m.current=void 0;let k=++p.current,S={},C=u.current;if(y!==C.id&&(S.id=y,S.url=_??C.url,u.current={...u.current,id:S.id,url:S.url}),x){let E=await h(y);if(k!==p.current)return;let P=u.current,N=v_e(P,x,E);Object.keys(N).length&&Object.assign(S,N)}Object.keys(S).length&&(u.current={...u.current,...S},t(S))},[h,t]),b=(0,ol.useCallback)(async()=>{if(!o||!c)return;let y=d(o),_=y_e(u.current),x=vK(y)?void 0:await f(o);m.current=x||(vK(y)?y:_)||y,c({id:o,onUpdate:g,onClose:r})},[d,g,o,r,c,f]);return o&&c?b:void 0}var ie=a(v(),1),{DimensionsTool:_K,isDefaultBlockStyleState:__e,ResolutionTool:x_e,mediaEditKey:k_e}=W(yt.privateApis),w_e=[{value:"cover",label:(0,ke._x)("Cover","Scale option for dimensions control"),help:(0,ke.__)("Image covers the space evenly.")},{value:"contain",label:(0,ke._x)("Contain","Scale option for dimensions control"),help:(0,ke.__)("Image is contained without distortion.")}],C_e={placement:"bottom-start"},xK=({href:e,children:t})=>e?(0,ie.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function S_e({attributes:e,setAttributes:t,lockAltControls:r,lockAltControlsMessage:o,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,Jt.useState)(null),[c,u]=(0,Jt.useState)(!1),[m,p]=(0,Jt.useState)(!1);return(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Ie.ToolbarItem,{ref:s,children:d=>(0,ie.jsx)(Ie.DropdownMenu,{icon:j0,label:(0,ke.__)("More"),toggleProps:{...d,description:(0,ke.__)("Displays more controls.")},popoverProps:C_e,children:({onClose:f})=>(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Ie.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,ke._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ie.jsx)(Ie.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,ke.__)("Title text")})]})})}),c&&(0,ie.jsx)(Ie.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ie.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ie.jsx)(Ie.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,ke.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:r,help:r?(0,ie.jsx)(ie.Fragment,{children:o}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)(Ie.ExternalLink,{href:(0,ke.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ke.__)("Describe the purpose of the image.")}),(0,ie.jsx)("br",{}),(0,ke.__)("Leave empty if decorative.")]})})})}),m&&(0,ie.jsx)(Ie.Popover,{placement:"bottom-start",anchor:l,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,ie.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ie.jsx)(Ie.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,ke.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,ie.jsx)(ie.Fragment,{children:i}):(0,Jt.createInterpolateElement)((0,ke.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ie.jsx)(Ie.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function CK({temporaryURL:e,isSideloading:t,attributes:r,setAttributes:o,isSingleSelected:n,insertBlocksAfter:i,onReplace:l,onSelectImage:s,onSelectURL:c,onUploadError:u,context:m,clientId:p,blockEditingMode:d,parentLayoutType:f,maxContentWidth:h}){let{url:g="",alt:b,align:y,id:_,href:x,rel:k,linkClass:S,linkDestination:C,title:E,width:P,height:N,aspectRatio:z,scale:V,focalPoint:A,linkTarget:M,sizeSlug:L,lightbox:U,metadata:H,isDecorative:G}=r,[Y,O]=(0,Jt.useState)(),[te,se]=(0,Jt.useState)(null),[Q,ce]=(0,Jt.useState)({}),[Ee,le]=(0,Jt.useState)(0),ee=(0,Mh.useResizeObserver)(([ue])=>{if(!te){let[Mt]=ue.borderBoxSize;ce({width:Mt.inlineSize,height:Mt.blockSize})}le(ue.target.offsetTop)}),ve=(0,Jt.useCallback)(()=>{le(Y?.offsetTop??0)},[Y]),Ne=(0,Mh.useMergeRefs)([O,ee]),{allowResize:Re=!0}=m,{image:Be,attachmentResolutionError:Ve}=(0,Zs.useSelect)(ue=>{let Mt=_&&n?ue(Aw.store).getEntityRecord("postType","attachment",_,{context:"view"}):null,zo=_&&n?ue(Aw.store).getResolutionError("getEntityRecord",["postType","attachment",_,{context:"view"}]):null;return{image:Mt,attachmentResolutionError:zo}},[_,n]),{canInsertCover:oe,imageEditing:J,imageSizes:re,maxWidth:Me,editMediaEntity:mt}=(0,Zs.useSelect)(ue=>{let{getBlockRootClientId:Mt,canInsertBlockType:zo,getSettings:bn}=ue(yt.store),B0=Mt(p),Au=bn();return{imageEditing:Au.imageEditing,imageSizes:Au.imageSizes,maxWidth:Au.maxWidth,editMediaEntity:Au?.[k_e],canInsertCover:zo("core/cover",B0)}},[p]),{getBlock:Lt,getSettings:jt}=(0,Zs.useSelect)(yt.store),ae=(0,Jt.useRef)(),Ue=(0,Jt.useCallback)(()=>ae.current?.focus(),[]),Se=yK({attributes:r,setAttributes:o,onClose:Ue}),{replaceBlocks:Oe,toggleSelection:K,__unstableMarkNextChangeAsNotPersistent:ne}=(0,Zs.useDispatch)(yt.store),{createErrorNotice:Ge,createSuccessNotice:gt}=(0,Zs.useDispatch)(wK.store),{editEntityRecord:je}=(0,Zs.useDispatch)(Aw.store),or=(0,Mh.useViewportMatch)("medium"),mr=["wide","full"].includes(y),[{loadedNaturalWidth:fn,loadedNaturalHeight:Fe},zr]=(0,Jt.useState)({}),[Kr,Nc]=(0,Jt.useState)(!1),[Du,ks]=(0,Jt.useState)(),[C0,Sl]=(0,Jt.useState)(!1),Ic=d==="default",ws=d==="contentOnly",Dc=Re&&Ic,S0=Re&&Ic&&!mr&&or,qn=!!e||t,Tl=re.filter(({slug:ue})=>Be?.media_details?.sizes?.[ue]?.source_url).map(({name:ue,slug:Mt})=>({value:Mt,label:ue}));(0,Jt.useEffect)(()=>{!_||!n||Ve?.status===404&&(ne(),o({id:void 0}))},[_,n,Ve,o,ne]),(0,Jt.useEffect)(()=>{if(!iD(_,g)||!n||!jt().mediaUpload){ks();return}Du||window.fetch(g.includes("?")?g:g+"?").then(ue=>ue.blob()).then(ue=>ks(ue)).catch(()=>{})},[_,g,n,Du,jt]);let{naturalWidth:Ro,naturalHeight:hn}=(0,Jt.useMemo)(()=>({naturalWidth:Y?.naturalWidth||fn||void 0,naturalHeight:Y?.naturalHeight||Fe||void 0}),[fn,Fe,Y?.complete]);function wf(){Sl(!0);let ue=Yu({attributes:{url:g}});ue!==void 0&&l(ue)}function pp(ue){Sl(!1),zr({loadedNaturalWidth:ue.target?.naturalWidth,loadedNaturalHeight:ue.target?.naturalHeight})}function Te(ue){o(ue)}function at(ue){ue&&!Lc?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!ue&&Lc?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function ar(){Lc?.enabled&&Lc?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Vr(ue){o({title:ue})}function br(ue){o({alt:ue})}function Pl(ue){o({isDecorative:ue||void 0,...ue&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let gn=ue=>{Y&&Y.style.setProperty("object-position",fd(ue))};function Lu(ue){let Mt=Be?.media_details?.sizes?.[ue]?.source_url;if(!Mt)return null;o({url:Mt,sizeSlug:ue})}function Mu(){let{mediaUpload:ue}=jt();if(!ue)return;let Mt=!1;ue({filesList:[Du],onFileChange([zo]){s(zo),!(0,kK.isBlobURL)(zo.url)&&(Mt||(Mt=!0,ks(),gt((0,ke.__)("Image uploaded."),{type:"snackbar"})))},allowedTypes:Jc,onError(zo){Ge(zo,{type:"snackbar"})}})}(0,Jt.useEffect)(()=>{n||Nc(!1)},[n]);let vn=_&&Ro&&hn&&J&&!!mt,dp=n&&vn&&!Kr&&!ws&&!qn;function Cf(){Oe(p,(0,Lh.switchToBlockType)(Lt(p),"core/cover"))}let h7=(0,Ie.__experimentalUseCustomUnits)({availableUnits:["px"]}),[Lc]=(0,yt.useSettings)("lightbox"),fp=!!U&&U?.enabled!==Lc?.enabled||Lc?.allowEditing,T0=!!U?.enabled||!U&&!!Lc?.enabled,My=q(),Cs=(0,Zs.useSelect)(ue=>{if(!n)return;let{getSelectedBlockStyleState:Mt}=W(ue(yt.store));return Mt(p)},[p,n]),Ss=!__e(Cs),hp=nh(Cs),Sf=li({attributes:r,selectedState:Cs,hasSelectedStyleState:Ss,attributeKey:"width"}),Tf=li({attributes:r,selectedState:Cs,hasSelectedStyleState:Ss,attributeKey:"height"}),Ay=li({attributes:r,selectedState:Cs,hasSelectedStyleState:Ss,attributeKey:"aspectRatio"}),Qt=li({attributes:r,selectedState:Cs,hasSelectedStyleState:Ss,attributeKey:"scale",styleKey:"objectFit"}),Bl=ue=>{o(ih({style:r.style,selectedState:Cs,hasSelectedStyleState:Ss,nextDimensions:ue,dimensionKeyMap:{scale:"objectFit"}}))},El=Dc&&(EI.includes(f)?(0,ie.jsx)(_K,{panelId:p,value:{aspectRatio:Ay,scale:Qt},onChange:({aspectRatio:ue})=>{Bl({aspectRatio:ue,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},hp):(0,ie.jsx)(_K,{panelId:p,value:{width:Sf,height:Tf,scale:Qt,aspectRatio:Ay},onChange:({width:ue,height:Mt,scale:zo,aspectRatio:bn})=>{Bl({width:!ue&&Mt?"auto":ue,height:Mt,aspectRatio:bn,scale:zo})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:w_e,unitsOptions:h7,tools:mr?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},hp)),g7=()=>{o({lightbox:void 0}),Lu(kv)},v7=H?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:gp=!1,lockHrefControls:zfe=!1,lockAltControls:Ry=!1,lockAltControlsMessage:wz,lockTitleControls:b7=!1,lockTitleControlsMessage:Cz,hideCaptionControls:Vfe=!1}=(0,Zs.useSelect)(ue=>{if(!n)return{};let{url:Mt,alt:zo,title:bn,caption:B0}=H?.bindings||{},Au=!!m["pattern/overrides"],_7=(0,Lh.getBlockBindingsSource)(Mt?.source),Pf=(0,Lh.getBlockBindingsSource)(zo?.source),Ru=(0,Lh.getBlockBindingsSource)(bn?.source);return{lockUrlControls:!!Mt&&!_7?.canUserEditValue?.({select:ue,context:m,args:Mt?.args}),lockHrefControls:Au||v7,hideCaptionControls:!!B0,lockAltControls:!!zo&&!Pf?.canUserEditValue?.({select:ue,context:m,args:zo?.args}),lockAltControlsMessage:Pf?.label?(0,ke.sprintf)((0,ke.__)("Connected to %s"),Pf.label):(0,ke.__)("Connected to dynamic data"),lockTitleControls:!!bn&&!Ru?.canUserEditValue?.({select:ue,context:m,args:bn?.args}),lockTitleControlsMessage:Ru?.label?(0,ke.sprintf)((0,ke.__)("Connected to %s"),Ru.label):(0,ke.__)("Connected to dynamic data")}},[v7,m,n,H?.bindings]),Sz=n&&!Kr&&!zfe&&!gp&&!G,Tz=n&&oe&&!ws,Ffe=Sz||dp||Tz,Pz=n&&!Kr&&!gp&&(0,ie.jsx)(yt.BlockControls,{group:ws?"inline":"other",children:(0,ie.jsx)(yt.MediaReplaceFlow,{mediaId:_,mediaURL:g,allowedTypes:Jc,onSelect:s,onSelectURL:c,onError:u,name:g?(0,ke.__)("Replace"):(0,ke.__)("Add image"),onReset:()=>s(void 0),variant:"toolbar"})}),Hfe=window?.__experimentalContentOnlyInspectorFields,Bz=(0,ie.jsxs)(ie.Fragment,{children:[Ffe&&(0,ie.jsxs)(yt.BlockControls,{group:"block",children:[Sz&&(0,ie.jsx)(yt.__experimentalImageURLInputUI,{url:x||"",onChangeUrl:Te,linkDestination:C,mediaUrl:Be&&Be.source_url||g,mediaLink:Be&&Be.link,linkTarget:M,linkClass:S,rel:k,showLightboxSetting:fp,lightboxEnabled:T0,onSetLightbox:at,resetLightbox:ar}),dp&&(0,ie.jsx)(Ie.ToolbarButton,{ref:ae,onClick:Se||(()=>Nc(!0)),"aria-haspopup":Se?"dialog":void 0,icon:Tp,label:(0,ke.__)("Crop")}),Tz&&(0,ie.jsx)(Ie.ToolbarButton,{icon:bP,label:(0,ke.__)("Add text over image"),onClick:Cf})]}),n&&Du&&(0,ie.jsx)(yt.BlockControls,{children:(0,ie.jsx)(Ie.ToolbarGroup,{children:(0,ie.jsx)(Ie.ToolbarButton,{onClick:Mu,icon:Ac,label:(0,ke.__)("Upload to Media Library")})})}),ws&&(0,ie.jsx)(yt.BlockControls,{group:"block",children:(0,ie.jsx)(S_e,{attributes:r,setAttributes:o,lockAltControls:Ry,lockAltControlsMessage:wz,lockTitleControls:b7,lockTitleControlsMessage:Cz})}),!Hfe&&n&&(0,ie.jsx)(yt.InspectorControls,{group:"content",children:(0,ie.jsxs)(Ie.__experimentalToolsPanel,{label:(0,ke.__)("Media"),resetAll:()=>{s(void 0),o({isDecorative:!1})},dropdownMenuProps:My,children:[!gp&&(0,ie.jsx)(Ie.__experimentalToolsPanelItem,{label:(0,ke.__)("Image"),hasValue:()=>!!g,onDeselect:()=>s(void 0),isShownByDefault:!0,children:(0,ie.jsx)(Iw,{mediaId:_,mediaUrl:g,alt:b,filename:Be?.media_details?.sizes?.full?.file||Be?.slug||(0,nD.getFilename)(g),allowedTypes:Jc,onSelect:s,onSelectURL:c,onError:u,onReset:()=>s(void 0),isUploading:qn,emptyLabel:(0,ke.__)("Add image")})}),!G&&(0,ie.jsx)(Ie.__experimentalToolsPanelItem,{label:(0,ke.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>o({alt:void 0}),children:(0,ie.jsx)(Ie.TextareaControl,{label:(0,ke.__)("Alternative text"),value:b||"",onChange:br,readOnly:Ry,help:Ry?(0,ie.jsx)(ie.Fragment,{children:wz}):(0,ie.jsx)(Ie.ExternalLink,{href:(0,ke.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ke.__)("Describe the purpose of the image.")})})}),!Ry&&!T0&&(0,ie.jsx)(Ie.__experimentalToolsPanelItem,{label:(0,ke.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!G,onDeselect:()=>o({isDecorative:!1}),children:(0,ie.jsx)(Ie.CheckboxControl,{label:(0,ke.__)("Mark as decorative"),checked:!!G,onChange:Pl,help:(0,ke.__)("Hidden from assistive technologies.")})})]})}),(0,ie.jsxs)(yt.InspectorControls,{group:"dimensions",resetAllFilter:ue=>lh({attributes:ue,selectedState:Cs,hasSelectedStyleState:Ss,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[El,!Ss&&g&&V&&(0,ie.jsx)(Ie.__experimentalToolsPanelItem,{label:(0,ke.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!A,onDeselect:()=>o({focalPoint:void 0}),panelId:p,children:(0,ie.jsx)(Ie.FocalPointPicker,{label:(0,ke.__)("Focal point"),url:g,value:A,onDragStart:gn,onDrag:gn,onChange:ue=>o({focalPoint:ue})})})]}),!!Tl.length&&(0,ie.jsx)(yt.InspectorControls,{children:(0,ie.jsx)(Ie.__experimentalToolsPanel,{label:(0,ke.__)("Settings"),resetAll:g7,dropdownMenuProps:My,children:(0,ie.jsx)(x_e,{value:L,defaultValue:kv,onChange:Lu,options:Tl})})}),(0,ie.jsx)(yt.InspectorControls,{group:"advanced",children:(0,ie.jsx)(Ie.TextControl,{label:(0,ke.__)("Title attribute"),value:E||"",onChange:Vr,readOnly:b7,help:b7?(0,ie.jsx)(ie.Fragment,{children:Cz}):(0,Jt.createInterpolateElement)((0,ke.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ie.jsx)(Ie.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),zy=(0,nD.getFilename)(g),P0;G?P0=zy?(0,ke.sprintf)((0,ke.__)("This image has been marked as decorative; its file name is %s"),zy):(0,ke.__)("This image has been marked as decorative."):b?P0=b:zy?P0=(0,ke.sprintf)((0,ke.__)("This image has an empty alt attribute; its file name is %s"),zy):P0=(0,ke.__)("This image has an empty alt attribute");let y7=(0,yt.__experimentalUseBorderProps)(r),Ofe=(0,yt.__experimentalGetShadowClassesAndStyles)(r),jfe=r.className?.includes("is-style-rounded"),{postType:Ufe,postId:Ez,queryId:Gfe}=m,Wfe=Number.isFinite(Gfe),Vy=e&&C0?(0,ie.jsx)(Ie.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ie.jsx)(Ie.Spinner,{})}):(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("img",{src:e||g,alt:P0,onError:wf,onLoad:pp,ref:Ne,className:y7.className,width:Ro,height:hn,style:{aspectRatio:z,...te?{width:Q.width+te.width,height:Q.height+te.height}:(()=>{let ue={};return P==="auto"?ue.width="auto":P!=null&&(ue.width=typeof P=="number"?`${P}px`:P),N==="auto"||N===void 0||N===null?ue.height="auto":ue.height=typeof N=="number"?`${N}px`:N,ue})(),objectFit:V,objectPosition:A&&V?fd(A):void 0,...y7.style,...Ofe.style}}),qn&&(0,ie.jsx)(Ie.Spinner,{})]});vn&&Kr?Vy=(0,ie.jsx)(xK,{href:x,children:(0,ie.jsx)(yt.__experimentalImageEditor,{id:_,url:g,...Q,naturalHeight:hn,naturalWidth:Ro,onSaveImage:ue=>o(ue),onFinishEditing:()=>{Nc(!1)},borderProps:jfe?void 0:y7})}):Vy=(0,ie.jsx)(xK,{href:x,children:Vy});let Nz;if(S0&&n&&!Kr&&!qn&&!EI.includes(f)){let ue=z&&Pq(z),Mt=Q.width/Q.height,zo=Ro/hn,bn=ue||Mt||zo||1,B0=Ro<hn?Ws:Ws*bn,Au=hn<Ro?Ws:Ws/bn,_7=Me*2.5,Pf=h||_7,Ru=!1,Fy=!1;y==="center"?(Ru=!0,Fy=!0):(0,ke.isRTL)()?y==="left"?Ru=!0:Fy=!0:y==="right"?Fy=!0:Ru=!0,Nz=(0,ie.jsx)(Ie.ResizableBox,{ref:ve,style:{position:"absolute",inset:`${Ee}px 0 0 0`},size:Q,minWidth:B0,maxWidth:Pf,minHeight:Au,maxHeight:Pf/bn,lockAspectRatio:bn,enable:{top:!1,right:Ru,bottom:!0,left:Fy},onResizeStart:()=>{K(!1)},onResize:(qfe,Zfe,x7,Hy)=>{se(Hy)},onResizeStop:(qfe,Zfe,x7,Hy)=>{if(K(!0),se(null),ce(Iz=>({width:Iz.width+Hy.width,height:Iz.height+Hy.height})),h&&Ro>=h&&Math.abs(x7.offsetWidth-h)<10){o({width:void 0,height:void 0});return}o({width:`${x7.offsetWidth}px`,height:"auto",aspectRatio:bn===zo?void 0:String(bn)})},resizeRatio:y==="center"?2:1})}if(!g&&!e)return(0,ie.jsxs)(ie.Fragment,{children:[Pz,Bz]});let $fe=()=>{je("postType",Ufe,Ez,{featured_media:_}),gt((0,ke.__)("Post featured image updated."),{type:"snackbar"})};return(0,ie.jsxs)(ie.Fragment,{children:[Pz,Bz,!Wfe&&Ez&&_?(0,ie.jsx)(yt.BlockSettingsMenuControls,{children:({canEdit:ue,selectedClientIds:Mt})=>ue&&Mt.length===1&&p===Mt[0]&&(0,ie.jsx)(Ie.MenuItem,{onClick:$fe,children:(0,ke.__)("Set as featured image")})}):null,Vy,Nz,!G&&(0,ie.jsx)(ma,{attributes:r,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,ke.__)("Image caption text"),showToolbarButton:n&&(Ic||ws)&&!Vfe})]})}var SK=a(j(),1),TK=a(fe(),1),PK=a(v(),1);function BK(){let[e,{width:t}]=(0,TK.useResizeObserver)(),r=(0,SK.useRef)();return[(0,PK.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 rs=a(v(),1),T_e=(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},iD=(e,t)=>t&&!e&&!(0,Ah.isBlobURL)(t);function EK(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function P_e({attributes:e,setAttributes:t,isSelected:r,className:o,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:m,id:p,width:d,height:f,sizeSlug:h,aspectRatio:g,scale:b,align:y,metadata:_}=e,[x,k]=(0,ym.useState)(e.blob),S=(0,ym.useRef)(),C=c?.type||c?.default?.type,E=!C||C!=="flex"&&C!=="grid",[P,N]=BK(),[z,{width:V}]=(0,DK.useResizeObserver)(),A=V&&V<160,M=(0,ym.useRef)();(0,ym.useEffect)(()=>{M.current=m},[m]);let{__unstableMarkNextChangeAsNotPersistent:L,replaceBlock:U}=(0,yd.useDispatch)(Qa.store);(0,ym.useEffect)(()=>{["wide","full"].includes(y)&&(L(),t({width:void 0,height:void 0}))},[L,y,t]);let{getSettings:H,getBlockRootClientId:G,getBlockName:Y,canInsertBlockType:O}=(0,yd.useSelect)(Qa.store),te=(0,Qa.useBlockEditingMode)(),{createErrorNotice:se}=(0,yd.useDispatch)(IK.store);function Q(ae){se(ae,{type:"snackbar"}),k(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function ce(ae){ae.length===1&&k((0,Ah.createBlobURL)(ae[0]))}function Ee(ae){let Ue=S.current?.ownerDocument.defaultView;if(ae.every(Se=>Se instanceof Ue.File)){let Se=ae,Oe=G(s);Se.some(ne=>!DI(ne))&&se((0,Ks.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let K=Se.filter(ne=>DI(ne)).map(ne=>(0,Iv.createBlock)("core/image",{blob:(0,Ah.createBlobURL)(ne)}));if(Y(Oe)==="core/gallery")U(s,K);else if(O("core/gallery",Oe)){let ne=(0,Iv.createBlock)("core/gallery",{},K);U(s,ne)}}}function le(ae){if(Array.isArray(ae)){Ee(ae);return}if(!ae||!ae.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),k();return}if((0,Ah.isBlobURL)(ae.url)){k(ae.url);return}let{imageDefaultSize:Ue}=H(),Se=kv;h&&EK(ae,h)?Se=h:EK(ae,Ue)&&(Se=Ue);let Oe=T_e(ae,Se);if(typeof Oe.caption=="string"&&Oe.caption.includes(`
32 -`)&&(Oe.caption=Oe.caption.replace(/\n/g,"<br>")),M.current&&!Oe.caption){let{caption:gt,...je}=Oe;Oe=je}let K;(!ae.id||ae.id!==p)&&(K={sizeSlug:Se});let ne=e.linkDestination;if(!ne)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||dd){case"file":case wh:ne=wh;break;case"post":case Ch:ne=Ch;break;case BI:ne=BI;break;case dd:ne=dd;break}let Ge;switch(ne){case wh:Ge=ae.url;break;case Ch:Ge=ae.link;break}Oe.href=Ge,t({blob:void 0,...Oe,...K,linkDestination:ne}),k()}function ee(ae){let Ue=(0,Rw.getProtocol)(ae)?ae:(0,Rw.prependHTTPS)(ae);Ue!==u&&(t({blob:void 0,url:Ue,id:void 0,sizeSlug:H().imageDefaultSize}),k())}Bs({url:x,allowedTypes:Jc,onChange:le,onError:Q});let Ne=iD(p,u)?u:void 0,Re=(0,yd.useSelect)(ae=>!window.__clientSideMediaProcessing&&!window.__heicUploadSupport||!p?!1:ae(LK.store).isUploadingById(p),[p]),Be=!!u&&(0,rs.jsx)("img",{alt:(0,Ks.__)("Edit image"),title:(0,Ks.__)("Edit image"),className:"edit-image-preview",src:u}),Ve=(0,Qa.__experimentalUseBorderProps)(e),oe=(0,Qa.__experimentalGetShadowClassesAndStyles)(e),J=w(o,{"is-transient":!!x||Re,"is-resized":!!d||!!f,[`size-${h}`]:h,"has-custom-border":!!Ve.className||Ve.style&&Object.keys(Ve.style).length>0}),re=(0,Qa.useBlockProps)({ref:S,className:J}),{lockUrlControls:Me=!1,lockUrlControlsMessage:mt}=(0,yd.useSelect)(ae=>{if(!r)return{};let Ue=(0,Iv.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!Ue?.canUserEditValue?.({select:ae,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:Ue?.label?(0,Ks.sprintf)((0,Ks.__)("Connected to %s"),Ue.label):(0,Ks.__)("Connected to dynamic data")}},[l,r,_?.bindings?.url]),Lt=f==="auto"?void 0:f;return(0,rs.jsxs)(rs.Fragment,{children:[(0,rs.jsxs)("figure",{...re,children:[(0,rs.jsx)(CK,{temporaryURL:x,isSideloading:Re,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:le,onSelectURL:ee,onUploadError:Q,context:l,clientId:s,blockEditingMode:te,parentLayoutType:C,maxContentWidth:N}),(0,rs.jsx)(Qa.MediaPlaceholder,{icon:(0,rs.jsx)(Qa.BlockIcon,{icon:Gu}),onSelect:le,onSelectURL:ee,onFilesPreUpload:ce,onError:Q,placeholder:ae=>(0,rs.jsxs)(NK.Placeholder,{className:w("block-editor-media-placeholder",{[Ve.className]:!!Ve.className&&!r}),icon:!A&&(Me?PP:Gu),withIllustration:!r||A,label:!A&&(0,Ks.__)("Image"),instructions:!Me&&!A&&(0,Ks.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&Lt)&&g?g:void 0,width:Lt&&g?"100%":d,height:d&&g?"100%":Lt,objectFit:b,...Ve.style,...oe.style},children:[Me&&!A&&mt,!Me&&!A&&ae,z]}),allowedTypes:Jc,handleUpload:ae=>ae.length===1,value:{id:p,src:Ne},mediaPreview:Be,disableMediaButtons:x||u})]}),r&&E&&P]})}var MK=P_e;var zw={$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",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 os=a(T(),1);var tu=a(v(),1);function AK({attributes:e}){let{url:t,alt:r,caption:o,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,focalPoint:d,id:f,linkTarget:h,sizeSlug:g,title:b,isDecorative:y,metadata:{bindings:_={}}={}}=e,x=l||void 0,k=(0,os.__experimentalGetBorderClassesAndStyles)(e),S=(0,os.__experimentalGetShadowClassesAndStyles)(e),C=w({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!k.className||k.style&&Object.keys(k.style).length>0}),E=w(k.className,{[`wp-image-${f}`]:!!f}),P=(0,tu.jsx)("img",{src:t,alt:r,className:E||void 0,style:(()=>{let V={...k.style,...S.style,aspectRatio:m,objectFit:p,objectPosition:d&&p?fd(d):void 0};return(c!==void 0||u!==void 0)&&(c==="auto"?V.width="auto":c!=null&&(V.width=typeof c=="number"?`${c}px`:c),u==="auto"||u===void 0||u===null?V.height="auto":V.height=typeof u=="number"?`${u}px`:u),V})(),title:b,role:y?"none":void 0}),N=!os.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",z=(0,tu.jsxs)(tu.Fragment,{children:[i?(0,tu.jsx)("a",{className:s,href:i,target:h,rel:x,children:P}):P,N&&(0,tu.jsx)(os.RichText.Content,{className:(0,os.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,tu.jsx)("figure",{...os.useBlockProps.save({className:C}),children:z})}var Vw=a(Br(),1),Dv=a($(),1);function E_e(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 lD(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 RK={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function zK(e){return e&&/^\d+$/.test(e)?`${e}px`:void 0}var N_e=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...RK,a:{attributes:["href","rel","target"],classes:["*"],children:RK},figcaption:{children:e}}}}),I_e={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:N_e,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,l=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(r),s=l?Number(l[1]):void 0,c=e.querySelector("a"),u=c&&c.href?"custom":void 0,m=c&&c.href?c.href:void 0,p=c&&c.rel?c.rel:void 0,d=c&&c.className?c.className:void 0,f=zK(t.getAttribute("width")),h=zK(t.getAttribute("height")),g=parseInt(f,10),b=parseInt(h,10),y=g&&b?String(g/b):void 0,_=f||(h?"auto":void 0),x=f?"auto":h,k=(0,Dv.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:s,linkDestination:u,href:m,rel:p,linkClass:d,anchor:n,width:_,height:x,aspectRatio:y});return(0,Vw.isBlobURL)(k.url)&&(k.blob=k.url,delete k.url),(0,Dv.createBlock)("core/image",k)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,Dv.createBlock)("core/image",{blob:(0,Vw.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:E_e},href:{shortcode:(e,{shortcode:t})=>lD(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>lD(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>lD(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","")}}}]},VK=I_e;var{fieldsKey:D_e,formKey:L_e}=W(FK.privateApis),{name:HK}=zw,Fw={icon:Gu,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,_m.__)("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,_m.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:VK,edit:MK,save:AK,deprecated:sK};window.__experimentalContentOnlyInspectorFields&&(Fw[D_e]=[{id:"image",label:(0,_m.__)("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,_m.__)("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,_m.__)("Caption"),type:"text",Edit:"rich-text",isVisible:e=>!e.isDecorative},{id:"alt",label:(0,_m.__)("Alt text"),type:"text",isVisible:e=>!e.isDecorative},{id:"isDecorative",label:(0,_m.__)("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}})}],Fw[L_e]={fields:["image","link","caption","alt","isDecorative"]});var M_e=()=>I({name:HK,metadata:zw,settings:Fw});var cD={};Z(cD,{init:()=>F_e,metadata:()=>Hw,name:()=>WK,settings:()=>$K});var Hw={$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 Ow=a(T(),1),xa=a(R(),1),_a=a(B(),1),OK=a(zu(),1),jK=a(fe(),1);var Jr=a(v(),1),R_e=1,z_e=100;function UK({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:n,displayDate:i,displayContent:l}=e,s=q(),{content:c,status:u,error:m}=(0,OK.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,jK.useDisabled)(),d=(0,Ow.useBlockProps)({ref:p});return(0,Jr.jsxs)(Jr.Fragment,{children:[(0,Jr.jsx)(Ow.InspectorControls,{children:(0,Jr.jsxs)(xa.__experimentalToolsPanel,{label:(0,_a.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,Jr.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,_a.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,Jr.jsx)(xa.ToggleControl,{label:(0,_a.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,Jr.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,_a.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,Jr.jsx)(xa.ToggleControl,{label:(0,_a.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,Jr.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>l!=="excerpt",label:(0,_a.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,Jr.jsx)(xa.SelectControl,{__next40pxDefaultSize:!0,label:(0,_a.__)("Display content"),value:l,options:[{label:(0,_a.__)("No content"),value:"none"},{label:(0,_a.__)("Excerpt"),value:"excerpt"},{label:(0,_a.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,Jr.jsx)(xa.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,_a.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,Jr.jsx)(xa.RangeControl,{__next40pxDefaultSize:!0,label:(0,_a.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:R_e,max:z_e,required:!0})})]})}),u==="loading"&&(0,Jr.jsx)("div",{...d,children:(0,Jr.jsx)(xa.Spinner,{})}),u==="error"&&(0,Jr.jsx)("div",{...d,children:(0,Jr.jsx)("p",{children:(0,_a.sprintf)((0,_a.__)("Error: %s"),m)})}),u==="success"&&(0,Jr.jsx)(uo,{wrapperProps:d,html:c})]})}var V_e={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"}}},GK=[V_e];var{name:WK}=Hw,$K={icon:$0,example:{},edit:UK,deprecated:GK},F_e=()=>I({name:WK,metadata:Hw,settings:$K});var dD={};Z(dD,{init:()=>Z_e,metadata:()=>Rh,name:()=>JK,settings:()=>eY});var Rh={$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},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},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,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}},__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{attributes:O_e}=Rh,qK=[{attributes:{...O_e,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var qe=a(R(),1),ze=a(B(),1),zh=a(Yk(),1),Ys=a(T(),1),Lv=a(F(),1);var mD=a(X(),1),YK=a(_r(),1),QK=a(fe(),1),XK=a(j(),1);var ZK=10,KK=100,uD=6,jw=55;var be=a(v(),1),j_e={per_page:-1,_fields:"id,name",context:"view"},U_e={per_page:-1,has_published_posts:["post"],context:"view"},G_e=[{value:"none",icon:a9,label:(0,ze.__)("None")},{value:"left",icon:DP,label:(0,ze.__)("Left")},{value:"center",icon:NP,label:(0,ze.__)("Center")},{value:"right",icon:MP,label:(0,ze.__)("Right")}];function W_e(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 $_e(e){return e._embedded?.author?.[0]}function q_e({attributes:e,setAttributes:t,postCount:r}){let{postsToShow:o,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:g,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{imageSizes:S,defaultImageWidth:C,defaultImageHeight:E,categoriesList:P,authorList:N}=(0,Lv.useSelect)(L=>{let{getEntityRecords:U,getUsers:H}=L(mD.store),G=L(Ys.store).getSettings();return{defaultImageWidth:G.imageDimensions?.[y]?.width??0,defaultImageHeight:G.imageDimensions?.[y]?.height??0,imageSizes:G.imageSizes,categoriesList:U("taxonomy","category",j_e),authorList:H(U_e)}},[y]),z=q(),V=S.filter(({slug:L})=>L!=="full").map(({name:L,slug:U})=>({value:U,label:L})),A=P?.reduce((L,U)=>({...L,[U.name]:U}),{})??{},M=L=>{if(L.some(G=>typeof G=="string"&&!A[G]))return;let H=L.map(G=>typeof G=="string"?A[G]:G);if(H.includes(null))return!1;t({categories:H})};return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsxs)(qe.__experimentalToolsPanel,{label:(0,ze.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:jw}),dropdownMenuProps:z,children:[(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,ze.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,be.jsx)(qe.ToggleControl,{label:(0,ze.__)("Display post content"),checked:m,onChange:L=>t({displayPostContent:L})})}),m&&(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>u!=="excerpt",label:(0,ze.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,be.jsx)(qe.RadioControl,{label:(0,ze.__)("Content length"),selected:u,options:[{label:(0,ze.__)("Excerpt"),value:"excerpt"},{label:(0,ze.__)("Full post"),value:"full_post"}],onChange:L=>t({displayPostContentRadio:L})})}),m&&u==="excerpt"&&(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>g!==jw,label:(0,ze.__)("Max number of words"),onDeselect:()=>t({excerptLength:jw}),isShownByDefault:!0,children:(0,be.jsx)(qe.RangeControl,{__next40pxDefaultSize:!0,label:(0,ze.__)("Max number of words"),value:g,onChange:L=>t({excerptLength:L}),min:ZK,max:KK})})]}),(0,be.jsxs)(qe.__experimentalToolsPanel,{label:(0,ze.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:z,children:[(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,ze.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,be.jsx)(qe.ToggleControl,{label:(0,ze.__)("Display author name"),checked:d,onChange:L=>t({displayAuthor:L})})}),(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,ze.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,be.jsx)(qe.ToggleControl,{label:(0,ze.__)("Display post date"),checked:p,onChange:L=>t({displayPostDate:L})})})]}),(0,be.jsxs)(qe.__experimentalToolsPanel,{label:(0,ze.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:z,children:[(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,ze.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,be.jsx)(qe.ToggleControl,{label:(0,ze.__)("Display featured image"),checked:c,onChange:L=>t({displayFeaturedImage:L})})}),c&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>y!=="thumbnail"||_!==null||x!==null,label:(0,ze.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,be.jsx)(Ys.__experimentalImageSizeControl,{onChange:L=>{let U={};L.hasOwnProperty("width")&&(U.featuredImageSizeWidth=L.width),L.hasOwnProperty("height")&&(U.featuredImageSizeHeight=L.height),t(U)},slug:y,width:_,height:x,imageWidth:C,imageHeight:E,imageSizeOptions:V,imageSizeHelp:(0,ze.__)("Select the size of the source image."),onChangeImage:L=>t({featuredImageSizeSlug:L,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,ze.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,be.jsx)(qe.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__next40pxDefaultSize:!0,label:(0,ze.__)("Image alignment"),value:b||"none",onChange:L=>t({featuredImageAlign:L!=="none"?L:void 0}),children:G_e.map(({value:L,icon:U,label:H})=>(0,be.jsx)(qe.__experimentalToggleGroupControlOptionIcon,{value:L,icon:U,label:H},L))})}),(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,ze.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,be.jsx)(qe.ToggleControl,{label:(0,ze.__)("Add link to featured image"),checked:k,onChange:L=>t({addLinkToFeaturedImage:L})})})]})]}),(0,be.jsxs)(qe.__experimentalToolsPanel,{label:(0,ze.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:z,children:[(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>n!=="desc"||i!=="date"||o!==5||l?.length>0||!!s,label:(0,ze.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,be.jsx)(qe.QueryControls,{order:n,orderBy:i,numberOfItems:o,onOrderChange:L=>t({order:L}),onOrderByChange:L=>t({orderBy:L}),onNumberOfItemsChange:L=>t({postsToShow:L}),categorySuggestions:A,onCategoryChange:M,selectedCategories:l,onAuthorChange:L=>t({selectedAuthor:L!==""?Number(L):void 0}),authorList:N??[],selectedAuthorId:s})}),f==="grid"&&(0,be.jsx)(qe.__experimentalToolsPanelItem,{hasValue:()=>h!==3,label:(0,ze.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,be.jsx)(qe.RangeControl,{__next40pxDefaultSize:!0,label:(0,ze.__)("Columns"),value:h,onChange:L=>t({columns:L}),min:2,max:r?Math.min(uD,r):uD,required:!0})})]})]})}function pD({attributes:e,setAttributes:t}){let r=(0,QK.useInstanceId)(pD),{postsToShow:o,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:h,excerptLength:g,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:k}=e,{latestPosts:S}=(0,Lv.useSelect)(L=>{let{getEntityRecords:U}=L(mD.store),H=l&&l.length>0?l.map(Y=>Y.id):[],G=Object.fromEntries(Object.entries({categories:H,author:s,order:n,orderby:i,per_page:o,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,Y])=>typeof Y<"u"));return{latestPosts:U("postType","post",G)}},[o,n,i,l,s]),{createWarningNotice:C}=(0,Lv.useDispatch)(YK.store),E=L=>{L.preventDefault(),C((0,ze.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${r}`,type:"snackbar"})},P=!!S?.length,N=(0,be.jsx)(Ys.InspectorControls,{children:(0,be.jsx)(q_e,{attributes:e,setAttributes:t,postCount:S?.length??0})}),z=(0,Ys.useBlockProps)({className:w({"wp-block-latest-posts__list":!0,"is-grid":f==="grid","has-dates":p,"has-author":d,[`columns-${h}`]:f==="grid"})});if(!P)return(0,be.jsxs)("div",{...z,children:[N,(0,be.jsx)(qe.Placeholder,{icon:p1,label:(0,ze.__)("Latest Posts"),children:Array.isArray(S)?(0,ze.__)("No posts found."):(0,be.jsx)(qe.Spinner,{})})]});let V=S.length>o?S.slice(0,o):S,A=[{icon:Ll,title:(0,ze._x)("List view","Latest posts block display setting"),onClick:()=>t({postLayout:"list"}),isActive:f==="list"},{icon:Dl,title:(0,ze._x)("Grid view","Latest posts block display setting"),onClick:()=>t({postLayout:"grid"}),isActive:f==="grid"}],M=(0,zh.getSettings)().formats.date;return(0,be.jsxs)(be.Fragment,{children:[N,(0,be.jsx)(Ys.BlockControls,{children:(0,be.jsx)(qe.ToolbarGroup,{controls:A})}),(0,be.jsx)("ul",{...z,children:V.map(L=>{let U=L.title.rendered.trim(),H=L.excerpt.rendered,G=$_e(L),Y=document.createElement("div");Y.innerHTML=H,H=Y.textContent||Y.innerText||"";let{url:O,alt:te}=W_e(L,y),se=w({"wp-block-latest-posts__featured-image":!0,[`align${b}`]:!!b}),Q=c&&O,ce=Q&&(0,be.jsx)("img",{src:O,alt:te,style:{maxWidth:_,maxHeight:x}}),le=g<H.trim().split(" ").length&&L.excerpt.raw===""?(0,be.jsxs)(be.Fragment,{children:[H.trim().split(" ",g).join(" "),(0,XK.createInterpolateElement)((0,ze.sprintf)((0,ze.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),U||(0,ze.__)("(no title)")),{a:(0,be.jsx)("a",{className:"wp-block-latest-posts__read-more",href:L.link,rel:"noopener",onClick:E}),span:(0,be.jsx)("span",{className:"screen-reader-text"})})]}):H;return(0,be.jsxs)("li",{children:[Q&&(0,be.jsx)("div",{className:se,children:k?(0,be.jsx)("a",{href:L.link,onClick:E,children:ce}):ce}),(0,be.jsx)("a",{className:"wp-block-latest-posts__post-title",href:L.link,dangerouslySetInnerHTML:U?{__html:U}:void 0,onClick:E,children:U?null:(0,ze.__)("(no title)")}),d&&G&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,ze.sprintf)((0,ze.__)("by %s"),G.name)}),p&&L.date_gmt&&(0,be.jsx)("time",{dateTime:(0,zh.format)("c",L.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,zh.dateI18n)(M,L.date_gmt)}),m&&u==="excerpt"&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:le}),m&&u==="full_post"&&(0,be.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:L.content.raw.trim()}})]},L.id)})})]})}var{name:JK}=Rh,eY={icon:v1,example:{},edit:pD,deprecated:qK},Z_e=()=>I({name:JK,metadata:Rh,settings:eY});var vD={};Z(vD,{init:()=>cxe,metadata:()=>qw,name:()=>fY,settings:()=>hY});var Hh=a(B(),1);var as=a(T(),1);var Vh=a($(),1),Uw={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function fD(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&&Uw[t]?Uw[t]:void 0},o=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,Vh.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let m={content:u.join("").trim()},p=[fD(l)];return(0,Vh.createBlock)("core/list-item",m,p)});return(0,Vh.createBlock)("core/list",r,o)}function Gw(e){let{values:t,start:r,reversed:o,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,r&&s.setAttribute("start",r),o&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,Vh.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function tY(e){let{type:t}=e;return t&&Uw[t]?{...e,type:Uw[t]}:e}var ru=a(v(),1),K_e={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,ru.jsx)(t?"ol":"ul",{...as.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,ru.jsx)(as.RichText.Content,{value:r,multiline:"li"})})},migrate:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},Y_e={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,ru.jsx)(t?"ol":"ul",{...as.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,ru.jsx)(as.RichText.Content,{value:r,multiline:"li"})})},migrate:Gw},Q_e={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,ru.jsx)(t?"ol":"ul",{...as.useBlockProps.save({type:r,reversed:o,start:n}),children:(0,ru.jsx)(as.InnerBlocks.Content,{})})},migrate:tY},X_e={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,ru.jsx)(t?"ol":"ul",{...as.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,ru.jsx)(as.InnerBlocks.Content,{})})}},rY=[X_e,Q_e,Y_e,K_e];var is=a(T(),1),Ww=a(R(),1),xm=a(F(),1),ns=a(B(),1);var sY=a($(),1),$w=a(j(),1),cY=a(Uf(),1);var bi=a(B(),1),oY=a(T(),1),al=a(R(),1);var Qs=a(v(),1),J_e=[{label:(0,bi.__)("Numbers"),value:"decimal"},{label:(0,bi.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,bi.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,bi.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,bi.__)("Lowercase Roman numerals"),value:"lower-roman"}],exe=({setAttributes:e,reversed:t,start:r,type:o})=>{let n=q();return(0,Qs.jsx)(oY.InspectorControls,{children:(0,Qs.jsxs)(al.__experimentalToolsPanel,{label:(0,bi.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,Qs.jsx)(al.__experimentalToolsPanelItem,{label:(0,bi.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,Qs.jsx)(al.SelectControl,{__next40pxDefaultSize:!0,label:(0,bi.__)("List style"),options:J_e,value:o||"decimal",onChange:i=>e({type:i})})}),(0,Qs.jsx)(al.__experimentalToolsPanelItem,{label:(0,bi.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,Qs.jsx)(al.TextControl,{label:(0,bi.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(r)?r.toString(10):"",step:"1"})}),(0,Qs.jsx)(al.__experimentalToolsPanelItem,{label:(0,bi.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,Qs.jsx)(al.ToggleControl,{label:(0,bi.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},aY=exe;var nY=a(j(),1),iY=a(v(),1);function txe(e,t){let{ordered:r,...o}=e;return(0,iY.jsx)(r?"ol":"ul",{ref:t,...o})}var lY=(0,nY.forwardRef)(txe);var An=a(v(),1),rxe={name:"core/list-item"},oxe=[["core/list-item"]];function axe(e,t){let r=(0,xm.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n}=(0,xm.useDispatch)(is.store);(0,$w.useEffect)(()=>{if(!e.values)return;let[i,l]=Gw(e);(0,cY.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),n(t,l)})},[e.values])}function nxe(e){let{replaceBlocks:t,selectionChange:r}=(0,xm.useDispatch)(is.store),{getBlockRootClientId:o,getBlockAttributes:n,getBlock:i}=(0,xm.useSelect)(is.store);return(0,$w.useCallback)(()=>{let l=o(e),s=n(l),c=(0,sY.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),r(u[u.length-1].clientId)},[e])}function ixe({clientId:e}){let t=nxe(e),r=(0,xm.useSelect)(o=>{let{getBlockRootClientId:n,getBlockName:i}=o(is.store);return i(n(e))==="core/list-item"},[e]);return(0,An.jsx)(An.Fragment,{children:(0,An.jsx)(Ww.ToolbarButton,{icon:(0,ns.isRTL)()?r1:o1,title:(0,ns.__)("Outdent"),description:(0,ns.__)("Outdent list item"),disabled:!r,onClick:t})})}function uY({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:n,reversed:i,start:l}=e,s=(0,is.useBlockProps)({style:{listStyleType:o&&n!=="decimal"?n:void 0}}),c=(0,is.useInnerBlocksProps)(s,{defaultBlock:rxe,directInsert:!0,template:oxe,templateLock:!1,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0});axe(e,r);let u=(0,An.jsxs)(is.BlockControls,{group:"block",children:[(0,An.jsx)(Ww.ToolbarButton,{icon:(0,ns.isRTL)()?J0:e1,title:(0,ns.__)("Unordered"),description:(0,ns.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,An.jsx)(Ww.ToolbarButton,{icon:(0,ns.isRTL)()?t1:Oi,title:(0,ns.__)("Ordered"),description:(0,ns.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,An.jsx)(ixe,{clientId:r})]});return(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(lY,{ordered:o,reversed:i,start:l,...c}),u,o&&(0,An.jsx)(aY,{setAttributes:t,reversed:i,start:l,type:n})]})}var qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"An organized collection of items displayed in a specific order.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0},listView:!0},selectors:{border:".wp-block-list:not(.wp-block-list .wp-block-list)"},editorStyle:"wp-block-list-editor",style:"wp-block-list"};var Zw=a(T(),1),hD=a(v(),1);function mY({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,hD.jsx)(t?"ol":"ul",{...Zw.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,hD.jsx)(Zw.InnerBlocks.Content,{})})}var ou=a($(),1),Fh=a(em(),1);function pY({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function gD(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...gD(o)]:gD(o))}var sxe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,ou.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,Fh.create)({html:e[0].content});t=(0,Fh.split)(r,`
33 -`).map(o=>(0,ou.createBlock)("core/list-item",{content:(0,Fh.toHTMLString)({value:o})}))}return(0,ou.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:pY(e).ol,ul:pY(e).ul}),transform:fD},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,ou.createBlock)("core/list",{},[(0,ou.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,ou.createBlock)("core/list",{ordered:!0},[(0,ou.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>gD(r).map(o=>(0,ou.createBlock)(e,{content:o}))}))]},dY=sxe;var{name:fY}=qw,hY={icon:Ll,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Hh.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Hh.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Hh.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Hh.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Hh.__)("The Queen of Hearts.")}}]},transforms:dY,edit:uY,save:mY,deprecated:rY},cxe=()=>I({name:fY,metadata:qw,settings:hY});var yD={};Z(yD,{init:()=>dxe,metadata:()=>Yw,name:()=>CY,settings:()=>SY});var km=a(B(),1),Kw=a(T(),1),Cm=a(R(),1),wm=a(j(),1),gY=a(F(),1),vY=a($f(),1);var yi=a(v(),1),{Badge:uxe}=W(Cm.privateApis);function bY({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:n}=e,[i,l]=(0,wm.useState)(),[s,c]=(0,wm.useState)(null),[u,m]=(0,wm.useState)(),p=(0,wm.useRef)(o),{__unstableMarkNextChangeAsNotPersistent:d}=(0,gY.useDispatch)(Kw.store);(0,wm.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{m(()=>h.default),p.current&&(d(),t({mathML:h.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,Kw.useBlockProps)({ref:l,position:"relative"});return(0,yi.jsxs)("div",{...f,children:[n?(0,yi.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",r&&(0,yi.jsx)(Cm.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,yi.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,yi.jsxs)(Cm.__experimentalVStack,{spacing:1,children:[(0,yi.jsx)(Cm.TextareaControl,{__next40pxDefaultSize:!0,label:(0,km.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:o,className:"wp-block-math__textarea-control",onChange:h=>{if(!u){t({latex:h});return}let g="";try{g=u(h,{displayMode:!0}),c(null)}catch(b){c(b.message),(0,vY.speak)((0,km.sprintf)((0,km.__)("Error parsing mathematical expression: %s"),b.message))}t({mathML:g,latex:h})},placeholder:(0,km.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,yi.jsxs)(yi.Fragment,{children:[(0,yi.jsx)(uxe,{intent:"error",className:"wp-block-math__error",children:(0,km.sprintf)((0,km.__)("Error: %s"),s)}),(0,yi.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var Yw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/math",title:"Math",category:"text",description:"Display mathematical notation using LaTeX.",keywords:["equation","formula","latex","mathematics"],textdomain:"default",supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var yY=a(T(),1),bD=a(v(),1);function _Y({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,bD.jsx)("div",{...yY.useBlockProps.save(),children:(0,bD.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}var xY=a(T(),1),kY=a(v(),1),pxe={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,kY.jsx)("math",{...xY.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},wY=[pxe];var{name:CY}=Yw,SY={icon:aP,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:bY,save:_Y,deprecated:wY},dxe=()=>I({name:CY,metadata:Yw,settings:SY});var BD={};Z(BD,{init:()=>xxe,metadata:()=>Qw,name:()=>jY,settings:()=>a4});var FY=a(B(),1);var HY=a(T(),1),OY=a($(),1);var Qw={$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 Js=a(T(),1),Xs=a(B(),1),PD=a(R(),1);var LY=a(fe(),1),MY=a(F(),1),AY=a(Ds(),1);var TY=a(j(),1),Oh=a(F(),1),_D=a(T(),1),PY=a($(),1);function au(){let e=(0,Oh.useRegistry)(),{moveBlocksToPosition:t,removeBlock:r,insertBlock:o,updateBlockListSettings:n}=(0,Oh.useDispatch)(_D.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:m,getBlockListSettings:p}=(0,Oh.useSelect)(_D.store);function d(f){let h=i(f),g=i(h);if(g&&l(g)==="core/list-item")return g}return(0,TY.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let h=f[0];if(l(h)!=="core/list-item")return;let g=d(h);if(!g)return;let b=i(h),y=f[f.length-1],x=s(b).slice(c(y)+1);return e.batch(()=>{if(x.length){let k=s(h)[0];if(!k){let S=(0,PY.cloneBlock)(m(b),{},[]);k=S.clientId,o(S,0,h,!1),n(k,p(b))}t(x,b,k)}t(f,b,i(g),c(g)+1),s(b).length||r(b,!1)}),!0},[])}var BY=a(j(),1),Xw=a(F(),1),xD=a(T(),1),Mv=a($(),1);function Av(e){let{replaceBlocks:t,selectionChange:r,multiSelect:o}=(0,Xw.useDispatch)(xD.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,Xw.useSelect)(xD.store);return(0,BY.useCallback)(()=>{let m=c(),p=m?u():[e],d=p.map(y=>(0,Mv.cloneBlock)(n(y))),f=i(e),h=(0,Mv.cloneBlock)(n(f));h.innerBlocks?.length||(h.innerBlocks=[(0,Mv.createBlock)("core/list")]),h.innerBlocks[h.innerBlocks.length-1].innerBlocks.push(...d);let g=l(),b=s();return t([f,...p],[h]),m?o(d[0].clientId,d[d.length-1].clientId):r(d[0].clientId,b.attributeKey,b.clientId===g.clientId?g.offset:b.offset,b.offset),!0},[e])}var _d=a($(),1),EY=a(j(),1),Jw=a(fe(),1),NY=a(Ds(),1),e4=a(F(),1),kD=a(T(),1);var{subscribeDelegatedListener:hxe}=W(Jw.privateApis);function wD(e){let{replaceBlocks:t,selectionChange:r}=(0,e4.useDispatch)(kD.store),{getBlock:o,getBlockRootClientId:n,getBlockIndex:i,getBlockName:l}=(0,e4.useSelect)(kD.store),s=(0,EY.useRef)(e);s.current=e;let c=au();return(0,Jw.useRefEffect)(u=>{function m(p){if(p.defaultPrevented||p.keyCode!==NY.ENTER)return;let{content:d,clientId:f}=s.current;if(d.length)return;if(p.preventDefault(),l(n(n(s.current.clientId)))==="core/list-item"){c();return}let g=o(n(f)),b=i(f),y=(0,_d.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,b)}),_=(0,_d.createBlock)((0,_d.getDefaultBlockName)()),x=[...g.innerBlocks[b].innerBlocks[0]?.innerBlocks||[],...g.innerBlocks.slice(b+1)],k=x.length?[(0,_d.cloneBlock)({...g,innerBlocks:x})]:[];t(g.clientId,[y,_,...k],1),r(_.clientId)}return hxe(u,"keydown",m,!0)},[])}var t4=a(fe(),1),Rv=a(Ds(),1),IY=a(T(),1),DY=a(F(),1);var{subscribeDelegatedListener:gxe}=W(t4.privateApis);function CD(e){let{getSelectionStart:t,getSelectionEnd:r,getBlockIndex:o}=(0,DY.useSelect)(IY.store),n=Av(e),i=au();return(0,t4.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:m,altKey:p,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==Rv.SPACE&&u!==Rv.TAB||p||d||f)return;let h=t(),g=r();h.offset===0&&g.offset===0&&(m?u===Rv.TAB&&i()&&c.preventDefault():o(e)!==0&&n()&&c.preventDefault())}return gxe(l,"keydown",s,!0)},[e,n])}var jh=a(F(),1),SD=a(T(),1),r4=a($(),1);function TD(e,t){let r=(0,jh.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s,getBlock:c}=(0,jh.useSelect)(SD.store),{mergeBlocks:u,moveBlocksToPosition:m,removeBlock:p,insertBlocks:d}=(0,jh.useDispatch)(SD.store),f=au();function h(b){let y=i(b);return y.length?h(y[y.length-1]):b}function g(b){let y=l(b),_=l(y);if(_&&s(_)==="core/list-item")return _}return b=>{function y(_,x){r.batch(()=>{let[k]=i(x);k&&(o(x)===_&&!i(_).length?m([k],x,_):m(i(k),k,l(_))),u(_,x)})}if(b){let _=i(e)[0],x,k=e;if(_)x=i(_)[0];else for(;!(x=n(k));){let S=g(k);if(!S)break;k=S}if(x)g(x)?f(x):y(e,x);else{let S=l(k),C=n(S);if(C)if(s(C)==="core/list")r.batch(()=>{m(i(C),C,S),p(C,!1)});else{let P=(0,r4.switchToBlockType)(c(C),"core/list")?.[0]?.innerBlocks;P?.length&&r.batch(()=>{d(P,void 0,S,!1),p(C,!1)})}}}else{if(g(e)){f(e);return}let _=o(e);if(_){let k=h(_);y(k,e);return}let x=i(e);(0,r4.isUnmodifiedBlock)(c(e),"content")&&x.length>0?r.batch(()=>{f(i(x[0])),p(e,!0)}):t(b)}}}var _i=a(v(),1);function vxe({clientId:e}){let t=Av(e),r=au(),{canIndent:o,canOutdent:n}=(0,MY.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(Js.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsx)(PD.ToolbarButton,{icon:(0,Xs.isRTL)()?r1:o1,title:(0,Xs.__)("Outdent"),shortcut:AY.displayShortcut.shift("Tab"),description:(0,Xs.__)("Outdent list item"),disabled:!n,onClick:()=>r()}),(0,_i.jsx)(PD.ToolbarButton,{icon:(0,Xs.isRTL)()?sT:uT,title:(0,Xs.__)("Indent"),shortcut:"Tab",description:(0,Xs.__)("Indent list item"),disabled:!o,onClick:()=>t()})]})}function RY({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:n,content:i}=e,l=(0,Js.useBlockProps)(),s=(0,Js.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=wD({content:i,clientId:r}),u=CD(r),m=TD(r,o);return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsxs)("li",{...s,children:[(0,_i.jsx)(Js.RichText,{ref:(0,LY.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:p=>t({content:p}),value:i,"aria-label":(0,Xs.__)("List text"),placeholder:n||(0,Xs.__)("List"),onMerge:m}),s.children]}),(0,_i.jsx)(Js.BlockControls,{group:"block",children:(0,_i.jsx)(vxe,{clientId:r})})]})}var Uh=a(T(),1),zv=a(v(),1);function zY({attributes:e}){return(0,zv.jsxs)("li",{...Uh.useBlockProps.save(),children:[(0,zv.jsx)(Uh.RichText.Content,{value:e.content}),(0,zv.jsx)(Uh.InnerBlocks.Content,{})]})}var o4=a($(),1),bxe={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,o4.createBlock)("core/paragraph",e),...t.map(r=>(0,o4.cloneBlock)(r))]}]},VY=bxe;var{fieldsKey:yxe,formKey:_xe}=W(OY.privateApis),{name:jY}=Qw,a4={icon:YT,edit:RY,save:zY,merge(e,t){return{...e,content:e.content+t.content}},transforms:VY,[W(HY.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&&(a4[yxe]=[{id:"content",label:(0,FY.__)("Content"),type:"text",Edit:"rich-text"}],a4[_xe]={fields:["content"]});var xxe=()=>I({name:jY,metadata:Qw,settings:a4});var ED={};Z(ED,{init:()=>wxe,metadata:()=>i4,name:()=>GY,settings:()=>WY});var n4=a(T(),1),Sm=a(R(),1),xd=a(B(),1);var xi=a(v(),1);function UY({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,n=q();return(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(n4.InspectorControls,{children:(0,xi.jsxs)(Sm.__experimentalToolsPanel,{label:(0,xd.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,xi.jsx)(Sm.__experimentalToolsPanelItem,{label:(0,xd.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,xi.jsx)(Sm.ToggleControl,{label:(0,xd.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,xi.jsx)(Sm.__experimentalToolsPanelItem,{label:(0,xd.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,xi.jsx)(Sm.ToggleControl,{label:(0,xd.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,xi.jsx)("div",{...(0,n4.useBlockProps)({className:"logged-in"}),children:(0,xi.jsx)("a",{href:"#login-pseudo-link",children:(0,xd.__)("Log out")})})]})}var i4={$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:GY}=i4,WY={icon:JT,edit:UY},wxe=()=>I({name:GY,metadata:i4,settings:WY});var AD={};Z(AD,{init:()=>$xe,metadata:()=>v4,name:()=>pQ,settings:()=>b4});var Hv=a(B(),1);var mQ=a($(),1);var pr=a(T(),1),ND=a(fe(),1);var $Y=a(B(),1),ec="full",Vv=15,l4="none",s4="media",c4="attachment",qY=[["core/paragraph",{placeholder:(0,$Y._x)("Content\u2026","content placeholder")}]];var Ce=a(v(),1),u4=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},ZY=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},kd=50,tc=()=>{},KY=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},Gh=e=>e.align?e:{...e,align:"wide"},m4={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}},ID={...m4,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"}},YY={...ID,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"}},Cxe={...YY,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},DD={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},QY={...DD,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}}},Sxe={...QY,__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}},Txe={attributes:Cxe,supports:Sxe,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||ec,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=i?(0,Ce.jsx)("img",{src:i,alt:r,className:y||null}):null;d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?ZY(i,m):{},C;l!==kd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()})]}):(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},Pxe={attributes:YY,supports:QY,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||ec,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Ce.jsx)("img",{src:i,alt:r,className:y||null});d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?ZY(i,m):{},C;l!==kd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()})]}):(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Gh,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},Bxe={attributes:ID,supports:DD,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||ec,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Ce.jsx)("img",{src:i,alt:r,className:y||null});d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?u4(i,m):{},C;l!==kd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()})]}):(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Gh},Exe={attributes:ID,supports:DD,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||ec,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=(0,Ce.jsx)("img",{src:i,alt:r,className:y||null});d&&(_=(0,Ce.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:i})},k=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),S=u?u4(i,m):{},C;l!==kd&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return(0,Ce.jsxs)("div",{...pr.useBlockProps.save({className:k,style:E}),children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:S,children:(x[n]||tc)()}),(0,Ce.jsx)("div",{...pr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:Gh},Nxe={attributes:{...m4,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,ND.compose)(KY,Gh),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d,linkClass:f,href:h,linkTarget:g,rel:b}=e,y=b||void 0,_=(0,Ce.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null});h&&(_=(0,Ce.jsx)("a",{className:f,href:h,target:g,rel:y,children:_}));let x={image:()=>_,video:()=>(0,Ce.jsx)("video",{controls:!0,src:s})},k=(0,pr.getColorClassName)("background-color",t),S=w({"has-media-on-the-right":i==="right","has-background":k||r,[k]:k,"is-stacked-on-mobile":o,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),C=p?u4(s,d):{},E;return c!==kd&&(E=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Ce.jsxs)("div",{className:S,style:{backgroundColor:k?void 0:r,gridTemplateColumns:E},children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[l]||tc)()}),(0,Ce.jsx)("div",{className:"wp-block-media-text__content",children:(0,Ce.jsx)(pr.InnerBlocks.Content,{})})]})}},Ixe={attributes:{...m4,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,ND.compose)(KY,Gh),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d}=e,f={image:()=>(0,Ce.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,Ce.jsx)("video",{controls:!0,src:s})},h=(0,pr.getColorClassName)("background-color",t),g=w({"has-media-on-the-right":i==="right",[h]:h,"is-stacked-on-mobile":o,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),b=p?u4(s,d):{},y;return c!==kd&&(y=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Ce.jsxs)("div",{className:g,style:{backgroundColor:h?void 0:r,gridTemplateColumns:y},children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",style:b,children:(f[l]||tc)()}),(0,Ce.jsx)("div",{className:"wp-block-media-text__content",children:(0,Ce.jsx)(pr.InnerBlocks.Content,{})})]})}},Dxe={attributes:{...m4,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Gh,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,Ce.jsx)("img",{src:s,alt:n}),video:()=>(0,Ce.jsx)("video",{controls:!0,src:s})},m=(0,pr.getColorClassName)("background-color",t),p=w({"has-media-on-the-right":i==="right",[m]:m,"is-stacked-on-mobile":o}),d;return c!==kd&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Ce.jsxs)("div",{className:p,style:{backgroundColor:m?void 0:r,gridTemplateColumns:d},children:[(0,Ce.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||tc)()}),(0,Ce.jsx)("div",{className:"wp-block-media-text__content",children:(0,Ce.jsx)(pr.InnerBlocks.Content,{})})]})}},XY=[Txe,Pxe,Bxe,Exe,Nxe,Ixe,Dxe];var Jo=a(B(),1),f4=a(F(),1),h4=a(j(),1),No=a(T(),1),Dr=a(R(),1),g4=a(Br(),1);var Fv=a(X(),1);var Wh=a(R(),1),rc=a(T(),1),eQ=a(B(),1),tQ=a(fe(),1),LD=a(F(),1),MD=a(j(),1),d4=a(Br(),1),rQ=a(_r(),1);function p4(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var ka=a(v(),1),oQ=["image","video"],Lxe=()=>{},Mxe=(0,MD.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let n=(0,tQ.useViewportMatch)("small","<");return(0,ka.jsx)(Wh.ResizableBox,{ref:o,showHandle:e&&(!n||!t),...r})});function Axe({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:n}){return(0,ka.jsx)(rc.BlockControls,{group:"other",children:(0,ka.jsx)(rc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:oQ,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:n,onReset:()=>r(void 0)})})}function JY({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:n}=(0,LD.useDispatch)(rQ.store),i=s=>{n(s,{type:"snackbar"})},l=s=>{s.length===1&&r({url:(0,d4.createBlobURL)(s[0])})};return(0,ka.jsx)(rc.MediaPlaceholder,{icon:(0,ka.jsx)(rc.BlockIcon,{icon:s1}),labels:{title:(0,eQ.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:oQ,onFilesPreUpload:l,onError:i,disableMediaButtons:t})}function Rxe(e,t){let{className:r,commitWidthChange:o,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:m,mediaType:p,mediaUrl:d,mediaWidth:f,onSelectMedia:h,onWidthChange:g,enableResize:b,toggleUseFeaturedImage:y,useFeaturedImage:_,featuredImageURL:x,featuredImageAlt:k,refMedia:S}=e,C=!u&&(0,d4.isBlobURL)(d),{toggleSelection:E}=(0,LD.useDispatch)(rc.store);if(d||x||_){let P=()=>{E(!1)},N=(L,U,H)=>{g(parseInt(H.style.width))},z=(L,U,H)=>{E(!0),o(parseInt(H.style.width))},V={right:b&&m==="left",left:b&&m==="right"},A=p==="image"&&i?p4(d||x,n):{},M={image:()=>_&&x?(0,ka.jsx)("img",{ref:S,src:x,alt:k,style:A}):d&&(0,ka.jsx)("img",{ref:S,src:d,alt:c,style:A}),video:()=>(0,ka.jsx)("video",{controls:!0,ref:S,src:d})};return(0,ka.jsxs)(Mxe,{as:"figure",className:w(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:V,onResizeStart:P,onResize:N,onResizeStop:z,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,ka.jsx)(Axe,{onSelectMedia:h,mediaUrl:_&&x?x:d,mediaId:u,toggleUseFeaturedImage:y,useFeaturedImage:_}),(M[p]||Lxe)(),C&&(0,ka.jsx)(Wh.Spinner,{}),!_&&(0,ka.jsx)(JY,{...e}),!x&&_&&(0,ka.jsx)(Wh.Placeholder,{className:"wp-block-media-text--placeholder-image",style:A,withIllustration:!0})]})}return(0,ka.jsx)(JY,{...e})}var aQ=(0,MD.forwardRef)(Rxe);var ct=a(v(),1),{ResolutionTool:zxe}=W(No.privateApis),nQ=e=>Math.max(Vv,Math.min(e,100-Vv));function iQ(e,t){return e?.media_details?.sizes?.[t]?.source_url}function Vxe({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,g4.isBlobURL)(o.url)&&(o.type=(0,g4.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 l=e,s=t;if(n==="image"){if(!l)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||l4){case"file":case s4:l=s4;break;case"post":case c4:l=c4;break;case l4:default:l=l4;break}switch(l){case s4:s=o.url;break;case c4:s=o.link;break}}r({mediaAlt:o.alt,mediaId:o.id,mediaType:n,mediaUrl:i||o.url,mediaLink:o.link||void 0,href:s,linkDestination:l,focalPoint:void 0,useFeaturedImage:!1})}}function Fxe({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,f4.useSelect)(i=>{let{getSettings:l}=i(No.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>iQ(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,ct.jsx)(zxe,{value:t,defaultValue:ec,options:n,onChange:r})}function Hxe({attributes:e,isSelected:t,setAttributes:r,context:{postId:o,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:m,linkTarget:p,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:b,mediaWidth:y,mediaSizeSlug:_,rel:x,verticalAlignment:k,allowedBlocks:S,useFeaturedImage:C}=e,[E]=(0,Fv.useEntityProp)("postType",n,"featured_media",o),{featuredImageMedia:P}=(0,f4.useSelect)(J=>({featuredImageMedia:E&&C?J(Fv.store).getEntityRecord("postType","attachment",E,{context:"view"}):void 0}),[E,C]),{image:N}=(0,f4.useSelect)(J=>({image:f&&t?J(Fv.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),z=C?P?.source_url:"",V=C?P?.alt_text:"",A=()=>{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})},M=(0,h4.useRef)(),L=J=>{let{style:re}=M.current,{x:Me,y:mt}=J;re.objectPosition=`${Me*100}% ${mt*100}%`},[U,H]=(0,h4.useState)(null),G=Vxe({attributes:e,setAttributes:r}),Y=J=>{r(J)},O=J=>{H(nQ(J))},te=J=>{r({mediaWidth:nQ(J)}),H(null)},se=w({"has-media-on-the-right":h==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${k}`]:k,"is-image-fill-element":s}),Q=`${U||y}%`,ce=h==="right"?`1fr ${Q}`:`${Q} 1fr`,Ee={gridTemplateColumns:ce,msGridColumns:ce},le=J=>{r({mediaAlt:J})},ee=J=>{r({verticalAlignment:J})},ve=J=>{let re=iQ(N,J);if(!re)return null;r({mediaUrl:re,mediaSizeSlug:J})},Ne=q(),Re=(0,ct.jsxs)(Dr.__experimentalToolsPanel,{label:(0,Jo.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),ve(ec)},dropdownMenuProps:Ne,children:[(0,ct.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Jo.__)("Media width"),isShownByDefault:!0,hasValue:()=>y!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,ct.jsx)(Dr.RangeControl,{__next40pxDefaultSize:!0,label:(0,Jo.__)("Media width"),value:U||y,onChange:te,min:Vv,max:100-Vv})}),(0,ct.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Jo.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,ct.jsx)(Dr.ToggleControl,{label:(0,Jo.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),g==="image"&&(0,ct.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Jo.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({imageFill:!1}),children:(0,ct.jsx)(Dr.ToggleControl,{label:(0,Jo.__)("Crop image to fill"),checked:!!s,onChange:()=>r({imageFill:!s})})}),s&&(b||z)&&g==="image"&&(0,ct.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Jo.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,ct.jsx)(Dr.FocalPointPicker,{label:(0,Jo.__)("Focal point"),url:C&&z?z:b,value:i,onChange:J=>r({focalPoint:J}),onDragStart:L,onDrag:L})}),g==="image"&&b&&!C&&(0,ct.jsx)(Dr.__experimentalToolsPanelItem,{label:(0,Jo.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>r({mediaAlt:""}),children:(0,ct.jsx)(Dr.TextareaControl,{label:(0,Jo.__)("Alternative text"),value:d,onChange:le,help:(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)(Dr.ExternalLink,{href:(0,Jo.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Jo.__)("Describe the purpose of the image.")}),(0,ct.jsx)("br",{}),(0,Jo.__)("Leave empty if decorative.")]})})}),g==="image"&&!C&&(0,ct.jsx)(Fxe,{image:N,value:_,onChange:ve})]}),Be=(0,No.useBlockProps)({className:se,style:Ee}),Ve=(0,No.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:qY,allowedBlocks:S}),oe=(0,No.useBlockEditingMode)();return(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)(No.InspectorControls,{children:Re}),(0,ct.jsxs)(No.BlockControls,{group:"block",children:[oe==="default"&&(0,ct.jsxs)(ct.Fragment,{children:[(0,ct.jsx)(No.BlockVerticalAlignmentControl,{onChange:ee,value:k}),(0,ct.jsx)(Dr.ToolbarButton,{icon:rB,title:(0,Jo.__)("Show media on left"),isActive:h==="left",onClick:()=>r({mediaPosition:"left"})}),(0,ct.jsx)(Dr.ToolbarButton,{icon:aB,title:(0,Jo.__)("Show media on right"),isActive:h==="right",onClick:()=>r({mediaPosition:"right"})})]}),g==="image"&&!C&&(0,ct.jsx)(No.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:Y,linkDestination:m,mediaType:g,mediaUrl:N&&N.source_url,mediaLink:N&&N.link,linkTarget:p,linkClass:u,rel:x})]}),(0,ct.jsxs)("div",{...Be,children:[h==="right"&&(0,ct.jsx)("div",{...Ve}),(0,ct.jsx)(aQ,{className:"wp-block-media-text__media",onSelectMedia:G,onWidthChange:O,commitWidthChange:te,refMedia:M,enableResize:oe==="default",toggleUseFeaturedImage:A,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:h,mediaType:g,mediaUrl:b,mediaWidth:y,useFeaturedImage:C,featuredImageURL:z,featuredImageAlt:V}),h!=="right"&&(0,ct.jsx)("div",{...Ve})]})]})}var lQ=Hxe;var v4={$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 $h=a(T(),1);var ls=a(v(),1),jxe=50,sQ=()=>{};function cQ({attributes:e}){let{isStackedOnMobile:t,mediaAlt:r,mediaPosition:o,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:h}=e,g=e.mediaSizeSlug||ec,b=h||void 0,y=w({[`wp-image-${s}`]:s&&n==="image",[`size-${g}`]:s&&n==="image"}),_=u?p4(i,m):{},x=i?(0,ls.jsx)("img",{src:i,alt:r,className:y||null,style:_}):null;d&&(x=(0,ls.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let k={image:()=>x,video:()=>(0,ls.jsx)("video",{controls:!0,src:i})},S=w({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),C;l!==jxe&&(C=o==="right"?`auto ${l}%`:`${l}% auto`);let E={gridTemplateColumns:C};return o==="right"?(0,ls.jsxs)("div",{...$h.useBlockProps.save({className:S,style:E}),children:[(0,ls.jsx)("div",{...$h.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ls.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||sQ)()})]}):(0,ls.jsxs)("div",{...$h.useBlockProps.save({className:S,style:E}),children:[(0,ls.jsx)("figure",{className:"wp-block-media-text__media",children:(k[n]||sQ)()}),(0,ls.jsx)("div",{...$h.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var wd=a($(),1),Uxe={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,wd.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,wd.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:l,id:s,overlayColor:c,style:u,textColor:m,url:p,useFeaturedImage:d},f)=>{let h={};return n?h={style:{color:{gradient:n}}}:i&&(h={style:{color:{background:i}}}),u?.color?.text&&(h.style={color:{...h.style?.color,text:u.color.text}}),(0,wd.createBlock)("core/media-text",{align:e,anchor:r,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:o,mediaUrl:p,textColor:m,useFeaturedImage:d,...h},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:r,anchor:o})=>(0,wd.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,wd.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:l,mediaType:s,mediaUrl:c,style:u,textColor:m,useFeaturedImage:p},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let h={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||p?50:100,focalPoint:o,gradient:n,id:l,overlayColor:r,textColor:m,url:c,useFeaturedImage:p,...f};return(0,wd.createBlock)("core/cover",h,d)}}]},uQ=Uxe;var{fieldsKey:Gxe,formKey:Wxe}=W(mQ.privateApis),{name:pQ}=v4,b4={icon:iP,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,Hv.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Hv.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:uQ,edit:lQ,save:cQ,deprecated:XY};window.__experimentalContentOnlyInspectorFields&&(b4[Gxe]=[{id:"media",label:(0,Hv.__)("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,Hv.__)("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})}],b4[Wxe]={fields:["media","link"]});var $xe=()=>I({name:pQ,metadata:v4,settings:b4});var RD={};Z(RD,{init:()=>Zxe,metadata:()=>_4,name:()=>Ov,settings:()=>kQ});var xQ=a($(),1);var nu=a(B(),1),dQ=a(j(),1),fQ=a(R(),1),hQ=a($(),1),y4=a(F(),1),Cd=a(T(),1),gQ=a(Va(),1),qh=a(v(),1);function vQ({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,n=!!o,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,y4.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:h}=d(Cd.store);return{hasFreeformBlock:f("core/freeform",h(t)),hasHTMLBlock:f("core/html",h(t))}},[t]),{replaceBlock:s}=(0,y4.useDispatch)(Cd.store);function c(){s(t,(0,hQ.createBlock)("core/html",{content:o}))}let u=[],m,p=(0,qh.jsx)(fQ.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,nu.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?l?(m=(0,nu.__)("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)):m=(0,nu.__)("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&&l?(m=(0,nu.sprintf)((0,nu.__)('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)):m=(0,nu.sprintf)((0,nu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,qh.jsxs)("div",{...(0,Cd.useBlockProps)({className:"has-warning"}),children:[(0,qh.jsx)(Cd.Warning,{actions:u,children:m}),(0,qh.jsx)(dQ.RawHTML,{children:(0,gQ.safeHTML)(o)})]})}var _4={$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 bQ=a(j(),1),yQ=a(v(),1);function _Q({attributes:e}){return(0,yQ.jsx)(bQ.RawHTML,{children:e.originalContent})}var{name:Ov}=_4,kQ={name:Ov,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,xQ.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:vQ,save:_Q},Zxe=()=>I({name:Ov,metadata:_4,settings:kQ});var zD={};Z(zD,{init:()=>eke,metadata:()=>k4,name:()=>IQ,settings:()=>w4});var EQ=a(B(),1),NQ=a($(),1);var Tm=a(B(),1),Zh=a(R(),1),Kh=a(T(),1),x4=a($(),1);var ss=a(v(),1),Kxe=(0,Tm.__)("Read more");function wQ({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let n=q();return(0,ss.jsxs)(ss.Fragment,{children:[(0,ss.jsx)(Kh.InspectorControls,{children:(0,ss.jsx)(Zh.__experimentalToolsPanel,{label:(0,Tm.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:n,children:(0,ss.jsx)(Zh.__experimentalToolsPanelItem,{label:(0,Tm.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,ss.jsx)(Zh.ToggleControl,{label:(0,Tm.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,Tm.__)("The excerpt is hidden."):(0,Tm.__)("The excerpt is visible.")})})})}),(0,ss.jsx)("div",{...(0,Kh.useBlockProps)(),children:(0,ss.jsx)(Kh.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Tm.__)('"Read more" text'),value:e,placeholder:Kxe,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>r((0,x4.createBlock)((0,x4.getDefaultBlockName)()))})})]})}var k4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:"",role:"content"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,visibility:!1,interactivity:{clientNavigation:!0},customCSS:!1},editorStyle:"wp-block-more-editor"};var CQ=a(j(),1),SQ=a(v(),1);function TQ({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,SQ.jsx)(CQ.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
34 -`)})}var PQ=a($(),1),Qxe={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,PQ.createBlock)("core/more",o)}}]},BQ=Qxe;var{fieldsKey:Xxe,formKey:Jxe}=W(NQ.privateApis),{name:IQ}=k4,w4={icon:mP,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:BQ,edit:wQ,save:TQ};window.__experimentalContentOnlyInspectorFields&&(w4[Xxe]=[{id:"customText",label:(0,EQ.__)("Content"),type:"text",Edit:"rich-text"}],w4[Jxe]={fields:["customText"]});var eke=()=>I({name:IQ,metadata:k4,settings:w4});var vL={};Z(vL,{init:()=>l5e,metadata:()=>C4,name:()=>iee,settings:()=>lee});var b3=a(B(),1);var oee=a(F(),1),aee=a(X(),1),nee=a(Oo(),1);var C4={$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 sr=a(j(),1),Qe=a(T(),1),Lm=a(X(),1),ms=a(F(),1),Ur=a(R(),1),Nt=a(B(),1),h3=a($f(),1);var YJ=a($(),1),QJ=a(fe(),1);var Yh=a(X(),1),MQ=a(F(),1);var ki={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},DQ=["core/navigation-link/page","core/navigation-link"],VD={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},LQ=["postType","wp_navigation",VD],oc="navigation-overlay";function Qh(e){let t=(0,Yh.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n}=(0,MQ.useSelect)(h=>rke(h,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:m,isResolving:p,hasResolved:d}=(0,Yh.useEntityRecords)("postType","wp_navigation",VD),f=e?m?.length>1:m?.length>0;return{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n,navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function rke(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:n}=e(Yh.store),i=["postType","wp_navigation",t],l=r(...i),s=o(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var eg=a(R(),1),Uv=a(B(),1);var FD=a($f(),1),RQ=a(j(),1),zQ=a(X(),1);var AQ=a(B(),1),jv=a(v(),1),oke=({isVisible:e=!0})=>(0,jv.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,jv.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,jv.jsx)(Fa,{icon:Ip}),(0,AQ.__)("Navigation")]})}),S4=oke;var cs=a(R(),1);var Xa=a(B(),1),T4=a(Oo(),1),Xh=a(j(),1),P4=a(X(),1);var nl=a(v(),1);function ake(e,t,r){return e?r==="publish"?(0,T4.decodeEntities)(e):(0,Xa.sprintf)((0,Xa.__)("%1$s (%2$s)"),(0,T4.decodeEntities)(e),r):(0,Xa.sprintf)((0,Xa.__)("(no title %s)"),t)}function nke({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,Xa.__)("Create from '%s'"),[c,u]=(0,Xh.useState)(!1);n=n||s;let{records:m}=(0,P4.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:p,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:h,canSwitchNavigationMenu:g,isNavigationMenuMissing:b}=Qh(e),[y]=(0,P4.useEntityProp)("postType","wp_navigation","title",e),_=(0,Xh.useMemo)(()=>p?.map(({id:M,title:L,status:U},H)=>{let G=ake(L?.rendered,H+1,U);return{value:M,label:G,ariaLabel:(0,Xa.sprintf)(n,G),disabled:c||d||!f}})||[],[p,n,d,f,c]),x=!!p?.length,k=!!m?.length,S=!!g,C=!!h,E=x&&!e,P=!x&&f,N=f&&e===null,z=e&&b,V="";return d?V=(0,Xa.__)("Loading\u2026"):E||P||N||z?V=(0,Xa.__)("Choose or create a Navigation Menu"):V=y,(0,Xh.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,h,l,c,N,P,E]),(0,nl.jsx)(cs.DropdownMenu,{label:V,icon:c1,toggleProps:{size:"small"},children:({onClose:M})=>(0,nl.jsxs)(nl.Fragment,{children:[S&&x&&(0,nl.jsx)(cs.MenuGroup,{label:(0,Xa.__)("Menus"),children:(0,nl.jsx)(cs.MenuItemsChoice,{value:e,onSelect:L=>{t(L),M()},choices:_})}),C&&k&&(0,nl.jsx)(cs.MenuGroup,{label:(0,Xa.__)("Import Classic Menus"),children:m?.map(L=>{let U=(0,T4.decodeEntities)(L.name);return(0,nl.jsx)(cs.MenuItem,{onClick:async()=>{u(!0),await r(L),u(!1),M()},"aria-label":(0,Xa.sprintf)(s,U),disabled:c||d||!f,children:U},L.id)})}),h&&(0,nl.jsx)(cs.MenuGroup,{label:(0,Xa.__)("Tools"),children:(0,nl.jsx)(cs.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),M()},disabled:c||d||!f,children:(0,Xa.__)("Create new Menu")})})]})})}var Jh=nke;var wa=a(v(),1);function VQ({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolving:c,hasResolved:u}=(0,zQ.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,RQ.useEffect)(()=>{e&&(c&&(0,FD.speak)((0,Uv.__)("Loading navigation block setup options\u2026")),u&&(0,FD.speak)((0,Uv.__)("Navigation block setup options ready.")))},[u,c,e]);let m=c&&n;return(0,wa.jsx)(wa.Fragment,{children:(0,wa.jsxs)(eg.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,wa.jsx)(S4,{isVisible:!e}),(0,wa.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,wa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,wa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,wa.jsx)(Fa,{icon:Ip})," ",(0,Uv.__)("Navigation")]}),(0,wa.jsx)("hr",{}),m&&(0,wa.jsx)(eg.Spinner,{}),(0,wa.jsx)(Jh,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,wa.jsx)("hr",{}),o&&(0,wa.jsx)(eg.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,Uv.__)("Start empty")})]})})]})})}var HD=a(R(),1),rg=a(B(),1),OD=a(T(),1),FQ=a(F(),1),HQ=a(X(),1);var Gv=a(D(),1);var tg=a(v(),1);function ac({icon:e}){return e==="menu"?(0,tg.jsx)(Fa,{icon:sP}):(0,tg.jsxs)(Gv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,tg.jsx)(Gv.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,tg.jsx)(Gv.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function Ja(e,t){return e&&t?e+"//"+t:null}var wi=a(v(),1);function jD({children:e,id:t,isOpen:r,isResponsive:o,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:m,onNavigateToEntityRecord:p}){let d=(0,FQ.useSelect)(k=>k(HQ.store).getCurrentTheme()?.stylesheet,[]);if(!o)return e;let f=!!m,h=w("wp-block-navigation__responsive-container",!f&&{"has-text-color":!!s.color||!!s?.class,[(0,OD.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,OD.getColorClassName)("background-color",l?.slug)]:!!l?.slug},{"is-menu-open":r,"hidden-by-default":i}),g=f?{}:{color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},b=w("wp-block-navigation__responsive-container-open",{"always-shown":i}),y=`${t}-modal`,_={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,rg.__)("Menu")}},x=()=>{if(m&&p){let k=Ja(d,m);p({postId:k,postType:"wp_template_part"});return}n(!0)};return(0,wi.jsxs)(wi.Fragment,{children:[!r&&(0,wi.jsxs)(HD.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,rg.__)("Open menu"),className:b,onClick:x,children:[c&&(0,wi.jsx)(ac,{icon:u}),!c&&(0,rg.__)("Menu")]}),(0,wi.jsx)("div",{className:h,style:g,id:y,children:(0,wi.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,wi.jsxs)("div",{..._,children:[(0,wi.jsxs)(HD.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,rg.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,wi.jsx)(Fa,{icon:wp}),!c&&(0,rg.__)("Close")]}),(0,wi.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${y}-content`,children:e})]})})})]})}var OQ=a(X(),1),og=a(T(),1),jQ=a(F(),1),UQ=a(j(),1);var UD=a(v(),1);function GQ({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,jQ.useSelect)(b=>{let{getBlockCount:y,hasSelectedInnerBlock:_,getSelectedBlockClientId:x}=b(og.store),k=x();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!y(k),hasSelectedDescendant:_(e,!0),isSelected:k===e}},[e]),[c,u,m]=(0,OQ.useEntityBlockEditor)("postType","wp_navigation"),p=l||n&&!i,d=(0,UQ.useMemo)(()=>(0,UD.jsx)(S4,{}),[]),f=!!c?.length,h=!t&&!f&&!l,g=(0,og.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:m,prioritizedInserterBlocks:DQ,defaultBlock:ki,directInsert:!0,orientation:r,templateLock:o,renderAppender:l||n&&!i||s||p?og.InnerBlocks.ButtonBlockAppender:!1,placeholder:h?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,UD.jsx)("div",{...g})}var WQ=a(R(),1),$Q=a(X(),1),qQ=a(B(),1),ZQ=a(v(),1);function KQ(){let[e,t]=(0,$Q.useEntityProp)("postType","wp_navigation","title");return(0,ZQ.jsx)(WQ.TextControl,{label:(0,qQ.__)("Menu name"),value:e,onChange:t})}var XQ=a(T(),1),GD=a(R(),1),JQ=a(X(),1),eX=a(F(),1),Sd=a(j(),1);function YQ(e,t){return!QQ(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var QQ=(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(!QQ(e[o],t[o],r))return!1}else return!1;return!0}return!1};var tX=a(v(),1),ike={};function rX({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,Sd.useRef)();(0,Sd.useEffect)(()=>{o?.current||(o.current=e)},[e]);let n=YQ(o?.current,e),i=(0,Sd.useContext)(GD.Disabled.Context),l=(0,XQ.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:ki,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,eX.useSelect)(m=>{if(i)return ike;let{hasFinishedResolution:p,isSavingEntityRecord:d}=m(JQ.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",LQ)}},[i]);return(0,Sd.useEffect)(()=>{i||s||!c||!r||!n||t(null,e)},[e,t,i,s,c,n,r]),(0,tX.jsx)(s?GD.Disabled:"div",{...l})}var E4=a(R(),1),N4=a(X(),1),oX=a(F(),1),aX=a(j(),1),B4=a(B(),1),Td=a(v(),1);function nX({onDelete:e}){let[t,r]=(0,aX.useState)(!1),o=(0,N4.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,oX.useDispatch)(N4.store);return(0,Td.jsxs)(Td.Fragment,{children:[(0,Td.jsx)(E4.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,B4.__)("Delete menu")}),t&&(0,Td.jsx)(E4.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,B4.__)("Delete"),size:"medium",children:(0,B4.__)("Are you sure you want to delete this Navigation Menu?")})]})}var Wv=a(j(),1),iX=a(F(),1),lX=a(_r(),1);function lke({name:e,message:t=""}={}){let r=(0,Wv.useRef)(),{createWarningNotice:o,removeNotice:n}=(0,iX.useDispatch)(lX.store),i=(0,Wv.useCallback)(s=>{r.current||(r.current=e,o(s||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),l=(0,Wv.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,l]}var I4=lke;var nc=a(R(),1),Pm=a(B(),1);var Ci=a(v(),1);function sX({setAttributes:e,hasIcon:t,icon:r}){return(0,Ci.jsxs)(Ci.Fragment,{children:[(0,Ci.jsx)(nc.__experimentalToolsPanelItem,{label:(0,Pm.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,Ci.jsx)(nc.ToggleControl,{label:(0,Pm.__)("Show icon button"),help:(0,Pm.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,Ci.jsx)(nc.__experimentalToolsPanelItem,{label:(0,Pm.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,Ci.jsxs)(nc.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,Pm.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,Ci.jsx)(nc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Pm.__)("handle"),label:(0,Ci.jsx)(ac,{icon:"handle"})}),(0,Ci.jsx)(nc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Pm.__)("menu"),label:(0,Ci.jsx)(ac,{icon:"menu"})})]})})]})}var O4=a(R(),1),AX=a(B(),1),RX=a(j(),1);var il=a(j(),1),CX=a(fe(),1),z4=a(X(),1),V4=a(F(),1),en=a(R(),1),ea=a(B(),1),qD=a(Oo(),1),SX=a(_r(),1);var gX=a(j(),1),A4=a(F(),1),vX=a(X(),1),bX=a(T(),1),yX=a(B(),1),Bd=a($(),1);var Bm=function(){return Bm=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},Bm.apply(this,arguments)};function cX(e){return e.toLowerCase()}var ske=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],cke=/[^A-Z0-9]+/gi;function D4(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,o=r===void 0?ske:r,n=t.stripRegexp,i=n===void 0?cke:n,l=t.transform,s=l===void 0?cX:l,c=t.delimiter,u=c===void 0?" ":c,m=uX(uX(e,o,"$1\0$2"),i,"\0"),p=0,d=m.length;m.charAt(p)==="\0";)p++;for(;m.charAt(d-1)==="\0";)d--;return m.slice(p,d).split("\0").map(s).join(u)}function uX(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(o,n){return o.replace(n,r)},e)}function mX(e){return e.charAt(0).toUpperCase()+e.substr(1)}function uke(e){return mX(e.toLowerCase())}function pX(e,t){return t===void 0&&(t={}),D4(e,Bm({delimiter:" ",transform:uke},t))}function dX(e,t){return t===void 0&&(t={}),D4(e,Bm({delimiter:"."},t))}function L4(e,t){return t===void 0&&(t={}),dX(e,Bm({delimiter:"-"},t))}function WD(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function $D(e,t,r){if(!e)return;t(WD(e).color);let o=e,n=WD(o).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,n=WD(o).backgroundColor;r(n)}function Pd(e,t){let{textColor:r,customTextColor:o,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:m}=e,p={};return t&&s?p.customTextColor=s:t&&l?p.textColor=l:o?p.customTextColor=o:r?p.textColor=r:m?.color?.text&&(p.customTextColor=m.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:m?.color?.background&&(p.customTextColor=m.color.background),p}function M4(e){return{className:w("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 fX=(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}`},hX=e=>L4(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function _X(e){let{saveEntityRecord:t}=(0,A4.useDispatch)(vX.store),r=(0,A4.useSelect)(n=>W(n(bX.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,gX.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=fX((0,yX.__)("Navigation Overlay"),n),l=hX(i),s="";if(r?.content){let u=(0,Bd.parse)(r.content,{__unstableSkipMigrationLogs:!0});s=(0,Bd.serialize)(u)}else s=(0,Bd.serialize)([(0,Bd.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:l,title:i,content:s,area:oc},{throwOnError:!0})},[e,t,r])}var $v=a(R(),1),xX=a(B(),1),kX=a(j(),1),R4=a(v(),1);function mke({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,kX.createInterpolateElement)((0,xX.__)("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,R4.jsx)($v.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,R4.jsx)($v.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,R4.jsx)($v.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var wX=mke;var vo=a(v(),1);function ZD({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:n,setIsCreatingOverlay:i}){let l=(0,CX.useInstanceId)(ZD,"wp-block-navigation__overlay-selector-heading"),{records:s,isResolving:c,hasResolved:u}=(0,z4.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:m}=(0,V4.useDispatch)(SX.store),p=(0,V4.useSelect)(A=>A(z4.store).getCurrentTheme()?.stylesheet,[]),[d,f]=(0,il.useState)(!1),h=n!==void 0?n:d,g=i!==void 0?i:f,b=(0,il.useMemo)(()=>s?s.filter(A=>A.area===oc):[],[s]),y=_X(b),_=(0,il.useMemo)(()=>!e||!b?null:b.find(A=>A.slug===e),[e,b]),x=(0,il.useMemo)(()=>{let A=[{label:(0,ea.__)("Default"),value:""}];if(!u||c)return A;let M=b.map(L=>({label:L.title?.rendered?(0,qD.decodeEntities)(L.title.rendered):L.slug,value:L.slug}));return e&&!_&&M.unshift({label:(0,ea.sprintf)((0,ea.__)("%s (missing)"),e),value:e}),[...A,...M]},[b,u,c,e,_]),k=A=>{r({overlay:A||void 0})},S=()=>{if(!e||!_||!o)return;let A=_.theme||p,L={postId:Ja(A,e),postType:"wp_template_part"};t==="mobile"&&(L.viewport="mobile"),o(L)},C=(0,il.useCallback)(async()=>{try{g(!0);let A=await y();if(r({overlay:A.slug}),o){let M=A.theme||p,U={postId:Ja(M,A.slug),postType:"wp_template_part"};t==="mobile"&&(U.viewport="mobile"),o(U)}else g(!1)}catch(A){let M=A instanceof Error&&"code"in A&&A.message&&A.code!=="unknown_error"?A.message:(0,ea.__)("An error occurred while creating the overlay.");m(M,{type:"snackbar"}),g(!1)}},[y,r,o,m,p,g,t]),E=(0,il.useCallback)(()=>{r({overlay:void 0})},[r]),P=c||h,N=(0,il.useMemo)(()=>e&&u&&!c&&!_,[e,u,c,_]),z=(0,il.useMemo)(()=>b.length===0&&u?(0,ea.__)("No overlays found."):(0,ea.__)("Select an overlay for navigation."),[b.length,u]),V=(0,il.useMemo)(()=>_?(0,ea.sprintf)((0,ea.__)("Edit overlay: %s"),_.title?.rendered?(0,qD.decodeEntities)(_.title.rendered):_.slug):(0,ea.__)("Edit overlay"),[_]);return(0,vo.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,vo.jsx)("h3",{id:l,className:"wp-block-navigation__overlay-selector-header",children:(0,ea.__)("Overlay template")}),u&&(b.length===0||h&&b.length===1)?(0,vo.jsx)(vo.Fragment,{children:(0,vo.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:h,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,ea.__)("Create overlay")})}):(0,vo.jsxs)(vo.Fragment,{children:[(0,vo.jsx)(en.Button,{size:"small",icon:Df,onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:h,label:(0,ea.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,vo.jsxs)(en.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,vo.jsx)(en.FlexBlock,{children:(0,vo.jsx)(en.SelectControl,{__next40pxDefaultSize:!0,label:(0,ea.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":l,value:e||"",options:x,onChange:k,disabled:c,accessibleWhenDisabled:!0,help:z})}),e&&u&&_&&(0,vo.jsx)(en.FlexItem,{children:(0,vo.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:S,disabled:!o,accessibleWhenDisabled:!0,label:V,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,ea.__)("Edit")})})]}),N&&(0,vo.jsx)(wX,{onClear:E,onCreate:C,isCreating:h})]}),(0,vo.jsx)(en.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,vo.jsx)(en.__experimentalText,{variant:"muted",isBlock:!0,className:"wp-block-navigation__overlay-help-text",children:(0,ea.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var ag=a(R(),1),Ed=a(B(),1),ng=a(v(),1);function TX({overlayMenu:e,setAttributes:t}){return(0,ng.jsxs)(ag.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Ed.__)("Overlay Visibility"),"aria-label":(0,Ed.__)("Configure overlay visibility"),value:e,help:(0,Ed.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,ng.jsx)(ag.__experimentalToggleGroupControlOption,{value:"never",label:(0,Ed.__)("Off")}),(0,ng.jsx)(ag.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Ed.__)("Mobile")}),(0,ng.jsx)(ag.__experimentalToggleGroupControlOption,{value:"always",label:(0,Ed.__)("Always")})]})}var H4=a(R(),1),F4=a(B(),1);var lu=a(R(),1),ig=a(B(),1);var iu=a(v(),1);function PX({hasIcon:e,icon:t,setAttributes:r}){return(0,iu.jsxs)(lu.__experimentalVStack,{spacing:4,children:[(0,iu.jsx)(lu.ToggleControl,{label:(0,ig.__)("Show icon button"),help:(0,ig.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,iu.jsxs)(lu.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,ig.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,iu.jsx)(lu.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,ig.__)("handle"),label:(0,iu.jsx)(ac,{icon:"handle"})}),(0,iu.jsx)(lu.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,ig.__)("menu"),label:(0,iu.jsx)(ac,{icon:"menu"})})]})]})}var Ca=a(v(),1);function BX({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsxs)(H4.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>r(!t),"aria-label":(0,F4.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[o&&(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsx)(ac,{icon:n}),(0,Ca.jsx)(Fa,{icon:wp})]}),!o&&(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsx)("span",{children:(0,F4.__)("Menu")}),(0,Ca.jsx)("span",{children:(0,F4.__)("Close")})]})]}),t&&(0,Ca.jsx)(H4.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,Ca.jsx)(PX,{hasIcon:o,icon:n,setAttributes:i})})]}):null}var EX=a(F(),1),NX=a(X(),1),KD=a(j(),1),IX=a($(),1),DX=a(R(),1),LX=a(B(),1),YD=a(T(),1);var Nd=a(v(),1);function MX({overlay:e,currentTheme:t}){let r=(0,KD.useMemo)(()=>!e||!t?null:Ja(t,e),[t,e]),{content:o,editedBlocks:n,hasResolved:i}=(0,EX.useSelect)(s=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=s(NX.store),m=c("postType","wp_template_part",r,{context:"view"});return{content:m?.content,editedBlocks:m?.blocks,hasResolved:u("getEditedEntityRecord",["postType","wp_template_part",r,{context:"view"}])}},[r]),l=(0,KD.useMemo)(()=>r?n&&n.length>0?n:o&&typeof o=="string"?(0,IX.parse)(o):[]:null,[r,n,o]);return e?i?(0,Nd.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,LX.__)("Navigation Overlay template part preview"),role:"region",children:(0,Nd.jsx)(YD.BlockPreview.Async,{placeholder:(0,Nd.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,Nd.jsx)(YD.BlockPreview,{blocks:l,viewportWidth:400,minHeight:200})})}):(0,Nd.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,Nd.jsx)(DX.Spinner,{})}):null}var Em=a(v(),1);function zX({overlayMenu:e,overlay:t,setAttributes:r,onNavigateToEntityRecord:o,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:m,currentTheme:p,hasOverlays:d}){let[f,h]=(0,RX.useState)(!1);return(0,Em.jsx)(O4.PanelBody,{title:(0,AX.__)("Overlay"),initialOpen:!0,children:(0,Em.jsxs)(O4.__experimentalVStack,{spacing:4,children:[(0,Em.jsx)(TX,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,Em.jsx)(BX,{isResponsive:m,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,Em.jsx)(ZD,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:h}),e!=="never"&&t&&d&&!f&&(0,Em.jsx)(MX,{overlay:t,currentTheme:p})]})})}var W4=a(F(),1),XD=a(X(),1),sg=a(j(),1),ic=a(B(),1);var qv=a($(),1),HX=a($c(),1);var QD=a(j(),1),j4=a(T(),1),VX=a(F(),1),FX=a(X(),1);function lg(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 Si({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,j4.useBlockBindingsUtils)(e),{metadata:o,id:n,kind:i,type:l}=t,s=(0,j4.useBlockEditingMode)(),c=!!o?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",m=c&&o?.bindings?.url?.source===u,{isBoundEntityAvailable:p,entityRecord:d}=(0,VX.useSelect)(g=>{if(!m||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let b=i==="post-type",y=i==="taxonomy";if(!b&&!y)return{isBoundEntityAvailable:!1,entityRecord:null};if(s==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:_,hasFinishedResolution:x}=g(FX.store),k=y?"taxonomy":"postType",S=l==="tag"?"post_tag":l,C=_(k,S,n);return{isBoundEntityAvailable:x("getEntityRecord",[k,S,n])?C!==void 0:!0,entityRecord:C||null}},[i,l,n,m,s]),f=(0,QD.useCallback)(()=>{c&&r({url:void 0})},[r,c]),h=(0,QD.useCallback)(g=>{let b=g?.kind??i;if(b)try{let y=lg(b);r(y)}catch(y){console.warn("Failed to create entity binding:",y.message)}},[r,i]);return{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d,clearBinding:f,createBinding:h}}function OX(e){if(!e)return null;let t=dke(e),r=jX(t);return(0,HX.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function jX(e,t=0){let r={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,qv.parse)(i.content.raw);return p||(0,qv.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=pke(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?jX(i.children,t+1):{};r={...r,...u};let m=(0,qv.createBlock)(l,s,c);return r[i.id]=m.clientId,m}),mapping:r}}function pke({title:e,xfn:t,classes:r,attr_title:o,object:n,object_id:i,description:l,url:s,type:c,target:u},m,p){n&&n==="post_tag"&&(n="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...r?.length&&r.join(" ").trim()&&{className:r.join(" ").trim()},...o?.length&&{title:o},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:lg(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...m==="core/navigation-submenu"&&{isTopLevelItem:p===0},...m==="core/navigation-link"&&{isTopLevelLink:p===0}}}function dke(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 JD="success",G4="error",$4="pending",fke="idle",U4=null;function hke(e,{throwOnError:t=!1}={}){let r=(0,W4.useRegistry)(),{editEntityRecord:o}=(0,W4.useDispatch)(XD.store),[n,i]=(0,sg.useState)(fke),[l,s]=(0,sg.useState)(null),c=(0,sg.useCallback)(async(m,p,d="publish")=>{let f,h;try{h=await r.resolveSelect(XD.store).getMenuItems({menus:m,per_page:-1,context:"view"})}catch(b){throw new Error((0,ic.sprintf)((0,ic.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:b})}if(h===null)throw new Error((0,ic.sprintf)((0,ic.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:g}=OX(h);try{f=await e(p,g,d),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(b){throw new Error((0,ic.sprintf)((0,ic.__)('Unable to create Navigation Menu "%s".'),p),{cause:b})}return f},[e,o,r]);return{convert:(0,sg.useCallback)(async(m,p,d)=>{if(U4!==m){if(U4=m,!m||!p){s("Unable to convert menu. Missing menu details."),i(G4);return}return i($4),s(null),await c(m,p,d).then(f=>(i(JD),U4=null,f)).catch(f=>{if(s(f?.message),i(G4),U4=null,t)throw new Error((0,ic.sprintf)((0,ic.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:l}}var UX=hke;var tJ=a($(),1),rJ=a(X(),1),oJ=a(F(),1),ug=a(j(),1);var ZX=a(R(),1),KX=a(X(),1),YX=a(F(),1),q4=a(j(),1),Zv=a(B(),1);var GX=a(T(),1),WX=a(X(),1),$X=a(F(),1);var cg=e=>e==="header"?CT:e==="footer"?iT:e==="sidebar"?NB:e==="navigation-overlay"?dP:T1;function qX(e){return(0,$X.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(GX.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(WX.store),c=l(),m=(c?.default_template_part_areas||[]).map(p=>({...p,icon:cg(p.icon)}));for(let p of i){let d=r(p),{theme:f=c?.stylesheet,slug:h}=d.attributes,g=Ja(f,h),b=s("postType","wp_template_part",g);if(b?.area)return m.find(y=>y.area!=="uncategorized"&&y.area===b.area)?.label}},[e])}var gke=["postType","wp_navigation",{status:"draft",per_page:-1}],vke=["postType","wp_navigation",{per_page:-1,status:"publish"}];function QX(e){let t=(0,q4.useContext)(ZX.Disabled.Context),r=qX(t?void 0:e),o=(0,YX.useRegistry)();return(0,q4.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=o.resolveSelect(KX.store),[i,l]=await Promise.all([n(...gke),n(...vke)]),s=r?(0,Zv.sprintf)((0,Zv.__)("%s menu"),r):(0,Zv.__)("Menu"),c=[...i,...l].reduce((m,p)=>p?.title?.raw?.startsWith(s)?m+1:m,0);return(c>0?`${s} ${c+1}`:s)||""},[t,r,o])}var XX="success",Z4="error",JX="pending",eJ="idle";function aJ(e){let[t,r]=(0,ug.useState)(eJ),[o,n]=(0,ug.useState)(null),[i,l]=(0,ug.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,oJ.useDispatch)(rJ.store),u=QX(e);return{create:(0,ug.useCallback)(async(p=null,d=[],f)=>{if(p&&typeof p!="string")throw l("Invalid title supplied when creating Navigation Menu."),r(Z4),new Error("Value of supplied title argument was not a string.");r(JX),n(null),l(null),p||(p=await u().catch(g=>{throw l(g?.message),r(Z4),new Error("Failed to create title when saving new Navigation Menu.",{cause:g})}));let h={title:p,content:(0,tJ.serialize)(d),status:f};return s("postType","wp_navigation",h).then(g=>(n(g),r(XX),f!=="publish"&&c("postType","wp_navigation",g.id,{status:"publish"}),g)).catch(g=>{throw l(g?.message),r(Z4),new Error("Unable to save new Navigation Menu",{cause:g})})},[s,c,u]),status:t,value:o,error:i,isIdle:t===eJ,isPending:t===JX,isSuccess:t===XX,isError:t===Z4}}var nJ=a(F(),1),iJ=a(T(),1),bke=[];function lJ(e){return(0,nJ.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:n}=t(iJ.store),i=r(e).innerBlocks,l=!!i?.length,s=l?bke:o(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}var sJ=a(lr(),1),K4=a(R(),1),cJ=a(B(),1),uJ=a(v(),1),yke=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=K4.Button;return r&&(o=K4.MenuItem),(0,uJ.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,sJ.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,cJ.__)("Manage menus")})},mJ=yke;var Dm=a(T(),1),cb=a(R(),1),m3=a(F(),1),Im=a(B(),1),WJ=a(j(),1);var pJ=a(T(),1),Q4=a(R(),1),dJ=a(B(),1),X4=a(j(),1),Y4=a(v(),1);function _ke({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,X4.useState)(!1),n=()=>{o(!0),e()},i=(0,X4.createInterpolateElement)((0,dJ.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,Y4.jsx)(Q4.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,Y4.jsx)(Q4.Notice,{status:"warning",isDismissible:!1,children:i}):(0,Y4.jsx)(pJ.Warning,{children:i})}var J4=_ke;var Id=a($(),1);var Ti=a(R(),1),Kv=a(F(),1),us=a(B(),1),mg=a(T(),1);var Io=a(v(),1),xke={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},kke=["core/navigation-link","core/navigation-submenu"];function wke({block:e,onClose:t,expandedState:r,expand:o,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,Kv.useDispatch)(mg.store),c=e.clientId,u=!kke.includes(e.name);return(0,Io.jsx)(Ti.MenuItem,{icon:kp,disabled:u,onClick:()=>{let p=(0,Id.createBlock)(ki.name,ki.attributes);if(e.name==="core/navigation-submenu")i(p,e.innerBlocks.length,c,!1);else{let d=(0,Id.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[p],!1)}n(p),r[e.clientId]||o(e.clientId),t()},children:(0,us.__)("Add submenu link")})}function fJ(e){let{block:t}=e,{clientId:r}=t,{moveBlocksDown:o,moveBlocksUp:n,removeBlocks:i,duplicateBlocks:l,insertBeforeBlock:s,insertAfterBlock:c}=(0,Kv.useDispatch)(mg.store),u=(0,us.sprintf)((0,us.__)("Remove %s"),(0,mg.BlockTitle)({clientId:r,maximumLength:25})),{rootClientId:m,canDuplicate:p,canInsertBlock:d,isFirst:f,isLast:h}=(0,Kv.useSelect)(g=>{let{getBlockRootClientId:b,canInsertBlockType:y,getDirectInsertBlock:_,getBlockIndex:x,getBlockCount:k}=g(mg.store),{getDefaultBlockName:S}=g(Id.store),C=b(r),E=y(S(),C),P=C?_(C):null;return{rootClientId:C,canDuplicate:!!t&&(0,Id.hasBlockSupport)(t.name,"multiple",!0)&&y(t.name,C),canInsertBlock:(E||!!P)&&!!t&&y(t.name,C),isFirst:x(r)===0,isLast:x(r)===k(C)-1}},[r,t]);return(0,Io.jsx)(Ti.DropdownMenu,{icon:c1,label:(0,us.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:xke,noIcons:!0,...e,children:({onClose:g})=>(0,Io.jsxs)(Io.Fragment,{children:[(0,Io.jsxs)(Ti.MenuGroup,{children:[(0,Io.jsx)(Ti.MenuItem,{icon:E9,disabled:f,accessibleWhenDisabled:!0,onClick:()=>{n([r],m),g()},children:(0,us.__)("Move up")}),(0,Io.jsx)(Ti.MenuItem,{icon:j0,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{o([r],m),g()},children:(0,us.__)("Move down")}),(0,Io.jsx)(wke,{block:t,onClose:g,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock}),p&&(0,Io.jsx)(Ti.MenuItem,{onClick:()=>{l([r]),g()},children:(0,us.__)("Duplicate")}),d&&(0,Io.jsxs)(Io.Fragment,{children:[(0,Io.jsx)(Ti.MenuItem,{onClick:()=>{s(r),g()},children:(0,us.__)("Add before")}),(0,Io.jsx)(Ti.MenuItem,{onClick:()=>{c(r),g()},children:(0,us.__)("Add after")})]})]}),(0,Io.jsx)(Ti.MenuGroup,{children:(0,Io.jsx)(Ti.MenuItem,{onClick:()=>{i([r],!1),g()},children:u})})]})})}var VJ=a(T(),1),FJ=a(F(),1);var Lo=a(R(),1),qt=a(B(),1),LJ=a(Va(),1),rb=a(T(),1),i3=a(F(),1),MJ=a(X(),1);var gJ=a(j(),1),vJ=a(F(),1),bJ=a(T(),1),yJ=a(Va(),1),_J=a(eL(),1);var tL=a(eL(),1),Yv=a(lr(),1),Cke=(e,t)=>{if(!e||!t)return!1;let r=h=>h?h.replace(/\/+$/,""):"",o=(h,g=null)=>{try{let b=g||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(h,b)}catch{return null}},n=o(e);if(!n)return!0;let i=o(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=r((0,Yv.getPath)(n.toString())),u=r((0,Yv.getPath)(i.toString()));if(l!==s||c!==u)return!0;let m=n.searchParams.get("p"),p=i.searchParams.get("p");if(m&&p&&m!==p)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||m&&f||d&&p)},Qv=(e={},t,r={})=>{let{label:o="",kind:n="",type:i=""}=r,{title:l="",label:s="",url:c,opensInNewTab:u,id:m,kind:p=n,type:d=i}=e,f=l||s,h=f.replace(/http(s?):\/\//gi,""),g=c?.replace(/http(s?):\/\//gi,"")??"",y=f&&f!==o&&h!==g?(0,tL.escapeHTML)(f):o||(0,tL.escapeHTML)(g),_=d==="post_tag"?"tag":d.replace("-","_"),x=["post","page","tag","category"].indexOf(_)>-1,S=!p&&!x||p==="custom"?"custom":p,C={...c!==void 0?{url:c&&encodeURI((0,Yv.safeDecodeURI)(c))}:{},...y&&{label:y},...u!==void 0&&{opensInNewTab:u},...S&&{kind:S},..._&&_!=="URL"&&{type:_}};c&&!m&&r.id?Cke(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):m&&Number.isInteger(m)?C.id=m:r.id&&(C.kind=S,C.type=_),t(C);let E="id"in C?C.id:r.id,P="kind"in C?C.kind:r.kind;return{isEntityLink:!!E&&P!=="custom",attributes:C}};function Dd({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:n}=(0,vJ.useDispatch)(bJ.store),{hasUrlBinding:i,createBinding:l,clearBinding:s}=Si({clientId:e,attributes:t});return(0,gJ.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},m=t.label?(0,yJ.__unstableStripHTML)(t.label):"",p=c.title??"",d=o&&c.title!==void 0&&p!==m,f=d?{label:(0,_J.escapeHTML)(p)}:{};if((!t.label||t.label===""||d)&&(u.title=c.title),!c.id&&i)s(),n(e,{url:c.url,kind:"custom",type:"custom",id:void 0,...f});else{let{isEntityLink:g,attributes:b}=Qv(u,r,t);g?l(b):s(),Object.keys(f).length&&n(e,f)}},[t,o,e,i,l,s,r,n])}var a3=a(Va(),1),Ld=a(R(),1),eb=a(B(),1),n3=a(T(),1),Sa=a(j(),1),TJ=a(X(),1);var lL=a(fe(),1);var PJ=a(lr(),1);var Rn=a(R(),1),Pi=a(B(),1),Jv=a(F(),1),r3=a(X(),1),kJ=a(_r(),1),oL=a(Oo(),1),aL=a(j(),1);var xJ=a(R(),1),e3=a(B(),1);var Xv=a(fe(),1);var Nm=a(v(),1);function Ske({className:e,onBack:t}){return(0,Nm.jsx)(xJ.Button,{className:e,icon:(0,e3.isRTL)()?P9:S9,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,e3.__)("Back")})}function rL({className:e,title:t,description:r,onBack:o,children:n}){let i=(0,Xv.useInstanceId)(rL,"link-ui-dialog-title"),l=(0,Xv.useInstanceId)(rL,"link-ui-dialog-description"),s=(0,Xv.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,Nm.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,Nm.jsxs)(ti,{children:[(0,Nm.jsx)("h2",{id:i,children:t}),(0,Nm.jsx)("p",{id:l,children:r})]}),(0,Nm.jsx)(Ske,{className:c,onBack:o}),n]})}var t3=rL;var ll=a(v(),1);function wJ({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[n,i]=(0,aL.useState)(o),[l,s]=(0,aL.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:m}=(0,Jv.useSelect)(b=>({lastError:b(r3.store).getLastEntitySaveError("postType",e),isSaving:b(r3.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,Jv.useDispatch)(r3.store),{createSuccessNotice:d,createErrorNotice:f}=(0,Jv.useDispatch)(kJ.store);async function h(b){if(b.preventDefault(),!(m||!c))try{let y=await p("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(y){let _={id:y.id,type:e,title:(0,oL.decodeEntities)(y.title.rendered),url:y.link,kind:"post-type"};d((0,Pi.sprintf)((0,Pi.__)("%s page created successfully."),(0,oL.decodeEntities)(y.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(_)}}catch{f((0,Pi.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let g=m||!c;return(0,ll.jsx)(t3,{className:"link-ui-page-creator",title:(0,Pi.__)("Create page"),description:(0,Pi.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,ll.jsx)(Rn.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,ll.jsx)("form",{onSubmit:h,children:(0,ll.jsxs)(Rn.__experimentalVStack,{spacing:4,children:[(0,ll.jsx)(Rn.TextControl,{label:(0,Pi.__)("Title"),onChange:i,placeholder:(0,Pi.__)("No title"),value:n}),(0,ll.jsx)(Rn.CheckboxControl,{label:(0,Pi.__)("Publish"),help:(0,Pi.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:l,onChange:s}),u&&(0,ll.jsx)(Rn.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,ll.jsxs)(Rn.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,ll.jsx)(Rn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:m,accessibleWhenDisabled:!0,children:(0,Pi.__)("Cancel")}),(0,ll.jsx)(Rn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:m,"aria-disabled":g,children:(0,Pi.__)("Create page")})]})]})})})})}var nL=a(B(),1),CJ=a(F(),1),o3=a(T(),1);var iL=a(v(),1),{PrivateQuickInserter:Tke}=W(o3.privateApis);function Pke({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,CJ.useSelect)(n=>{let{getBlockRootClientId:i}=n(o3.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,iL.jsx)(t3,{className:"link-ui-block-inserter",title:(0,nL.__)("Add block"),description:(0,nL.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,iL.jsx)(Tke,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var SJ=Pke;var zn=a(v(),1);function sL(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 Bke(e,t){let{label:r,url:o,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{entityRecord:c,hasBinding:u,isEntityAvailable:m}=e.entity||{},{image:p,badges:d}=tb({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:m}),{clientId:f}=e,h=i||"page",[g,b]=(0,Sa.useState)(!1),[y,_]=(0,Sa.useState)(!1),[x,k]=(0,Sa.useState)(null),[S,C]=(0,Sa.useState)(""),E=(0,Sa.useRef)(""),P=O=>{E.current=O,C(O)},N=(0,Sa.useRef)(),z=(0,Sa.useRef)(),V=(0,Sa.useRef)(),A=(0,TJ.useResourcePermissions)({kind:"postType",name:h}),{isBoundEntityAvailable:M}=Si({clientId:f,attributes:e.link}),L=(0,Sa.useMemo)(()=>({url:o,opensInNewTab:n,title:r&&(0,a3.__unstableStripHTML)(r),entityTitle:c?.title?.rendered||c?.name,kind:l,type:i,id:s,image:p,badges:d}),[r,n,o,l,i,s,p,d,c]),U=O=>{e.onChange(O),_(!1),k(!0),P("")},H=(0,lL.useInstanceId)(su,"link-ui-link-control__title"),G=(0,lL.useInstanceId)(su,"link-ui-link-control__description");(0,Sa.useEffect)(()=>{x&&N.current&&(x?.current?x.current.focus():(a3.focus.tabbable.find(N.current)[0]||N.current).focus(),k(!1))},[x]);let Y=(0,n3.useBlockEditingMode)();return(0,zn.jsxs)(Ld.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!g&&!y&&(0,zn.jsxs)("div",{ref:N,role:"dialog","aria-labelledby":H,"aria-describedby":G,children:[(0,zn.jsxs)(ti,{children:[(0,zn.jsx)("h2",{id:H,children:(0,eb.__)("Add link")}),(0,zn.jsx)("p",{id:G,children:(0,eb.__)("Search for and add a link to your Navigation.")})]}),(0,zn.jsx)(n3.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:L,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:sL(i,l),onChange:e.onChange,onInputChange:O=>{E.current=O},inputValue:S,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:M,forceIsEditingLink:L?.url?!1:void 0,renderControlBottom:()=>L?.url?.length?null:(0,zn.jsx)(Eke,{addPageButtonRef:z,addBlockButtonRef:V,setAddingBlock:()=>{b(!0)},setAddingPage:()=>{_(!0)},canAddPage:A?.canCreate&&i==="page",canAddBlock:Y==="default"})})]}),g&&(0,zn.jsx)(SJ,{clientId:e.clientId,onBack:()=>{b(!1),k(V),P(E.current)},onBlockInsert:e?.onBlockInsert}),y&&(0,zn.jsx)(wJ,{postType:h,onBack:()=>{_(!1),k(z),P(E.current)},onPageCreated:U,initialTitle:E.current&&!(0,PJ.isURL)(E.current)?E.current:""})]})}var su=(0,Sa.forwardRef)(Bke),Eke=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:n,canAddBlock:i})=>{let l="listbox";return!n&&!i?null:(0,zn.jsxs)(Ld.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,zn.jsx)(Ld.Button,{__next40pxDefaultSize:!0,ref:e,icon:Df,onClick:s=>{s.preventDefault(),o(!0)},"aria-haspopup":l,children:(0,eb.__)("Create page")}),i&&(0,zn.jsx)(Ld.Button,{__next40pxDefaultSize:!0,ref:t,icon:Df,onClick:s=>{s.preventDefault(),r(!0)},"aria-haspopup":l,children:(0,eb.__)("Add block")})]})};var Ta=a(B(),1),mL=a(lr(),1),BJ=a(T(),1),cL=a(F(),1),uL=a(X(),1);var{useRemoteUrlData:Nke,isHashLink:EJ,isRelativePath:Ike}=W(BJ.privateApis);function Dke(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Lke(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 Mke({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,mL.safeDecodeURI)(e),o=!1;if(Ike(e)||EJ(e))return{displayUrl:r,isExternal:!1};try{let n=new URL(e),i=new URL(t).host;if(n.host===i){let l=n.pathname+n.search+n.hash;l.endsWith("/")&&l.length>1&&(l=l.slice(0,-1)),r=l}else o=!0}catch{o=!0}return{displayUrl:r,isExternal:o}}function Ake({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:n,hasBinding:i,isEntityAvailable:l}){let s=[];if(e&&(o?s.push({label:(0,Ta.__)("External link"),intent:"default"}):EJ(e)?s.push({label:(0,Ta.__)("Internal link"),intent:"default"}):Lke(e,t)?s.push({label:(0,Ta.__)("Homepage"),intent:"default"}):r&&r!=="custom"?s.push({label:Dke(r),intent:"default"}):s.push({label:(0,Ta.__)("Page"),intent:"default"})),i&&!l)s.push({label:(0,Ta.sprintf)((0,Ta.__)("Missing %s"),r),intent:"error"});else if(!e)s.push({label:(0,Ta.__)("No link selected"),intent:"error"});else if(n){let u={publish:{label:(0,Ta.__)("Published"),intent:"success"},future:{label:(0,Ta.__)("Scheduled"),intent:"warning"},draft:{label:(0,Ta.__)("Draft"),intent:"warning"},pending:{label:(0,Ta.__)("Pending"),intent:"warning"},private:{label:(0,Ta.__)("Private"),intent:"default"},trash:{label:(0,Ta.__)("Trash"),intent:"error"}}[n];u&&s.push(u)}return s}function tb({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:n}){let i=(0,cL.useSelect)(f=>f(uL.store).getEntityRecord("root","__unstableBase")?.home,[]),l=t?.title?.rendered||t?.title||t?.name,{richData:s}=Nke(l?null:e),{displayUrl:c,isExternal:u}=Mke({linkUrl:e,homeUrl:i}),m=(0,cL.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:h}=f(uL.store),g=h("postType","attachment",t.featured_media);return g?.media_details?.sizes?.thumbnail?.source_url||g?.media_details?.sizes?.medium?.source_url||g?.source_url||null},[t?.featured_media]),p=Ake({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:n});return{title:e?l||s?.title||(0,mL.safeDecodeURI)(e):(0,Ta.__)("Add link"),url:c,image:m,badges:p}}var NJ=a(F(),1),IJ=a(X(),1),DJ=a(T(),1),Md=(e,t,r,o)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),l=(0,DJ.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,NJ.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=p(IJ.store),h=d("postType",t,r),b=f("getEntityRecord",["postType",t,r])&&h===void 0;return{postStatus:h?.status,isDeleted:b}},[n,l,o,t,r]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};var Do=a(v(),1),{LinkPicker:Rke,isHashLink:zke,isRelativePath:Vke}=W(rb.privateApis);function Fke(e,t){if(t==="post-type")switch(e){case"post":return(0,qt.__)("post");case"page":return(0,qt.__)("page");default:return e||(0,qt.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,qt.__)("category");case"tag":return(0,qt.__)("tag");default:return e||(0,qt.__)("term")}return e||(0,qt.__)("item")}function ob({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:n,url:i,description:l,rel:s,opensInNewTab:c}=e,u=q(),{hasUrlBinding:m,isBoundEntityAvailable:p,entityRecord:d}=Si({clientId:r,attributes:e}),[f,h]=Md(e.kind,e.type,d?.id,m),g="";f||m&&!p?g=l3():h&&(g=Hke({type:e.type,kind:e.kind}));let b=Dd({clientId:r,attributes:e,setAttributes:t}),y=(0,i3.useSelect)(P=>P(rb.store).getSettings().onNavigateToEntityRecord,[]),_=(0,i3.useSelect)(P=>P(MJ.store).getEntityRecord("root","__unstableBase")?.home,[]),k=(0,i3.useSelect)(P=>P(rb.store).getBlockEditingMode(r),[r])==="contentOnly",S=tb({url:i,entityRecord:d,type:e.type,hasBinding:m,isEntityAvailable:p}),C=!!i&&(!zke(i)||Vke(i)&&!i.startsWith("/")),E=C&&i.startsWith("/")&&_?_+i:i;return(0,Do.jsxs)(Lo.__experimentalToolsPanel,{label:(0,qt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Do.jsx)(Lo.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,qt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Do.jsx)(Lo.TextControl,{label:(0,qt.__)("Text"),value:n?(0,LJ.__unstableStripHTML)(n):"",onChange:P=>{t({label:P})},autoComplete:"off"})}),o&&(0,Do.jsxs)(Do.Fragment,{children:[(0,Do.jsx)(Lo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,qt.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Do.jsx)(Rke,{preview:S,onSelect:b,suggestionsQuery:sL(e.type,e.kind),label:(0,qt.__)("Link to"),help:g||void 0})}),(0,Do.jsx)(Lo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,qt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Do.jsx)(Lo.CheckboxControl,{label:(0,qt.__)("Open in new tab"),checked:c,onChange:P=>t({opensInNewTab:P})})}),!!i&&m&&p&&d?.id&&e.kind==="post-type"&&y&&(0,Do.jsx)(Lo.Button,{variant:"secondary",onClick:()=>{y({postId:d.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qt.__)("Edit")}),C&&(0,Do.jsx)(Lo.Button,{variant:"secondary",href:E,target:"_blank",icon:Q0,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,qt.__)("View")})]}),(0,Do.jsx)(Lo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,qt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!k,children:(0,Do.jsx)(Lo.TextareaControl,{label:(0,qt.__)("Description"),value:l||"",onChange:P=>{t({description:P})},help:(0,qt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Do.jsx)(Lo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,qt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!k,children:(0,Do.jsx)(Lo.TextControl,{label:(0,qt.__)("Rel attribute"),value:s||"",onChange:P=>{t({rel:P})},autoComplete:"off",help:(0,qt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function l3(){return(0,qt.__)("This link is invalid and will not appear on your site. Please update the link.")}function Hke({type:e,kind:t}){let r=Fke(e,t);return(0,qt.sprintf)((0,qt.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var pL=a(B(),1),AJ=a(Oo(),1),dL=a(v(),1);function ab({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,pL.__)("Invalid"):(0,pL.__)("Draft");return(0,dL.jsx)("div",{className:w("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,dL.jsx)("span",{children:`${(0,AJ.decodeEntities)(e)} (${n})`.trim()})})}var RJ=a(F(),1),zJ=a(T(),1);function nb(e){return(0,RJ.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:n}=t(zJ.store),i=r(),l=n(e,"core/navigation")[0];return i===l||o(l,!0)},[e])}var s3=a(j(),1),ib=e=>{let[t,r]=(0,s3.useState)(!1);return(0,s3.useEffect)(()=>{let{ownerDocument:o}=e.current;function n(s){l(s)}function i(){r(!1)}function l(s){e.current.contains(s.target)?r(!0):r(!1)}return o.addEventListener("dragstart",n),o.addEventListener("dragend",i),o.addEventListener("dragenter",l),()=>{o.removeEventListener("dragstart",n),o.removeEventListener("dragend",i),o.removeEventListener("dragenter",l)}},[e]),t};function lb(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 HJ=a(v(),1),Oke=["core/navigation-link","core/navigation-submenu"];function c3({block:e,insertedBlock:t,setInsertedBlock:r}){let{updateBlockAttributes:o,removeBlock:n}=(0,FJ.useDispatch)(VJ.store),i=Oke?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=Si({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let m=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),r(null)},p=f=>h=>{f&&o(f,h)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),r(f)};return(0,HJ.jsx)(su,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{m()},onChange:f=>{let{isEntityLink:h,attributes:g}=Qv(f,p(t?.clientId),t?.attributes);h?c(g):u(),r(null)}})}var u3=a(R(),1),OJ=a(B(),1),jJ=a(T(),1);var sb=a(v(),1),{useBlockDisplayTitle:jke}=W(jJ.privateApis),Uke=(0,OJ.__)("Switch to '%s'");function UJ({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,isManageMenusButtonDisabled:c}){let u=jke({clientId:e,context:"list-view"});return(0,sb.jsxs)(u3.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,sb.jsx)(u3.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,sb.jsx)(Jh,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:l,createNavigationMenuIsError:s,actionLabel:Uke,isManageMenusButtonDisabled:c})]})}var tn=a(v(),1),Gke=(0,Im.__)("Switch to '%s'"),{PrivateListView:Wke,PrivateBlockContext:$ke,useListViewPanelState:qke,useBlockDisplayTitle:Zke}=W(Dm.privateApis),GJ=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:n,expandRevision:i})=>{let l=(0,m3.useSelect)(m=>!!m(Dm.store).getBlockCount(e),[e]),{openListViewContentPanel:s}=W((0,m3.useDispatch)(Dm.store)),{navigationMenu:c}=Qh(t);if(t&&o)return(0,tn.jsx)(J4,{onCreateNew:n,isNotice:!0});if(r)return(0,tn.jsx)(cb.Spinner,{});let u=c?(0,Im.sprintf)((0,Im.__)("Structure for Navigation Menu: %s"),c?.title||(0,Im.__)("Untitled menu")):(0,Im.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,tn.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!l&&(0,tn.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,Im.__)("This Navigation Menu is empty.")}),(0,tn.jsx)(Wke,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:fJ,additionalBlockContent:c3,onSelect:s},`${e}-${i}`)]})},Kke=e=>{let{clientId:t,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,currentMenuId:n=null,onCreateNew:i,onSelectClassicMenu:l,onSelectNavigationMenu:s,isManageMenusButtonDisabled:c,blockEditingMode:u}=e,{isSelectionWithinCurrentSection:m}=(0,WJ.useContext)($ke),p=Zke({clientId:t,context:"list-view"}),d=m,{isOpened:f,expandRevision:h,handleToggle:g}=qke(t);return d?(0,tn.jsx)(Dm.InspectorControls,{group:"list",children:(0,tn.jsxs)(cb.PanelBody,{title:p,opened:f,onToggle:g,children:[u==="default"&&(0,tn.jsx)(Jh,{currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:Gke,isManageMenusButtonDisabled:c}),(0,tn.jsx)(GJ,{...e,expandRevision:h})]})}):(0,tn.jsx)(Dm.InspectorControls,{group:"list",children:(0,tn.jsxs)(cb.PanelBody,{title:null,children:[(0,tn.jsx)(UJ,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:l,onSelectNavigationMenu:s,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,tn.jsx)(GJ,{...e,expandRevision:h})]})})},p3=Kke;var fL=a(v(),1);function d3({id:e,children:t}){return(0,fL.jsx)(ti,{children:(0,fL.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var $J=a(X(),1),f3=a(B(),1);var qJ=a(v(),1);function ZJ({id:e}){let[t]=(0,$J.useEntityProp)("postType","wp_navigation","title"),r=(0,f3.sprintf)((0,f3.__)('Navigation Menu: "%s"'),t);return(0,qJ.jsx)(d3,{id:e,children:r})}var hL=a(F(),1),KJ=a(X(),1);function ub(){let e=(0,hL.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,hL.select)(KJ.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===oc:!1}var de=a(v(),1),{isNavigationPostEditorKey:Yke}=W(Qe.privateApis);function Qke({clientId:e}){let{insertBlock:t}=(0,ms.useDispatch)(Qe.store),{getBlockCount:r}=(0,ms.useSelect)(Qe.store),o=(0,sr.useCallback)(()=>{let n=r(e),i=(0,YJ.createBlock)(ki.name,{kind:ki.attributes.kind,type:ki.attributes.type});t(i,n,e)},[e,t,r]);return(0,de.jsx)(Qe.BlockControls,{children:(0,de.jsx)(Ur.ToolbarGroup,{children:(0,de.jsx)(Ur.ToolbarButton,{name:"add-page",icon:Mc,onClick:o,children:(0,Nt.__)("Add page")})})})}function Xke({textColor:e,setTextColor:t,backgroundColor:r,setBackgroundColor:o,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u,hasCustomOverlay:m}){let[p,d]=(0,sr.useState)(),[f,h]=(0,sr.useState)(),[g,b]=(0,sr.useState)(),[y,_]=(0,sr.useState)(),x=(0,ms.useSelect)(()=>ub(),[]);(0,sr.useEffect)(()=>{$D(u.current,h,d);let C=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');C&&(n.color||l.color)&&$D(C,_,b)},[n.color,l.color,u]);let k=(0,Qe.__experimentalUseMultipleOriginColorsAndGradients)();if(!k.hasColorsOrGradients)return null;let S=[{colorValue:e.color,label:(0,Nt.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Nt.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return S.push({colorValue:n.color,label:m||x?(0,Nt.__)("Submenu text"):(0,Nt.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:m||x?(0,Nt.__)("Submenu background"):(0,Nt.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}),(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Qe.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:S,panelId:c,...k,gradients:[],disableCustomGradients:!0}),(0,de.jsx)(Qe.ContrastChecker,{backgroundColor:p,textColor:f}),(0,de.jsx)(Qe.ContrastChecker,{backgroundColor:g,textColor:y})]})}function Jke({attributes:e,setAttributes:t,clientId:r,isSelected:o,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:p,setOverlayTextColor:d,customPlaceholder:f=null,__unstableLayoutClassNames:h}){let{submenuVisibility:g,overlayMenu:b,overlay:y,showSubmenuIcon:_,templateLock:x,layout:{justifyContent:k,orientation:S="horizontal",flexWrap:C="wrap"}={},hasIcon:E,icon:P="handle"}=e,N=e.ref,z=(0,sr.useCallback)(Qt=>{t({ref:Qt})},[t]),V=`navigationMenu/${N}`,A=(0,Qe.useHasRecursion)(V),{isPreviewMode:M,onNavigateToEntityRecord:L,currentTheme:U,editorDisabledResponsive:H}=(0,ms.useSelect)(Qt=>{let{getSettings:Bl}=Qt(Qe.store),El=Bl();return{isPreviewMode:El.isPreviewMode,onNavigateToEntityRecord:El?.onNavigateToEntityRecord,currentTheme:Qt(Lm.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!El?.[Yke]}},[]),G=M?!1:A,Y=(0,Qe.useBlockEditingMode)(),{records:O}=(0,Lm.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[te,se]=I4({name:"block-library/core/navigation/status"}),[Q,ce]=I4({name:"block-library/core/navigation/classic-menu-conversion"}),[Ee,le]=I4({name:"block-library/core/navigation/permissions/update"}),{create:ee,status:ve,error:Ne,value:Re,isPending:Be,isSuccess:Ve,isError:oe}=aJ(r),J=async()=>{await ee("")},{hasUncontrolledInnerBlocks:re,uncontrolledInnerBlocks:Me,isInnerBlockSelected:mt,innerBlocks:Lt}=lJ(r),{replaceInnerBlocks:jt,selectBlock:ae,__unstableMarkNextChangeAsNotPersistent:Ue}=(0,ms.useDispatch)(Qe.store);(0,sr.useEffect)(()=>{S==="horizontal"&&g==="always"&&(Ue(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[S,g,t,Ue]);let Se=(0,sr.useRef)(!1),Oe=(0,ms.useSelect)(Qt=>{if(Lt.some(gp=>gp.name==="core/navigation-submenu"))return!0;let El=Lt.find(gp=>gp.name==="core/page-list");if(!El)return Se.current=!1,!1;if(Se.current)return!0;let{getBlocks:g7}=Qt(Qe.store);return g7(El.clientId).length>0?(Se.current=!0,!0):!1},[Lt]),{records:K}=(0,Lm.useEntityRecords)("postType","wp_template_part",{per_page:-1}),ne=K?.some(Qt=>Qt.area===oc)??!1,[Ge,gt]=(0,sr.useState)(!1),[je,or]=(0,sr.useState)(!1),{hasResolvedNavigationMenus:mr,isNavigationMenuResolved:fn,isNavigationMenuMissing:Fe,canUserUpdateNavigationMenu:zr,hasResolvedCanUserUpdateNavigationMenu:Kr,canUserDeleteNavigationMenu:Nc,hasResolvedCanUserDeleteNavigationMenu:Du,canUserCreateNavigationMenus:ks,isResolvingCanUserCreateNavigationMenus:C0,hasResolvedCanUserCreateNavigationMenus:Sl}=Qh(N),Ic=mr&&Fe,{convert:ws,status:Dc,error:S0}=UX(ee),qn=Dc===$4,Tl=(0,sr.useCallback)((Qt,Bl={focusNavigationBlock:!1})=>{let{focusNavigationBlock:El}=Bl;z(Qt),El&&ae(r)},[ae,r,z]),Ro=!Fe&&fn,hn=re&&!Ro,{getNavigationFallbackId:wf}=W((0,ms.useSelect)(Lm.store)),pp=N||hn?null:wf();(0,sr.useEffect)(()=>{N||hn||!pp||(Ue(),z(pp))},[N,z,hn,pp,Ue]);let Te=(0,sr.useRef)(),at=(0,ms.useSelect)(()=>ub(),[]),ar=at?"div":"nav",Vr=!N&&!Be&&!qn&&mr&&O?.length===0&&!re,br=!mr||Be||qn||!!(N&&!Ro&&!qn),Pl=e.style?.typography?.textDecoration,gn=(0,ms.useSelect)(Qt=>Qt(Qe.store).__unstableHasActiveBlockOverlayActive(r),[r]),Lu=(0,sr.useRef)(!1);(0,sr.useEffect)(()=>{at&&(b!=="never"&&t({overlayMenu:"never"}),!Lu.current&&!N&&(Lu.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,at,b,N,t]);let Mu=b!=="never"&&!H,vn=(0,Qe.useBlockProps)({ref:Te,className:w(n,{"items-justified-right":k==="right","items-justified-space-between":k==="space-between","items-justified-left":k==="left","items-justified-center":k==="center","is-vertical":S==="vertical","no-wrap":C==="nowrap","is-responsive":Mu,"has-text-color":!!s.color||!!s?.class,[(0,Qe.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Qe.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${Pl}`]:Pl,"block-editor-block-content-overlay":gn},h),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),dp=async Qt=>ws(Qt.id,Qt.name,"draft"),Cf=Qt=>{Tl(Qt)};(0,sr.useEffect)(()=>{se(),Be&&(0,h3.speak)((0,Nt.__)("Creating Navigation Menu.")),Ve&&(Tl(Re?.id,{focusNavigationBlock:!0}),te((0,Nt.__)("Navigation Menu successfully created."))),oe&&te((0,Nt.__)("Failed to create Navigation Menu."))},[ve,Ne,Re?.id,oe,Ve,Be,Tl,se,te]),(0,sr.useEffect)(()=>{ce(),Dc===$4&&(0,h3.speak)((0,Nt.__)("Classic menu importing.")),Dc===JD&&(Q((0,Nt.__)("Classic menu imported successfully.")),Tl(Re?.id,{focusNavigationBlock:!0})),Dc===G4&&Q((0,Nt.__)("Classic menu import failed."))},[Dc,S0,ce,Q,Re?.id,Tl]),(0,sr.useEffect)(()=>{!o&&!mt&&le(),(o||mt)&&(N&&!Ic&&Kr&&!zr&&Ee((0,Nt.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!N&&Sl&&!ks&&Ee((0,Nt.__)("You do not have permission to create Navigation Menus.")))},[o,mt,zr,Kr,ks,Sl,N,le,Ee,Ic]);let h7=ks||zr,Lc=w("wp-block-navigation__overlay-menu-preview",{open:je}),fp=!_&&g!=="click"&&g!=="always"?(0,Nt.__)('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.'):"",T0=(0,sr.useRef)(!0);(0,sr.useEffect)(()=>{!T0.current&&fp&&(0,h3.speak)(fp),T0.current=!1},[fp]);let My=(0,QJ.useInstanceId)(sX,"overlay-menu-preview"),Cs=q(),Ss=(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(Qe.InspectorControls,{children:Oe&&(0,de.jsx)(Ur.__experimentalToolsPanel,{label:(0,Nt.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Cs,children:Oe&&(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Nt.__)("Submenus")}),(0,de.jsx)(Ur.__experimentalToolsPanelItem,{hasValue:()=>g!=="hover",label:(0,Nt.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,de.jsxs)(Ur.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,Nt.__)("Submenu Visibility"),value:g,onChange:Qt=>{let Bl={submenuVisibility:Qt};Qt==="always"?Bl.showSubmenuIcon=!1:(Qt==="click"||g==="always")&&(Bl.showSubmenuIcon=!0),t(Bl)},isBlock:!0,children:[(0,de.jsx)(Ur.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Nt.__)("Hover")}),(0,de.jsx)(Ur.__experimentalToggleGroupControlOption,{value:"click",label:(0,Nt.__)("Click")}),S==="vertical"&&(0,de.jsx)(Ur.__experimentalToggleGroupControlOption,{value:"always",label:(0,Nt.__)("Always")})]})}),(0,de.jsx)(Ur.__experimentalToolsPanelItem,{hasValue:()=>!_,label:(0,Nt.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:g==="click"||g==="always",isShownByDefault:!0,children:(0,de.jsx)(Ur.ToggleControl,{checked:_,onChange:Qt=>{t({showSubmenuIcon:Qt})},disabled:g==="click"||g==="always",label:(0,Nt.__)("Show arrow")})}),fp&&(0,de.jsx)(Ur.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:fp})]})})}),!at&&(0,de.jsx)(Qe.InspectorControls,{children:(0,de.jsx)(zX,{overlayMenu:b,overlay:y,setAttributes:t,onNavigateToEntityRecord:L,overlayMenuPreview:je,setOverlayMenuPreview:or,hasIcon:E,icon:P,overlayMenuPreviewClasses:Lc,overlayMenuPreviewId:My,isResponsive:Mu,currentTheme:U,hasOverlays:ne})}),(0,de.jsx)(Qe.InspectorControls,{group:"color",children:(0,de.jsx)(Xke,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:p,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:m,clientId:r,navRef:Te,hasCustomOverlay:!!y})})]}),hp=`${r}-desc`,Sf=b==="always",Tf=!h7||!mr;if(hn&&!Be)return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(p3,{clientId:r,createNavigationMenuIsSuccess:Ve,createNavigationMenuIsError:oe,currentMenuId:N,isNavigationMenuMissing:Fe,isManageMenusButtonDisabled:Tf,onCreateNew:J,onSelectClassicMenu:dp,onSelectNavigationMenu:Cf,isLoading:br,blockEditingMode:Y}),Y==="default"&&Ss,(0,de.jsxs)(ar,{...vn,"aria-describedby":Vr?void 0:hp,children:[(0,de.jsx)(d3,{id:hp,children:(0,Nt.__)("Unsaved Navigation Menu.")}),(0,de.jsx)(jD,{id:r,onToggle:gt,isOpen:Ge,hasIcon:E,icon:P,isResponsive:Mu,isHiddenByDefault:Sf,overlayBackgroundColor:u,overlayTextColor:p,overlay:y,onNavigateToEntityRecord:L,children:(0,de.jsx)(rX,{createNavigationMenu:ee,blocks:Me,hasSelection:o||mt})})]})]});if(N&&Fe)return(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(p3,{clientId:r,createNavigationMenuIsSuccess:Ve,createNavigationMenuIsError:oe,currentMenuId:N,isNavigationMenuMissing:Fe,isManageMenusButtonDisabled:Tf,onCreateNew:J,onSelectClassicMenu:dp,onSelectNavigationMenu:Cf,isLoading:br,blockEditingMode:Y}),(0,de.jsx)(ar,{...vn,children:(0,de.jsx)(J4,{onCreateNew:J})})]});if(Ro&&G)return(0,de.jsx)("div",{...vn,children:(0,de.jsx)(Qe.Warning,{children:(0,Nt.__)("Block cannot be rendered inside itself.")})});let Ay=f||VQ;return Vr&&f?(0,de.jsx)(ar,{...vn,children:(0,de.jsx)(Ay,{isSelected:o,currentMenuId:N,clientId:r,canUserCreateNavigationMenus:ks,isResolvingCanUserCreateNavigationMenus:C0,onSelectNavigationMenu:Cf,onSelectClassicMenu:dp,onCreateEmpty:J})}):(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(p3,{clientId:r,createNavigationMenuIsSuccess:Ve,createNavigationMenuIsError:oe,currentMenuId:N,isNavigationMenuMissing:Fe,isManageMenusButtonDisabled:Tf,onCreateNew:J,onSelectClassicMenu:dp,onSelectNavigationMenu:Cf,isLoading:br,blockEditingMode:Y}),Y==="default"&&Ss,(0,de.jsx)(Lm.EntityProvider,{kind:"postType",type:"wp_navigation",id:N,children:(0,de.jsxs)(Qe.RecursionProvider,{uniqueId:V,children:[Y==="contentOnly"&&Ro&&(0,de.jsx)(Qke,{clientId:r}),Y==="default"&&Ro&&(0,de.jsxs)(Qe.InspectorControls,{group:"advanced",children:[Kr&&zr&&(0,de.jsx)(KQ,{}),Du&&Nc&&(0,de.jsx)(nX,{onDelete:()=>{jt(r,[]),te((0,Nt.__)("Navigation Menu successfully deleted."))}}),(0,de.jsx)(mJ,{disabled:Tf,className:"wp-block-navigation-manage-menus-button"})]}),(0,de.jsxs)(ar,{...vn,"aria-describedby":!Vr&&!br?hp:void 0,children:[br&&!Sf&&(0,de.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,de.jsx)(Ur.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!br||Sf)&&(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)(ZJ,{id:hp}),(0,de.jsx)(jD,{id:r,onToggle:gt,hasIcon:E,icon:P,isOpen:Ge,isResponsive:Mu,isHiddenByDefault:Sf,overlayBackgroundColor:u,overlayTextColor:p,overlay:y,onNavigateToEntityRecord:L,children:Ro&&(0,de.jsx)(GQ,{clientId:r,hasCustomPlaceholder:!!f,templateLock:x,orientation:S})})]})]})]})})]})}var XJ=(0,Qe.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(Jke);var JJ=a(T(),1),eee=a(v(),1);function tee({attributes:e}){if(!e.ref)return(0,eee.jsx)(JJ.InnerBlocks.Content,{})}var Mm=a(T(),1),pg=a(fe(),1);var Am=a(v(),1),gL={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},dg=({navigationMenuId:e,...t})=>({...t,ref:e}),g3=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},v3=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},e5e={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,Am.jsx)(Mm.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:v3},t5e={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,Am.jsx)(Mm.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:dg},r5e={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,Am.jsx)(Mm.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,pg.compose)(dg,g3,v3)},o5e={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,Am.jsx)(Mm.InnerBlocks.Content,{})},migrate:(0,pg.compose)(dg,g3,Ut,v3),isEligible({style:e}){return e?.typography?.fontFamily}},a5e=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},n5e=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=gL[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]}))}}},i5e=[e5e,t5e,r5e,o5e,{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,pg.compose)(dg,g3,Ut,a5e,v3),save(){return(0,Am.jsx)(Mm.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,Am.jsx)(Mm.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in gL){let r=e.style.typography[t];if(r&&r.startsWith(gL[t]))return!0}return!1},migrate:(0,pg.compose)(dg,g3,Ut,n5e)},{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,pg.compose)(dg,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,Am.jsx)(Mm.InnerBlocks.Content,{})}}],ree=i5e;var{name:iee}=C4,lee={icon:Ip,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,b3.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,b3.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,b3.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:XJ,save:tee,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,oee.select)(aee.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,nee.decodeEntities)(t.title)},deprecated:ree},l5e=()=>I({name:iee,metadata:C4,settings:lee});var yL={};Z(yL,{init:()=>g5e,metadata:()=>y3,name:()=>vee,settings:()=>C3});var Rm=a(B(),1);var dee=a(T(),1),fee=a($c(),1),hee=a($(),1);var y3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{anchor:!0,reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},selectors:{states:{"-current":".wp-block-navigation .current-menu-item"}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var _3=a($(),1),mb=a(F(),1),pb=a(R(),1),x3=a(Ds(),1),sl=a(B(),1),ta=a(T(),1),k3=a(lr(),1),rn=a(j(),1);var w3=a(fe(),1);var cr=a(v(),1),c5e={name:"core/navigation-link"},u5e=["core/navigation-link","core/navigation-submenu"];function m5e(e){let t="";switch(e){case"post":t=(0,sl.__)("Select post");break;case"page":t=(0,sl.__)("Select page");break;case"category":t=(0,sl.__)("Select category");break;case"tag":t=(0,sl.__)("Select tag");break;default:t=(0,sl.__)("Add link")}return t}function bL({attributes:e,isSelected:t,setAttributes:r,insertBlocksAfter:o,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:m,url:p,description:d,kind:f,metadata:h}=e,{maxNestingLevel:g}=l,{replaceBlock:b,__unstableMarkNextChangeAsNotPersistent:y,selectBlock:_}=(0,mb.useDispatch)(ta.store),[x,k]=(0,rn.useState)(t&&!p),[S,C]=(0,rn.useState)(null),E=(0,rn.useRef)(null),P=ib(E),N=(0,sl.__)("Add label\u2026"),z=(0,rn.useRef)(),V=(0,rn.useRef)(),A=(0,rn.useRef)(u===void 0),M=(0,rn.useRef)(!1),{isAtMaxNesting:L,isTopLevelLink:U,isParentOfSelectedBlock:H,hasChildren:G,parentBlockClientId:Y,isSubmenu:O}=(0,mb.useSelect)(ne=>{let{getBlockCount:Ge,getBlockName:gt,getBlockRootClientId:je,hasSelectedInnerBlock:or,getBlockParentsByBlockName:mr}=ne(ta.store),fn=je(s),Fe=gt(fn),zr=Fe==="core/navigation",Kr=zr?fn:mr(s,"core/navigation")[0],Nc=Fe==="core/navigation-submenu"?fn:Kr;return{isAtMaxNesting:mr(s,u5e).length>=g,isTopLevelLink:zr,isParentOfSelectedBlock:or(s,!0),hasChildren:!!Ge(s),parentBlockClientId:Nc,isSubmenu:Fe==="core/navigation-submenu"}},[s,g]),te=nb(s),{getBlocks:se}=(0,mb.useSelect)(ta.store),{hasUrlBinding:Q,isBoundEntityAvailable:ce,entityRecord:Ee}=Si({clientId:s,attributes:e}),le=Dd({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),[ee,ve]=Md(f,m,c,te),Ne=(0,rn.useCallback)(()=>{let ne=se(s);ne.length===0&&(ne=[(0,_3.createBlock)("core/navigation-link")],_(ne[0].clientId));let Ge=(0,_3.createBlock)("core/navigation-submenu",e,ne);b(s,Ge)},[se,s,_,b,e]);(0,rn.useEffect)(()=>{A.current&&t&&_(Y)},[]),(0,rn.useEffect)(()=>{G&&(y(),Ne())},[G,y,Ne]),(0,rn.useEffect)(()=>{if(!(!A.current||!p||!x)){if(A.current=!1,(0,k3.isURL)((0,k3.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))lb(z);else if(_(s,null),O){let ne=se(Y);ne.length===1&&ne[0].clientId===s&&(M.current=!0)}}},[p,x,A,u]);function Re(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),k(!1)}let{textColor:Be,customTextColor:Ve,backgroundColor:oe,customBackgroundColor:J}=Pd(l,!U);function re(ne){x3.isKeyboardEvent.primary(ne,"k")&&(ne.preventDefault(),ne.stopPropagation(),k(!0))}let Me=(0,w3.useInstanceId)(bL),mt=Q&&!ce,Lt=mt?(0,sl.sprintf)("navigation-link-edit-%d-desc",Me):void 0,jt=(0,ta.useBlockProps)({ref:(0,w3.useMergeRefs)([C,E]),className:w("wp-block-navigation-item",{"is-editing":t||H,"is-dragging-within":P,"has-link":!!p,"has-child":G,"has-text-color":!!Be||!!Ve,[(0,ta.getColorClassName)("color",Be)]:!!Be,"has-background":!!oe||J,[(0,ta.getColorClassName)("background-color",oe)]:!!oe}),"aria-describedby":Lt,"aria-invalid":mt,style:{color:!Be&&Ve,backgroundColor:!oe&&J},onKeyDown:re}),ae=(0,ta.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:c5e,directInsert:!0,renderAppender:!1}),Ue=!p&&!(Q&&ce)||ee||ve||Q&&!ce;Ue&&(jt.onClick=()=>{k(!0)});let Se=w("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":Ue}),Oe=m5e(m),K=l3();return(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(ta.BlockControls,{children:(0,cr.jsxs)(pb.ToolbarGroup,{children:[(0,cr.jsx)(pb.ToolbarButton,{name:"link",icon:Qn,title:(0,sl.__)("Link"),shortcut:x3.displayShortcut.primary("k"),onClick:()=>{k(!0)}}),!L&&(0,cr.jsx)(pb.ToolbarButton,{name:"submenu",icon:kp,title:(0,sl.__)("Add submenu"),onClick:Ne})]})}),(0,cr.jsx)(ta.InspectorControls,{group:"content",children:(0,cr.jsx)(ob,{attributes:e,setAttributes:r,clientId:s})}),(0,cr.jsxs)("div",{...jt,children:[mt&&(0,cr.jsx)(ti,{id:Lt,children:K}),(0,cr.jsxs)("a",{className:Se,children:[!p&&!h?.bindings?.url?(0,cr.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,cr.jsx)("span",{children:Oe})}):(0,cr.jsxs)(cr.Fragment,{children:[!ee&&!ve&&(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(ta.RichText,{ref:z,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:ne=>r({label:ne}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>o((0,_3.createBlock)("core/navigation-link")),"aria-label":(0,sl.__)("Navigation link text"),placeholder:N,withoutInteractiveFormatting:!0}),d&&(0,cr.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(ee||ve)&&(0,cr.jsx)(ab,{label:u,isInvalid:ee,isDraft:ve,className:"wp-block-navigation-link__label"})]}),x&&(0,cr.jsx)(su,{ref:V,clientId:s,link:e,entity:{entityRecord:Ee,hasBinding:Q,isEntityAvailable:ce},onClose:()=>{if(k(!1),!p&&!Q){i([]);return}if(M.current&&(M.current=!1,E.current?.nextElementSibling)){let ne=E.current.nextElementSibling.querySelector(".block-editor-button-block-appender");ne&&ne.focus()}},anchor:S,onRemove:Re,onChange:le})]}),(0,cr.jsx)("div",{...ae})]})]})}var see=a(T(),1),cee=a(v(),1);function uee(){return(0,cee.jsx)(see.InnerBlocks.Content,{})}function p5e(e){switch(e){case"post":return v1;case"page":return Mc;case"tag":return N1;case"category":return Uu;default:return Q9}}function mee(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:p5e(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var ra=a($(),1),d5e={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,ra.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,ra.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,ra.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,ra.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,ra.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,ra.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,ra.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,ra.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,ra.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,ra.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,ra.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,ra.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,ra.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,ra.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:n})=>(0,ra.createBlock)("core/buttons",{},[(0,ra.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:n?"_blank":void 0})])}]},pee=d5e;var gee=a(v(),1),{fieldsKey:f5e,formKey:h5e}=W(hee.privateApis),{name:vee}=y3,C3={icon:Z0,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,Rm.sprintf)((0,Rm._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:bL,save:uee,example:{attributes:{label:(0,Rm._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,gee.jsx)(dee.InnerBlocks.Content,{})}}],transforms:pee};window.__experimentalContentOnlyInspectorFields&&(C3[f5e]=[{id:"label",label:(0,Rm.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,Rm.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],C3[h5e]={fields:["label","link"]});var g5e=()=>((0,fee.addFilter)("blocks.registerBlockType","core/navigation-link",mee),I({name:vee,metadata:y3,settings:C3}));var xL={};Z(xL,{init:()=>x5e,metadata:()=>S3,name:()=>Bee,settings:()=>I3});var fb=a(B(),1),Pee=a($(),1);var S3={$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 P3=a(F(),1),db=a(R(),1),B3=a(Ds(),1),fg=a(B(),1),eo=a(T(),1),E3=a(lr(),1),ps=a(j(),1);var _ee=a($f(),1),xee=a($(),1),N3=a(fe(),1);var T3=a(R(),1),_L=a(v(),1),bee=()=>(0,_L.jsx)(T3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,_L.jsx)(T3.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Lr=a(v(),1),yee=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function kee({attributes:e,isSelected:t,setAttributes:r,mergeBlocks:o,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u,kind:m,type:p,id:d}=e,{showSubmenuIcon:f,maxNestingLevel:h,submenuVisibility:g}=i,y=(0,eo.useBlockEditingMode)()!=="default"?!0:g==="click",{hasUrlBinding:_,isBoundEntityAvailable:x,entityRecord:k}=Si({clientId:l,attributes:e}),S=Dd({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:C,replaceBlock:E}=(0,P3.useDispatch)(eo.store),[P,N]=(0,ps.useState)(!1),[z,V]=(0,ps.useState)(null),A=(0,ps.useRef)(null),M=ib(A),L=(0,fg.__)("Add text\u2026"),U=(0,ps.useRef)(),{parentCount:H,isParentOfSelectedBlock:G,isImmediateParentOfSelectedBlock:Y,hasChildren:O,selectedBlockHasChildren:te,onlyDescendantIsEmptyLink:se}=(0,P3.useSelect)(ae=>{let{hasSelectedInnerBlock:Ue,getSelectedBlockClientId:Se,getBlockParentsByBlockName:Oe,getBlock:K,getBlockCount:ne,getBlockOrder:Ge}=ae(eo.store),gt,je=Se(),or=Ge(je);if(or?.length===1){let mr=K(or[0]);gt=mr?.name==="core/navigation-link"&&!mr?.attributes?.label}return{parentCount:Oe(l,"core/navigation-submenu").length,isParentOfSelectedBlock:Ue(l,!0),isImmediateParentOfSelectedBlock:Ue(l,!1),hasChildren:!!ne(l),selectedBlockHasChildren:!!or?.length,onlyDescendantIsEmptyLink:gt}},[l]),Q=nb(l),ce=(0,N3.usePrevious)(O),[Ee,le]=Md(m,p,d,Q);(0,ps.useEffect)(()=>{!y&&!c&&N(!0)},[]),(0,ps.useEffect)(()=>{t||N(!1)},[t]),(0,ps.useEffect)(()=>{P&&c&&(0,E3.isURL)((0,E3.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&lb(U)},[c]);let{textColor:ee,customTextColor:ve,backgroundColor:Ne,customBackgroundColor:Re}=Pd(i,H>0);function Be(ae){B3.isKeyboardEvent.primary(ae,"k")&&(ae.preventDefault(),ae.stopPropagation(),N(!0))}let Ve=(0,eo.useBlockProps)({ref:(0,N3.useMergeRefs)([V,A]),className:w("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":M,"has-link":!!c,"has-child":O,"has-text-color":!!ee||!!ve,[(0,eo.getColorClassName)("color",ee)]:!!ee,"has-background":!!Ne||Re,[(0,eo.getColorClassName)("background-color",Ne)]:!!Ne,"open-on-click":y,"open-always":g==="always"}),style:{color:!ee&&ve,backgroundColor:!Ne&&Re},onKeyDown:Be}),oe=Pd(i,!0),J=H>=h?yee.filter(ae=>ae!=="core/navigation-submenu"):yee,re=M4(oe),Me=(0,eo.useInnerBlocksProps)(re,{allowedBlocks:J,defaultBlock:ki,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||Y&&!te||O?eo.InnerBlocks.ButtonBlockAppender:!1}),mt=y?"button":"a";function Lt(){let ae=(0,xee.createBlock)("core/navigation-link",e);E(l,ae)}(0,ps.useEffect)(()=>{!O&&ce&&(C(),Lt())},[O,ce]);let jt=!te||se;return(0,Lr.jsxs)(Lr.Fragment,{children:[(0,Lr.jsx)(eo.BlockControls,{children:(0,Lr.jsxs)(db.ToolbarGroup,{children:[!y&&(0,Lr.jsx)(db.ToolbarButton,{name:"link",icon:Qn,title:(0,fg.__)("Link"),shortcut:B3.displayShortcut.primary("k"),onClick:()=>{N(!0)}}),(0,Lr.jsx)(db.ToolbarButton,{name:"revert",icon:fB,title:(0,fg.__)("Convert to Link"),onClick:Lt,className:"wp-block-navigation__submenu__revert",disabled:!jt})]})}),(0,Lr.jsx)(eo.InspectorControls,{group:"content",children:(0,Lr.jsx)(ob,{attributes:e,setAttributes:r,clientId:l,isLinkEditable:!y})}),(0,Lr.jsxs)("div",{...Ve,children:[(0,Lr.jsxs)(mt,{className:"wp-block-navigation-item__content",children:[!Ee&&!le&&(0,Lr.jsxs)(Lr.Fragment,{children:[(0,Lr.jsx)(eo.RichText,{ref:U,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:ae=>r({label:ae}),onMerge:o,onReplace:n,"aria-label":(0,fg.__)("Navigation link text"),placeholder:L,withoutInteractiveFormatting:!0,onClick:()=>{!y&&!c&&N(!0)}}),u&&(0,Lr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(Ee||le)&&(0,Lr.jsx)(ab,{label:s,isInvalid:Ee,isDraft:le,className:"wp-block-navigation-item__label"}),!y&&P&&(0,Lr.jsx)(su,{clientId:l,link:e,entity:{entityRecord:k,hasBinding:_,isEntityAvailable:x},onClose:()=>{N(!1)},anchor:z,onRemove:()=>{r({url:""}),(0,_ee.speak)((0,fg.__)("Link removed."),"assertive")},onChange:S})]}),(f||y)&&(0,Lr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Lr.jsx)(bee,{})}),(0,Lr.jsx)("div",{...Me})]})]})}var wee=a(T(),1),Cee=a(v(),1);function See(){return(0,Cee.jsx)(wee.InnerBlocks.Content,{})}var Ad=a($(),1),b5e={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,Ad.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Ad.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Ad.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Ad.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Ad.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,Ad.createBlock)("core/search")}]},Tee=b5e;var{fieldsKey:y5e,formKey:_5e}=W(Pee.privateApis),{name:Bee}=S3,I3={icon:({context:e})=>e==="list-view"?Mc:kp,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:kee,example:{attributes:{label:(0,fb._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:See,transforms:Tee};window.__experimentalContentOnlyInspectorFields&&(I3[y5e]=[{id:"label",label:(0,fb.__)("Label"),type:"text",Edit:"rich-text"},{id:"link",label:(0,fb.__)("Link"),type:"url",Edit:"link",getValue:({item:e})=>({url:e.url,rel:e.rel}),setValue:({value:e})=>({url:e.url,rel:e.rel})}],I3[_5e]={fields:["label","link"]});var x5e=()=>I({name:Bee,metadata:S3,settings:I3});var wL={};Z(wL,{init:()=>C5e,metadata:()=>D3,name:()=>zee,settings:()=>Vee});var Eee=a(B(),1),Nee=a(T(),1),kL=a(v(),1);function Iee(){return(0,kL.jsx)("div",{...(0,Nee.useBlockProps)(),children:(0,kL.jsx)("span",{children:(0,Eee.__)("Page break")})})}var D3={$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 Dee=a(j(),1),Lee=a(v(),1);function Mee(){return(0,Lee.jsx)(Dee.RawHTML,{children:"<!--nextpage-->"})}var Aee=a($(),1),w5e={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,Aee.createBlock)("core/nextpage",{})}}]},Ree=w5e;var{name:zee}=D3,Vee={icon:_P,example:{},transforms:Ree,edit:Iee,save:Mee},C5e=()=>I({name:zee,metadata:D3,settings:Vee});var SL={};Z(SL,{init:()=>T5e,metadata:()=>L3,name:()=>jee,settings:()=>Uee});var Oee=a($c(),1);var hg=a(T(),1),lc=a(R(),1),cu=a(B(),1);var on=a(v(),1);function Fee({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",l=o||(0,cu.__)("Close"),s=(0,hg.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=q();return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(hg.InspectorControls,{children:(0,on.jsx)(lc.__experimentalToolsPanel,{label:(0,cu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,on.jsx)(lc.__experimentalToolsPanelItem,{label:(0,cu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,on.jsxs)(lc.__experimentalToggleGroupControl,{label:(0,cu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,__next40pxDefaultSize:!0,children:[(0,on.jsx)(lc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,cu.__)("Icon")}),(0,on.jsx)(lc.__experimentalToggleGroupControlOption,{value:"text",label:(0,cu.__)("Text")}),(0,on.jsx)(lc.__experimentalToggleGroupControlOption,{value:"both",label:(0,cu.__)("Both")})]})})})}),(0,on.jsxs)("button",{...s,type:"button","aria-label":i?void 0:(0,cu.__)("Close"),children:[n&&(0,on.jsx)(Fa,{icon:wp}),i&&(0,on.jsx)(hg.RichText,{identifier:"text",value:l,onChange:u=>t({text:u}),tagName:"span",className:"wp-block-navigation-overlay-close__text",allowedFormats:["core/bold","core/italic"]})]})]})}var L3={$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 M3=a(D(),1),CL=a(v(),1),Hee=(0,CL.jsx)(M3.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,CL.jsx)(M3.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:jee}=L3,Uee={icon:Hee,edit:Fee},T5e=()=>((0,Oee.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:ub()),I({name:jee,metadata:L3,settings:Uee}));var PL={};Z(PL,{init:()=>I5e,metadata:()=>A3,name:()=>Yee,settings:()=>Qee});var A3={$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 qee=a($(),1),zm=a(F(),1),z3=a(j(),1),Vm=a(T(),1),Zee=a(X(),1),V3=a(B(),1);var Gee=a(F(),1),TL=new WeakMap;function Wee(){let e=(0,Gee.useRegistry)();if(!TL.has(e)){let t=new Map;TL.set(e,B5e.bind(null,t))}return TL.get(e)}function B5e(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"&&E5e(e,t,n.attributes.slug)}}function E5e(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),$ee(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function $ee(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($ee(e,i,r,o))return!0;return o.delete(t),!1}var R3=a(v(),1),N5e=({attributes:e,clientId:t})=>{let r=(0,zm.useRegistry)(),o=(0,zm.useSelect)(g=>g(Vm.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,zm.useSelect)(g=>g(Zee.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,zm.useDispatch)(Vm.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,zm.useSelect)(Vm.store),[m,p]=(0,z3.useState)(!1),d=Wee();function f(g){return g.innerBlocks.find(b=>b.name==="core/template-part")&&(g.innerBlocks=g.innerBlocks.map(b=>(b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b))),g.name==="core/template-part"&&g.attributes.theme===void 0&&(g.attributes.theme=n),g}(0,z3.useEffect)(()=>{if(!m&&o?.blocks){try{d(o)}catch{p(!0);return}window.queueMicrotask(()=>{let g=c(t),b=o.blocks.map(_=>(0,qee.cloneBlock)(f(_)));b.length===1&&o.categories?.length>0&&(b[0].attributes={...b[0].attributes,metadata:{...b[0].attributes.metadata,categories:o.categories,patternName:o.name,name:b[0].attributes.metadata.name||o.title}});let y=u(g);r.batch(()=>{s(),l(g,"default"),s(),i(t,b),s(),l(g,y)})})}},[t,m,o,s,i,u,l,c]);let h=(0,Vm.useBlockProps)();return m?(0,R3.jsx)("div",{...h,children:(0,R3.jsx)(Vm.Warning,{children:(0,V3.sprintf)((0,V3.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,R3.jsx)("div",{...h})},Kee=N5e;var{name:Yee}=A3,Qee={edit:Kee},I5e=()=>I({name:Yee,metadata:A3,settings:Qee});var IL={};Z(IL,{init:()=>R5e,metadata:()=>F3,name:()=>lte,settings:()=>ste});var F3={$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 ate=a($(),1),Ea=a(T(),1),Ba=a(R(),1),Pa=a(B(),1),sc=a(j(),1),nte=a(X(),1),O3=a(F(),1);var BL=a($(),1),Xee=a(F(),1),Jee=a(T(),1);function L5e(e=[]){let t="post-type",r={},o=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=r[n]?.innerBlocks??[];r[n]=(0,BL.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:lg(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):o.push(r[n])}),o}function ete(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=ete(r.innerBlocks,t);if(o)return o}}return null}function M5e(e=[],t=null){let r=L5e(e);if(t){let n=ete(r,t);n&&n.innerBlocks&&(r=n.innerBlocks)}let o=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){o(u);let m=(0,BL.createBlock)("core/navigation-submenu",c,u);s[l]=m}})};return o(r),r}function tte({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:n,selectBlock:i}=(0,Xee.useDispatch)(Jee.store);return()=>{let l=M5e(t,o);n(e,l),i(r)}}var gb=a(R(),1),EL=a(fe(),1),hb=a(B(),1),Rd=a(v(),1),NL=(0,hb.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function H3({onClick:e,onClose:t,disabled:r}){return(0,Rd.jsxs)(gb.Modal,{onRequestClose:t,title:(0,hb.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,EL.useInstanceId)(H3,"wp-block-page-list-modal__description")},children:[(0,Rd.jsx)("p",{id:(0,EL.useInstanceId)(H3,"wp-block-page-list-modal__description"),children:NL}),(0,Rd.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,Rd.jsx)(gb.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,hb.__)("Cancel")}),(0,Rd.jsx)(gb.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:r,onClick:e,children:(0,hb.__)("Edit")})]})]})}var St=a(v(),1),rte=100,ote=()=>{};function A5e({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:n,parentPageID:i}){if(!r)return(0,St.jsx)("div",{...e,children:(0,St.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,St.jsx)(Ba.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,St.jsx)("div",{...e,children:(0,St.jsx)(Ba.Notice,{status:"warning",isDismissible:!1,children:(0,Pa.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,St.jsx)("div",{...e,children:(0,St.jsx)(Ba.Notice,{status:"info",isDismissible:!1,children:(0,Pa.__)("Page List: Cannot retrieve Pages.")})});if(o.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,St.jsx)("div",{...e,children:(0,St.jsx)(Ea.Warning,{children:(0,Pa.sprintf)((0,Pa.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,St.jsx)("div",{...e,children:(0,St.jsx)(Ba.Notice,{status:"warning",isDismissible:!1,children:(0,Pa.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,St.jsx)("ul",{...t})}function ite({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:n}=r,[i,l]=(0,sc.useState)(!1),s=(0,sc.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=q(),{records:m,hasResolved:p}=(0,nte.useEntityRecords)("postType","page",{per_page:rte,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&m?.length>0&&m?.length<=rte,f=(0,sc.useMemo)(()=>m===null?new Map:m.sort((N,z)=>N.menu_order===z.menu_order?N.title.rendered.localeCompare(z.title.rendered):N.menu_order-z.menu_order).reduce((N,z)=>{let{parent:V}=z;return N.has(V)?N.get(V).push(z):N.set(V,[z]),N},new Map),[m]),h=(0,Ea.useBlockProps)({className:w("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Ea.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Ea.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),g=(0,sc.useMemo)(function P(N=0,z=0){let V=f.get(N);return V?.length?V.reduce((A,M)=>{let L=f.has(M.id),U={value:M.id,label:"\u2014 ".repeat(z)+M.title.rendered,rawName:M.title.rendered};return A.push(U),L&&A.push(...P(M.id,z+1)),A},[]):[]},[f]),b=(0,sc.useMemo)(function P(N=n){let z=f.get(N);return z?.length?z.reduce((V,A)=>{let M=f.has(A.id),L={id:A.id,label:A.title?.rendered?.trim()!==""?A.title?.rendered:(0,Pa.__)("(no title)"),title:A.title?.rendered?.trim()!==""?A.title?.rendered:(0,Pa.__)("(no title)"),link:A.url,hasChildren:M},U=null,H=P(A.id);return U=(0,ate.createBlock)("core/page-list-item",L,H),V.push(U),V},[]):[]},[f,n]),{hasSelectedChild:y,parentClientId:_,hasDraggedChild:x,isChildOfNavigation:k}=(0,O3.useSelect)(P=>{let{getBlockParentsByBlockName:N,hasSelectedInnerBlock:z,hasDraggedInnerBlock:V}=P(Ea.store),A=N(t,"core/navigation",!0);return{isChildOfNavigation:A.length>0,hasSelectedChild:z(t,!0),hasDraggedChild:V(t,!0),parentClientId:A[0]}},[t]),S=tte({clientId:t,pages:m,parentClientId:_,parentPageID:n}),C=(0,Ea.useInnerBlocksProps)(h,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:k?!1:"all",onInput:ote,onChange:ote,value:b}),{selectBlock:E}=(0,O3.useDispatch)(Ea.store);return(0,sc.useEffect)(()=>{(y||x)&&(s(),E(_))},[y,x,_,E,s]),(0,St.jsxs)(St.Fragment,{children:[(g.length>0||d)&&(0,St.jsx)(Ea.InspectorControls,{children:(0,St.jsxs)(Ba.__experimentalToolsPanel,{label:(0,Pa.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:u,children:[g.length>0&&(0,St.jsx)(Ba.__experimentalToolsPanelItem,{label:(0,Pa.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,St.jsx)(Ba.ComboboxControl,{__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,Pa.__)("Parent"),value:n,options:g,onChange:P=>o({parentPageID:P??0}),help:(0,Pa.__)("Choose a page to show only its subpages.")})}),d&&(0,St.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,St.jsx)("p",{children:NL}),(0,St.jsx)(Ba.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!p,onClick:S,children:(0,Pa.__)("Edit")})]})]})}),d&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(Ea.BlockControls,{group:"other",children:(0,St.jsx)(Ba.ToolbarButton,{title:(0,Pa.__)("Edit"),onClick:s,children:(0,Pa.__)("Edit")})}),i&&(0,St.jsx)(H3,{onClick:S,onClose:c,disabled:!p})]}),(0,St.jsx)(A5e,{blockProps:h,innerBlocksProps:C,hasResolvedPages:p,blockList:b,pages:m,parentPageID:n})]})}var{name:lte}=F3,ste={icon:xP,example:{},edit:ite},R5e=()=>I({name:lte,metadata:F3,settings:ste});var RL={};Z(RL,{init:()=>F5e,metadata:()=>j3,name:()=>mte,settings:()=>pte});var j3={$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 G3=a(T(),1),cte=a(F(),1),ML=a(X(),1),AL=a(Va(),1);var U3=a(R(),1),DL=a(v(),1),LL=()=>(0,DL.jsx)(U3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,DL.jsx)(U3.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var an=a(v(),1);function V5e(){return(0,cte.useSelect)(e=>{if(!e(ML.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(ML.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function ute({context:e,attributes:t}){let{id:r,label:o,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=V5e(),u=e.submenuVisibility,m=u==="click",p=Pd(e,!0),d=M4(p),f=(0,G3.useBlockProps)(d,{className:"wp-block-pages-list__item"}),h=(0,G3.useInnerBlocksProps)(f);return(0,an.jsxs)("li",{className:w("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":m,"open-always":u==="always","open-on-hover-click":u==="hover"&&e.showSubmenuIcon,"menu-item-home":r===c}),children:[i&&m?(0,an.jsxs)(an.Fragment,{children:[(0,an.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,AL.safeHTML)(o)}}),(0,an.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,an.jsx)(LL,{})})]}):(0,an.jsx)("a",{className:w("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,dangerouslySetInnerHTML:{__html:(0,AL.safeHTML)(l)}}),i&&(0,an.jsxs)(an.Fragment,{children:[!m&&e.showSubmenuIcon&&(0,an.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,an.jsx)(LL,{})}),(0,an.jsx)("ul",{...h})]})]},r)}var{name:mte}=j3,pte={__experimentalLabel:({label:e})=>e,icon:Mc,example:{},edit:ute},F5e=()=>I({name:mte,metadata:j3,settings:pte});var jL={};Z(jL,{init:()=>K5e,metadata:()=>_g,name:()=>X3,settings:()=>Q3});var Y3=a(B(),1);var Nte=a($(),1);var dte=a(j(),1),bo=a(T(),1),zL=a(B(),1),cc=a(v(),1),gg={className:!1},VL={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"}},W3=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}},vg=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:CJe,...vb}=VL,H5e=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:VL,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=w({"has-drop-cap":t===((0,zL.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,cc.jsx)("p",{...bo.useBlockProps.save({className:i,dir:n}),children:(0,cc.jsx)(bo.RichText.Content,{value:r})})},migrate:vg},{supports:gg,attributes:{...vb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:vg,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=w({"has-drop-cap":t===((0,zL.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,cc.jsx)("p",{...bo.useBlockProps.save({className:i,dir:n}),children:(0,cc.jsx)(bo.RichText.Content,{value:r})})}},{supports:gg,attributes:{...vb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return W3(vg(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,bo.getColorClassName)("color",i),d=(0,bo.getColorClassName)("background-color",n),f=(0,bo.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u};return(0,cc.jsx)(bo.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:m})}},{supports:gg,attributes:{...vb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return W3(vg(e))},save({attributes:e}){let{align:t,content:r,dropCap:o,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,bo.getColorClassName)("color",i),d=(0,bo.getColorClassName)("background-color",n),f=(0,bo.getFontSizeClass)(c),h=w({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":o,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,cc.jsx)(bo.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:r,dir:m})}},{supports:gg,attributes:{...vb,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return W3(vg(e))},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=e,p=(0,bo.getColorClassName)("color",l),d=(0,bo.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,h=w({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[p]:p,[d]:d}),g={backgroundColor:d?void 0:s,color:p?void 0:c,fontSize:f?void 0:m,textAlign:r};return(0,cc.jsx)(bo.RichText.Content,{tagName:"p",style:g,className:h||void 0,value:o})}},{supports:gg,attributes:{...vb,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:r,content:o,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=w({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,cc.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:r},className:c||void 0,children:o})},migrate(e){return W3(vg({...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:gg,attributes:{...VL,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,cc.jsx)(dte.RawHTML,{children:e.content})},migrate:e=>e}],fte=H5e;var Vn=a(B(),1),yg=a(R(),1),Na=a(T(),1),wte=a(F(),1),Cte=a($(),1);var hte=a(j(),1),$3=a(fe(),1),gte=a(Ds(),1),bg=a(F(),1),FL=a(T(),1),uu=a($(),1);var{subscribeDelegatedListener:O5e}=W($3.privateApis);function vte(e){let{batch:t}=(0,bg.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:n}=(0,bg.useDispatch)(FL.store),{getBlockRootClientId:i,getBlockIndex:l,getBlockOrder:s,getBlockName:c,getBlock:u,canInsertBlockType:m}=(0,bg.useSelect)(FL.store),p=(0,hte.useRef)(e);return p.current=e,(0,$3.useRefEffect)(d=>{function f(h){if(h.defaultPrevented||h.keyCode!==gte.ENTER)return;let{content:g,clientId:b}=p.current;if(g.length)return;let y=i(b);if(!(0,uu.hasBlockSupport)(c(y),"__experimentalOnEnter",!1))return;let _=s(y),x=_.indexOf(b);if(x===_.length-1){let V=y;for(;!m(c(b),i(V));)V=i(V);typeof V=="string"&&(h.preventDefault(),r([b],y,i(V),l(V)+1));return}let k=(0,uu.getDefaultBlockName)(),S=c(y),C=i(y);if(!m(k,C)||!m(S,C))return;h.preventDefault();let E=u(y),P=(0,uu.cloneBlock)({...E,innerBlocks:E.innerBlocks.slice(0,x)}),N=(0,uu.createBlock)(k),z=(0,uu.cloneBlock)({...E,innerBlocks:E.innerBlocks.slice(x+1)});t(()=>{o(y,[P,N,z]),n(N.clientId)})}return O5e(d,"keydown",f,!0)},[])}var bte=a(fe(),1),q3=a(j(),1),yte=a(Uf(),1),_te=a(F(),1),xte=a(T(),1);function kte(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,_te.useDispatch)(xte.store),n=(0,bte.useEvent)(()=>{(0,yte.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,q3.useRef)();(0,q3.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var Bi=a(v(),1);function j5e({direction:e,setDirection:t}){return(0,Vn.isRTL)()&&(0,Bi.jsx)(yg.ToolbarButton,{icon:gT,title:(0,Vn._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function HL(e){return e===((0,Vn.isRTL)()?"left":"right")||e==="center"}function U5e({clientId:e,attributes:t,setAttributes:r,name:o}){let[n]=(0,Na.useSettings)("typography.dropCap"),i=(0,wte.useSelect)(p=>{let{hasSelectedStyleState:d}=W(p(Na.store));return d(e)},[e]);if(!n||i)return null;let{style:l,dropCap:s}=t,c=l?.typography?.textAlign,u;HL(c)?u=(0,Vn.__)("Not available for aligned text."):s?u=(0,Vn.__)("Showing large initial letter."):u=(0,Vn.__)("Show a large initial letter.");let m=(0,Cte.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,Bi.jsx)(Na.InspectorControls,{group:"typography",children:(0,Bi.jsx)(yg.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Vn.__)("Drop cap"),isShownByDefault:m,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,Bi.jsx)(yg.ToggleControl,{label:(0,Vn.__)("Drop cap"),checked:!!s,onChange:()=>r({dropCap:!s}),help:u,disabled:HL(c)})})})}function G5e({attributes:e,mergeBlocks:t,onReplace:r,onRemove:o,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:m,placeholder:p,style:d}=e,f=d?.typography?.textAlign;kte(e.align,d,n);let h=(0,Na.useBlockProps)({ref:vte({clientId:i,content:c}),className:w({"has-drop-cap":HL(f)?!1:m}),style:{direction:u}}),g=(0,Na.useBlockEditingMode)();return(0,Bi.jsxs)(Bi.Fragment,{children:[g==="default"&&(0,Bi.jsx)(Na.BlockControls,{group:"block",children:(0,Bi.jsx)(j5e,{direction:u,setDirection:b=>n({direction:b})})}),l&&(0,Bi.jsx)(U5e,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,Bi.jsx)(Na.RichText,{identifier:"content",tagName:"p",...h,value:c,onChange:b=>n({content:b}),onMerge:t,onReplace:r,onRemove:o,"aria-label":Na.RichText.isEmpty(c)?(0,Vn.__)("Empty block; start writing or type forward slash to choose a block"):(0,Vn.__)("Block: Paragraph"),"data-empty":Na.RichText.isEmpty(c),placeholder:p||(0,Vn.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var Ste=G5e;var _g={$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 Z3=a(T(),1),Tte=a(B(),1),OL=a(v(),1);function Pte({attributes:e}){let{content:t,dropCap:r,direction:o,style:n}=e,i=n?.typography?.textAlign,l=w({"has-drop-cap":i===((0,Tte.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,OL.jsx)("p",{...Z3.useBlockProps.save({className:l,dir:o}),children:(0,OL.jsx)(Z3.RichText.Content,{value:t})})}var K3=a($(),1);var{name:Bte}=_g,$5e={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,K3.getBlockAttributes)(Bte,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,K3.createBlock)(Bte,t)}}]},Ete=$5e;var{fieldsKey:q5e,formKey:Z5e}=W(Nte.privateApis),{name:X3}=_g,Q3={icon:wP,example:{attributes:{content:(0,Y3.__)("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,Y3.__)("Empty"):o}},transforms:Ete,deprecated:fte,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Ste,save:Pte};window.__experimentalContentOnlyInspectorFields&&(Q3[q5e]=[{id:"content",label:(0,Y3.__)("Content"),type:"text",Edit:"rich-text"}],Q3[Z5e]={fields:["content"]});var K5e=()=>I({name:X3,metadata:_g,settings:Q3});var qL={};Z(qL,{init:()=>Ewe,metadata:()=>J3,name:()=>qte,settings:()=>Zte});var J3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/playlist",title:"Playlist",category:"media",description:"Embed a simple playlist.",keywords:["music","sound"],textdomain:"default",allowedBlocks:["core/playlist-track"],attributes:{currentTrack:{type:"string"},type:{type:"string",default:"audio"},order:{type:"string",default:"asc"},showTracklist:{type:"boolean",default:!0},showImages:{type:"boolean",default:!0},showArtists:{type:"boolean",default:!0},showNumbers:{type:"boolean",default:!0},showTrackLength:{type:"boolean",default:!0},caption:{type:"string"}},providesContext:{showArtists:"showArtists",currentTrack:"currentTrack"},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:!0,spacing:{margin:!0,padding:!0}},styles:[{name:"bars",label:"Bars",isDefault:!0},{name:"mirror",label:"Mirror"},{name:"line",label:"Line"},{name:"blocks",label:"Blocks"},{name:"dots",label:"Dots"},{name:"seekbar",label:"Seekbar"}],editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var oa=[];for(let e=0;e<256;++e)oa.push((e+256).toString(16).slice(1));function Ite(e,t=0){return(oa[e[t+0]]+oa[e[t+1]]+oa[e[t+2]]+oa[e[t+3]]+"-"+oa[e[t+4]]+oa[e[t+5]]+"-"+oa[e[t+6]]+oa[e[t+7]]+"-"+oa[e[t+8]]+oa[e[t+9]]+"-"+oa[e[t+10]]+oa[e[t+11]]+oa[e[t+12]]+oa[e[t+13]]+oa[e[t+14]]+oa[e[t+15]]).toLowerCase()}var Q5e=new Uint8Array(16);function UL(){return crypto.getRandomValues(Q5e)}function X5e(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():J5e(e,t,r)}function J5e(e,t,r){e=e||{};let o=e.random??e.rng?.()??UL();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 Ite(o)}var mu=X5e;var zd=a(j(),1),Gr=a(T(),1),yo=a(R(),1),Vd=a(F(),1),Ute=a(_r(),1),to=a(B(),1);var Gte=a($(),1);var bb=a(j(),1),rC=a(fe(),1);function ewe(e){let t={};if(e.dataset.url&&(t.url=e.dataset.url),e.dataset.height&&(t.height=parseInt(e.dataset.height)),e.dataset.samples&&(t.samples=parseInt(e.dataset.samples)),e.dataset.preload&&(t.preload=e.dataset.preload),e.dataset.waveformStyle&&(t.waveformStyle=e.dataset.waveformStyle),e.dataset.barWidth&&(t.barWidth=parseInt(e.dataset.barWidth)),e.dataset.barSpacing&&(t.barSpacing=parseInt(e.dataset.barSpacing)),e.dataset.buttonAlign&&(t.buttonAlign=e.dataset.buttonAlign),e.dataset.colorPreset&&(t.colorPreset=e.dataset.colorPreset),e.dataset.waveformColor&&(t.waveformColor=e.dataset.waveformColor),e.dataset.progressColor&&(t.progressColor=e.dataset.progressColor),e.dataset.buttonColor&&(t.buttonColor=e.dataset.buttonColor),e.dataset.buttonHoverColor&&(t.buttonHoverColor=e.dataset.buttonHoverColor),e.dataset.textColor&&(t.textColor=e.dataset.textColor),e.dataset.textSecondaryColor&&(t.textSecondaryColor=e.dataset.textSecondaryColor),e.dataset.backgroundColor&&(t.backgroundColor=e.dataset.backgroundColor),e.dataset.borderColor&&(t.borderColor=e.dataset.borderColor),e.dataset.color&&(t.waveformColor=e.dataset.color),e.dataset.theme&&(t.colorPreset=e.dataset.theme),e.dataset.autoplay&&(t.autoplay=e.dataset.autoplay==="true"),e.dataset.showTime&&(t.showTime=e.dataset.showTime==="true"),e.dataset.showHoverTime&&(t.showHoverTime=e.dataset.showHoverTime==="true"),e.dataset.showBpm&&(t.showBPM=e.dataset.showBpm==="true"),e.dataset.singlePlay&&(t.singlePlay=e.dataset.singlePlay==="true"),e.dataset.playOnSeek&&(t.playOnSeek=e.dataset.playOnSeek==="true"),e.dataset.title&&(t.title=e.dataset.title),e.dataset.subtitle&&(t.subtitle=e.dataset.subtitle),e.dataset.album&&(t.album=e.dataset.album),e.dataset.artwork&&(t.artwork=e.dataset.artwork),e.dataset.waveform&&(t.waveform=e.dataset.waveform),e.dataset.markers)try{t.markers=JSON.parse(e.dataset.markers)}catch(r){console.warn("Invalid markers JSON:",r)}if(e.dataset.playbackRate&&(t.playbackRate=parseFloat(e.dataset.playbackRate)),e.dataset.showPlaybackSpeed!==void 0&&(t.showPlaybackSpeed=e.dataset.showPlaybackSpeed==="true"),e.dataset.playbackRates)try{t.playbackRates=JSON.parse(e.dataset.playbackRates)}catch(r){console.warn("Invalid playbackRates JSON:",r)}return e.dataset.enableMediaSession!==void 0&&(t.enableMediaSession=e.dataset.enableMediaSession==="true"),t}function Dte(e){if(!e||isNaN(e))return"0:00";let t=Math.floor(e/60),r=Math.floor(e%60);return`${t}:${r.toString().padStart(2,"0")}`}function twe(e){let t=e||Math.random().toString();return btoa(t.substring(0,10)).replace(/[^a-zA-Z0-9]/g,"")}function rwe(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 Lte(...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 owe(e,t){let r;return function(...o){let n=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(n,t)}}function eC(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,l=Math.floor(i),s=Math.ceil(i),c=i-l;if(s>=e.length)r.push(e[e.length-1]);else if(l===s)r.push(e[l]);else{let u=e[l]*(1-c)+e[s]*c;r.push(u)}}}else{let o=e.length/t;for(let n=0;n<t;n++){let i=Math.floor(n*o),l=Math.floor((n+1)*o),s=0,c=0;for(let u=i;u<=l&&u<e.length;u++)e[u]>s&&(s=e[u]),c++;if(c===0){let u=Math.min(Math.round(n*o),e.length-1);s=e[u]}r.push(s)}}return r}function Ate(e,t,r,o,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=eC(r,c),m=t.height,p=o*t.width;e.clearRect(0,0,t.width,t.height);for(let d=0;d<u.length;d++){let f=d*(l+s);if(f+l>t.width)break;let h=u[d]*m*.9,g=m-h;e.fillStyle=n.color,e.fillRect(f,g,l,h)}e.save(),e.beginPath(),e.rect(0,0,p,m),e.clip();for(let d=0;d<u.length;d++){let f=d*(l+s);if(f>p)break;let h=u[d]*m*.9,g=m-h;e.fillStyle=n.progressColor,e.fillRect(f,g,l,h)}e.restore()}function awe(e,t,r,o,n){let i=window.devicePixelRatio||1,l=n.barWidth*i,s=n.barSpacing*i,c=Math.floor(t.width/(l+s)),u=eC(r,c),m=t.height,p=m/2,d=o*t.width;e.clearRect(0,0,t.width,t.height);for(let f=0;f<u.length;f++){let h=f*(l+s);if(h+l>t.width)break;let g=u[f]*m*.45;e.fillStyle=n.color,e.fillRect(h,p-g,l,g),e.fillRect(h,p,l,g)}e.save(),e.beginPath(),e.rect(0,0,d,m),e.clip();for(let f=0;f<u.length;f++){let h=f*(l+s);if(h>d)break;let g=u[f]*m*.45;e.fillStyle=n.progressColor,e.fillRect(h,p-g,l,g),e.fillRect(h,p,l,g)}e.restore()}function nwe(e,t,r,o,n){let i=t.width,l=t.height,s=l/2,c=l*.35;e.clearRect(0,0,i,l);let u=(m,p,d=1,f=!1)=>{f&&(e.shadowBlur=12,e.shadowColor=m),e.strokeStyle=m,e.lineWidth=p,e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(0,s);let h=[],g=Math.floor(r.length*d);for(let b=0;b<g;b++){let y=b/(r.length-1)*i,_=r[b],x=Math.sin(b*.1)*_,k=s+x*c;h.push({x:y,y:k})}for(let b=0;b<h.length-1;b++){let y=h[b].x+(h[b+1].x-h[b].x)*.5,_=h[b].y,x=h[b+1].x-(h[b+1].x-h[b].x)*.5,k=h[b+1].y;e.bezierCurveTo(y,_,x,k,h[b+1].x,h[b+1].y)}e.stroke(),f&&(e.shadowBlur=0)};e.strokeStyle="rgba(255, 255, 255, 0.03)",e.lineWidth=.5,e.beginPath(),e.moveTo(0,s),e.lineTo(i,s),e.stroke();for(let m=0;m<=10;m++){let p=i/10*m;e.beginPath(),e.moveTo(p,0),e.lineTo(p,l),e.stroke()}u(n.color,2,1,!1),o>0&&u(n.progressColor,3,o,!0)}function iwe(e,t,r,o,n){let i=window.devicePixelRatio||1,l=(n.barWidth||3)*i,s=(n.barSpacing||1)*i,c=Math.floor(t.width/(l+s)),u=eC(r,c),m=t.height,p=4*i,d=2*i,f=o*t.width,h=m/2;e.clearRect(0,0,t.width,t.height);for(let g=0;g<u.length;g++){let b=g*(l+s);if(b+l>t.width)break;let y=u[g]*m*.9,_=Math.floor(y/(p+d));e.fillStyle=b<f?n.progressColor:n.color;for(let x=0;x<_;x++){let k=x*(p+d);e.fillRect(b,h-k-p,l,p),x>0&&e.fillRect(b,h+k,l,p)}}}function lwe(e,t,r,o,n){let i=window.devicePixelRatio||1,l=(n.barWidth||2)*i,s=(n.barSpacing||3)*i,c=Math.floor(t.width/(l+s)),u=eC(r,c),m=t.height,p=Math.max(1.5*i,l/2),d=o*t.width,f=m/2;e.clearRect(0,0,t.width,t.height);for(let h=0;h<u.length;h++){let g=h*(l+s)+l/2;if(g>t.width)break;let b=u[h]*m*.9;e.fillStyle=g<d?n.progressColor:n.color,e.beginPath(),e.arc(g,f-b/2,p,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(g,f+b/2,p,0,Math.PI*2),e.fill()}}function swe(e,t,r,o,n){let i=t.width,l=t.height,s=l/2,c=4,u=c/2;if(e.clearRect(0,0,i,l),e.fillStyle=n.color||"rgba(255, 255, 255, 0.2)",e.beginPath(),e.moveTo(u,s-c/2),e.lineTo(i-u,s-c/2),e.arc(i-u,s,c/2,-Math.PI/2,Math.PI/2),e.lineTo(u,s+c/2),e.arc(u,s,c/2,Math.PI/2,-Math.PI/2),e.closePath(),e.fill(),o>0){let m=Math.max(u*2,o*i);e.shadowBlur=8,e.shadowColor=n.progressColor,e.fillStyle=n.progressColor||"rgba(255, 255, 255, 0.9)",e.beginPath(),e.moveTo(u,s-c/2),e.lineTo(m-u,s-c/2),e.arc(m-u,s,c/2,-Math.PI/2,Math.PI/2),e.lineTo(u,s+c/2),e.arc(u,s,c/2,Math.PI/2,-Math.PI/2),e.closePath(),e.fill(),e.shadowBlur=0;let p=8,d=m;e.shadowBlur=4,e.shadowColor="rgba(0, 0, 0, 0.3)",e.shadowOffsetY=2,e.fillStyle="#ffffff",e.beginPath(),e.arc(d,s,p,0,Math.PI*2),e.fill(),e.shadowBlur=0,e.shadowOffsetY=0,e.fillStyle=n.progressColor||"rgba(255, 255, 255, 0.9)",e.beginPath(),e.arc(d,s,p*.4,0,Math.PI*2),e.fill()}}var cwe={bars:Ate,mirror:awe,line:nwe,blocks:iwe,dots:lwe,seekbar:swe};function uwe(e,t,r,o,n){(cwe[n.waveformStyle]||Ate)(e,t,r,o,n)}function mwe(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=pwe(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,m=Math.round(u/3)*3;m>60&&m<200&&(i[m]=(i[m]||0)+1)});let l=0,s=120;for(let[c,u]of Object.entries(i))u>l&&(l=u,s=parseInt(c));return s<70&&i[s*2]?s*=2:s>160&&i[Math.round(s/2)]&&(s=Math.round(s/2)),s-1}catch(t){return console.warn("BPM detection failed:",t),null}}function pwe(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 l=i-o,s=o*1.8+.01;if(l>s&&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 dwe(e,t=200){let r=e.length/t,o=~~(r/10)||1,n=e.numberOfChannels,i=[];for(let s=0;s<n;s++){let c=e.getChannelData(s);for(let u=0;u<t;u++){let m=~~(u*r),p=~~(m+r),d=0,f=0;for(let g=m;g<p;g+=o){let b=c[g];b>f&&(f=b),b<d&&(d=b)}let h=Math.max(Math.abs(f),Math.abs(d));(s===0||h>i[u])&&(i[u]=h)}}let l=Math.max(...i);return l>0?i.map(s=>s/l):i}async function Mte(e,t=200,r=!1){try{let o=new(window.AudioContext||window.webkitAudioContext),n=await(await fetch(e)).arrayBuffer(),i=await o.decodeAudioData(n),l=dwe(i,t);l=hwe(l);let s=null;return r&&(s=await mwe(i)),o.close(),{peaks:l,bpm:s}}catch(o){throw console.error("Failed to generate waveform:",o),o}}function fwe(e=200){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(Math.max(.1,Math.min(1,o+n)))}return t}function hwe(e,t=.95){let r=Math.max(...e);if(r===0||r>t)return e;let o=t/r;return e.map(n=>n*o)}function gwe(){let e=document.documentElement,t=document.body;if(e.classList.contains("dark")||e.classList.contains("dark-mode")||e.classList.contains("theme-dark")||e.getAttribute("data-theme")==="dark"||e.getAttribute("data-color-scheme")==="dark"||t.classList.contains("dark")||t.classList.contains("dark-mode")||t.getAttribute("data-theme")==="dark")return"dark";if(e.classList.contains("light")||e.classList.contains("light-mode")||e.classList.contains("theme-light")||e.getAttribute("data-theme")==="light"||e.getAttribute("data-color-scheme")==="light"||t.classList.contains("light")||t.classList.contains("light-mode")||t.getAttribute("data-theme")==="light")return"light";try{let r=getComputedStyle(document.body).backgroundColor.match(/\d+/g);if(r&&r.length>=3){let[o,n,i]=r.map(Number),l=(o*299+n*587+i*114)/1e3;if(l>128)return"light";if(l<128)return"dark"}}catch{}if(window.matchMedia){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}var GL={dark:{waveformColor:"rgba(255, 255, 255, 0.3)",progressColor:"rgba(255, 255, 255, 0.9)",buttonColor:"rgba(255, 255, 255, 0.9)",buttonHoverColor:"rgba(255, 255, 255, 1)",textColor:"#ffffff",textSecondaryColor:"rgba(255, 255, 255, 0.6)",backgroundColor:"rgba(255, 255, 255, 0.03)",borderColor:"rgba(255, 255, 255, 0.1)"},light:{waveformColor:"rgba(0, 0, 0, 0.2)",progressColor:"rgba(0, 0, 0, 0.8)",buttonColor:"rgba(0, 0, 0, 0.8)",buttonHoverColor:"rgba(0, 0, 0, 0.9)",textColor:"#333333",textSecondaryColor:"rgba(0, 0, 0, 0.6)",backgroundColor:"rgba(0, 0, 0, 0.02)",borderColor:"rgba(0, 0, 0, 0.1)"}};function vwe(e){if(e&&GL[e])return GL[e];let t=gwe();return GL[t]}var bwe={url:"",height:60,samples:200,preload:"metadata",playbackRate:1,showPlaybackSpeed:!1,playbackRates:[.5,.75,1,1.25,1.5,1.75,2],buttonAlign:"auto",waveformStyle:"mirror",barWidth:2,barSpacing:0,colorPreset:null,waveformColor:null,progressColor:null,buttonColor:null,buttonHoverColor:null,textColor:null,textSecondaryColor:null,backgroundColor:null,borderColor:null,autoplay:!1,showTime:!0,showHoverTime:!1,showBPM:!1,singlePlay:!0,playOnSeek:!0,enableMediaSession:!0,markers:[],showMarkers:!0,title:null,subtitle:null,artwork:null,album:"",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},ywe={bars:{barWidth:3,barSpacing:1},mirror:{barWidth:2,barSpacing:0},line:{barWidth:2,barSpacing:0},blocks:{barWidth:4,barSpacing:2},dots:{barWidth:3,barSpacing:3},seekbar:{barWidth:1,barSpacing:0}},tC=class cl{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=ewe(this.container);this.options=Lte(bwe,o,r);let n=vwe(this.options.colorPreset);for(let[l,s]of Object.entries(n))(this.options[l]===null||this.options[l]===void 0)&&(this.options[l]=s);let i=ywe[this.options.waveformStyle];i&&(o.barWidth===void 0&&r.barWidth===void 0&&(this.options.barWidth=i.barWidth),o.barSpacing===void 0&&r.barSpacing===void 0&&(this.options.barSpacing=i.barSpacing)),this.audio=null,this.canvas=null,this.ctx=null,this.waveformData=[],this.progress=0,this.isPlaying=!1,this.isLoading=!1,this.hasError=!1,this.updateTimer=null,this.resizeObserver=null,this.id=this.container.id||twe(this.options.url),cl.instances.set(this.id,this),this.init(),setTimeout(()=>{this.container.dispatchEvent(new CustomEvent("waveformplayer:ready",{bubbles:!0,detail:{player:this,url:this.options.url}}))},100)}init(){this.createDOM(),this.createAudio(),this.initPlaybackSpeed(),this.initKeyboardControls(),this.bindEvents(),this.setupResizeObserver(),requestAnimationFrame(()=>{this.resizeCanvas(),this.options.url&&this.load(this.options.url).then(()=>{this.options.autoplay&&this.play()}).catch(t=>{console.error("Failed to load audio:",t)})})}createDOM(){this.container.innerHTML="",this.container.className="waveform-player";let t=this.options.buttonAlign;t==="auto"&&(this.options.waveformStyle==="bars"?t="bottom":t="center"),this.container.innerHTML=`
35 - <div class="waveform-player-inner">
36 - <div class="waveform-body">
37 - <div class="waveform-track waveform-align-${t}">
38 - <button class="waveform-btn" aria-label="Play/Pause" style="
39 - border-color: ${this.options.buttonColor};
40 - color: ${this.options.buttonColor};
41 - ">
68 +`)}var Rt=a(y(),1),{Tabs:fp}=le(bn.privateApis),{useNativeUndo:b6e}=le(gp.privateApis);function BD({onRequestClose:e,content:t,onUpdate:r}){let{html:o,css:n,js:i}=Zte(t),[s,l]=(0,I2.useState)(o),[c,u]=(0,I2.useState)(n),[d,p]=(0,I2.useState)(i),[m,f]=(0,I2.useState)(!1),g=b6e(),h=(0,Yte.useViewportMatch)("small","<"),{canUserUseUnfilteredHTML:b}=(0,Kte.useSelect)(k=>({canUserUseUnfilteredHTML:k(gp.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),_=!b&&(n.trim()||i.trim()),v=()=>{r(PD({html:s,css:b?c:"",js:b?d:""}))},w=()=>{v(),e()},x=()=>{f(k=>!k)};return(0,Rt.jsx)(Rt.Fragment,{children:(0,Rt.jsx)(bn.Modal,{title:(0,Gi.__)("Edit HTML"),onRequestClose:e,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!1,isFullScreen:m,__experimentalHideHeader:!0,children:(0,Rt.jsx)(fp,{orientation:"horizontal",defaultTabId:"html",children:(0,Rt.jsxs)(bn.__experimentalVStack,{expanded:!0,children:[(0,Rt.jsxs)(bn.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Rt.jsx)("div",{children:(0,Rt.jsxs)(fp.TabList,{children:[(0,Rt.jsx)(fp.Tab,{tabId:"html",children:"HTML"}),b&&(0,Rt.jsx)(fp.Tab,{tabId:"css",children:"CSS"}),b&&(0,Rt.jsx)(fp.Tab,{tabId:"js",children:(0,Gi.__)("JavaScript")})]})}),!h&&(0,Rt.jsx)("div",{children:(0,Rt.jsx)(bn.Button,{__next40pxDefaultSize:!0,icon:m?rN:fm,label:(0,Gi.__)("Enable/disable fullscreen"),onClick:x,variant:"tertiary"})})]}),_&&(0,Rt.jsx)(bn.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,Gi.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Rt.jsxs)(bn.Flex,{direction:h?"column":"row",className:"block-library-html__modal-tabs",align:"stretch",gap:8,children:[(0,Rt.jsxs)("div",{ref:g,className:"block-library-html__modal-content",children:[(0,Rt.jsx)(fp.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Rt.jsx)(gp.PlainText,{value:s,onChange:l,placeholder:(0,Gi.__)("Write HTML\u2026"),"aria-label":(0,Gi.__)("HTML"),className:"block-library-html__modal-editor"})}),b&&(0,Rt.jsx)(fp.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Rt.jsx)(gp.PlainText,{value:c,onChange:u,placeholder:(0,Gi.__)("Write CSS\u2026"),"aria-label":(0,Gi.__)("CSS"),className:"block-library-html__modal-editor"})}),b&&(0,Rt.jsx)(fp.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Rt.jsx)(gp.PlainText,{value:d,onChange:p,placeholder:(0,Gi.__)("Write JavaScript\u2026"),"aria-label":(0,Gi.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,Rt.jsx)("div",{className:"block-library-html__preview",children:(0,Rt.jsx)(qte,{content:PD({html:s,css:c,js:d})})})]}),(0,Rt.jsxs)(bn.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Rt.jsx)(bn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:e,children:(0,Gi.__)("Cancel")}),(0,Rt.jsx)(bn.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:w,children:(0,Gi.__)("Update")})]})]})})})})}var $n=a(y(),1),{InnerContent:y6e}=le(ci.privateApis);function Xte({clientId:e,attributes:t}){let[r,o]=(0,a7.useState)(!1),n=(0,k1.useRegistry)(),{updateBlock:i,replaceInnerBlocks:s}=(0,k1.useDispatch)(ci.store),l=(0,k1.useSelect)(d=>{let p=d(ci.store).getBlock(e);return p?(0,Tf.getBlockContent)(p):""},[e]),c=(0,ci.useBlockProps)({className:"block-library-html__edit"}),u=d=>{if(d===l)return;let[p]=(0,Tf.parse)(`<!-- wp:html -->
69 +${d}
70 +<!-- /wp:html -->`),m=p?.innerBlocks??[],f=n.select(ci.store).getBlocks(e),g=f.length===m.length&&f.every((h,b)=>(0,Tf.serialize)(h)===(0,Tf.serialize)(m[b]));n.batch(()=>{i(e,{innerContent:p?.innerContent??(d?[d]:[])}),g||s(e,m,!1)})};return(0,a7.useEffect)(()=>{t.content&&((0,Qte.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,$n.jsxs)("div",{...c,children:[(0,$n.jsx)(ci.BlockControls,{children:(0,$n.jsx)(Dl.ToolbarGroup,{children:(0,$n.jsx)(Dl.ToolbarButton,{onClick:()=>o(!0),children:(0,x1.__)("Edit code")})})}),(0,$n.jsx)(ci.InspectorControls,{children:(0,$n.jsx)(Dl.__experimentalVStack,{className:"block-library-html__edit-code",expanded:!0,children:(0,$n.jsx)(Dl.Button,{className:"block-library-html__edit-code-button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>o(!0),children:(0,x1.__)("Edit code")})})}),(0,$n.jsx)(y6e,{clientId:e}),r&&(0,$n.jsx)(BD,{onRequestClose:()=>o(!1),content:l,onUpdate:u})]}):(0,$n.jsxs)("div",{...c,children:[(0,$n.jsx)(Dl.Placeholder,{icon:(0,$n.jsx)(ci.BlockIcon,{icon:Wb}),label:(0,x1.__)("Custom HTML"),instructions:(0,x1.__)("Add custom HTML code and preview how it looks."),children:(0,$n.jsx)(Dl.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>o(!0),children:(0,x1.__)("Edit HTML")})}),r&&(0,$n.jsx)(BD,{onRequestClose:()=>o(!1),content:l,onUpdate:u})]})}var i7={$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 Jte(){return null}var s7=a(te(),1),ere=a(vl(),1),_6e={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>{let t=(0,ere.create)({html:e}).text,[r]=(0,s7.parse)(`<!-- wp:html -->
71 +${t}
72 +<!-- /wp:html -->`);return r??(0,s7.createBlock)("core/html",{},[],[t])}}]},tre=_6e;var{name:ore}=i7,nre={icon:IB,example:{innerContent:["<marquee>"+(0,rre.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"]},edit:Xte,save:Jte,transforms:tre},x6e=()=>D({name:ore,metadata:i7,settings:nre});var AD={};J(AD,{init:()=>B6e,metadata:()=>d7,name:()=>yre,settings:()=>vre});var qi=a(L(),1),Sa=a(F(),1);var yn=a(I(),1),pre=a(W(),1),C1=a(A(),1),mre=a(H(),1),fre=a(ae(),1);var u7=a(L(),1),w1=a(F(),1);var M2=a(W(),1),dre=a(_e(),1),MD=a(H(),1),LD=a(ae(),1);var ND=a(L(),1),ire=a(F(),1),sre=a(_e(),1),l7=a(W(),1),lre=a(ma(),1);var Pc=a(y(),1),are=20;function cre({icons:e,onChange:t,value:r}){let o=(0,sre.useAsyncList)(e,{step:are}),n=(0,l7.useRef)(),i=e?.findIndex(l=>l.name===r)??-1,s=i>=0&&(o.length>=i+are||o.length===e.length);return(0,l7.useLayoutEffect)(()=>{let l=n.current;!s||!l||(0,lre.getScrollContainer)(l)?.scrollTop||l.scrollIntoView({block:"center"})},[s]),(0,Pc.jsx)("div",{className:"wp-block-icon__inserter-grid",children:e?.length?(0,Pc.jsx)("div",{className:"wp-block-icon__inserter-grid-icons-list","aria-label":(0,ND.__)("Icon library"),children:o.map(l=>(0,Pc.jsxs)(ire.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,Pc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-icon",children:(0,Pc.jsx)(Eo,{html:l.content})}),(0,Pc.jsx)("span",{className:"wp-block-icon__inserter-grid-icons-list-item-title",children:l.label})]},l.name))}):(0,Pc.jsx)("div",{className:"wp-block-icon__inserter-grid-no-results",children:(0,Pc.jsx)("p",{children:(0,ND.__)("No results found.")})})})}var ure=a(I(),1);var{normalizeString:k6e,searchItems:w6e}=le(ure.privateApis);function c7(e=""){return k6e(e).trim()}function N2(e=[],t=""){return w6e(e,t,{fields:[{get:r=>r.title}]})}var $i=a(y(),1);function RD({onClose:e,value:t,onChange:r}){let[o,n]=(0,M2.useState)(""),[i,s]=(0,M2.useState)(null),l=(0,dre.useDebounce)(n,300),c=(0,MD.useSelect)(g=>g(LD.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,MD.useSelect)(g=>{if(d===null)return{icons:null,hasResolvedIcons:!1};let h=d===""?{}:{collection:d},{getEntityRecords:b,hasFinishedResolution:_}=g(LD.store);return{icons:b("root","icon",h),hasResolvedIcons:_("getEntityRecords",["root","icon",h])}},[d]),f=(0,M2.useMemo)(()=>{if(!p)return[];if(o){let g=c7(o);return p.filter(h=>{let b=c7(h.name),_=c7(h.label);return b.includes(g)||_.includes(g)})}return p},[o,p]);return(0,$i.jsx)(w1.Modal,{className:"wp-block-icon__inserter-modal",title:(0,u7.__)("Icon library"),onRequestClose:e,isFullScreen:!0,children:(0,$i.jsxs)(Rd.Root,{className:"wp-block-icon__inserter",orientation:"vertical",value:d,onValueChange:s,children:[(0,$i.jsxs)(Es,{direction:"column",gap:"lg",className:"wp-block-icon__inserter-sidebar",children:[(0,$i.jsx)(w1.SearchControl,{value:o,onChange:l}),(0,$i.jsxs)(Rd.List,{children:[(0,$i.jsx)(Rd.Tab,{value:"",children:(0,u7.__)("All")}),c?.map(g=>(0,$i.jsx)(Rd.Tab,{value:g.slug,children:g.label},g.slug))]})]}),[{slug:""},...c??[]].map(g=>(0,$i.jsx)(Rd.Panel,{tabIndex:-1,value:g.slug,className:"wp-block-icon__inserter-panel",children:m?(0,$i.jsx)(cre,{icons:f,onChange:r,value:t}):(0,$i.jsx)("div",{className:"wp-block-icon__inserter-loading",role:"status","aria-label":(0,u7.__)("Loading\u2026"),children:(0,$i.jsx)(w1.Spinner,{})})},g.slug))]})})}var Xt=a(y(),1),C6e=({className:e,style:t})=>(0,Xt.jsxs)(C1.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,Xt.jsx)(C1.Rect,{width:"60",height:"60",fill:"currentColor",fillOpacity:.1}),(0,Xt.jsx)(C1.Path,{vectorEffect:"non-scaling-stroke",stroke:"currentColor",strokeOpacity:.25,d:"M60 60 0 0"})]});function S6e({attributes:e,setAttributes:t}){let{icon:r,ariaLabel:o,flipHorizontal:n,flipVertical:i,rotation:s}=e,[l,c]=(0,pre.useState)(!1),u=(0,yn.useBlockEditingMode)()==="contentOnly",d=(0,yn.__experimentalUseColorProps)(e),p=(0,yn.__experimentalGetSpacingClassesAndStyles)({style:{spacing:{padding:e.style?.spacing?.padding}}}),m=(0,yn.__experimentalUseBorderProps)(e),f=(0,yn.getDimensionsClassesAndStyles)(e),h=(0,mre.useSelect)(k=>{let{getEntityRecord:C}=k(fre.store);return r?C("root","icon",r):null},[r])?.content||"",b={"is-flip-horizontal":n,"is-flip-vertical":i},_=s?{rotate:`${s}deg`}:{},v=(0,Xt.jsxs)(Xt.Fragment,{children:[r&&(0,Xt.jsxs)(yn.BlockControls,{group:"block",children:[(0,Xt.jsx)(Sa.ToolbarButton,{icon:sB,label:(0,qi.__)("Flip horizontal"),isPressed:n,onClick:()=>t({flipHorizontal:!n})}),(0,Xt.jsx)(Sa.ToolbarButton,{icon:cB,label:(0,qi.__)("Flip vertical"),isPressed:i,onClick:()=>t({flipVertical:!i})}),(0,Xt.jsx)(Sa.ToolbarButton,{icon:UI,label:(0,qi.__)("Rotate"),onClick:()=>t({rotation:((s||0)+90)%360})})]}),(0,Xt.jsxs)(yn.BlockControls,{group:"other",children:[(0,Xt.jsx)(Sa.ToolbarButton,{onClick:()=>{c(!0)},children:r?(0,qi.__)("Replace"):(0,qi.__)("Choose icon")}),u&&r&&(0,Xt.jsx)(Sa.DropdownMenu,{icon:"",toggleProps:{as:Sa.ToolbarButton},popoverProps:{className:"is-alternate"},text:(0,qi.__)("Label"),children:()=>(0,Xt.jsx)(Sa.TextControl,{className:"wp-block-icon__toolbar-content",label:(0,qi.__)("Label"),value:o||"",onChange:k=>t({ariaLabel:k}),help:(0,qi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons.")})})]})]}),w=ee(),x=r&&(0,Xt.jsx)(Xt.Fragment,{children:(0,Xt.jsx)(yn.InspectorControls,{group:"settings",children:(0,Xt.jsx)(Sa.__experimentalToolsPanel,{label:(0,qi.__)("Settings"),resetAll:()=>t({ariaLabel:void 0}),dropdownMenuProps:w,children:(0,Xt.jsx)(Sa.__experimentalToolsPanelItem,{label:(0,qi.__)("Label"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>t({ariaLabel:void 0}),children:(0,Xt.jsx)(Sa.TextControl,{label:(0,qi.__)("Label"),help:(0,qi.__)("Briefly describe the icon to help screen reader users. Leave blank for decorative icons."),value:o||"",onChange:k=>t({ariaLabel:k})})})})})});return(0,Xt.jsxs)(Xt.Fragment,{children:[v,x,(0,Xt.jsx)("div",{...(0,yn.useBlockProps)(),children:h?(0,Xt.jsx)(Eo,{html:h,wrapperProps:{className:T(d.className,m.className,p.className,f.className,b),style:{...d.style,...m.style,...p.style,...f.style,..._}}}):(0,Xt.jsx)(C6e,{className:T(m.className,p.className,f.className,b),style:{...m.style,...p.style,...f.style,..._,height:"auto"}})}),l&&(0,Xt.jsx)(RD,{onClose:()=>c(!1),value:e.icon,onChange:k=>{t({icon:k}),c(!1)}})]})}var gre=S6e;var d7={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 p7=a(F(),1),DD=a(y(),1),E6e=(0,DD.jsx)(p7.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,DD.jsx)(p7.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"})}),hre=E6e;var P6e=[{name:"default",isDefault:!0,attributes:{icon:"core/info"}}],bre=P6e;var{name:yre}=d7,vre={icon:hre,example:{attributes:{icon:"core/info",style:{dimensions:{width:"48px"}}}},variations:bre,edit:gre},B6e=()=>D({name:yre,metadata:d7,settings:vre});var jD={};J(jD,{init:()=>aSe,metadata:()=>y7,name:()=>Kre,settings:()=>Yre});var HD=a(L(),1);var tt=a(I(),1);var Fe=a(y(),1),I6e={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})]})}},N6e={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})]})}},M6e={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})]})}},L6e={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}),b=(0,Fe.jsx)("img",{src:t,alt:r,className:d?`wp-image-${d}`:null,width:c,height:u,title:f}),_=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:p,rel:g,children:b}):b,!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:_})}):(0,Fe.jsx)("figure",{...tt.useBlockProps.save({className:h}),children:_})}},R6e={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}),b=(0,Fe.jsx)("img",{src:t,alt:r,className:d?`wp-image-${d}`:null,width:c,height:u,title:f}),_=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:p,rel:g,children:b}):b,!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:_})}},D6e={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,b=s||void 0,_=(0,tt.__experimentalGetBorderClassesAndStyles)(e),v=T({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),w=T(_.className,{[`wp-image-${m}`]:!!m}),x=(0,Fe.jsx)("img",{src:t,alt:r,className:w||void 0,style:{..._.style,aspectRatio:d,objectFit:p},width:c,height:u,title:h}),k=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:b,children:x}):x,!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:v}),children:k})}},A6e={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,b=s||void 0,_=(0,tt.__experimentalGetBorderClassesAndStyles)(e),v=T({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),w=T(_.className,{[`wp-image-${m}`]:!!m}),x=(0,Fe.jsx)("img",{src:t,alt:r,className:w||void 0,style:{..._.style,aspectRatio:d,objectFit:p,width:c,height:u},width:c,height:u,title:h}),k=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:b,children:x}):x,!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:v}),children:k})}},O6e={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,b=s||void 0,_=(0,tt.__experimentalGetBorderClassesAndStyles)(e),v=T({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),w=T(_.className,{[`wp-image-${m}`]:!!m}),x=(0,Fe.jsx)("img",{src:t,alt:r,className:w||void 0,style:{..._.style,aspectRatio:d,objectFit:p,width:c,height:u},title:h}),k=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:f,rel:b,children:x}):x,!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:v}),children:k})}},F6e={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:b,metadata:{bindings:_={}}={}}=e,v=s||void 0,w=(0,tt.__experimentalGetBorderClassesAndStyles)(e),x=(0,tt.__experimentalGetShadowClassesAndStyles)(e),k=T({alignnone:n==="none",[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!w.className||w.style&&Object.keys(w.style).length>0}),C=T(w.className,{[`wp-image-${f}`]:!!f}),S=(0,Fe.jsx)("img",{src:t,alt:r,className:C||void 0,style:{...w.style,...x.style,aspectRatio:d,objectFit:p,objectPosition:m&&p?vf(m):void 0,width:c,height:u},title:b}),P=!tt.RichText.isEmpty(o)||_.caption||_?.__default?.source==="core/pattern-overrides",B=(0,Fe.jsxs)(Fe.Fragment,{children:[i?(0,Fe.jsx)("a",{className:l,href:i,target:g,rel:v,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:k}),children:B})}},_re=[F6e,O6e,A6e,D6e,R6e,L6e,M6e,N6e,I6e];var E1=a(Ur(),1),L2=a(te(),1),Ore=a(F(),1),Ef=a(H(),1),Ta=a(I(),1),hp=a(W(),1),Ic=a(L(),1);var Fre=a(br(),1),Vre=a(_e(),1),b7=a(qt(),1),zre=a(kre(),1);var Ue=a(F(),1),T1=a(_e(),1),Bc=a(H(),1),zt=a(I(),1),kr=a(W(),1),Re=a(L(),1),FD=a(qt(),1),S1=a(te(),1);var Ire=a(br(),1),h7=a(ae(),1);var m7=a(ae(),1),f7=a(I(),1),Tre=a(ma(),1),g7=a(H(),1),Zi=a(W(),1);function wre(e){return typeof e!="string"||!(0,Tre.__unstableStripHTML)(e).trim()?"":e.replace(/\n/g,"<br>")}function V6e(e){let t=e?.caption;if(typeof t=="string")return wre(t);if(t&&typeof t=="object"&&Object.hasOwn(t,"raw"))return wre(t.raw)}function OD(e){return{alt:typeof e?.alt_text=="string"?e.alt_text:e?.alt||"",caption:V6e(e)}}function Cre(e){return e||""}function z6e(e,t,r){if(!t||!r)return{};let o=OD(t),n=OD(r),i={},s=Cre(e.alt);o.alt!==n.alt&&(s===o.alt||!s)&&(i.alt=n.alt);let l=Cre(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 H6e(e,t){let r=t.media_details?.sizes;if(!e||e===ap||!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:ap}:void 0}function j6e(e,t){if(e===rp)return t.source_url?{href:t.source_url}:void 0;if(e===op)return t.link?{href:t.link}:void 0}function U6e(e,t){if(t)return{...H6e(e.sizeSlug,t),...j6e(e.linkDestination,t)}}var{openMediaEditorModalKey:W6e}=le(f7.privateApis);function G6e({alt:e,caption:t}){let r={};return e||(r.alt_text=""),t?.toString()||(r.caption=""),Object.keys(r).length?r:void 0}function Sre(e){if(!e)return!1;let t=typeof e.alt_text=="string"||typeof e.alt=="string",r=OD(e).caption!==void 0;return t&&r}function Ere({attributes:e,setAttributes:t,onClose:r,onUrlChange:o}){let{id:n,url:i,alt:s,caption:l,sizeSlug:c,linkDestination:u}=e,d=(0,g7.useRegistry)(),p=(0,g7.useSelect)(k=>k(f7.store).getSettings()[W6e],[]),m=(0,Zi.useRef)({id:n,url:i,alt:s,caption:l?.toString(),sizeSlug:c,linkDestination:u}),f=(0,Zi.useRef)(),g=(0,Zi.useRef)(0),h=(0,Zi.useRef)();(0,Zi.useEffect)(()=>{m.current={id:n,url:i,alt:s,caption:l?.toString(),sizeSlug:c,linkDestination:u}},[s,l,n,u,c,i]);let b=(0,Zi.useCallback)(k=>d.select(m7.store).getEditedEntityRecord("postType","attachment",k),[d]),_=(0,Zi.useCallback)(async k=>{let C=d.resolveSelect(m7.store);try{return await C.getEntityRecord("postType","attachment",k)}catch{return}},[d]),v=(0,Zi.useCallback)(async k=>{let{invalidateResolution:C}=d.dispatch(m7.store);return C("getEntityRecord",["postType","attachment",k]),_(k)},[d,_]),w=(0,Zi.useCallback)(async({id:k,url:C})=>{if(typeof k!="number")return;let S=f.current;f.current=void 0;let P=h.current;h.current=void 0;let B=++g.current,N={},E=m.current,M=k!==E.id;if(M&&(N.id=k,N.url=C??E.url,N.url!==E.url&&o?.(N.url),m.current={...m.current,id:N.id,url:N.url}),S||M){let R=await v(k);if(B!==g.current)return;let O=R??b(k),j=m.current;if(S){let V=z6e(j,S,O);Object.keys(V).length&&(Object.assign(N,V),M&&(h.current={id:E.id,attributes:Object.fromEntries(Object.keys(V).map(G=>[G,j[G]]))}))}if(M){let V=U6e(j,O);V&&(Object.assign(N,V),V.url&&V.url!==j.url&&o?.(V.url))}}P?.id===k&&Object.assign(N,P.attributes),Object.keys(N).length&&(m.current={...m.current,...N},t(N))},[b,o,v,t]),x=(0,Zi.useCallback)(async()=>{if(!n||!p)return;h.current=void 0;let k=b(n),C=G6e(m.current),S=Sre(k)?void 0:await _(n);f.current=S||(Sre(k)?k:C)||k,p({id:n,onUpdate:w,onClose:r})},[b,w,n,r,p,_]);return n&&p?x:void 0}var ue=a(y(),1),{DimensionsTool:Pre,ResolutionTool:$6e,mediaEditKey:q6e,mediaSideloadFromUrlKey:Bre}=le(zt.privateApis),Z6e=[{value:"cover",label:(0,Re._x)("Cover","Scale option for dimensions control"),help:(0,Re.__)("Image covers the space evenly.")},{value:"contain",label:(0,Re._x)("Contain","Scale option for dimensions control"),help:(0,Re.__)("Image is contained without distortion.")}],K6e={placement:"bottom-start"},Y6e=({href:e,children:t})=>e?(0,ue.jsx)("a",{href:e,onClick:r=>r.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function Q6e({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,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ue.ToolbarItem,{ref:l,children:m=>(0,ue.jsx)(Ue.DropdownMenu,{icon:jb,label:(0,Re.__)("More"),toggleProps:{...m,description:(0,Re.__)("Displays more controls.")},popoverProps:K6e,children:({onClose:f})=>(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ue.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Re._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ue.jsx)(Ue.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Re.__)("Title text")})]})})}),c&&(0,ue.jsx)(Ue.Popover,{placement:"bottom-start",anchor:s,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Ue.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Re.__)("Alternative text"),value:e.alt||"",onChange:m=>t({alt:m}),disabled:r,help:r?(0,ue.jsx)(ue.Fragment,{children:o}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)(Ue.ExternalLink,{href:(0,Re.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Re.__)("Describe the purpose of the image.")}),(0,ue.jsx)("br",{}),(0,Re.__)("Leave empty if decorative.")]})})})}),d&&(0,ue.jsx)(Ue.Popover,{placement:"bottom-start",anchor:s,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,ue.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ue.jsx)(Ue.TextControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Re.__)("Title attribute"),value:e.title||"",onChange:m=>t({title:m}),disabled:n,help:n?(0,ue.jsx)(ue.Fragment,{children:i}):(0,kr.createInterpolateElement)((0,Re.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ue.jsx)(Ue.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})})]})}function Nre({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:b,align:_,id:v,href:w,rel:x,linkClass:k,linkDestination:C,title:S,width:P,height:B,aspectRatio:N,scale:E,focalPoint:M,linkTarget:R,sizeSlug:O,lightbox:j,metadata:V,isDecorative:G}=r,[$,z]=(0,kr.useState)(),[K,q]=(0,kr.useState)(null),[Y,oe]=(0,kr.useState)({}),[Z,U]=(0,kr.useState)(0),X=(0,T1.useResizeObserver)(([ke])=>{if(!K){let[Vt]=ke.borderBoxSize;oe({width:Vt.inlineSize,height:Vt.blockSize})}U(ke.target.offsetTop)}),Q=(0,kr.useCallback)(()=>{U($?.offsetTop??0)},[$]),ie=(0,T1.useMergeRefs)([z,X]),{allowResize:me=!0,imageCrop:xe=!1}=d,Be=xe&&f==="flex",{image:se,attachmentResolutionError:he}=(0,Bc.useSelect)(ke=>{let Vt=v&&n?ke(h7.store).getEntityRecord("postType","attachment",v,{context:"view"}):null,Wa=v&&n?ke(h7.store).getResolutionError("getEntityRecord",["postType","attachment",v,{context:"view"}]):null;return{image:Vt,attachmentResolutionError:Wa}},[v,n]),{canInsertCover:ze,imageEditing:qe,imageSizes:ce,maxWidth:ge,editMediaEntity:Qe}=(0,Bc.useSelect)(ke=>{let{getBlockRootClientId:Vt,canInsertBlockType:Wa,getSettings:Ga}=ke(zt.store),Cb=Vt(p),gd=Ga();return{imageEditing:gd.imageEditing,imageSizes:gd.imageSizes,maxWidth:gd.maxWidth,editMediaEntity:gd?.[q6e],canInsertCover:Wa("core/cover",Cb)}},[p]),{getBlock:ye,getSettings:fe}=(0,Bc.useSelect)(zt.store),de=(0,kr.useRef)(),[re,Pe]=(0,kr.useState)(),Se=!!re,rr=(0,kr.useCallback)(()=>de.current?.focus(),[]),Ft=Ere({attributes:r,setAttributes:o,onClose:rr,onUrlChange:Pe}),{replaceBlocks:gr,toggleSelection:Wo,__unstableMarkNextChangeAsNotPersistent:Nn}=(0,Bc.useDispatch)(zt.store),{createErrorNotice:So,createSuccessNotice:sa}=(0,Bc.useDispatch)(Ire.store),{editEntityRecord:la}=(0,Bc.useDispatch)(h7.store),Mn=(0,T1.useViewportMatch)("medium"),ca=["wide","full"].includes(_),[{loadedNaturalWidth:md,loadedNaturalHeight:pu},za]=(0,kr.useState)({}),[Ha,il]=(0,kr.useState)(!1),ja=m==="default",sl=m==="contentOnly",bs=me&&ja,fd=me&&ja&&!ca&&Mn,ua=!!e||t,Ln=ce.filter(({slug:ke})=>se?.media_details?.sizes?.[ke]?.source_url).map(({name:ke,slug:Vt})=>({value:Vt,label:ke}));(0,kr.useEffect)(()=>{!v||!n||he?.status===404&&(Nn(),o({id:void 0}))},[v,n,he,o,Nn]);let wi=n&&VD(v,h)&&!!fe()[Bre],{naturalWidth:Rn,naturalHeight:ne}=(0,kr.useMemo)(()=>({naturalWidth:$?.naturalWidth||md||void 0,naturalHeight:$?.naturalHeight||pu||void 0}),[md,pu,$?.complete]);(0,kr.useEffect)(()=>{re&&re===h&&$?.complete&&Pe(void 0)},[re,h,$]);function He(){Pe(void 0),il(!0);let ke=Od({attributes:{url:h}});ke!==void 0&&s&&s(ke)}function bt(ke){Pe(void 0),il(!1),za({loadedNaturalWidth:ke.target?.naturalWidth,loadedNaturalHeight:ke.target?.naturalHeight})}function pe(ke){o(ke)}function ve(ke){ke&&!Si?.enabled?o({lightbox:{enabled:!0},isDecorative:!1}):!ke&&Si?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Ye(){Si?.enabled&&Si?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function dt(ke){o({title:ke})}function $t(ke){o({alt:ke})}function nt(ke){o({isDecorative:ke||void 0,...ke&&{alt:"",caption:void 0,href:void 0,linkDestination:void 0,linkTarget:void 0,rel:void 0}})}let Ir=ke=>{$&&$.style.setProperty("object-position",vf(ke))};function Ua(ke){let Vt=se?.media_details?.sizes?.[ke]?.source_url;if(!Vt)return null;o({url:Vt,sizeSlug:ke})}function Ci(){let ke=fe()[Bre];ke&&ke({url:h,onSuccess(Vt){l(Vt),sa((0,Re.__)("Image uploaded."),{type:"snackbar"})},onError(Vt){So(Vt,{type:"snackbar"})}})}let rm=n&&(v&&Rn&&ne&&qe&&!!Qe)&&!!Ft&&!sl&&!ua;function BE(){gr(p,(0,S1.switchToBlockType)(ye(p),"core/cover"))}let IE=(0,Ue.__experimentalUseCustomUnits)({availableUnits:["px"]}),[Si]=(0,zt.useSettings)("lightbox"),Bk=!!j&&j?.enabled!==Si?.enabled||Si?.allowEditing,Ik=!!j?.enabled||!j&&!!Si?.enabled,Nk=ee(),{selectedStyleState:rc,hasSelectedStyleState:ys}=(0,Bc.useSelect)(ke=>{if(!n)return{selectedStyleState:void 0,hasSelectedStyleState:!1};let{getSelectedBlockStyleState:Vt,hasSelectedBlockStyleState:Wa}=ke(zt.store);return{selectedStyleState:Vt(p),hasSelectedStyleState:Wa(p)}},[p,n]),om=Zh(rc),Lg=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"width"}),NE=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"height"}),pr=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"aspectRatio"}),cl=Oi({attributes:r,selectedState:rc,hasSelectedStyleState:ys,attributeKey:"scale",styleKey:"objectFit"}),oc=ke=>{o(Kh({style:r.style,selectedState:rc,hasSelectedStyleState:ys,nextDimensions:ke,dimensionKeyMap:{scale:"objectFit"}}))},nm=bs&&(iD.includes(f)?(0,ue.jsx)(Pre,{panelId:p,value:{aspectRatio:pr,scale:cl},onChange:({aspectRatio:ke})=>{oc({aspectRatio:ke,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]},om):(0,ue.jsx)(Pre,{panelId:p,value:{width:Lg,height:NE,scale:cl,aspectRatio:pr},onChange:({width:ke,height:Vt,scale:Wa,aspectRatio:Ga})=>{oc({width:!ke&&Vt?"auto":ke,height:Vt,aspectRatio:Ga,scale:Wa})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Z6e,unitsOptions:IE,tools:ca?["aspectRatio","scale"]:["aspectRatio","widthHeight","scale"]},om)),xH=()=>{o({lightbox:void 0}),Ua(ap)},Rg=V?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:ME=!1,lockHrefControls:f_e=!1,lockAltControls:Mk=!1,lockAltControlsMessage:kH,lockTitleControls:LE=!1,lockTitleControlsMessage:wH,hideCaptionControls:g_e=!1}=(0,Bc.useSelect)(ke=>{if(!n)return{};let{url:Vt,alt:Wa,title:Ga,caption:Cb}=V?.bindings||{},gd=!!d["pattern/overrides"],RE=(0,S1.getBlockBindingsSource)(Vt?.source),Dg=(0,S1.getBlockBindingsSource)(Wa?.source),hd=(0,S1.getBlockBindingsSource)(Ga?.source);return{lockUrlControls:!!Vt&&!RE?.canUserEditValue?.({select:ke,context:d,args:Vt?.args}),lockHrefControls:gd||Rg,hideCaptionControls:!!Cb,lockAltControls:!!Wa&&!Dg?.canUserEditValue?.({select:ke,context:d,args:Wa?.args}),lockAltControlsMessage:Dg?.label?(0,Re.sprintf)((0,Re.__)("Connected to %s"),Dg.label):(0,Re.__)("Connected to dynamic data"),lockTitleControls:!!Ga&&!hd?.canUserEditValue?.({select:ke,context:d,args:Ga?.args}),lockTitleControlsMessage:hd?.label?(0,Re.sprintf)((0,Re.__)("Connected to %s"),hd.label):(0,Re.__)("Connected to dynamic data")}},[Rg,d,n,V?.bindings]),CH=n&&!f_e&&!ME&&!G,SH=n&&ze&&!sl,h_e=CH||rm||SH,TH=n&&!ME&&(0,ue.jsx)(ue.Fragment,{children:(0,ue.jsx)(zt.BlockControls,{group:sl?"inline":"other",children:(0,ue.jsx)(zt.MediaReplaceFlow,{mediaId:v,mediaURL:h,allowedTypes:np,onSelect:l,onSelectURL:c,onError:u,name:h?(0,Re.__)("Replace"):(0,Re.__)("Add image"),onReset:()=>l(void 0),variant:"toolbar"})})}),EH=(0,ue.jsxs)(ue.Fragment,{children:[h_e&&(0,ue.jsxs)(zt.BlockControls,{group:"block",children:[CH&&(0,ue.jsx)(zt.__experimentalImageURLInputUI,{url:w||"",onChangeUrl:pe,linkDestination:C,mediaUrl:se&&se.source_url||h,mediaLink:se&&se.link,linkTarget:R,linkClass:k,rel:x,showLightboxSetting:Bk,lightboxEnabled:Ik,onSetLightbox:ve,resetLightbox:Ye}),rm&&(0,ue.jsx)(Ue.ToolbarButton,{ref:de,onClick:Ft,"aria-haspopup":"dialog",icon:pm,label:(0,Re.__)("Edit image"),disabled:Se}),SH&&(0,ue.jsx)(Ue.ToolbarButton,{icon:XB,label:(0,Re.__)("Add text over image"),onClick:BE})]}),wi&&(0,ue.jsx)(zt.BlockControls,{children:(0,ue.jsx)(Ue.ToolbarGroup,{children:(0,ue.jsx)(Ue.ToolbarButton,{onClick:Ci,icon:vu,label:(0,Re.__)("Upload to Media Library")})})}),sl&&(0,ue.jsx)(zt.BlockControls,{group:"block",children:(0,ue.jsx)(Q6e,{attributes:r,setAttributes:o,lockAltControls:Mk,lockAltControlsMessage:kH,lockTitleControls:LE,lockTitleControlsMessage:wH})}),n&&(0,ue.jsx)(zt.InspectorControls,{group:"content",children:(0,ue.jsxs)(Ue.__experimentalToolsPanel,{label:(0,Re.__)("Media"),resetAll:()=>{l(void 0),o({isDecorative:!1})},dropdownMenuProps:Nk,children:[!ME&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Image"),hasValue:()=>!!h,onDeselect:()=>l(void 0),isShownByDefault:!0,children:(0,ue.jsx)(Zd,{mediaId:v,mediaUrl:h,alt:b,filename:se?.media_details?.sizes?.full?.file||se?.slug||(0,FD.getFilename)(h),allowedTypes:np,onSelect:l,onSelectURL:c,onError:u,onReset:()=>l(void 0),isUploading:ua,emptyLabel:(0,Re.__)("Add image")})}),!G&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>o({alt:void 0}),children:(0,ue.jsx)(Ue.TextareaControl,{label:(0,Re.__)("Alternative text"),value:b||"",onChange:$t,readOnly:Mk,help:Mk?(0,ue.jsx)(ue.Fragment,{children:kH}):(0,ue.jsx)(Ue.ExternalLink,{href:(0,Re.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Re.__)("Describe the purpose of the image.")})})}),!Mk&&!Ik&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Mark as decorative"),isShownByDefault:!0,hasValue:()=>!!G,onDeselect:()=>o({isDecorative:!1}),children:(0,ue.jsx)(Ue.CheckboxControl,{label:(0,Re.__)("Mark as decorative"),checked:!!G,onChange:nt,help:(0,Re.__)("Hidden from assistive technologies.")})})]})}),(0,ue.jsxs)(zt.InspectorControls,{group:"dimensions",resetAllFilter:ke=>Yh({attributes:ke,selectedState:rc,hasSelectedStyleState:ys,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,width:void 0,height:void 0,scale:void 0,focalPoint:void 0}}),children:[nm,!ys&&h&&E&&(0,ue.jsx)(Ue.__experimentalToolsPanelItem,{label:(0,Re.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!M,onDeselect:()=>o({focalPoint:void 0}),panelId:p,children:(0,ue.jsx)(Ue.FocalPointPicker,{label:(0,Re.__)("Focal point"),url:h,value:M,onDragStart:Ir,onDrag:Ir,onChange:ke=>o({focalPoint:ke})})})]}),!!Ln.length&&(0,ue.jsx)(zt.InspectorControls,{children:(0,ue.jsx)(Ue.__experimentalToolsPanel,{label:(0,Re.__)("Settings"),resetAll:xH,dropdownMenuProps:Nk,children:(0,ue.jsx)($6e,{value:O,defaultValue:ap,onChange:Ua,options:Ln})})}),(0,ue.jsx)(zt.InspectorControls,{group:"advanced",children:(0,ue.jsx)(Ue.TextControl,{label:(0,Re.__)("Title attribute"),value:S||"",onChange:dt,readOnly:LE,help:LE?(0,ue.jsx)(ue.Fragment,{children:wH}):(0,kr.createInterpolateElement)((0,Re.__)("Describe the role of this image on the page. <a>(Note: many devices and browsers do not display this text.)</a>"),{a:(0,ue.jsx)(Ue.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"})})})})]}),Lk=(0,FD.getFilename)(h),wb;G?wb=Lk?(0,Re.sprintf)((0,Re.__)("This image has been marked as decorative; its file name is %s"),Lk):(0,Re.__)("This image has been marked as decorative."):b?wb=b:Lk?wb=(0,Re.sprintf)((0,Re.__)("This image has an empty alt attribute; its file name is %s"),Lk):wb=(0,Re.__)("This image has an empty alt attribute");let PH=(0,zt.__experimentalUseBorderProps)(r),b_e=(0,zt.__experimentalGetShadowClassesAndStyles)(r),{postType:y_e,postId:BH,queryId:v_e}=d,__e=Number.isFinite(v_e),x_e=(0,ue.jsx)(Y6e,{href:w,children:e&&Ha?(0,ue.jsx)(Ue.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ue.jsx)(Ue.Spinner,{})}):(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("img",{src:e||h,alt:wb,onError:He,onLoad:bt,ref:ie,className:T(PH.className,{"is-swapping-media":Se}),width:Rn,height:ne,style:{aspectRatio:N,...K?{width:Y.width+K.width,height:Y.height+K.height}:(()=>{let ke={};return P==="auto"?ke.width="auto":P!=null&&(ke.width=typeof P=="number"?`${P}px`:P),B==="auto"?ke.height="auto":B!=null?ke.height=typeof B=="number"?`${B}px`:B:Be||(ke.height="auto"),ke})(),objectFit:E,objectPosition:M&&E?vf(M):void 0,...PH.style,...b_e.style}}),(ua||Se)&&(0,ue.jsx)(Ue.Spinner,{})]})}),IH;if(fd&&n&&!ua&&!iD.includes(f)){let ke=N&&KJ(N),Vt=Y.width/Y.height,Wa=Rn/ne,Ga=ke||Vt||Wa||1,Cb=Rn<ne?Tc:Tc*Ga,gd=ne<Rn?Tc:Tc/Ga,RE=ge*2.5,Dg=g||RE,hd=!1,Rk=!1;_==="center"?(hd=!0,Rk=!0):(0,Re.isRTL)()?_==="left"?hd=!0:Rk=!0:_==="right"?Rk=!0:hd=!0,IH=(0,ue.jsx)(Ue.ResizableBox,{ref:Q,style:{position:"absolute",inset:`${Z}px 0 0 0`},size:Y,minWidth:Cb,maxWidth:Dg,minHeight:gd,maxHeight:Dg/Ga,lockAspectRatio:Ga,enable:{top:!1,right:hd,bottom:!0,left:Rk},onResizeStart:()=>{Wo(!1)},onResize:(w_e,C_e,DE,Dk)=>{q(Dk)},onResizeStop:(w_e,C_e,DE,Dk)=>{if(Wo(!0),q(null),oe(NH=>({width:NH.width+Dk.width,height:NH.height+Dk.height})),g&&Rn>=g&&Math.abs(DE.offsetWidth-g)<10){o({width:void 0,height:void 0});return}o({width:`${DE.offsetWidth}px`,height:"auto",aspectRatio:Ga===Wa?void 0:String(Ga)})},resizeRatio:_==="center"?2:1})}if(!h&&!e)return(0,ue.jsxs)(ue.Fragment,{children:[TH,EH]});let k_e=()=>{la("postType",y_e,BH,{featured_media:v}),sa((0,Re.__)("Post featured image updated."),{type:"snackbar"})};return(0,ue.jsxs)(ue.Fragment,{children:[TH,EH,!__e&&BH&&v?(0,ue.jsx)(zt.BlockSettingsMenuControls,{children:({canEdit:ke,selectedClientIds:Vt})=>ke&&Vt.length===1&&p===Vt[0]&&(0,ue.jsx)(Ue.MenuItem,{onClick:k_e,children:(0,Re.__)("Set as featured image")})}):null,x_e,IH,!G&&(0,ue.jsx)(Zo,{attributes:r,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,Re.__)("Image caption text"),showToolbarButton:n&&(ja||sl)&&!g_e})]})}var Mre=a(W(),1),Lre=a(_e(),1),Rre=a(y(),1);function Dre(){let[e,{width:t}]=(0,Lre.useResizeObserver)(),r=(0,Mre.useRef)();return[(0,Rre.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 Al=a(y(),1),X6e=(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},VD=(e,t)=>t&&!e&&!(0,E1.isBlobURL)(t);function Are(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function J6e({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:b,align:_,metadata:v}=e,[w,x]=(0,hp.useState)(e.blob),k=(0,hp.useRef)(),C=c?.type||c?.default?.type,S=!C||C!=="flex"&&C!=="grid",[P,B]=Dre(),[N,{width:E}]=(0,Vre.useResizeObserver)(),M=E&&E<160,R=(0,hp.useRef)();(0,hp.useEffect)(()=>{R.current=d},[d]);let{__unstableMarkNextChangeAsNotPersistent:O,replaceBlock:j}=(0,Ef.useDispatch)(Ta.store);(0,hp.useEffect)(()=>{["wide","full"].includes(_)&&(O(),t({width:void 0,height:void 0}))},[O,_,t]);let{getSettings:V,getBlockRootClientId:G,getBlockName:$,canInsertBlockType:z}=(0,Ef.useSelect)(Ta.store),K=(0,Ta.useBlockEditingMode)(),{createErrorNotice:q}=(0,Ef.useDispatch)(Fre.store);function Y(ye){q(ye,{type:"snackbar",explicitDismiss:!0}),x(),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function oe(ye){ye.length===1&&x((0,E1.createBlobURL)(ye[0]))}function Z(ye){let fe=k.current?.ownerDocument.defaultView;if(ye.every(de=>de instanceof fe.File)){let de=ye,re=G(l);de.some(Se=>!sD(Se))&&q((0,Ic.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Pe=de.filter(Se=>sD(Se)).map(Se=>(0,L2.createBlock)("core/image",{blob:(0,E1.createBlobURL)(Se)}));if($(re)==="core/gallery")j(l,Pe);else if(z("core/gallery",re)){let Se=(0,L2.createBlock)("core/gallery",{},Pe);j(l,Se)}}}function U(ye){if(Array.isArray(ye)){Z(ye);return}if(!ye||!ye.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),x();return}if((0,E1.isBlobURL)(ye.url)){x(ye.url);return}let{imageDefaultSize:fe}=V(),de=ap;g&&Are(ye,g)?de=g:Are(ye,fe)&&(de=fe);let re=X6e(ye,de);if(typeof re.caption=="string"&&re.caption.includes(`
73 +`)&&(re.caption=re.caption.replace(/\n/g,"<br>")),R.current&&!re.caption){let{caption:Ft,...gr}=re;re=gr}let Pe;(!ye.id||ye.id!==p)&&(Pe={sizeSlug:de});let Se=e.linkDestination;if(!Se)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||yf){case"file":case rp:Se=rp;break;case"post":case op:Se=op;break;case aD:Se=aD;break;case yf:Se=yf;break}let rr;switch(Se){case rp:rr=ye.url;break;case op:rr=ye.link;break}re.href=rr,t({blob:void 0,...re,...Pe,linkDestination:Se}),x()}function X(ye){let fe=(0,b7.getProtocol)(ye)?ye:(0,b7.prependHTTPS)(ye);fe!==u&&(t({blob:void 0,url:fe,id:void 0,sizeSlug:V().imageDefaultSize}),x())}ic({url:w,allowedTypes:np,onChange:U,onError:Y});let ie=VD(p,u)?u:void 0,me=(0,Ef.useSelect)(ye=>!window.__clientSideMediaProcessing||!p?!1:ye(zre.store).isUploadingById(p),[p]),xe=!!u&&(0,Al.jsx)("img",{alt:(0,Ic.__)("Edit image"),title:(0,Ic.__)("Edit image"),className:"edit-image-preview",src:u}),Be=(0,Ta.__experimentalUseBorderProps)(e),se=(0,Ta.__experimentalGetShadowClassesAndStyles)(e),he=T(o,{"is-transient":!!w||me,"is-resized":!!m||!!f,[`size-${g}`]:g,"has-custom-border":!!Be.className||Be.style&&Object.keys(Be.style).length>0}),ze=(0,Ta.useBlockProps)({ref:k,className:he}),{lockUrlControls:qe=!1,lockUrlControlsMessage:ce}=(0,Ef.useSelect)(ye=>{if(!r)return{};let fe=(0,L2.getBlockBindingsSource)(v?.bindings?.url?.source);return{lockUrlControls:!!v?.bindings?.url&&!fe?.canUserEditValue?.({select:ye,context:s,args:v?.bindings?.url?.args}),lockUrlControlsMessage:fe?.label?(0,Ic.sprintf)((0,Ic.__)("Connected to %s"),fe.label):(0,Ic.__)("Connected to dynamic data")}},[s,r,v?.bindings?.url]),ge=f==="auto"?void 0:f;return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsxs)("figure",{...ze,children:[(0,Al.jsx)(Nre,{temporaryURL:w,isSideloading:me,attributes:e,setAttributes:t,isSingleSelected:r,insertBlocksAfter:n,onReplace:i,onSelectImage:U,onSelectURL:X,onUploadError:Y,context:s,clientId:l,blockEditingMode:K,parentLayoutType:C,maxContentWidth:B}),(0,Al.jsx)(Ta.MediaPlaceholder,{icon:(0,Al.jsx)(Ta.BlockIcon,{icon:Sd}),onSelect:U,onSelectURL:X,onFilesPreUpload:oe,onError:Y,placeholder:ye=>(0,Al.jsxs)(Ore.Placeholder,{className:T("block-editor-media-placeholder",{[Be.className]:!!Be.className&&!r}),icon:!M&&(qe?sI:Sd),withIllustration:!r||M,label:!M&&(0,Ic.__)("Image"),instructions:!qe&&!M&&(0,Ic.__)("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:b,...Be.style,...se.style},children:[qe&&!M&&ce,!qe&&!M&&ye,N]}),allowedTypes:np,handleUpload:ye=>ye.length===1,value:{id:p,src:ie},mediaPreview:xe,disableMediaButtons:w||u})]}),r&&S&&P]})}var Hre=J6e;var y7={$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 Ol=a(I(),1);var Au=a(y(),1);function jre({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:b,isDecorative:_,metadata:{bindings:v={}}={}}=e,w=s||void 0,x=(0,Ol.__experimentalGetBorderClassesAndStyles)(e),k=(0,Ol.__experimentalGetShadowClassesAndStyles)(e),C=T({alignnone:n==="none",[`size-${h}`]:h,"is-resized":c||u,"has-custom-border":!!x.className||x.style&&Object.keys(x.style).length>0}),S=T(x.className,{[`wp-image-${f}`]:!!f}),P=(0,Au.jsx)("img",{src:t,alt:r,className:S||void 0,style:(()=>{let E={...x.style,...k.style,aspectRatio:d,objectFit:p,objectPosition:m&&p?vf(m):void 0};return(c!==void 0||u!==void 0)&&(c==="auto"?E.width="auto":c!=null&&(E.width=typeof c=="number"?`${c}px`:c),u==="auto"||u===void 0||u===null?E.height="auto":E.height=typeof u=="number"?`${u}px`:u),E})(),title:b,role:_?"none":void 0}),B=!Ol.RichText.isEmpty(o)||v.caption||v?.__default?.source==="core/pattern-overrides",N=(0,Au.jsxs)(Au.Fragment,{children:[i?(0,Au.jsx)("a",{className:l,href:i,target:g,rel:w,children:P}):P,B&&(0,Au.jsx)(Ol.RichText.Content,{className:(0,Ol.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]});return(0,Au.jsx)("figure",{...Ol.useBlockProps.save({className:C}),children:N})}var v7=a(Ur(),1),P1=a(te(),1),$re=a(H(),1),qre=a(ae(),1);function tSe(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 Ure(e,t){if(!e||!t?.split(/[?#]/)[0]?.toLowerCase().endsWith(".gif"))return null;let o=(0,$re.select)(qre.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 rSe(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 zD(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 Wre={img:{attributes:["src","alt","title","width","height"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}};function Gre(e){return e&&/^\d+$/.test(e)?`${e}px`:void 0}var oSe=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...Wre,a:{attributes:["href","rel","target"],classes:["*"],children:Wre},figcaption:{children:e}}}}),nSe={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:oSe,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=Gre(t.getAttribute("width")),g=Gre(t.getAttribute("height")),h=parseInt(f,10),b=parseInt(g,10),_=h&&b?String(h/b):void 0,v=f||(g?"auto":void 0),w=f?"auto":g,x=(0,P1.getBlockAttributes)("core/image",e.outerHTML,{align:i,id:l,linkDestination:u,href:d,rel:p,linkClass:m,anchor:n,width:v,height:w,aspectRatio:_});return(0,v7.isBlobURL)(x.url)&&(x.blob=x.url,delete x.url),(0,P1.createBlock)("core/image",x)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(r=>(0,P1.createBlock)("core/image",{blob:(0,v7.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:rSe},href:{shortcode:(e,{shortcode:t})=>zD(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>zD(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>zD(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})=>!!Ure(e,t),transform(e){let{id:t,url:r,caption:o}=e,n=Ure(t,r);return(0,P1.createBlock)("core/video",{...tSe(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})}}]},Zre=nSe;var{name:Kre}=y7,Yre={icon:Sd,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,HD.__)("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,HD.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:Zre,edit:Hre,save:jre,deprecated:_re},aSe=()=>D({name:Kre,metadata:y7,settings:Yre});var UD={};J(UD,{init:()=>uSe,metadata:()=>_7,name:()=>toe,settings:()=>roe});var _7={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},shadow:!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 x7=a(I(),1),Zn=a(F(),1),qn=a(L(),1),Qre=a(bd(),1),Xre=a(_e(),1);var go=a(y(),1),sSe=1,lSe=100;function Jre({attributes:e,setAttributes:t,name:r}){let{commentsToShow:o,displayAvatar:n,displayDate:i,displayContent:s}=e,l=ee(),{content:c,status:u,error:d}=(0,Qre.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r,urlQueryArgs:{_locale:"site"}}),p=(0,Xre.useDisabled)(),m=(0,x7.useBlockProps)({ref:p});return(0,go.jsxs)(go.Fragment,{children:[(0,go.jsx)(x7.InspectorControls,{children:(0,go.jsxs)(Zn.__experimentalToolsPanel,{label:(0,qn.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:l,children:[(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,qn.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,go.jsx)(Zn.ToggleControl,{label:(0,qn.__)("Display avatar"),checked:n,onChange:()=>t({displayAvatar:!n})})}),(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,qn.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,go.jsx)(Zn.ToggleControl,{label:(0,qn.__)("Display date"),checked:i,onChange:()=>t({displayDate:!i})})}),(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>s!=="excerpt",label:(0,qn.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,go.jsx)(Zn.SelectControl,{label:(0,qn.__)("Display content"),value:s,options:[{label:(0,qn.__)("No content"),value:"none"},{label:(0,qn.__)("Excerpt"),value:"excerpt"},{label:(0,qn.__)("Full content"),value:"full"}],onChange:f=>t({displayContent:f})})}),(0,go.jsx)(Zn.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,qn.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,go.jsx)(Zn.RangeControl,{label:(0,qn.__)("Number of comments"),value:o,onChange:f=>t({commentsToShow:f}),min:sSe,max:lSe,required:!0})})]})}),u==="loading"&&(0,go.jsx)("div",{...m,children:(0,go.jsx)(Zn.Spinner,{})}),u==="error"&&(0,go.jsx)("div",{...m,children:(0,go.jsx)("p",{children:(0,qn.sprintf)((0,qn.__)("Error: %s"),d)})}),u==="success"&&(0,go.jsx)(Eo,{wrapperProps:m,html:c})]})}var cSe={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"}}},eoe=[cSe];var{name:toe}=_7,roe={icon:Xb,example:{},edit:Jre,deprecated:eoe},uSe=()=>D({name:toe,metadata:_7,settings:roe});var $D={};J($D,{init:()=>xSe,metadata:()=>Pf,name:()=>uoe,settings:()=>doe});var Pf={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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}},shadow:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var pSe={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}},mSe={postLayout:{type:"string",default:"list"},columns:{type:"number",default:3}},ooe=e=>!e.categories||typeof e.categories!="string"?e:{...e,categories:[{id:Number(e.categories)}]},fSe=e=>{let{postLayout:t,columns:r,...o}=e;return t?{...o,layout:{type:t==="grid"?"grid":"default",...t==="grid"&&r&&{columnCount:r}}}:e},noe=[{attributes:{...Pf.attributes,...mSe,categories:{type:["array","string"]}},supports:pSe,migrate:e=>fSe(ooe(e)),isEligible:({postLayout:e})=>e,save:()=>null},{attributes:{...Pf.attributes,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:ooe,isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var at=a(F(),1),Ke=a(L(),1),B1=a(MC(),1),Nc=a(I(),1),R2=a(H(),1);var WD=a(ae(),1),soe=a(br(),1),loe=a(_e(),1),coe=a(W(),1);var aoe=10,ioe=100,k7=55;var De=a(y(),1),gSe={per_page:-1,_fields:"id,name",context:"view"},hSe={per_page:-1,has_published_posts:["post"],context:"view"},bSe=[{value:"none",icon:gP,label:(0,Ke.__)("None")},{value:"left",icon:uI,label:(0,Ke.__)("Left")},{value:"center",icon:cI,label:(0,Ke.__)("Center")},{value:"right",icon:dI,label:(0,Ke.__)("Right")}];function ySe(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 vSe(e){return e._embedded?.author?.[0]}function _Se({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:b,addLinkToFeaturedImage:_}=e,{imageSizes:v,defaultImageWidth:w,defaultImageHeight:x,categoriesList:k,authorList:C}=(0,R2.useSelect)(E=>{let{getEntityRecords:M,getUsers:R}=E(WD.store),O=E(Nc.store).getSettings();return{defaultImageWidth:O.imageDimensions?.[g]?.width??0,defaultImageHeight:O.imageDimensions?.[g]?.height??0,imageSizes:O.imageSizes,categoriesList:M("taxonomy","category",gSe),authorList:R(hSe)}},[g]),S=ee(),P=v.filter(({slug:E})=>E!=="full").map(({name:E,slug:M})=>({value:M,label:E})),B=k?.reduce((E,M)=>(E[M.name]=M,E),{})??{},N=E=>{if(E.some(O=>typeof O=="string"&&!B[O]))return;let R=E.map(O=>typeof O=="string"?B[O]:O);if(R.includes(null))return!1;t({categories:R})};return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:k7}),dropdownMenuProps:S,children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Ke.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display post content"),checked:u,onChange:E=>t({displayPostContent:E})})}),u&&(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>c!=="excerpt",label:(0,Ke.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,De.jsx)(at.RadioControl,{label:(0,Ke.__)("Content length"),selected:c,options:[{label:(0,Ke.__)("Excerpt"),value:"excerpt"},{label:(0,Ke.__)("Full post"),value:"full_post"}],onChange:E=>t({displayPostContentRadio:E})})}),u&&c==="excerpt"&&(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>m!==k7,label:(0,Ke.__)("Max number of words"),onDeselect:()=>t({excerptLength:k7}),isShownByDefault:!0,children:(0,De.jsx)(at.RangeControl,{label:(0,Ke.__)("Max number of words"),value:m,onChange:E=>t({excerptLength:E}),min:aoe,max:ioe})})]}),(0,De.jsxs)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:S,children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Ke.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display author name"),checked:p,onChange:E=>t({displayAuthor:E})})}),(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Ke.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display post date"),checked:d,onChange:E=>t({displayPostDate:E})})})]}),(0,De.jsxs)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:S,children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ke.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Display featured image"),checked:l,onChange:E=>t({displayFeaturedImage:E})})}),l&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>g!=="thumbnail"||h!==null||b!==null,label:(0,Ke.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,De.jsx)(Nc.__experimentalImageSizeControl,{onChange:E=>{let M={};E.hasOwnProperty("width")&&(M.featuredImageSizeWidth=E.width),E.hasOwnProperty("height")&&(M.featuredImageSizeHeight=E.height),t(M)},slug:g,width:h,height:b,imageWidth:w,imageHeight:x,imageSizeOptions:P,imageSizeHelp:(0,Ke.__)("Select the size of the source image."),onChangeImage:E=>t({featuredImageSizeSlug:E,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,Ke.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,De.jsx)(at.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",label:(0,Ke.__)("Image alignment"),value:f||"none",onChange:E=>t({featuredImageAlign:E!=="none"?E:void 0}),children:bSe.map(({value:E,icon:M,label:R})=>(0,De.jsx)(at.__experimentalToggleGroupControlOptionIcon,{value:E,icon:M,label:R},E))})}),(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>!!_,label:(0,Ke.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,De.jsx)(at.ToggleControl,{label:(0,Ke.__)("Add link to featured image"),checked:_,onChange:E=>t({addLinkToFeaturedImage:E})})})]})]}),(0,De.jsx)(at.__experimentalToolsPanel,{label:(0,Ke.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),dropdownMenuProps:S,children:(0,De.jsx)(at.__experimentalToolsPanelItem,{hasValue:()=>o!=="desc"||n!=="date"||r!==5||i?.length>0||!!s,label:(0,Ke.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,De.jsx)(at.QueryControls,{order:o,orderBy:n,numberOfItems:r,onOrderChange:E=>t({order:E}),onOrderByChange:E=>t({orderBy:E}),onNumberOfItemsChange:E=>t({postsToShow:E}),categorySuggestions:B,onCategoryChange:N,selectedCategories:i,onAuthorChange:E=>t({selectedAuthor:E!==""?Number(E):void 0}),authorList:C??[],selectedAuthorId:s})})})]})}function GD({attributes:e,setAttributes:t,__unstableLayoutClassNames:r}){let o=(0,loe.useInstanceId)(GD),{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:b,excerptLength:_,featuredImageAlign:v,featuredImageSizeSlug:w,featuredImageSizeWidth:x,featuredImageSizeHeight:k,addLinkToFeaturedImage:C}=e,{type:S,minimumColumnWidth:P}=g||{},B=S||(h==="grid"?"grid":"default"),N=g?.columnCount??(S?void 0:b)??3,{latestPosts:E}=(0,R2.useSelect)(q=>{let{getEntityRecords:Y}=q(WD.store),oe=l&&l.length>0?l.map(U=>U.id):[],Z=Object.fromEntries(Object.entries({categories:oe,author:c,order:i,orderby:s,per_page:n,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,U])=>typeof U<"u"));return{latestPosts:Y("postType","post",Z)}},[n,i,s,l,c]),{createWarningNotice:M}=(0,R2.useDispatch)(soe.store),R=q=>{q.preventDefault(),M((0,Ke.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${o}`,type:"snackbar"})},O=!!E?.length,j=(0,De.jsx)(Nc.InspectorControls,{children:(0,De.jsx)(_Se,{attributes:e,setAttributes:t})}),V=(0,Nc.useBlockProps)({className:T(r,{"wp-block-latest-posts__list":!0,"is-grid":B==="grid","has-dates":m,"has-author":f,[`columns-${N}`]:B==="grid"&&N,"has-native-responsive-grid":B==="grid"&&N&&P})});if(!O)return(0,De.jsxs)("div",{...V,children:[j,(0,De.jsx)(at.Placeholder,{icon:av,label:(0,Ke.__)("Latest Posts"),children:Array.isArray(E)?(0,Ke.__)("No posts found."):(0,De.jsx)(at.Spinner,{})})]});let G=E.length>n?E.slice(0,n):E,$=q=>t({layout:{...g,...q},postLayout:void 0,columns:void 0}),z=[{icon:pl,title:(0,Ke._x)("List view","Latest posts block display setting"),onClick:()=>$({type:"default"}),isActive:B==="default"||B==="constrained"},{icon:Ei,title:(0,Ke._x)("Grid view","Latest posts block display setting"),onClick:()=>$({type:"grid",columnCount:N}),isActive:B==="grid"}],K=(0,B1.getSettings)().formats.date;return(0,De.jsxs)(De.Fragment,{children:[j,(0,De.jsx)(Nc.BlockControls,{children:(0,De.jsx)(at.ToolbarGroup,{controls:z})}),(0,De.jsx)("ul",{...V,children:G.map(q=>{let Y=q.title.rendered.trim(),oe=q.excerpt.rendered,Z=vSe(q),U=document.createElement("div");U.innerHTML=oe,oe=U.textContent||U.innerText||"";let{url:X,alt:Q}=ySe(q,w),ie=T({"wp-block-latest-posts__featured-image":!0,[`align${v}`]:!!v}),me=u&&X,xe=me&&(0,De.jsx)("img",{src:X,alt:Q,style:{maxWidth:x,maxHeight:k}}),se=_<oe.trim().split(" ").length&&q.excerpt.raw===""?(0,De.jsxs)(De.Fragment,{children:[oe.trim().split(" ",_).join(" "),(0,coe.createInterpolateElement)((0,Ke.sprintf)((0,Ke.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),Y||(0,Ke.__)("(no title)")),{a:(0,De.jsx)("a",{className:"wp-block-latest-posts__read-more",href:q.link,rel:"noopener",onClick:R}),span:(0,De.jsx)("span",{className:"screen-reader-text"})})]}):oe;return(0,De.jsxs)("li",{children:[me&&(0,De.jsx)("div",{className:ie,children:C?(0,De.jsx)("a",{href:q.link,onClick:R,children:xe}):xe}),(0,De.jsx)("a",{className:"wp-block-latest-posts__post-title",href:q.link,dangerouslySetInnerHTML:Y?{__html:Y}:void 0,onClick:R,children:Y?null:(0,Ke.__)("(no title)")}),f&&Z&&(0,De.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Ke.sprintf)((0,Ke.__)("by %s"),Z.name)}),m&&q.date_gmt&&(0,De.jsx)("time",{dateTime:(0,B1.format)("c",q.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,B1.dateI18n)(K,q.date_gmt)}),p&&d==="excerpt"&&(0,De.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:se}),p&&d==="full_post"&&(0,De.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:q.content.rendered.trim()}})]},q.id)})})]})}var{name:uoe}=Pf,doe={icon:hv,example:{},edit:GD,deprecated:noe},xSe=()=>D({name:uoe,metadata:Pf,settings:doe});var YD={};J(YD,{init:()=>ASe,metadata:()=>E7,name:()=>Soe,settings:()=>Toe});var M1=a(L(),1);var Fl=a(I(),1);var I1=a(te(),1),w7={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function qD(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&&w7[t]?w7[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,I1.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=[qD(s)];return(0,I1.createBlock)("core/list-item",d,p)});return(0,I1.createBlock)("core/list",r,o)}function C7(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,I1.rawHandler)({HTML:l.outerHTML});return[{...s,...c.attributes},c.innerBlocks]}function poe(e){let{type:t}=e;return t&&w7[t]?{...e,type:w7[t]}:e}var Ou=a(y(),1),kSe={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,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Ou.jsx)(Fl.RichText.Content,{value:r,multiline:"li"})})},migrate:or,isEligible({style:e}){return e?.typography?.fontFamily}},wSe={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,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({type:o,reversed:n,start:i}),children:(0,Ou.jsx)(Fl.RichText.Content,{value:r,multiline:"li"})})},migrate:C7},CSe={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,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({type:r,reversed:o,start:n}),children:(0,Ou.jsx)(Fl.InnerBlocks.Content,{})})},migrate:poe},SSe={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,Ou.jsx)(t?"ol":"ul",{...Fl.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,Ou.jsx)(Fl.InnerBlocks.Content,{})})}},moe=[SSe,CSe,wSe,kSe];var Vs=a(I(),1),S7=a(F(),1),bp=a(H(),1),Vl=a(L(),1);var voe=a(te(),1),T7=a(W(),1),_oe=a(jm(),1);var Ki=a(L(),1),foe=a(I(),1),Fs=a(F(),1);var Mc=a(y(),1),TSe=[{label:(0,Ki.__)("Numbers"),value:"decimal"},{label:(0,Ki.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Ki.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Ki.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Ki.__)("Lowercase Roman numerals"),value:"lower-roman"}],ESe=({setAttributes:e,reversed:t,start:r,type:o})=>{let n=ee();return(0,Mc.jsx)(foe.InspectorControls,{children:(0,Mc.jsxs)(Fs.__experimentalToolsPanel,{label:(0,Ki.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,Mc.jsx)(Fs.__experimentalToolsPanelItem,{label:(0,Ki.__)("List style"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({type:void 0}),children:(0,Mc.jsx)(Fs.SelectControl,{label:(0,Ki.__)("List style"),options:TSe,value:o||"decimal",onChange:i=>e({type:i})})}),(0,Mc.jsx)(Fs.__experimentalToolsPanelItem,{label:(0,Ki.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>e({start:void 0}),children:(0,Mc.jsx)(Fs.TextControl,{label:(0,Ki.__)("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,Mc.jsx)(Fs.__experimentalToolsPanelItem,{label:(0,Ki.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,Mc.jsx)(Fs.ToggleControl,{label:(0,Ki.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},goe=ESe;var hoe=a(W(),1),boe=a(y(),1);function PSe(e,t){let{ordered:r,...o}=e;return(0,boe.jsx)(r?"ol":"ul",{ref:t,...o})}var yoe=(0,hoe.forwardRef)(PSe);var ui=a(y(),1),BSe={name:"core/list-item"};function ISe(e,t){let r=(0,bp.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n,selectBlock:i}=(0,bp.useDispatch)(Vs.store);(0,T7.useEffect)(()=>{if(!e.values)return;let[s,l]=C7(e);(0,_oe.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"});let c=r.select(Vs.store).hasSelectedInnerBlock(t,!0);r.batch(()=>{o(t,s),n(t,l),c&&i(t)})},[e.values])}function NSe(e){let{replaceBlocks:t,selectionChange:r}=(0,bp.useDispatch)(Vs.store),{getBlockRootClientId:o,getBlockAttributes:n,getBlock:i}=(0,bp.useSelect)(Vs.store);return(0,T7.useCallback)(()=>{let s=o(e),l=n(s),c=(0,voe.createBlock)("core/list-item",l),{innerBlocks:u}=i(e);t([s],[c,...u]),r(u[u.length-1].clientId)},[e])}function MSe({clientId:e}){let t=NSe(e),r=(0,bp.useSelect)(o=>{let{getBlockRootClientId:n,getBlockName:i}=o(Vs.store);return i(n(e))==="core/list-item"},[e]);return(0,ui.jsx)(ui.Fragment,{children:(0,ui.jsx)(S7.ToolbarButton,{icon:(0,Vl.isRTL)()?gy:yy,title:(0,Vl.__)("Outdent"),description:(0,Vl.__)("Outdent list item"),disabled:!r,onClick:t})})}function xoe({attributes:e,setAttributes:t,clientId:r}){let{ordered:o,type:n,reversed:i,start:s}=e,l=(0,Vs.useBlockProps)({style:{listStyleType:o&&n!=="decimal"?n:void 0}}),c=(0,Vs.useInnerBlocksProps)(l,{defaultBlock:BSe,directInsert:!0,templateLock:!1,__experimentalCaptureToolbars:!0});ISe(e,r);let u=(0,ui.jsxs)(Vs.BlockControls,{group:"block",children:[(0,ui.jsx)(S7.ToolbarButton,{icon:(0,Vl.isRTL)()?ly:cy,title:(0,Vl.__)("Unordered"),description:(0,Vl.__)("Convert to unordered list"),isActive:o===!1,onClick:()=>{t({ordered:!1})}}),(0,ui.jsx)(S7.ToolbarButton,{icon:(0,Vl.isRTL)()?uy:vs,title:(0,Vl.__)("Ordered"),description:(0,Vl.__)("Convert to ordered list"),isActive:o===!0,onClick:()=>{t({ordered:!0})}}),(0,ui.jsx)(MSe,{clientId:r})]});return(0,ui.jsxs)(ui.Fragment,{children:[(0,ui.jsx)(yoe,{ordered:o,reversed:i,start:s,...c}),u,o&&(0,ui.jsx)(goe,{setAttributes:t,reversed:i,start:s,type:n})]})}var E7={$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 P7=a(I(),1),ZD=a(y(),1);function koe({attributes:e}){let{ordered:t,type:r,reversed:o,start:n}=e;return(0,ZD.jsx)(t?"ol":"ul",{...P7.useBlockProps.save({reversed:o,start:n,style:{listStyleType:t&&r!=="decimal"?r:void 0}}),children:(0,ZD.jsx)(P7.InnerBlocks.Content,{})})}var Fu=a(te(),1),N1=a(vl(),1);function woe({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(r=>{t[r].children={li:{children:t}}}),t}function KD(e){return e.flatMap(({name:t,attributes:r,innerBlocks:o=[]})=>t==="core/list-item"?[r.content,...KD(o)]:KD(o))}var RSe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:r})=>(0,Fu.createBlock)("core/list-item",{content:r}));else if(e.length===1){let r=(0,N1.create)({html:e[0].content});t=(0,N1.split)(r,`
74 +`).map(o=>(0,Fu.createBlock)("core/list-item",{content:(0,N1.toHTMLString)({value:o})}))}return(0,Fu.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:woe(e).ol,ul:woe(e).ul}),transform:qD},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Fu.createBlock)("core/list",{},[(0,Fu.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,Fu.createBlock)("core/list",{ordered:!0},[(0,Fu.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,r)=>KD(r).map(o=>(0,Fu.createBlock)(e,{content:o}))}))]},Coe=RSe;var{name:Soe}=E7,DSe=[["core/list-item"]],Toe={icon:pl,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,M1.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,M1.__)("The Queen of Hearts.")}}]},transforms:Coe,template:DSe,templateInsertUpdatesSelection:!0,edit:xoe,save:koe,deprecated:moe},ASe=()=>D({name:Soe,metadata:E7,settings:Toe});var XD={};J(XD,{init:()=>zSe,metadata:()=>I7,name:()=>Doe,settings:()=>Aoe});var D2=a(L(),1),B7=a(I(),1),Eoe=a(F(),1);var yp=a(W(),1),Poe=a(H(),1),Boe=a(_e(),1),zl=a(y(),1);function Ioe({attributes:e,setAttributes:t,isSelected:r}){let{latex:o,mathML:n}=e,[i,s]=(0,yp.useState)(),[l,c]=(0,yp.useState)(null),[u,d]=(0,yp.useState)(),p=(0,yp.useRef)(),{__unstableMarkNextChangeAsNotPersistent:m}=(0,Poe.useDispatch)(B7.store),f=(0,Boe.useEvent)(h=>{if(o)try{let b=h(o,{displayMode:!0});m(),t({mathML:b})}catch(b){c(b.message)}});(0,yp.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(h=>{d(()=>h.default),f(h.default)})},[f]);let g=(0,B7.useBlockProps)({ref:s,position:"relative"});return(0,zl.jsxs)("div",{...g,children:[n?(0,zl.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):(0,zl.jsx)("math",{display:"block",children:(0,zl.jsx)("semantics",{children:(0,zl.jsx)("annotation",{encoding:"application/x-tex",children:o||"\u200B"})})}),r&&(0,zl.jsx)(Eoe.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,onFocusOutside:()=>p.current?.reportValidity(),__unstableSlotName:"__unstable-block-tools-after",children:(0,zl.jsxs)("form",{ref:p,style:{padding:"16px",minWidth:"300px"},onSubmit:h=>h.preventDefault(),children:[(0,zl.jsx)(yL,{label:(0,D2.__)("LaTeX math syntax"),value:o??"",className:"wp-block-math__textarea-control",customValidity:l?{type:"invalid",message:l}:void 0,onValueChange:h=>{if(!u){t({latex:h,mathML:""});return}let b="";try{b=u(h,{displayMode:!0}),c(null)}catch(_){c(_.message)}t({mathML:b,latex:h})},placeholder:(0,D2.__)("e.g., x^2, \\frac{a}{b}, \\sqrt{x}")}),(0,zl.jsx)(bl,{openInNewTab:!0,className:"wp-block-math__learn-more",href:(0,D2.__)("https://wordpress.org/documentation/article/math-block/"),children:(0,D2.__)("Learn more about LaTeX syntax")})]})})]})}var I7={$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},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},attributes:{latex:{type:"string",source:"text",selector:'math annotation[encoding="application/x-tex"]',role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var Noe=a(I(),1),L1=a(y(),1);function Moe({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,L1.jsx)("div",{...Noe.useBlockProps.save(),children:r?(0,L1.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}}):(0,L1.jsx)("math",{display:"block",children:(0,L1.jsx)("semantics",{children:(0,L1.jsx)("annotation",{encoding:"application/x-tex",children:t})})})}):null}var QD=a(I(),1),N7=a(y(),1),Loe={latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},FSe={attributes:Loe,save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,N7.jsx)("div",{...QD.useBlockProps.save(),children:(0,N7.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:r}})}):null}},VSe={attributes:Loe,save({attributes:e}){let{latex:t,mathML:r}=e;return t?(0,N7.jsx)("math",{...QD.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:r}}):null}},Roe=[FSe,VSe];var{name:Doe}=I7,Aoe={icon:UB,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:Ioe,save:Moe,deprecated:Roe},zSe=()=>D({name:Doe,metadata:I7,settings:Aoe});var sA={};J(sA,{init:()=>$Se,metadata:()=>M7,name:()=>one,settings:()=>nne});var rne=a(I(),1);var M7={$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 Dc=a(I(),1),Rc=a(L(),1),iA=a(F(),1);var Qoe=a(_e(),1),D7=a(H(),1),Xoe=a(fc(),1);var If=a(te(),1),Voe=a(_e(),1),zoe=a(vl(),1),Hoe=a(H(),1),eA=a(I(),1);var Bf=a(I(),1),Ooe=a(te(),1);function JD(e,t){return e.getPreviousBlockClientId(t)}function Vu(e,t){let r=e.getBlockRootClientId(t),o=e.getBlockRootClientId(r);if(!(!o||e.getBlockName(o)!=="core/list-item"))return o}function Foe(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,Ooe.cloneBlock)(i(r),{},t.map(m=>i(m)));e.batch(()=>{l(t,!1),c(p,0,o,!1)})}function R1(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=JD(r,t);if(!f)return!1;let g=o(t),h=i(),b=s();return e.batch(()=>{Foe(e,m,g,f),p?d(m[0],m[m.length-1]):u(m[0],b.attributeKey,b.clientId===h.clientId?h.offset:b.offset,b.offset)}),!0}function Lc(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=Vu(r,p);if(!m)return!1;let f=o(p),g=t[t.length-1],b=i(f).slice(s(g)+1);return e.batch(()=>{b.length&&Foe(e,b,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:jSe}=le(zoe.privateApis);function tA(e){let t=(0,Hoe.useRegistry)();return(0,Voe.useRefEffect)(r=>{function o(n){if(n.defaultPrevented||n.inputType!=="insertParagraph")return;let i=t.select(eA.store),{getBlock:s,getBlockAttributes:l,getBlockRootClientId:c,getBlockIndex:u}=i,{replaceBlocks:d,selectionChange:p}=t.dispatch(eA.store),{content:m}=l(e)??{};if(m?.length)return;if(n.preventDefault(),!!Vu(i,e)){Lc(t);return}let g=s(c(e)),h=u(e),b=(0,If.cloneBlock)({...g,innerBlocks:g.innerBlocks.slice(0,h)}),_=(0,If.createBlock)((0,If.getDefaultBlockName)()),v=[...g.innerBlocks[h].innerBlocks[0]?.innerBlocks||[],...g.innerBlocks.slice(h+1)],w=v.length?[(0,If.cloneBlock)({...g,innerBlocks:v})]:[];d(g.clientId,[b,_,...w],1),p(_.clientId)}return jSe(r,"beforeinput",o,!0)},[e,t])}var joe=a(_e(),1),Uoe=a(vl(),1),A2=a(fc(),1),Woe=a(I(),1),Goe=a(H(),1),$oe=a(ma(),1);var{subscribeOwnedListener:USe}=le(Uoe.privateApis);function rA(){let e=(0,Goe.useRegistry)();return(0,joe.useRefEffect)(t=>{function r(o){let{keyCode:n,shiftKey:i,altKey:s,metaKey:l,ctrlKey:c}=o;if(o.defaultPrevented||n!==A2.SPACE&&n!==A2.TAB||s||l||c)return;let{getSelectionStart:u,getSelectionEnd:d}=e.select(Woe.store);if(!(u().offset===0&&d().offset===0)&&!(n===A2.TAB&&(0,$oe.isEntirelySelected)(t)))return;(i?Lc:R1)(e)&&o.preventDefault()}return USe(t,"keydown",r,!0)},[e])}var qoe=a(_e(),1),Zoe=a(fc(),1),Koe=a(I(),1),L7=a(H(),1);function oA(e){let t=(0,L7.useRegistry)(),r=(0,L7.useSelect)(o=>{let{hasMultiSelection:n,getMultiSelectedBlockClientIds:i,getBlockName:s}=o(Koe.store);if(!n())return!1;let l=i();return l[0]===e&&l.every(c=>s(c)==="core/list-item")},[e]);return(0,qoe.useRefEffect)(o=>{if(!r)return;function n(s){let{keyCode:l,shiftKey:c,altKey:u,metaKey:d,ctrlKey:p}=s;l!==Zoe.TAB||s.defaultPrevented||u||d||p||s.target.contains(o)&&(c?Lc(t)&&s.preventDefault():R1(t)&&s.preventDefault())}let{ownerDocument:i}=o;return i.addEventListener("keydown",n,!0),()=>{i.removeEventListener("keydown",n,!0)}},[r,t])}var Yoe=a(H(),1),nA=a(I(),1),R7=a(te(),1);function aA(e,t){let r=(0,Yoe.useRegistry)();return o=>{let n=r.select(nA.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(nA.store);function b(v){let w=l(v);return w.length?b(w[w.length-1]):v}function _(v,w){r.batch(()=>{let[x]=l(w);x&&(i(w)===v&&!l(v).length?f([x],w,v):Vu(n,w)===v?f(l(x),x,u(w),c(w)+1):f(l(x),x,u(v)));let k=u(w);m(v,w),l(k).length||g(k,!1)})}if(o){let v=l(e)[0],w,x=e;if(v)w=l(v)[0];else for(;!(w=s(x));){let k=Vu(n,x);if(!k)break;x=k}if(w)_(e,w);else{let k=u(x),C=s(k);if(C)if(d(C)==="core/list")r.batch(()=>{f(l(C),C,k),g(C,!1)});else{let P=(0,R7.switchToBlockType)(p(C),"core/list")?.[0]?.innerBlocks;P?.length&&r.batch(()=>{h(P,void 0,k,!1),g(C,!1)})}}}else{let v=i(e);if(v){let k=b(v);_(k,e);return}let w=Vu(n,e);if(w){_(w,e);return}let x=l(e);(0,R7.isUnmodifiedBlock)(p(e),"content")&&x.length>0?r.batch(()=>{Lc(r,l(x[0])),g(e,!0)}):t(o)}}}var Yi=a(y(),1);function WSe({clientId:e}){let t=(0,D7.useRegistry)(),{canIndent:r,canOutdent:o}=(0,D7.useSelect)(n=>{let i=n(Dc.store);return{canIndent:!!JD(i,e),canOutdent:!!Vu(i,e)}},[e]);return(0,Yi.jsxs)(Yi.Fragment,{children:[(0,Yi.jsx)(iA.ToolbarButton,{icon:(0,Rc.isRTL)()?gy:yy,title:(0,Rc.__)("Outdent"),shortcut:Xoe.displayShortcut.shift("Tab"),description:(0,Rc.__)("Outdent list item"),disabled:!o,onClick:()=>Lc(t)}),(0,Yi.jsx)(iA.ToolbarButton,{icon:(0,Rc.isRTL)()?pB:fB,title:(0,Rc.__)("Indent"),shortcut:"Tab",description:(0,Rc.__)("Indent list item"),disabled:!r,onClick:()=>R1(t,e)})]})}function Joe({attributes:e,setAttributes:t,clientId:r,mergeBlocks:o}){let{placeholder:n,content:i}=e,s=(0,Dc.useBlockProps)(),l=(0,Dc.useInnerBlocksProps)(s,{renderAppender:!1,__unstableDisableDropZone:!0}),c=tA(r),u=rA(),d=oA(r),p=aA(r,o);return(0,Yi.jsxs)(Yi.Fragment,{children:[(0,Yi.jsxs)("li",{...l,children:[(0,Yi.jsx)(Dc.RichText,{ref:(0,Qoe.useMergeRefs)([c,u,d]),identifier:"content",tagName:"div",onChange:m=>t({content:m}),value:i,"aria-label":(0,Rc.__)("List text"),placeholder:n||(0,Rc.__)("List"),onMerge:p}),l.children]}),(0,Yi.jsx)(Dc.BlockControls,{group:"block",children:(0,Yi.jsx)(WSe,{clientId:r})})]})}var D1=a(I(),1),O2=a(y(),1);function ene({attributes:e}){return(0,O2.jsxs)("li",{...D1.useBlockProps.save(),children:[(0,O2.jsx)(D1.RichText.Content,{value:e.content}),(0,O2.jsx)(D1.InnerBlocks.Content,{})]})}var A7=a(te(),1),GSe={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,A7.createBlock)("core/paragraph",e),...t.map(r=>(0,A7.cloneBlock)(r))]}]},tne=GSe;var{name:one}=M7,nne={icon:OB,edit:Joe,save:ene,merge(e,t){return{...e,content:e.content+t.content}},transforms:tne,[le(rne.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}},$Se=()=>D({name:one,metadata:M7,settings:nne});var lA={};J(lA,{init:()=>ZSe,metadata:()=>F7,name:()=>ine,settings:()=>sne});var O7=a(I(),1),vp=a(F(),1),Nf=a(L(),1);var Qi=a(y(),1);function ane({attributes:e,setAttributes:t}){let{displayLoginAsForm:r,redirectToCurrent:o}=e,n=ee();return(0,Qi.jsxs)(Qi.Fragment,{children:[(0,Qi.jsx)(O7.InspectorControls,{children:(0,Qi.jsxs)(vp.__experimentalToolsPanel,{label:(0,Nf.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,Qi.jsx)(vp.__experimentalToolsPanelItem,{label:(0,Nf.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Qi.jsx)(vp.ToggleControl,{label:(0,Nf.__)("Display login as form"),checked:r,onChange:()=>t({displayLoginAsForm:!r})})}),(0,Qi.jsx)(vp.__experimentalToolsPanelItem,{label:(0,Nf.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Qi.jsx)(vp.ToggleControl,{label:(0,Nf.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})})})]})}),(0,Qi.jsx)("div",{...(0,O7.useBlockProps)({className:"logged-in"}),children:(0,Qi.jsx)("a",{href:"#login-pseudo-link",children:(0,Nf.__)("Log out")})})]})}var F7={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:ine}=F7,sne={icon:VB,edit:ane},ZSe=()=>D({name:ine,metadata:F7,settings:sne});var gA={};J(gA,{init:()=>g8e,metadata:()=>K7,name:()=>Ene,settings:()=>Pne});var fA=a(L(),1);var lne=a(L(),1),F2=["image","video"],Ac="full",V2=15,V7="none",z7="media",H7="attachment",cne=[["core/paragraph",{placeholder:(0,lne._x)("Content\u2026","content placeholder")}]];var wr=a(I(),1),cA=a(_e(),1);var Oe=a(y(),1),j7=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},une=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},Mf=50,Oc=()=>{},dne=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:r,...o}=e;return{...o,style:t}},A1=e=>e.align?e:{...e,align:"wide"},U7={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}},uA={...U7,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"}},pne={...uA,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"}},KSe={...pne,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},dA={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},mne={...dA,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}}},YSe={...mne,__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}},QSe={attributes:KSe,supports:YSe,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||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=i?(0,Oe.jsx)("img",{src:i,alt:r,className:_||null}):null;m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?une(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()})]}):(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},XSe={attributes:pne,supports:mne,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||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=(0,Oe.jsx)("img",{src:i,alt:r,className:_||null});m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?une(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()})]}):(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:A1,isEligible(e,t,{block:r}){let{attributes:o}=r;return e.align===void 0&&!!o.className?.includes("alignwide")}},JSe={attributes:uA,supports:dA,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||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=(0,Oe.jsx)("img",{src:i,alt:r,className:_||null});m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?j7(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()})]}):(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:A1},e8e={attributes:uA,supports:dA,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||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=(0,Oe.jsx)("img",{src:i,alt:r,className:_||null});m&&(v=(0,Oe.jsx)("a",{className:p,href:m,target:f,rel:b,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:i})},x=T({"has-media-on-the-right":o==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),k=u?j7(i,d):{},C;s!==Mf&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return(0,Oe.jsxs)("div",{...wr.useBlockProps.save({className:x,style:S}),children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:k,children:(w[n]||Oc)()}),(0,Oe.jsx)("div",{...wr.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:A1},t8e={attributes:{...U7,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,cA.compose)(dne,A1),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:b}=e,_=b||void 0,v=(0,Oe.jsx)("img",{src:l,alt:n,className:u&&s==="image"?`wp-image-${u}`:null});g&&(v=(0,Oe.jsx)("a",{className:f,href:g,target:h,rel:_,children:v}));let w={image:()=>v,video:()=>(0,Oe.jsx)("video",{controls:!0,src:l})},x=(0,wr.getColorClassName)("background-color",t),k=T({"has-media-on-the-right":i==="right","has-background":x||r,[x]:x,"is-stacked-on-mobile":o,[`is-vertically-aligned-${d}`]:d,"is-image-fill":p}),C=p?j7(l,m):{},S;return c!==Mf&&(S=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Oe.jsxs)("div",{className:k,style:{backgroundColor:x?void 0:r,gridTemplateColumns:S},children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(w[s]||Oc)()}),(0,Oe.jsx)("div",{className:"wp-block-media-text__content",children:(0,Oe.jsx)(wr.InnerBlocks.Content,{})})]})}},r8e={attributes:{...U7,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,cA.compose)(dne,A1),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,Oe.jsx)("img",{src:l,alt:n,className:u&&s==="image"?`wp-image-${u}`:null}),video:()=>(0,Oe.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}),b=p?j7(l,m):{},_;return c!==Mf&&(_=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Oe.jsxs)("div",{className:h,style:{backgroundColor:g?void 0:r,gridTemplateColumns:_},children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",style:b,children:(f[s]||Oc)()}),(0,Oe.jsx)("div",{className:"wp-block-media-text__content",children:(0,Oe.jsx)(wr.InnerBlocks.Content,{})})]})}},o8e={attributes:{...U7,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:A1,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:r,isStackedOnMobile:o,mediaAlt:n,mediaPosition:i,mediaType:s,mediaUrl:l,mediaWidth:c}=e,u={image:()=>(0,Oe.jsx)("img",{src:l,alt:n}),video:()=>(0,Oe.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!==Mf&&(m=i==="right"?`auto ${c}%`:`${c}% auto`),(0,Oe.jsxs)("div",{className:p,style:{backgroundColor:d?void 0:r,gridTemplateColumns:m},children:[(0,Oe.jsx)("figure",{className:"wp-block-media-text__media",children:(u[s]||Oc)()}),(0,Oe.jsx)("div",{className:"wp-block-media-text__content",children:(0,Oe.jsx)(wr.InnerBlocks.Content,{})})]})}},fne=[QSe,XSe,JSe,e8e,t8e,r8e,o8e];var ao=a(L(),1),F1=a(H(),1),q7=a(W(),1),Ro=a(I(),1),Cr=a(F(),1),Z7=a(Ur(),1);var z2=a(ae(),1),_ne=a(br(),1),xne=a(qt(),1);var O1=a(F(),1),Fc=a(I(),1),G7=a(L(),1),hne=a(_e(),1),pA=a(H(),1),mA=a(W(),1),$7=a(Ur(),1),bne=a(br(),1);function W7(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var Lo=a(y(),1),n8e=()=>{},a8e=(0,mA.forwardRef)(({isSelected:e,isStackedOnMobile:t,...r},o)=>{let n=(0,hne.useViewportMatch)("small","<");return(0,Lo.jsx)(O1.ResizableBox,{ref:o,showHandle:e&&(!n||!t),...r})});function i8e({mediaId:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o,useFeaturedImage:n}){return(0,Lo.jsx)(Fc.BlockControls,{group:"other",children:(0,Lo.jsx)(Fc.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:F2,onSelect:r,onToggleFeaturedImage:o,useFeaturedImage:n,name:t?(0,G7.__)("Replace"):(0,G7.__)("Add media"),onReset:()=>r(void 0)})})}function gne({className:e,mediaUrl:t,onSelectMedia:r,toggleUseFeaturedImage:o}){let{createErrorNotice:n}=(0,pA.useDispatch)(bne.store),i=l=>{n(l,{type:"snackbar"})},s=l=>{l.length===1&&r({url:(0,$7.createBlobURL)(l[0])})};return(0,Lo.jsx)(Fc.MediaPlaceholder,{icon:(0,Lo.jsx)(Fc.BlockIcon,{icon:$y}),labels:{title:(0,G7.__)("Media area")},className:e,onSelect:r,onToggleFeaturedImage:o,allowedTypes:F2,onFilesPreUpload:s,onError:i,disableMediaButtons:t})}function s8e(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:b,toggleUseFeaturedImage:_,useFeaturedImage:v,featuredImageURL:w,featuredImageAlt:x,refMedia:k}=e,C=!u&&(0,$7.isBlobURL)(m),{toggleSelection:S}=(0,pA.useDispatch)(Fc.store),P=(0,Lo.jsx)(i8e,{onSelectMedia:g,mediaUrl:v&&w?w:m,mediaId:u,toggleUseFeaturedImage:_,useFeaturedImage:v});if(m||w||v){let B=()=>{S(!1)},N=(j,V,G)=>{h(parseInt(G.style.width))},E=(j,V,G)=>{S(!0),o(parseInt(G.style.width))},M={right:b&&d==="left",left:b&&d==="right"},R=p==="image"&&i?W7(m||w,n):{},O={image:()=>v&&w?(0,Lo.jsx)("img",{ref:k,src:w,alt:x,style:R}):m&&(0,Lo.jsx)("img",{ref:k,src:m,alt:c,style:R}),video:()=>(0,Lo.jsx)("video",{controls:!0,ref:k,src:m})};return(0,Lo.jsxs)(a8e,{as:"figure",className:T(r,"editor-media-container__resizer",{"is-transient":C}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:M,onResizeStart:B,onResize:N,onResizeStop:E,axis:"x",isSelected:s,isStackedOnMobile:l,ref:t,children:[P,(O[p]||n8e)(),C&&(0,Lo.jsx)(O1.Spinner,{}),!v&&(0,Lo.jsx)(gne,{...e}),!w&&v&&(0,Lo.jsx)(O1.Placeholder,{className:"wp-block-media-text--placeholder-image",style:R,withIllustration:!0})]})}return(0,Lo.jsxs)(Lo.Fragment,{children:[P,(0,Lo.jsx)(gne,{...e})]})}var yne=(0,mA.forwardRef)(s8e);var it=a(y(),1),{ResolutionTool:l8e}=le(Ro.privateApis),vne=e=>Math.max(V2,Math.min(e,100-V2));function kne(e,t){return e?.media_details?.sizes?.[t]?.source_url}function c8e({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,Z7.isBlobURL)(o.url)&&(o.type=(0,Z7.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||V7){case"file":case z7:s=z7;break;case"post":case H7:s=H7;break;case V7:default:s=V7;break}switch(s){case z7:l=o.url;break;case H7: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 u8e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,F1.useSelect)(i=>{let{getSettings:s}=i(Ro.store);return{imageSizes:s().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>kne(e,i)).map(({name:i,slug:s})=>({value:s,label:i}));return(0,it.jsx)(l8e,{value:t,defaultValue:Ac,options:n,onChange:r})}function d8e({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:b,mediaWidth:_,mediaSizeSlug:v,rel:w,verticalAlignment:x,allowedBlocks:k,useFeaturedImage:C}=e,[S]=(0,z2.useEntityProp)("postType",n,"featured_media",o),{featuredImageMedia:P}=(0,F1.useSelect)(ce=>({featuredImageMedia:S&&C?ce(z2.store).getEntityRecord("postType","attachment",S,{context:"view"}):void 0}),[S,C]),{image:B}=(0,F1.useSelect)(ce=>({image:f&&t?ce(z2.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),N=C?P?.source_url:"",E=C?P?.alt_text:"",M=()=>{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})},R=(0,q7.useRef)(),O=ce=>{let{style:ge}=R.current,{x:Qe,y:ye}=ce;ge.objectPosition=`${Qe*100}% ${ye*100}%`},[j,V]=(0,q7.useState)(null),G=c8e({attributes:e,setAttributes:r}),$=ce=>{r(ce)},z=ce=>{V(vne(ce))},K=ce=>{r({mediaWidth:vne(ce)}),V(null)},q=T({"has-media-on-the-right":g==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${x}`]:x,"is-image-fill-element":l}),Y=`${j||_}%`,oe=g==="right"?`1fr ${Y}`:`${Y} 1fr`,Z={gridTemplateColumns:oe,msGridColumns:oe},U=ce=>{r({mediaAlt:ce})},X=ce=>{r({verticalAlignment:ce})},Q=ce=>{let ge=kne(B,ce);if(!ge)return null;r({mediaUrl:ge,mediaSizeSlug:ce})},ie=ee(),{createErrorNotice:me}=(0,F1.useDispatch)(_ne.store),xe=ce=>{me(ce,{type:"snackbar"})},Be=t?(0,it.jsx)(Ro.InspectorControls,{group:"content",children:(0,it.jsx)(Cr.__experimentalToolsPanel,{label:(0,ao.__)("Media"),resetAll:()=>G(void 0),dropdownMenuProps:ie,children:(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Media"),hasValue:()=>!!b||!!C,onDeselect:()=>G(void 0),isShownByDefault:!0,children:(0,it.jsx)(Zd,{mediaId:f,mediaUrl:b||N,filename:B?.media_details?.sizes?.full?.file||B?.slug||(0,xne.getFilename)(b),allowedTypes:F2,onSelect:G,onError:xe,onReset:()=>G(void 0),useFeaturedImage:C,onToggleFeaturedImage:M,emptyLabel:(0,ao.__)("Add media")})})})}):null,se=(0,it.jsxs)(Cr.__experimentalToolsPanel,{label:(0,ao.__)("Settings"),resetAll:()=>{r({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),Q(Ac)},dropdownMenuProps:ie,children:[(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Media width"),isShownByDefault:!0,hasValue:()=>_!==50,onDeselect:()=>r({mediaWidth:50}),children:(0,it.jsx)(Cr.RangeControl,{label:(0,ao.__)("Media width"),value:j||_,onChange:K,min:V2,max:100-V2})}),(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>r({isStackedOnMobile:!0}),children:(0,it.jsx)(Cr.ToggleControl,{label:(0,ao.__)("Stack on mobile"),checked:c,onChange:()=>r({isStackedOnMobile:!c})})}),h==="image"&&(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({imageFill:!1}),children:(0,it.jsx)(Cr.ToggleControl,{label:(0,ao.__)("Crop image to fill"),checked:!!l,onChange:()=>r({imageFill:!l})})}),l&&(b||N)&&h==="image"&&(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>r({focalPoint:void 0}),children:(0,it.jsx)(Cr.FocalPointPicker,{label:(0,ao.__)("Focal point"),url:C&&N?N:b,value:i,onChange:ce=>r({focalPoint:ce}),onDragStart:O,onDrag:O})}),h==="image"&&b&&!C&&(0,it.jsx)(Cr.__experimentalToolsPanelItem,{label:(0,ao.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!m,onDeselect:()=>r({mediaAlt:""}),children:(0,it.jsx)(Cr.TextareaControl,{label:(0,ao.__)("Alternative text"),value:m,onChange:U,help:(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Cr.ExternalLink,{href:(0,ao.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,ao.__)("Describe the purpose of the image.")}),(0,it.jsx)("br",{}),(0,ao.__)("Leave empty if decorative.")]})})}),h==="image"&&!C&&(0,it.jsx)(u8e,{image:B,value:v,onChange:Q})]}),he=(0,Ro.useBlockProps)({className:q,style:Z}),ze=(0,Ro.useInnerBlocksProps)({className:"wp-block-media-text__content"},{allowedBlocks:k}),qe=(0,Ro.useBlockEditingMode)();return(0,it.jsxs)(it.Fragment,{children:[Be,(0,it.jsx)(Ro.InspectorControls,{children:se}),(0,it.jsxs)(Ro.BlockControls,{group:"block",children:[qe==="default"&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Ro.BlockVerticalAlignmentControl,{onChange:X,value:x,label:(0,ao.__)("Align media and text vertically")}),(0,it.jsx)(Cr.ToolbarButton,{icon:II,title:(0,ao.__)("Show media on left"),isActive:g==="left",onClick:()=>r({mediaPosition:"left"})}),(0,it.jsx)(Cr.ToolbarButton,{icon:NI,title:(0,ao.__)("Show media on right"),isActive:g==="right",onClick:()=>r({mediaPosition:"right"})})]}),h==="image"&&!C&&(0,it.jsx)(Ro.__experimentalImageURLInputUI,{url:s||"",onChangeUrl:$,linkDestination:d,mediaType:h,mediaUrl:B&&B.source_url,mediaLink:B&&B.link,linkTarget:p,linkClass:u,rel:w})]}),(0,it.jsxs)("div",{...he,children:[g==="right"&&(0,it.jsx)("div",{...ze}),(0,it.jsx)(yne,{className:"wp-block-media-text__media",onSelectMedia:G,onWidthChange:z,commitWidthChange:K,refMedia:R,enableResize:qe==="default",toggleUseFeaturedImage:M,focalPoint:i,imageFill:l,isSelected:t,isStackedOnMobile:c,mediaAlt:m,mediaId:f,mediaPosition:g,mediaType:h,mediaUrl:b,mediaWidth:_,useFeaturedImage:C,featuredImageURL:N,featuredImageAlt:E}),g!=="right"&&(0,it.jsx)("div",{...ze})]})]})}var wne=d8e;var K7={$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,button:!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 V1=a(I(),1);var Hl=a(y(),1),m8e=50,Cne=()=>{};function Sne({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||Ac,b=g||void 0,_=T({[`wp-image-${l}`]:l&&n==="image",[`size-${h}`]:l&&n==="image"}),v=u?W7(i,d):{},w=i?(0,Hl.jsx)("img",{src:i,alt:r,className:_||null,style:v}):null;m&&(w=(0,Hl.jsx)("a",{className:p,href:m,target:f,rel:b,children:w}));let x={image:()=>w,video:()=>(0,Hl.jsx)("video",{controls:!0,src:i})},k=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!==m8e&&(C=o==="right"?`auto ${s}%`:`${s}% auto`);let S={gridTemplateColumns:C};return o==="right"?(0,Hl.jsxs)("div",{...V1.useBlockProps.save({className:k,style:S}),children:[(0,Hl.jsx)("div",{...V1.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,Hl.jsx)("figure",{className:"wp-block-media-text__media",children:(x[n]||Cne)()})]}):(0,Hl.jsxs)("div",{...V1.useBlockProps.save({className:k,style:S}),children:[(0,Hl.jsx)("figure",{className:"wp-block-media-text__media",children:(x[n]||Cne)()}),(0,Hl.jsx)("div",{...V1.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var Lf=a(te(),1),f8e={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:r,anchor:o})=>(0,Lf.createBlock)("core/media-text",{mediaAlt:e,mediaId:r,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:r})=>(0,Lf.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:r,backgroundType:o,customGradient: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,Lf.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,Lf.createBlock)("core/image",{alt:e,id:t,url:r,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:r})=>(0,Lf.createBlock)("core/video",{id:e,src:t,anchor:r})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:r,focalPoint:o,gradient: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,Lf.createBlock)("core/cover",g,m)}}]},Tne=f8e;var{name:Ene}=K7,Pne={icon:WB,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,fA.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,fA.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:Tne,template:cne,edit:wne,save:Sne,deprecated:fne},g8e=()=>D({name:Ene,metadata:K7,settings:Pne});var hA={};J(hA,{init:()=>b8e,metadata:()=>Q7,name:()=>H2,settings:()=>Fne});var One=a(te(),1);var zu=a(L(),1),Bne=a(W(),1),Ine=a(F(),1),Nne=a(te(),1),Y7=a(H(),1),Rf=a(I(),1),Mne=a(ma(),1),z1=a(y(),1);function Lne({attributes:e,clientId:t}){let{originalName:r,originalUndelimitedContent:o}=e,n=!!o,{hasFreeformBlock:i,hasHTMLBlock:s}=(0,Y7.useSelect)(m=>{let{canInsertBlockType:f,getBlockRootClientId:g}=m(Rf.store);return{hasFreeformBlock:f("core/freeform",g(t)),hasHTMLBlock:f("core/html",g(t))}},[t]),{replaceBlock:l}=(0,Y7.useDispatch)(Rf.store);function c(){l(t,(0,Nne.createBlock)("core/html",{},[],[o]))}let u=[],d,p=(0,z1.jsx)(Ine.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,zu.__)("Keep as HTML")},"convert");return n&&!i&&(!r||r==="core/freeform")?s?(d=(0,zu.__)("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,zu.__)("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,zu.sprintf)((0,zu.__)('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,zu.sprintf)((0,zu.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),r),(0,z1.jsxs)("div",{...(0,Rf.useBlockProps)({className:"has-warning"}),children:[(0,z1.jsx)(Rf.Warning,{actions:u,children:d}),(0,z1.jsx)(Bne.RawHTML,{children:(0,Mne.safeHTML)(o)})]})}var Q7={$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 Rne=a(W(),1),Dne=a(y(),1);function Ane({attributes:e}){return(0,Dne.jsx)(Rne.RawHTML,{children:e.originalContent})}var{name:H2}=Q7,Fne={name:H2,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:r}=e,o=r?(0,One.getBlockType)(r):void 0;return o?o.settings.title||r:""}},edit:Lne,save:Ane},b8e=()=>D({name:H2,metadata:Q7,settings:Fne});var bA={};J(bA,{init:()=>x8e,metadata:()=>J7,name:()=>Gne,settings:()=>$ne});var _p=a(L(),1),H1=a(F(),1),j1=a(I(),1),X7=a(te(),1);var jl=a(y(),1),y8e=(0,_p.__)("Read more");function Vne({attributes:{customText:e,noTeaser:t},insertBlocksAfter:r,setAttributes:o}){let n=ee();return(0,jl.jsxs)(jl.Fragment,{children:[(0,jl.jsx)(j1.InspectorControls,{children:(0,jl.jsx)(H1.__experimentalToolsPanel,{label:(0,_p.__)("Settings"),resetAll:()=>{o({noTeaser:!1})},dropdownMenuProps:n,children:(0,jl.jsx)(H1.__experimentalToolsPanelItem,{label:(0,_p.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({noTeaser:!1}),children:(0,jl.jsx)(H1.ToggleControl,{label:(0,_p.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:i=>i?(0,_p.__)("The excerpt is hidden."):(0,_p.__)("The excerpt is visible.")})})})}),(0,jl.jsx)("div",{...(0,j1.useBlockProps)(),children:(0,jl.jsx)(j1.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,_p.__)('"Read more" text'),value:e,placeholder:y8e,onChange:i=>o({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:r?()=>r((0,X7.createBlock)((0,X7.getDefaultBlockName)())):void 0})})]})}var J7={$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 zne=a(W(),1),Hne=a(y(),1);function jne({attributes:{customText:e,noTeaser:t}}){let r=e?`<!--more ${e}-->`:"<!--more-->";return(0,Hne.jsx)(zne.RawHTML,{children:[r,t?"<!--noteaser-->":""].filter(Boolean).join(`
75 +`)})}var Une=a(te(),1),_8e={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,Une.createBlock)("core/more",o)}}]},Wne=_8e;var{name:Gne}=J7,$ne={icon:ZB,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:Wne,edit:Vne,save:jne},x8e=()=>D({name:Gne,metadata:J7,settings:$ne});var QA={};J(QA,{init:()=>ETe,metadata:()=>e9,name:()=>hse,settings:()=>bse});var K9=a(L(),1);var mse=a(H(),1),fse=a(ae(),1),gse=a($o(),1);var e9={$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(W(),1),st=a(I(),1),Tp=a(ae(),1),Gl=a(H(),1),io=a(F(),1),Ht=a(L(),1),$9=a(O_(),1);var ise=a(te(),1),sse=a(_e(),1);var U1=a(ae(),1),Kne=a(H(),1);var Xi={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},qne=["core/navigation-link/page","core/navigation-link/custom-link"],yA={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},Zne=["postType","wp_navigation",yA],Vc="navigation-overlay";function W1(e){let t=(0,U1.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:r,isNavigationMenuResolved:o,isNavigationMenuMissing:n}=(0,Kne.useSelect)(g=>w8e(g,e),[e]),{canCreate:i,canUpdate:s,canDelete:l,isResolving:c,hasResolved:u}=t,{records:d,isResolving:p,hasResolved:m}=(0,U1.useEntityRecords)("postType","wp_navigation",yA),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 w8e(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:r,getEditedEntityRecord:o,hasFinishedResolution:n}=e(U1.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 q1=a(F(),1),U2=a(L(),1);var vA=a(O_(),1),Qne=a(W(),1),Xne=a(ae(),1);var Yne=a(L(),1),j2=a(y(),1),C8e=({isVisible:e=!0})=>(0,j2.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,j2.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,j2.jsx)(fa,{icon:ym}),(0,Yne.__)("Navigation")]})}),t9=C8e;var Ul=a(F(),1);var Ea=a(L(),1),r9=a($o(),1),G1=a(W(),1),o9=a(ae(),1);var zs=a(y(),1);function S8e(e,t,r){return e?r==="publish"?(0,r9.decodeEntities)(e):(0,Ea.sprintf)((0,Ea.__)("%1$s (%2$s)"),(0,r9.decodeEntities)(e),r):(0,Ea.sprintf)((0,Ea.__)("(no title %s)"),t)}function T8e({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:r,onCreateNew:o,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:s}){let l=(0,Ea.__)("Create from '%s'"),[c,u]=(0,G1.useState)(!1);n=n||l;let{records:d}=(0,o9.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{navigationMenus:p,isResolvingNavigationMenus:m,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:h,isNavigationMenuMissing:b}=W1(e),[_]=(0,o9.useEntityProp)("postType","wp_navigation","title",e),v=(0,G1.useMemo)(()=>p?.map(({id:R,title:O,status:j},V)=>{let G=S8e(O?.rendered,V+1,j);return{value:R,label:G,ariaLabel:(0,Ea.sprintf)(n,G),disabled:c||m||!f}})||[],[p,n,m,f,c]),w=!!p?.length,x=!!d?.length,k=!!h,C=!!g,S=w&&!e,P=!w&&f,B=f&&e===null,N=e&&b,E="";return m?E=(0,Ea.__)("Loading\u2026"):S||P||B||N?E=(0,Ea.__)("Choose or create a Navigation Menu"):E=_,(0,G1.useEffect)(()=>{c&&(i||s)&&u(!1)},[f,i,g,s,c,B,P,S]),(0,zs.jsx)(Ul.DropdownMenu,{label:E,icon:qy,toggleProps:{size:"small"},children:({onClose:R})=>(0,zs.jsxs)(zs.Fragment,{children:[k&&w&&(0,zs.jsx)(Ul.MenuGroup,{label:(0,Ea.__)("Menus"),children:(0,zs.jsx)(Ul.MenuItemsChoice,{value:e,onSelect:O=>{t(O),R()},choices:v})}),C&&x&&(0,zs.jsx)(Ul.MenuGroup,{label:(0,Ea.__)("Import Classic Menus"),children:d?.map(O=>{let j=(0,r9.decodeEntities)(O.name);return(0,zs.jsx)(Ul.MenuItem,{onClick:async()=>{u(!0),await r(O),u(!1),R()},"aria-label":(0,Ea.sprintf)(l,j),disabled:c||m||!f,children:j},O.id)})}),g&&(0,zs.jsx)(Ul.MenuGroup,{label:(0,Ea.__)("Tools"),children:(0,zs.jsx)(Ul.MenuItem,{onClick:async()=>{u(!0),await o(),u(!1),R()},disabled:c||m||!f,children:(0,Ea.__)("Create new Menu")})})]})})}var $1=T8e;var Kn=a(y(),1);function Jne({isSelected:e,currentMenuId:t,clientId:r,canUserCreateNavigationMenus:o=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:s,onCreateEmpty:l}){let{isResolving:c,hasResolved:u}=(0,Xne.useEntityRecords)("root","menu",{per_page:-1,context:"view"});(0,Qne.useEffect)(()=>{e&&(c&&(0,vA.speak)((0,U2.__)("Loading navigation block setup options\u2026")),u&&(0,vA.speak)((0,U2.__)("Navigation block setup options ready.")))},[u,c,e]);let d=c&&n;return(0,Kn.jsx)(Kn.Fragment,{children:(0,Kn.jsxs)(q1.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,Kn.jsx)(t9,{isVisible:!e}),(0,Kn.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,Kn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,Kn.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,Kn.jsx)(fa,{icon:ym})," ",(0,U2.__)("Navigation")]}),(0,Kn.jsx)("hr",{}),d&&(0,Kn.jsx)(q1.Spinner,{}),(0,Kn.jsx)($1,{currentMenuId:t,clientId:r,onSelectNavigationMenu:i,onSelectClassicMenu:s}),(0,Kn.jsx)("hr",{}),o&&(0,Kn.jsx)(q1.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:l,children:(0,U2.__)("Start empty")})]})})]})})}var _A=a(F(),1),K1=a(L(),1),xA=a(I(),1),eae=a(H(),1),tae=a(ae(),1);var W2=a(A(),1);var Z1=a(y(),1);function zc({icon:e}){return e==="menu"?(0,Z1.jsx)(fa,{icon:$B}):(0,Z1.jsxs)(W2.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Z1.jsx)(W2.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Z1.jsx)(W2.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}function Pa(e,t){return e&&t?e+"//"+t:null}var Ji=a(y(),1);function kA({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,eae.useSelect)(x=>x(tae.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,xA.getColorClassName)("color",l?.slug)]:!!l?.slug,"has-background":!!s.color||s?.class,[(0,xA.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},b=T("wp-block-navigation__responsive-container-open",{"always-shown":i}),_=`${t}-modal`,v={className:"wp-block-navigation__responsive-dialog",...r&&{role:"dialog","aria-modal":!0,"aria-label":(0,K1.__)("Menu")}},w=()=>{if(d&&p){let x=Pa(m,d);p({postId:x,postType:"wp_template_part"});return}n(!0)};return(0,Ji.jsxs)(Ji.Fragment,{children:[!r&&(0,Ji.jsxs)(_A.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,K1.__)("Open menu"),className:b,onClick:w,children:[c&&(0,Ji.jsx)(zc,{icon:u}),!c&&(0,K1.__)("Menu")]}),(0,Ji.jsx)("div",{className:g,style:h,id:_,children:(0,Ji.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Ji.jsxs)("div",{...v,children:[(0,Ji.jsxs)(_A.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,K1.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,Ji.jsx)(fa,{icon:um}),!c&&(0,K1.__)("Close")]}),(0,Ji.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${_}-content`,children:e})]})})})]})}var rae=a(ae(),1),Y1=a(I(),1),oae=a(H(),1),nae=a(W(),1);var wA=a(y(),1);function aae({clientId:e,hasCustomPlaceholder:t,orientation:r,templateLock:o}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:s,hasSelectedDescendant:l}=(0,oae.useSelect)(b=>{let{getBlockCount:_,hasSelectedInnerBlock:v,getSelectedBlockClientId:w}=b(Y1.store),x=w();return{isImmediateParentOfSelectedBlock:v(e,!1),selectedBlockHasChildren:!!_(x),hasSelectedDescendant:v(e,!0),isSelected:x===e}},[e]),[c,u,d]=(0,rae.useEntityBlockEditor)("postType","wp_navigation"),p=s||n&&!i,m=(0,nae.useMemo)(()=>(0,wA.jsx)(t9,{}),[]),f=!!c?.length,g=!t&&!f&&!s,h=(0,Y1.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:d,prioritizedInserterBlocks:qne,defaultBlock:Xi,directInsert:!0,orientation:r,templateLock:o,renderAppender:s||n&&!i||l||p?Y1.InnerBlocks.ButtonBlockAppender:!1,placeholder:g?m:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,wA.jsx)("div",{...h})}var iae=a(F(),1),sae=a(ae(),1),lae=a(L(),1),cae=a(y(),1);function uae(){let[e,t]=(0,sae.useEntityProp)("postType","wp_navigation","title");return(0,cae.jsx)(iae.TextControl,{label:(0,lae.__)("Menu name"),value:e,onChange:t})}var mae=a(I(),1),CA=a(F(),1),fae=a(ae(),1),gae=a(H(),1),Df=a(W(),1);function dae(e,t){return!pae(e,t,(r,o)=>{if(o?.name==="core/page-list"&&r==="innerBlocks")return!0})}var pae=(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(!pae(e[o],t[o],r))return!1}else return!1;return!0}return!1};var hae=a(y(),1),E8e={};function bae({blocks:e,createNavigationMenu:t,hasSelection:r}){let o=(0,Df.useRef)();(0,Df.useEffect)(()=>{o?.current||(o.current=e)},[e]);let n=dae(o?.current,e),i=(0,Df.useContext)(CA.Disabled.Context),s=(0,mae.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:r?void 0:!1,defaultBlock:Xi,directInsert:!0}),{isSaving:l,hasResolvedAllNavigationMenus:c}=(0,gae.useSelect)(d=>{if(i)return E8e;let{hasFinishedResolution:p,isSavingEntityRecord:m}=d(fae.store);return{isSaving:m("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",Zne)}},[i]);return(0,Df.useEffect)(()=>{i||l||!c||!r||!n||t(null,e)},[e,t,i,l,c,n,r]),(0,hae.jsx)(l?CA.Disabled:"div",{...s})}var a9=a(F(),1),i9=a(ae(),1),yae=a(H(),1),vae=a(W(),1),n9=a(L(),1),Af=a(y(),1);function _ae({onDelete:e}){let[t,r]=(0,vae.useState)(!1),o=(0,i9.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,yae.useDispatch)(i9.store);return(0,Af.jsxs)(Af.Fragment,{children:[(0,Af.jsx)(a9.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{r(!0)},children:(0,n9.__)("Delete menu")}),t&&(0,Af.jsx)(a9.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",o,{force:!0}),e()},onCancel:()=>{r(!1)},confirmButtonText:(0,n9.__)("Delete"),size:"medium",children:(0,n9.__)("Are you sure you want to delete this Navigation Menu?")})]})}var G2=a(W(),1),xae=a(H(),1),kae=a(br(),1);function P8e({name:e,message:t=""}={}){let r=(0,G2.useRef)(),{createWarningNotice:o,removeNotice:n}=(0,xae.useDispatch)(kae.store),i=(0,G2.useCallback)(l=>{r.current||(r.current=e,o(l||t,{id:r.current,type:"snackbar"}))},[r,o,t,e]),s=(0,G2.useCallback)(()=>{r.current&&(n(r.current),r.current=null)},[r,n]);return[i,s]}var s9=P8e;var Hc=a(F(),1),xp=a(L(),1);var es=a(y(),1);function wae({setAttributes:e,hasIcon:t,icon:r}){return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(Hc.__experimentalToolsPanelItem,{label:(0,xp.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,es.jsx)(Hc.ToggleControl,{label:(0,xp.__)("Show icon button"),help:(0,xp.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>e({hasIcon:o}),checked:t})}),(0,es.jsx)(Hc.__experimentalToolsPanelItem,{label:(0,xp.__)("Icon"),isShownByDefault:!0,hasValue:()=>r!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,es.jsxs)(Hc.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,xp.__)("Icon"),value:r,onChange:o=>e({icon:o}),isBlock:!0,children:[(0,es.jsx)(Hc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,xp.__)("handle"),label:(0,es.jsx)(zc,{icon:"handle"})}),(0,es.jsx)(Hc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,xp.__)("menu"),label:(0,es.jsx)(zc,{icon:"menu"})})]})})]})}var g9=a(F(),1),Gae=a(L(),1),$ae=a(W(),1);var Hs=a(W(),1),Rae=a(_e(),1),d9=a(ae(),1),p9=a(H(),1),ts=a(F(),1),vn=a(L(),1),EA=a($o(),1),Dae=a(br(),1);var Tae=a(W(),1),c9=a(H(),1),Eae=a(ae(),1),Pae=a(I(),1),Bae=a(L(),1),Ff=a(te(),1);function SA(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function TA(e,t,r){if(!e)return;t(SA(e).color);let o=e,n=SA(o).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,n=SA(o).backgroundColor;r(n)}function Of(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 l9(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}`},Sae=e=>Ih(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function Iae(e){let{saveEntityRecord:t}=(0,c9.useDispatch)(Eae.store),r=(0,c9.useSelect)(n=>le(n(Pae.store)).getPatternBySlug("core/navigation-overlay"),[]);return(0,Tae.useCallback)(async()=>{let n=e.filter(u=>u.title?.rendered),i=Cae((0,Bae.__)("Navigation Overlay"),n),s=Sae(i),l="";if(r?.content){let u=(0,Ff.parse)(r.content,{__unstableSkipMigrationLogs:!0});l=(0,Ff.serialize)(u)}else l=(0,Ff.serialize)([(0,Ff.createBlock)("core/paragraph")]);return await t("postType","wp_template_part",{slug:s,title:i,content:l,area:Vc},{throwOnError:!0})},[e,t,r])}var $2=a(F(),1),Nae=a(L(),1),Mae=a(W(),1),u9=a(y(),1);function B8e({onClear:e,onCreate:t,isCreating:r=!1}){let o=(0,Mae.createInterpolateElement)((0,Nae.__)("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,u9.jsx)($2.Button,{__next40pxDefaultSize:!0,onClick:e,variant:"link",disabled:r,accessibleWhenDisabled:!0}),createButton:(0,u9.jsx)($2.Button,{__next40pxDefaultSize:!0,onClick:t,variant:"link",disabled:r,accessibleWhenDisabled:!0,isBusy:r})});return(0,u9.jsx)($2.Notice,{status:"warning",isDismissible:!1,className:"wp-block-navigation__deleted-overlay-warning",children:o})}var Lae=B8e;var Do=a(y(),1);function PA({overlay:e,overlayMenu:t,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:n,setIsCreatingOverlay:i}){let s=(0,Rae.useInstanceId)(PA,"wp-block-navigation__overlay-selector-heading"),{records:l,isResolving:c,hasResolved:u}=(0,d9.useEntityRecords)("postType","wp_template_part",{per_page:-1}),{createErrorNotice:d}=(0,p9.useDispatch)(Dae.store),p=(0,p9.useSelect)(M=>M(d9.store).getCurrentTheme()?.stylesheet,[]),[m,f]=(0,Hs.useState)(!1),g=n!==void 0?n:m,h=i!==void 0?i:f,b=(0,Hs.useMemo)(()=>l?l.filter(M=>M.area===Vc):[],[l]),_=Iae(b),v=(0,Hs.useMemo)(()=>!e||!b?null:b.find(M=>M.slug===e),[e,b]),w=(0,Hs.useMemo)(()=>{let M=[{label:(0,vn.__)("Default"),value:""}];if(!u||c)return M;let R=b.map(O=>({label:O.title?.rendered?(0,EA.decodeEntities)(O.title.rendered):O.slug,value:O.slug}));return e&&!v&&R.unshift({label:(0,vn.sprintf)((0,vn.__)("%s (missing)"),e),value:e}),[...M,...R]},[b,u,c,e,v]),x=M=>{r({overlay:M||void 0})},k=()=>{if(!e||!v||!o)return;let M=v.theme||p,O={postId:Pa(M,e),postType:"wp_template_part"};t==="mobile"&&(O.viewport="mobile"),o(O)},C=(0,Hs.useCallback)(async()=>{try{h(!0);let M=await _();if(r({overlay:M.slug}),o){let R=M.theme||p,j={postId:Pa(R,M.slug),postType:"wp_template_part"};t==="mobile"&&(j.viewport="mobile"),o(j)}else h(!1)}catch(M){let R=M instanceof Error&&"code"in M&&M.message&&M.code!=="unknown_error"?M.message:(0,vn.__)("An error occurred while creating the overlay.");d(R,{type:"snackbar"}),h(!1)}},[_,r,o,d,p,h,t]),S=(0,Hs.useCallback)(()=>{r({overlay:void 0})},[r]),P=c||g,B=(0,Hs.useMemo)(()=>e&&u&&!c&&!v,[e,u,c,v]),N=(0,Hs.useMemo)(()=>b.length===0&&u?(0,vn.__)("No overlays found."):(0,vn.__)("Select an overlay for navigation."),[b.length,u]),E=(0,Hs.useMemo)(()=>v?(0,vn.sprintf)((0,vn.__)("Edit overlay: %s"),v.title?.rendered?(0,EA.decodeEntities)(v.title.rendered):v.slug):(0,vn.__)("Edit overlay"),[v]);return(0,Do.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,Do.jsx)("h3",{id:s,className:"wp-block-navigation__overlay-selector-header",children:(0,vn.__)("Overlay template")}),u&&(b.length===0||g&&b.length===1)?(0,Do.jsx)(Do.Fragment,{children:(0,Do.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:g,className:"wp-block-navigation__overlay-create-button-prominent",children:(0,vn.__)("Create overlay")})}):(0,Do.jsxs)(Do.Fragment,{children:[(0,Do.jsx)(ts.Button,{size:"small",icon:eh,onClick:C,disabled:P,accessibleWhenDisabled:!0,isBusy:g,label:(0,vn.__)("Create new overlay template"),showTooltip:!0,className:"wp-block-navigation__overlay-create-button"}),(0,Do.jsxs)(ts.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-selector-controls",children:[(0,Do.jsx)(ts.FlexBlock,{children:(0,Do.jsx)(ts.SelectControl,{label:(0,vn.__)("Overlay template"),hideLabelFromVision:!0,"aria-labelledby":s,value:e||"",options:w,onChange:x,disabled:c,accessibleWhenDisabled:!0,help:N})}),e&&u&&v&&(0,Do.jsx)(ts.FlexItem,{children:(0,Do.jsx)(ts.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:k,disabled:!o,accessibleWhenDisabled:!0,label:E,showTooltip:!0,className:"wp-block-navigation__overlay-edit-button",children:(0,vn.__)("Edit")})})]}),B&&(0,Do.jsx)(Lae,{onClear:S,onCreate:C,isCreating:g})]}),(0,Do.jsx)(ts.__experimentalHStack,{alignment:"flex-start",className:"wp-block-navigation__overlay-help-text-wrapper",children:(0,Do.jsx)(Dm,{children:(0,vn.__)("An overlay template allows you to customize the appearance of the dialog that opens when the menu button is pressed.")})})]})}var Q1=a(F(),1),Vf=a(L(),1),X1=a(y(),1);function Aae({overlayMenu:e,setAttributes:t}){return(0,X1.jsxs)(Q1.__experimentalToggleGroupControl,{label:(0,Vf.__)("Overlay Visibility"),"aria-label":(0,Vf.__)("Configure overlay visibility"),value:e,help:(0,Vf.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:r=>t({overlayMenu:r}),isBlock:!0,children:[(0,X1.jsx)(Q1.__experimentalToggleGroupControlOption,{value:"never",label:(0,Vf.__)("Off")}),(0,X1.jsx)(Q1.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Vf.__)("Mobile")}),(0,X1.jsx)(Q1.__experimentalToggleGroupControlOption,{value:"always",label:(0,Vf.__)("Always")})]})}var f9=a(F(),1),m9=a(L(),1);var ju=a(F(),1),J1=a(L(),1);var Hu=a(y(),1);function Oae({hasIcon:e,icon:t,setAttributes:r}){return(0,Hu.jsxs)(ju.__experimentalVStack,{spacing:4,children:[(0,Hu.jsx)(ju.ToggleControl,{label:(0,J1.__)("Show icon button"),help:(0,J1.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:o=>r({hasIcon:o}),checked:e}),(0,Hu.jsxs)(ju.__experimentalToggleGroupControl,{className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,J1.__)("Icon"),value:t,onChange:o=>r({icon:o}),isBlock:!0,children:[(0,Hu.jsx)(ju.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,J1.__)("handle"),label:(0,Hu.jsx)(zc,{icon:"handle"})}),(0,Hu.jsx)(ju.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,J1.__)("menu"),label:(0,Hu.jsx)(zc,{icon:"menu"})})]})]})}var Yn=a(y(),1);function Fae({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:r,hasIcon:o,icon:n,setAttributes:i,overlayMenuPreviewClasses:s,overlayMenuPreviewId:l,containerStyle:c}){return e?(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsxs)(f9.Button,{__next40pxDefaultSize:!0,className:s,onClick:()=>r(!t),"aria-label":(0,m9.__)("Overlay menu controls"),"aria-controls":l,"aria-expanded":t,children:[o&&(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)(zc,{icon:n}),(0,Yn.jsx)(fa,{icon:um})]}),!o&&(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)("span",{children:(0,m9.__)("Menu")}),(0,Yn.jsx)("span",{children:(0,m9.__)("Close")})]})]}),t&&(0,Yn.jsx)(f9.__experimentalVStack,{id:l,spacing:4,style:c,children:(0,Yn.jsx)(Oae,{hasIcon:o,icon:n,setAttributes:i})})]}):null}var Vae=a(H(),1),zae=a(ae(),1),BA=a(W(),1),Hae=a(te(),1),jae=a(F(),1),Uae=a(L(),1),IA=a(I(),1);var zf=a(y(),1);function Wae({overlay:e,currentTheme:t}){let r=(0,BA.useMemo)(()=>!e||!t?null:Pa(t,e),[t,e]),{content:o,editedBlocks:n,hasResolved:i}=(0,Vae.useSelect)(l=>{if(!r)return{content:null,editedBlocks:null,hasResolved:!0};let{getEditedEntityRecord:c,hasFinishedResolution:u}=l(zae.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,BA.useMemo)(()=>r?n&&n.length>0?n:o&&typeof o=="string"?(0,Hae.parse)(o):[]:null,[r,n,o]);return e?i?(0,zf.jsx)("div",{className:"wp-block-navigation__overlay-preview","aria-label":(0,Uae.__)("Navigation Overlay template part preview"),role:"region",children:(0,zf.jsx)(IA.BlockPreview.Async,{placeholder:(0,zf.jsx)("div",{className:"wp-block-navigation__overlay-preview-placeholder"}),children:(0,zf.jsx)(IA.BlockPreview,{blocks:s,viewportWidth:400,minHeight:200})})}):(0,zf.jsx)("div",{className:"wp-block-navigation__overlay-preview-loading",children:(0,zf.jsx)(jae.Spinner,{})}):null}var kp=a(y(),1);function qae({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,$ae.useState)(!1);return(0,kp.jsx)(g9.PanelBody,{title:(0,Gae.__)("Overlay"),initialOpen:!0,children:(0,kp.jsxs)(g9.__experimentalVStack,{spacing:4,children:[(0,kp.jsx)(Aae,{overlayMenu:e,setAttributes:r}),e!=="never"&&(0,kp.jsx)(Fae,{isResponsive:d,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:s,icon:l,setAttributes:r,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,kp.jsx)(PA,{overlay:t,overlayMenu:e,setAttributes:r,onNavigateToEntityRecord:o,isCreatingOverlay:f,setIsCreatingOverlay:g}),e!=="never"&&t&&m&&!f&&(0,kp.jsx)(Wae,{overlay:t,currentTheme:p})]})})}var v9=a(H(),1),MA=a(ae(),1),t0=a(W(),1),jc=a(L(),1);var q2=a(te(),1),Yae=a(Kd(),1);var NA=a(W(),1),h9=a(I(),1),Zae=a(H(),1),Kae=a(ae(),1);function e0(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 rs({clientId:e,attributes:t}){let{updateBlockBindings:r}=(0,h9.useBlockBindingsUtils)(e),{metadata:o,id:n,kind:i,type:s}=t,l=(0,h9.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,Zae.useSelect)(h=>{if(!d||!n)return{isBoundEntityAvailable:!1,entityRecord:null};let b=i==="post-type",_=i==="taxonomy";if(!b&&!_)return{isBoundEntityAvailable:!1,entityRecord:null};if(l==="disabled")return{isBoundEntityAvailable:!0,entityRecord:null};let{getEntityRecord:v,hasFinishedResolution:w}=h(Kae.store),x=_?"taxonomy":"postType",k=s==="tag"?"post_tag":s,C=v(x,k,n);return{isBoundEntityAvailable:w("getEntityRecord",[x,k,n])?C!==void 0:!0,entityRecord:C||null}},[i,s,n,d,l]),f=(0,NA.useCallback)(()=>{c&&r({url:void 0})},[r,c]),g=(0,NA.useCallback)(h=>{let b=h?.kind??i;if(b)try{let _=e0(b);r(_)}catch(_){console.warn("Failed to create entity binding:",_.message)}},[r,i]);return{hasUrlBinding:d,isBoundEntityAvailable:p,entityRecord:m,clearBinding:f,createBinding:g}}function Qae(e){if(!e)return null;let t=N8e(e),r=Xae(t);return(0,Yae.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",r,e)}function Xae(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,q2.parse)(i.content.raw);return p||(0,q2.createBlock)("core/freeform",{content:i.content})}let s=i.children?.length?"core/navigation-submenu":"core/navigation-link",l=I8e(i,s,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?Xae(i.children,t+1):{};r={...r,...u};let d=(0,q2.createBlock)(s,l,c);return r[i.id]=d.clientId,d}),mapping:r}}function I8e({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:e0(m)}},...s?.length&&{description:s},...u==="_blank"&&{opensInNewTab:!0},...d==="core/navigation-submenu"&&{isTopLevelItem:p===0},...d==="core/navigation-link"&&{isTopLevelLink:p===0}}}function N8e(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 LA="success",y9="error",_9="pending",M8e="idle",b9=null;function L8e(e,{throwOnError:t=!1}={}){let r=(0,v9.useRegistry)(),{editEntityRecord:o}=(0,v9.useDispatch)(MA.store),[n,i]=(0,t0.useState)(M8e),[s,l]=(0,t0.useState)(null),c=(0,t0.useCallback)(async(d,p,m="publish")=>{let f,g;try{g=await r.resolveSelect(MA.store).getMenuItems({menus:d,per_page:-1,context:"view"})}catch(b){throw new Error((0,jc.sprintf)((0,jc.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:b})}if(g===null)throw new Error((0,jc.sprintf)((0,jc.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:h}=Qae(g);try{f=await e(p,h,m),await o("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(b){throw new Error((0,jc.sprintf)((0,jc.__)('Unable to create Navigation Menu "%s".'),p),{cause:b})}return f},[e,o,r]);return{convert:(0,t0.useCallback)(async(d,p,m)=>{if(b9!==d){if(b9=d,!d||!p){l("Unable to convert menu. Missing menu details."),i(y9);return}return i(_9),l(null),await c(d,p,m).then(f=>(i(LA),b9=null,f)).catch(f=>{if(l(f?.message),i(y9),b9=null,t)throw new Error((0,jc.sprintf)((0,jc.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:s}}var Jae=L8e;var die=a(te(),1),pie=a(ae(),1),mie=a(H(),1),o0=a(W(),1);var nie=a(F(),1),aie=a(ae(),1),iie=a(H(),1),x9=a(W(),1),Z2=a(L(),1);var eie=a(I(),1),tie=a(ae(),1),rie=a(H(),1);var r0=e=>e==="header"?yB:e==="footer"?uB:e==="sidebar"?XI:e==="navigation-overlay"?KB:jv;function oie(e){return(0,rie.useSelect)(t=>{if(!e)return;let{getBlock:r,getBlockParentsByBlockName:o}=t(eie.store),i=o(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:s,getEditedEntityRecord:l}=t(tie.store),c=s(),d=(c?.default_template_part_areas||[]).map(p=>({...p,icon:r0(p.icon)}));for(let p of i){let m=r(p),{theme:f=c?.stylesheet,slug:g}=m.attributes,h=Pa(f,g),b=l("postType","wp_template_part",h);if(b?.area)return d.find(_=>_.area!=="uncategorized"&&_.area===b.area)?.label}},[e])}var R8e=["postType","wp_navigation",{status:"draft",per_page:-1}],D8e=["postType","wp_navigation",{per_page:-1,status:"publish"}];function sie(e){let t=(0,x9.useContext)(nie.Disabled.Context),r=oie(t?void 0:e),o=(0,iie.useRegistry)();return(0,x9.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=o.resolveSelect(aie.store),[i,s]=await Promise.all([n(...R8e),n(...D8e)]),l=r?(0,Z2.sprintf)((0,Z2.__)("%s menu"),r):(0,Z2.__)("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 lie="success",k9="error",cie="pending",uie="idle";function fie(e){let[t,r]=(0,o0.useState)(uie),[o,n]=(0,o0.useState)(null),[i,s]=(0,o0.useState)(null),{saveEntityRecord:l,editEntityRecord:c}=(0,mie.useDispatch)(pie.store),u=sie(e);return{create:(0,o0.useCallback)(async(p=null,m=[],f)=>{if(p&&typeof p!="string")throw s("Invalid title supplied when creating Navigation Menu."),r(k9),new Error("Value of supplied title argument was not a string.");r(cie),n(null),s(null),p||(p=await u().catch(h=>{throw s(h?.message),r(k9),new Error("Failed to create title when saving new Navigation Menu.",{cause:h})}));let g={title:p,content:(0,die.serialize)(m),status:f};return l("postType","wp_navigation",g).then(h=>(n(h),r(lie),f!=="publish"&&c("postType","wp_navigation",h.id,{status:"publish"}),h)).catch(h=>{throw s(h?.message),r(k9),new Error("Unable to save new Navigation Menu",{cause:h})})},[l,c,u]),status:t,value:o,error:i,isIdle:t===uie,isPending:t===cie,isSuccess:t===lie,isError:t===k9}}var gie=a(H(),1),hie=a(I(),1),A8e=[];function bie(e){return(0,gie.useSelect)(t=>{let{getBlock:r,getBlocks:o,hasSelectedInnerBlock:n}=t(hie.store),i=r(e).innerBlocks,s=!!i?.length,l=s?A8e:o(e);return{innerBlocks:s?i:l,hasUncontrolledInnerBlocks:s,uncontrolledInnerBlocks:i,controlledInnerBlocks:l,isInnerBlockSelected:n(e,!0)}},[e])}var yie=a(qt(),1),w9=a(F(),1),vie=a(L(),1),_ie=a(y(),1),O8e=({className:e="",disabled:t,isMenuItem:r=!1})=>{let o=w9.Button;return r&&(o=w9.MenuItem),(0,_ie.jsx)(o,{variant:"link",disabled:t,className:e,href:(0,yie.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,vie.__)("Manage menus")})},xie=O8e;var Sp=a(I(),1),lx=a(F(),1),H9=a(H(),1),Cp=a(L(),1),Jie=a(W(),1);var kie=a(I(),1),S9=a(F(),1),wie=a(L(),1),T9=a(W(),1),C9=a(y(),1);function F8e({onCreateNew:e,isNotice:t=!1}){let[r,o]=(0,T9.useState)(!1),n=()=>{o(!0),e()},i=(0,T9.createInterpolateElement)((0,wie.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,C9.jsx)(S9.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:r,accessibleWhenDisabled:!0})});return t?(0,C9.jsx)(S9.Notice,{status:"warning",isDismissible:!1,children:i}):(0,C9.jsx)(kie.Warning,{children:i})}var E9=F8e;var Hf=a(te(),1);var os=a(F(),1),n0=a(H(),1),Wl=a(L(),1),jf=a(I(),1);var Qo=a(y(),1),V8e={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},z8e=["core/navigation-link","core/navigation-submenu"];function H8e({clientId:e,onClose:t,isDisabled:r,updateExpansion:o,setInsertedBlockClientId:n}){let{insertBlock:i,replaceBlock:s,replaceInnerBlocks:l}=(0,n0.useDispatch)(jf.store),{getBlock:c}=(0,n0.useSelect)(jf.store);return(0,Qo.jsx)(os.MenuItem,{icon:im,disabled:r,onClick:()=>{let d=(0,Hf.createBlock)(Xi.name,Xi.attributes),p=c(e);if(p.name==="core/navigation-submenu")i(d,p.innerBlocks.length,e,!1);else{let m=(0,Hf.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,Wl.__)("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,n0.useDispatch)(jf.store),d=(0,Wl.sprintf)((0,Wl.__)("Remove %s"),(0,jf.BlockTitle)({clientId:e,maximumLength:25})),{blockName:p,rootClientId:m,canDuplicate:f,canInsertBlock:g,isFirst:h,isLast:b}=(0,n0.useSelect)(v=>{let{getBlockRootClientId:w,getBlockName:x,canInsertBlockType:k,getDirectInsertBlock:C,getBlockIndex:S,getBlockCount:P}=v(jf.store),{getDefaultBlockName:B}=v(Hf.store),N=w(e),E=x(e),M=k(B(),N),R=N?C(N):null;return{blockName:E,rootClientId:N,canDuplicate:!!E&&(0,Hf.hasBlockSupport)(E,"multiple",!0)&&k(E,N),canInsertBlock:(M||!!R)&&!!E&&k(E,N),isFirst:S(e)===0,isLast:S(e)===P(N)-1}},[e]),_=!z8e.includes(p);return(0,Qo.jsx)(os.DropdownMenu,{icon:qy,label:(0,Wl.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:V8e,noIcons:!0,...o,children:({onClose:v})=>(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsxs)(os.MenuGroup,{children:[(0,Qo.jsx)(os.MenuItem,{icon:OP,disabled:h,accessibleWhenDisabled:!0,onClick:()=>{i([e],m),v()},children:(0,Wl.__)("Move up")}),(0,Qo.jsx)(os.MenuItem,{icon:jb,disabled:b,accessibleWhenDisabled:!0,onClick:()=>{n([e],m),v()},children:(0,Wl.__)("Move down")}),(0,Qo.jsx)(H8e,{clientId:e,onClose:v,isDisabled:_,updateExpansion:t,setInsertedBlockClientId:r}),f&&(0,Qo.jsx)(os.MenuItem,{onClick:()=>{l([e]),v()},children:(0,Wl.__)("Duplicate")}),g&&(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsx)(os.MenuItem,{onClick:()=>{c(e),v()},children:(0,Wl.__)("Add before")}),(0,Qo.jsx)(os.MenuItem,{onClick:()=>{u(e),v()},children:(0,Wl.__)("Add after")})]})]}),(0,Qo.jsx)(os.MenuGroup,{children:(0,Qo.jsx)(os.MenuItem,{onClick:()=>{s([e],!1),v()},children:d})})]})})}var qA=a(I(),1),F9=a(H(),1);var Jo=a(F(),1),sr=a(L(),1),Uie=a(ma(),1),tx=a(I(),1),D9=a(H(),1),Wie=a(ae(),1);var Tie=a(W(),1),Eie=a(H(),1),Pie=a(I(),1),Bie=a(ma(),1),Iie=a(P9(),1);var RA=a(P9(),1),K2=a(qt(),1),j8e=(e,t)=>{if(!e||!t)return!1;let r=g=>g?g.replace(/\/+$/,""):"",o=(g,h=null)=>{try{let b=h||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(g,b)}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,K2.getPath)(n.toString())),u=r((0,K2.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)},Y2=(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,"")??"",_=f&&f!==o&&g!==h?(0,RA.escapeHTML)(f):o||(0,RA.escapeHTML)(h),v=m==="post_tag"?"tag":m.replace("-","_"),w=["post","page","tag","category"].indexOf(v)>-1,k=!p&&!w||p==="custom"?"custom":p,C={...c!==void 0?{url:c&&encodeURI((0,K2.safeDecodeURI)(c))}:{},..._&&{label:_},...u!==void 0&&{opensInNewTab:u},...k&&{kind:k},...v&&v!=="URL"&&{type:v}};c&&!d&&r.id?j8e(r.url,c)&&(C.id=void 0,C.kind="custom",C.type="custom"):d&&Number.isInteger(d)?C.id=d:r.id&&(C.kind=k,C.type=v),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 Uf({clientId:e,attributes:t,setAttributes:r,allowTextUpdate:o=!1}){let{updateBlockAttributes:n}=(0,Eie.useDispatch)(Pie.store),{hasUrlBinding:i,createBinding:s,clearBinding:l}=rs({clientId:e,attributes:t});return(0,Tie.useCallback)(c=>{if(!c)return;let u={url:c.url,kind:c.kind,type:c.type,id:c.id},d=t.label?(0,Bie.__unstableStripHTML)(t.label):"",p=c.title??"",m=o&&c.title!==void 0&&p!==d,f=m?{label:(0,Iie.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:b}=Y2(u,r,t);h?s(b):l(),Object.keys(f).length&&n(e,f)}},[t,o,e,i,s,l,r,n])}var L9=a(ma(),1),Wf=a(F(),1),J2=a(L(),1),R9=a(I(),1),Qn=a(W(),1),Aie=a(ae(),1);var zA=a(_e(),1);var Oie=a(qt(),1);var di=a(F(),1),ns=a(L(),1),X2=a(H(),1),N9=a(ae(),1),Mie=a(br(),1),AA=a($o(),1),OA=a(W(),1);var Nie=a(F(),1),B9=a(L(),1);var Q2=a(_e(),1);var wp=a(y(),1);function U8e({className:e,onBack:t}){return(0,wp.jsx)(Nie.Button,{className:e,icon:(0,B9.isRTL)()?RP:NP,onClick:r=>{r.preventDefault(),t()},size:"small",children:(0,B9.__)("Back")})}function DA({className:e,title:t,description:r,onBack:o,children:n}){let i=(0,Q2.useInstanceId)(DA,"link-ui-dialog-title"),s=(0,Q2.useInstanceId)(DA,"link-ui-dialog-description"),l=(0,Q2.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,wp.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":s,ref:l,children:[(0,wp.jsxs)(ln,{children:[(0,wp.jsx)("h2",{id:i,children:t}),(0,wp.jsx)("p",{id:s,children:r})]}),(0,wp.jsx)(U8e,{className:c,onBack:o}),n]})}var I9=DA;var js=a(y(),1);function Lie({postType:e,onBack:t,onPageCreated:r,initialTitle:o=""}){let[n,i]=(0,OA.useState)(o),[s,l]=(0,OA.useState)(!0),c=n.trim().length>0,{lastError:u,isSaving:d}=(0,X2.useSelect)(b=>({lastError:b(N9.store).getLastEntitySaveError("postType",e),isSaving:b(N9.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,X2.useDispatch)(N9.store),{createSuccessNotice:m,createErrorNotice:f}=(0,X2.useDispatch)(Mie.store);async function g(b){if(b.preventDefault(),!(d||!c))try{let _=await p("postType",e,{title:n,status:s?"publish":"draft"},{throwOnError:!0});if(_){let v={id:_.id,type:e,title:(0,AA.decodeEntities)(_.title.rendered),url:_.link,kind:"post-type"};m((0,ns.sprintf)((0,ns.__)("%s page created successfully."),(0,AA.decodeEntities)(_.title.rendered)),{type:"snackbar",id:"page-created-success"}),r(v)}}catch{f((0,ns.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let h=d||!c;return(0,js.jsx)(I9,{className:"link-ui-page-creator",title:(0,ns.__)("Create page"),description:(0,ns.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,js.jsx)(di.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,js.jsx)("form",{onSubmit:g,children:(0,js.jsxs)(di.__experimentalVStack,{spacing:4,children:[(0,js.jsx)(di.TextControl,{label:(0,ns.__)("Title"),onChange:i,placeholder:(0,ns.__)("No title"),value:n}),(0,js.jsx)(di.CheckboxControl,{label:(0,ns.__)("Publish"),help:(0,ns.__)("Turn off to save as a draft. Drafts won't appear on your site until published."),checked:s,onChange:l}),u&&(0,js.jsx)(di.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,js.jsxs)(di.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,js.jsx)(di.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:d,accessibleWhenDisabled:!0,children:(0,ns.__)("Cancel")}),(0,js.jsx)(di.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:d,"aria-disabled":h,children:(0,ns.__)("Create page")})]})]})})})})}var FA=a(L(),1),Rie=a(H(),1),M9=a(I(),1);var VA=a(y(),1),{PrivateQuickInserter:W8e}=le(M9.privateApis);function G8e({clientId:e,onBack:t,onBlockInsert:r}){let{rootBlockClientId:o}=(0,Rie.useSelect)(n=>{let{getBlockRootClientId:i}=n(M9.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,VA.jsx)(I9,{className:"link-ui-block-inserter",title:(0,FA.__)("Add block"),description:(0,FA.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,VA.jsx)(W8e,{rootClientId:o,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!r,onSelect:r||void 0,hasSearch:!1})}):null}var Die=G8e;var pi=a(y(),1);function HA(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 $8e(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}=ex({url:o,entityRecord:c,type:i,hasBinding:u,isEntityAvailable:d}),{clientId:f}=e,g=i||"page",[h,b]=(0,Qn.useState)(!1),[_,v]=(0,Qn.useState)(!1),[w,x]=(0,Qn.useState)(null),[k,C]=(0,Qn.useState)(""),S=(0,Qn.useRef)(""),P=z=>{S.current=z,C(z)},B=(0,Qn.useRef)(),N=(0,Qn.useRef)(),E=(0,Qn.useRef)(),M=(0,Aie.useResourcePermissions)({kind:"postType",name:g}),{isBoundEntityAvailable:R}=rs({clientId:f,attributes:e.link}),O=(0,Qn.useMemo)(()=>({url:o,opensInNewTab:n,title:r&&(0,L9.__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]),j=z=>{e.onChange(z),v(!1),x(!0),P("")},V=(0,zA.useInstanceId)(Uu,"link-ui-link-control__title"),G=(0,zA.useInstanceId)(Uu,"link-ui-link-control__description");(0,Qn.useEffect)(()=>{w&&B.current&&(w?.current?w.current.focus():(L9.focus.tabbable.find(B.current)[0]||B.current).focus(),x(!1))},[w]);let $=(0,R9.useBlockEditingMode)();return(0,pi.jsxs)(Wf.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!h&&!_&&(0,pi.jsxs)("div",{ref:B,role:"dialog","aria-labelledby":V,"aria-describedby":G,children:[(0,pi.jsxs)(ln,{children:[(0,pi.jsx)("h2",{id:V,children:(0,J2.__)("Add link")}),(0,pi.jsx)("p",{id:G,children:(0,J2.__)("Search for and add a link to your Navigation.")})]}),(0,pi.jsx)(R9.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:O,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:HA(i,s),onChange:e.onChange,onInputChange:z=>{S.current=z},inputValue:k,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:R,forceIsEditingLink:O?.url?!1:void 0,renderControlBottom:()=>O?.url?.length?null:(0,pi.jsx)(q8e,{addPageButtonRef:N,addBlockButtonRef:E,setAddingBlock:()=>{b(!0)},setAddingPage:()=>{v(!0)},canAddPage:$!=="disabled"&&M?.canCreate&&i==="page",canAddBlock:$!=="disabled"})})]}),h&&(0,pi.jsx)(Die,{clientId:e.clientId,onBack:()=>{b(!1),x(E),P(S.current)},onBlockInsert:e?.onBlockInsert}),_&&(0,pi.jsx)(Lie,{postType:g,onBack:()=>{v(!1),x(N),P(S.current)},onPageCreated:j,initialTitle:S.current&&!(0,Oie.isURL)(S.current)?S.current:""})]})}var Uu=(0,Qn.forwardRef)($8e),q8e=({addPageButtonRef:e,addBlockButtonRef:t,setAddingBlock:r,setAddingPage:o,canAddPage:n,canAddBlock:i})=>{let s="listbox";return!n&&!i?null:(0,pi.jsxs)(Wf.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,pi.jsx)(Wf.Button,{__next40pxDefaultSize:!0,ref:e,icon:eh,onClick:l=>{l.preventDefault(),o(!0)},"aria-haspopup":s,children:(0,J2.__)("Create page")}),i&&(0,pi.jsx)(Wf.Button,{__next40pxDefaultSize:!0,ref:t,icon:eh,onClick:l=>{l.preventDefault(),r(!0)},"aria-haspopup":s,children:(0,J2.__)("Add block")})]})};var _n=a(L(),1),WA=a(qt(),1),Fie=a(I(),1),jA=a(H(),1),UA=a(ae(),1);var{useRemoteUrlData:Z8e,isHashLink:Vie,isRelativePath:K8e}=le(Fie.privateApis);function Y8e(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Q8e(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 X8e({linkUrl:e,homeUrl:t}={}){if(!e)return{displayUrl:"",isExternal:!1};let r=(0,WA.safeDecodeURI)(e),o=!1;if(K8e(e)||Vie(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 J8e({url:e,homeUrl:t,type:r,isExternal:o,entityStatus:n,hasBinding:i,isEntityAvailable:s}){let l=[];if(e&&(o?l.push({label:(0,_n.__)("External link"),intent:"none"}):Vie(e)?l.push({label:(0,_n.__)("Internal link"),intent:"none"}):Q8e(e,t)?l.push({label:(0,_n.__)("Homepage"),intent:"none"}):r&&r!=="custom"?l.push({label:Y8e(r),intent:"none"}):l.push({label:(0,_n.__)("Page"),intent:"none"})),i&&!s)l.push({label:(0,_n.sprintf)((0,_n.__)("Missing %s"),r),intent:"high"});else if(!e)l.push({label:(0,_n.__)("No link selected"),intent:"high"});else if(n){let u={publish:{label:(0,_n.__)("Published"),intent:"stable"},future:{label:(0,_n.__)("Scheduled"),intent:"informational"},draft:{label:(0,_n.__)("Draft"),intent:"low"},pending:{label:(0,_n.__)("Pending"),intent:"low"},private:{label:(0,_n.__)("Private"),intent:"informational"},trash:{label:(0,_n.__)("Trashed"),intent:"high"}}[n];u&&l.push(u)}return l}function eTe(e){let t=e?.title;return typeof t=="string"?t:t&&"rendered"in t?t.rendered||(0,_n.__)("(no title)"):e?.name}function ex({url:e,entityRecord:t,type:r,hasBinding:o,isEntityAvailable:n}){let i=(0,jA.useSelect)(f=>f(UA.store).getEntityRecord("root","__unstableBase")?.home,[]),s=eTe(t),{richData:l}=Z8e(s?null:e),{displayUrl:c,isExternal:u}=X8e({linkUrl:e,homeUrl:i}),d=(0,jA.useSelect)(f=>{if(!t?.featured_media)return null;let{getEntityRecord:g}=f(UA.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=J8e({url:e,homeUrl:i,type:r,isExternal:u,entityStatus:t?.status,hasBinding:o,isEntityAvailable:n});return{title:e?s||l?.title||(0,WA.safeDecodeURI)(e):(0,_n.__)("Add link"),url:c,image:d,badges:p}}var zie=a(H(),1),Hie=a(ae(),1),jie=a(I(),1),Gf=(e,t,r,o)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(r),s=(0,jie.useBlockEditingMode)(),{postStatus:l,isDeleted:c}=(0,zie.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(s==="disabled"||!o)return{postStatus:null,isDeleted:!1};let{getEntityRecord:m,hasFinishedResolution:f}=p(Hie.store),g=m("postType",t,r),b=f("getEntityRecord",["postType",t,r])&&g===void 0;return{postStatus:g?.status,isDeleted:b}},[n,s,o,t,r]);return[n&&i&&(c||l&&l==="trash"),l==="draft"]};var Xo=a(y(),1),{LinkPicker:tTe,isHashLink:rTe,isRelativePath:oTe}=le(tx.privateApis);function nTe(e,t){if(t==="post-type")switch(e){case"post":return(0,sr.__)("post");case"page":return(0,sr.__)("page");default:return e||(0,sr.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,sr.__)("category");case"tag":return(0,sr.__)("tag");default:return e||(0,sr.__)("term")}return e||(0,sr.__)("item")}function rx({attributes:e,setAttributes:t,clientId:r,isLinkEditable:o=!0}){let{label:n,url:i,description:s,rel:l,opensInNewTab:c}=e,u=ee(),{hasUrlBinding:d,isBoundEntityAvailable:p,entityRecord:m}=rs({clientId:r,attributes:e}),[f,g]=Gf(e.kind,e.type,m?.id,d),h="";f||d&&!p?h=A9():g&&(h=aTe({type:e.type,kind:e.kind}));let b=Uf({clientId:r,attributes:e,setAttributes:t}),_=(0,D9.useSelect)(P=>P(tx.store).getSettings().onNavigateToEntityRecord,[]),v=(0,D9.useSelect)(P=>P(Wie.store).getEntityRecord("root","__unstableBase")?.home,[]),x=(0,D9.useSelect)(P=>P(tx.store).getBlockEditingMode(r),[r])==="contentOnly",k=ex({url:i,entityRecord:m,type:e.type,hasBinding:d,isEntityAvailable:p}),C=!!i&&(!rTe(i)||oTe(i)&&!i.startsWith("/")),S=C&&i.startsWith("/")&&v?v+i:i;return(0,Xo.jsxs)(Jo.__experimentalToolsPanel,{label:(0,sr.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,sr.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,Xo.jsx)(Jo.TextControl,{label:(0,sr.__)("Text"),value:n?(0,Uie.__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,sr.__)("Link to"),onDeselect:()=>t({url:void 0,id:void 0,kind:void 0,type:void 0}),isShownByDefault:!0,children:(0,Xo.jsx)(tTe,{preview:k,onSelect:b,suggestionsQuery:HA(e.type,e.kind),label:(0,sr.__)("Link to"),help:h||void 0})}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,sr.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,Xo.jsx)(Jo.CheckboxControl,{label:(0,sr.__)("Open in new tab"),checked:c,onChange:P=>t({opensInNewTab:P})})}),!!i&&d&&p&&m?.id&&e.kind==="post-type"&&_&&(0,Xo.jsx)(Jo.Button,{variant:"secondary",onClick:()=>{_({postId:m.id,postType:e.type})},__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,sr.__)("Edit")}),C&&(0,Xo.jsx)(Jo.Button,{variant:"secondary",href:S,target:"_blank",icon:ny,iconPosition:"right",__next40pxDefaultSize:!0,className:"navigation-link-to__action-button",children:(0,sr.__)("View")})]}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,sr.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!x,children:(0,Xo.jsx)(Jo.TextareaControl,{label:(0,sr.__)("Description"),value:s||"",onChange:P=>{t({description:P})},help:(0,sr.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,Xo.jsx)(Jo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,sr.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!x,children:(0,Xo.jsx)(Jo.TextControl,{label:(0,sr.__)("Rel attribute"),value:l||"",onChange:P=>{t({rel:P})},autoComplete:"off",help:(0,sr.__)("The relationship of the linked URL as space-separated link types.")})})]})}function A9(){return(0,sr.__)("This link is invalid and will not appear on your site. Please update the link.")}function aTe({type:e,kind:t}){let r=nTe(e,t);return(0,sr.sprintf)((0,sr.__)("This link is to a draft %1$s and will not appear on your site until the %1$s is published."),r)}var GA=a(L(),1),Gie=a($o(),1),$A=a(y(),1);function ox({label:e,isInvalid:t,isDraft:r,className:o="wp-block-navigation-link__label"}){if(!t&&!r)return null;let n=t?(0,GA.__)("Invalid"):(0,GA.__)("Draft");return(0,$A.jsx)("div",{className:T("wp-block-navigation-link__placeholder-text",o,{"is-invalid":t,"is-draft":r}),children:(0,$A.jsx)("span",{children:`${(0,Gie.decodeEntities)(e)} (${n})`.trim()})})}var $ie=a(H(),1),qie=a(I(),1);function nx(e){return(0,$ie.useSelect)(t=>{let{getSelectedBlockClientId:r,hasSelectedInnerBlock:o,getBlockParentsByBlockName:n}=t(qie.store),i=r(),s=n(e,"core/navigation")[0];return i===s||o(s,!0)},[e])}var O9=a(W(),1),ax=e=>{let[t,r]=(0,O9.useState)(!1);return(0,O9.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 ix(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 Zie=a(y(),1),iTe=["core/navigation-link","core/navigation-submenu"];function V9({insertedBlockClientId:e,setInsertedBlockClientId:t}){let{updateBlockAttributes:r,removeBlock:o}=(0,F9.useDispatch)(qA.store),{insertedBlockName:n,insertedBlockAttributes:i}=(0,F9.useSelect)(m=>{let{getBlockName:f,getBlockAttributes:g}=m(qA.store);return{insertedBlockName:f(e),insertedBlockAttributes:g(e)}},[e]),s=iTe?.includes(n),{createBinding:l,clearBinding:c}=rs({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,Zie.jsx)(Uu,{clientId:e,link:i,onBlockInsert:m=>{e&&m&&o(e,!1),t(m?.clientId??null)},onClose:()=>{u()},onChange:m=>{let{isEntityLink:f,attributes:g}=Y2(m,d(e),i);f?l(g):c(),t(null)}})}var z9=a(F(),1),Kie=a(L(),1),Yie=a(I(),1);var sx=a(y(),1),{useBlockDisplayTitle:sTe}=le(Yie.privateApis),lTe=(0,Kie.__)("Switch to '%s'");function Qie({clientId:e,blockEditingMode:t,currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:s,createNavigationMenuIsError:l,isManageMenusButtonDisabled:c}){let u=sTe({clientId:e,context:"list-view"});return(0,sx.jsxs)(z9.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,sx.jsx)(z9.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:u}),t==="default"&&(0,sx.jsx)($1,{currentMenuId:r,onSelectClassicMenu:o,onSelectNavigationMenu:n,onCreateNew:i,createNavigationMenuIsSuccess:s,createNavigationMenuIsError:l,actionLabel:lTe,isManageMenusButtonDisabled:c})]})}var Ba=a(y(),1),cTe=(0,Cp.__)("Switch to '%s'"),{PrivateListView:uTe,PrivateBlockContext:dTe,useListViewPanelState:pTe,useBlockDisplayTitle:mTe}=le(Sp.privateApis),Xie=({clientId:e,currentMenuId:t,isLoading:r,isNavigationMenuMissing:o,onCreateNew:n,expandRevision:i})=>{let s=(0,H9.useSelect)(d=>!!d(Sp.store).getBlockCount(e),[e]),{openListViewContentPanel:l}=le((0,H9.useDispatch)(Sp.store)),{navigationMenu:c}=W1(t);if(t&&o)return(0,Ba.jsx)(E9,{onCreateNew:n,isNotice:!0});if(r)return(0,Ba.jsx)(lx.Spinner,{});let u=c?(0,Cp.sprintf)((0,Cp.__)("Structure for Navigation Menu: %s"),c?.title||(0,Cp.__)("Untitled menu")):(0,Cp.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,Ba.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!s&&(0,Ba.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,Cp.__)("This Navigation Menu is empty.")}),(0,Ba.jsx)(uTe,{rootClientId:e,isExpanded:!0,description:u,showAppender:!0,blockSettingsMenu:Cie,additionalBlockContent:V9,onSelect:l},`${e}-${i}`)]})},fTe=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,Jie.useContext)(dTe),p=mTe({clientId:t,context:"list-view"}),m=d,{isOpened:f,expandRevision:g,handleToggle:h}=pTe(t);return m?(0,Ba.jsx)(Sp.InspectorControls,{group:"list",children:(0,Ba.jsxs)(lx.PanelBody,{title:p,opened:f,onToggle:h,children:[u==="default"&&(0,Ba.jsx)($1,{currentMenuId:n,onSelectClassicMenu:s,onSelectNavigationMenu:l,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,actionLabel:cTe,isManageMenusButtonDisabled:c}),(0,Ba.jsx)(Xie,{...e,expandRevision:g})]})}):(0,Ba.jsx)(Sp.InspectorControls,{group:"list",children:(0,Ba.jsxs)(lx.PanelBody,{title:null,children:[(0,Ba.jsx)(Qie,{clientId:t,blockEditingMode:u,currentMenuId:n,onSelectClassicMenu:s,onSelectNavigationMenu:l,onCreateNew:i,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:o,isManageMenusButtonDisabled:c}),(0,Ba.jsx)(Xie,{...e,expandRevision:g})]})})},j9=fTe;var ZA=a(y(),1);function U9({id:e,children:t}){return(0,ZA.jsx)(ln,{children:(0,ZA.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var ese=a(ae(),1),W9=a(L(),1);var tse=a(y(),1);function rse({id:e}){let[t]=(0,ese.useEntityProp)("postType","wp_navigation","title"),r=(0,W9.sprintf)((0,W9.__)('Navigation Menu: "%s"'),t);return(0,tse.jsx)(U9,{id:e,children:r})}var KA=a(H(),1),ose=a(ae(),1);function cx(){let e=(0,KA.select)("core/editor");if(!e)return!1;let{getCurrentPostType:t,getCurrentPostId:r}=e,{getEditedEntityRecord:o}=(0,KA.select)(ose.store),n=t?.(),i=r?.();return n==="wp_template_part"&&i?o("postType","wp_template_part",i)?.area===Vc:!1}var G9=a(I(),1);var{getResponsiveMediaQueries:gTe}=le(f1),nse={left:"flex-start",center:"center",right:"flex-end","space-between":"space-between"};function ase({clientId:e,layout:t,style:r}){let[o]=(0,G9.useSettings)("viewport"),n=`#block-${e}`,i=Object.entries(gTe(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(nse,u.justifyContent)?u.justifyContent:"left",p=nse[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},b=Object.entries(h).map(([_,v])=>`${_}: ${v};`).join("");return`${l}{${n} {${b}}}`}).join("");(0,G9.useStyleOverride)({css:i})}var Te=a(y(),1),{isNavigationPostEditorKey:hTe}=le(st.privateApis);function bTe({clientId:e}){let{insertBlock:t}=(0,Gl.useDispatch)(st.store),{getBlockCount:r}=(0,Gl.useSelect)(st.store),o=(0,vr.useCallback)(()=>{let n=r(e),i=(0,ise.createBlock)(Xi.name,{kind:Xi.attributes.kind,type:Xi.attributes.type});t(i,n,e)},[e,t,r]);return(0,Te.jsx)(st.BlockControls,{children:(0,Te.jsx)(io.ToolbarGroup,{children:(0,Te.jsx)(io.ToolbarButton,{name:"add-page",icon:hu,onClick:o,children:(0,Ht.__)("Add page")})})})}function yTe({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,b]=(0,vr.useState)(),[_,v]=(0,vr.useState)(),w=(0,Gl.useSelect)(()=>cx(),[]);(0,vr.useEffect)(()=>{TA(u.current,g,m);let C=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');C&&(n.color||s.color)&&TA(C,v,b)},[n.color,s.color,u]);let x=(0,st.__experimentalUseMultipleOriginColorsAndGradients)();if(!x.hasColorsOrGradients)return null;let k=[{colorValue:e.color,label:(0,Ht.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:r.color,label:(0,Ht.__)("Background"),onColorChange:o,resetAllFilter:()=>o(),clearable:!0,enableAlpha:!0}];return k.push({colorValue:n.color,label:d||w?(0,Ht.__)("Submenu text"):(0,Ht.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:s.color,label:d||w?(0,Ht.__)("Submenu background"):(0,Ht.__)("Submenu & overlay background"),onColorChange:l,resetAllFilter:()=>l(),clearable:!0,enableAlpha:!0}),(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(st.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:k,panelId:c,...x,gradients:[],disableCustomGradients:!0}),(0,Te.jsx)(st.ContrastChecker,{backgroundColor:p,textColor:f}),(0,Te.jsx)(st.ContrastChecker,{backgroundColor:h,textColor:_})]})}function vTe({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:b,overlay:_,showSubmenuIcon:v,templateLock:w,layout:{justifyContent:x,orientation:k="horizontal",flexWrap:C="wrap"}={},hasIcon:S,icon:P="handle"}=e,B=e.ref;ase({clientId:r,layout:e.layout,style:e.style});let N=(0,vr.useCallback)(pr=>{t({ref:pr})},[t]),E=`navigationMenu/${B}`,M=(0,st.useHasRecursion)(E),{isPreviewMode:R,onNavigateToEntityRecord:O,currentTheme:j,editorDisabledResponsive:V,hasSelectedStyleState:G}=(0,Gl.useSelect)(pr=>{let{getSettings:cl,hasSelectedBlockStyleState:oc}=pr(st.store),nm=cl();return{isPreviewMode:nm.isPreviewMode,onNavigateToEntityRecord:nm?.onNavigateToEntityRecord,currentTheme:pr(Tp.store).getCurrentTheme()?.stylesheet,editorDisabledResponsive:!!nm?.[hTe],hasSelectedStyleState:oc(r)}},[r]),$=R?!1:M,z=(0,st.useBlockEditingMode)(),{records:K}=(0,Tp.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),[q,Y]=s9({name:"block-library/core/navigation/status"}),[oe,Z]=s9({name:"block-library/core/navigation/classic-menu-conversion"}),[U,X]=s9({name:"block-library/core/navigation/permissions/update"}),{create:Q,status:ie,error:me,value:xe,isPending:Be,isSuccess:se,isError:he}=fie(r),ze=async()=>{await Q("")},{hasUncontrolledInnerBlocks:qe,uncontrolledInnerBlocks:ce,isInnerBlockSelected:ge,innerBlocks:Qe}=bie(r),{replaceInnerBlocks:ye,selectBlock:fe,__unstableMarkNextChangeAsNotPersistent:de}=(0,Gl.useDispatch)(st.store);(0,vr.useEffect)(()=>{k==="horizontal"&&h==="always"&&(de(),t({submenuVisibility:"hover",showSubmenuIcon:!0}))},[k,h,t,de]);let re=(0,vr.useRef)(!1),Pe=(0,Gl.useSelect)(pr=>{if(Qe.some(Rg=>Rg.name==="core/navigation-submenu"))return!0;let oc=Qe.find(Rg=>Rg.name==="core/page-list");if(!oc)return re.current=!1,!1;if(re.current)return!0;let{getBlocks:nm}=pr(st.store);return nm(oc.clientId).length>0?(re.current=!0,!0):!1},[Qe]),{records:Se}=(0,Tp.useEntityRecords)("postType","wp_template_part",{per_page:-1}),rr=Se?.some(pr=>pr.area===Vc)??!1,[Ft,gr]=(0,vr.useState)(!1),[Wo,Nn]=(0,vr.useState)(!1),{hasResolvedNavigationMenus:So,isNavigationMenuResolved:sa,isNavigationMenuMissing:la,canUserUpdateNavigationMenu:Mn,hasResolvedCanUserUpdateNavigationMenu:ca,canUserDeleteNavigationMenu:md,hasResolvedCanUserDeleteNavigationMenu:pu,canUserCreateNavigationMenus:za,isResolvingCanUserCreateNavigationMenus:Ha,hasResolvedCanUserCreateNavigationMenus:il}=W1(B),ja=So&&la,{convert:sl,status:bs,error:fd}=Jae(Q),ua=bs===_9,Ln=(0,vr.useCallback)((pr,cl={focusNavigationBlock:!1})=>{let{focusNavigationBlock:oc}=cl;N(pr),oc&&fe(r)},[fe,r,N]),wi=!la&&sa,Rn=qe&&!wi,{getNavigationFallbackId:ne}=le((0,Gl.useSelect)(Tp.store)),He=B||Rn?null:ne();(0,vr.useEffect)(()=>{B||Rn||!He||(de(),N(He))},[B,N,Rn,He,de]);let bt=(0,vr.useRef)(),pe=(0,Gl.useSelect)(()=>cx(),[]),ve=pe?"div":"nav",Ye=!B&&!Be&&!ua&&So&&K?.length===0&&!qe,dt=!So||Be||ua||!!(B&&!wi&&!ua),$t=e.style?.typography?.textDecoration,nt=(0,Gl.useSelect)(pr=>pr(st.store).__unstableHasActiveBlockOverlayActive(r),[r]),Ir=(0,vr.useRef)(!1);(0,vr.useEffect)(()=>{pe&&(b!=="never"&&t({overlayMenu:"never"}),!Ir.current&&!B&&(Ir.current=!0,t({submenuVisibility:"always",layout:{...e.layout,orientation:"vertical"},showSubmenuIcon:!1})))},[e.layout,pe,b,B,t]);let Ua=b!=="never"&&!V,Ci=(0,st.useBlockProps)({ref:bt,className:T(n,{"items-justified-right":x==="right","items-justified-space-between":x==="space-between","items-justified-left":x==="left","items-justified-center":x==="center","is-vertical":k==="vertical","no-wrap":C==="nowrap","is-responsive":Ua,"has-text-color":!!l.color||!!l?.class,[(0,st.getColorClassName)("color",l?.slug)]:!!l?.slug,"has-background":!!i.color||i.class,[(0,st.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${$t}`]:$t,"block-editor-block-content-overlay":nt},g),style:{color:!l?.slug&&l?.color,backgroundColor:!i?.slug&&i?.color}}),ll=async pr=>sl(pr.id,pr.name,"draft"),rm=pr=>{Ln(pr)};(0,vr.useEffect)(()=>{Y(),Be&&(0,$9.speak)((0,Ht.__)("Creating Navigation Menu.")),se&&(Ln(xe?.id,{focusNavigationBlock:!0}),q((0,Ht.__)("Navigation Menu successfully created."))),he&&q((0,Ht.__)("Failed to create Navigation Menu."))},[ie,me,xe?.id,he,se,Be,Ln,Y,q]),(0,vr.useEffect)(()=>{Z(),bs===_9&&(0,$9.speak)((0,Ht.__)("Classic menu importing.")),bs===LA&&(oe((0,Ht.__)("Classic menu imported successfully.")),Ln(xe?.id,{focusNavigationBlock:!0})),bs===y9&&oe((0,Ht.__)("Classic menu import failed."))},[bs,fd,Z,oe,xe?.id,Ln]),(0,vr.useEffect)(()=>{!o&&!ge&&X(),(o||ge)&&(B&&!ja&&ca&&!Mn&&U((0,Ht.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!B&&il&&!za&&U((0,Ht.__)("You do not have permission to create Navigation Menus.")))},[o,ge,Mn,ca,za,il,B,X,U,ja]);let BE=za||Mn,IE=T("wp-block-navigation__overlay-menu-preview",{open:Wo}),Si=!v&&h!=="click"&&h!=="always"?(0,Ht.__)('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.'):"",Bk=(0,vr.useRef)(!0);(0,vr.useEffect)(()=>{!Bk.current&&Si&&(0,$9.speak)(Si),Bk.current=!1},[Si]);let Ik=(0,sse.useInstanceId)(wae,"overlay-menu-preview"),Nk=ee(),rc=(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(st.InspectorControls,{children:Pe&&(0,Te.jsx)(io.__experimentalToolsPanel,{label:(0,Ht.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,submenuVisibility:"hover",overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Nk,children:Pe&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,Ht.__)("Submenus")}),(0,Te.jsx)(io.__experimentalToolsPanelItem,{hasValue:()=>h!=="hover",label:(0,Ht.__)("Submenu Visibility"),onDeselect:()=>t({submenuVisibility:"hover"}),isShownByDefault:!0,children:(0,Te.jsxs)(io.__experimentalToggleGroupControl,{label:(0,Ht.__)("Submenu Visibility"),value:h,onChange:pr=>{let cl={submenuVisibility:pr};pr==="always"?cl.showSubmenuIcon=!1:(pr==="click"||h==="always")&&(cl.showSubmenuIcon=!0),t(cl)},isBlock:!0,children:[(0,Te.jsx)(io.__experimentalToggleGroupControlOption,{value:"hover",label:(0,Ht.__)("Hover")}),(0,Te.jsx)(io.__experimentalToggleGroupControlOption,{value:"click",label:(0,Ht.__)("Click")}),k==="vertical"&&(0,Te.jsx)(io.__experimentalToggleGroupControlOption,{value:"always",label:(0,Ht.__)("Always")})]})}),(0,Te.jsx)(io.__experimentalToolsPanelItem,{hasValue:()=>!v,label:(0,Ht.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:h==="click"||h==="always",isShownByDefault:!0,children:(0,Te.jsx)(io.ToggleControl,{checked:v,onChange:pr=>{t({showSubmenuIcon:pr})},disabled:h==="click"||h==="always",label:(0,Ht.__)("Show arrow")})}),Si&&(0,Te.jsx)(io.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Si})]})})}),!pe&&(0,Te.jsx)(st.InspectorControls,{children:(0,Te.jsx)(qae,{overlayMenu:b,overlay:_,setAttributes:t,onNavigateToEntityRecord:O,overlayMenuPreview:Wo,setOverlayMenuPreview:Nn,hasIcon:S,icon:P,overlayMenuPreviewClasses:IE,overlayMenuPreviewId:Ik,isResponsive:Ua,currentTheme:j,hasOverlays:rr})}),!G&&(0,Te.jsx)(st.InspectorControls,{group:"color",children:(0,Te.jsx)(yTe,{textColor:l,setTextColor:c,backgroundColor:i,setBackgroundColor:s,overlayTextColor:p,setOverlayTextColor:m,overlayBackgroundColor:u,setOverlayBackgroundColor:d,clientId:r,navRef:bt,hasCustomOverlay:!!_})})]}),ys=`${r}-desc`,om=b==="always",Lg=!BE||!So;if(Rn&&!Be)return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(j9,{clientId:r,createNavigationMenuIsSuccess:se,createNavigationMenuIsError:he,currentMenuId:B,isNavigationMenuMissing:la,isManageMenusButtonDisabled:Lg,onCreateNew:ze,onSelectClassicMenu:ll,onSelectNavigationMenu:rm,isLoading:dt,blockEditingMode:z}),z==="default"&&rc,(0,Te.jsxs)(ve,{...Ci,"aria-describedby":Ye?void 0:ys,children:[(0,Te.jsx)(U9,{id:ys,children:(0,Ht.__)("Unsaved Navigation Menu.")}),(0,Te.jsx)(kA,{id:r,onToggle:gr,isOpen:Ft,hasIcon:S,icon:P,isResponsive:Ua,isHiddenByDefault:om,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:O,children:(0,Te.jsx)(bae,{createNavigationMenu:Q,blocks:ce,hasSelection:o||ge})})]})]});if(B&&la)return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(j9,{clientId:r,createNavigationMenuIsSuccess:se,createNavigationMenuIsError:he,currentMenuId:B,isNavigationMenuMissing:la,isManageMenusButtonDisabled:Lg,onCreateNew:ze,onSelectClassicMenu:ll,onSelectNavigationMenu:rm,isLoading:dt,blockEditingMode:z}),(0,Te.jsx)(ve,{...Ci,children:(0,Te.jsx)(E9,{onCreateNew:ze})})]});if(wi&&$)return(0,Te.jsx)("div",{...Ci,children:(0,Te.jsx)(st.Warning,{children:(0,Ht.__)("Block cannot be rendered inside itself.")})});let NE=f||Jne;return Ye&&f?(0,Te.jsx)(ve,{...Ci,children:(0,Te.jsx)(NE,{isSelected:o,currentMenuId:B,clientId:r,canUserCreateNavigationMenus:za,isResolvingCanUserCreateNavigationMenus:Ha,onSelectNavigationMenu:rm,onSelectClassicMenu:ll,onCreateEmpty:ze})}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(j9,{clientId:r,createNavigationMenuIsSuccess:se,createNavigationMenuIsError:he,currentMenuId:B,isNavigationMenuMissing:la,isManageMenusButtonDisabled:Lg,onCreateNew:ze,onSelectClassicMenu:ll,onSelectNavigationMenu:rm,isLoading:dt,blockEditingMode:z}),z==="default"&&rc,(0,Te.jsx)(Tp.EntityProvider,{kind:"postType",type:"wp_navigation",id:B,children:(0,Te.jsxs)(st.RecursionProvider,{uniqueId:E,children:[z==="contentOnly"&&wi&&(0,Te.jsx)(bTe,{clientId:r}),z==="default"&&wi&&(0,Te.jsxs)(st.InspectorControls,{group:"advanced",children:[ca&&Mn&&(0,Te.jsx)(uae,{}),pu&&md&&(0,Te.jsx)(_ae,{onDelete:()=>{ye(r,[]),q((0,Ht.__)("Navigation Menu successfully deleted."))}}),(0,Te.jsx)(xie,{disabled:Lg,className:"wp-block-navigation-manage-menus-button"})]}),(0,Te.jsxs)(ve,{...Ci,"aria-describedby":!Ye&&!dt?ys:void 0,children:[dt&&!om&&(0,Te.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,Te.jsx)(io.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!dt||om)&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(rse,{id:ys}),(0,Te.jsx)(kA,{id:r,onToggle:gr,hasIcon:S,icon:P,isOpen:Ft,isResponsive:Ua,isHiddenByDefault:om,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:O,children:wi&&(0,Te.jsx)(aae,{clientId:r,hasCustomPlaceholder:!!f,templateLock:w,orientation:k})})]})]})]})})]})}var lse=(0,st.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(vTe);var cse=a(I(),1),use=a(y(),1);function dse({attributes:e}){if(!e.ref)return(0,use.jsx)(cse.InnerBlocks.Content,{})}var Ep=a(I(),1),a0=a(_e(),1);var Pp=a(y(),1),YA={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}),q9=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},Z9=e=>{let{openSubmenusOnClick:t,...r}=e;return t==null?e:{...r,submenuVisibility:r.submenuVisibility??(t?"click":"hover")}},_Te={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible:({openSubmenusOnClick:e})=>e!=null,migrate:Z9},xTe={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:i0},kTe={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,a0.compose)(i0,q9,Z9)},wTe={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,Pp.jsx)(Ep.InnerBlocks.Content,{})},migrate:(0,a0.compose)(i0,q9,or,Z9),isEligible({style:e}){return e?.typography?.fontFamily}},CTe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},STe=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,r])=>{let o=YA[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]}))}}},TTe=[_Te,xTe,kTe,wTe,{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,a0.compose)(i0,q9,or,CTe,Z9),save(){return(0,Pp.jsx)(Ep.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,Pp.jsx)(Ep.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in YA){let r=e.style.typography[t];if(r&&r.startsWith(YA[t]))return!0}return!1},migrate:(0,a0.compose)(i0,q9,or,STe)},{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,a0.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,Pp.jsx)(Ep.InnerBlocks.Content,{})}}],pse=TTe;var{name:hse}=e9,bse={icon:ym,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,K9.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,K9.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,K9.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:lse,save:dse,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,mse.select)(fse.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,gse.decodeEntities)(t.title)},deprecated:pse},ETe=()=>D({name:hse,metadata:e9,settings:bse});var eO={};J(eO,{init:()=>ATe,metadata:()=>Y9,name:()=>Pse,settings:()=>Bse});var px=a(L(),1);var Ese=a(Kd(),1);var yse=a(I(),1),vse=a(y(),1),PTe=[{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,vse.jsx)(yse.InnerBlocks.Content,{})}}],_se=PTe;var Y9={$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 Q9=a(te(),1),ux=a(H(),1),dx=a(F(),1),X9=a(fc(),1),Us=a(L(),1),xn=a(I(),1),J9=a(qt(),1),Ia=a(W(),1);var e6=a(_e(),1);var _r=a(y(),1),ITe={name:"core/navigation-link"},NTe=["core/navigation-link","core/navigation-submenu"];function MTe(e){let t="";switch(e){case"post":t=(0,Us.__)("Select post");break;case"page":t=(0,Us.__)("Select page");break;case"category":t=(0,Us.__)("Select category");break;case"tag":t=(0,Us.__)("Select tag");break;default:t=(0,Us.__)("Add link")}return t}function XA({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:b,__unstableMarkNextChangeAsNotPersistent:_,selectBlock:v}=(0,ux.useDispatch)(xn.store),[w,x]=(0,Ia.useState)(t&&!p),[k,C]=(0,Ia.useState)(null),S=(0,Ia.useRef)(null),P=ax(S),B=(0,Us.__)("Add label\u2026"),N=(0,Ia.useRef)(),E=(0,Ia.useRef)(),M=(0,Ia.useRef)(u===void 0),R=(0,Ia.useRef)(!1),{isAtMaxNesting:O,isTopLevelLink:j,isParentOfSelectedBlock:V,hasChildren:G,parentBlockClientId:$,isSubmenu:z}=(0,ux.useSelect)(Se=>{let{getBlockCount:rr,getBlockName:Ft,getBlockRootClientId:gr,hasSelectedInnerBlock:Wo,getBlockParentsByBlockName:Nn}=Se(xn.store),So=gr(l),sa=Ft(So),la=sa==="core/navigation",Mn=la?So:Nn(l,"core/navigation")[0],ca=sa==="core/navigation-submenu"?So:Mn;return{isAtMaxNesting:Nn(l,NTe).length>=h,isTopLevelLink:la,isParentOfSelectedBlock:Wo(l,!0),hasChildren:!!rr(l),parentBlockClientId:ca,isSubmenu:sa==="core/navigation-submenu"}},[l,h]),K=nx(l),{getBlocks:q}=(0,ux.useSelect)(xn.store),{hasUrlBinding:Y,isBoundEntityAvailable:oe,entityRecord:Z}=rs({clientId:l,attributes:e}),U=Uf({clientId:l,attributes:e,setAttributes:r,allowTextUpdate:!0}),[X,Q]=Gf(f,d,c,K),ie=(0,Ia.useCallback)(()=>{let Se=q(l);Se.length===0&&(Se=[(0,Q9.createBlock)("core/navigation-link")],v(Se[0].clientId));let rr=(0,Q9.createBlock)("core/navigation-submenu",e,Se);b(l,rr)},[q,l,v,b,e]);(0,Ia.useEffect)(()=>{M.current&&t&&v($)},[]),(0,Ia.useEffect)(()=>{G&&(_(),ie())},[G,_,ie]),(0,Ia.useEffect)(()=>{if(!(!M.current||!p||!w)){if(M.current=!1,(0,J9.isURL)((0,J9.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))ix(N);else if(v(l,null),z){let Se=q($);Se.length===1&&Se[0].clientId===l&&(R.current=!0)}}},[p,w,M,u]);function me(){r({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)}let{textColor:xe,customTextColor:Be,backgroundColor:se,customBackgroundColor:he}=Of(s,!j);function ze(Se){X9.isKeyboardEvent.primary(Se,"k")&&(Se.preventDefault(),Se.stopPropagation(),x(!0))}let qe=(0,e6.useInstanceId)(XA),ce=Y&&!oe,ge=ce?(0,Us.sprintf)("navigation-link-edit-%d-desc",qe):void 0,Qe=(0,xn.useBlockProps)({ref:(0,e6.useMergeRefs)([C,S]),className:T("wp-block-navigation-item",{"is-editing":t||V,"is-dragging-within":P,"has-link":!!p,"has-child":G,"has-text-color":!!xe||!!Be,[(0,xn.getColorClassName)("color",xe)]:!!xe,"has-background":!!se||he,[(0,xn.getColorClassName)("background-color",se)]:!!se}),"aria-describedby":ge,"aria-invalid":ce,style:{color:!xe&&Be,backgroundColor:!se&&he},onKeyDown:ze}),ye=(0,xn.useInnerBlocksProps)({className:"remove-outline"},{defaultBlock:ITe,directInsert:!0,renderAppender:!1}),fe=!p&&!(Y&&oe)||X||Q||Y&&!oe;fe&&(Qe.onClick=()=>{x(!0)});let de=T("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":fe}),re=MTe(d),Pe=A9();return(0,_r.jsxs)(_r.Fragment,{children:[(0,_r.jsx)(xn.BlockControls,{children:(0,_r.jsxs)(dx.ToolbarGroup,{children:[(0,_r.jsx)(dx.ToolbarButton,{name:"link",icon:Pi,title:(0,Us.__)("Link"),shortcut:X9.displayShortcut.primary("k"),onClick:()=>{x(!0)}}),!O&&(0,_r.jsx)(dx.ToolbarButton,{name:"submenu",icon:im,title:(0,Us.__)("Add submenu"),onClick:ie})]})}),(0,_r.jsx)(xn.InspectorControls,{group:"content",children:(0,_r.jsx)(rx,{attributes:e,setAttributes:r,clientId:l})}),(0,_r.jsxs)("div",{...Qe,children:[ce&&(0,_r.jsx)(ln,{id:ge,children:Pe}),(0,_r.jsxs)("a",{className:de,children:[!p&&!g?.bindings?.url?(0,_r.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,_r.jsx)("span",{children:re})}):(0,_r.jsxs)(_r.Fragment,{children:[!X&&!Q&&(0,_r.jsxs)(_r.Fragment,{children:[(0,_r.jsx)(xn.RichText,{ref:N,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:Se=>r({label:Se}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:o?()=>o((0,Q9.createBlock)("core/navigation-link")):void 0,"aria-label":(0,Us.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0}),m&&(0,_r.jsx)("span",{className:"wp-block-navigation-item__description",children:m})]}),(X||Q)&&(0,_r.jsx)(ox,{label:u,isInvalid:X,isDraft:Q,className:"wp-block-navigation-link__label"})]}),w&&(0,_r.jsx)(Uu,{ref:E,clientId:l,link:e,entity:{entityRecord:Z,hasBinding:Y,isEntityAvailable:oe},onClose:()=>{if(x(!1),!p&&!Y&&i){i([]);return}if(R.current&&(R.current=!1,S.current?.nextElementSibling)){let Se=S.current.nextElementSibling.querySelector(".block-editor-button-block-appender");Se&&Se.focus()}},anchor:k,onRemove:me,onChange:U})]}),(0,_r.jsx)("div",{...ye})]})]})}var xse=a(I(),1),kse=a(y(),1);function wse(){return(0,kse.jsx)(xse.InnerBlocks.Content,{})}function LTe(e){switch(e){case"post":return hv;case"page":return hu;case"tag":return u_;case"category":return _d;default:return eB}}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:LTe(n.name)},...!n.isActive&&{isActive:r}}));return{...e,variations:o}}return e}var kn=a(te(),1),RTe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,kn.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,kn.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,kn.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,kn.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,kn.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,kn.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,kn.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,kn.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,kn.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:r,title:o,opensInNewTab:n})=>(0,kn.createBlock)("core/buttons",{},[(0,kn.createBlock)("core/button",{text:e,url:t,rel:r,title:o,linkTarget:n?"_blank":void 0})])}]},Sse=RTe;var JA=a(L(),1);var DTe=[{name:"custom-link",title:(0,JA.__)("Custom Link"),description:(0,JA.__)("Add a custom link to your navigation."),icon:mm,attributes:{kind:"custom"},isActive:e=>e.kind==="custom",isDefault:!0,scope:["inserter"]}],Tse=DTe;var{name:Pse}=Y9,Bse={icon:mm,__experimentalLabel(e,{context:t}){if(t==="list-view")return e?.label;if(t==="appender"){let r=e?.type||"link";return(0,px.sprintf)((0,px._x)("Add %s","add default block type"),r)}return e?.label},merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:XA,save:wse,example:{attributes:{label:(0,px._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:_se,transforms:Sse,variations:Tse},ATe=()=>((0,Ese.addFilter)("blocks.registerBlockType","core/navigation-link",Cse),D({name:Pse,metadata:Y9,settings:Bse}));var rO={};J(rO,{init:()=>VTe,metadata:()=>t6,name:()=>zse,settings:()=>Hse});var Vse=a(L(),1);var t6={$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}},shadow:{__experimentalSkipSerialization:!0},interactivity:{clientNavigation:!0}},selectors:{shadow:".wp-block-navigation-submenu > .wp-block-navigation__submenu-container"},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var o6=a(H(),1),mx=a(F(),1),n6=a(fc(),1),s0=a(L(),1),Yr=a(I(),1),a6=a(qt(),1),$l=a(W(),1);var Mse=a(O_(),1),Lse=a(te(),1),i6=a(_e(),1);var r6=a(F(),1),tO=a(y(),1),Ise=()=>(0,tO.jsx)(r6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,tO.jsx)(r6.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Kr=a(y(),1),Nse=["core/navigation-link","core/navigation-submenu","core/page-list","core/loginout"];function Rse({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,_=(0,Yr.useBlockEditingMode)()!=="default"?!0:h==="click",{hasUrlBinding:v,isBoundEntityAvailable:w,entityRecord:x}=rs({clientId:s,attributes:e}),k=Uf({clientId:s,attributes:e,setAttributes:r,allowTextUpdate:!0}),{__unstableMarkNextChangeAsNotPersistent:C,replaceBlock:S}=(0,o6.useDispatch)(Yr.store),[P,B]=(0,$l.useState)(!1),[N,E]=(0,$l.useState)(null),M=(0,$l.useRef)(null),R=ax(M),O=(0,s0.__)("Add text\u2026"),j=(0,$l.useRef)(),{parentCount:V,isParentOfSelectedBlock:G,isImmediateParentOfSelectedBlock:$,hasChildren:z,selectedBlockHasChildren:K,onlyDescendantIsEmptyLink:q}=(0,o6.useSelect)(de=>{let{hasSelectedInnerBlock:re,getSelectedBlockClientId:Pe,getBlockParentsByBlockName:Se,getBlock:rr,getBlockCount:Ft,getBlockOrder:gr}=de(Yr.store),Wo,Nn=Pe(),So=gr(Nn);if(So?.length===1){let sa=rr(So[0]);Wo=sa?.name==="core/navigation-link"&&!sa?.attributes?.label}return{parentCount:Se(s,"core/navigation-submenu").length,isParentOfSelectedBlock:re(s,!0),isImmediateParentOfSelectedBlock:re(s,!1),hasChildren:!!Ft(s),selectedBlockHasChildren:!!So?.length,onlyDescendantIsEmptyLink:Wo}},[s]),Y=nx(s),oe=(0,i6.usePrevious)(z),[Z,U]=Gf(d,p,m,Y);(0,$l.useEffect)(()=>{!_&&!c&&B(!0)},[]),(0,$l.useEffect)(()=>{t||B(!1)},[t]),(0,$l.useEffect)(()=>{P&&c&&(0,a6.isURL)((0,a6.prependHTTP)(l))&&/^.+\.[a-z]+/.test(l)&&ix(j)},[c]);let{textColor:X,customTextColor:Q,backgroundColor:ie,customBackgroundColor:me}=Of(i,V>0);function xe(de){n6.isKeyboardEvent.primary(de,"k")&&(de.preventDefault(),de.stopPropagation(),B(!0))}let Be=(0,Yr.useBlockProps)({ref:(0,i6.useMergeRefs)([E,M]),className:T("wp-block-navigation-item",{"is-editing":t||G,"is-dragging-within":R,"has-link":!!c,"has-child":z,"has-text-color":!!X||!!Q,[(0,Yr.getColorClassName)("color",X)]:!!X,"has-background":!!ie||me,[(0,Yr.getColorClassName)("background-color",ie)]:!!ie,"open-on-click":_,"open-always":h==="always"}),style:{color:!X&&Q,backgroundColor:!ie&&me},onKeyDown:xe}),se=Of(i,!0),he=V>=g?Nse.filter(de=>de!=="core/navigation-submenu"):Nse,ze=(0,Yr.__experimentalGetShadowClassesAndStyles)(e),qe=l9(se),ce={...qe,style:{...qe.style,...ze.style}},ge=(0,Yr.useInnerBlocksProps)(ce,{allowedBlocks:he,defaultBlock:Xi,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||$&&!K||z?Yr.InnerBlocks.ButtonBlockAppender:!1}),Qe=_?"button":"a";function ye(){let de=(0,Lse.createBlock)("core/navigation-link",e);S(s,de)}(0,$l.useEffect)(()=>{!z&&oe&&(C(),ye())},[z,oe]);let fe=!K||q;return(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)(Yr.BlockControls,{children:(0,Kr.jsxs)(mx.ToolbarGroup,{children:[!_&&(0,Kr.jsx)(mx.ToolbarButton,{name:"link",icon:Pi,title:(0,s0.__)("Link"),shortcut:n6.displayShortcut.primary("k"),onClick:()=>{B(!0)}}),(0,Kr.jsx)(mx.ToolbarButton,{name:"revert",icon:FI,title:(0,s0.__)("Convert to Link"),onClick:ye,className:"wp-block-navigation__submenu__revert",disabled:!fe})]})}),(0,Kr.jsx)(Yr.InspectorControls,{group:"content",children:(0,Kr.jsx)(rx,{attributes:e,setAttributes:r,clientId:s,isLinkEditable:!_})}),(0,Kr.jsxs)("div",{...Be,children:[(0,Kr.jsxs)(Qe,{className:"wp-block-navigation-item__content",children:[!Z&&!U&&(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)(Yr.RichText,{ref:j,identifier:"label",className:"wp-block-navigation-item__label",value:l,onChange:de=>r({label:de}),onMerge:o,onReplace:n,"aria-label":(0,s0.__)("Navigation link text"),placeholder:O,withoutInteractiveFormatting:!0,onClick:()=>{!_&&!c&&B(!0)}}),u&&(0,Kr.jsx)("span",{className:"wp-block-navigation-item__description",children:u})]}),(Z||U)&&(0,Kr.jsx)(ox,{label:l,isInvalid:Z,isDraft:U,className:"wp-block-navigation-item__label"}),!_&&P&&(0,Kr.jsx)(Uu,{clientId:s,link:e,entity:{entityRecord:x,hasBinding:v,isEntityAvailable:w},onClose:()=>{B(!1)},anchor:N,onRemove:()=>{r({url:""}),(0,Mse.speak)((0,s0.__)("Link removed."),"assertive")},onChange:k})]}),(f||_)&&(0,Kr.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Kr.jsx)(Ise,{})}),(0,Kr.jsx)("div",{...ge})]})]})}var Dse=a(I(),1),Ase=a(y(),1);function Ose(){return(0,Ase.jsx)(Dse.InnerBlocks.Content,{})}var $f=a(te(),1),FTe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,$f.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,$f.createBlock)("core/search")}]},Fse=FTe;var{name:zse}=t6,Hse={icon:({context:e})=>e==="list-view"?hu:im,__experimentalLabel(e,{context:t}){let{label:r}=e,o=e?.metadata?.name;return(t==="list-view"||t==="breadcrumb")&&o?o:r},edit:Rse,example:{attributes:{label:(0,Vse._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:Ose,transforms:Fse},VTe=()=>D({name:zse,metadata:t6,settings:Hse});var nO={};J(nO,{init:()=>jTe,metadata:()=>s6,name:()=>Yse,settings:()=>Qse});var jse=a(L(),1),Use=a(I(),1),oO=a(y(),1);function Wse(){return(0,oO.jsx)("div",{...(0,Use.useBlockProps)(),children:(0,oO.jsx)("span",{children:(0,jse.__)("Page break")})})}var s6={$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 Gse=a(W(),1),$se=a(y(),1);function qse(){return(0,$se.jsx)(Gse.RawHTML,{children:"<!--nextpage-->"})}var Zse=a(te(),1),HTe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,Zse.createBlock)("core/nextpage",{})}}]},Kse=HTe;var{name:Yse}=s6,Qse={icon:eI,example:{},transforms:Kse,edit:Wse,save:qse},jTe=()=>D({name:Yse,metadata:s6,settings:Qse});var iO={};J(iO,{init:()=>WTe,metadata:()=>l6,name:()=>tle,settings:()=>rle});var ele=a(Kd(),1);var l0=a(I(),1),Uc=a(F(),1),Wu=a(L(),1);var Na=a(y(),1);function Xse({attributes:e,setAttributes:t}){let{displayMode:r,text:o}=e,n=r==="icon"||r==="both",i=r==="text"||r==="both",s=o||(0,Wu.__)("Close"),l=(0,l0.useBlockProps)({className:"wp-block-navigation-overlay-close"}),c=ee();return(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(l0.InspectorControls,{children:(0,Na.jsx)(Uc.__experimentalToolsPanel,{label:(0,Wu.__)("Settings"),resetAll:()=>t({displayMode:"icon"}),dropdownMenuProps:c,children:(0,Na.jsx)(Uc.__experimentalToolsPanelItem,{label:(0,Wu.__)("Display Mode"),isShownByDefault:!0,hasValue:()=>r!=="icon",onDeselect:()=>t({displayMode:"icon"}),children:(0,Na.jsxs)(Uc.__experimentalToggleGroupControl,{label:(0,Wu.__)("Display Mode"),value:r,onChange:u=>t({displayMode:u}),isBlock:!0,children:[(0,Na.jsx)(Uc.__experimentalToggleGroupControlOption,{value:"icon",label:(0,Wu.__)("Icon")}),(0,Na.jsx)(Uc.__experimentalToggleGroupControlOption,{value:"text",label:(0,Wu.__)("Text")}),(0,Na.jsx)(Uc.__experimentalToggleGroupControlOption,{value:"both",label:(0,Wu.__)("Both")})]})})})}),(0,Na.jsxs)("button",{...l,type:"button","aria-label":i?void 0:(0,Wu.__)("Close"),children:[n&&(0,Na.jsx)(fa,{icon:um}),i&&(0,Na.jsx)(l0.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 l6={$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}},shadow:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!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 c6=a(A(),1),aO=a(y(),1),Jse=(0,aO.jsx)(c6.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,aO.jsx)(c6.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:tle}=l6,rle={icon:Jse,edit:Xse},WTe=()=>((0,ele.addFilter)("blockEditor.__unstableCanInsertBlockType","core/navigation-overlay-close/restrict-to-overlay-template-parts",(e,t)=>t.name!=="core/navigation-overlay-close"||!e?e:cx()),D({name:tle,metadata:l6,settings:rle}));var lO={};J(lO,{init:()=>KTe,metadata:()=>u6,name:()=>cle,settings:()=>ule});var u6={$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 ile=a(te(),1),Bp=a(H(),1),p6=a(W(),1),Ip=a(I(),1),sle=a(ae(),1),m6=a(L(),1);var ole=a(H(),1),sO=new WeakMap;function nle(){let e=(0,ole.useRegistry)();if(!sO.has(e)){let t=new Map;sO.set(e,$Te.bind(null,t))}return sO.get(e)}function $Te(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"&&qTe(e,t,n.attributes.slug)}}function qTe(e,t,r){if(e.has(t)||e.set(t,new Set),e.get(t).add(r),ale(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function ale(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(ale(e,i,r,o))return!0;return o.delete(t),!1}var d6=a(y(),1),ZTe=({attributes:e,clientId:t})=>{let r=(0,Bp.useRegistry)(),o=(0,Bp.useSelect)(h=>h(Ip.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,Bp.useSelect)(h=>h(sle.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,Bp.useDispatch)(Ip.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,Bp.useSelect)(Ip.store),[d,p]=(0,p6.useState)(!1),m=nle();function f(h){return h.innerBlocks.find(b=>b.name==="core/template-part")&&(h.innerBlocks=h.innerBlocks.map(b=>(b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b))),h.name==="core/template-part"&&h.attributes.theme===void 0&&(h.attributes.theme=n),h}(0,p6.useEffect)(()=>{if(!d&&o?.blocks){try{m(o)}catch{p(!0);return}window.queueMicrotask(()=>{let h=c(t),b=o.blocks.map(v=>(0,ile.cloneBlock)(f(v)));b.length===1&&o.categories?.length>0&&(b[0].attributes={...b[0].attributes,metadata:{...b[0].attributes.metadata,categories:o.categories,patternName:o.name,name:b[0].attributes.metadata.name||o.title}});let _=u(h);r.batch(()=>{l(),s(h,"default"),l(),i(t,b),l(),s(h,_)})})}},[t,d,o,l,i,u,s,c]);let g=(0,Ip.useBlockProps)();return d?(0,d6.jsx)("div",{...g,children:(0,d6.jsx)(Ip.Warning,{children:(0,m6.sprintf)((0,m6.__)('Pattern "%s" cannot be rendered inside itself.'),o?.name)})}):(0,d6.jsx)("div",{...g})},lle=ZTe;var{name:cle}=u6,ule={edit:lle},KTe=()=>D({name:cle,metadata:u6,settings:ule});var uO={};J(uO,{init:()=>tEe,metadata:()=>f6,name:()=>_le,settings:()=>xle});var f6={$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},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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}},shadow:!0,contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var ble=a(te(),1),Xn=a(I(),1),en=a(F(),1),Ao=a(L(),1),Np=a(W(),1),yle=a(ae(),1),g6=a(H(),1);var cO=a(te(),1),dle=a(H(),1),ple=a(I(),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,cO.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:s,type:l,kind:t,metadata:{bindings:e0(t)}},u),c?(r[c]||(r[c]={innerBlocks:[]}),r[c].innerBlocks.push(r[n])):o.push(r[n])}),o}function mle(e,t){for(let r of e){if(r.attributes.id===t)return r;if(r.innerBlocks&&r.innerBlocks.length){let o=mle(r.innerBlocks,t);if(o)return o}}return null}function XTe(e=[],t=null){let r=QTe(e);if(t){let n=mle(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,cO.createBlock)("core/navigation-submenu",c,u);l[s]=d}})};return o(r),r}function fle({clientId:e,pages:t,parentClientId:r,parentPageID:o}){let{replaceBlock:n,selectBlock:i}=(0,dle.useDispatch)(ple.store);return()=>{let s=XTe(t,o);n(e,s),i(r)}}var jt=a(y(),1),gle=100,hle=()=>{};function JTe({isBusy:e,onConfirm:t,onCancel:r}){return(0,jt.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 eEe({blockProps:e,innerBlocksProps:t,hasResolvedPages:r,blockList:o,pages:n,parentPageID:i}){if(!r)return(0,jt.jsx)("div",{...e,children:(0,jt.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,jt.jsx)(en.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,jt.jsx)("div",{...e,children:(0,jt.jsx)(en.Notice,{status:"warning",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,jt.jsx)("div",{...e,children:(0,jt.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,jt.jsx)("div",{...e,children:(0,jt.jsx)(Xn.Warning,{children:(0,Ao.sprintf)((0,Ao.__)('Page List: "%s" page has no children.'),s.title.rendered)})}):(0,jt.jsx)("div",{...e,children:(0,jt.jsx)(en.Notice,{status:"warning",isDismissible:!1,children:(0,Ao.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,jt.jsx)("ul",{...t})}function vle({context:e,clientId:t,attributes:r,setAttributes:o}){let{parentPageID:n}=r,[i,s]=(0,Np.useState)(!1),l=ee(),{records:c,hasResolved:u}=(0,yle.useEntityRecords)("postType","page",{per_page:gle,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&c?.length>0&&c?.length<=gle,p=(0,Np.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:B}=P;return S.has(B)?S.get(B).push(P):S.set(B,[P]),S},new Map),[c]),m=(0,Xn.useBlockProps)({className:T("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Xn.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Xn.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor,"open-on-click":e.submenuVisibility==="click","open-always":e.submenuVisibility==="always"}),style:{...e.style?.color}}),f=(0,Np.useMemo)(function C(S=0,P=0){let B=p.get(S);return B?.length?B.reduce((N,E)=>{let M=p.has(E.id),R={value:E.id,label:"\u2014 ".repeat(P)+E.title.rendered,rawName:E.title.rendered};return N.push(R),M&&N.push(...C(E.id,P+1)),N},[]):[]},[p]),g=(0,Np.useMemo)(function C(S=n){let P=p.get(S);return P?.length?P.reduce((B,N)=>{let E=p.has(N.id),M={id:N.id,label:N.title?.rendered?.trim()!==""?N.title?.rendered:(0,Ao.__)("(no title)"),title:N.title?.rendered?.trim()!==""?N.title?.rendered:(0,Ao.__)("(no title)"),link:N.url,hasChildren:E},R=null,O=C(N.id);return R=(0,ble.createBlock)("core/page-list-item",M,O),B.push(R),B},[]):[]},[p,n]),{hasSelectedChild:h,parentClientId:b,hasDraggedChild:_,isChildOfNavigation:v}=(0,g6.useSelect)(C=>{let{getBlockParentsByBlockName:S,hasSelectedInnerBlock:P,hasDraggedInnerBlock:B}=C(Xn.store),N=S(t,"core/navigation",!0);return{isChildOfNavigation:N.length>0,hasSelectedChild:P(t,!0),hasDraggedChild:B(t,!0),parentClientId:N[0]}},[t]),w=fle({clientId:t,pages:c,parentClientId:b,parentPageID:n}),x=(0,Xn.useInnerBlocksProps)(m,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:v?!1:"all",onInput:hle,onChange:hle,value:g}),{selectBlock:k}=(0,g6.useDispatch)(Xn.store);return(0,Np.useEffect)(()=>{(h||_)&&(s(!0),k(b))},[h,_,b,k]),(0,jt.jsxs)(jt.Fragment,{children:[(f.length>0||d)&&(0,jt.jsx)(Xn.InspectorControls,{children:(0,jt.jsxs)(en.__experimentalToolsPanel,{label:(0,Ao.__)("Settings"),resetAll:()=>{o({parentPageID:0})},dropdownMenuProps:l,children:[f.length>0&&(0,jt.jsx)(en.__experimentalToolsPanelItem,{label:(0,Ao.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>o({parentPageID:0}),isShownByDefault:!0,children:(0,jt.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,jt.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,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)(Xn.BlockControls,{group:"other",children:(0,jt.jsx)(en.ToolbarButton,{title:(0,Ao.__)("Detach"),disabled:!u,onClick:()=>s(!0),children:(0,Ao.__)("Detach")})}),i&&(0,jt.jsx)(JTe,{isBusy:!u,onConfirm:()=>{w(),s(!1)},onCancel:()=>s(!1)})]}),(0,jt.jsx)(eEe,{blockProps:m,innerBlocksProps:x,hasResolvedPages:u,blockList:g,pages:c,parentPageID:n})]})}var{name:_le}=f6,xle={icon:rI,example:{},edit:vle},tEe=()=>D({name:_le,metadata:f6,settings:xle});var gO={};J(gO,{init:()=>nEe,metadata:()=>h6,name:()=>Cle,settings:()=>Sle});var h6={$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 y6=a(I(),1),kle=a(H(),1),mO=a(ae(),1),fO=a(ma(),1);var b6=a(F(),1),dO=a(y(),1),pO=()=>(0,dO.jsx)(b6.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,dO.jsx)(b6.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Ma=a(y(),1);function oEe(){return(0,kle.useSelect)(e=>{if(!e(mO.store).canUser("read",{kind:"root",name:"site"}))return;let r=e(mO.store).getEntityRecord("root","site");return r?.show_on_front==="page"&&r?.page_on_front},[])}function wle({context:e,attributes:t}){let{id:r,label:o,link:n,hasChildren:i,title:s}=t,l="showSubmenuIcon"in e,c=oEe(),u=e.submenuVisibility,d=u==="click",p=Of(e,!0),m=l9(p),f=(0,y6.useBlockProps)(m,{className:"wp-block-pages-list__item"}),g=(0,y6.useInnerBlocksProps)(f);return(0,Ma.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,Ma.jsxs)(Ma.Fragment,{children:[(0,Ma.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",dangerouslySetInnerHTML:{__html:(0,fO.safeHTML)(o)}}),(0,Ma.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Ma.jsx)(pO,{})})]}):(0,Ma.jsx)("a",{className:T("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":l}),href:n,dangerouslySetInnerHTML:{__html:(0,fO.safeHTML)(s)}}),i&&(0,Ma.jsxs)(Ma.Fragment,{children:[!d&&e.showSubmenuIcon&&(0,Ma.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,Ma.jsx)(pO,{})}),(0,Ma.jsx)("ul",{...g})]})]},r)}var{name:Cle}=h6,Sle={__experimentalLabel:({label:e})=>e,icon:hu,example:{},edit:wle},nEe=()=>D({name:Cle,metadata:h6,settings:Sle});var kO={};J(kO,{init:()=>mEe,metadata:()=>m0,name:()=>w6,settings:()=>Gle});var xO=a(L(),1);var Wle=a(te(),1);var Tle=a(W(),1),Oo=a(I(),1),hO=a(L(),1),Wc=a(y(),1),c0={className:!1},bO={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"}},v6=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}},u0=e=>{let{align:t,...r}=e;return t?{...r,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:Q0t,...fx}=bO,aEe=[{supports:{className:!1,color:!0,typography:{fontSize:!0}},attributes:bO,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,hO.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Wc.jsx)("p",{...Oo.useBlockProps.save({className:i,dir:n}),children:(0,Wc.jsx)(Oo.RichText.Content,{value:r})})},migrate:u0},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:u0,save({attributes:e}){let{align:t,content:r,dropCap:o,direction:n}=e,i=T({"has-drop-cap":t===((0,hO.isRTL)()?"left":"right")||t==="center"?!1:o,[`has-text-align-${t}`]:t});return(0,Wc.jsx)("p",{...Oo.useBlockProps.save({className:i,dir:n}),children:(0,Wc.jsx)(Oo.RichText.Content,{value:r})})}},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return v6(u0(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,Oo.getColorClassName)("color",i),m=(0,Oo.getColorClassName)("background-color",n),f=(0,Oo.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,Wc.jsx)(Oo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:d})}},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return v6(u0(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,Oo.getColorClassName)("color",i),m=(0,Oo.getColorClassName)("background-color",n),f=(0,Oo.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,Wc.jsx)(Oo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:r,dir:d})}},{supports:c0,attributes:{...fx,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return v6(u0(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,Oo.getColorClassName)("color",s),m=(0,Oo.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,Wc.jsx)(Oo.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:c0,attributes:{...fx,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,Wc.jsx)("p",{style:{backgroundColor:i,color:s,fontSize:l,textAlign:r},className:c||void 0,children:o})},migrate(e){return v6(u0({...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:c0,attributes:{...bO,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,Wc.jsx)(Tle.RawHTML,{children:e.content})},migrate:e=>e}],Ele=aEe;var mi=a(L(),1),p0=a(F(),1),Jn=a(I(),1),Ole=a(H(),1),Fle=a(te(),1);var Ple=a(W(),1),Ble=a(_e(),1),Ile=a(vl(),1),d0=a(H(),1),yO=a(I(),1),Gu=a(te(),1);var{subscribeOwnedListener:iEe}=le(Ile.privateApis);function Nle(e){let{batch:t}=(0,d0.useRegistry)(),{moveBlocksToPosition:r,replaceBlocks:o,selectionChange:n}=(0,d0.useDispatch)(yO.store),{getBlockRootClientId:i,getBlockIndex:s,getBlockOrder:l,getBlockName:c,getBlock:u,canInsertBlockType:d}=(0,d0.useSelect)(yO.store),p=(0,Ple.useRef)(e);return p.current=e,(0,Ble.useRefEffect)(m=>{function f(g){if(g.defaultPrevented||g.inputType!=="insertParagraph")return;let{content:h,clientId:b}=p.current;if(h.length)return;let _=i(b);if(!(0,Gu.hasBlockSupport)(c(_),"__experimentalOnEnter",!1))return;let v=l(_),w=v.indexOf(b);if(w===v.length-1){let E=_;for(;!d(c(b),i(E));)E=i(E);typeof E=="string"&&(g.preventDefault(),r([b],_,i(E),s(E)+1));return}let x=(0,Gu.getDefaultBlockName)(),k=c(_),C=i(_);if(!d(x,C)||!d(k,C))return;g.preventDefault();let S=u(_),P=(0,Gu.cloneBlock)({...S,innerBlocks:S.innerBlocks.slice(0,w)}),B=(0,Gu.createBlock)(x),N=(0,Gu.cloneBlock)({...S,innerBlocks:S.innerBlocks.slice(w+1)});t(()=>{o(_,[P,B,N]),n(B.clientId)})}return iEe(m,"beforeinput",f,!0)},[])}var Mle=a(_e(),1),_6=a(W(),1),Lle=a(jm(),1),Rle=a(H(),1),Dle=a(I(),1);function Ale(e,t,r){let{__unstableMarkNextChangeAsNotPersistent:o}=(0,Rle.useDispatch)(Dle.store),n=(0,Mle.useEvent)(()=>{(0,Lle.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),o(),r({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,_6.useRef)();(0,_6.useEffect)(()=>{e==="full"||e==="wide"||e===i.current||(i.current=e,n())},[e,n])}var as=a(y(),1);function sEe({direction:e,setDirection:t}){return(0,mi.isRTL)()&&(0,as.jsx)(p0.ToolbarButton,{icon:gB,title:(0,mi._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function vO(e){return e===((0,mi.isRTL)()?"left":"right")||e==="center"}function lEe({clientId:e,attributes:t,setAttributes:r,name:o}){let[n]=(0,Jn.useSettings)("typography.dropCap"),i=(0,Ole.useSelect)(p=>{let{hasSelectedBlockStyleState:m}=p(Jn.store);return m(e)},[e]);if(!n||i)return null;let{style:s,dropCap:l}=t,c=s?.typography?.textAlign,u;vO(c)?u=(0,mi.__)("Not available for aligned text."):l?u=(0,mi.__)("Showing large initial letter."):u=(0,mi.__)("Show a large initial letter.");let d=(0,Fle.getBlockSupport)(o,"typography.defaultControls.dropCap",!1);return(0,as.jsx)(Jn.InspectorControls,{group:"typography",children:(0,as.jsx)(p0.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,mi.__)("Drop cap"),isShownByDefault:d,onDeselect:()=>r({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,as.jsx)(p0.ToggleControl,{label:(0,mi.__)("Drop cap"),checked:!!l,onChange:()=>r({dropCap:!l}),help:u,disabled:vO(c)})})})}function cEe({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;Ale(e.align,m,n);let g=(0,Jn.useBlockProps)({ref:Nle({clientId:i,content:c}),className:T({"has-drop-cap":vO(f)?!1:d}),style:{direction:u},"aria-label":Jn.RichText.isEmpty(c)?(0,mi.__)("Empty block; start writing or type forward slash to choose a block"):(0,mi.__)("Block: Paragraph")}),h=(0,Jn.useBlockEditingMode)();return(0,as.jsxs)(as.Fragment,{children:[h==="default"&&(0,as.jsx)(Jn.BlockControls,{group:"block",children:(0,as.jsx)(sEe,{direction:u,setDirection:b=>n({direction:b})})}),s&&(0,as.jsx)(lEe,{name:l,clientId:i,attributes:e,setAttributes:n}),(0,as.jsx)(Jn.RichText,{identifier:"content",tagName:"p",...g,value:c,onChange:b=>n({content:b}),onMerge:t,onReplace:r,onRemove:o,"data-empty":Jn.RichText.isEmpty(c),placeholder:p||(0,mi.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var Vle=cEe;var m0={$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,textShadow:!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 x6=a(I(),1),zle=a(L(),1),_O=a(y(),1);function Hle({attributes:e}){let{content:t,dropCap:r,direction:o,style:n}=e,i=n?.typography?.textAlign,s=T({"has-drop-cap":i===((0,zle.isRTL)()?"left":"right")||i==="center"?!1:r});return(0,_O.jsx)("p",{...x6.useBlockProps.save({className:s,dir:o}),children:(0,_O.jsx)(x6.RichText.Content,{value:t})})}var k6=a(te(),1);var{name:jle}=m0,dEe={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,k6.getBlockAttributes)(jle,e.outerHTML),{textAlign:r}=e.style||{};return(r==="left"||r==="center"||r==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:r}}),(0,k6.createBlock)(jle,t)}}]},Ule=dEe;var{editableRootKey:pEe}=le(Wle.privateApis),{name:w6}=m0,Gle={icon:oI,[pEe]:!0,example:{attributes:{content:(0,xO.__)("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,xO.__)("Empty"):o}},transforms:Ule,deprecated:Ele,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:Vle,save:Hle},mEe=()=>D({name:w6,metadata:m0,settings:Gle});var zO={};J(zO,{init:()=>pPe,metadata:()=>C6,name:()=>Lce,settings:()=>Rce});var C6={$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,shadow:!0,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-playlist-editor",style:"wp-block-playlist"};var ho=a(W(),1),Or=a(I(),1),Sr=a(F(),1),hx=a(H(),1),Ece=a(br(),1),vt=a(L(),1);var VO=a(te(),1),Pce=a(Ur(),1);var $c=a(W(),1),B6=a(_e(),1),gx=a(L(),1);function ace(e){let t=-1/0;for(let r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return t}function Gc(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function $le(e){return Gc(typeof e=="number"?`${e}px`:e)}function gEe(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 Fo(e,t=0,r=1){return Math.max(t,Math.min(e,r))}function T6(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=Fo(s,o,n);return i?Math.round(l):l}function BO(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 IO(e,t={}){let{min:r=-1/0,max:o=1/0,fallback:n=null}=t,i=BO(e);if(!i&&typeof e=="string"&&e.trim()!==""&&(i=e.split(/[,\s]+/)),!i)return n;let s=i.map(l=>T6(l)).filter(l=>l!==null&&l>=r&&l<=o);return s.length?s:n}function hEe(e,t,r=null){return t.includes(e)?e:r}function bEe(e){if(typeof e=="string"){let t=e.trim().toLowerCase();return t!==""&&t!=="false"&&t!=="0"}return!!e}function yEe(e){return e===void 0?void 0:e==="true"}function qle(e){if(typeof e=="string"&&e.trim().startsWith("["))try{return JSON.parse(e)}catch{}return e}function ice(e){let t={},r=(s,l=s)=>{let c=yEe(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=BO(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=qle(e.dataset.waveformColor)),e.dataset.progressColor&&(t.progressColor=qle(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=IO(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 vEe(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 $u(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 _Ee=0;function xEe(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)}_${(_Ee++).toString(36)}`}function sce(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 lce(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:Fo(i,0,1)}):null}function kEe(e){let t=lce(e);return!t||t.a<=0?null:(t.r*299+t.g*587+t.b*114)/1e3}function Zle(...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 wEe(e,t){let r;return function(...o){let n=()=>{clearTimeout(r),e(...o)};clearTimeout(r),r=setTimeout(n,t)}}function E6(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 ql(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=>Fo(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 cce(e,t){return(e.barRadius||0)*t}function CEe(e,t){let r=cce(e,t);return[r,r,0,0]}function Kle(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 wO(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=E6(r,c),d=t.height,p=o*t.width,m=CEe(n,i),f=ql(e,n.color,t,n),g=ql(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 b=h*(s+l);if(b+s>t.width)break;let _=u[h]*d*.9,v=d-_;f0(e,b,v,s,_,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 b=h*(s+l);if(b>p)break;let _=u[h]*d*.9,v=d-_;f0(e,b,v,s,_,m)}e.restore()}function SEe(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=E6(r,c),d=t.height,p=d/2,m=o*t.width,f=cce(n,i),g=[f,f,0,0],h=[0,0,f,f],b=ql(e,n.color,t,n),_=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height),e.fillStyle=b;for(let v=0;v<u.length;v++){let w=v*(s+l);if(w+s>t.width)break;let x=u[v]*d*.45;f0(e,w,p-x,s,x,g),f0(e,w,p,s,x,h)}e.save(),e.beginPath(),e.rect(0,0,m,d),e.clip(),e.fillStyle=_;for(let v=0;v<u.length;v++){let w=v*(s+l);if(w>m)break;let x=u[v]*d*.45;f0(e,w,p-x,s,x,g),f0(e,w,p,s,x,h)}e.restore()}function TEe(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=ql(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 b=[],_=Math.floor(r.length*m);for(let v=0;v<_;v++){let w=v/(r.length-1)*i,x=r[v],k=Math.sin(v*.1)*x,C=l+k*c;b.push({x:w,y:C})}for(let v=0;v<b.length-1;v++){let w=b[v].x+(b[v+1].x-b[v].x)*.5,x=b[v].y,k=b[v+1].x-(b[v+1].x-b[v].x)*.5,C=b[v+1].y;e.bezierCurveTo(w,x,k,C,b[v+1].x,b[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 Yle(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=E6(r,c),d=t.height,p=4*i,m=2*i,f=o*t.width,g=d/2,h=ql(e,n.color,t,n),b=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let _=0;_<u.length;_++){let v=_*(s+l);if(v+s>t.width)break;let w=u[_]*d*.9,x=Math.floor(w/(p+m));e.fillStyle=v<f?b:h;for(let k=0;k<x;k++){let C=k*(p+m);e.fillRect(v,g-C-p,s,p),k>0&&e.fillRect(v,g+C,s,p)}}}function Qle(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=E6(r,c),d=t.height,p=Math.max(1.5*i,s/2),m=o*t.width,f=d/2,g=ql(e,n.color,t,n),h=ql(e,n.progressColor,t,n);e.clearRect(0,0,t.width,t.height);for(let b=0;b<u.length;b++){let _=b*(s+l)+s/2;if(_>t.width)break;let v=u[b]*d*.9;e.fillStyle=_<m?h:g,e.beginPath(),e.arc(_,f-v/2,p,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(_,f+v/2,p,0,Math.PI*2),e.fill()}}function EEe(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=ql(e,n.color,t,n)||"rgba(255, 255, 255, 0.2)",Kle(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=ql(e,n.progressColor,t,n)||"rgba(255, 255, 255, 0.9)",Kle(e,u,p,l,c),e.fill(),e.restore()}}var PEe={bars:wO,bar:wO,mirror:SEe,line:TEe,blocks:Yle,block:Yle,dots:Qle,dot:Qle,seekbar:EEe};function BEe(e,t,r,o,n){(PEe[n.waveformStyle]||wO)(e,t,r,o,n)}function IEe(e){try{let t=e.getChannelData(0),r=e.sampleRate,o=NEe(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 NEe(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 MEe(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=ace(n);return i>0?n.map(s=>s/i):n}async function Xle(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=MEe(s,t);l=REe(l);let c=null;return r&&(c=IEe(s)),{peaks:l,bpm:c}}finally{o&&o.close()}}function LEe(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(Fo(o+n,.1,1))}return t}function REe(e,t=.95){let r=ace(e);if(r===0||r>t)return e;let o=t/r;return e.map(n=>n*o)}var CO=128;function Jle(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 DEe(e){let t=0,r=0;for(let o=e;o&&o.nodeType===1&&r<.995;o=o.parentElement){let n=lce(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 AEe(){let e=kEe(getComputedStyle(document.body).color);if(e!==null)return e>CO?"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 S6(e){if(Jle("dark"))return"dark";if(Jle("light"))return"light";try{let t=e&&e.nodeType===1?e:document.body,{sum:r,alpha:o}=DEe(t),n=AEe(),i=r+(n==="dark"?0:255)*(1-o);return i>CO?"light":i<CO?"dark":n}catch{return"dark"}}var g0={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 ece(e,t){if(e&&g0[e])return g0[e];let r=S6(t);return g0[r]}var SO={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},uce={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}},dce=["auto","top","center","bottom"],NO=.25,MO=4,OEe={buttonAlign:dce,layout:["default","preview"],buttonStyle:["circle","minimal"],artworkPosition:["info","button"],waveformStyle:Object.keys(uce),waveformGradient:["vertical","horizontal","diagonal"],audioMode:["self","external"],preload:["none","metadata","auto"],colorPreset:Object.keys(g0),crossOrigin:["anonymous","use-credentials"]},FEe={height:{min:1,integer:!0},samples:{min:1,integer:!0},barWidth:{min:0},barSpacing:{min:0},barRadius:{min:0},bpm:{min:1},playbackRate:{min:NO,max:MO}},VEe=["autoplay","showControls","showInfo","showTime","showHoverTime","seekHandle","showBPM","singlePlay","playOnSeek","enableMediaSession","showMarkers","accessibleSeek","showPlaybackSpeed"],zEe=["onLoad","onPlay","onPause","onEnd","onError","onTimeUpdate","onNextTrack","onPreviousTrack"];function TO(e,t){console.warn(`[WaveformPlayer] Invalid ${e} option, using default:`,t)}function EO(e){let t=BO(e);return t?t.reduce((r,o)=>{let n=o&&typeof o=="object"?T6(o.time,null,{min:0}):null;return n===null?(TO("marker",o),r):(r.push({...o,time:n,label:o.label==null?"":o.label}),r)},[]):(e!=null&&TO("markers",e),[])}function tce(e){let t=o=>e[o]!=null,r=o=>{TO(o,e[o]),e[o]=SO[o]};for(let[o,n]of Object.entries(FEe)){if(!t(o))continue;let i=T6(e[o],null,n);i===null?r(o):e[o]=i}for(let[o,n]of Object.entries(OEe))t(o)&&hEe(e[o],n)===null&&r(o);for(let o of VEe)e[o]=bEe(e[o]);for(let o of zEe)t(o)&&typeof e[o]!="function"&&r(o);if(t("playbackRates")){let o=IO(e.playbackRates,{min:NO,max:MO,fallback:null});o===null?r("playbackRates"):e.playbackRates=o}e.markers=EO(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 HEe="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>'),rce=5,oce=10,jEe='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=ice(this.container),n={...r};n.style&&!n.waveformStyle&&(n.waveformStyle=n.style),n.src&&!n.url&&(n.url=n.src),this.options=tce(Zle(SO,o,n));let i=ece(this.options.colorPreset,this.container);this._autoTheme=this.options.colorPreset==null||!g0[this.options.colorPreset],this._presetKeys=[],this._scheme=this.options.colorPreset&&g0[this.options.colorPreset]?this.options.colorPreset:S6(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=uce[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||xEe(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=dce.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: ${$le(this.options.buttonSize)}`),this.options.buttonRadius!=null&&r.push(`--wfp-btn-radius: ${$le(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="${Gc(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="${Gc(this.options.playPauseLabel)}"${o}>
77 + ${i}
42 78 <span class="waveform-icon-play">${this.options.playIcon}</span>
43 79 <span class="waveform-icon-pause" style="display:none;">${this.options.pauseIcon}</span>
44 80 </button>
45 -
46 - <div class="waveform-container">
47 - <canvas></canvas>
48 - <div class="waveform-markers"></div>
49 - <div class="waveform-loading" style="display:none;"></div>
50 - <div class="waveform-error" style="display:none;">
51 - <span class="waveform-error-text">Unable to load audio</span>
52 - </div>
53 - </div>
54 - </div>
55 -
81 + `:"",l=this.options.showInfo?`
56 82 <div class="waveform-info">
57 - ${this.options.artwork?`
58 - <img class="waveform-artwork" src="${this.options.artwork}" alt="Album artwork" style="
83 + ${this.options.artworkPosition!=="button"&&this.options.artwork?`
84 + <img class="waveform-artwork" src="${Gc(this.options.artwork)}" alt="${Gc(this.options.artworkAlt)}" style="
59 85 width: 40px;
60 86 height: 40px;
61 87 border-radius: 4px;
62 88 object-fit: cover;
@@ -63,51 +89,81 @@
63 89 flex-shrink: 0;
64 90 ">
65 91 `:""}
66 92 <div class="waveform-text">
67 - <span class="waveform-title" style="color: ${this.options.textColor};"></span>
68 - ${this.options.subtitle?`<span class="waveform-subtitle" style="color: ${this.options.textSecondaryColor};">${this.options.subtitle}</span>`:""}
93 + <span class="waveform-title"></span>
94 + ${this.options.artist?`<span class="waveform-artist">${Gc(this.options.artist)}</span>`:""}
69 95 </div>
70 - <div style="display: flex; align-items: center; gap: 1rem;">
96 + <div class="waveform-meta" style="display: flex; align-items: center; gap: 1rem;">
71 97 ${this.options.showBPM?`
72 - <span class="waveform-bpm" style="color: ${this.options.textSecondaryColor}; display: none;">
98 + <span class="waveform-bpm" style="display: none;">
73 99 <span class="bpm-value">--</span> BPM
74 100 </span>
75 101 `:""}
76 102 ${this.options.showPlaybackSpeed?`
77 103 <div class="waveform-speed">
78 - <button class="speed-btn" aria-label="Playback speed">
104 + <button class="speed-btn" aria-label="${Gc(this.options.speedLabel)}" aria-haspopup="menu" aria-expanded="false">
79 105 <span class="speed-value">1x</span>
80 106 </button>
81 - <div class="speed-menu" style="display: none;">
82 - ${this.options.playbackRates.map(r=>`<button class="speed-option" data-rate="${r}">${r}x</button>`).join("")}
107 + <div class="speed-menu" role="menu" aria-label="${Gc(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("")}
83 109 </div>
84 110 </div>
85 111 `:""}
86 112 ${this.options.showTime?`
87 - <span class="waveform-time" style="color: ${this.options.textSecondaryColor};">
113 + <span class="waveform-time">
88 114 <span class="time-current">0:00</span> / <span class="time-total">0:00</span>
89 115 </span>
90 116 `:""}
91 117 </div>
92 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">${Gc(this.options.errorText)}</span>
131 + </div>
132 + </div>
133 + </div>
134 +
135 + ${l}
93 136 </div>
94 137 </div>
95 -`,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.subtitleEl=this.container.querySelector(".waveform-subtitle"),this.artworkEl=this.container.querySelector(".waveform-artwork"),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()}createAudio(){this.audio=new Audio,this.audio.preload=this.options.preload||"metadata",this.audio.crossOrigin="anonymous"}initPlaybackSpeed(){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");!t||!r||(t.addEventListener("click",o=>{o.stopPropagation(),r.style.display=r.style.display==="none"?"block":"none"}),document.addEventListener("click",()=>{r.style.display="none"}),r.addEventListener("click",o=>{if(o.stopPropagation(),o.target.classList.contains("speed-option")){let n=parseFloat(o.target.dataset.rate);this.setPlaybackRate(n),r.style.display="none"}}),this.updateSpeedUI())}initKeyboardControls(){this.container.setAttribute("tabindex","-1"),this.container.addEventListener("click",()=>{cl.getAllInstances().forEach(t=>{t!==this&&t.container.setAttribute("tabindex","-1")}),this.container.setAttribute("tabindex","0"),this.container.focus()}),this.container.addEventListener("keydown",t=>{if(document.activeElement!==this.container)return;let r=t.key,o=this.audio.currentTime;if(r>="0"&&r<="9"){t.preventDefault(),this.seekToPercent(parseInt(r)/10);return}let n={" ":()=>this.togglePlay(),ArrowLeft:()=>this.seekTo(Math.max(0,o-5)),ArrowRight:()=>this.seekTo(Math.min(this.audio.duration,o+5)),ArrowUp:()=>this.setVolume(Math.min(1,this.audio.volume+.1)),ArrowDown:()=>this.setVolume(Math.max(0,this.audio.volume-.1)),m:()=>this.audio.muted=!this.audio.muted,M:()=>this.audio.muted=!this.audio.muted};n[r]&&(t.preventDefault(),n[r]())})}initMediaSession(){!("mediaSession"in navigator)||!this.options.enableMediaSession||(navigator.mediaSession.metadata=new MediaMetadata({title:this.options.title||"Unknown Track",artist:this.options.subtitle||"",album:this.options.album||"",artwork:this.options.artwork?[{src:this.options.artwork,sizes:"512x512",type:"image/jpeg"}]:[]}),navigator.mediaSession.setActionHandler("play",()=>this.play()),navigator.mediaSession.setActionHandler("pause",()=>this.pause()),navigator.mediaSession.setActionHandler("seekbackward",()=>{this.seekTo(Math.max(0,this.audio.currentTime-10))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Math.min(this.audio.duration,this.audio.currentTime+10))}),navigator.mediaSession.setActionHandler("seekto",t=>{t.seekTime!==null&&this.seekTo(t.seekTime)}))}bindEvents(){this.playBtn.addEventListener("click",()=>this.togglePlay()),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",t=>this.onError(t)),this.canvas.addEventListener("click",t=>this.handleCanvasClick(t)),this.resizeHandler=owe(()=>this.resizeCanvas(),100),window.addEventListener("resize",this.resizeHandler)}setupResizeObserver(){"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(()=>{this.resizeCanvas()}),this.canvas?.parentElement&&this.resizeObserver.observe(this.canvas.parentElement))}async load(t){try{this.setLoading(!0),this.progress=0,this.hasError=!1,this.audio.src=t,await new Promise((o,n)=>{let i=()=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),o()},l=s=>{this.audio.removeEventListener("loadedmetadata",i),this.audio.removeEventListener("error",l),n(s)};this.audio.addEventListener("loadedmetadata",i),this.audio.addEventListener("error",l)});let r=this.options.title||rwe(t);if(this.titleEl&&(this.titleEl.textContent=r),this.options.waveform)this.setWaveformData(this.options.waveform);else try{let o=await Mte(t,this.options.samples,this.options.showBPM);this.waveformData=o.peaks,o.bpm&&(this.detectedBPM=o.bpm,this.updateBPMDisplay())}catch(o){console.warn("Using placeholder waveform:",o),this.waveformData=fwe(this.options.samples)}this.drawWaveform(),this.renderMarkers(),this.initMediaSession(),this.options.onLoad&&this.options.onLoad(this)}catch(r){console.error("Failed to load audio:",r),this.onError(r)}finally{this.setLoading(!1)}}async loadTrack(t,r=null,o=null,n={}){this.isPlaying&&this.pause(),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=Lte(this.options,{url:t,title:r||this.options.title,subtitle:o||this.options.subtitle,...n}),n.preload&&(this.audio.preload=n.preload),this.subtitleEl&&(o?(this.subtitleEl.textContent=o,this.subtitleEl.style.display=""):o===""&&(this.subtitleEl.style.display="none")),n.artwork&&this.artworkEl&&(this.artworkEl.src=n.artwork),n.markers&&(this.options.markers=n.markers),await this.load(t),this.play()}setWaveformData(t){if(typeof t=="string")try{let r=JSON.parse(t);this.waveformData=Array.isArray(r)?r:[]}catch{this.waveformData=t.split(",").map(Number)}else this.waveformData=Array.isArray(t)?t:[];this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||uwe(this.ctx,this.canvas,this.waveformData,this.progress,{...this.options,waveformStyle:this.options.waveformStyle||"bars",color:this.options.waveformColor,progressColor:this.options.progressColor})}resizeCanvas(){if(!this.canvas||this.isDestroying)return;let t=window.devicePixelRatio||1,r=this.canvas.getBoundingClientRect();this.canvas.width=r.width*t,this.canvas.height=this.options.height*t,this.canvas.style.height=this.options.height+"px",this.canvas.parentElement.style.height=this.options.height+"px",this.drawWaveform()}renderMarkers(){!this.options.showMarkers||!this.options.markers?.length||!this.markersContainer||(this.markersContainer.innerHTML="",!(!this.audio||!this.audio.duration||this.audio.duration===0)&&this.options.markers.forEach((t,r)=>{if(t.time>this.audio.duration){console.warn(`Marker "${t.label}" at ${t.time}s exceeds audio duration of ${this.audio.duration}s`);return}let o=t.time/this.audio.duration*100,n=document.createElement("button");n.className="waveform-marker",n.style.left=`${o}%`,n.style.backgroundColor=t.color||"rgba(255, 255, 255, 0.5)",n.setAttribute("aria-label",t.label),n.setAttribute("data-time",t.time);let i=document.createElement("span");i.className="waveform-marker-tooltip",i.textContent=t.label,n.appendChild(i),n.addEventListener("click",l=>{l.stopPropagation(),this.seekTo(t.time),this.options.playOnSeek&&!this.isPlaying&&this.play()}),this.markersContainer.appendChild(n)}))}handleCanvasClick(t){if(!this.audio.duration)return;let r=this.canvas.getBoundingClientRect(),o=t.clientX-r.left,n=Math.max(0,Math.min(1,o/r.width));this.seekToPercent(n)}setLoading(t){this.isLoading=t,this.loadingEl&&(this.loadingEl.style.display=t?"block":"none")}onMetadataLoaded(){this.isDestroying||(this.totalTimeEl&&(this.totalTimeEl.textContent=Dte(this.audio.duration)),this.renderMarkers())}onPlay(){if(this.isDestroying)return;this.isPlaying=!0,this.playBtn.classList.add("playing");let t=this.playBtn.querySelector(".waveform-icon-play"),r=this.playBtn.querySelector(".waveform-icon-pause");t&&(t.style.display="none"),r&&(r.style.display="flex"),this.startSmoothUpdate(),this.container.dispatchEvent(new CustomEvent("waveformplayer:play",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.options.onPlay&&this.options.onPlay(this)}onPause(){if(this.isDestroying)return;this.isPlaying=!1,this.playBtn.classList.remove("playing");let t=this.playBtn.querySelector(".waveform-icon-play"),r=this.playBtn.querySelector(".waveform-icon-pause");t&&(t.style.display="flex"),r&&(r.style.display="none"),this.stopSmoothUpdate(),this.container.dispatchEvent(new CustomEvent("waveformplayer:pause",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.options.onPause&&this.options.onPause(this)}onEnded(){this.isDestroying||(this.progress=0,this.audio.currentTime=0,this.drawWaveform(),this.currentTimeEl&&(this.currentTimeEl.textContent="0:00"),this.container.dispatchEvent(new CustomEvent("waveformplayer:ended",{bubbles:!0,detail:{player:this,url:this.options.url}})),this.onPause(),this.options.onEnd&&this.options.onEnd(this))}onError(t){this.isDestroying||(console.error("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.duration&&(this.updateProgress(),this.updateTimer=requestAnimationFrame(t))};this.updateTimer=requestAnimationFrame(t)}stopSmoothUpdate(){this.updateTimer&&(cancelAnimationFrame(this.updateTimer),this.updateTimer=null)}updateProgress(){if(!this.audio.duration)return;let t=this.audio.currentTime/this.audio.duration;Math.abs(t-this.progress)>.001&&(this.progress=t,this.drawWaveform()),this.currentTimeEl&&(this.currentTimeEl.textContent=Dte(this.audio.currentTime)),this.container.dispatchEvent(new CustomEvent("waveformplayer:timeupdate",{bubbles:!0,detail:{player:this,currentTime:this.audio.currentTime,duration:this.audio.duration,url:this.options.url}})),this.options.onTimeUpdate&&this.options.onTimeUpdate(this.audio.currentTime,this.audio.duration,this)}updateBPMDisplay(){this.bpmEl&&this.bpmValueEl&&this.detectedBPM&&(this.bpmValueEl.textContent=Math.round(this.detectedBPM),this.bpmEl.style.display="inline-flex")}updateSpeedUI(){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=>{r.classList.toggle("active",parseFloat(r.dataset.rate)===this.audio.playbackRate)})}play(){this.options.singlePlay&&cl.currentlyPlaying&&cl.currentlyPlaying!==this&&cl.currentlyPlaying.pause(),cl.currentlyPlaying=this,this.audio.play()}pause(){cl.currentlyPlaying===this&&(cl.currentlyPlaying=null),this.audio.pause()}togglePlay(){this.isPlaying?this.pause():this.play()}seekTo(t){this.audio&&this.audio.duration&&(this.audio.currentTime=Math.max(0,Math.min(t,this.audio.duration)),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Math.max(0,Math.min(1,t)),this.updateProgress())}setVolume(t){this.audio&&(this.audio.volume=Math.max(0,Math.min(1,t)))}setPlaybackRate(t){if(!this.audio)return;let r=Math.max(.5,Math.min(2,t));this.audio.playbackRate=r,this.options.playbackRate=r,this.updateSpeedUI()}destroy(){this.isDestroying=!0,this.pause(),this.stopSmoothUpdate(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),cl.instances.delete(this.id),cl.currentlyPlaying===this&&(cl.currentlyPlaying=null),this.audio&&(this.audio.pause(),this.audio.src="",this.audio.load(),this.audio=null),this.container.innerHTML="",this.canvas=null,this.ctx=null,this.playBtn=null,this.waveformData=[]}static getInstance(t){if(typeof t=="string"){let r=this.instances.get(t);if(r)return r;let o=document.getElementById(t);if(o)return Array.from(this.instances.values()).find(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=200){try{return(await Mte(t,r)).peaks}catch(o){throw console.error("Failed to generate waveform:",o),o}}};function WL(){typeof document>"u"||document.querySelectorAll("[data-waveform-player]").forEach(e=>{if(e.dataset.waveformInitialized!=="true")try{new tC(e),e.dataset.waveformInitialized="true"}catch(t){console.error("Failed to initialize WaveformPlayer:",t,e)}})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",WL):WL());tC.init=WL;typeof window<"u"&&(window.WaveformPlayer=tC);var Rte=tC;var _we=100;function xwe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function kwe(e){let t=xwe(e).color,r=fo(t).alpha(.3).toRgbString(),o=fo(t).alpha(.6).toRgbString();return{textColor:t,waveformColor:r,progressColor:o}}function wwe({url:e,title:t,artist:r,artwork:o,waveformColor:n,progressColor:i,buttonColor:l,height:s=_we,waveformStyle:c="bars"}){let u=document.createElement("div");return u.setAttribute("data-waveform-player",""),u.setAttribute("data-url",e),u.setAttribute("data-height",String(s)),u.setAttribute("data-waveform-style",c),u.setAttribute("data-waveform-color",n),u.setAttribute("data-progress-color",i),u.setAttribute("data-button-color",l),u.setAttribute("data-text-color",l),u.setAttribute("data-text-secondary-color",l),t&&u.setAttribute("data-title",t),r&&u.setAttribute("data-subtitle",r),o&&u.setAttribute("data-artwork",o),u}function Cwe(e,t){let o=fo(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function Swe(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 Twe(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function zte(e,{src:t,title:r,artist:o,image:n,autoPlay:i,onEnded:l,labels:s,waveformStyle:c}){let{textColor:u,waveformColor:m,progressColor:p}=kwe(e),d=wwe({url:t,title:r,artist:o,artwork:n,waveformColor:m,progressColor:p,buttonColor:u,waveformStyle:c});e.appendChild(d);let f=new Rte(d),h,g={ready:()=>{Cwe(d,u),h=Swe(d,s),i&&f.play()?.catch(Twe)},ended:()=>l?.()};return d.addEventListener("waveformplayer:ready",g.ready),d.addEventListener("waveformplayer:ended",g.ended),{instance:f,container:d,destroy:()=>{h?.(),d.removeEventListener("waveformplayer:ready",g.ready),d.removeEventListener("waveformplayer:ended",g.ended),f.destroy(),d.remove()}}}var Fte=a(v(),1),Pwe="\xA0";function Vte(e,{title:t,artist:r,image:o}){e.titleEl&&(e.titleEl.textContent=t??""),e.subtitleEl&&(e.subtitleEl.textContent=r??"",e.subtitleEl.style.display=r?"":"none"),e.artworkEl&&o&&(e.artworkEl.src=o)}function Hte({src:e,title:t,artist:r,image:o,waveformStyle:n,onEnded:i}){let l=(0,rC.useEvent)(i),s=(0,bb.useRef)({title:t,artist:r,image:o}),c=(0,bb.useRef)(),u=!!o;(0,bb.useEffect)(()=>{s.current={title:t,artist:r,image:o};let p=c.current?.instance;p&&Vte(p,{title:t,artist:r,image:o})},[t,r,o]);let m=(0,rC.useRefEffect)(p=>{if(!e)return;let d=!1,f;function h(){if(d)return;let b=zte(p,{src:e,...s.current,waveformStyle:n,artist:s.current.artist||Pwe,onEnded:()=>l?.()});c.current=b,Vte(b.instance,s.current);let{destroy:y}=b;f=y}let g=setTimeout(h,100);return()=>{d=!0,clearTimeout(g),c.current=void 0,f?.()}},[l,e,n,u]);return(0,Fte.jsx)("div",{ref:m,className:"wp-block-playlist__waveform-player"})}var $L=a(B(),1);function Ote(e){return{id:e.id||e.url,uniqueId:mu(),src:e.url,title:e.title,artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,$L.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,$L.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,image:e?.image?.src&&e?.image?.src.endsWith("/images/media/audio.svg")?"":e?.image?.src}}var _t=a(v(),1),jte=["audio"],Bwe=({attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,clientId:n})=>{let{order:i,showTracklist:l,showNumbers:s,showImages:c,showArtists:u,showTrackLength:m,currentTrack:p}=e,d=e.className?.match(/is-style-([\w-]+)/)?.[1]||"bars",f=(0,Gr.useBlockProps)(),{replaceInnerBlocks:h,__unstableMarkNextChangeAsNotPersistent:g}=(0,Vd.useDispatch)(Gr.store),{createErrorNotice:b}=(0,Vd.useDispatch)(Ute.store),y=q();function _(H){b(H,{type:"snackbar"})}let{updateBlockAttributes:x}=(0,Vd.useDispatch)(Gr.store),{innerBlockTracks:k}=(0,Vd.useSelect)(H=>{let{getBlock:G}=H(Gr.store);return{innerBlockTracks:G(n)?.innerBlocks??[]}},[n]);(0,zd.useEffect)(()=>{let H=new Set,G=!1,Y=k.map(O=>H.has(O.attributes.uniqueId)?(G=!0,{...O,attributes:{...O.attributes,uniqueId:mu()}}):(H.add(O.attributes.uniqueId),O));G&&h(n,Y)},[k,n,h]);let S=k.filter(H=>!!H.attributes.uniqueId),C=S.map(H=>H.attributes),E=S[0]?.attributes?.uniqueId;(0,zd.useEffect)(()=>{C.length===0?p!==null&&x(n,{currentTrack:null}):E&&E!==p&&x(n,{currentTrack:E})},[C,p,E,n,x]);let P=(0,zd.useCallback)(H=>{if(!H)return;Array.isArray(H)||(H=[H]);let G=H.map(Ote);g(),t({currentTrack:G.length>0?G[0].uniqueId:null});let Y=G.map(O=>(0,Gte.createBlock)("core/playlist-track",O));h(n,Y)},[g,t,h,n]),N=C.find(H=>H.uniqueId===p),z=(0,zd.useCallback)(()=>{let H=C.findIndex(Y=>Y.uniqueId===p),G=C[H+1]||C[0];G?.uniqueId&&t({currentTrack:G.uniqueId})},[p,C,t]),V=(0,zd.useCallback)(H=>{let G=[...k].sort((O,te)=>{let se=O.attributes.title||"",Q=te.attributes.title||"";return H==="asc"?se.localeCompare(Q):Q.localeCompare(se)}),Y=G[0]?.attributes?.uniqueId;h(n,G),t({order:H,currentTrack:Y&&Y!==p?Y:p})},[n,p,k,h,t]);function A(H){return G=>{t({[H]:G})}}let M=(0,Vd.useSelect)(H=>H(Gr.store).hasSelectedInnerBlock(n),[n]),U=(0,Gr.useInnerBlocksProps)(f,{__experimentalAppenderTagName:"li",renderAppender:(r||M)&&Gr.InnerBlocks.ButtonBlockAppender});return C.length===0?(0,_t.jsx)("div",{...f,className:w("is-placeholder",f.className),children:(0,_t.jsx)(Gr.MediaPlaceholder,{icon:(0,_t.jsx)(Gr.BlockIcon,{icon:Yn}),labels:{title:(0,to.__)("Playlist"),instructions:(0,to.__)("Upload an audio file or pick one from your media library.")},onSelect:P,accept:"audio/*",multiple:!0,allowedTypes:jte,onError:_})}):(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(Gr.BlockControls,{group:"other",children:(0,_t.jsx)(Gr.MediaReplaceFlow,{name:(0,to.__)("Edit"),onSelect:P,accept:"audio/*",multiple:!0,mediaIds:C.filter(H=>H.id).map(H=>H.id),allowedTypes:jte,onError:_})}),(0,_t.jsx)(Gr.InspectorControls,{children:(0,_t.jsxs)(yo.__experimentalToolsPanel,{label:(0,to.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,order:"asc"})},dropdownMenuProps:y,children:[(0,_t.jsx)(yo.__experimentalToolsPanelItem,{label:(0,to.__)("Show Tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,_t.jsx)(yo.ToggleControl,{label:(0,to.__)("Show Tracklist"),onChange:A("showTracklist"),checked:l})}),l&&(0,_t.jsxs)(_t.Fragment,{children:[(0,_t.jsx)(yo.__experimentalToolsPanelItem,{label:(0,to.__)("Show artist name in Tracklist"),isShownByDefault:!0,hasValue:()=>u!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,_t.jsx)(yo.ToggleControl,{label:(0,to.__)("Show artist name in Tracklist"),onChange:A("showArtists"),checked:u})}),(0,_t.jsx)(yo.__experimentalToolsPanelItem,{label:(0,to.__)("Show number in Tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,_t.jsx)(yo.ToggleControl,{label:(0,to.__)("Show number in Tracklist"),onChange:A("showNumbers"),checked:s})}),(0,_t.jsx)(yo.__experimentalToolsPanelItem,{label:(0,to.__)("Show track length in Tracklist"),isShownByDefault:!0,hasValue:()=>m!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,_t.jsx)(yo.ToggleControl,{label:(0,to.__)("Show track length in Tracklist"),onChange:A("showTrackLength"),checked:m})})]}),(0,_t.jsx)(yo.__experimentalToolsPanelItem,{label:(0,to.__)("Show images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,_t.jsx)(yo.ToggleControl,{label:(0,to.__)("Show images"),onChange:A("showImages"),checked:c})}),(0,_t.jsx)(yo.__experimentalToolsPanelItem,{label:(0,to.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,_t.jsx)(yo.SelectControl,{__next40pxDefaultSize:!0,label:(0,to.__)("Order"),value:i,options:[{label:(0,to.__)("Descending"),value:"desc"},{label:(0,to.__)("Ascending"),value:"asc"}],onChange:H=>V(H)})})]})}),(0,_t.jsxs)("figure",{...f,children:[(0,_t.jsx)(yo.Disabled,{isDisabled:!r,children:(0,_t.jsx)(Hte,{src:N?.src,title:N?.title,artist:N?.artist,image:N?.image,waveformStyle:d,onEnded:z})}),l&&(0,_t.jsx)("ol",{className:w("wp-block-playlist__tracklist",{"wp-block-playlist__tracklist-show-numbers":s,"wp-block-playlist__tracklist-length-is-hidden":!m}),children:U.children}),(0,_t.jsx)(ma,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,to.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},Wte=Bwe;var pu=a(T(),1),yb=a(v(),1);function $te({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:n,showTrackLength:i}=e,l=pu.useBlockProps.save(),s=pu.useInnerBlocksProps.save(l);return(0,yb.jsxs)("figure",{...s,children:[(0,yb.jsx)("ol",{className:w("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:s.children}),!pu.RichText.isEmpty(t)&&(0,yb.jsx)(pu.RichText.Content,{tagName:"figcaption",className:(0,pu.__experimentalGetElementClassName)("caption"),value:t})]})}var{name:qte}=J3,Zte={icon:Yn,edit:Wte,save:$te},Ewe=()=>I({name:qte,metadata:J3,settings:Zte});var KL={};Z(KL,{init:()=>Lwe,metadata:()=>oC,name:()=>Jte,settings:()=>ere});var oC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/playlist-track",title:"Playlist track",category:"media",parent:["core/playlist"],description:"Playlist track.",keywords:["music","sound"],textdomain:"default",usesContext:["showArtists","currentTrack"],attributes:{blob:{type:"string",role:"local"},id:{type:"number"},uniqueId:{type:"string"},src:{type:"string"},type:{type:"string",default:"audio"},album:{type:"string"},artist:{type:"string"},image:{type:"string"},length:{type:"string"},title:{type:"string"}},supports:{html:!1,interactivity:{clientNavigation:!0},reusable:!1},style:"wp-block-playlist-track"};var Kte=a(Br(),1),nC=a(j(),1),_o=a(T(),1),Ei=a(R(),1),Yte=a(F(),1),Qte=a(_r(),1),ro=a(B(),1);var aC=a(Va(),1);var xt=a(v(),1),ZL=["audio"],Iwe=["image"],Dwe=({attributes:e,setAttributes:t,context:r})=>{let{id:o,uniqueId:n,src:i,album:l,artist:s,image:c,length:u,title:m}=e,[p,d]=(0,nC.useState)(e.blob),f=r?.showArtists,h=r?.currentTrack,g=(0,nC.useRef)(),b=(0,_o.useBlockProps)(),{createErrorNotice:y}=(0,Yte.useDispatch)(Qte.store);function _(C){y(C,{type:"snackbar"})}Bs({src:p,allowedTypes:ZL,onChange:x,onError:_});function x(C){if(!C||!C.url){t({blob:void 0,id:void 0,uniqueId:void 0,artist:void 0,album:void 0,image:void 0,length:void 0,title:void 0,url:void 0}),d();return}if((0,Kte.isBlobURL)(C.url)){d(C.url);return}t({blob:void 0,id:C.id,uniqueId:mu(),src:C.url,artist:C.artist||C?.meta?.artist||C?.media_details?.artist||(0,ro.__)("Unknown artist"),album:C.album||C?.meta?.album||C?.media_details?.album||(0,ro.__)("Unknown album"),image:C?.image?.src&&C?.image?.src.endsWith("/images/media/audio.svg")?"":C?.image?.src,length:C?.fileLength||C?.media_details?.length_formatted,title:C.title}),d()}function k(C){t({image:C.url})}function S(){t({image:void 0}),g.current.focus()}return!i&&!p?(0,xt.jsx)("div",{...b,children:(0,xt.jsx)(_o.MediaPlaceholder,{icon:(0,xt.jsx)(_o.BlockIcon,{icon:Yn}),labels:{title:(0,ro.__)("Track"),instructions:(0,ro.__)("Upload an audio file or pick one from your media library.")},onSelect:x,accept:"audio/*",allowedTypes:ZL,value:e,onError:_})}):(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsx)(_o.BlockControls,{group:"other",children:(0,xt.jsx)(_o.MediaReplaceFlow,{name:(0,ro.__)("Replace"),onSelect:x,accept:"audio/*",mediaId:o,mediaURL:i,allowedTypes:ZL,onError:_})}),(0,xt.jsx)(_o.InspectorControls,{children:(0,xt.jsxs)(Ei.PanelBody,{title:(0,ro.__)("Settings"),children:[(0,xt.jsx)(Ei.TextControl,{label:(0,ro.__)("Artist"),value:s?(0,aC.__unstableStripHTML)(s):"",onChange:C=>{t({artist:C})}}),(0,xt.jsx)(Ei.TextControl,{label:(0,ro.__)("Album"),value:l?(0,aC.__unstableStripHTML)(l):"",onChange:C=>{t({album:C})}}),(0,xt.jsx)(Ei.TextControl,{label:(0,ro.__)("Title"),value:m?(0,aC.__unstableStripHTML)(m):"",onChange:C=>{t({title:C})}}),(0,xt.jsx)(_o.MediaUploadCheck,{children:(0,xt.jsxs)("div",{className:"editor-video-poster-control",children:[(0,xt.jsx)(Ei.BaseControl.VisualLabel,{children:(0,ro.__)("Album cover image")}),!!c&&(0,xt.jsx)("img",{src:c,alt:(0,ro.__)("Preview of the album cover image")}),(0,xt.jsx)(_o.MediaUpload,{title:(0,ro.__)("Select image"),onSelect:k,allowedTypes:Iwe,render:({open:C})=>(0,xt.jsx)(Ei.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:C,ref:g,children:c?(0,ro.__)("Replace"):(0,ro.__)("Select")})}),!!c&&(0,xt.jsx)(Ei.Button,{__next40pxDefaultSize:!0,onClick:S,variant:"tertiary",children:(0,ro.__)("Remove")})]})})]})}),(0,xt.jsxs)("li",{...b,children:[!!p&&(0,xt.jsx)(Ei.Spinner,{}),(0,xt.jsxs)("button",{className:"wp-block-playlist-track__button","data-wp-context":JSON.stringify({uniqueId:n}),"aria-current":h===n?"true":"false",children:[(0,xt.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,xt.jsx)(_o.RichText,{tagName:"span",className:"wp-block-playlist-track__title",value:m,placeholder:(0,ro.__)("Add title"),onChange:C=>{t({title:C})},allowedFormats:[],withoutInteractiveFormatting:!0}),f&&(0,xt.jsx)(_o.RichText,{tagName:"span",className:"wp-block-playlist-track__artist",value:s,placeholder:(0,ro.__)("Add artist"),onChange:C=>t({artist:C}),allowedFormats:[],withoutInteractiveFormatting:!0})]}),(0,xt.jsxs)("span",{className:"wp-block-playlist-track__length",children:[u&&(0,xt.jsx)("span",{className:"screen-reader-text",children:(0,ro.__)("Length:")}),u]}),(0,xt.jsx)("span",{className:"screen-reader-text",children:(0,ro.__)("Select to play this track")})]})]})]})},Xte=Dwe;var{name:Jte}=oC,ere={icon:Yn,edit:Xte},Lwe=()=>I({name:Jte,metadata:oC,settings:ere});var QL={};Z(QL,{init:()=>Fwe,metadata:()=>iC,name:()=>cre,settings:()=>ure});var sre=a(B(),1);var iC={$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 nn=a(T(),1),Sr=a(R(),1),nre=a(fe(),1),lC=a(X(),1),Hd=a(F(),1),sC=a(j(),1),YL=a(Oo(),1),Cr=a(B(),1),ire=a($(),1);var Fd=a($(),1),rre=a(B(),1),ore=a(T(),1);var{cleanEmptyObject:tre}=W(ore.privateApis);function are(e,t){let{avatarSize:r,byline:o,showAvatar:n,showBio:i,isLink:l,linkTarget:s,textAlign:c,style:u,...m}=e,p=n&&t.some(g=>g.name==="core/avatar"),d=o&&t.some(g=>g.name==="core/paragraph"),f=t.some(g=>g.name==="core/post-author-name"),h=i&&t.some(g=>g.name==="core/post-author-biography");return(0,Fd.createBlock)("core/group",{...m,style:tre({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[p&&(0,Fd.createBlock)("core/avatar",{size:r,style:tre({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,Fd.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[d&&(0,Fd.createBlock)("core/paragraph",{content:o,placeholder:(0,rre.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,Fd.createBlock)("core/post-author-name",{isLink:l,linkTarget:s,style:{typography:{fontSize:"1em",textAlign:c}}}),h&&(0,Fd.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var it=a(v(),1),{InspectorControlsLastItem:Awe}=W(nn.privateApis),Rwe={who:"authors",per_page:100,_fields:"id,name",context:"view"};function zwe({value:e,onChange:t}){let[r,o]=(0,sC.useState)(""),{authors:n,isLoading:i}=(0,Hd.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(lC.store),m={...Rwe};return r&&(m.search=r,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[r]),l=(0,sC.useMemo)(()=>{let s=(n??[]).map(m=>({value:m.id,label:(0,YL.decodeEntities)(m.name)})),c=s.findIndex(m=>e?.id===m.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,YL.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Cr.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,it.jsx)(Sr.ComboboxControl,{__next40pxDefaultSize:!0,label:(0,Cr.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,nre.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function Vwe({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:n,setAttributes:i,clientId:l}){let s=Number.isFinite(o),c=q(),u=z1(),{authorDetails:m,canAssignAuthor:p,supportsAuthor:d}=(0,Hd.useSelect)(M=>{let{getEditedEntityRecord:L,getUser:U,getPostType:H}=M(lC.store),G=L("postType",t,r),Y=G?.author;return{authorDetails:Y?U(Y,{context:"view"}):null,supportsAuthor:H(t)?.supports?.author??!1,canAssignAuthor:!!G?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,Hd.useSelect)(M=>M(ire.store).getBlockTypes(),[]),{editEntityRecord:h}=(0,Hd.useDispatch)(lC.store),{replaceBlock:g}=(0,Hd.useDispatch)(nn.store),{textAlign:b,showAvatar:y,showBio:_,byline:x,isLink:k,linkTarget:S,avatarSize:C}=n,E=[],P=m?.name||(0,Cr.__)("Post Author");m?.avatar_urls&&Object.keys(m.avatar_urls).forEach(M=>{E.push({value:M,label:`${M} x ${M}`})});let N=(0,nn.useBlockProps)({className:w({[`has-text-align-${b}`]:b})}),z=M=>{h("postType",t,r,{author:M})},V=!!r&&!s&&p;if(!d&&t!==void 0)return(0,it.jsx)("div",{...N,children:(0,Cr.sprintf)((0,Cr.__)("This post type (%s) does not support the author."),t)});function A(){g(l,are(n,f))}return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(nn.InspectorControls,{children:(0,it.jsxs)(Sr.__experimentalToolsPanel,{label:(0,Cr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[V&&(0,it.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,it.jsx)(zwe,{value:m,onChange:z})}),(0,it.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!y,onDeselect:()=>i({showAvatar:!0}),children:(0,it.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Show avatar"),checked:y,onChange:()=>i({showAvatar:!y})})}),y&&(0,it.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,it.jsx)(Sr.SelectControl,{__next40pxDefaultSize:!0,label:(0,Cr.__)("Avatar size"),value:C,options:E,onChange:M=>{i({avatarSize:Number(M)})}})}),(0,it.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!_,onDeselect:()=>i({showBio:void 0}),children:(0,it.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Show bio"),checked:!!_,onChange:()=>i({showBio:!_})})}),(0,it.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!k,onDeselect:()=>i({isLink:!1}),children:(0,it.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Link author name to author page"),checked:k,onChange:()=>i({isLink:!k})})}),k&&(0,it.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,Cr.__)("Link target"),isShownByDefault:!0,hasValue:()=>S!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,it.jsx)(Sr.ToggleControl,{label:(0,Cr.__)("Open in new tab"),onChange:M=>i({linkTarget:M?"_blank":"_self"}),checked:S==="_blank"})})]})}),f.some(M=>M.name==="core/group")&&(0,it.jsx)(Awe,{children:(0,it.jsxs)(Sr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,it.jsx)(Sr.__experimentalText,{as:"p",children:(0,Cr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,it.jsx)(Sr.Button,{variant:"primary",onClick:A,__next40pxDefaultSize:!0,children:(0,Cr.__)("Recreate")})]})}),(0,it.jsx)(nn.BlockControls,{group:"block",children:(0,it.jsx)(nn.AlignmentControl,{value:b,onChange:M=>{i({textAlign:M})}})}),(0,it.jsxs)("div",{...N,children:[y&&(0,it.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,it.jsx)("img",{width:C,src:m?.avatar_urls?.[C]||u,alt:m?.name||(0,Cr.__)("Default Avatar")})}),(0,it.jsxs)("div",{className:"wp-block-post-author__content",children:[(!nn.RichText.isEmpty(x)||e)&&(0,it.jsx)(nn.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Cr.__)("Post author byline text"),placeholder:(0,Cr.__)("Write byline\u2026"),value:x,onChange:M=>i({byline:M})}),(0,it.jsx)("p",{className:"wp-block-post-author__name",children:k?(0,it.jsx)("a",{href:"#post-author-pseudo-link",onClick:M=>M.preventDefault(),children:P}):P}),_&&(0,it.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:m?.description}})]})]})]})}var lre=Vwe;var{name:cre}=iC,ure={icon:Lp,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,sre.__)("Posted by")}},edit:lre},Fwe=()=>I({name:cre,metadata:iC,settings:ure});var XL={};Z(XL,{init:()=>Gwe,metadata:()=>cC,name:()=>vre,settings:()=>bre});var cC={$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 uC=a(T(),1),mre=a(F(),1),uc=a(B(),1),pre=a(X(),1),Fm=a(R(),1);var Ni=a(v(),1);function Owe(e){vt(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:n,postId:i}}=e,{authorName:l,supportsAuthor:s}=(0,mre.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:h,getPostType:g}=d(pre.store),b=f("postType",n,i)?.author;return{authorName:b?h(b):null,supportsAuthor:g(n)?.supports?.author??!1}},[n,i]),c=(0,uC.useBlockProps)(),u=l?.name||(0,uc.__)("Author Name"),m=t?(0,Ni.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=q();return(0,Ni.jsxs)(Ni.Fragment,{children:[(0,Ni.jsx)(uC.InspectorControls,{children:(0,Ni.jsxs)(Fm.__experimentalToolsPanel,{label:(0,uc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Ni.jsx)(Fm.__experimentalToolsPanelItem,{label:(0,uc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,Ni.jsx)(Fm.ToggleControl,{label:(0,uc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,Ni.jsx)(Fm.__experimentalToolsPanelItem,{label:(0,uc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Ni.jsx)(Fm.ToggleControl,{label:(0,uc.__)("Open in new tab"),onChange:d=>o({linkTarget:d?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,Ni.jsx)("div",{...c,children:!s&&n!==void 0?(0,uc.sprintf)((0,uc.__)("This post type (%s) does not support the author."),n):m})]})}var dre=Owe;var jwe={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fre=[jwe];var hre=a($(),1),Uwe={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,hre.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},gre=Uwe;var{name:vre}=cC,bre={icon:Lp,transforms:gre,edit:dre,deprecated:fre},Gwe=()=>I({name:vre,metadata:cC,settings:bre});var JL={};Z(JL,{init:()=>Zwe,metadata:()=>mC,name:()=>Sre,settings:()=>Tre});var mC={$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 yre=a(T(),1),_re=a(F(),1),xre=a(B(),1),kre=a(X(),1);var _b=a(v(),1);function $we(e){vt(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,_re.useSelect)(l=>{let{getEditedEntityRecord:s,getUser:c}=l(kre.store),u=s("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,yre.useBlockProps)(),i=o?.description||(0,xre.__)("Author Biography");return(0,_b.jsx)(_b.Fragment,{children:(0,_b.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var wre=$we;var qwe={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Cre=[qwe];var{name:Sre}=mC,Tre={icon:Lp,edit:wre,deprecated:Cre},Zwe=()=>I({name:Sre,metadata:mC,settings:Tre});var eM={};Z(eM,{init:()=>Qwe,metadata:()=>pC,name:()=>Ire,settings:()=>Dre});var pC={$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 xb=a(B(),1),xg=a(R(),1),Pre=a(j(),1);var dC=a(T(),1),Od=a(v(),1),Ywe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Bre({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,Pre.useState)(e),n=(0,dC.useBlockProps)(),i=(0,dC.useInnerBlocksProps)(n,{template:Ywe});return e?(0,Od.jsx)("div",{...i}):(0,Od.jsx)("div",{...n,children:(0,Od.jsxs)(xg.Placeholder,{icon:m9,label:(0,xb._x)("Post Comment","block title"),instructions:(0,xb.__)("To show a comment, input the comment ID."),children:[(0,Od.jsx)(xg.TextControl,{value:e,onChange:l=>o(parseInt(l))}),(0,Od.jsx)(xg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,xb.__)("Save")})]})})}var fC=a(T(),1),Ere=a(v(),1);function Nre(){let e=fC.useBlockProps.save(),t=fC.useInnerBlocksProps.save(e);return(0,Ere.jsx)("div",{...t})}var{name:Ire}=pC,Dre={icon:$0,edit:Bre,save:Nre},Qwe=()=>I({name:Ire,metadata:pC,settings:Dre});var tM={};Z(tM,{init:()=>t4e,metadata:()=>hC,name:()=>Ore,settings:()=>jre});var hC={$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 Lre=a(T(),1),gC=a(j(),1),Mre=a(lv(),1),Are=a(lr(),1),Rre=a(v(),1);function zre({context:e}){let{postId:t}=e,[r,o]=(0,gC.useState)(),n=(0,Lre.useBlockProps)();(0,gC.useEffect)(()=>{if(!t)return;let s=t;(0,Mre.default)({path:(0,Are.addQueryArgs)("/wp/v2/comments",{post:t}),parse:!1}).then(c=>{s===t&&o(c.headers.get("X-WP-Total"))})},[t]);let i=t&&r!==void 0,l={...n.style,textDecoration:i?n.style?.textDecoration:void 0};return(0,Rre.jsx)("div",{...n,style:l,children:i?r:"0"})}var Vre=a($(),1),Jwe={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Vre.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},Fre=Jwe;var e4e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Hre=[e4e];var{name:Ore}=hC,jre={icon:d1,edit:zre,transforms:Fre,deprecated:Hre},t4e=()=>I({name:Ore,metadata:hC,settings:jre});var oM={};Z(oM,{init:()=>a4e,metadata:()=>vC,name:()=>$re,settings:()=>qre});var vC={$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 Ure=a(T(),1),Gre=a(fe(),1),bC=a(B(),1);var kb=a(v(),1);function rM({context:e}){let{postId:t,postType:r}=e,o=(0,Gre.useInstanceId)(rM),n=(0,bC.sprintf)("comments-form-edit-%d-desc",o),i=(0,Ure.useBlockProps)({"aria-describedby":n});return(0,kb.jsxs)("div",{...i,children:[(0,kb.jsx)(jk,{postId:t,postType:r}),(0,kb.jsx)(ti,{id:n,children:(0,bC.__)("Comments form disabled in editor.")})]})}var o4e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Wre=[o4e];var{name:$re}=vC,qre={icon:FP,edit:rM,deprecated:Wre},a4e=()=>I({name:$re,metadata:vC,settings:qre});var aM={};Z(aM,{init:()=>c4e,metadata:()=>yC,name:()=>ooe,settings:()=>aoe});var yC={$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 Zre=a(T(),1),xC=a(j(),1),Kre=a(F(),1),Yre=a(lv(),1),Qre=a(lr(),1),jd=a(B(),1),Xre=a(X(),1),_C=a(v(),1);function i4e({context:e}){let{postType:t,postId:r}=e,[o,n]=(0,xC.useState)(),i=(0,Zre.useBlockProps)();(0,xC.useEffect)(()=>{if(!r)return;let c=r;(0,Yre.default)({path:(0,Qre.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let l=(0,Kre.useSelect)(c=>c(Xre.store).getEditedEntityRecord("postType",t,r),[t,r]),s;if(o!==void 0){let c=parseInt(o);c===0?s=(0,jd.__)("No comments"):s=(0,jd.sprintf)((0,jd._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,_C.jsx)("div",{...i,children:l?.link&&s!==void 0?(0,_C.jsx)("a",{href:l?.link+"#comments",onClick:c=>c.preventDefault(),children:s}):(0,_C.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,jd.__)("No comments")})})}var Jre=i4e;var eoe=a($(),1),l4e={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,eoe.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},toe=l4e;var s4e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},roe=[s4e];var{name:ooe}=yC,aoe={edit:Jre,icon:d1,transforms:toe,deprecated:roe},c4e=()=>I({name:ooe,metadata:yC,settings:aoe});var nM={};Z(nM,{init:()=>b4e,metadata:()=>kC,name:()=>coe,settings:()=>uoe});var kC={$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,__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 Ud=a(B(),1),oo=a(T(),1),noe=a($(),1),kg=a(X(),1),ioe=a(F(),1),loe=a(j(),1);var ur=a(v(),1),{HTMLElementControl:m4e}=W(oo.privateApis);function p4e({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:n,tagName:i="div"}){let[,,l]=(0,kg.useEntityProp)("postType",o,"content",n),s=(0,oo.useBlockProps)({className:t}),c=(0,loe.useMemo)(()=>l?.raw?(0,noe.parse)(l.raw):[],[l?.raw]),u=(0,oo.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return r?(0,ur.jsx)("div",{...u}):l?.protected?(0,ur.jsx)(i,{...s,children:(0,ur.jsx)(oo.Warning,{children:(0,Ud.__)("This content is password protected.")})}):(0,ur.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function d4e({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[n,i,l]=(0,kg.useEntityBlockEditor)("postType",r,{id:o}),c=!!(0,ioe.useSelect)(p=>p(kg.store).getEntityRecord("postType",r,o),[r,o])?.content?.raw||n?.length,u=[["core/paragraph"]],m=(0,oo.useInnerBlocksProps)((0,oo.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,ur.jsx)(t,{...m})}function f4e(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:n,tagName:i}=e,l=zx("postType",r,o);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,ur.jsx)(d4e,{...e}):(0,ur.jsx)(p4e,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:r,postId:o,tagName:i})}function h4e({layoutClassNames:e}){let t=(0,oo.useBlockProps)({className:e});return(0,ur.jsxs)("div",{...t,children:[(0,ur.jsx)("p",{children:(0,Ud.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,ur.jsx)("p",{children:(0,Ud.__)("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,ur.jsx)("p",{children:(0,Ud.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function g4e(){let e=(0,oo.useBlockProps)();return(0,ur.jsx)("div",{...e,children:(0,ur.jsx)(oo.Warning,{children:(0,Ud.__)("Block cannot be rendered inside itself.")})})}function v4e({tagName:e,onSelectTagName:t,clientId:r}){return(0,ur.jsx)(oo.InspectorControls,{group:"advanced",children:(0,ur.jsx)(m4e,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Ud.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function soe({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,oo.useHasRecursion)(l);return l&&s&&c?(0,ur.jsx)(g4e,{}):(0,ur.jsxs)(ur.Fragment,{children:[(0,ur.jsx)(v4e,{tagName:t,onSelectTagName:m=>{r({tagName:m})},clientId:o}),(0,ur.jsx)(oo.RecursionProvider,{uniqueId:l,children:l&&s?(0,ur.jsx)(f4e,{context:e,parentLayout:i,layoutClassNames:n}):(0,ur.jsx)(h4e,{layoutClassNames:n})})]})}var{name:coe}=kC,uoe={icon:UP,edit:soe},b4e=()=>I({name:coe,metadata:kC,settings:uoe});var iM={};Z(iM,{init:()=>T4e,metadata:()=>wC,name:()=>voe,settings:()=>boe});var wC={$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 moe=a(X(),1),wg=a(j(),1),Gd=a(Yk(),1),Fn=a(T(),1),Ii=a(R(),1),ln=a(B(),1);var poe=a(Ds(),1),wb=a(F(),1),doe=a($(),1);var xo=a(v(),1);function foe(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:n,name:i}=e;vt(e);let{datetime:l,format:s,isLink:c}=t,u=(0,Fn.useBlockProps)(),m=q(),[p,d]=(0,wg.useState)(null),f=(0,wg.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:h}=(0,wb.useDispatch)(Fn.store);(0,wg.useEffect)(()=>{l===void 0&&(h(),n({datetime:new Date}))},[l]);let g=Number.isFinite(o),b=(0,Gd.getSettings)(),{postType:y,siteFormat:_=b.formats.date,siteTimeFormat:x=b.formats.time}=(0,wb.useSelect)(P=>{let{getPostType:N,getEntityRecord:z}=P(moe.store),V=z("root","site");return{siteFormat:V?.date_format,siteTimeFormat:V?.time_format,postType:r?N(r):null}},[r]),k=(0,wb.useSelect)(P=>P(doe.store).getActiveBlockVariation(i,t)?.name,[i,t]),S=(0,Fn.useBlockEditingMode)(),C=l||new Date,E=(0,xo.jsx)("time",{dateTime:(0,Gd.dateI18n)("c",C),ref:d,children:s==="human-diff"?(0,Gd.humanTimeDiff)(C):(0,Gd.dateI18n)(s||_,C)});return c&&l&&(E=(0,xo.jsx)("a",{href:"#post-date-pseudo-link",onClick:P=>P.preventDefault(),children:E})),(0,xo.jsxs)(xo.Fragment,{children:[(S==="default"||!g)&&k!=="post-date-modified"&&(!g||!k)&&(0,xo.jsx)(Fn.BlockControls,{group:"block",children:(0,xo.jsx)(Ii.ToolbarGroup,{children:(0,xo.jsx)(Ii.Dropdown,{popoverProps:f,renderContent:({onClose:P})=>(0,xo.jsx)(Fn.__experimentalPublishDateTimePicker,{title:k==="post-date"?(0,ln.__)("Publish Date"):(0,ln.__)("Date"),currentDate:l,onChange:N=>n({datetime:N}),is12Hour:_4e(x),onClose:P,dateOrder:(0,ln._x)("dmy","date order")}),renderToggle:({isOpen:P,onToggle:N})=>{let z=V=>{!P&&V.keyCode===poe.DOWN&&(V.preventDefault(),N())};return(0,xo.jsx)(Ii.ToolbarButton,{"aria-expanded":P,icon:Dp,title:(0,ln.__)("Change Date"),onClick:N,onKeyDown:z})}})})}),(0,xo.jsx)(Fn.InspectorControls,{children:(0,xo.jsxs)(Ii.__experimentalToolsPanel,{label:(0,ln.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:m,children:[(0,xo.jsx)(Ii.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,ln.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,xo.jsx)(Fn.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:P=>n({format:P})})}),(0,xo.jsx)(Ii.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:y?.labels?.singular_name?(0,ln.sprintf)((0,ln.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,ln.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,xo.jsx)(Ii.ToggleControl,{label:y?.labels?.singular_name?(0,ln.sprintf)((0,ln.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,ln.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,xo.jsx)("div",{...u,children:E})]})}function _4e(e){return/(?:^|[^\\])[aAgh]/.test(e)}var x4e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},k4e={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 he({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}},w4e={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=w(e,"wp-block-post-date__modified-date")),he({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},C4e={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 he(Ut(e))},isEligible({style:e}){return e?.typography?.fontFamily}},hoe=[x4e,k4e,w4e,C4e];var Cb=a(B(),1),S4e=[{name:"post-date",title:(0,Cb.__)("Post Date"),description:(0,Cb.__)("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,Cb.__)("Modified Date"),description:(0,Cb.__)("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"}],goe=S4e;var{name:voe}=wC,boe={icon:g1,edit:foe,deprecated:hoe,variations:goe},T4e=()=>I({name:voe,metadata:wC,settings:boe});var sM={};Z(sM,{init:()=>N4e,metadata:()=>CC,name:()=>Soe,settings:()=>Toe});var CC={$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 SC=a(X(),1),_oe=a(j(),1),du=a(T(),1),fu=a(R(),1),sn=a(B(),1),xoe=a(F(),1);var ao=a(v(),1),yoe="\u2026";function koe(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}=e;vt(e);let u=Number.isFinite(c),m=zx("postType",s,l),[p,d,{rendered:f,protected:h}={}]=(0,SC.useEntityProp)("postType",s,"excerpt",l),g=q(),b=(0,xoe.useSelect)(V=>s==="page"?!0:!!V(SC.store).getPostType(s)?.supports?.excerpt,[s]),y=m&&!u&&b,_=(0,du.useBlockProps)(),x=(0,sn._x)("words","Word count type. Do not translate!"),k=(0,_oe.useMemo)(()=>{if(!f)return"";let V=new window.DOMParser().parseFromString(f,"text/html");return V.body.textContent||V.body.innerText||""},[f]);if(!s||!l)return(0,ao.jsx)("div",{..._,children:(0,ao.jsx)("p",{children:(0,sn.__)("This block will display the excerpt.")})});if(h&&!m)return(0,ao.jsx)("div",{..._,children:(0,ao.jsx)(du.Warning,{children:(0,sn.__)("The content is currently protected and does not have the available excerpt.")})});let S=(0,ao.jsx)(du.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,sn.__)("\u201CRead more\u201D link text"),placeholder:(0,sn.__)('Add "read more" link text'),value:t,onChange:V=>n({moreText:V}),withoutInteractiveFormatting:!0}),C=w("wp-block-post-excerpt__excerpt",{"is-inline":!r}),E=(p||k).trim(),P="";if(x==="words")P=E.split(/\s+/,o).join(" ");else if(x==="characters_excluding_spaces"){let V=E.split("",o).join(""),A=V.length-V.replaceAll(" ","").length;P=E.split("",o+A).join("")}else x==="characters_including_spaces"&&(P=E.split("",o).join(""));let N=P!==E,z=y?(0,ao.jsx)(du.RichText,{className:C,"aria-label":(0,sn.__)("Excerpt text"),value:i?E:(N?P+yoe:E)||(0,sn.__)("No excerpt found"),onChange:d,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,ao.jsx)("p",{className:C,children:N?P+yoe:E||(0,sn.__)("No excerpt found")});return(0,ao.jsxs)(ao.Fragment,{children:[(0,ao.jsx)(du.InspectorControls,{children:(0,ao.jsxs)(fu.__experimentalToolsPanel,{label:(0,sn.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:g,children:[(0,ao.jsx)(fu.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,sn.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,ao.jsx)(fu.ToggleControl,{label:(0,sn.__)("Show link on new line"),checked:r,onChange:V=>n({showMoreOnNewLine:V})})}),(0,ao.jsx)(fu.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,sn.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,ao.jsx)(fu.RangeControl,{__next40pxDefaultSize:!0,label:(0,sn.__)("Max number of words"),value:o,onChange:V=>{n({excerptLength:V})},min:"10",max:"100"})})]})}),(0,ao.jsxs)("div",{..._,children:[z,!r&&" ",r?(0,ao.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:S}):S]})]})}var lM=a($(),1),B4e={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,lM.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,lM.createBlock)("core/post-content")}]},woe=B4e;var E4e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Coe=[E4e];var{name:Soe}=CC,Toe={icon:WP,transforms:woe,edit:koe,deprecated:Coe},N4e=()=>I({name:Soe,metadata:CC,settings:Toe});var uM={};Z(uM,{init:()=>j4e,metadata:()=>TC,name:()=>Hoe,settings:()=>Ooe});var TC={$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 Roe=a(Br(),1),Sb=a(X(),1),Tb=a(F(),1),ko=a(R(),1),Tr=a(T(),1),Gm=a(j(),1),Ia=a(B(),1);var zoe=a(_r(),1);var Hm=a(B(),1),Poe=a(R(),1),PC=a(T(),1);var Boe=a(v(),1),{DimensionsTool:D4e}=W(PC.privateApis),L4e="cover",M4e=["aspectRatio","width","height","scale"],A4e=[{value:"cover",label:(0,Hm._x)("Cover","Scale option for Image dimension control"),help:(0,Hm.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,Hm._x)("Contain","Scale option for Image dimension control"),help:(0,Hm.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,Hm._x)("Fill","Scale option for Image dimension control"),help:(0,Hm.__)("Image will be stretched and distorted to completely fill the space.")}],R4e=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:n=!1})=>{let{style:i}=t,l=nh(o),s=li({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"aspectRatio"}),c=li({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"width"}),u=li({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"height"}),m=li({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"scale",styleKey:"objectFit"}),[p]=(0,PC.useSettings)("spacing.units"),d=(0,Poe.__experimentalUseCustomUnits)({availableUnits:p||["px","%","vw","em","rem"]});return(0,Boe.jsx)(D4e,{panelId:e,value:{aspectRatio:s,width:c,height:u,scale:m},onChange:h=>{let g={...h,width:!h.width&&h.height?"auto":h.width};r(ih({style:i,selectedState:o,hasSelectedStyleState:n,nextDimensions:g,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:M4e}))},defaultScale:L4e,defaultAspectRatio:"auto",scaleOptions:A4e,unitsOptions:d},l)},Eoe=R4e;var EC=a(R(),1),jm=a(T(),1),Noe=a(fe(),1),BC=a(B(),1),Om=a(v(),1),z4e=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,jm.__experimentalUseGradient)(),c=(0,jm.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Om.jsxs)(Om.Fragment,{children:[(0,Om.jsx)(jm.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:l,label:(0,BC.__)("Overlay"),onColorChange:n,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,Om.jsx)(EC.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,BC.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Om.jsx)(EC.RangeControl,{label:(0,BC.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null},Ioe=(0,Noe.compose)([(0,jm.withColors)({overlayColor:"background-color"})])(z4e);var Um=a(T(),1),Loe=a(fe(),1);function Doe(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var Moe=a(v(),1),V4e=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:n}=(0,Um.__experimentalUseGradient)(),i=(0,Um.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,Um.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!r?null:(0,Moe.jsx)("span",{"aria-hidden":"true",className:w("wp-block-post-featured-image__overlay",Doe(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[o]:o},l.className),style:s})},cM=(0,Loe.compose)([(0,Um.withColors)({overlayColor:"background-color"})])(V4e);var Ke=a(v(),1),Aoe=["image"],{isDefaultBlockStyleState:F4e,ResolutionTool:H4e}=W(Tr.privateApis),Cg=e=>e!=null&&e!=="",Voe="full";function O4e({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,Tb.useSelect)(i=>{let{getSettings:l}=i(Tr.store);return{imageSizes:l().imageSizes}},[]);if(!o?.length)return null;let n=o.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Ke.jsx)(H4e,{value:t,defaultValue:Voe,options:n,onChange:r})}function Foe({clientId:e,attributes:t,setAttributes:r,context:{postId:o,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:m,scale:p,sizeSlug:d,rel:f,linkTarget:h,useFirstImageFromPost:g}=t,[b,y]=(0,Gm.useState)(),[_,x]=(0,Sb.useEntityProp)("postType",n,"featured_media",o),[k]=(0,Sb.useEntityProp)("postType",n,"content",o),S=(0,Gm.useMemo)(()=>{if(_)return _;if(!g)return;let ee=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(k);return ee?.groups?.attrs&&JSON.parse(ee.groups.attrs)?.id},[_,g,k]),{media:C,postType:E,postPermalink:P,selectedStyleState:N}=(0,Tb.useSelect)(ee=>{let{getEntityRecord:ve,getPostType:Ne,getEditedEntityRecord:Re}=ee(Sb.store),{getSelectedBlockStyleState:Be}=W(ee(Tr.store));return{media:S&&ve("postType","attachment",S,{context:"view"}),postType:n&&Ne(n),postPermalink:Re("postType",n,o)?.link,selectedStyleState:Be(e)}},[e,S,n,o]),z=!F4e(N),V=C?.media_details?.sizes?.[d]?.source_url||C?.source_url,A=(0,Tr.useBlockProps)({className:w({"is-transient":b})}),M=(0,Tr.__experimentalUseBorderProps)(t),L=(0,Tr.__experimentalGetShadowClassesAndStyles)(t),U=(0,Tr.useBlockEditingMode)(),H=ee=>(0,Ke.jsx)(ko.Placeholder,{className:w("block-editor-media-placeholder",M.className),withIllustration:!0,style:{aspectRatio:c,height:Cg(u)?u:Cg(m)&&"auto",width:Cg(m)?m:!!c&&"100%",...M.style,...L.style},children:ee}),G=ee=>{ee?.id&&x(ee.id),ee?.url&&(0,Roe.isBlobURL)(ee.url)&&y(ee.url)},Y=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),x(0)};(0,Gm.useEffect)(()=>{V&&b&&y()},[V,b]);let{createErrorNotice:O}=(0,Tb.useDispatch)(zoe.store),te=ee=>{O(ee,{type:"snackbar"}),y()},se=q(),Q=U==="default"&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Tr.InspectorControls,{group:"color",children:(0,Ke.jsx)(Ioe,{attributes:t,setAttributes:r,clientId:e})}),(0,Ke.jsx)(Tr.InspectorControls,{group:"dimensions",resetAllFilter:ee=>lh({attributes:ee,selectedState:N,hasSelectedStyleState:z,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,Ke.jsx)(Eoe,{clientId:e,attributes:t,setAttributes:r,media:C,selectedStyleState:N,hasSelectedStyleState:z})}),(S||l||!o)&&(0,Ke.jsx)(Tr.InspectorControls,{children:(0,Ke.jsxs)(ko.__experimentalToolsPanel,{label:(0,Ia.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Voe})},dropdownMenuProps:se,children:[(0,Ke.jsx)(ko.__experimentalToolsPanelItem,{label:E?.labels?.singular_name?(0,Ia.sprintf)((0,Ia.__)("Link to %s"),E.labels.singular_name):(0,Ia.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({isLink:!1}),children:(0,Ke.jsx)(ko.ToggleControl,{label:(0,Ia.__)("Make image a link"),onChange:()=>r({isLink:!s}),checked:s})}),s&&(0,Ke.jsx)(ko.__experimentalToolsPanelItem,{label:(0,Ia.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>h!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Ke.jsx)(ko.ToggleControl,{label:(0,Ia.__)("Open in new tab"),onChange:ee=>r({linkTarget:ee?"_blank":"_self"}),checked:h==="_blank"})}),s&&(0,Ke.jsx)(ko.__experimentalToolsPanelItem,{label:(0,Ia.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,Ke.jsx)(ko.TextControl,{label:(0,Ia.__)("Link relation"),help:(0,Gm.createInterpolateElement)((0,Ia.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ke.jsx)(ko.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ee=>r({rel:ee})})}),!!C&&(0,Ke.jsx)(O4e,{image:C,value:d,onChange:ee=>r({sizeSlug:ee})})]})})]}),ce;if(!S&&(l||!o))return(0,Ke.jsxs)(Ke.Fragment,{children:[Q,(0,Ke.jsxs)("div",{...A,children:[s?(0,Ke.jsx)("a",{href:P,target:h,children:H()}):H(),(0,Ke.jsx)(cM,{attributes:t,setAttributes:r,clientId:e})]})]});let Ee=(0,Ia.__)("Add a featured image"),le={...M.style,...L.style,aspectRatio:c,height:Cg(u)?u:Cg(m)&&"auto",width:Cg(m)?m:!!c&&"100%",objectFit:!!(u||c)&&p};return!S&&!b?ce=(0,Ke.jsx)(Tr.MediaPlaceholder,{onSelect:G,accept:"image/*",allowedTypes:Aoe,onError:te,placeholder:H,mediaLibraryButton:({open:ee})=>(0,Ke.jsx)(ko.Button,{__next40pxDefaultSize:!0,icon:Ac,variant:"primary",label:Ee,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ee()}})}):ce=!C&&!b?H():(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("img",{className:M.className,src:b||V,alt:C&&C?.alt_text?(0,Ia.sprintf)((0,Ia.__)("Featured image: %s"),C.alt_text):(0,Ia.__)("Featured image"),style:le}),b&&(0,Ke.jsx)(ko.Spinner,{})]}),(0,Ke.jsxs)(Ke.Fragment,{children:[!b&&Q,!!C&&!l&&(0,Ke.jsx)(Tr.BlockControls,{group:"other",children:(0,Ke.jsx)(Tr.MediaReplaceFlow,{mediaId:S,mediaURL:V,allowedTypes:Aoe,accept:"image/*",onSelect:G,onError:te,onReset:Y})}),(0,Ke.jsxs)("figure",{...A,children:[s?(0,Ke.jsx)("a",{href:P,target:h,children:ce}):ce,(0,Ke.jsx)(cM,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:Hoe}=TC,Ooe={icon:qP,edit:Foe},j4e=()=>I({name:Hoe,metadata:TC,settings:Ooe});var mM={};Z(mM,{init:()=>W4e,metadata:()=>NC,name:()=>Koe,settings:()=>Yoe});var Zoe=a(B(),1);var NC={$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 aa=a(R(),1),Wd=a(T(),1),dr=a(B(),1),joe=a(F(),1),Uoe=a(X(),1);var Pr=a(v(),1);function Goe({context:{postType:e},attributes:{type:t,label:r,showTitle:o,linkLabel:n,arrow:i,taxonomy:l},setAttributes:s}){let c=t==="next",u=c?(0,dr.__)("Next"):(0,dr.__)("Previous"),p={none:"",arrow:c?"\u2192":"\u2190",chevron:c?"\xBB":"\xAB"}[i];o&&(u=c?(0,dr.__)("Next: "):(0,dr.__)("Previous: "));let d=c?(0,dr.__)("Next post"):(0,dr.__)("Previous post"),f=(0,Wd.useBlockProps)(),h=(0,joe.useSelect)(y=>{let{getTaxonomies:_}=y(Uoe.store);return _({type:e,per_page:-1})},[e]),g=()=>{let y={label:(0,dr.__)("Unfiltered"),value:""},_=(h??[]).filter(({visibility:x})=>!!x?.publicly_queryable).map(x=>({value:x.slug,label:x.name}));return[y,..._]},b=q();return(0,Pr.jsxs)(Pr.Fragment,{children:[(0,Pr.jsx)(Wd.InspectorControls,{children:(0,Pr.jsxs)(aa.__experimentalToolsPanel,{label:(0,dr.__)("Settings"),resetAll:()=>{s({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:b,children:[(0,Pr.jsx)(aa.__experimentalToolsPanelItem,{label:(0,dr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>s({showTitle:!1}),children:(0,Pr.jsx)(aa.ToggleControl,{label:(0,dr.__)("Display the title as a link"),help:(0,dr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!o,onChange:()=>s({showTitle:!o})})}),o&&(0,Pr.jsx)(aa.__experimentalToolsPanelItem,{label:(0,dr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>s({linkLabel:!1}),children:(0,Pr.jsx)(aa.ToggleControl,{label:(0,dr.__)("Include the label as part of the link"),checked:!!n,onChange:()=>s({linkLabel:!n})})}),(0,Pr.jsx)(aa.__experimentalToolsPanelItem,{label:(0,dr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>i!=="none",onDeselect:()=>s({arrow:"none"}),children:(0,Pr.jsxs)(aa.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Arrow"),value:i,onChange:y=>{s({arrow:y})},help:(0,dr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,Pr.jsx)(aa.__experimentalToggleGroupControlOption,{value:"none",label:(0,dr._x)("None","Arrow option for Next/Previous link")}),(0,Pr.jsx)(aa.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,dr._x)("Arrow","Arrow option for Next/Previous link")}),(0,Pr.jsx)(aa.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,dr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,Pr.jsx)(Wd.InspectorControls,{group:"advanced",children:(0,Pr.jsx)(aa.SelectControl,{__next40pxDefaultSize:!0,label:(0,dr.__)("Filter by taxonomy"),value:l,options:g(),onChange:y=>s({taxonomy:y}),help:(0,dr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,Pr.jsxs)("div",{...f,children:[!c&&p&&(0,Pr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${i}`,children:p}),(0,Pr.jsx)(Wd.RichText,{tagName:"a",identifier:"label","aria-label":d,placeholder:u,value:r,withoutInteractiveFormatting:!0,onChange:y=>s({label:y})}),o&&(0,Pr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:y=>y.preventDefault(),children:(0,dr.__)("An example title")}),c&&p&&(0,Pr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${i}`,"aria-hidden":!0,children:p})]})]})}var $d=a(B(),1);var Woe=[{name:"post-previous",title:(0,$d.__)("Previous Post"),description:(0,$d.__)("Displays the post link that precedes the current post."),icon:eB,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,$d.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,$d.__)("Next Post"),description:(0,$d.__)("Displays the post link that follows the current post."),icon:gP,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,$d.__)("Next post"),arrow:"arrow"}}}];Woe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var $oe=Woe;var G4e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},qoe=[G4e];var{name:Koe}=NC,Yoe={edit:Goe,variations:$oe,deprecated:qoe,example:{attributes:{label:(0,Zoe.__)("Next post"),arrow:"arrow"}}},W4e=()=>I({name:Koe,metadata:NC,settings:Yoe});var pM={};Z(pM,{init:()=>Q4e,metadata:()=>IC,name:()=>oae,settings:()=>aae});var IC={$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"],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 Sg=a(j(),1),Qoe=a(F(),1),Pb=a(B(),1),ul=a(T(),1),DC=a(R(),1),Xoe=a(X(),1);var Da=a(v(),1),q4e=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function Z4e({classList:e}){let t=(0,ul.useInnerBlocksProps)({className:w("wp-block-post",e)},{template:q4e,__unstableDisableLayoutClassNames:!0});return(0,Da.jsx)("li",{...t})}function K4e({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,ul.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-post",r)}}),l=()=>{n(t)};return(0,Da.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var Y4e=(0,Sg.memo)(K4e);function Joe({setAttributes:e,clientId:t,context:{query:{perPage:r,offset:o=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:m,inherit:p,taxQuery:d,parents:f,pages:h,format:g,...b}={},templateSlug:y,previewPostType:_},attributes:{layout:x},__unstableLayoutClassNames:k}){let{type:S,columnCount:C=3,minimumColumnWidth:E}=x||{},[P,N]=(0,Sg.useState)(),{posts:z,blocks:V}=(0,Qoe.useSelect)(H=>{let{getEntityRecords:G,getTaxonomies:Y}=H(Xoe.store),{getBlocks:O}=H(ul.store),te=p&&y?.startsWith("category-")&&G("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:y.replace("category-","")}),se=p&&y?.startsWith("tag-")&&G("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:y.replace("tag-","")}),Q={offset:o||0,order:i,orderby:l};if(d&&!p){let le=Y({type:n,per_page:-1,context:"view"}),ee=(Ne,Re="")=>Object.entries(Ne||{}).reduce((Be,[Ve,oe])=>{let J=le?.find(({slug:re})=>re===Ve);return J?.rest_base&&oe?.length&&(Be[J.rest_base+Re]=oe),Be},{}),ve=ee(d.include);d.exclude&&Object.assign(ve,ee(d.exclude,"_exclude")),Object.keys(ve).length&&Object.assign(Q,ve)}r&&(Q.per_page=r),s&&(Q.author=s),c&&(Q.search=c),u?.length&&(Q.exclude=u),f?.length&&(Q.parent=f),g?.length&&(Q.format=g),["exclude","only"].includes(m)&&(Q.sticky=m==="only"),["","ignore"].includes(m)&&(delete Q.sticky,Q.ignore_sticky=m==="ignore");let ce=n;return p&&(y?.startsWith("archive-")?(Q.postType=y.replace("archive-",""),ce=Q.postType):te?Q.categories=te[0]?.id:se?Q.tags=se[0]?.id:y?.startsWith("taxonomy-post_format")&&(Q.format=y.replace("taxonomy-post_format-post-format-",""))),{posts:G("postType",_||ce,{...Q,...b}),blocks:O(t)}},[r,o,i,l,t,s,c,n,u,m,p,y,d,f,g,b,_]),A=(0,Sg.useMemo)(()=>z?.map(H=>({postType:H.type,postId:H.id,classList:H.class_list??""})),[z]),M=(0,ul.useBlockProps)({className:w(k,{[`columns-${C}`]:S==="grid"&&C,"has-native-responsive-grid":S==="grid"&&C&&E})});if(!z)return(0,Da.jsx)("p",{...M,children:(0,Da.jsx)(DC.Spinner,{})});if(!z.length)return(0,Da.jsxs)("p",{...M,children:[" ",(0,Pb.__)("No results found.")]});let L=H=>e({layout:{...x,...H}}),U=[{icon:Ll,title:(0,Pb._x)("List view","Post template block display setting"),onClick:()=>L({type:"default"}),isActive:S==="default"||S==="constrained"},{icon:Dl,title:(0,Pb._x)("Grid view","Post template block display setting"),onClick:()=>L({type:"grid",columnCount:C}),isActive:S==="grid"}];return(0,Da.jsxs)(Da.Fragment,{children:[(0,Da.jsx)(ul.BlockControls,{children:(0,Da.jsx)(DC.ToolbarGroup,{controls:U})}),(0,Da.jsx)("ul",{...M,children:A&&A.map(H=>(0,Da.jsxs)(ul.BlockContextProvider,{value:H,children:[H.postId===(P||A[0]?.postId)?(0,Da.jsx)(Z4e,{classList:H.classList}):null,(0,Da.jsx)(Y4e,{blocks:V,blockContextId:H.postId,classList:H.classList,setActiveBlockContextId:N,isHidden:H.postId===(P||A[0]?.postId)})]},H.postId))})]})}var eae=a(T(),1),tae=a(v(),1);function rae(){return(0,tae.jsx)(eae.InnerBlocks.Content,{})}var{name:oae}=IC,aae={icon:Ep,edit:Joe,save:rae},Q4e=()=>I({name:oae,metadata:IC,settings:aae});var dM={};Z(dM,{init:()=>r3e,metadata:()=>LC,name:()=>gae,settings:()=>vae});var hae=a($c(),1);var LC={$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 hu=a(T(),1),MC=a($(),1),AC=a(R(),1),cae=a(F(),1),uae=a(Oo(),1),Wm=a(B(),1),mae=a(X(),1);var nae=a(X(),1),iae=a(F(),1),J4e=[];function lae({postId:e,term:t}){let{slug:r}=t;return(0,iae.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:J4e,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=o(nae.store),s=["taxonomy",r,{post:e,per_page:-1,context:"view"}],c=i(...s);return{postTerms:c,isLoading:l("getEntityRecords",s),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,r])}var La=a(v(),1),sae=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function pae({attributes:e,clientId:t,context:r,isSelected:o,setAttributes:n,insertBlocksAfter:i}){let{term:l,separator:s,prefix:c,suffix:u}=e,{postId:m,postType:p}=r,d=(0,cae.useSelect)(x=>{if(!l)return{};let{getTaxonomy:k}=x(mae.store),S=k(l);return S?.visibility?.publicly_queryable?S:{}},[l]),{postTerms:f,hasPostTerms:h,isLoading:g}=lae({postId:m,term:d}),b=m&&p,y=(0,hu.useBlockDisplayInformation)(t),_=(0,hu.useBlockProps)({className:l&&`taxonomy-${l}`});return(0,La.jsxs)(La.Fragment,{children:[(0,La.jsx)(hu.InspectorControls,{group:"advanced",children:(0,La.jsx)(AC.TextControl,{autoComplete:"off",label:(0,Wm.__)("Separator"),value:s||"",onChange:x=>{n({separator:x})},help:(0,Wm.__)("Enter character(s) used to separate terms.")})}),(0,La.jsxs)("div",{..._,children:[g&&b&&(0,La.jsx)(AC.Spinner,{}),!g&&(o||c)&&(0,La.jsx)(hu.RichText,{identifier:"prefix",allowedFormats:sae,className:"wp-block-post-terms__prefix","aria-label":(0,Wm.__)("Prefix"),placeholder:(0,Wm.__)("Prefix")+" ",value:c,onChange:x=>n({prefix:x}),tagName:"span"}),(!b||!l)&&(0,La.jsx)("span",{children:y.title}),b&&!g&&h&&f.map(x=>(0,La.jsx)("a",{href:x.link,onClick:k=>k.preventDefault(),rel:"tag",children:(0,uae.decodeEntities)(x.name)},x.id)).reduce((x,k)=>(0,La.jsxs)(La.Fragment,{children:[x,(0,La.jsx)("span",{className:"wp-block-post-terms__separator",children:s||" "}),k]})),b&&!g&&!h&&(d?.labels?.no_terms||(0,Wm.__)("Term items not found.")),!g&&(o||u)&&(0,La.jsx)(hu.RichText,{identifier:"suffix",allowedFormats:sae,className:"wp-block-post-terms__suffix","aria-label":(0,Wm.__)("Suffix"),placeholder:" "+(0,Wm.__)("Suffix"),value:u,onChange:x=>n({suffix:x}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,MC.createBlock)((0,MC.getDefaultBlockName)()))})]})]})}var e3e={category:Lf,post_tag:YP};function dae(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:e3e[o.name]??Lf}));return{...e,variations:r}}var t3e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fae=[t3e];var{name:gae}=LC,vae={icon:Lf,edit:pae,deprecated:fae},r3e=()=>((0,hae.addFilter)("blocks.registerBlockType","core/template-part",dae),I({name:gae,metadata:LC,settings:vae}));var fM={};Z(fM,{init:()=>l3e,metadata:()=>RC,name:()=>Tae,settings:()=>Pae});var RC={$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 Ma=a(B(),1),_ae=a(j(),1),zC=a(T(),1),Tg=a(R(),1),xae=a($(),1),VC=a(X(),1),kae=a(yae(),1);var mc=a(v(),1);function a3e({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:n,averageReadingSpeed:i}=e,{postId:l,postType:s}=r,c=q(),[u]=(0,VC.useEntityProp)("postType",s,"content",l),[m]=(0,VC.useEntityBlockEditor)("postType",s,{id:l}),p=(0,_ae.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:m}):m?f=(0,xae.__unstableSerializeAndClean)(m):f=u;let h=(0,Ma._x)("words","Word count type. Do not translate!"),g=(0,kae.count)(f||"",h);if(n==="time"){if(o){let y=Math.max(1,Math.round(g/i*1.2)),_=Math.max(1,Math.round(g/i*.8));_===y&&(y=y+1);let x=(0,Ma._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,Ma.sprintf)(x,_,y)}let b=Math.max(1,Math.round(g/i));return(0,Ma.sprintf)((0,Ma._n)("%s minute","%s minutes",b),b)}if(n==="words")return h==="words"?(0,Ma.sprintf)((0,Ma._n)("%s word","%s words",g),g.toLocaleString()):(0,Ma.sprintf)((0,Ma._n)("%s character","%s characters",g),g.toLocaleString())},[u,m,o,n,i]),d=(0,zC.useBlockProps)();return(0,mc.jsxs)(mc.Fragment,{children:[n==="time"&&(0,mc.jsx)(zC.InspectorControls,{children:(0,mc.jsx)(Tg.__experimentalToolsPanel,{label:(0,Ma.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,mc.jsx)(Tg.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ma._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,mc.jsx)(Tg.ToggleControl,{label:(0,Ma.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,mc.jsx)("div",{...d,children:p})]})}var wae=a3e;var Bb=a(B(),1);var n3e=[{name:"time-to-read",title:(0,Bb.__)("Time to Read"),description:(0,Bb.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:A1,isDefault:!0},{name:"word-count",title:(0,Bb.__)("Word Count"),description:(0,Bb.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:vE}],Cae=n3e;var i3e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Sae=[i3e];var{name:Tae}=RC,Pae={icon:A1,edit:wae,variations:Cae,example:{},deprecated:Sae},l3e=()=>I({name:Tae,metadata:RC,settings:Pae});var hM={};Z(hM,{init:()=>m3e,metadata:()=>FC,name:()=>Dae,settings:()=>Lae});var FC={$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 Li=a(T(),1),Di=a(R(),1),Hn=a(B(),1),HC=a($(),1),Eb=a(X(),1),Bae=a(F(),1),Eae=a(j(),1);var Zt=a(v(),1);function Nae({attributes:{level:e,levelOptions:t,isLink:r,rel:o,linkTarget:n,placeholder:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:m}){let p=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,Bae.useSelect)(E=>d?!1:E(Eb.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[h="",g,b]=(0,Eb.useEntityProp)("postType",s,"title",c),[y]=(0,Eb.useEntityProp)("postType",s,"link",c),_=()=>{m((0,HC.createBlock)((0,HC.getDefaultBlockName)()))},x=(0,Li.useBlockProps)(),k=(0,Li.useBlockEditingMode)(),S=q(),C=(0,Zt.jsx)(p,{...x,children:i||(0,Hn.__)("Title")});return s&&c&&(C=f?(0,Zt.jsx)(Li.PlainText,{tagName:p,placeholder:(0,Hn.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...x}):(0,Zt.jsx)(p,{...x,dangerouslySetInnerHTML:{__html:b?.rendered||(0,Hn.__)("(no title)")}})),r&&s&&c&&(C=f?(0,Zt.jsx)(p,{...x,children:(0,Zt.jsx)(Li.PlainText,{tagName:"a",href:y,target:n,rel:o,placeholder:h.length?null:(0,Hn.__)("(no title)"),value:h,onChange:g,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,Zt.jsx)(p,{...x,children:(0,Zt.jsx)("a",{href:y,target:n,rel:o,onClick:E=>E.preventDefault(),dangerouslySetInnerHTML:{__html:b?.rendered||(0,Hn.__)("(no title)")}})})),(0,Zt.jsxs)(Zt.Fragment,{children:[k==="default"&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Li.BlockControls,{group:"block",children:(0,Zt.jsx)(Li.HeadingLevelDropdown,{value:e,options:t,onChange:E=>l({level:E})})}),(0,Zt.jsx)(Li.InspectorControls,{children:(0,Zt.jsxs)(Di.__experimentalToolsPanel,{label:(0,Hn.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:S,children:[(0,Zt.jsx)(Di.__experimentalToolsPanelItem,{label:(0,Hn.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>l({isLink:!1}),children:(0,Zt.jsx)(Di.ToggleControl,{label:(0,Hn.__)("Make title a link"),onChange:()=>l({isLink:!r}),checked:r})}),r&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Di.__experimentalToolsPanelItem,{label:(0,Hn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,Zt.jsx)(Di.ToggleControl,{label:(0,Hn.__)("Open in new tab"),onChange:E=>l({linkTarget:E?"_blank":"_self"}),checked:n==="_blank"})}),(0,Zt.jsx)(Di.__experimentalToolsPanelItem,{label:(0,Hn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>l({rel:""}),children:(0,Zt.jsx)(Di.TextControl,{label:(0,Hn.__)("Link relation"),help:(0,Eae.createInterpolateElement)((0,Hn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Zt.jsx)(Di.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:E=>l({rel:E})})})]})]})})]}),C]})}var c3e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},u3e={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:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},Iae=[c3e,u3e];var{name:Dae}=FC,Lae={icon:Ml,edit:Nae,deprecated:Iae},m3e=()=>I({name:Dae,metadata:FC,settings:Lae});var yM={};Z(yM,{init:()=>g3e,metadata:()=>UC,name:()=>Fae,settings:()=>WC});var bM=a(B(),1);var Vae=a($(),1);var gM=a(B(),1),OC=a(T(),1),jC=a($(),1),Mae=a(v(),1);function Aae({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,OC.useBlockProps)({style:i});return(0,Mae.jsx)(OC.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,gM.__)("Preformatted text"),placeholder:(0,gM.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,jC.createBlock)((0,jC.getDefaultBlockName)()))})}var UC={$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 GC=a(T(),1),vM=a(v(),1);function Rae({attributes:e}){let{content:t}=e;return(0,vM.jsx)("pre",{...GC.useBlockProps.save(),children:(0,vM.jsx)(GC.RichText.Content,{value:t})})}var Nb=a($(),1),d3e={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,Nb.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,Nb.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Nb.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,Nb.createBlock)("core/verse",e)}]},zae=d3e;var{fieldsKey:f3e,formKey:h3e}=W(Vae.privateApis),{name:Fae}=UC,WC={icon:XP,example:{attributes:{content:(0,bM.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
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=HEe)},{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(jEe)||(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(Fo(n-5,0,this.audio.duration)),i.ArrowRight=()=>this.seekTo(Fo(n+5,0,this.audio.duration)),i.ArrowUp=()=>this.setVolume(Fo(this.audio.volume+.1)),i.ArrowDown=()=>this.setVolume(Fo(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-rce;break;case"ArrowRight":case"ArrowUp":n=o+rce;break;case"PageDown":n=o-oce;break;case"PageUp":n=o+oce;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=Fo(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",vEe(this.options.seekValueText||"%1$s of %2$s",$u(r),$u(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(Fo(this.audio.currentTime-10,0,this.audio.duration))}),navigator.mediaSession.setActionHandler("seekforward",()=>{this.seekTo(Fo(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:Fo(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=wEe(()=>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||sce(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 Xle(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=LEe(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=tce(Zle(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?SO.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?EO(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=EO(r.markers),this.renderMarkers()),this.drawWaveform()}).catch(()=>{});return}this.waveformData=IO(t,{fallback:[]}),this.drawWaveform()}drawWaveform(){!this.ctx||this.waveformData.length===0||BEe(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=Fo((t-n.left)/n.width);r.textContent=$u(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=Fo((t-r.left)/r.width),this.drawWaveform(),this._updateSeekHandle();let o=this.getSeekDuration();o&&this.currentTimeEl?(this.currentTimeEl.textContent=$u(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=Fo((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=$u(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=$u(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=S6(this.container);let t=ece(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=Fo(t/r),this.currentTimeEl&&(this.currentTimeEl.textContent=$u(t)),this._extDuration=r,this.totalTimeEl&&(!this.totalTimeEl.dataset._extSet||this.totalTimeEl.dataset._extDur!==String(r))&&(this.totalTimeEl.textContent=$u(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=Fo(t,0,this.audio.duration),this.updateProgress())}seekToPercent(t){this.audio&&this.audio.duration&&(this.audio.currentTime=this.audio.duration*Fo(t),this.updateProgress())}setVolume(t){let r=Number(t);this.audio&&Number.isFinite(r)&&(this.audio.volume=Fo(r))}setPlaybackRate(t){if(!this.audio)return;let r=T6(t,null,{min:NO,max:MO});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 Xle(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:$u,extractTitleFromUrl:sce,escapeHtml:Gc,isSafeHref:gEe,parseDataAttributes:ice,detectColorScheme:S6};var LO=()=>typeof window<"u"&&typeof document<"u",UEe=()=>!0;function nce(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 PO(e=document){if(!LO())return;let t=e||document;t.matches?.("[data-waveform-player]")&&nce(t),t.querySelectorAll("[data-waveform-player]").forEach(nce)}LO()&&!UEe()&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>PO()):PO());h0.init=PO;LO()&&(window.WaveformPlayer=h0);var pce=h0;var WEe=100,GEe="Seek";function gce(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function hce(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 $Ee(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 qEe(e){let t=$Ee(e);if(t)return t;let[r]=e.split(/\s+/);if(yr(r).isValid())return r}function ZEe(e){let r=hce(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 KEe(e,t){if(!t||yr(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=gce(r).color;return r.remove(),o&&yr(o).isValid()?o:t}function RO(e,t){let r=YEe(t)?.map(o=>KEe(e,o)).filter(o=>yr(o).isValid());return r?.length>1?r:void 0}function mce(e,t){return Array.isArray(e)?e.map(r=>yr(r).alpha(t).toRgbString()):yr(e).alpha(t).toRgbString()}function bce(e){return Array.isArray(e)?e[e.length-1]:e}function YEe(e){let t=hce(e).map(qEe).filter(Boolean);return t.length>1?t:void 0}function fce(e){return Array.isArray(e)?JSON.stringify(e):e}function QEe(e,t,r,o){let n=r||gce(e).color,i=RO(e,o),s=i||t||n,l=mce(s,.3),c=mce(s,.6),u=i?ZEe(o):void 0;return{textColor:n,waveformColor:l,progressColor:c,...u&&{waveformGradient:u}}}function XEe({url:e,title:t,artist:r,artwork:o,waveformColor:n,progressColor:i,waveformGradient:s,buttonColor:l,seekLabel:c,seekValueText:u,height:d=WEe,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",fce(n)),m.setAttribute("data-progress-color",fce(i)),s&&m.setAttribute("data-waveform-gradient",s),m.setAttribute("data-button-color",l),m.setAttribute("data-seek-label",yce(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 DO(e,{backgroundColor:t,backgroundGradient:r,textColor:o,playButtonColor:n,playButtonGradient:i}={}){let s=e.querySelector(".waveform-container"),l=e.querySelector(".waveform-btn"),c=bce(RO(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 JEe(e,t){let o=yr(t).isDark()?"#ffffff":"#000000";e.querySelectorAll("svg path").forEach(i=>{i.style.fill=o})}function ePe(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 yce(e){return e||GEe}function vce(e,t){let r=yce(t);e.options.seekLabel=r,e.applySeekLabel?.(r);let o=e?.container?.querySelector(".waveform-container");o&&o.setAttribute("aria-label",r)}function P6(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 tPe(e){e.name!=="AbortError"&&console.error("Playlist play error:",e)}function _ce(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 b=h?void 0:n,{textColor:_,waveformColor:v,progressColor:w,waveformGradient:x}=QEe(e,s,c,l),k=RO(e,l),C=bce(k||s),S=XEe({url:t,title:r,artist:o,artwork:b,waveformColor:v,progressColor:w,waveformGradient:x,buttonColor:_,seekLabel:r||f?.seek,seekValueText:f?.seekValueText,waveformStyle:g});e.appendChild(S);let P=new pce(S);P.artworkEl&&(P.artworkEl.alt=i||""),DO(S,{backgroundColor:u,backgroundGradient:d,textColor:_,playButtonColor:h?void 0:C,playButtonGradient:h?void 0:l});let B,N={ready:()=>{JEe(S,C||_),h&&P6(S,n),B=ePe(S,f),p&&P.play()?.catch(tPe)},ended:()=>m?.()};return S.addEventListener("waveformplayer:ready",N.ready),S.addEventListener("waveformplayer:ended",N.ended),{instance:P,container:S,destroy:()=>{B?.(),S.removeEventListener("waveformplayer:ready",N.ready),S.removeEventListener("waveformplayer:ended",N.ended),P.destroy(),S.remove()}}}var xce=a(y(),1);function rPe(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??""),vce(s,t||(0,gx.__)("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&&P6(l,o)}function kce({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,B6.useEvent)(p),g=(0,$c.useRef)(),h=!!e,b=(0,$c.useRef)({src:e,title:t,artist:r,image:o,imageAlt:n}),_=(0,$c.useRef)({color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u});(0,$c.useEffect)(()=>{b.current={src:e,title:t,artist:r,image:o,imageAlt:n}},[e,t,r,o,n]),(0,$c.useEffect)(()=>{_.current={color:i,gradient:s,backgroundColor:l,backgroundGradient:c,textColor:u}},[i,s,l,c,u]),(0,$c.useEffect)(()=>{g.current?.container&&DO(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 v=(0,B6.useRefEffect)(w=>{if(!h)return;let x=!1,k;function C(){if(x)return;let P=_ce(w,{src:b.current.src,title:b.current.title,artist:b.current.artist,image:b.current.image,imageAlt:b.current.imageAlt,waveformColor:_.current.color,waveformGradient:_.current.gradient,backgroundColor:_.current.backgroundColor,backgroundGradient:_.current.backgroundGradient,textColor:_.current.textColor,waveformStyle:d,labels:{seek:(0,gx.__)("Seek"),seekValueText:(0,gx._x)("%1$s of %2$s","audio current time of total duration")},onEnded:()=>f?.(),showPlayButtonArtwork:m});g.current=P;let{destroy:B}=P;k=B}let S=setTimeout(C,100);return()=>{x=!0,clearTimeout(S),g.current=void 0,k?.()}},[f,h,d,i,s,u,m]);return(0,$c.useEffect)(()=>{if(g.current?.instance){let w=g.current;w&&rPe(w,{title:t,artist:r,image:o,imageAlt:n},m)}},[t,r,o,n,m]),(0,$c.useEffect)(()=>{if(e&&g.current?.instance){let w=g.current.instance.isPlaying;g.current.instance.loadTrack(e,b.current.title,b.current.artist,{artwork:m?void 0:b.current.image,artworkAlt:m?"":b.current.imageAlt}).then(()=>{m&&g.current?.container&&P6(g.current.container,b.current.image),w||g.current?.instance.pause()})}},[e,m]),(0,xce.jsx)("div",{ref:v,className:"wp-block-playlist__waveform-player"})}var wce=a(W(),1),I6=(0,wce.createContext)({currentTrackClientId:null,setCurrentTrackClientId:()=>{}});var AO=a(L(),1),Cce=a($o(),1);function Sce(e){return e?.url??e?.source_url}function oPe(e){let t=e?.title;if(t!==void 0)return typeof t=="string"?t:(0,Cce.decodeEntities)(t?.raw||t?.rendered||"")}function OO(e){let t=e?.src??Sce(e);return t?.endsWith("/images/media/audio.svg")?{image:"",imageAlt:""}:{image:t,imageAlt:t?e?.alt||e?.alt_text||"":void 0}}function N6(e){let t=Sce(e);return{id:e.id||t,src:t,title:oPe(e),artist:e.artist||e?.meta?.artist||e?.media_details?.artist||(0,AO.__)("Unknown artist"),album:e.album||e?.meta?.album||e?.media_details?.album||(0,AO.__)("Unknown album"),length:e?.fileLength||e?.media_details?.length_formatted,...OO(e?.image)}}var Xe=a(y(),1),FO=["audio"],nPe=[],aPe=/\.(aac|aif|aiff|flac|m4a|m4b|mp3|oga|ogg|opus|wav|weba)$/i,M6="bars",iPe="[object FileList]",sPe=[{label:(0,vt._x)("Bars","waveform style option"),value:"bars"},{label:(0,vt._x)("Mirror","waveform style option"),value:"mirror"},{label:(0,vt._x)("Line","waveform style option"),value:"line"},{label:(0,vt._x)("Blocks","waveform style option"),value:"blocks"},{label:(0,vt._x)("Dots","waveform style option"),value:"dots"},{label:(0,vt._x)("Seekbar","waveform style option"),value:"seekbar"}];function lPe(e){return Object.prototype.toString.call(e)==="[object File]"||typeof File<"u"&&e instanceof File}function cPe(e){return e.type?e.type.startsWith("audio/"):aPe.test(e.name)}function Tce(e){return e.id??e.src??e.blob}var uPe=({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=M6,waveformColor:f,waveformGradient:g,waveformBackgroundColor:h,waveformBackgroundGradient:b}=e,_=(0,Or.useBlockProps)(),v=`${n}-waveform`,{replaceInnerBlocks:w,replaceBlocks:x,insertBlocks:k,selectBlock:C,__unstableMarkNextChangeAsNotPersistent:S}=(0,hx.useDispatch)(Or.store),{createErrorNotice:P}=(0,hx.useDispatch)(Ece.store),B=ee(),N=(0,Or.__experimentalUseMultipleOriginColorsAndGradients)(),E=(0,ho.useMemo)(()=>N.colors.flatMap(re=>re?.colors??[]),[N.colors]),M=(0,ho.useMemo)(()=>N.gradients.flatMap(re=>re?.gradients??[]),[N.gradients]),R=E.length>0||!N.disableCustomColors,O=M.length>0||!N.disableCustomGradients,j=g,V=b,G,$,z=(0,ho.useCallback)(re=>{P(re,{type:"snackbar"})},[P]),[K,q]=(0,ho.useState)(null),{innerBlockTracks:Y}=(0,hx.useSelect)(re=>{let{getBlock:Pe}=re(Or.store);return{innerBlockTracks:Pe(n)?.innerBlocks??nPe}},[n]),oe=(0,ho.useMemo)(()=>Y.filter(re=>!!re.attributes.src||!!re.attributes.blob),[Y]),Z=(0,ho.useMemo)(()=>oe.map(re=>({...re.attributes,clientId:re.clientId})),[oe]);(0,ho.useEffect)(()=>{if(oe.length===0){K!==null&&q(null);return}oe.some(Pe=>Pe.clientId===K)||q(oe[0].clientId)},[K,q,oe]),(0,ho.useEffect)(()=>{oe.length>0||Y.length===0||(S(),w(n,[]))},[n,Y,w,oe,S]);let U=(0,ho.useCallback)(re=>{if(!re)return[];let Pe=[re];Object.prototype.toString.call(re)===iPe?Pe=Array.from(re):Array.isArray(re)&&(Pe=re);let Se=!1,rr=Pe.map(Ft=>{if(lPe(Ft))return cPe(Ft)?(0,VO.createBlock)("core/playlist-track",{blob:(0,Pce.createBlobURL)(Ft),title:Ft.name}):(Se=!0,null);let gr=N6(Ft);return gr.src?(0,VO.createBlock)("core/playlist-track",gr):null}).filter(Boolean);return Se&&z((0,vt.__)("Only audio files can be added to a playlist.")),rr},[z]),X=(0,ho.useCallback)(re=>{let Pe=U(re);Pe.length!==0&&(q(Pe[0]?.clientId??null),w(n,Pe))},[n,U,w,q]),Q=(0,ho.useCallback)(re=>{let Pe=new Set(oe.map(rr=>Tce(rr.attributes)).filter(Boolean)),Se=U(re).filter(rr=>!Pe.has(Tce(rr.attributes)));Se.length!==0&&(q(Se[0].clientId),k(Se,void 0,n,!1),C(Se[0].clientId))},[n,U,k,C,q,oe]),ie=(0,ho.useCallback)(re=>{x(re,[])},[x]),me=(0,ho.useMemo)(()=>({currentTrackClientId:K,setCurrentTrackClientId:q,removeTrack:ie}),[K,q,ie]),xe=Z.find(re=>re.clientId===K)??Z[0],Be=(0,ho.useCallback)(()=>{let re=Z.findIndex(Se=>Se.clientId===K),Pe=Z[re+1]||Z[0];Pe?.clientId&&q(Pe.clientId)},[K,q,Z]),se=(0,ho.useCallback)(re=>{let Pe=[...Y].sort((Se,rr)=>{let Ft=Se.attributes.title||"",gr=rr.attributes.title||"";return re==="asc"?Ft.localeCompare(gr):gr.localeCompare(Ft)});w(n,Pe),q(Pe[0]?.clientId??null),t({order:re})},[n,Y,w,t,q]);function he(re){return Pe=>{t({[re]:Pe})}}let ze=(0,ho.useCallback)(re=>{t({waveformStyle:re===M6?void 0:re})},[t]);function qe(re){if(!(re!==void 0)&&G==="gradient"){G=void 0;return}G="color",t({waveformColor:re,waveformGradient:void 0})}function ce(re){if(!(re!==void 0)&&G==="color"){G=void 0;return}G="gradient",t({waveformGradient:re,waveformColor:void 0})}function ge(re){if(!(re!==void 0)&&$==="gradient"){$=void 0;return}$="color",t({waveformBackgroundColor:re,waveformBackgroundGradient:void 0})}function Qe(re){if(!(re!==void 0)&&$==="color"){$=void 0;return}$="gradient",t({waveformBackgroundGradient:re,waveformBackgroundColor:void 0})}let ye=[];(R||O)&&ye.push({colorValue:R?f:void 0,gradientValue:O?j:void 0,label:(0,vt.__)("Waveform & Play button"),onColorChange:R?qe:void 0,onGradientChange:O?ce:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformColor:void 0,waveformGradient:void 0})},{colorValue:R?h:void 0,gradientValue:O?V:void 0,label:(0,vt.__)("Waveform background"),onColorChange:R?ge:void 0,onGradientChange:O?Qe:void 0,isShownByDefault:!0,clearable:!0,enableAlpha:!0,resetAllFilter:()=>({waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})});let{children:fe,...de}=(0,Or.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 Z.length===0?(0,Xe.jsx)("div",{..._,className:T("is-placeholder",_.className),children:(0,Xe.jsx)(Or.MediaPlaceholder,{icon:(0,Xe.jsx)(Or.BlockIcon,{icon:iv}),labels:{title:(0,vt.__)("Playlist"),instructions:(0,vt.__)("Upload an audio file or pick one from your media library.")},onSelect:X,accept:"audio/*",multiple:"add",handleUpload:!1,allowedTypes:FO,onError:z})}):(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Or.BlockControls,{group:"other",children:(0,Xe.jsx)(Or.MediaReplaceFlow,{name:(0,vt.__)("Add track"),onSelect:Q,accept:"audio/*",multiple:"add",handleUpload:!1,allowedTypes:FO,onError:z})}),(0,Xe.jsx)(Or.InspectorControls,{children:(0,Xe.jsxs)(Sr.__experimentalToolsPanel,{label:(0,vt.__)("Settings"),resetAll:()=>{t({showTracklist:!0,showArtists:!0,showNumbers:!0,showTrackLength:!0,showImages:!0,showPlayButtonArtwork:!1,order:"asc"})},dropdownMenuProps:B,children:[(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show tracklist"),isShownByDefault:!0,hasValue:()=>s!==!0,onDeselect:()=>t({showTracklist:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show tracklist"),onChange:he("showTracklist"),checked:s})}),s&&(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show artist name in tracklist"),isShownByDefault:!0,hasValue:()=>d!==!0,onDeselect:()=>t({showArtists:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show artist name in tracklist"),onChange:he("showArtists"),checked:d})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show track numbers in tracklist"),isShownByDefault:!0,hasValue:()=>l!==!0,onDeselect:()=>t({showNumbers:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show track numbers in tracklist"),onChange:he("showNumbers"),checked:l})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show track duration in tracklist"),isShownByDefault:!0,hasValue:()=>p!==!0,onDeselect:()=>t({showTrackLength:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show track duration in tracklist"),onChange:he("showTrackLength"),checked:p})})]}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show tracklist images"),isShownByDefault:!0,hasValue:()=>c!==!0,onDeselect:()=>t({showImages:!0}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show tracklist images"),onChange:he("showImages"),checked:c})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Show track image on play button"),isShownByDefault:!0,hasValue:()=>u===!0,onDeselect:()=>t({showPlayButtonArtwork:!1}),children:(0,Xe.jsx)(Sr.ToggleControl,{label:(0,vt.__)("Show track image on play button"),onChange:he("showPlayButtonArtwork"),checked:u===!0})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Order"),isShownByDefault:!0,hasValue:()=>i!=="asc",onDeselect:()=>t({order:"asc"}),children:(0,Xe.jsx)(Sr.SelectControl,{label:(0,vt.__)("Order"),value:i,options:[{label:(0,vt.__)("Descending"),value:"desc"},{label:(0,vt.__)("Ascending"),value:"asc"}],onChange:re=>se(re)})})]})}),(0,Xe.jsx)(Or.InspectorControls,{group:"styles",children:(0,Xe.jsxs)(Sr.__experimentalToolsPanel,{label:(0,vt.__)("Waveform"),resetAll:()=>{t({waveformStyle:void 0,waveformColor:void 0,waveformGradient:void 0,waveformBackgroundColor:void 0,waveformBackgroundGradient:void 0})},panelId:v,dropdownMenuProps:B,children:[ye.length>0&&(0,Xe.jsx)("div",{className:"wp-block-playlist__waveform-color-controls",children:(0,Xe.jsx)(Or.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:ye,panelId:v,...N})}),(0,Xe.jsx)(Sr.__experimentalToolsPanelItem,{label:(0,vt.__)("Shape"),isShownByDefault:!0,hasValue:()=>m!==M6,onDeselect:()=>ze(M6),panelId:v,children:(0,Xe.jsx)(Sr.SelectControl,{label:(0,vt.__)("Shape"),value:m,options:sPe,onChange:ze})})]})}),(0,Xe.jsxs)("figure",{..._,children:[(0,Xe.jsx)(Or.MediaPlaceholder,{onSelect:Q,accept:"audio/*",multiple:"add",handleUpload:!1,disableMediaButtons:!0,allowedTypes:FO,onError:z}),(0,Xe.jsx)(Sr.Disabled,{isDisabled:!r,children:(0,Xe.jsx)(kce,{src:xe?.src,title:xe?.title,artist:xe?.artist,image:xe?.image,imageAlt:xe?.imageAlt,waveformStyle:m,color:f,gradient:j,backgroundColor:h,backgroundGradient:V,onEnded:Be,showPlayButtonArtwork:u===!0})}),(0,Xe.jsx)("ol",{...de,children:(0,Xe.jsx)(I6.Provider,{value:me,children:fe})}),(0,Xe.jsx)(Zo,{attributes:e,setAttributes:t,isSelected:r,insertBlocksAfter:o,label:(0,vt.__)("Playlist caption text"),showToolbarButton:r,style:{marginTop:16}})]})]})},Bce=uPe;var qu=a(I(),1),bx=a(y(),1);function Ice({attributes:e}){let{caption:t,showNumbers:r,showTracklist:o,showArtists:n,showTrackLength:i}=e,s=qu.useBlockProps.save(),l=qu.useInnerBlocksProps.save(s);return(0,bx.jsxs)("figure",{...l,children:[(0,bx.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}),!qu.RichText.isEmpty(t)&&(0,bx.jsx)(qu.RichText.Content,{tagName:"figcaption",className:(0,qu.__experimentalGetElementClassName)("caption"),value:t})]})}var L6=a(te(),1),Nce=a(qt(),1),dPe={from:[{type:"block",isMultiBlock:!0,blocks:["core/audio"],transform:e=>(0,L6.createBlock)("core/playlist",{...e[0]},e.map(({blob:t,id:r,src:o})=>(0,L6.createBlock)("core/playlist-track",{blob:t,id:r,src:o,title:(0,Nce.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,L6.createBlock)("core/audio",{...t,...e?.spacing&&{style:{spacing:e.spacing}},blob:r.attributes.blob,id:r.attributes.id,src:r.attributes.src})}]},Mce=dPe;var{name:Lce}=C6,Rce={icon:iv,edit:Bce,save:Ice,transforms:Mce},pPe=()=>D({name:Lce,metadata:C6,settings:Rce});var jO={};J(jO,{init:()=>hPe,metadata:()=>R6,name:()=>Vce,settings:()=>zce});var R6={$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 Dce=a(Ur(),1),Mp=a(W(),1),Vo=a(I(),1),ea=a(F(),1);var Ace=a(H(),1),Oce=a(br(),1),Fr=a(L(),1);var D6=a(ma(),1);var _t=a(y(),1),HO=["audio"],fPe=["image"],gPe=({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,Mp.useState)(e.blob),h=r?.showArtists,b=r?.showImages??!0,_=(0,Mp.useRef)(),v=(0,Vo.useBlockProps)(),{currentTrackClientId:w,setCurrentTrackClientId:x,removeTrack:k}=(0,Mp.useContext)(I6),{createErrorNotice:C}=(0,Ace.useDispatch)(Oce.store);function S(M,{removeTrackOnError:R=!1}={}){if(C(M,{type:"snackbar"}),R){k(o);return}g()}let P=!!s||!!f;(0,Mp.useEffect)(()=>{n&&P&&w!==o&&x(o)},[n,P,o,w,x]),ic({url:f,allowedTypes:HO,onChange:B,onError:M=>{S(M,{removeTrackOnError:!0})}});function B(M){let R=M?.url??M?.source_url;if(!M||!R){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,Dce.isBlobURL)(R)){g(R);return}t({blob:void 0,...N6(M)}),g()}function N(M){t(OO(M))}function E(){t({image:void 0,imageAlt:void 0}),_.current.focus()}return P?(0,_t.jsxs)(_t.Fragment,{children:[n&&(0,_t.jsx)(Vo.BlockControls,{group:"other",children:(0,_t.jsx)(Vo.MediaReplaceFlow,{name:(0,Fr.__)("Replace"),onSelect:B,accept:"audio/*",mediaId:i,mediaURL:s,allowedTypes:HO,onError:S,variant:"toolbar"})}),(0,_t.jsx)(Vo.InspectorControls,{children:(0,_t.jsxs)(ea.PanelBody,{title:(0,Fr.__)("Settings"),children:[n&&(0,_t.jsx)(ea.TextControl,{label:(0,Fr.__)("Title"),value:m?(0,D6.__unstableStripHTML)(m):"",onChange:M=>{t({title:M})}}),(0,_t.jsx)(ea.TextControl,{label:(0,Fr.__)("Artist"),value:c?(0,D6.__unstableStripHTML)(c):"",onChange:M=>{t({artist:M})}}),(0,_t.jsx)(ea.TextControl,{label:(0,Fr.__)("Album"),value:l?(0,D6.__unstableStripHTML)(l):"",onChange:M=>{t({album:M})}}),(0,_t.jsx)(Vo.MediaUploadCheck,{children:(0,_t.jsxs)(ea.BaseControl,{children:[(0,_t.jsx)(ea.BaseControl.VisualLabel,{children:(0,Fr.__)("Track image")}),(0,_t.jsxs)("div",{className:"editor-video-poster-control",children:[!!u&&(0,_t.jsx)("img",{src:u,alt:(0,Fr.__)("Preview of the track image")}),(0,_t.jsx)(Vo.MediaUpload,{title:(0,Fr.__)("Select image"),onSelect:N,allowedTypes:fPe,render:({open:M})=>(0,_t.jsx)(ea.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:M,ref:_,children:u?(0,Fr.__)("Replace"):(0,Fr.__)("Select")})}),!!u&&(0,_t.jsx)(ea.Button,{__next40pxDefaultSize:!0,onClick:E,variant:"tertiary",children:(0,Fr.__)("Remove")})]})]})}),!!u&&(0,_t.jsx)(ea.TextareaControl,{label:(0,Fr.__)("Alternative text"),value:d||"",onChange:M=>t({imageAlt:M}),help:(0,_t.jsx)(bl,{openInNewTab:!0,href:(0,Fr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Fr.__)("Describe the purpose of the image.")})})]})}),(0,_t.jsx)("li",{...v,children:(0,_t.jsxs)("button",{className:"wp-block-playlist-track__button",onClick:()=>x(o),"aria-current":w===o?"true":"false",children:[b&&!!u&&(0,_t.jsx)("img",{className:"wp-block-playlist-track__image",src:u,alt:d||""}),(0,_t.jsxs)("span",{className:"wp-block-playlist-track__content",children:[(0,_t.jsx)(Vo.PlainText,{tagName:"span",className:"wp-block-playlist-track__title",value:m,"aria-label":(0,Fr.__)("Track title"),placeholder:(0,Fr.__)("Track title"),onChange:M=>{t({title:M})},__experimentalVersion:2}),h&&(0,_t.jsx)(Vo.PlainText,{tagName:"span",className:"wp-block-playlist-track__artist",value:c,"aria-label":(0,Fr.__)("Track artist"),placeholder:(0,Fr.__)("Track artist"),onChange:M=>t({artist:M}),__experimentalVersion:2})]}),(0,_t.jsxs)("span",{className:"wp-block-playlist-track__length",children:[p&&(0,_t.jsx)("span",{className:"screen-reader-text",children:(0,Fr.__)("Duration:")}),p,!!f&&(0,_t.jsx)(ea.Spinner,{className:"wp-block-playlist-track__spinner"})]}),(0,_t.jsx)("span",{className:"screen-reader-text",children:(0,Fr.__)("Play")})]})})]}):(0,_t.jsx)("div",{...v,children:(0,_t.jsx)(Vo.MediaPlaceholder,{icon:(0,_t.jsx)(Vo.BlockIcon,{icon:sm}),labels:{title:(0,Fr.__)("Track"),instructions:(0,Fr.__)("Upload an audio file or pick one from your media library.")},onSelect:B,accept:"audio/*",allowedTypes:HO,value:e,onError:S})})},Fce=gPe;var{name:Vce}=R6,zce={icon:aI,edit:Fce},hPe=()=>D({name:Vce,metadata:R6,settings:zce});var WO={};J(WO,{init:()=>kPe,metadata:()=>A6,name:()=>Kce,settings:()=>Yce});var Zce=a(L(),1);var A6={$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 La=a(I(),1),zr=a(F(),1),Gce=a(_e(),1),O6=a(ae(),1),Zf=a(H(),1),F6=a(W(),1),UO=a($o(),1),Vr=a(L(),1),$ce=a(te(),1);var qf=a(te(),1),jce=a(L(),1),Uce=a(I(),1);var{cleanEmptyObject:Hce}=le(Uce.privateApis);function Wce(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,qf.createBlock)("core/group",{...d,style:Hce({...u,spacing:{...u?.spacing,blockGap:"1em"},color:{...u?.color,duotone:void 0}}),layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"top"}},[p&&(0,qf.createBlock)("core/avatar",{size:r,style:Hce({border:{radius:"0px"},color:{duotone:u?.color?.duotone}})}),(0,qf.createBlock)("core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"0"}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch"}},[m&&(0,qf.createBlock)("core/paragraph",{content:o,placeholder:(0,jce.__)("Write byline\u2026"),style:{typography:{fontSize:"0.5em",textAlign:c}}}),f&&(0,qf.createBlock)("core/post-author-name",{isLink:s,linkTarget:l,style:{typography:{fontSize:"1em",textAlign:c}}}),g&&(0,qf.createBlock)("core/post-author-biography",{style:{typography:{fontSize:"0.7em",textAlign:c}}})].filter(Boolean))].filter(Boolean))}var xt=a(y(),1),{InspectorControlsLastItem:yPe}=le(La.privateApis),vPe={who:"authors",per_page:100,_fields:"id,name",context:"view"};function _Pe({value:e,onChange:t}){let[r,o]=(0,F6.useState)(""),{authors:n,isLoading:i}=(0,Zf.useSelect)(l=>{let{getUsers:c,isResolving:u}=l(O6.store),d={...vPe};return r&&(d.search=r,d.search_columns=["name"]),{authors:c(d),isLoading:u("getUsers",[d])}},[r]),s=(0,F6.useMemo)(()=>{let l=(n??[]).map(d=>({value:d.id,label:(0,UO.decodeEntities)(d.name)})),c=l.findIndex(d=>e?.id===d.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,UO.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,Vr.__)("(No author)")}]),[...u,...l]},[n,e]);return(0,xt.jsx)(zr.ComboboxControl,{label:(0,Vr.__)("Author"),options:s,value:e?.id,onFilterValueChange:(0,Gce.debounce)(o,300),onChange:t,allowReset:!1,isLoading:i})}function xPe({isSelected:e,context:{postType:t,postId:r,queryId:o},attributes:n,setAttributes:i,clientId:s}){let l=Number.isFinite(o),c=ee(),u=x_(),{authorDetails:d,canAssignAuthor:p,supportsAuthor:m}=(0,Zf.useSelect)(R=>{let{getEditedEntityRecord:O,getUser:j,getPostType:V}=R(O6.store),G=O("postType",t,r),$=G?.author;return{authorDetails:$?j($,{context:"view"}):null,supportsAuthor:V(t)?.supports?.author??!1,canAssignAuthor:!!G?._links?.["wp:action-assign-author"]}},[t,r]),f=(0,Zf.useSelect)(R=>R($ce.store).getBlockTypes(),[]),{editEntityRecord:g}=(0,Zf.useDispatch)(O6.store),{replaceBlock:h}=(0,Zf.useDispatch)(La.store),{textAlign:b,showAvatar:_,showBio:v,byline:w,isLink:x,linkTarget:k,avatarSize:C}=n,S=[],P=d?.name||(0,Vr.__)("Post Author");d?.avatar_urls&&Object.keys(d.avatar_urls).forEach(R=>{S.push({value:R,label:`${R} x ${R}`})});let B=(0,La.useBlockProps)({className:T({[`has-text-align-${b}`]:b})}),N=R=>{g("postType",t,r,{author:R})},E=!!r&&!l&&p;if(!m&&t!==void 0)return(0,xt.jsx)("div",{...B,children:(0,Vr.sprintf)((0,Vr.__)("This post type (%s) does not support the author."),t)});function M(){h(s,Wce(n,f))}return(0,xt.jsxs)(xt.Fragment,{children:[(0,xt.jsx)(La.InspectorControls,{children:(0,xt.jsxs)(zr.__experimentalToolsPanel,{label:(0,Vr.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:c,children:[E&&(0,xt.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,xt.jsx)(_Pe,{value:d,onChange:N})}),(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!_,onDeselect:()=>i({showAvatar:!0}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Show avatar"),checked:_,onChange:()=>i({showAvatar:!_})})}),_&&(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>C!==48,onDeselect:()=>i({avatarSize:48}),children:(0,xt.jsx)(zr.SelectControl,{label:(0,Vr.__)("Avatar size"),value:C,options:S,onChange:R=>{i({avatarSize:Number(R)})}})}),(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>i({showBio:void 0}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Show bio"),checked:!!v,onChange:()=>i({showBio:!v})})}),(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!x,onDeselect:()=>i({isLink:!1}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Link author name to author page"),checked:x,onChange:()=>i({isLink:!x})})}),x&&(0,xt.jsx)(zr.__experimentalToolsPanelItem,{label:(0,Vr.__)("Link target"),isShownByDefault:!0,hasValue:()=>k!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,xt.jsx)(zr.ToggleControl,{label:(0,Vr.__)("Open in new tab"),onChange:R=>i({linkTarget:R?"_blank":"_self"}),checked:k==="_blank"})})]})}),f.some(R=>R.name==="core/group")&&(0,xt.jsx)(yPe,{children:(0,xt.jsxs)(zr.__experimentalVStack,{className:"wp-block-post-author__transform",alignment:"left",spacing:4,children:[(0,xt.jsx)(zr.__experimentalText,{as:"p",children:(0,Vr.__)("This block is no longer supported. Recreate its design with the Avatar, Author Name and Author Biography blocks.")}),(0,xt.jsx)(zr.Button,{variant:"primary",onClick:M,__next40pxDefaultSize:!0,children:(0,Vr.__)("Recreate")})]})}),(0,xt.jsx)(La.BlockControls,{group:"block",children:(0,xt.jsx)(La.AlignmentControl,{value:b,onChange:R=>{i({textAlign:R})}})}),(0,xt.jsxs)("div",{...B,children:[_&&(0,xt.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,xt.jsx)("img",{width:C,src:d?.avatar_urls?.[C]||u,alt:d?.name||(0,Vr.__)("Default Avatar")})}),(0,xt.jsxs)("div",{className:"wp-block-post-author__content",children:[(!La.RichText.isEmpty(w)||e)&&(0,xt.jsx)(La.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,Vr.__)("Post author byline text"),placeholder:(0,Vr.__)("Write byline\u2026"),value:w,onChange:R=>i({byline:R})}),(0,xt.jsx)("p",{className:"wp-block-post-author__name",children:x?(0,xt.jsx)("a",{href:"#post-author-pseudo-link",onClick:R=>R.preventDefault(),children:P}):P}),v&&(0,xt.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:d?.description}})]})]})]})}var qce=xPe;var{name:Kce}=A6,Yce={icon:_m,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,Zce.__)("Posted by")}},edit:qce},kPe=()=>D({name:Kce,metadata:A6,settings:Yce});var GO={};J(GO,{init:()=>EPe,metadata:()=>V6,name:()=>oue,settings:()=>nue});var V6={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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 z6=a(I(),1),Qce=a(H(),1),qc=a(L(),1),Xce=a(ae(),1),Lp=a(F(),1);var is=a(y(),1);function CPe(e){Pt(e);let{attributes:{isLink:t,linkTarget:r},setAttributes:o,context:{postType:n,postId:i}}=e,{authorName:s,supportsAuthor:l}=(0,Qce.useSelect)(m=>{let{getEditedEntityRecord:f,getUser:g,getPostType:h}=m(Xce.store),b=f("postType",n,i)?.author;return{authorName:b?g(b):null,supportsAuthor:h(n)?.supports?.author??!1}},[n,i]),c=(0,z6.useBlockProps)(),u=s?.name||(0,qc.__)("Author Name"),d=t?(0,is.jsx)("a",{href:"#author-pseudo-link",onClick:m=>m.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=ee();return(0,is.jsxs)(is.Fragment,{children:[(0,is.jsx)(z6.InspectorControls,{children:(0,is.jsxs)(Lp.__experimentalToolsPanel,{label:(0,qc.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,is.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,qc.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>o({isLink:!1}),children:(0,is.jsx)(Lp.ToggleControl,{label:(0,qc.__)("Link to author archive"),onChange:()=>o({isLink:!t}),checked:t})}),t&&(0,is.jsx)(Lp.__experimentalToolsPanelItem,{label:(0,qc.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>r!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,is.jsx)(Lp.ToggleControl,{label:(0,qc.__)("Open in new tab"),onChange:m=>o({linkTarget:m?"_blank":"_self"}),checked:r==="_blank"})})]})}),(0,is.jsx)("div",{...c,children:!l&&n!==void 0?(0,qc.sprintf)((0,qc.__)("This post type (%s) does not support the author."),n):d})]})}var Jce=CPe;var SPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},eue=[SPe];var tue=a(te(),1),TPe={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,tue.createBlock)("core/post-author-name",{style:{typography:{textAlign:e}}})}]},rue=TPe;var{name:oue}=V6,nue={icon:_m,transforms:rue,edit:Jce,deprecated:eue},EPe=()=>D({name:oue,metadata:V6,settings:nue});var $O={};J($O,{init:()=>NPe,metadata:()=>H6,name:()=>due,settings:()=>pue});var H6={$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},background:{gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!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}}},style:"wp-block-post-author-biography"};var aue=a(I(),1),iue=a(H(),1),sue=a(L(),1),lue=a(ae(),1);var yx=a(y(),1);function BPe(e){Pt(e);let{context:{postType:t,postId:r}}=e,{authorDetails:o}=(0,iue.useSelect)(s=>{let{getEditedEntityRecord:l,getUser:c}=s(lue.store),u=l("postType",t,r)?.author;return{authorDetails:u?c(u):null}},[t,r]),n=(0,aue.useBlockProps)(),i=o?.description||(0,sue.__)("Author Biography");return(0,yx.jsx)(yx.Fragment,{children:(0,yx.jsx)("div",{...n,dangerouslySetInnerHTML:{__html:i}})})}var cue=BPe;var IPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},uue=[IPe];var{name:due}=H6,pue={icon:_m,edit:cue,deprecated:uue},NPe=()=>D({name:due,metadata:H6,settings:pue});var qO={};J(qO,{init:()=>RPe,metadata:()=>j6,name:()=>bue,settings:()=>yue});var j6={$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 vx=a(L(),1),b0=a(F(),1),mue=a(W(),1);var U6=a(I(),1),Kf=a(y(),1);function fue({attributes:{commentId:e},setAttributes:t}){let[r,o]=(0,mue.useState)(e),n=(0,U6.useBlockProps)(),i=(0,U6.useInnerBlocksProps)(n);return e?(0,Kf.jsx)("div",{...i}):(0,Kf.jsx)("div",{...n,children:(0,Kf.jsxs)(b0.Placeholder,{icon:_P,label:(0,vx._x)("Post Comment","block title"),instructions:(0,vx.__)("To show a comment, input the comment ID."),children:[(0,Kf.jsx)(b0.TextControl,{value:e,onChange:s=>o(parseInt(s))}),(0,Kf.jsx)(b0.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:r})},children:(0,vx.__)("Save")})]})})}var W6=a(I(),1),gue=a(y(),1);function hue(){let e=W6.useBlockProps.save(),t=W6.useInnerBlocksProps.save(e);return(0,gue.jsx)("div",{...t})}var{name:bue}=j6,LPe=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],yue={icon:Xb,template:LPe,edit:fue,save:hue},RPe=()=>D({name:bue,metadata:j6,settings:yue});var ZO={};J(ZO,{init:()=>FPe,metadata:()=>G6,name:()=>Eue,settings:()=>Pue});var G6={$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,background:{gradient:!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}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var vue=a(I(),1),$6=a(W(),1),_ue=a(l2(),1),xue=a(qt(),1),kue=a(y(),1);function wue({context:e}){let{postId:t}=e,[r,o]=(0,$6.useState)(),n=(0,vue.useBlockProps)();(0,$6.useEffect)(()=>{if(!t)return;let l=t;(0,_ue.default)({path:(0,xue.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,kue.jsx)("div",{...n,style:s,children:i?r:"0"})}var Cue=a(te(),1),APe={to:[{type:"block",blocks:["core/post-comments-link"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,Cue.createBlock)("core/post-comments-link",{...t&&{style:{typography:{textAlign:t}}}})}}]},Sue=APe;var OPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Tue=[OPe];var{name:Eue}=G6,Pue={icon:uv,edit:wue,transforms:Sue,deprecated:Tue},FPe=()=>D({name:Eue,metadata:G6,settings:Pue});var YO={};J(YO,{init:()=>HPe,metadata:()=>q6,name:()=>Mue,settings:()=>Lue});var q6={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{button:!0,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 Bue=a(I(),1),Iue=a(_e(),1),Z6=a(L(),1);var _x=a(y(),1);function KO({context:e}){let{postId:t,postType:r}=e,o=(0,Iue.useInstanceId)(KO),n=(0,Z6.sprintf)("comments-form-edit-%d-desc",o),i=(0,Bue.useBlockProps)({"aria-describedby":n});return(0,_x.jsxs)("div",{...i,children:[(0,_x.jsx)(CC,{postId:t,postType:r}),(0,_x.jsx)(ln,{id:n,children:(0,Z6.__)("Comments form disabled in editor.")})]})}var zPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Nue=[zPe];var{name:Mue}=q6,Lue={icon:gI,edit:KO,deprecated:Nue},HPe=()=>D({name:Mue,metadata:q6,settings:Lue});var QO={};J(QO,{init:()=>$Pe,metadata:()=>K6,name:()=>Uue,settings:()=>Wue});var K6={$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 Rue=a(I(),1),Q6=a(W(),1),Due=a(H(),1),Aue=a(l2(),1),Oue=a(qt(),1),Yf=a(L(),1),Fue=a(ae(),1),Y6=a(y(),1);function UPe({context:e}){let{postType:t,postId:r}=e,[o,n]=(0,Q6.useState)(),i=(0,Rue.useBlockProps)();(0,Q6.useEffect)(()=>{if(!r)return;let c=r;(0,Aue.default)({path:(0,Oue.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then(u=>{c===r&&n(u.headers.get("X-WP-Total"))})},[r]);let s=(0,Due.useSelect)(c=>c(Fue.store).getEditedEntityRecord("postType",t,r),[t,r]),l;if(o!==void 0){let c=parseInt(o);c===0?l=(0,Yf.__)("No comments"):l=(0,Yf.sprintf)((0,Yf._n)("%s comment","%s comments",c),c.toLocaleString())}return(0,Y6.jsx)("div",{...i,children:s?.link&&l!==void 0?(0,Y6.jsx)("a",{href:s?.link+"#comments",onClick:c=>c.preventDefault(),children:l}):(0,Y6.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:c=>c.preventDefault(),children:(0,Yf.__)("No comments")})})}var Vue=UPe;var zue=a(te(),1),WPe={to:[{type:"block",blocks:["core/post-comments-count"],transform:({style:e})=>{let t=e?.typography?.textAlign;return(0,zue.createBlock)("core/post-comments-count",{...t&&{style:{typography:{textAlign:t}}}})}}]},Hue=WPe;var GPe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},jue=[GPe];var{name:Uue}=K6,Wue={edit:Vue,icon:uv,transforms:Hue,deprecated:jue},$Pe=()=>D({name:Uue,metadata:K6,settings:Wue});var XO={};J(XO,{init:()=>rBe,metadata:()=>X6,name:()=>Kue,settings:()=>Yue});var X6={$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},shadow:!0,spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,button:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!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,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Qf=a(L(),1),bo=a(I(),1),Gue=a(te(),1),Xf=a(ae(),1),$ue=a(H(),1),que=a(W(),1);var lr=a(y(),1),{HTMLElementControl:ZPe}=le(bo.privateApis);function KPe({parentLayout:e,layoutClassNames:t,userCanEdit:r,postType:o,postId:n,tagName:i="div"}){let[,,s]=(0,Xf.useEntityProp)("postType",o,"content",n),l=(0,bo.useBlockProps)({className:t}),c=(0,que.useMemo)(()=>s?.raw?(0,Gue.parse)(s.raw):[],[s?.raw]),u=(0,bo.__experimentalUseBlockPreview)({blocks:c,props:l,layout:e});return r?(0,lr.jsx)("div",{...u}):s?.protected?(0,lr.jsx)(i,{...l,children:(0,lr.jsx)(bo.Warning,{children:(0,Qf.__)("This content is password protected.")})}):(0,lr.jsx)(i,{...l,dangerouslySetInnerHTML:{__html:s?.rendered}})}function YPe({blockProps:e,blocks:t,onInput:r,onChange:o,tagName:n="div"}){let i=(0,bo.useInnerBlocksProps)(e,{value:t,onInput:r,onChange:o});return(0,lr.jsx)(n,{...i})}function QPe({context:e={},tagName:t="div"}){let{postType:r,postId:o}=e,[n,i,s]=(0,Xf.useEntityBlockEditor)("postType",r,{id:o}),l=(0,$ue.useSelect)(u=>u(Xf.store).getEntityRecord("postType",r,o)!==void 0||u(Xf.store).hasFinishedResolution("getEntityRecord",["postType",r,o]),[r,o]),c=(0,bo.useBlockProps)({className:"entry-content"});return l?(0,lr.jsx)(YPe,{blockProps:c,blocks:n,onInput:i,onChange:s,tagName:t}):(0,lr.jsx)(t,{...c})}function XPe(e){let{context:{queryId:t,postType:r,postId:o}={},layoutClassNames:n,tagName:i}=e,s=Tw("postType",r,o);if(s===void 0)return null;let l=Number.isFinite(t);return s&&!l?(0,lr.jsx)(QPe,{...e}):(0,lr.jsx)(KPe,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:s,postType:r,postId:o,tagName:i})}function JPe({layoutClassNames:e}){let t=(0,bo.useBlockProps)({className:e});return(0,lr.jsxs)("div",{...t,children:[(0,lr.jsx)("p",{children:(0,Qf.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,lr.jsx)("p",{children:(0,Qf.__)("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,lr.jsx)("p",{children:(0,Qf.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function eBe(){let e=(0,bo.useBlockProps)();return(0,lr.jsx)("div",{...e,children:(0,lr.jsx)(bo.Warning,{children:(0,Qf.__)("Block cannot be rendered inside itself.")})})}function tBe({tagName:e,onSelectTagName:t,clientId:r}){return(0,lr.jsx)(bo.InspectorControls,{group:"advanced",children:(0,lr.jsx)(ZPe,{tagName:e,onChange:t,clientId:r,options:[{label:(0,Qf.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function Zue({context:e,attributes:{tagName:t="div"},setAttributes:r,clientId:o,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:s,postType:l}=e,c=(0,bo.useHasRecursion)(s);return s&&l&&c?(0,lr.jsx)(eBe,{}):(0,lr.jsxs)(lr.Fragment,{children:[(0,lr.jsx)(tBe,{tagName:t,onSelectTagName:d=>{r({tagName:d})},clientId:o}),(0,lr.jsx)(bo.RecursionProvider,{uniqueId:s,children:s&&l?(0,lr.jsx)(XPe,{context:e,parentLayout:i,layoutClassNames:n}):(0,lr.jsx)(JPe,{layoutClassNames:n})})]})}var{name:Kue}=X6,Yue={icon:vI,edit:Zue},rBe=()=>D({name:Kue,metadata:X6,settings:Yue});var JO={};J(JO,{init:()=>uBe,metadata:()=>J6,name:()=>ode,settings:()=>nde});var J6={$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,background:{gradient:!0},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 Que=a(ae(),1),y0=a(W(),1),Jf=a(MC(),1),fi=a(I(),1),ss=a(F(),1),Ra=a(L(),1);var Xue=a(fc(),1),xx=a(H(),1),Jue=a(te(),1);var zo=a(y(),1);function ede(e){let{attributes:t,context:{postType:r,queryId:o},setAttributes:n,name:i}=e;Pt(e);let{datetime:s,format:l,isLink:c}=t,u=(0,fi.useBlockProps)(),d=ee(),[p,m]=(0,y0.useState)(null),f=(0,y0.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,xx.useDispatch)(fi.store);(0,y0.useEffect)(()=>{s===void 0&&(g(),n({datetime:new Date}))},[s]);let h=Number.isFinite(o),b=(0,Jf.getSettings)(),{postType:_,siteFormat:v=b.formats.date,siteTimeFormat:w=b.formats.time}=(0,xx.useSelect)(P=>{let{getPostType:B,getEntityRecord:N}=P(Que.store),E=N("root","site");return{siteFormat:E?.date_format,siteTimeFormat:E?.time_format,postType:r?B(r):null}},[r]),x=(0,xx.useSelect)(P=>P(Jue.store).getActiveBlockVariation(i,t)?.name,[i,t]),k=(0,fi.useBlockEditingMode)(),C=s||new Date,S=(0,zo.jsx)("time",{dateTime:(0,Jf.dateI18n)("c",C),ref:m,children:l==="human-diff"?(0,Jf.humanTimeDiff)(C):(0,Jf.dateI18n)(l||v,C)});return c&&s&&(S=(0,zo.jsx)("a",{href:"#post-date-pseudo-link",onClick:P=>P.preventDefault(),children:S})),(0,zo.jsxs)(zo.Fragment,{children:[(k==="default"||!h)&&x!=="post-date-modified"&&(!h||!x)&&(0,zo.jsx)(fi.BlockControls,{group:"block",children:(0,zo.jsx)(ss.ToolbarGroup,{children:(0,zo.jsx)(ss.Dropdown,{popoverProps:f,renderContent:({onClose:P})=>(0,zo.jsx)(fi.__experimentalPublishDateTimePicker,{title:x==="post-date"?(0,Ra.__)("Publish Date"):(0,Ra.__)("Date"),currentDate:s,onChange:B=>n({datetime:B}),is12Hour:nBe(w),onClose:P,dateOrder:(0,Ra._x)("dmy","date order")}),renderToggle:({isOpen:P,onToggle:B})=>{let N=E=>{!P&&E.keyCode===Xue.DOWN&&(E.preventDefault(),B())};return(0,zo.jsx)(ss.ToolbarButton,{"aria-expanded":P,icon:vm,title:(0,Ra.__)("Change Date"),onClick:B,onKeyDown:N})}})})}),(0,zo.jsx)(fi.InspectorControls,{children:(0,zo.jsxs)(ss.__experimentalToolsPanel,{label:(0,Ra.__)("Settings"),resetAll:()=>{n({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:d,children:[(0,zo.jsx)(ss.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Ra.__)("Date Format"),onDeselect:()=>n({format:void 0}),isShownByDefault:!0,children:(0,zo.jsx)(fi.__experimentalDateFormatPicker,{format:l,defaultFormat:v,onChange:P=>n({format:P})})}),(0,zo.jsx)(ss.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:_?.labels?.singular_name?(0,Ra.sprintf)((0,Ra.__)("Link to %s"),_.labels.singular_name.toLowerCase()):(0,Ra.__)("Link to post"),onDeselect:()=>n({isLink:!1}),isShownByDefault:!0,children:(0,zo.jsx)(ss.ToggleControl,{label:_?.labels?.singular_name?(0,Ra.sprintf)((0,Ra.__)("Link to %s"),_.labels.singular_name.toLowerCase()):(0,Ra.__)("Link to post"),onChange:()=>n({isLink:!c}),checked:c})})]})}),(0,zo.jsx)("div",{...u,children:S})]})}function nBe(e){return/(?:^|[^\\])[aAgh]/.test(e)}var aBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},iBe={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 we({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}},sBe={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")),we({...o,className:e,metadata:{...r,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}})},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},lBe={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 we(or(e))},isEligible({style:e}){return e?.typography?.fontFamily}},tde=[aBe,iBe,sBe,lBe];var kx=a(L(),1),cBe=[{name:"post-date",title:(0,kx.__)("Post Date"),description:(0,kx.__)("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,kx.__)("Modified Date"),description:(0,kx.__)("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"}],rde=cBe;var{name:ode}=J6,nde={icon:mv,edit:ede,deprecated:tde,variations:rde},uBe=()=>D({name:ode,metadata:J6,settings:nde});var tF={};J(tF,{init:()=>fBe,metadata:()=>eS,name:()=>dde,settings:()=>pde});var eS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 tS=a(ae(),1),ide=a(W(),1),Zu=a(I(),1),Ku=a(F(),1),Da=a(L(),1),sde=a(H(),1);var yo=a(y(),1),ade="\u2026";function lde(e){let{attributes:{moreText:t,showMoreOnNewLine:r,excerptLength:o},setAttributes:n,isSelected:i,context:{postId:s,postType:l,queryId:c}}=e;Pt(e);let u=Number.isFinite(c),d=Tw("postType",l,s),[p,m,{rendered:f,protected:g}={}]=(0,tS.useEntityProp)("postType",l,"excerpt",s),h=ee(),b=(0,sde.useSelect)(E=>l==="page"?!0:!!E(tS.store).getPostType(l)?.supports?.excerpt,[l]),_=d&&!u&&b,v=(0,Zu.useBlockProps)(),w=(0,Da._x)("words","Word count type. Do not translate!"),x=(0,ide.useMemo)(()=>{if(!f)return"";let E=new window.DOMParser().parseFromString(f,"text/html");return E.body.textContent||E.body.innerText||""},[f]);if(!l||!s)return(0,yo.jsx)("div",{...v,children:(0,yo.jsx)("p",{children:(0,Da.__)("This block will display the excerpt.")})});if(g&&!d)return(0,yo.jsx)("div",{...v,children:(0,yo.jsx)(Zu.Warning,{children:(0,Da.__)("The content is currently protected and does not have the available excerpt.")})});let k=(0,yo.jsx)(Zu.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:E=>n({moreText:E}),withoutInteractiveFormatting:!0}),C=T("wp-block-post-excerpt__excerpt",{"is-inline":!r}),S=(p||x).trim(),P="";if(w==="words")P=S.split(/\s+/,o).join(" ");else if(w==="characters_excluding_spaces"){let E=S.split("",o).join(""),M=E.length-E.replaceAll(" ","").length;P=S.split("",o+M).join("")}else w==="characters_including_spaces"&&(P=S.split("",o).join(""));let B=P!==S,N=_?(0,yo.jsx)(Zu.RichText,{className:C,"aria-label":(0,Da.__)("Excerpt text"),value:i?S:(B?P+ade:S)||(0,Da.__)("No excerpt found"),onChange:m,tagName:"p",allowedFormats:[],preserveWhiteSpace:!0}):(0,yo.jsx)("p",{className:C,children:B?P+ade:S||(0,Da.__)("No excerpt found")});return(0,yo.jsxs)(yo.Fragment,{children:[(0,yo.jsx)(Zu.InspectorControls,{children:(0,yo.jsxs)(Ku.__experimentalToolsPanel,{label:(0,Da.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:h,children:[(0,yo.jsx)(Ku.__experimentalToolsPanelItem,{hasValue:()=>r!==!0,label:(0,Da.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,yo.jsx)(Ku.ToggleControl,{label:(0,Da.__)("Show link on new line"),checked:r,onChange:E=>n({showMoreOnNewLine:E})})}),(0,yo.jsx)(Ku.__experimentalToolsPanelItem,{hasValue:()=>o!==55,label:(0,Da.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,yo.jsx)(Ku.RangeControl,{label:(0,Da.__)("Max number of words"),value:o,onChange:E=>{n({excerptLength:E})},min:"10",max:"100"})})]})}),(0,yo.jsxs)("div",{...v,children:[N,!r&&" ",r?(0,yo.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:k}):k]})]})}var eF=a(te(),1),pBe={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,eF.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,eF.createBlock)("core/post-content")}]},cde=pBe;var mBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},ude=[mBe];var{name:dde}=eS,pde={icon:_I,transforms:cde,edit:lde,deprecated:ude},fBe=()=>D({name:dde,metadata:eS,settings:pde});var oF={};J(oF,{init:()=>SBe,metadata:()=>rS,name:()=>Tde,settings:()=>Ede});var rS={$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 kde=a(Ur(),1),wx=a(ae(),1),Cx=a(H(),1),Ho=a(F(),1),Hr=a(I(),1),Fp=a(W(),1),ta=a(L(),1);var wde=a(br(),1);var Rp=a(L(),1),mde=a(F(),1),oS=a(I(),1);var fde=a(y(),1),{DimensionsTool:hBe}=le(oS.privateApis),bBe="cover",yBe=["aspectRatio","width","height","scale"],vBe=[{value:"cover",label:(0,Rp._x)("Cover","Scale option for Image dimension control"),help:(0,Rp.__)("Image is scaled and cropped to fill the entire space without being distorted.")},{value:"contain",label:(0,Rp._x)("Contain","Scale option for Image dimension control"),help:(0,Rp.__)("Image is scaled to fill the space without clipping nor distorting.")},{value:"fill",label:(0,Rp._x)("Fill","Scale option for Image dimension control"),help:(0,Rp.__)("Image will be stretched and distorted to completely fill the space.")}],_Be=({clientId:e,attributes:t,setAttributes:r,selectedStyleState:o,hasSelectedStyleState:n=!1})=>{let{style:i}=t,s=Zh(o),l=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"aspectRatio"}),c=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"width"}),u=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"height"}),d=Oi({attributes:t,selectedState:o,hasSelectedStyleState:n,attributeKey:"scale",styleKey:"objectFit"}),[p]=(0,oS.useSettings)("spacing.units"),m=(0,mde.__experimentalUseCustomUnits)({availableUnits:p||["px","%","vw","em","rem"]});return(0,fde.jsx)(hBe,{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(Kh({style:i,selectedState:o,hasSelectedStyleState:n,nextDimensions:h,dimensionKeyMap:{scale:"objectFit"},dimensionKeys:yBe}))},defaultScale:bBe,defaultAspectRatio:"auto",scaleOptions:vBe,unitsOptions:m},s)},gde=_Be;var aS=a(F(),1),Ap=a(I(),1),hde=a(_e(),1),nS=a(L(),1),Dp=a(y(),1),xBe=({clientId:e,attributes:t,setAttributes:r,overlayColor:o,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:s,setGradient:l}=(0,Ap.__experimentalUseGradient)(),c=(0,Ap.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Dp.jsxs)(Dp.Fragment,{children:[(0,Dp.jsx)(Ap.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:s,label:(0,nS.__)("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,Dp.jsx)(aS.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,nS.__)("Overlay opacity"),onDeselect:()=>r({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Dp.jsx)(aS.RangeControl,{label:(0,nS.__)("Overlay opacity"),value:i,onChange:u=>r({dimRatio:u}),min:0,max:100,step:10,required:!0})})]}):null},bde=(0,hde.compose)([(0,Ap.withColors)({overlayColor:"background-color"})])(xBe);var Op=a(I(),1),vde=a(_e(),1);function yde(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var _de=a(y(),1),kBe=({attributes:e,overlayColor:t})=>{let{dimRatio:r}=e,{gradientClass:o,gradientValue:n}=(0,Op.__experimentalUseGradient)(),i=(0,Op.__experimentalUseMultipleOriginColorsAndGradients)(),s=(0,Op.__experimentalUseBorderProps)(e),l={backgroundColor:t.color,backgroundImage:n,...s.style};return!i.hasColorsOrGradients||!r?null:(0,_de.jsx)("span",{"aria-hidden":"true",className:T("wp-block-post-featured-image__overlay",yde(r),{[t.class]:t.class,"has-background-dim":r!==void 0,"has-background-gradient":n,[o]:o},s.className),style:l})},rF=(0,vde.compose)([(0,Op.withColors)({overlayColor:"background-color"})])(kBe);var rt=a(y(),1),xde=["image"],{ResolutionTool:wBe}=le(Hr.privateApis),v0=e=>e!=null&&e!=="",Cde="full";function CBe({image:e,value:t,onChange:r}){let{imageSizes:o}=(0,Cx.useSelect)(i=>{let{getSettings:s}=i(Hr.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)(wBe,{value:t,defaultValue:Cde,options:n,onChange:r})}function Sde({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,[b,_]=(0,Fp.useState)(),[v,w]=(0,wx.useEntityProp)("postType",n,"featured_media",o),[x]=(0,wx.useEntityProp)("postType",n,"content",o),k=(0,Fp.useMemo)(()=>{if(v)return v;if(!h)return;let Q=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(x);return Q?.groups?.attrs&&JSON.parse(Q.groups.attrs)?.id},[v,h,x]),{media:C,postType:S,postPermalink:P,selectedStyleState:B,hasSelectedStyleState:N}=(0,Cx.useSelect)(Q=>{let{getEntityRecord:ie,getPostType:me,getEditedEntityRecord:xe}=Q(wx.store),{getSelectedBlockStyleState:Be,hasSelectedBlockStyleState:se}=Q(Hr.store);return{media:k&&ie("postType","attachment",k,{context:"view"}),postType:n&&me(n),postPermalink:xe("postType",n,o)?.link,selectedStyleState:Be(e),hasSelectedStyleState:se(e)}},[e,k,n,o]),E=C?.media_details?.sizes?.[m]?.source_url||C?.source_url,M=(0,Hr.useBlockProps)({className:T({"is-transient":b})}),R=(0,Hr.__experimentalUseBorderProps)(t),O=(0,Hr.__experimentalGetShadowClassesAndStyles)(t),j=(0,Hr.useBlockEditingMode)(),V=c==="auto"?void 0:c,G=Q=>(0,rt.jsx)(Ho.Placeholder,{className:T("block-editor-media-placeholder",R.className),withIllustration:!0,style:{aspectRatio:V,height:v0(u)?u:v0(d)&&"auto",width:v0(d)?d:!!c&&"100%",...R.style,...O.style},children:Q}),$=Q=>{Q?.id&&w(Q.id),Q?.url&&(0,kde.isBlobURL)(Q.url)&&_(Q.url)},z=()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),w(0)};(0,Fp.useEffect)(()=>{E&&b&&_()},[E,b]);let{createErrorNotice:K}=(0,Cx.useDispatch)(wde.store),q=Q=>{K(Q,{type:"snackbar"}),_()},Y=ee(),oe=j==="default"&&(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(Hr.InspectorControls,{group:"color",children:(0,rt.jsx)(bde,{attributes:t,setAttributes:r,clientId:e})}),(0,rt.jsx)(Hr.InspectorControls,{group:"dimensions",resetAllFilter:Q=>Yh({attributes:Q,selectedState:B,hasSelectedStyleState:N,keys:["aspectRatio","height","objectFit","width"],defaultAttributes:{aspectRatio:void 0,height:void 0,scale:void 0,width:void 0}}),children:(0,rt.jsx)(gde,{clientId:e,attributes:t,setAttributes:r,media:C,selectedStyleState:B,hasSelectedStyleState:N})}),(k||s||!o)&&(0,rt.jsx)(Hr.InspectorControls,{children:(0,rt.jsxs)(Ho.__experimentalToolsPanel,{label:(0,ta.__)("Settings"),resetAll:()=>{r({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:Cde})},dropdownMenuProps:Y,children:[(0,rt.jsx)(Ho.__experimentalToolsPanelItem,{label:S?.labels?.singular_name?(0,ta.sprintf)((0,ta.__)("Link to %s"),S.labels.singular_name):(0,ta.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>r({isLink:!1}),children:(0,rt.jsx)(Ho.ToggleControl,{label:(0,ta.__)("Make image a link"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,rt.jsx)(Ho.__experimentalToolsPanelItem,{label:(0,ta.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>g!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,rt.jsx)(Ho.ToggleControl,{label:(0,ta.__)("Open in new tab"),onChange:Q=>r({linkTarget:Q?"_blank":"_self"}),checked:g==="_blank"})}),l&&(0,rt.jsx)(Ho.__experimentalToolsPanelItem,{label:(0,ta.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>r({rel:""}),children:(0,rt.jsx)(Ho.TextControl,{label:(0,ta.__)("Link relation"),help:(0,Fp.createInterpolateElement)((0,ta.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,rt.jsx)(Ho.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:Q=>r({rel:Q})})}),!!C&&(0,rt.jsx)(CBe,{image:C,value:m,onChange:Q=>r({sizeSlug:Q})})]})})]}),Z;if(!k&&(s||!o))return(0,rt.jsxs)(rt.Fragment,{children:[oe,(0,rt.jsxs)("div",{...M,children:[l?(0,rt.jsx)("a",{href:P,target:g,children:G()}):G(),(0,rt.jsx)(rF,{attributes:t,setAttributes:r,clientId:e})]})]});let U=(0,ta.__)("Add a featured image"),X={...R.style,...O.style,aspectRatio:V,height:v0(u)?u:v0(d)&&"auto",width:v0(d)?d:!!c&&"100%",objectFit:!!(u||c)&&p};return!k&&!b?Z=(0,rt.jsx)(Hr.MediaPlaceholder,{onSelect:$,accept:"image/*",allowedTypes:xde,onError:q,placeholder:G,mediaLibraryButton:({open:Q})=>(0,rt.jsx)(Ho.Button,{__next40pxDefaultSize:!0,icon:vu,variant:"primary",label:U,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{Q()}})}):Z=!C&&!b?G():(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)("img",{className:R.className,src:b||E,alt:C&&C?.alt_text?(0,ta.sprintf)((0,ta.__)("Featured image: %s"),C.alt_text):(0,ta.__)("Featured image"),style:X}),b&&(0,rt.jsx)(Ho.Spinner,{})]}),(0,rt.jsxs)(rt.Fragment,{children:[!b&&oe,!!C&&!s&&(0,rt.jsx)(Hr.BlockControls,{group:"other",children:(0,rt.jsx)(Hr.MediaReplaceFlow,{mediaId:k,mediaURL:E,allowedTypes:xde,accept:"image/*",onSelect:$,onError:q,onReset:z})}),(0,rt.jsxs)("figure",{...M,children:[l?(0,rt.jsx)("a",{href:P,target:g,children:Z}):Z,(0,rt.jsx)(rF,{attributes:t,setAttributes:r,clientId:e})]})]})}var{name:Tde}=rS,Ede={icon:kI,edit:Sde},SBe=()=>D({name:Tde,metadata:rS,settings:Ede});var nF={};J(nF,{init:()=>PBe,metadata:()=>iS,name:()=>Dde,settings:()=>Ade});var Rde=a(L(),1);var iS={$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}},shadow:{__experimentalSkipSerialization:!0},interactivity:{clientNavigation:!0},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!1,radius:!1,style:!1,width:!1}}},selectors:{border:".wp-block-post-navigation-link:not(:empty)",shadow:".wp-block-post-navigation-link:not(:empty)",spacing:".wp-block-post-navigation-link:not(:empty)"},style:"wp-block-post-navigation-link"};var wn=a(F(),1),ls=a(I(),1),Tr=a(L(),1),Pde=a(H(),1),Bde=a(ae(),1);var jr=a(y(),1);function Ide({context:{postType:e},attributes:t,setAttributes:r}){let{type:o,label:n,showTitle:i,linkLabel:s,arrow:l,taxonomy:c}=t,u=o==="next",d=u?(0,Tr.__)("Next"):(0,Tr.__)("Previous"),m={none:"",arrow:u?"\u2192":"\u2190",chevron:u?"\xBB":"\xAB"}[l];i&&(d=u?(0,Tr.__)("Next: "):(0,Tr.__)("Previous: "));let f=u?(0,Tr.__)("Next post"):(0,Tr.__)("Previous post"),g=(0,ls.__experimentalUseBorderProps)(t),h=(0,ls.__experimentalGetShadowClassesAndStyles)(t),b=(0,ls.__experimentalGetSpacingClassesAndStyles)(t),_=(0,ls.useBlockProps)({className:g.className,style:{...g.style,...h.style,...b.style}}),v=(0,Pde.useSelect)(k=>{let{getTaxonomies:C}=k(Bde.store);return C({type:e,per_page:-1})},[e]),w=()=>{let k={label:(0,Tr.__)("Unfiltered"),value:""},C=(v??[]).filter(({visibility:S})=>!!S?.publicly_queryable).map(S=>({value:S.slug,label:S.name}));return[k,...C]},x=ee();return(0,jr.jsxs)(jr.Fragment,{children:[(0,jr.jsx)(ls.InspectorControls,{children:(0,jr.jsxs)(wn.__experimentalToolsPanel,{label:(0,Tr.__)("Settings"),resetAll:()=>{r({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:x,children:[(0,jr.jsx)(wn.__experimentalToolsPanelItem,{label:(0,Tr.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>i,onDeselect:()=>r({showTitle:!1}),children:(0,jr.jsx)(wn.ToggleControl,{label:(0,Tr.__)("Display the title as a link"),help:(0,Tr.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!i,onChange:()=>r({showTitle:!i})})}),i&&(0,jr.jsx)(wn.__experimentalToolsPanelItem,{label:(0,Tr.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>r({linkLabel:!1}),children:(0,jr.jsx)(wn.ToggleControl,{label:(0,Tr.__)("Include the label as part of the link"),checked:!!s,onChange:()=>r({linkLabel:!s})})}),(0,jr.jsx)(wn.__experimentalToolsPanelItem,{label:(0,Tr.__)("Arrow"),isShownByDefault:!0,hasValue:()=>l!=="none",onDeselect:()=>r({arrow:"none"}),children:(0,jr.jsxs)(wn.__experimentalToggleGroupControl,{label:(0,Tr.__)("Arrow"),value:l,onChange:k=>{r({arrow:k})},help:(0,Tr.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,jr.jsx)(wn.__experimentalToggleGroupControlOption,{value:"none",label:(0,Tr._x)("None","Arrow option for Next/Previous link")}),(0,jr.jsx)(wn.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Tr._x)("Arrow","Arrow option for Next/Previous link")}),(0,jr.jsx)(wn.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Tr._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,jr.jsx)(ls.InspectorControls,{group:"advanced",children:(0,jr.jsx)(wn.SelectControl,{label:(0,Tr.__)("Filter by taxonomy"),value:c,options:w(),onChange:k=>r({taxonomy:k}),help:(0,Tr.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),(0,jr.jsxs)("div",{..._,children:[!u&&m&&(0,jr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`,children:m}),(0,jr.jsx)(ls.RichText,{tagName:"a",identifier:"label","aria-label":f,placeholder:d,value:n,withoutInteractiveFormatting:!0,onChange:k=>r({label:k})}),i&&(0,jr.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:k=>k.preventDefault(),children:(0,Tr.__)("An example title")}),u&&m&&(0,jr.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0,children:m})]})]})}var eg=a(L(),1);var Nde=[{name:"post-previous",title:(0,eg.__)("Previous Post"),description:(0,eg.__)("Displays the post link that precedes the current post."),icon:PI,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,eg.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,eg.__)("Next Post"),description:(0,eg.__)("Displays the post link that follows the current post."),icon:Xy,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,eg.__)("Next post"),arrow:"arrow"}}}];Nde.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Mde=Nde;var EBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Lde=[EBe];var{name:Dde}=iS,Ade={icon:Xy,edit:Ide,variations:Mde,deprecated:Lde,example:{attributes:{label:(0,Rde.__)("Next post"),arrow:"arrow"}}},PBe=()=>D({name:Dde,metadata:iS,settings:Ade});var aF={};J(aF,{init:()=>DBe,metadata:()=>sS,name:()=>Ude,settings:()=>Wde});var sS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,heading:!0,button:!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},shadow:!0},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var _0=a(W(),1),Ode=a(H(),1),Sx=a(L(),1),Ws=a(I(),1),lS=a(F(),1),Fde=a(ae(),1);var ra=a(y(),1),IBe={type:"default"};function NBe({classList:e}){let t=(0,Ws.useInnerBlocksProps)({className:T("wp-block-post",e)},{__unstableDisableLayoutClassNames:!0,layout:IBe});return(0,ra.jsx)("li",{...t})}function MBe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,Ws.__experimentalUseBlockPreview)({blocks:e,props:{className:T("wp-block-post",r)}}),s=()=>{n(t)};return(0,ra.jsx)("li",{...i,tabIndex:0,role:"button",onClick:s,onKeyPress:s,style:{display:o?"none":void 0}})}var LBe=(0,_0.memo)(MBe);function Vde({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:b,..._}={},templateSlug:v,previewPostType:w,postId:x},attributes:{layout:k},__unstableLayoutClassNames:C}){let{type:S,columnCount:P=3,minimumColumnWidth:B}=k||{},[N,E]=(0,_0.useState)(),{posts:M,blocks:R}=(0,Ode.useSelect)($=>{let{getEntityRecords:z,getTaxonomies:K}=$(Fde.store),{getBlocks:q}=$(Ws.store),Y=p&&v?.startsWith("category-")&&z("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:v.replace("category-","")}),oe=p&&v?.startsWith("tag-")&&z("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:v.replace("tag-","")}),Z={offset:o||0,order:i,orderby:s};if(m&&!p){let Q=K({type:n,per_page:-1,context:"view"}),ie=(xe,Be="")=>Object.entries(xe||{}).reduce((se,[he,ze])=>{let qe=Q?.find(({slug:ce})=>ce===he);return qe?.rest_base&&ze?.length&&(se[qe.rest_base+Be]=ze),se},{}),me=ie(m.include);m.exclude&&Object.assign(me,ie(m.exclude,"_exclude")),Object.keys(me).length&&Object.assign(Z,me)}r&&(Z.per_page=r),l&&(Z.author=l),c&&(Z.search=c),u?.length&&(Z.exclude=u),f?.length&&(Z.parent=f),h?.length&&(Z.format=h),b&&x&&(Z.exclude?Z.exclude=[...Z.exclude,x]:Z.exclude=[x]),["exclude","only"].includes(d)&&(Z.sticky=d==="only"),["","ignore"].includes(d)&&(delete Z.sticky,Z.ignore_sticky=d==="ignore");let U=n;return p&&(v?.startsWith("archive-")?(Z.postType=v.replace("archive-",""),U=Z.postType):Y?Z.categories=Y[0]?.id:oe?Z.tags=oe[0]?.id:v?.startsWith("taxonomy-post_format")&&(Z.format=v.replace("taxonomy-post_format-post-format-",""))),{posts:z("postType",w||U,{...Z,..._}),blocks:q(t)}},[r,o,i,s,t,l,c,n,u,d,p,v,m,f,h,_,w]),O=(0,_0.useMemo)(()=>M?.map($=>({postType:$.type,postId:$.id,classList:$.class_list??""})),[M]),j=(0,Ws.useBlockProps)({className:T(C,{[`columns-${P}`]:S==="grid"&&P,"has-native-responsive-grid":S==="grid"&&P&&B})});if(!M)return(0,ra.jsx)("p",{...j,children:(0,ra.jsx)(lS.Spinner,{})});if(!M.length)return(0,ra.jsxs)("p",{...j,children:[" ",(0,Sx.__)("No results found.")]});let V=$=>e({layout:{...k,...$}}),G=[{icon:pl,title:(0,Sx._x)("List view","Post template block display setting"),onClick:()=>V({type:"default"}),isActive:S==="default"||S==="constrained"},{icon:Ei,title:(0,Sx._x)("Grid view","Post template block display setting"),onClick:()=>V({type:"grid",columnCount:P}),isActive:S==="grid"}];return(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)(Ws.BlockControls,{children:(0,ra.jsx)(lS.ToolbarGroup,{controls:G})}),(0,ra.jsx)("ul",{...j,children:O&&O.map($=>(0,ra.jsxs)(Ws.BlockContextProvider,{value:$,children:[$.postId===(N||O[0]?.postId)?(0,ra.jsx)(NBe,{classList:$.classList}):null,(0,ra.jsx)(LBe,{blocks:R,blockContextId:$.postId,classList:$.classList,setActiveBlockContextId:E,isHidden:$.postId===(N||O[0]?.postId)})]},$.postId))})]})}var zde=a(I(),1),Hde=a(y(),1);function jde(){return(0,Hde.jsx)(zde.InnerBlocks.Content,{})}var{name:Ude}=sS,RBe=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]],Wde={icon:hm,template:RBe,edit:Vde,save:jde},DBe=()=>D({name:Ude,metadata:sS,settings:Wde});var iF={};J(iF,{init:()=>zBe,metadata:()=>cS,name:()=>rpe,settings:()=>ope});var tpe=a(Kd(),1);var cS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 Yu=a(I(),1),uS=a(te(),1),dS=a(F(),1),Kde=a(H(),1),Yde=a($o(),1),Vp=a(L(),1),Qde=a(ae(),1);var Gde=a(ae(),1),$de=a(H(),1),OBe=[];function qde({postId:e,term:t}){let{slug:r}=t;return(0,$de.useSelect)(o=>{if(!t?.visibility?.publicly_queryable||!e)return{postTerms:OBe,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:s}=o(Gde.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 oa=a(y(),1),Zde=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function Xde({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,Kde.useSelect)(w=>{if(!s)return{};let{getTaxonomy:x}=w(Qde.store),k=x(s);return k?.visibility?.publicly_queryable?k:{}},[s]),{postTerms:f,hasPostTerms:g,isLoading:h}=qde({postId:d,term:m}),b=d&&p,_=(0,Yu.useBlockDisplayInformation)(t),v=(0,Yu.useBlockProps)({className:s&&`taxonomy-${s}`});return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(Yu.InspectorControls,{group:"advanced",children:(0,oa.jsx)(dS.TextControl,{autoComplete:"off",label:(0,Vp.__)("Separator"),value:l||"",onChange:w=>{n({separator:w})},help:(0,Vp.__)("Enter character(s) used to separate terms.")})}),(0,oa.jsxs)("div",{...v,children:[h&&b&&(0,oa.jsx)(dS.Spinner,{}),!h&&(o||c)&&(0,oa.jsx)(Yu.RichText,{identifier:"prefix",allowedFormats:Zde,className:"wp-block-post-terms__prefix","aria-label":(0,Vp.__)("Prefix"),placeholder:(0,Vp.__)("Prefix")+" ",value:c,onChange:w=>n({prefix:w}),tagName:"span"}),(!b||!s)&&(0,oa.jsx)("span",{children:_.title}),b&&!h&&g&&f.map(w=>(0,oa.jsx)("a",{href:w.link,onClick:x=>x.preventDefault(),rel:"tag",children:(0,Yde.decodeEntities)(w.name)},w.id)).reduce((w,x)=>(0,oa.jsxs)(oa.Fragment,{children:[w,(0,oa.jsx)("span",{className:"wp-block-post-terms__separator",children:l||" "}),x]})),b&&!h&&!g&&(m?.labels?.no_terms||(0,Vp.__)("Term items not found.")),!h&&(o||u)&&(0,oa.jsx)(Yu.RichText,{identifier:"suffix",allowedFormats:Zde,className:"wp-block-post-terms__suffix","aria-label":(0,Vp.__)("Suffix"),placeholder:" "+(0,Vp.__)("Suffix"),value:u,onChange:w=>n({suffix:w}),tagName:"span",__unstableOnSplitAtEnd:i?()=>i((0,uS.createBlock)((0,uS.getDefaultBlockName)())):void 0})]})]})}var FBe={category:nh,post_tag:SI};function Jde(e,t){if(t!=="core/post-terms")return e;let r=e.variations.map(o=>({...o,icon:FBe[o.name]??nh}));return{...e,variations:r}}var VBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},epe=[VBe];var{name:rpe}=cS,ope={icon:nh,edit:Xde,deprecated:epe},zBe=()=>((0,tpe.addFilter)("blocks.registerBlockType","core/template-part",Jde),D({name:rpe,metadata:cS,settings:ope}));var sF={};J(sF,{init:()=>GBe,metadata:()=>pS,name:()=>ppe,settings:()=>mpe});var pS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,shadow:!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}}};var na=a(L(),1),ipe=a(W(),1),mS=a(I(),1),x0=a(F(),1),spe=a(te(),1),fS=a(ae(),1),lpe=a(ape(),1);var Zc=a(y(),1);function jBe({attributes:e,setAttributes:t,context:r}){let{displayAsRange:o,displayMode:n,averageReadingSpeed:i}=e,{postId:s,postType:l}=r,c=ee(),[u]=(0,fS.useEntityProp)("postType",l,"content",s),[d]=(0,fS.useEntityBlockEditor)("postType",l,{id:s}),p=(0,ipe.useMemo)(()=>{let f;u instanceof Function?f=u({blocks:d}):d?f=(0,spe.__unstableSerializeAndClean)(d):f=u;let g=(0,na._x)("words","Word count type. Do not translate!"),h=(0,lpe.count)(f||"",g);if(n==="time"){if(o){let _=Math.max(1,Math.round(h/i*1.2)),v=Math.max(1,Math.round(h/i*.8));v===_&&(_=_+1);let w=(0,na._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,na.sprintf)(w,v,_)}let b=Math.max(1,Math.round(h/i));return(0,na.sprintf)((0,na._n)("%s minute","%s minutes",b),b)}if(n==="words")return g==="words"?(0,na.sprintf)((0,na._n)("%s word","%s words",h),h.toLocaleString()):(0,na.sprintf)((0,na._n)("%s character","%s characters",h),h.toLocaleString())},[u,d,o,n,i]),m=(0,mS.useBlockProps)();return(0,Zc.jsxs)(Zc.Fragment,{children:[n==="time"&&(0,Zc.jsx)(mS.InspectorControls,{children:(0,Zc.jsx)(x0.__experimentalToolsPanel,{label:(0,na.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:c,children:(0,Zc.jsx)(x0.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,na._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!o,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Zc.jsx)(x0.ToggleControl,{label:(0,na.__)("Display as range"),checked:!!o,onChange:()=>t({displayAsRange:!o})})})})}),(0,Zc.jsx)("div",{...m,children:p})]})}var cpe=jBe;var Tx=a(L(),1);var UBe=[{name:"time-to-read",title:(0,Tx.__)("Time to Read"),description:(0,Tx.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:g_,isDefault:!0},{name:"word-count",title:(0,Tx.__)("Word Count"),description:(0,Tx.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:CN}],upe=UBe;var WBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},dpe=[WBe];var{name:ppe}=pS,mpe={icon:g_,edit:cpe,variations:upe,example:{},deprecated:dpe},GBe=()=>D({name:ppe,metadata:pS,settings:mpe});var lF={};J(lF,{init:()=>KBe,metadata:()=>gS,name:()=>ype,settings:()=>vpe});var gS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 us=a(I(),1),cs=a(F(),1),gi=a(L(),1),Ex=a(ae(),1),fpe=a(H(),1),gpe=a(W(),1);var cr=a(y(),1);function hpe({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,fpe.useSelect)(k=>p?!1:k(Ex.store).canUser("update",{kind:"postType",name:l,id:c}),[p,l,c]),[f="",g,h]=(0,Ex.useEntityProp)("postType",l,"title",c),[b]=(0,Ex.useEntityProp)("postType",l,"link",c),_=(0,us.useBlockProps)(),v=(0,us.useBlockEditingMode)(),w=ee(),x=(0,cr.jsx)(d,{..._,children:i||(0,gi.__)("Title")});return l&&c&&(x=m?(0,cr.jsx)(us.PlainText,{tagName:d,placeholder:(0,gi.__)("(no title)"),value:f,onChange:g,__experimentalVersion:2,disableLineBreaks:!0,..._}):(0,cr.jsx)(d,{..._,dangerouslySetInnerHTML:{__html:h?.rendered||(0,gi.__)("(no title)")}})),r&&l&&c&&(x=m?(0,cr.jsx)(d,{..._,children:(0,cr.jsx)(us.PlainText,{tagName:"a",href:b,target:n,rel:o,placeholder:f.length?null:(0,gi.__)("(no title)"),value:f,onChange:g,__experimentalVersion:2,disableLineBreaks:!0})}):(0,cr.jsx)(d,{..._,children:(0,cr.jsx)("a",{href:b,target:n,rel:o,onClick:k=>k.preventDefault(),dangerouslySetInnerHTML:{__html:h?.rendered||(0,gi.__)("(no title)")}})})),(0,cr.jsxs)(cr.Fragment,{children:[v==="default"&&(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(us.BlockControls,{group:"block",children:(0,cr.jsx)(us.HeadingLevelDropdown,{value:e,options:t,onChange:k=>s({level:k})})}),(0,cr.jsx)(us.InspectorControls,{children:(0,cr.jsxs)(cs.__experimentalToolsPanel,{label:(0,gi.__)("Settings"),resetAll:()=>{s({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:w,children:[(0,cr.jsx)(cs.__experimentalToolsPanelItem,{label:(0,gi.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>r,onDeselect:()=>s({isLink:!1}),children:(0,cr.jsx)(cs.ToggleControl,{label:(0,gi.__)("Make title a link"),onChange:()=>s({isLink:!r}),checked:r})}),r&&(0,cr.jsxs)(cr.Fragment,{children:[(0,cr.jsx)(cs.__experimentalToolsPanelItem,{label:(0,gi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n==="_blank",onDeselect:()=>s({linkTarget:"_self"}),children:(0,cr.jsx)(cs.ToggleControl,{label:(0,gi.__)("Open in new tab"),onChange:k=>s({linkTarget:k?"_blank":"_self"}),checked:n==="_blank"})}),(0,cr.jsx)(cs.__experimentalToolsPanelItem,{label:(0,gi.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>s({rel:""}),children:(0,cr.jsx)(cs.TextControl,{label:(0,gi.__)("Link relation"),help:(0,gpe.createInterpolateElement)((0,gi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,cr.jsx)(cs.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:o,onChange:k=>s({rel:k})})})]})]})})]}),x]})}var qBe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},ZBe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},bpe=[qBe,ZBe];var{name:ype}=gS,vpe={icon:ml,edit:hpe,deprecated:bpe},KBe=()=>D({name:ype,metadata:gS,settings:vpe});var dF={};J(dF,{init:()=>XBe,metadata:()=>yS,name:()=>Spe,settings:()=>Tpe});var Cpe=a(L(),1);var cF=a(L(),1),hS=a(I(),1),bS=a(te(),1),_pe=a(y(),1);function xpe({attributes:e,mergeBlocks:t,setAttributes:r,onRemove:o,insertBlocksAfter:n,style:i}){let{content:s}=e,l=(0,hS.useBlockProps)({style:i});return(0,_pe.jsx)(hS.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:c=>{r({content:c})},onRemove:o,"aria-label":(0,cF.__)("Preformatted text"),placeholder:(0,cF.__)("Write preformatted text\u2026"),onMerge:t,...l,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:n?()=>n((0,bS.createBlock)((0,bS.getDefaultBlockName)())):void 0})}var yS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!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 vS=a(I(),1),uF=a(y(),1);function kpe({attributes:e}){let{content:t}=e;return(0,uF.jsx)("pre",{...vS.useBlockProps.save(),children:(0,uF.jsx)(vS.RichText.Content,{value:t})})}var Px=a(te(),1),QBe={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,Px.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,Px.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,Px.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,Px.createBlock)("core/verse",e)}]},wpe=QBe;var{name:Spe}=yS,Tpe={icon:TI,example:{attributes:{content:(0,Cpe.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)
96 139 Window, very small in the distance, illuminated.
97 -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:zae,edit:Aae,save:Rae,merge(e,t){return{content:e.content+`
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:wpe,edit:xpe,save:kpe,merge(e,t){return{content:e.content+`
98 141
99 -`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(WC[f3e]=[{id:"content",label:(0,bM.__)("Content"),type:"text",Edit:"rich-text"}],WC[h3e]={fields:["content"]});var g3e=()=>I({name:Fae,metadata:UC,settings:WC});var _M={};Z(_M,{init:()=>E3e,metadata:()=>qC,name:()=>Kae,settings:()=>ZC});var Lb=a(B(),1);var Zae=a($(),1);var et=a(T(),1),Oae=a(F(),1);var qd="is-style-solid-color";var Vt=a(v(),1),Ib={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 Hae(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Zd(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var v3e={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=!et.RichText.isEmpty(r);return(0,Vt.jsx)("figure",{...et.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,Vt.jsxs)("blockquote",{children:[(0,Vt.jsx)(et.RichText.Content,{tagName:"p",value:o}),n&&(0,Vt.jsx)(et.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:he},b3e={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=!et.RichText.isEmpty(r);return(0,Vt.jsx)("figure",{...et.useBlockProps.save({className:w({[`has-text-align-${t}`]:t})}),children:(0,Vt.jsxs)("blockquote",{children:[(0,Vt.jsx)(et.RichText.Content,{value:o,multiline:!0}),n&&(0,Vt.jsx)(et.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return he({value:Zd(e),...t})}},y3e={attributes:{...Ib},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:l,className:s}=e,c=s?.includes(qd),u,m;if(c){let h=(0,et.getColorClassName)("background-color",t);u=w({"has-background":h||r,[h]:h}),m={backgroundColor:h?void 0:r}}else r&&(m={borderColor:r});let p=(0,et.getColorClassName)("color",n),d=w({"has-text-color":n||o,[p]:p}),f=p?void 0:{color:o};return(0,Vt.jsx)("figure",{...et.useBlockProps.save({className:u,style:m}),children:(0,Vt.jsxs)("blockquote",{className:d,style:f,children:[(0,Vt.jsx)(et.RichText.Content,{value:i,multiline:!0}),!et.RichText.isEmpty(l)&&(0,Vt.jsx)(et.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let l=t?.includes(qd),s;return o&&(l?s={color:{background:o}}:s={border:{color:o}}),n&&s&&(s.color={...s.color,text:n}),he({value:Zd(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},_3e={attributes:{...Ib,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(qd),m,p;if(u){let g=(0,et.getColorClassName)("background-color",t);m=w({"has-background":g||r,[g]:g}),p={backgroundColor:g?void 0:r}}else r?p={borderColor:r}:t&&(p={borderColor:Hae(c)});let d=(0,et.getColorClassName)("color",o),f=(o||n)&&w("has-text-color",{[d]:d});return(0,Vt.jsx)("figure",{className:m,style:p,children:(0,Vt.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,Vt.jsx)(et.RichText.Content,{value:i,multiline:!0}),!et.RichText.isEmpty(l)&&(0,Vt.jsx)(et.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(qd),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&o&&r){let u=Hae(r);if(u)return{value:Zd(e),...l,className:t,style:{border:{color:u}}}}return he({value:Zd(e),className:t,backgroundColor:s?o:void 0,borderColor:s?void 0:o,textAlign:s?"left":void 0,...l,style:c})}},x3e={attributes:Ib,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(qd),u,m;if(c)u=(0,et.getColorClassName)("background-color",t),u||(m={backgroundColor:r});else if(r)m={borderColor:r};else if(t){let h=(0,Oae.select)(et.store).getSettings().colors??[];m={borderColor:(0,et.getColorObjectByAttributeValues)(h,t).color}}let p=(0,et.getColorClassName)("color",o),d=o||n?w("has-text-color",{[p]:p}):void 0;return(0,Vt.jsx)("figure",{className:u,style:m,children:(0,Vt.jsxs)("blockquote",{className:d,style:p?void 0:{color:n},children:[(0,Vt.jsx)(et.RichText.Content,{value:i,multiline:!0}),!et.RichText.isEmpty(l)&&(0,Vt.jsx)(et.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let l=t?.includes(qd),s={};return o&&(l?s={color:{background:o}}:s={border:{color:o}}),n&&s&&(s.color={...s.color,text:n}),he({value:Zd(e),className:t,backgroundColor:l?r:void 0,borderColor:l?void 0:r,textAlign:l?"left":void 0,...i,style:s})}},k3e={attributes:{...Ib},save({attributes:e}){let{value:t,citation:r}=e;return(0,Vt.jsxs)("blockquote",{children:[(0,Vt.jsx)(et.RichText.Content,{value:t,multiline:!0}),!et.RichText.isEmpty(r)&&(0,Vt.jsx)(et.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:Zd(e),...t}}},w3e={attributes:{...Ib,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,Vt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Vt.jsx)(et.RichText.Content,{value:t,multiline:!0}),!et.RichText.isEmpty(r)&&(0,Vt.jsx)(et.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:Zd(e),...t}}},jae=[v3e,b3e,y3e,_3e,x3e,k3e,w3e];var Db=a(B(),1),Pg=a(T(),1),$C=a($(),1);var Uae="figure";var Gae="blockquote";var gu=a(v(),1);function C3e(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n}=e;vt(e);let{citation:i,value:l}=t,s=(0,Pg.useBlockProps)(),c=!Pg.RichText.isEmpty(i)||o;return(0,gu.jsx)(gu.Fragment,{children:(0,gu.jsx)(Uae,{...s,children:(0,gu.jsxs)(Gae,{children:[(0,gu.jsx)(Pg.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>r({value:u}),"aria-label":(0,Db.__)("Pullquote text"),placeholder:(0,Db.__)("Add quote")}),c&&(0,gu.jsx)(Pg.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,Db.__)("Pullquote citation text"),placeholder:(0,Db.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:()=>n((0,$C.createBlock)((0,$C.getDefaultBlockName)()))})]})})})}var Wae=C3e;var qC={$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,__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,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 Bg=a(T(),1),Eg=a(v(),1);function $ae({attributes:e}){let{citation:t,value:r}=e,o=!Bg.RichText.isEmpty(t);return(0,Eg.jsx)("figure",{...Bg.useBlockProps.save(),children:(0,Eg.jsxs)("blockquote",{children:[(0,Eg.jsx)(Bg.RichText.Content,{tagName:"p",value:r}),o&&(0,Eg.jsx)(Bg.RichText.Content,{tagName:"cite",value:t})]})})}var vu=a($(),1),Ng=a(em(),1),T3e={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,vu.createBlock)("core/pullquote",{value:(0,Ng.toHTMLString)({value:(0,Ng.join)(e.map(({content:t})=>(0,Ng.create)({html:t})),`
100 -`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,vu.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,vu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,vu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,vu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,vu.createBlock)("core/heading",{content:t});let r=(0,vu.createBlock)("core/heading",{content:e});return t?[r,(0,vu.createBlock)("core/heading",{content:t})]:r}}]},qae=T3e;var{fieldsKey:P3e,formKey:B3e}=W(Zae.privateApis),{name:Kae}=qC,ZC={icon:iB,example:{attributes:{value:(0,Lb.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Lb.__)("Matt Mullenweg")}},transforms:qae,edit:Wae,save:$ae,deprecated:jae};window.__experimentalContentOnlyInspectorFields&&(ZC[P3e]=[{id:"value",label:(0,Lb.__)("Content"),type:"text",Edit:"rich-text"},{id:"citation",label:(0,Lb.__)("Citation"),type:"text",Edit:"rich-text"}],ZC[B3e]={fields:["value","citation"]});var E3e=()=>I({name:Kae,metadata:qC,settings:ZC});var AM={};Z(AM,{init:()=>iCe,metadata:()=>KC,name:()=>Pie,settings:()=>Bie});var KC={$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:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{anchor:!0,align:["wide","full"],html:!1,layout:!0,interactivity:!0},editorStyle:"wp-block-query-editor"};var pie=a(F(),1),die=a(j(),1),fie=a(T(),1);var s6=a(F(),1),lie=a(fe(),1),Fb=a(j(),1),pl=a(T(),1),sie=a(B(),1),cie=a(X(),1);var ine=a(R(),1),JC=a(B(),1);var pc=a(F(),1),Yd=a(j(),1),Mb=a(X(),1),YC=a(T(),1),Yae=a(Oo(),1),Kd=a(B(),1),bu=a($(),1),Ab=e=>{let t=e?.reduce((r,o)=>{let{mapById:n,mapByName:i,names:l}=r;return n[o.id]=o,i[o.name]=o,l.push(o.name),r},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},I3e=(e,t)=>{let r=t.split("."),o=e;return r.forEach(n=>{o=o?.[n]}),o},xM=(e,t)=>(e||[]).map(r=>({...r,name:(0,Yae.decodeEntities)(I3e(r,t))})),Qae=()=>{let e=(0,pc.useSelect)(n=>{let{getPostTypes:i}=n(Mb.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Yd.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,Yd.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),o=(0,Yd.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},QC=e=>{let t=(0,pc.useSelect)(r=>{let{getTaxonomies:o,getPostType:n}=r(Mb.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,Yd.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Xae(e){return(0,pc.useSelect)(t=>{let r=t(Mb.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function Jae(e){let t=(0,pc.useSelect)(r=>!!r(Mb.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Yd.useMemo)(()=>{let r=[{label:(0,Kd.__)("Newest to oldest"),value:"date/desc"},{label:(0,Kd.__)("Oldest to newest"),value:"date/asc"},{label:(0,Kd.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Kd.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,Kd.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Kd.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function ene(e){return(0,pc.useSelect)(t=>t(bu.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function Mi(e,t){return e?e.includes(t):!0}var tne=(e,t)=>{let{query:{postType:r,inherit:o},namespace:n}=t,i=e.map(c=>(0,bu.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:r,inherit:o},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function rne(e,t){return(0,pc.useSelect)(r=>{let o=r(bu.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(YC.store),l=n(e);return i(`core/query/${o}`,l).length>0?`core/query/${o}`:"core/query"},[e,t])}function one(e){let{activeVariationName:t,blockVariations:r}=(0,pc.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(bu.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Yd.useMemo)(()=>{let n=l=>!l.attributes?.namespace;if(!t)return r.filter(n);let i=r.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:r.filter(n)},[t,r])}var ane=(e,t)=>(0,pc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:n}=r(YC.store),i=o(e);return n(t,i)},[t,e]),XC=e=>(0,pc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(YC.store);return r(e).some(n=>{let i=o(n),l=Object.is((0,bu.getBlockSupport)(i,"interactivity"),!0),s=(0,bu.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function nne(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 Rb=a(v(),1);function lne({enhancedPagination:e,setAttributes:t,clientId:r}){let o=XC(r),n=(0,JC.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o&&(n=(0,JC.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,Rb.jsx)(Rb.Fragment,{children:(0,Rb.jsx)(ine.ToggleControl,{label:(0,JC.__)("Reload full page"),help:n,checked:!e,disabled:o,onChange:i=>{t({enhancedPagination:!i})}})})}var bt=a(R(),1),Yne=a(F(),1),Qne=a(X(),1),fr=a(B(),1),Xne=a(fe(),1),r6=a(j(),1);var sne=a(R(),1),Ig=a(B(),1),cne=a(v(),1),D3e=[{label:(0,Ig.__)("Newest to oldest"),value:"date/desc"},{label:(0,Ig.__)("Oldest to newest"),value:"date/asc"},{label:(0,Ig.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Ig.__)("Z \u2192 A"),value:"title/desc"}];function L3e({order:e,orderBy:t,orderByOptions:r=D3e,onChange:o}){return(0,cne.jsx)(sne.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ig.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,l]=n.split("/");o({order:l,orderBy:i})}})}var une=L3e;var mne=a(B(),1),pne=a(R(),1),dne=a(F(),1),fne=a(X(),1);var hne=a(v(),1),M3e={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function A3e({value:e,onChange:t}){let r=(0,dne.useSelect)(c=>{let{getUsers:u}=c(fne.store);return u(M3e)},[]);if(!r)return null;let o=Ab(r),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let m=o.mapById[u];return m&&c.push({id:u,value:m.name}),c},[]),l=(c,u)=>{let m=u?.id||c[u]?.id;if(m)return m},s=c=>{let u=Array.from(c.reduce((m,p)=>{let d=l(o.mapByName,p);return d&&m.add(d),m},new Set));t({author:u.join(",")})};return(0,hne.jsx)(pne.FormTokenField,{label:(0,mne.__)("Authors"),value:i,suggestions:o.names,onChange:s,help:"",__next40pxDefaultSize:!0})}var gne=A3e;var bne=a(B(),1),yne=a(R(),1),kM=a(F(),1),wM=a(X(),1),yu=a(j(),1),_ne=a(fe(),1);var xne=a(v(),1),Qd=[],vne={order:"asc",_fields:"id,title",context:"view"};function R3e({parents:e,postType:t,onChange:r}){let[o,n]=(0,yu.useState)(""),[i,l]=(0,yu.useState)(Qd),[s,c]=(0,yu.useState)(Qd),u=(0,_ne.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,kM.useSelect)(b=>{if(!o)return{searchResults:Qd,searchHasResolved:!0};let{getEntityRecords:y,hasFinishedResolution:_}=b(wM.store),x=["postType",t,{...vne,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:y(...x),searchHasResolved:_("getEntityRecords",x)}},[o,t,e]),d=(0,kM.useSelect)(b=>{if(!e?.length)return Qd;let{getEntityRecords:y}=b(wM.store);return y("postType",t,{...vne,include:e,per_page:e.length})},[e,t]);(0,yu.useEffect)(()=>{if(e?.length||l(Qd),!d?.length)return;let b=Ab(xM(d,"title.rendered")),y=e.reduce((_,x)=>{let k=b.mapById[x];return k&&_.push({id:x,value:k.name}),_},[]);l(y)},[e,d]);let f=(0,yu.useMemo)(()=>m?.length?Ab(xM(m,"title.rendered")):Qd,[m]);(0,yu.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let h=(b,y)=>{let _=y?.id||b?.[y]?.id;if(_)return _},g=b=>{let y=Array.from(b.reduce((_,x)=>{let k=h(f.mapByName,x);return k&&_.add(k),_},new Set));c(Qd),r({parents:y})};return(0,xne.jsx)(yne.FormTokenField,{__next40pxDefaultSize:!0,label:(0,bne.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:g,help:""})}var kne=R3e;var e6=a(R(),1),CM=a(F(),1),SM=a(X(),1),_u=a(j(),1),Sne=a(fe(),1),Tne=a(Oo(),1),t6=a(B(),1);var $m=a(v(),1),Dg=[],wne={order:"asc",_fields:"id,name",context:"view"},z3e=(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 Pne({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,n=QC(r);return n?.length?(0,$m.jsx)(e6.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=o?.include?.[i.slug]||[],s=o?.exclude?.[i.slug]||[],c=(u,m)=>{let p={...o?.[m],[i.slug]:u};u.length||delete p[i.slug];let d={...o,[m]:Object.keys(p).length?p:void 0};e({taxQuery:Object.values(d).every(f=>!f)?void 0:d})};return(0,$m.jsxs)(_u.Fragment,{children:[(0,$m.jsx)(Cne,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"include"),label:i.name}),(0,$m.jsx)(Cne,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"exclude"),label:(0,t6.sprintf)((0,t6.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function Cne({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:n}){let[i,l]=(0,_u.useState)(""),[s,c]=(0,_u.useState)(Dg),[u,m]=(0,_u.useState)(Dg),p=(0,Sne.useDebounce)(l,250),{searchResults:d,searchHasResolved:f}=(0,CM.useSelect)(b=>{if(!i)return{searchResults:Dg,searchHasResolved:!0};let{getEntityRecords:y,hasFinishedResolution:_}=b(SM.store),x=[...t,...r],k=["taxonomy",e.slug,{...wne,search:i,orderby:"name",exclude:x,per_page:20}];return{searchResults:y(...k),searchHasResolved:_("getEntityRecords",k)}},[i,e.slug,t,r]),h=(0,CM.useSelect)(b=>{if(!t?.length)return Dg;let{getEntityRecords:y}=b(SM.store);return y("taxonomy",e.slug,{...wne,include:t,per_page:t.length})},[e.slug,t]);return(0,_u.useEffect)(()=>{if(t?.length||c(Dg),!h?.length)return;let b=t.reduce((y,_)=>{let x=h.find(k=>k.id===_);return x&&y.push({id:_,value:x.name}),y},[]);c(b)},[t,h]),(0,_u.useEffect)(()=>{f&&m(d.map(b=>b.name))},[d,f]),(0,$m.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,$m.jsx)(e6.FormTokenField,{label:n,value:s,onInputChange:p,suggestions:u,displayTransform:Tne.decodeEntities,onChange:b=>{let y=new Set;for(let _ of b){let x=z3e(d,_);x&&y.add(x)}m(Dg),o(Array.from(y))},help:"",__next40pxDefaultSize:!0})})}var Bne=a(R(),1),Ene=a(F(),1),Nne=a(X(),1),ml=a(B(),1),Ine=a(v(),1),V3e=[{value:"aside",label:(0,ml.__)("Aside")},{value:"audio",label:(0,ml.__)("Audio")},{value:"chat",label:(0,ml.__)("Chat")},{value:"gallery",label:(0,ml.__)("Gallery")},{value:"image",label:(0,ml.__)("Image")},{value:"link",label:(0,ml.__)("Link")},{value:"quote",label:(0,ml.__)("Quote")},{value:"standard",label:(0,ml.__)("Standard")},{value:"status",label:(0,ml.__)("Status")},{value:"video",label:(0,ml.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function F3e(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function Dne({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,Ene.useSelect)(s=>({supportedFormats:s(Nne.store).getThemeSupports().formats}),[]),n=V3e.filter(s=>o.includes(s.value)),i=r.map(s=>n.find(c=>c.value===s)?.label).filter(Boolean),l=n.filter(s=>!r.includes(s.value)).map(s=>s.label);return(0,Ine.jsx)(Bne.FormTokenField,{label:(0,ml.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:F3e(s,n)})},help:"",__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0})}var Lne=a(R(),1),Xd=a(B(),1),Mne=a(v(),1),H3e=[{label:(0,Xd.__)("Include"),value:""},{label:(0,Xd.__)("Ignore"),value:"ignore"},{label:(0,Xd.__)("Exclude"),value:"exclude"},{label:(0,Xd.__)("Only"),value:"only"}];function Ane({value:e,onChange:t}){return(0,Mne.jsx)(Lne.SelectControl,{__next40pxDefaultSize:!0,label:(0,Xd.__)("Sticky posts"),options:H3e,value:e,onChange:t,help:(0,Xd.__)("Sticky posts always appear first, regardless of their publish date.")})}var Vne=a(R(),1),Fne=a(B(),1),Hne=a(v(),1),Rne=1,zne=100,O3e=({perPage:e,offset:t=0,onChange:r})=>(0,Hne.jsx)(Vne.RangeControl,{__next40pxDefaultSize:!0,label:(0,Fne.__)("Items per page"),min:Rne,max:zne,onChange:o=>{isNaN(o)||o<Rne||o>zne||r({perPage:o,offset:t})},value:parseInt(e,10)}),One=O3e;var Une=a(R(),1),Gne=a(B(),1),Wne=a(v(),1),jne=0,j3e=100,U3e=({offset:e=0,onChange:t})=>(0,Wne.jsx)(Une.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,Gne.__)("Offset"),value:e,min:jne,onChange:r=>{isNaN(r)||r<jne||r>j3e||t({offset:r})}}),$ne=U3e;var qne=a(R(),1),TM=a(B(),1),Zne=a(v(),1),G3e=({pages:e,onChange:t})=>(0,Zne.jsx)(qne.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,TM.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,TM.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),Kne=G3e;var Xe=a(v(),1);function Jne(e){let{attributes:t,setQuery:r,isSingular:o}=e,{query:n}=t,{order:i,orderBy:l,author:s,pages:c,postType:u,perPage:m,offset:p,sticky:d,inherit:f,taxQuery:h,parents:g,format:b}=n,y=ene(t),_=u==="post",{postTypesTaxonomiesMap:x,postTypesSelectOptions:k,postTypeFormatSupportMap:S}=Qae(),C=QC(u),E=Xae(u),P=J=>{let re={postType:J},Me=x[J];if(Me?.length&&h){let Lt=Se=>Object.entries(Se||{}).reduce((Oe,[K,ne])=>(Me.includes(K)&&(Oe[K]=ne),Oe),{}),jt={},ae=Lt(h.include);Object.keys(ae).length&&(jt.include=ae);let Ue=Lt(h.exclude);Object.keys(Ue).length&&(jt.exclude=Ue),re.taxQuery=Object.keys(jt).length?jt:void 0}J!=="post"&&(re.sticky=""),re.parents=[],S[J]||(re.format=[]),r(re)},[N,z]=(0,r6.useState)(n.search),V=(0,r6.useMemo)(()=>(0,Xne.debounce)(J=>{r({search:J})},250),[r]),A=Jae(u),M=Mi(y,"inherit"),L=!f&&Mi(y,"postType"),U=(0,fr.__)("Post type"),H=(0,fr.__)("Select the type of content to display: posts, pages, or custom post types."),G=!f&&Mi(y,"order"),Y=!f&&_&&Mi(y,"sticky"),O=M||L||G||Y,te=!!C?.length&&Mi(y,"taxQuery"),se=Mi(y,"author"),Q=Mi(y,"search"),ce=Mi(y,"parents")&&E,Ee=S[u],le=(0,Yne.useSelect)(J=>{if(!Ee||!Mi(y,"format"))return!1;let re=J(Qne.store).getThemeSupports();return re.formats&&re.formats.length>0&&re.formats.some(Me=>Me!=="standard")},[y,Ee]),ee=te||se||Q||ce||le,ve=q(),Ne=Mi(y,"postCount"),Re=Mi(y,"offset"),Be=Mi(y,"pages"),Ve=Ne||Re||Be,oe=o&&f;return(0,Xe.jsxs)(Xe.Fragment,{children:[O&&(0,Xe.jsxs)(bt.__experimentalToolsPanel,{label:(0,fr.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:ve,children:[M&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>!f,label:(0,fr.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,Xe.jsxs)(bt.__experimentalVStack,{spacing:4,children:[(0,Xe.jsxs)(bt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,fr.__)("Query type"),isBlock:!0,onChange:J=>{r({inherit:J==="default"})},help:f?(0,fr.__)("Display a list of posts or custom post types based on the current template."):(0,fr.__)("Display a list of posts or custom post types based on specific criteria."),value:f?"default":"custom",children:[(0,Xe.jsx)(bt.__experimentalToggleGroupControlOption,{value:"default",label:(0,fr.__)("Default")}),(0,Xe.jsx)(bt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,fr.__)("Custom")})]}),oe&&(0,Xe.jsx)(bt.Notice,{status:"warning",isDismissible:!1,children:(0,fr.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),L&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>u!=="post",label:U,onDeselect:()=>P("post"),isShownByDefault:!0,children:k.length>2?(0,Xe.jsx)(bt.SelectControl,{__next40pxDefaultSize:!0,options:k,value:u,label:U,onChange:P,help:H}):(0,Xe.jsx)(bt.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,value:u,label:U,onChange:P,help:H,children:k.map(J=>(0,Xe.jsx)(bt.__experimentalToggleGroupControlOption,{value:J.value,label:J.label},J.value))})}),G&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>i!=="desc"||l!=="date",label:(0,fr.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,Xe.jsx)(une,{order:i,orderBy:l,orderByOptions:A,onChange:r})}),Y&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,fr.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,Xe.jsx)(Ane,{value:d,onChange:J=>r({sticky:J})})})]}),!f&&Ve&&(0,Xe.jsxs)(bt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,fr.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:ve,children:[(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{label:(0,fr.__)("Items per page"),hasValue:()=>m>0,children:(0,Xe.jsx)(One,{perPage:m,offset:p,onChange:r})}),(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{label:(0,fr.__)("Offset"),hasValue:()=>p>0,onDeselect:()=>r({offset:0}),children:(0,Xe.jsx)($ne,{offset:p,onChange:r})}),(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{label:(0,fr.__)("Max pages to show"),hasValue:()=>c>0,onDeselect:()=>r({pages:0}),children:(0,Xe.jsx)(Kne,{pages:c,onChange:r})})]}),!f&&ee&&(0,Xe.jsxs)(bt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,fr.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[]}),z("")},dropdownMenuProps:ve,children:[te&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{label:(0,fr.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(J=>Object.values(J||{}).some(re=>!!re?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,Xe.jsx)(Pne,{onChange:r,query:n})}),se&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,fr.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,Xe.jsx)(gne,{value:s,onChange:r})}),Q&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>!!N,label:(0,fr.__)("Keyword"),onDeselect:()=>{r({search:""}),z("")},children:(0,Xe.jsx)(bt.TextControl,{label:(0,fr.__)("Keyword"),value:N,onChange:J=>{V(J),z(J)}})}),ce&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:(0,fr.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,Xe.jsx)(kne,{parents:g,postType:u,onChange:r})}),le&&(0,Xe.jsx)(bt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,fr.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,Xe.jsx)(Dne,{onChange:r,query:n})})]})]})}var Mg=a(R(),1),zb=a(B(),1),o6=a(j(),1),tie=a(F(),1),rie=a(T(),1);var Lg=a(v(),1),eie="wp-block-query-enhanced-pagination-modal__description";function oie({clientId:e,attributes:{enhancedPagination:t},setAttributes:r}){let[o,n]=(0,o6.useState)(!1),i=XC(e),{__unstableMarkNextChangeAsNotPersistent:l}=(0,tie.useDispatch)(rie.store);(0,o6.useEffect)(()=>{t&&i&&(l(),r({enhancedPagination:!1}),n(!0))},[t,i,r,l]);let s=()=>{n(!1)},c=(0,zb.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,zb.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return o&&(0,Lg.jsx)(Mg.Modal,{title:(0,zb.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:eie},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:s,children:(0,Lg.jsxs)(Mg.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,Lg.jsx)("span",{id:eie,children:c}),(0,Lg.jsx)(Mg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:s,children:(0,zb.__)("OK")})]})})}var zg=a(R(),1),BM=a(B(),1),iie=a(F(),1),i6=a(T(),1);var Ag=a(j(),1),aie=a(F(),1),n6=a(R(),1),Rg=a(T(),1),a6=a(B(),1);var xu=a(v(),1);function nie({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,xu.jsx)(n6.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,a6.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,xu.jsx)(PM,{clientId:e,attributes:t})})}function Vb(e,t){let r=rne(e,t),o=ane(e,r);return(0,Ag.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function PM({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[n,i]=(0,Ag.useState)(""),{replaceBlock:l,selectBlock:s}=(0,aie.useDispatch)(Rg.store),c=Vb(e,t),u=(0,Ag.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),m=(0,Ag.useMemo)(()=>Nv(c,n),[c,n]),p=(d,f)=>{let{newBlocks:h,queryClientIds:g}=tne(f,t);l(e,h),g[0]&&s(g[0])};return(0,xu.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,xu.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,xu.jsx)(n6.SearchControl,{onChange:i,value:n,label:(0,a6.__)("Search"),placeholder:(0,a6.__)("Search")})}),(0,xu.jsx)(Rg.BlockContextProvider,{value:u,children:(0,xu.jsx)(Rg.__experimentalBlockPatternsList,{blockPatterns:m,onClickPattern:p,showTitlesAsTooltip:r})})]})}var Jd=a(v(),1);function W3e({clientId:e,attributes:t,hasInnerBlocks:r}){if(!Vb(e,t).length)return null;let n=r?(0,BM.__)("Change design"):(0,BM.__)("Choose pattern");return(0,Jd.jsx)(i6.BlockControls,{group:"other",children:(0,Jd.jsx)(zg.__experimentalDropdownContentWrapper,{children:(0,Jd.jsx)(zg.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,Jd.jsx)(zg.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,Jd.jsx)(PM,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function l6(e){return(0,iie.useSelect)(r=>{let{isLockedBlock:o}=W(r(i6.store));return o(e.clientId)},[e.clientId])?null:(0,Jd.jsx)(W3e,{...e})}var Ai=a(v(),1),{HTMLElementControl:$3e}=W(pl.privateApis),q3e=3,Z3e=[["core/post-template"]];function EM({attributes:e,setAttributes:t,clientId:r,context:o,name:n,isSelected:i}){let{queryId:l,query:s,enhancedPagination:c,tagName:u="div",query:{inherit:m}={}}=e,{templateSlug:p}=o,{isSingular:d}=nne(p),{__unstableMarkNextChangeAsNotPersistent:f}=(0,s6.useDispatch)(pl.store),h=(0,lie.useInstanceId)(EM),g=(0,pl.useBlockProps)(),b=(0,pl.useInnerBlocksProps)(g,{template:Z3e}),{postsPerPage:y}=(0,s6.useSelect)(x=>{let{getSettings:k}=x(pl.store),{getEntityRecord:S,getEntityRecordEdits:C,canUser:E}=x(cie.store),P=E("read",{kind:"root",name:"site"})?+S("root","site")?.posts_per_page:+k().postsPerPage;return{postsPerPage:+C("root","site")?.posts_per_page||P||q3e}},[]),_=(0,Fb.useCallback)(x=>t(k=>({query:{...k.query,...x}})),[t]);return(0,Fb.useEffect)(()=>{let x={};(m&&s.perPage!==y||!s.perPage&&y)&&(x.perPage=y),Object.keys(x).length&&(f(),_(x))},[s.perPage,m,y,f,_]),(0,Fb.useEffect)(()=>{Number.isFinite(l)||(f(),t({queryId:h}))},[l,h,f,t]),(0,Ai.jsxs)(Ai.Fragment,{children:[i&&(0,Ai.jsx)(l6,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,Ai.jsx)(oie,{attributes:e,setAttributes:t,clientId:r}),(0,Ai.jsx)(pl.InspectorControls,{children:(0,Ai.jsx)(Jne,{name:n,attributes:e,setQuery:_,setAttributes:t,clientId:r,isSingular:d})}),(0,Ai.jsxs)(pl.InspectorControls,{group:"advanced",children:[(0,Ai.jsx)($3e,{tagName:u,onChange:x=>t({tagName:x}),clientId:r,options:[{label:(0,sie.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,Ai.jsx)(lne,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,Ai.jsx)(u,{...b})]})}var u6=a(F(),1),m6=a($(),1),NM=a(j(),1),ef=a(T(),1),Hb=a(R(),1),c6=a(B(),1),uie=a(fe(),1);var dc=a(v(),1);function mie({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:n}){let[i,l]=(0,NM.useState)(!1),[s,c]=(0,NM.useState)(0),u=(0,uie.useResizeObserver)(([_])=>{c(_.contentRect.width)}),p=s>0&&s<160,{blockType:d,activeBlockVariation:f}=(0,u6.useSelect)(_=>{let{getActiveBlockVariation:x,getBlockType:k}=_(m6.store);return{blockType:k(r),activeBlockVariation:x(r,e)}},[r,e]),h=!!Vb(t,e).length,g=f?.icon?.src||f?.icon||d?.icon?.src,b=f?.title||d?.title,y=(0,ef.useBlockProps)({ref:u});return i?(0,dc.jsx)(K3e,{clientId:t,attributes:e,icon:g,label:b}):(0,dc.jsxs)("div",{...y,children:[n&&(0,dc.jsx)(l6,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,dc.jsxs)(Hb.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&g,label:!p&&b,instructions:!p&&(0,c6.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!h&&!p&&(0,dc.jsx)(Hb.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,c6.__)("Choose")}),!p&&(0,dc.jsx)(Hb.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{l(!0)},children:(0,c6.__)("Start blank")})]})]})}function K3e({clientId:e,attributes:t,icon:r,label:o}){let n=one(t),{replaceInnerBlocks:i}=(0,u6.useDispatch)(ef.store),l=(0,ef.useBlockProps)();return(0,dc.jsx)("div",{...l,children:(0,dc.jsx)(ef.__experimentalBlockVariationPicker,{icon:r,label:o,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,m6.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var tf=a(v(),1),Y3e=e=>{let{clientId:t,attributes:r}=e,[o,n]=(0,die.useState)(!1),l=(0,pie.useSelect)(s=>!!s(fie.store).getBlocks(t).length,[t])?EM:mie;return(0,tf.jsxs)(tf.Fragment,{children:[(0,tf.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),o&&(0,tf.jsx)(nie,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},hie=Y3e;var p6=a(T(),1),gie=a(v(),1);function vie({attributes:{tagName:e="div"}}){let t=p6.useBlockProps.save(),r=p6.useInnerBlocksProps.save(t);return(0,gie.jsx)(e,{...r})}var Ob=a(B(),1);var fc=a(R(),1),ku=a(v(),1),bie=(0,ku.jsx)(fc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,ku.jsx)(fc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),yie=(0,ku.jsx)(fc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,ku.jsx)(fc.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),_ie=(0,ku.jsx)(fc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,ku.jsx)(fc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),xie=(0,ku.jsx)(fc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,ku.jsx)(fc.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var IM=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],Q3e=[{name:"title-date",title:(0,Ob.__)("Title & Date"),icon:bie,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],IM]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Ob.__)("Title & Excerpt"),icon:yie,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,Ob.__)("Title, Date, & Excerpt"),icon:_ie,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],IM,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Ob.__)("Image, Date, & Title"),icon:xie,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],IM,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],kie=Q3e;var d6=a($(),1),Aa=a(T(),1);var rf=a(v(),1),{cleanEmptyObject:DM}=W(Aa.privateApis),LM=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}},wie=(e,t)=>{let{style:r,backgroundColor:o,gradient:n,textColor:i,...l}=e;if(!(o||n||i||r?.color||r?.elements?.link))return[e,t];if(r&&(l.style=DM({...r,color:void 0,elements:{...r.elements,link:void 0}})),X3e(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?DM({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,d=(0,d6.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:n,textColor:i,style:p},u.innerBlocks);return[l,[d]]}let c=(0,d6.createBlock)("core/group",{backgroundColor:o,gradient:n,textColor:i,style:DM({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[l,[c]]},X3e=(e=[])=>e.length===1&&e[0].name==="core/group",MM=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},Cie=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=Cie(r.innerBlocks));return t},Sie=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=Sie(r.innerBlocks,t))}),e),Vg=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let n=Cie(t);if(!n)return[e,t];let{type:i,columns:l}=r,s=i==="flex"?"grid":"default",c=(0,d6.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[o,Sie(t,c)]},J3e={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=LM(e),{layout:o,...n}=r,i={...n,displayLayout:r.layout};return Vg(i,t)},save(){return(0,rf.jsx)(Aa.InnerBlocks.Content,{})}},eCe={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=LM(e),[o,n]=wie(r,t),i=MM(o);return Vg(i,n)},save({attributes:{tagName:e="div"}}){let t=Aa.useBlockProps.save(),r=Aa.useInnerBlocksProps.save(t);return(0,rf.jsx)(e,{...r})}},tCe={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]=wie(e,t),n=MM(r);return Vg(n,o)},save({attributes:{tagName:e="div"}}){let t=Aa.useBlockProps.save(),r=Aa.useInnerBlocksProps.save(t);return(0,rf.jsx)(e,{...r})}},rCe={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=Aa.useBlockProps.save(),r=Aa.useInnerBlocksProps.save(t);return(0,rf.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=MM(e);return Vg(r,t)}},oCe={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=Aa.useBlockProps.save(),r=Aa.useInnerBlocksProps.save(t);return(0,rf.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:Vg},aCe={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=Aa.useBlockProps.save(),r=Aa.useInnerBlocksProps.save(t);return(0,rf.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=LM(e);return Vg(r,t)}},nCe=[aCe,oCe,rCe,tCe,eCe,J3e],Tie=nCe;var{name:Pie}=KC,Bie={icon:Np,edit:hie,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}},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:vie,variations:kie,deprecated:Tie},iCe=()=>I({name:Pie,metadata:KC,settings:Bie});var RM={};Z(RM,{init:()=>cCe,metadata:()=>f6,name:()=>Rie,settings:()=>zie});var Aie=a(B(),1);var f6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No Results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",ancestor:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{anchor:!0,align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var h6=a(T(),1),Eie=a(B(),1),Nie=a(v(),1),sCe=[["core/paragraph",{placeholder:(0,Eie.__)("Add text or blocks that will display when a query returns no results.")}]];function Iie(){let e=(0,h6.useBlockProps)(),t=(0,h6.useInnerBlocksProps)(e,{template:sCe});return(0,Nie.jsx)("div",{...t})}var Die=a(T(),1),Lie=a(v(),1);function Mie(){return(0,Lie.jsx)(Die.InnerBlocks.Content,{})}var{name:Rie}=f6,zie={icon:Np,edit:Iie,save:Mie,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Aie.__)("No posts were found.")}}]}},cCe=()=>I({name:Rie,metadata:f6,settings:zie});var FM={};Z(FM,{init:()=>dCe,metadata:()=>g6,name:()=>Zie,settings:()=>Kie});var g6={$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 v6=a(B(),1),wu=a(T(),1),b6=a(F(),1),jb=a(R(),1),jie=a(j(),1);var of=a(B(),1),Fg=a(R(),1),Hg=a(v(),1);function Vie({value:e,onChange:t}){return(0,Hg.jsxs)(Fg.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:(0,of.__)("Arrow"),value:e,onChange:t,help:(0,of.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,Hg.jsx)(Fg.__experimentalToggleGroupControlOption,{value:"none",label:(0,of._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,Hg.jsx)(Fg.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,of._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,Hg.jsx)(Fg.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,of._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var zM=a(B(),1),Fie=a(R(),1),Hie=a(v(),1);function Oie({value:e,onChange:t}){return(0,Hie.jsx)(Fie.ToggleControl,{label:(0,zM.__)("Show label text"),help:(0,zM.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var dl=a(v(),1),mCe=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function Uie({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let n=(0,b6.useSelect)(u=>{let{getBlocks:m}=u(wu.store);return m(o)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,b6.useDispatch)(wu.store),l=q(),s=(0,wu.useBlockProps)(),c=(0,wu.useInnerBlocksProps)(s,{template:mCe});return(0,jie.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,dl.jsxs)(dl.Fragment,{children:[n&&(0,dl.jsx)(wu.InspectorControls,{children:(0,dl.jsxs)(jb.__experimentalToolsPanel,{label:(0,v6.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,dl.jsx)(jb.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,v6.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,dl.jsx)(Vie,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,dl.jsx)(jb.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,v6.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,dl.jsx)(Oie,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,dl.jsx)("nav",{...c})]})}var Gie=a(T(),1),Wie=a(v(),1);function $ie(){return(0,Wie.jsx)(Gie.InnerBlocks.Content,{})}var y6=a(T(),1),VM=a(v(),1),pCe=[{save(){return(0,VM.jsx)("div",{...y6.useBlockProps.save(),children:(0,VM.jsx)(y6.InnerBlocks.Content,{})})}}],qie=pCe;var{name:Zie}=g6,Kie={icon:x1,edit:Uie,save:$ie,deprecated:qie},dCe=()=>I({name:Zie,metadata:g6,settings:Kie});var OM={};Z(OM,{init:()=>gCe,metadata:()=>_6,name:()=>Qie,settings:()=>Xie});var _6={$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 HM=a(B(),1),x6=a(T(),1),Ub=a(v(),1),hCe={none:"",arrow:"\u2192",chevron:"\xBB"};function Yie({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=hCe[r];return(0,Ub.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,x6.useBlockProps)(),children:[o&&(0,Ub.jsx)(x6.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,HM.__)("Next page link"),placeholder:(0,HM.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,Ub.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:Qie}=_6,Xie={icon:b1,edit:Yie},gCe=()=>I({name:Qie,metadata:_6,settings:Xie});var jM={};Z(jM,{init:()=>yCe,metadata:()=>k6,name:()=>ele,settings:()=>tle});var k6={$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 Wb=a(B(),1),w6=a(T(),1),Og=a(R(),1);var Ri=a(v(),1),Gb=(e,t="a",r="")=>(0,Ri.jsx)(t,{className:`page-numbers ${r}`,children:e},e),bCe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(Gb(r));t.push(Gb(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(Gb(e+1+r));return t.push(Gb("...","span","dots")),t.push(Gb(e*2+3)),(0,Ri.jsx)(Ri.Fragment,{children:t})};function Jie({attributes:e,setAttributes:t}){let{midSize:r}=e,o=bCe(parseInt(r,10)),n=q();return(0,Ri.jsxs)(Ri.Fragment,{children:[(0,Ri.jsx)(w6.InspectorControls,{children:(0,Ri.jsx)(Og.__experimentalToolsPanel,{label:(0,Wb.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,Ri.jsx)(Og.__experimentalToolsPanelItem,{label:(0,Wb.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,Ri.jsx)(Og.RangeControl,{__next40pxDefaultSize:!0,label:(0,Wb.__)("Number of links"),help:(0,Wb.__)("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,Ri.jsx)("div",{...(0,w6.useBlockProps)(),children:o})]})}var{name:ele}=k6,tle={icon:y1,edit:Jie,example:{}},yCe=()=>I({name:ele,metadata:k6,settings:tle});var GM={};Z(GM,{init:()=>kCe,metadata:()=>C6,name:()=>ole,settings:()=>ale});var C6={$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 UM=a(B(),1),S6=a(T(),1),$b=a(v(),1),xCe={none:"",arrow:"\u2190",chevron:"\xAB"};function rle({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=xCe[r];return(0,$b.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,S6.useBlockProps)(),children:[n&&(0,$b.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),o&&(0,$b.jsx)(S6.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,UM.__)("Previous page link"),placeholder:(0,UM.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:ole}=C6,ale={icon:_1,edit:rle},kCe=()=>I({name:ole,metadata:C6,settings:ale});var ZM={};Z(ZM,{init:()=>PCe,metadata:()=>T6,name:()=>ple,settings:()=>dle});var T6={$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 fl=a(T(),1),hl=a(R(),1),Kt=a(B(),1);var WM=a(X(),1),$M=a(F(),1);function nle(){let e=(0,$M.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),m=c(),p=u()||(m==="wp_template"?s():null);return p?l(WM.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 l=e?.match(/^(author)$|^author-(.+)$/);l&&(n=!0,l[2]&&(i=l[2]))}return(0,$M.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(WM.store),m,p;if(r&&(m=c(r)?.labels?.singular_name),o){let d=s("taxonomy",r,{slug:o,per_page:1});d&&d[0]&&(p=d[0].name)}if(n&&(m="Author",i)){let d=u({slug:i});d&&d[0]&&(p=d[0].name)}return{archiveTypeLabel:m,archiveNameLabel:p}},[i,n,r,o])}var ile=a(X(),1),qM=a(F(),1);function lle(e){let t=(0,qM.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,qM.useSelect)(r=>{let{getPostType:o}=r(ile.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var Tt=a(v(),1),CCe=["archive","search","post-type"];function sle(e){vt(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=nle(),{postTypeLabel:m}=lle(s?.postType),p=q(),d=r===0?"p":`h${r}`,f=(0,fl.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!CCe.includes(t))return(0,Tt.jsx)("div",{...f,children:(0,Tt.jsx)(fl.Warning,{children:(0,Kt.__)("Provided type is not supported.")})});let h;if(t==="archive"){let g;c?n?u?g=(0,Kt.sprintf)((0,Kt._x)("%1$s: %2$s","archive label"),c,u):g=(0,Kt.sprintf)((0,Kt.__)("%s: Name"),c):u?g=u:g=(0,Kt.sprintf)((0,Kt.__)("%s name"),c):g=n?(0,Kt.__)("Archive type: Name"):(0,Kt.__)("Archive title"),h=(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(fl.InspectorControls,{children:(0,Tt.jsx)(hl.__experimentalToolsPanel,{label:(0,Kt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,Tt.jsx)(hl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Kt.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Tt.jsx)(hl.ToggleControl,{label:(0,Kt.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,Tt.jsx)(d,{...f,children:g})]})}if(t==="search"&&(h=(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(fl.InspectorControls,{children:(0,Tt.jsx)(hl.__experimentalToolsPanel,{label:(0,Kt.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,Tt.jsx)(hl.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Kt.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,Tt.jsx)(hl.ToggleControl,{label:(0,Kt.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,Tt.jsx)(d,{...f,children:i?(0,Kt.__)("Search results for: \u201Csearch term\u201D"):(0,Kt.__)("Search results")})]})),t==="post-type"){let g;m?n?g=(0,Kt.sprintf)((0,Kt.__)('Post Type: "%s"'),m):g=m:g=n?(0,Kt.__)("Post Type: Name"):(0,Kt.__)("Name"),h=(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(fl.InspectorControls,{children:(0,Tt.jsx)(hl.__experimentalToolsPanel,{label:(0,Kt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,Tt.jsx)(hl.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Kt.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,Tt.jsx)(hl.ToggleControl,{label:(0,Kt.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,Tt.jsx)(d,{...f,children:g})]})}return(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)(fl.BlockControls,{group:"block",children:(0,Tt.jsx)(fl.HeadingLevelDropdown,{value:r,options:o,onChange:g=>l({level:g})})}),h]})}var af=a(B(),1);var cle=[{isDefault:!0,name:"archive-title",title:(0,af.__)("Archive Title"),description:(0,af.__)("Display the archive title based on the queried object."),icon:Ml,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,af.__)("Search Results Title"),description:(0,af.__)("Display the search results title based on the queried object."),icon:Ml,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,af.__)("Post Type Label"),description:(0,af.__)("Display the post type label based on the queried object."),icon:Ml,attributes:{type:"post-type"},scope:["inserter"]}];cle.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var ule=cle;var SCe={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},TCe={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:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},mle=[SCe,TCe];var{name:ple}=T6,dle={icon:Ml,edit:sle,variations:ule,deprecated:mle},PCe=()=>I({name:ple,metadata:T6,settings:dle});var QM={};Z(QM,{init:()=>ECe,metadata:()=>P6,name:()=>gle,settings:()=>vle});var P6={$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 B6=a(T(),1),E6=a(R(),1),jg=a(B(),1);var qm=a(R(),1),nf=a(v(),1),KM=(0,nf.jsx)(qm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,nf.jsx)(qm.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),YM=(0,nf.jsx)(qm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,nf.jsx)(qm.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),fle=(0,nf.jsx)(qm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,nf.jsx)(qm.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 ds=a(v(),1);function hle({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,B6.useBlockProps)(),n=()=>{switch(r){case"total-results":return KM;case"range-display":return YM}},i=[{role:"menuitemradio",title:(0,jg.__)("Total results"),isActive:r==="total-results",icon:KM,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,jg.__)("Range display"),isActive:r==="range-display",icon:YM,onClick:()=>{t({displayType:"range-display"})}}],l=(0,ds.jsx)(B6.BlockControls,{children:(0,ds.jsx)(E6.ToolbarGroup,{children:(0,ds.jsx)(E6.ToolbarDropdownMenu,{icon:n(),label:(0,jg.__)("Change display type"),controls:i})})});return(0,ds.jsxs)("div",{...o,children:[l,r==="total-results"?(0,ds.jsx)(ds.Fragment,{children:(0,jg.__)("12 results found")}):r==="range-display"?(0,ds.jsx)(ds.Fragment,{children:(0,jg.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:gle}=P6,vle={icon:fle,edit:hle},ECe=()=>I({name:gle,metadata:P6,settings:vle});var JM={};Z(JM,{init:()=>HCe,metadata:()=>I6,name:()=>Tle,settings:()=>Ple});var XM=a(B(),1);var qb=a($(),1),no=a(T(),1),na=a(v(),1),Zm=e=>{let{value:t,...r}=e;return[{...r},t?(0,qb.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,qb.createBlock)("core/paragraph",{content:o})):(0,qb.createBlock)("core/paragraph")]},ble=["left","right","center"],lf=(e,t)=>{let{align:r,...o}=e;return[ble.includes(r)?{...o,textAlign:r}:e,t]},NCe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],ICe={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})=>ble.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=w({[`has-text-align-${t}`]:t});return(0,na.jsxs)("blockquote",{...no.useBlockProps.save({className:o}),children:[(0,na.jsx)(no.InnerBlocks.Content,{}),!no.RichText.isEmpty(r)&&(0,na.jsx)(no.RichText.Content,{tagName:"cite",value:r})]})},migrate:lf},DCe={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=w({[`has-text-align-${t}`]:t});return(0,na.jsxs)("blockquote",{...no.useBlockProps.save({className:n}),children:[(0,na.jsx)(no.RichText.Content,{multiline:!0,value:r}),!no.RichText.isEmpty(o)&&(0,na.jsx)(no.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return lf(...Zm(e))}},LCe={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 lf(...Zm(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,na.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,na.jsx)(no.RichText.Content,{multiline:!0,value:r}),!no.RichText.isEmpty(o)&&(0,na.jsx)(no.RichText.Content,{tagName:"cite",value:o})]})}},MCe={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 lf(...NCe(...Zm(r)))}return lf(...Zm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,na.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,na.jsx)(no.RichText.Content,{multiline:!0,value:r}),!no.RichText.isEmpty(o)&&(0,na.jsx)(no.RichText.Content,{tagName:"cite",value:o})]})}},ACe={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 lf(...Zm(r))}return lf(...Zm(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,na.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,na.jsx)(no.RichText.Content,{multiline:!0,value:r}),!no.RichText.isEmpty(o)&&(0,na.jsx)(no.RichText.Content,{tagName:"footer",value:o})]})}},yle=[ICe,DCe,LCe,MCe,ACe];var Zb=a(B(),1),hc=a(T(),1),_le=a(R(),1),N6=a(F(),1),xle=a(j(),1),kle=a(Uf(),1);var Cu=a(v(),1),RCe=[["core/paragraph",{}]],zCe=(e,t)=>{let r=(0,N6.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n}=(0,N6.useDispatch)(hc.store);(0,xle.useEffect)(()=>{if(!e.value)return;let[i,l]=Zm(e);(0,kle.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),r.batch(()=>{o(t,i),n(t,l)})},[e.value])};function wle({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:n,isSelected:i}){let{textAlign:l,allowedBlocks:s}=e;zCe(e,o);let c=(0,hc.useBlockProps)({className:w(n,{[`has-text-align-${l}`]:l})}),u=(0,hc.useInnerBlocksProps)(c,{template:RCe,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:s});return(0,Cu.jsxs)(Cu.Fragment,{children:[(0,Cu.jsx)(hc.BlockControls,{group:"block",children:(0,Cu.jsx)(hc.AlignmentControl,{value:l,onChange:m=>{t({textAlign:m})}})}),(0,Cu.jsxs)(_le.BlockQuotation,{...u,children:[u.children,(0,Cu.jsx)(ma,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:R1,label:(0,Zb.__)("Quote citation"),placeholder:(0,Zb.__)("Add citation"),addLabel:(0,Zb.__)("Add citation"),removeLabel:(0,Zb.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var I6={$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,__experimentalDefaultControls:{backgroundImage:!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 sf=a(T(),1),Kb=a(v(),1);function Cle({attributes:e}){let{textAlign:t,citation:r}=e,o=w({[`has-text-align-${t}`]:t});return(0,Kb.jsxs)("blockquote",{...sf.useBlockProps.save({className:o}),children:[(0,Kb.jsx)(sf.InnerBlocks.Content,{}),!sf.RichText.isEmpty(r)&&(0,Kb.jsx)(sf.RichText.Content,{tagName:"cite",value:r})]})}var Yb=a(T(),1),Wr=a($(),1),FCe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Wr.createBlock)("core/quote",{},[(0,Wr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:n,style:i})=>(0,Wr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:n,style:i},[(0,Wr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Wr.createBlock)("core/quote",{},[(0,Wr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Wr.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,Wr.createBlock)("core/quote",{},e.map(t=>(0,Wr.createBlock)(t.name,t.attributes,t.innerBlocks)))}],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 l=i.map(({attributes:s})=>`${s.content}`).join("<br>");return(0,Wr.createBlock)("core/pullquote",{value:l,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,Wr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Wr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Wr.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,Wr.switchToBlockType)(o,"core/paragraph")!==null):!Yb.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Wr.switchToBlockType)(o,"core/paragraph")||[]);return Yb.RichText.isEmpty(e)?r:[...r,(0,Wr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Wr.createBlock)("core/group",{anchor:t},Yb.RichText.isEmpty(e)?r:[...r,(0,Wr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>Yb.RichText.isEmpty(e)?t:[...t,(0,Wr.createBlock)("core/paragraph",{content:e})]},Sle=FCe;var{name:Tle}=I6,Ple={icon:pB,example:{attributes:{citation:(0,XM.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,XM.__)("In quoting others, we cite ourselves.")}}]},transforms:Sle,edit:wle,save:Cle,deprecated:yle},HCe=()=>I({name:Tle,metadata:I6,settings:Ple});var eA={};Z(eA,{init:()=>JCe,metadata:()=>D6,name:()=>Vle,settings:()=>Fle});var Ale=a(X(),1),Rle=a(F(),1),zle=a(Oo(),1);var D6={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object",default:{}}},providesContext:{"pattern/overrides":"content"},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0},customCSS:!1}};var Xb=a(F(),1),Jb=a(j(),1),Ug=a(X(),1),gc=a(R(),1),Qb=a(B(),1),Mr=a(T(),1),Ile=a(Ele(),1),Dle=a($(),1);var hr=a(v(),1),{useLayoutClasses:jCe}=W(Mr.privateApis),{isOverridableBlock:UCe}=W(Ile.privateApis),GCe=["full","wide","left","right"],WCe=(e,t)=>{let r=(0,Jb.useRef)();return(0,Jb.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",l=e.some(s=>GCe.includes(s.attributes.align));o=i&&l?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function $Ce(){let e=(0,Mr.useBlockProps)();return(0,hr.jsx)("div",{...e,children:(0,hr.jsx)(Mr.Warning,{children:(0,Qb.__)("Block cannot be rendered inside itself.")})})}var Nle=()=>{};function Lle(e){let{ref:t}=e.attributes;return(0,Mr.useHasRecursion)(t)?(0,hr.jsx)($Ce,{}):(0,hr.jsx)(Mr.RecursionProvider,{uniqueId:t,children:(0,hr.jsx)(KCe,{...e})})}function qCe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:n}){let i=(0,Xb.useSelect)(l=>!!l(Ug.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,hr.jsxs)(hr.Fragment,{children:[i&&!!o&&(0,hr.jsx)(Mr.BlockControls,{group:"other",children:(0,hr.jsx)(gc.ToolbarGroup,{children:(0,hr.jsx)(gc.ToolbarButton,{onClick:o,children:(0,Qb.__)("Edit original")})})}),t&&(0,hr.jsx)(Mr.BlockControls,{group:"other",children:(0,hr.jsx)(gc.ToolbarGroup,{children:(0,hr.jsx)(gc.ToolbarButton,{onClick:n,disabled:!r,children:(0,Qb.__)("Reset")})})})]})}var ZCe={};function KCe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:n}){let{record:i,hasResolved:l}=(0,Ug.useEntityRecord)("postType","wp_block",t),[s]=(0,Ug.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,Xb.useDispatch)(Mr.store),{onNavigateToEntityRecord:m,hasPatternOverridesSource:p,supportedBlockTypesRaw:d}=(0,Xb.useSelect)(C=>{let{getSettings:E}=C(Mr.store);return{onNavigateToEntityRecord:E().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,Dle.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:E().__experimentalBlockBindingsSupportedAttributes||ZCe}},[]),f=(0,Jb.useMemo)(()=>{let C=Object.keys(d),E=P=>P.some(N=>C.includes(N.name)&&UCe(N)?!0:E(N.innerBlocks));return p&&E(s)},[p,s,d]),{alignment:h,layout:g}=WCe(s,o),b=jCe({layout:g},e),y=(0,Mr.useBlockProps)({className:w("block-library-block__reusable-block-container",g&&b,{[`align${h}`]:h})}),_=(0,Mr.useInnerBlocksProps)(y,{layout:g,value:s,onInput:Nle,onChange:Nle,renderAppender:s?.length?void 0:Mr.InnerBlocks.ButtonBlockAppender}),x=()=>{m({postId:t,postType:"wp_block"})},k=()=>{r&&(u(),n({content:void 0}))},S=null;return c&&(S=(0,hr.jsx)(Mr.Warning,{children:(0,Qb.__)("Block has been deleted or is unavailable.")})),l||(S=(0,hr.jsx)(gc.Placeholder,{children:(0,hr.jsx)(gc.Spinner,{})})),(0,hr.jsxs)(hr.Fragment,{children:[l&&!c&&(0,hr.jsx)(qCe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:m?x:void 0,resetContent:k}),S===null?(0,hr.jsx)("div",{..._}):(0,hr.jsx)("div",{...y,children:S})]})}var YCe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,QCe={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&&YCe(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}},XCe={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}}},Mle=[QCe,XCe];var{name:Vle}=D6,Fle={deprecated:Mle,edit:Lle,icon:FB,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,Rle.select)(Ale.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,zle.decodeEntities)(t.title)}},JCe=()=>I({name:Vle,metadata:D6,settings:Fle});var tA={};Z(tA,{init:()=>t6e,metadata:()=>L6,name:()=>jle,settings:()=>Ule});var Ole=a(B(),1);var L6={$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 Wg=a(T(),1),$g=a(R(),1),M6=a($(),1),Gg=a(B(),1);var vc=a(v(),1);function Hle({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let n=(0,Wg.useBlockProps)(),i=q();return(0,vc.jsxs)(vc.Fragment,{children:[(0,vc.jsx)(Wg.InspectorControls,{children:(0,vc.jsx)($g.__experimentalToolsPanel,{label:(0,Gg.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,vc.jsx)($g.__experimentalToolsPanelItem,{label:(0,Gg.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,vc.jsx)($g.ToggleControl,{label:(0,Gg.__)("Open in new tab"),onChange:l=>r({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,vc.jsx)(Wg.RichText,{identifier:"content",tagName:"a","aria-label":(0,Gg.__)("\u201CRead more\u201D link text"),placeholder:(0,Gg.__)("Read more"),value:e,onChange:l=>r({content:l}),__unstableOnSplitAtEnd:()=>o((0,M6.createBlock)((0,M6.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:jle}=L6,Ule={icon:Qn,edit:Hle,example:{attributes:{content:(0,Ole.__)("Read more")}}},t6e=()=>I({name:jle,metadata:L6,settings:Ule});var rA={};Z(rA,{init:()=>n6e,metadata:()=>A6,name:()=>Zle,settings:()=>Kle});var A6={$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 cf=a(T(),1),ft=a(R(),1),R6=a(j(),1);var It=a(B(),1),Gle=a(lr(),1),Wle=a(zu(),1),$le=a(fe(),1);var rt=a(v(),1),o6e=1,a6e=20;function qle({attributes:e,setAttributes:t,name:r}){let[o,n]=(0,R6.useState)(!e.feedURL),{blockLayout:i,columns:l,displayAuthor:s,displayDate:c,displayExcerpt:u,excerptLength:m,feedURL:p,itemsToShow:d,openInNewTab:f,rel:h}=e,g=q();function b(N){return()=>{let z=e[N];t({[N]:!z})}}function y(N){N.preventDefault(),p&&(t({feedURL:(0,Gle.prependHTTPS)(p)}),n(!1))}let{content:_,status:x,error:k}=(0,Wle.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),S=(0,$le.useDisabled)(),C=(0,cf.useBlockProps)({ref:o?null:S}),E=(0,It.__)("RSS URL");if(o)return(0,rt.jsx)("div",{...C,children:(0,rt.jsx)(ft.Placeholder,{icon:k1,label:E,instructions:(0,It.__)("Display entries from any RSS or Atom feed."),children:(0,rt.jsxs)("form",{onSubmit:y,className:"wp-block-rss__placeholder-form",children:[(0,rt.jsx)(ft.__experimentalInputControl,{__next40pxDefaultSize:!0,label:E,type:"url",hideLabelFromVision:!0,placeholder:(0,It.__)("Enter URL here\u2026"),value:p,onChange:N=>t({feedURL:N}),className:"wp-block-rss__placeholder-input"}),(0,rt.jsx)(ft.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,It.__)("Apply")})]})})});let P=[{icon:Dp,title:(0,It.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:Ll,title:(0,It._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:Dl,title:(0,It._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(cf.BlockControls,{children:(0,rt.jsx)(ft.ToolbarGroup,{controls:P})}),(0,rt.jsx)(cf.InspectorControls,{children:(0,rt.jsxs)(ft.__experimentalToolsPanel,{label:(0,It.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Number of items"),hasValue:()=>d!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,rt.jsx)(ft.RangeControl,{__next40pxDefaultSize:!0,label:(0,It.__)("Number of items"),value:d,onChange:N=>t({itemsToShow:N}),min:o6e,max:a6e,required:!0})}),(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Display author"),hasValue:()=>!!s,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,rt.jsx)(ft.ToggleControl,{label:(0,It.__)("Display author"),checked:s,onChange:b("displayAuthor")})}),(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,rt.jsx)(ft.ToggleControl,{label:(0,It.__)("Display date"),checked:c,onChange:b("displayDate")})}),(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,rt.jsx)(ft.ToggleControl,{label:(0,It.__)("Display excerpt"),checked:u,onChange:b("displayExcerpt")})}),u&&(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Max number of words in excerpt"),hasValue:()=>m!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,rt.jsx)(ft.RangeControl,{__next40pxDefaultSize:!0,label:(0,It.__)("Max number of words in excerpt"),value:m,onChange:N=>t({excerptLength:N}),min:10,max:100,required:!0})}),i==="grid"&&(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Columns"),hasValue:()=>l!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,rt.jsx)(ft.RangeControl,{__next40pxDefaultSize:!0,label:(0,It.__)("Columns"),value:l,onChange:N=>t({columns:N}),min:2,max:6,required:!0})}),(0,rt.jsx)(ft.__experimentalToolsPanelItem,{label:(0,It.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,rt.jsx)(ft.ToggleControl,{label:(0,It.__)("Open links in new tab"),checked:f,onChange:N=>t({openInNewTab:N})})})]})}),(0,rt.jsx)(cf.InspectorControls,{group:"advanced",children:(0,rt.jsx)(ft.TextControl,{label:(0,It.__)("Link relation"),help:(0,R6.createInterpolateElement)((0,It.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,rt.jsx)(ft.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:h||"",onChange:N=>t({rel:N})})}),x==="loading"&&(0,rt.jsx)("div",{...C,children:(0,rt.jsx)(ft.Spinner,{})}),x==="error"&&(0,rt.jsx)("div",{...C,children:(0,rt.jsx)("p",{children:(0,It.sprintf)((0,It.__)("Error: %s"),k)})}),x==="success"&&(0,rt.jsx)(uo,{wrapperProps:C,html:_})]})}var{name:Zle}=A6,Kle={icon:k1,example:{attributes:{feedURL:"https://wordpress.org"}},edit:qle},n6e=()=>I({name:Zle,metadata:A6,settings:Kle});var sA={};Z(sA,{init:()=>u6e,metadata:()=>z6,name:()=>nse,settings:()=>F6});var qg=a(B(),1);var ase=a($(),1);var z6={$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 $r=a(T(),1),V6=a(F(),1),ey=a(j(),1),er=a(R(),1),Jle=a(fe(),1);var Pt=a(B(),1),ese=a(Va(),1),tse=a($f(),1);var oA=50,aA=350,nA=220;function iA(e){return e==="%"}var ht=a(v(),1),Yle={"":(0,Pt.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,Pt.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,Pt.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},Qle="4px",Xle=[25,50,75,100];function rse({className:e,attributes:t,setAttributes:r,toggleSelection:o,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:m,align:p,buttonText:d,buttonPosition:f,buttonUseIcon:h,tagName:g,style:b}=t,y=(0,V6.useSelect)(oe=>{let{getBlockParentsByBlockName:J,wasBlockJustInserted:re}=oe($r.store);return!!J(i,"core/navigation")?.length&&re(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,V6.useDispatch)($r.store);(0,ey.useEffect)(()=>{y&&(_(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,y,r]);let x=b?.border?.radius,k=(0,$r.__experimentalUseBorderProps)(t);typeof x=="number"&&(k={...k,style:{...k.style,borderRadius:`${x}px`}});let S=(0,$r.__experimentalUseColorProps)(t),[C,E]=(0,$r.useSettings)("typography.fluid","layout"),P=(0,$r.getTypographyClassesAndStyles)(t,{typography:{fluid:C},layout:{wideSize:E?.wideSize}}),z=`wp-block-search__width-${(0,Jle.useInstanceId)(er.__experimentalUnitControl)}`,V=f==="button-inside",A=f==="button-outside",M=f==="no-button",L=f==="button-only",U=L&&!n,H=(0,ey.useRef)(),G=(0,ey.useRef)(),Y=(0,er.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":oA,px:aA}}),O=()=>w(e,V?"wp-block-search__button-inside":void 0,A?"wp-block-search__button-outside":void 0,M?"wp-block-search__no-button":void 0,L?"wp-block-search__button-only":void 0,!h&&!M?"wp-block-search__text-button":void 0,h&&!M?"wp-block-search__icon-button":void 0,U?"wp-block-search__searchfield-hidden":void 0),te=[{label:(0,Pt.__)("Button outside"),value:"button-outside"},{label:(0,Pt.__)("Button inside"),value:"button-inside"},{label:(0,Pt.__)("No button"),value:"no-button"},{label:(0,Pt.__)("Button only"),value:"button-only"}],se=()=>L?{}:{right:p!=="right",left:p==="right"},Q=()=>{let oe=w("wp-block-search__input",M?S.className:void 0,V?void 0:k.className,P.className),J={...M?S.style:{},...V?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style,...P.style,textDecoration:void 0};return(0,ht.jsx)("input",{type:"search",className:oe,style:J,"aria-label":(0,Pt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Pt.__)("Optional placeholder\u2026"),value:c,onChange:re=>r({placeholder:re.target.value}),ref:H})},ce=()=>{let oe=w("wp-block-search__button",S.className,P.className,V?void 0:k.className,h?"has-icon":void 0,(0,$r.__experimentalGetElementClassName)("button")),J={...S.style,...P.style,...V?{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius}:k.style};return(0,ht.jsxs)(ht.Fragment,{children:[h&&(0,ht.jsx)("button",{type:"button",className:oe,style:J,"aria-label":d?(0,ese.__unstableStripHTML)(d):(0,Pt.__)("Search"),ref:G,children:(0,ht.jsx)(Fa,{icon:w1})}),!h&&(0,ht.jsx)($r.RichText,{identifier:"buttonText",className:oe,style:J,"aria-label":(0,Pt.__)("Button text"),placeholder:(0,Pt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:re=>r({buttonText:re})})]})},Ee=q(),le=(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsx)($r.InspectorControls,{children:(0,ht.jsxs)(er.__experimentalToolsPanel,{label:(0,Pt.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:Ee,children:[(0,ht.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Pt.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,ht.jsx)(er.ToggleControl,{checked:s,label:(0,Pt.__)("Show label"),onChange:oe=>r({showLabel:oe})})}),(0,ht.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Pt.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,ht.jsx)(er.SelectControl,{value:f,__next40pxDefaultSize:!0,label:(0,Pt.__)("Button position"),onChange:oe=>{r({buttonPosition:oe})},options:te})}),f!=="no-button"&&(0,ht.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>!!h,label:(0,Pt.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,ht.jsx)(er.ToggleControl,{checked:h,label:(0,Pt.__)("Use button with icon"),onChange:oe=>r({buttonUseIcon:oe})})}),(0,ht.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Pt.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,ht.jsxs)(er.__experimentalVStack,{children:[(0,ht.jsx)(er.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Pt.__)("Width"),id:z,min:iA(m)?0:nA,max:iA(m)?100:void 0,step:1,onChange:oe=>{let J=oe===""?void 0:parseInt(oe,10);r({width:J})},onUnitChange:oe=>{r({width:oe==="%"?oA:aA,widthUnit:oe})},__unstableInputWidth:"80px",value:`${u}${m}`,units:Y}),(0,ht.jsx)(er.__experimentalToggleGroupControl,{label:(0,Pt.__)("Percentage Width"),value:Xle.includes(u)&&m==="%"?u:void 0,hideLabelFromVision:!0,onChange:oe=>{r({width:oe,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,children:Xle.map(oe=>(0,ht.jsx)(er.__experimentalToggleGroupControlOption,{value:oe,label:(0,Pt.sprintf)((0,Pt.__)("%d%%"),oe)},oe))})]})})]})}),(0,ht.jsx)($r.InspectorControls,{group:"advanced",children:(0,ht.jsx)(er.SelectControl,{__next40pxDefaultSize:!0,label:(0,Pt.__)("HTML element"),value:g??"",options:[{label:(0,Pt.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:oe=>{r({tagName:oe}),(0,tse.speak)(Yle[oe].replace(/[<>]/g,""))},help:Yle[g??""]})})]}),ee=oe=>oe!==void 0&&parseInt(oe,10)!==0,ve=oe=>ee(oe)?`calc(${oe} + ${Qle})`:void 0,Ne=()=>{let oe=V?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius};if(V){if(typeof x=="object"){let{borderTopLeftRadius:re,borderTopRightRadius:Me,borderBottomLeftRadius:mt,borderBottomRightRadius:Lt}=k.style;return{...oe,borderTopLeftRadius:ve(re),borderTopRightRadius:ve(Me),borderBottomLeftRadius:ve(mt),borderBottomRightRadius:ve(Lt)}}let J=Number.isInteger(x)?`${x}px`:x;oe.borderRadius=`calc(${J} + ${Qle})`}return oe},Re=(0,$r.useBlockProps)({className:O(),style:{...P.style,textDecoration:void 0}}),Be=w("wp-block-search__label",P.className);return(0,ht.jsxs)(ht.Fragment,{children:[le,(0,ht.jsxs)(g==="search"?"search":"div",{...Re,children:[s&&(0,ht.jsx)($r.RichText,{identifier:"label",className:Be,"aria-label":(0,Pt.__)("Label text"),placeholder:(0,Pt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:oe=>r({label:oe}),style:P.style}),(0,ht.jsxs)(er.ResizableBox,{size:{width:u===void 0?"auto":`${u}${m}`,height:"auto"},className:w("wp-block-search__inside-wrapper",V?k.className:void 0),style:Ne(),minWidth:nA,enable:se(),onResizeStart:(oe,J,re)=>{r({width:parseInt(re.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(oe,J,re,Me)=>{r({width:parseInt(u+Me.width,10)}),o(!0)},showHandle:n,children:[(V||A||L)&&(0,ht.jsxs)(ht.Fragment,{children:[Q(),ce()]}),M&&Q()]})]})]})}var lA=a(B(),1),l6e=[{name:"default",isDefault:!0,attributes:{buttonText:(0,lA.__)("Search"),label:(0,lA.__)("Search")}}],ose=l6e;var{fieldsKey:s6e,formKey:c6e}=W(ase.privateApis),{name:nse}=z6,F6={icon:w1,example:{attributes:{buttonText:(0,qg.__)("Search"),label:(0,qg.__)("Search")},viewportWidth:400},variations:ose,edit:rse};window.__experimentalContentOnlyInspectorFields&&(F6[s6e]=[{id:"label",label:(0,qg.__)("Label"),type:"text",Edit:"rich-text"},{id:"buttonText",label:(0,qg.__)("Button text"),type:"text",Edit:"rich-text"},{id:"placeholder",label:(0,qg.__)("Placeholder"),type:"text",Edit:"rich-text"}],F6[c6e]={fields:["label","buttonText","placeholder"]});var u6e=()=>I({name:nse,metadata:z6,settings:F6});var cA={};Z(cA,{init:()=>h6e,metadata:()=>O6,name:()=>fse,settings:()=>hse});var Km=a(T(),1),H6=a(R(),1),ry=a(B(),1);var ty=a(j(),1),ise=a(fe(),1);function lse(e,t,r){let[o,n]=(0,ty.useState)(!1),i=(0,ise.usePrevious)(t);(0,ty.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,ty.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[o,t,i])}var Su=a(v(),1),m6e=({tagName:e,setAttributes:t})=>(0,Su.jsx)(H6.SelectControl,{label:(0,ry.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,ry.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,ry.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,ry.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0});function sse({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:n,tagName:i}=e,l=(0,Km.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;lse(o,s,t);let u=(0,Km.getColorClassName)("color",r),m=w({"has-text-color":r||s,[u]:u,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className);return(0,Su.jsxs)(Su.Fragment,{children:[(0,Su.jsx)(Km.InspectorControls,{group:"advanced",children:(0,Su.jsx)(m6e,{tagName:i,setAttributes:t})}),(0,Su.jsx)(i==="hr"?H6.HorizontalRule:i,{...(0,Km.useBlockProps)({className:m,style:c?{color:s,backgroundColor:s}:void 0})})]})}var O6={$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 Zg=a(T(),1),cse=a(v(),1);function use({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:n}=e,i=r?.color?.background,l=(0,Zg.__experimentalGetColorClassesAndStyles)(e),s=(0,Zg.getColorClassName)("color",t),c=w({"has-text-color":t||i,[s]:s,"has-css-opacity":o==="css","has-alpha-channel-opacity":o==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,cse.jsx)(n,{...Zg.useBlockProps.save({className:c,style:u})})}var Ym=a($(),1),d6e={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Ym.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Ym.createBlock)("core/separator",e?.attributes??{}),(0,Ym.createBlock)((0,Ym.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Ym.createBlock)("core/spacer",{anchor:e||void 0})}]},mse=d6e;var oy=a(T(),1),pse=a(v(),1),f6e={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,oy.getColorClassName)("background-color",t),n=(0,oy.getColorClassName)("color",t),i=w({"has-text-color has-background":t||r,[o]:o,[n]:n}),l={backgroundColor:o?void 0:r,color:n?void 0:r};return(0,pse.jsx)("hr",{...oy.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:r,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:r?{color:{background:r}}:void 0,tagName:"hr"}}},dse=[f6e];var{name:fse}=O6,hse={icon:TB,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:mse,edit:sse,save:use,deprecated:dse},h6e=()=>I({name:fse,metadata:O6,settings:hse});var mA={};Z(mA,{init:()=>_6e,metadata:()=>q6,name:()=>Pse,settings:()=>Bse});var j6=a(B(),1),G6=a(T(),1),gse=a(fe(),1),vse=a(R(),1);var U6=a(v(),1);function uA({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,gse.useInstanceId)(uA)}`;return(0,U6.jsx)("div",{...(0,G6.useBlockProps)(),children:(0,U6.jsx)(vse.Placeholder,{icon:S1,label:(0,j6.__)("Shortcode"),children:(0,U6.jsx)(G6.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,j6.__)("Shortcode text"),placeholder:(0,j6.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var bse=a(j(),1),yse=a(v(),1);function _se({attributes:e}){return(0,yse.jsx)(bse.RawHTML,{children:e.text})}var W6=a(kse(),1),$6=a($(),1),Sse=a(Cse(),1),g6e=()=>(0,$6.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),v6e=(e,t)=>{let r=e.trim(),o=(0,Sse.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},b6e={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,W6.removep)((0,W6.autop)(t))}},priority:20}],get to(){return g6e().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>v6e(t,r)),transform:({text:t=""})=>(0,$6.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},Tse=b6e;var q6={$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:Pse}=q6,Bse={icon:S1,transforms:Tse,edit:uA,save:_se},_6e=()=>I({name:Pse,metadata:q6,settings:Bse});var dA={};Z(dA,{init:()=>T6e,metadata:()=>Z6,name:()=>Mse,settings:()=>Ase});var Z6={$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 pA=a(Br(),1),gl=a(j(),1),io=a(B(),1),Bt=a(R(),1),Ese=a(fe(),1),Ar=a(T(),1),Qm=a(F(),1),Kg=a(X(),1);var Nse=a(_r(),1);var Ae=a(v(),1),K6=["image"],{mediaEditKey:k6e,openMediaEditorModalKey:w6e}=W(Ar.privateApis),C6e=({alt:e,attributes:{align:t,width:r,height:o,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:f,setIcon:h,canUserEdit:g})=>{let b=(0,Ese.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&b,[{naturalWidth:x,naturalHeight:k},S]=(0,gl.useState)({}),[C,E]=(0,gl.useState)(!1),P=(0,gl.useRef)(),{toggleSelection:N,__unstableMarkNextChangeAsNotPersistent:z}=(0,Qm.useDispatch)(Ar.store),V=q(),M=(0,Ar.useBlockEditingMode)()==="contentOnly",{imageEditing:L,maxWidth:U,title:H,editMediaEntity:G,openMediaEditorModal:Y}=(0,Qm.useSelect)(ae=>{let Ue=ae(Ar.store).getSettings();return{title:ae(Kg.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:Ue.imageEditing,maxWidth:Ue.maxWidth,editMediaEntity:Ue?.[k6e],openMediaEditorModal:Ue?.[w6e]}},[]);(0,gl.useEffect)(()=>{l&&d!==f&&(z(),c({shouldSyncIcon:!1}))},[]),(0,gl.useEffect)(()=>{s||E(!1)},[s]);let O=({id:ae})=>{typeof ae=="number"&&u(ae)};function te(){N(!1)}function se(){N(!0)}let Q=(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)("img",{className:"custom-logo",src:m,alt:e,onLoad:ae=>{S({naturalWidth:ae.target.naturalWidth,naturalHeight:ae.target.naturalHeight})}}),(0,pA.isBlobURL)(m)&&(0,Ae.jsx)(Bt.Spinner,{})]}),ce=Q;if(n&&(ce=(0,Ae.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:H,onClick:ae=>ae.preventDefault(),children:Q})),!_||!x||!k)return(0,Ae.jsx)("div",{style:{width:r,height:o},children:ce});let Ee=120,le=r||Ee,ee=x/k,ve=le/ee,Ne=x<k?Ws:Math.ceil(Ws*ee),Re=k<x?Ws:Math.ceil(Ws/ee),Be=U*2.5,Ve=!1,oe=!1;t==="center"?(Ve=!0,oe=!0):(0,io.isRTL)()?t==="left"?Ve=!0:oe=!0:t==="right"?oe=!0:Ve=!0;let J=d&&x&&k&&L&&!!G,re=!M,Me;J&&C?Me=(0,Ae.jsx)(Ar.__experimentalImageEditor,{id:d,url:m,width:le,height:ve,naturalHeight:k,naturalWidth:x,onSaveImage:ae=>{u(ae.id)},onFinishEditing:()=>{E(!1)}}):Me=(0,Ae.jsx)(Bt.ResizableBox,{size:{width:le,height:ve},showHandle:s&&re,minWidth:Ne,maxWidth:Be,minHeight:Re,maxHeight:Be/ee,lockAspectRatio:!0,enable:{top:!1,right:Ve,bottom:!0,left:oe},onResizeStart:te,onResizeStop:(ae,Ue,Se,Oe)=>{se(),c({width:parseInt(le+Oe.width,10),height:parseInt(ve+Oe.height,10)})},children:ce});let Lt=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",jt=(0,gl.createInterpolateElement)((0,io.__)("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,Ae.jsx)("a",{href:Lt,target:"_blank",rel:"noopener"})});return(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(Ar.InspectorControls,{children:(0,Ae.jsxs)(Bt.__experimentalToolsPanel,{label:(0,io.__)("Settings"),dropdownMenuProps:V,children:[(0,Ae.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,io.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,Ae.jsx)(Bt.RangeControl,{__next40pxDefaultSize:!0,label:(0,io.__)("Image width"),onChange:ae=>c({width:ae}),min:Ne,max:Be,initialPosition:Math.min(Ee,Be),value:r||"",disabled:!_})}),(0,Ae.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,io.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,Ae.jsx)(Bt.ToggleControl,{label:(0,io.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,Ae.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,io.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,Ae.jsx)(Bt.ToggleControl,{label:(0,io.__)("Open in new tab"),onChange:ae=>c({linkTarget:ae?"_blank":"_self"}),checked:i==="_blank"})}),g&&(0,Ae.jsx)(Bt.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,io.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),h(void 0)},children:(0,Ae.jsx)(Bt.ToggleControl,{label:(0,io.__)("Use as Site Icon"),onChange:ae=>{c({shouldSyncIcon:ae}),h(ae?d:void 0)},checked:!!l,help:jt})})]})}),J&&!C&&re&&(0,Ae.jsx)(Ar.BlockControls,{group:"block",children:(0,Ae.jsx)(Bt.ToolbarButton,{ref:P,onClick:Y&&d?()=>Y({id:d,onUpdate:O,onClose:()=>P.current?.focus()}):()=>E(!0),"aria-haspopup":Y&&d?"dialog":void 0,icon:Tp,label:(0,io.__)("Crop")})}),Me]})};function Ise({attributes:e,className:t,setAttributes:r,isSelected:o}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p}=(0,Qm.useSelect)(O=>{let{canUser:te,getEntityRecord:se,getEditedEntityRecord:Q}=O(Kg.store),ce=te("update",{kind:"root",name:"site"}),Ee=ce?Q("root","site"):void 0,le=se("root","__unstableBase"),ee=ce?Ee?.site_logo:le?.site_logo,ve=Ee?.site_icon,Ne=ee&&O(Kg.store).getEntityRecord("postType","attachment",ee,{context:"view"}),Re=!!ee&&!O(Kg.store).hasFinishedResolution("getEntityRecord",["postType","attachment",ee,{context:"view"}]);return{siteLogoId:ee,canUserEdit:ce,url:le?.home,mediaItemData:Ne,isRequestingMediaItem:Re,siteIconId:ve}},[]),{getSettings:d}=(0,Qm.useSelect)(Ar.store),[f,h]=(0,gl.useState)(),g=q(),{editEntityRecord:b}=(0,Qm.useDispatch)(Kg.store),y=(O,te=!1)=>{(i||te)&&_(O),b("root","site",void 0,{site_logo:O})},_=O=>b("root","site",void 0,{site_icon:O??null}),{alt_text:x,source_url:k}=m??{},S=O=>{if(i===void 0){let te=!u;r({shouldSyncIcon:te}),C(O,te);return}C(O)},C=(O,te=!1)=>{if(O){if(!O.id&&O.url){h(O.url),y(void 0);return}y(O.id,te)}},E=()=>{y(null),r({width:void 0})},{createErrorNotice:P}=(0,Qm.useDispatch)(Nse.store),N=O=>{P(O,{type:"snackbar"}),h()},z=O=>{d().mediaUpload({allowedTypes:K6,filesList:O,onFileChange([te]){if((0,pA.isBlobURL)(te?.url)){h(te.url);return}S(te)},onError:N,multiple:!1})},V={mediaURL:k,name:k?(0,io.__)("Replace"):(0,io.__)("Choose logo"),onSelect:C,onError:N,onReset:E},A=s&&(0,Ae.jsx)(Ar.BlockControls,{group:"other",children:(0,Ae.jsx)(Ar.MediaReplaceFlow,{...V,allowedTypes:K6,variant:"toolbar"})}),M,L=l===void 0||p;L&&(M=(0,Ae.jsx)(Bt.Spinner,{})),(0,gl.useEffect)(()=>{k&&f&&h()},[k,f]),(k||f)&&(M=(0,Ae.jsxs)(Ae.Fragment,{children:[(0,Ae.jsx)(C6e,{alt:x,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||k,setLogo:y,logoId:m?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,Ae.jsx)(Bt.DropZone,{onFilesDrop:z})]}));let U=O=>{let te=w("block-editor-media-placeholder",t);return(0,Ae.jsx)(Bt.Placeholder,{className:te,preview:M,withIllustration:!0,style:{width:n},children:O})},H=w(t,{"is-default-size":!n,"is-transient":f}),G=(0,Ar.useBlockProps)({className:H}),Y=(s||k)&&(0,Ae.jsx)(Ar.InspectorControls,{children:(0,Ae.jsx)(Bt.__experimentalToolsPanel,{label:(0,io.__)("Media"),dropdownMenuProps:g,children:s?(0,Ae.jsx)(Bt.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,io.__)("Logo"),isShownByDefault:!0,children:(0,Ae.jsx)(Iw,{mediaId:l,mediaUrl:k,filename:m?.media_details?.sizes?.full?.file||m?.slug,allowedTypes:K6,onSelect:C,onError:N,onReset:E,isUploading:!!f,emptyLabel:(0,io.__)("Logo")})}):(0,Ae.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,Ae.jsx)(oD,{url:m?.source_url,filename:m?.media_details?.sizes?.full?.file||m?.slug,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"},className:"block-library-site-logo__inspector-media-replace-title"})})})});return(0,Ae.jsxs)("div",{...G,children:[A,Y,(!!k||!!f)&&M,(L||!f&&!k&&!s)&&(0,Ae.jsx)(Bt.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:L&&(0,Ae.jsx)("span",{className:"components-placeholder__preview",children:(0,Ae.jsx)(Bt.Spinner,{})})}),!L&&!f&&!k&&s&&(0,Ae.jsx)(Ar.MediaPlaceholder,{onSelect:S,allowedTypes:K6,onError:N,placeholder:U,mediaLibraryButton:({open:O})=>(0,Ae.jsx)(Bt.Button,{__next40pxDefaultSize:!0,icon:Ac,variant:"primary",label:(0,io.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{O()}})})]})}var Dse=a($(),1),S6e={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,Dse.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},Lse=S6e;var{name:Mse}=Z6,Ase={icon:DB,example:{},edit:Ise,transforms:Lse},T6e=()=>I({name:Mse,metadata:Z6,settings:Ase});var gA={};Z(gA,{init:()=>N6e,metadata:()=>Y6,name:()=>Fse,settings:()=>Hse});var Y6={$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 X6=a(F(),1),fA=a(X(),1),Xm=a(T(),1),Q6=a(B(),1),J6=a($(),1);var Tu=a(v(),1);function Rse(e){vt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i}=t,{canUserEdit:l,tagline:s}=(0,X6.useSelect)(f=>{let{canUser:h,getEntityRecord:g,getEditedEntityRecord:b}=f(fA.store),y=h("update",{kind:"root",name:"site"}),_=y?b("root","site"):{},x=g("root","__unstableBase");return{canUserEdit:y,tagline:y?_?.description:x?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,X6.useDispatch)(fA.store);function m(f){u("root","site",void 0,{description:f})}let p=(0,Xm.useBlockProps)({className:!l&&!s&&"wp-block-site-tagline__placeholder"}),d=l?(0,Tu.jsx)(Xm.RichText,{allowedFormats:[],onChange:m,"aria-label":(0,Q6.__)("Site tagline text"),placeholder:(0,Q6.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,J6.createBlock)((0,J6.getDefaultBlockName)())),...p}):(0,Tu.jsx)(c,{...p,children:s||(0,Q6.__)("Site Tagline placeholder")});return(0,Tu.jsxs)(Tu.Fragment,{children:[(0,Tu.jsx)(Xm.BlockControls,{group:"block",children:(0,Tu.jsx)(Xm.HeadingLevelDropdown,{value:n,options:i,onChange:f=>r({level:f})})}),d]})}var eS=a(R(),1),hA=a(v(),1),zse=(0,hA.jsx)(eS.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,hA.jsx)(eS.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var B6e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},E6e={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:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},Vse=[B6e,E6e];var{name:Fse}=Y6,Hse={icon:zse,edit:Rse,deprecated:Vse},N6e=()=>I({name:Fse,metadata:Y6,settings:Hse});var yA={};Z(yA,{init:()=>A6e,metadata:()=>tS,name:()=>Wse,settings:()=>$se});var tS={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it\u2019s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:500},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var rS=a(F(),1),vA=a(X(),1),bc=a(B(),1),vl=a(T(),1),Jm=a(R(),1),oS=a($(),1),bA=a(Oo(),1);var Mo=a(v(),1);function Ose(e){vt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i,isLink:l,linkTarget:s}=t,{canUserEdit:c,title:u}=(0,rS.useSelect)(y=>{let{canUser:_,getEntityRecord:x,getEditedEntityRecord:k}=y(vA.store),S=_("update",{kind:"root",name:"site"}),C=S?k("root","site"):{},E=x("root","__unstableBase");return{canUserEdit:S,title:S?C?.title:E?.name}},[]),{editEntityRecord:m}=(0,rS.useDispatch)(vA.store),p=q(),d=(0,vl.useBlockEditingMode)();function f(y){m("root","site",void 0,{title:y.trim()})}let h=n===0?"p":`h${n}`,g=(0,vl.useBlockProps)({className:!c&&!u&&"wp-block-site-title__placeholder"}),b=c?(0,Mo.jsx)(h,{...g,children:(0,Mo.jsx)(vl.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,bc.__)("Site title text"),placeholder:(0,bc.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,oS.createBlock)((0,oS.getDefaultBlockName)()))})}):(0,Mo.jsx)(h,{...g,children:l?(0,Mo.jsx)("a",{href:"#site-title-pseudo-link",onClick:y=>y.preventDefault(),children:(0,bA.decodeEntities)(u)||(0,bc.__)("Site Title placeholder")}):(0,Mo.jsx)("span",{children:(0,bA.decodeEntities)(u)||(0,bc.__)("Site Title placeholder")})});return(0,Mo.jsxs)(Mo.Fragment,{children:[d==="default"&&(0,Mo.jsx)(vl.BlockControls,{group:"block",children:(0,Mo.jsx)(vl.HeadingLevelDropdown,{value:n,options:i,onChange:y=>r({level:y})})}),(0,Mo.jsx)(vl.InspectorControls,{children:(0,Mo.jsxs)(Jm.__experimentalToolsPanel,{label:(0,bc.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Mo.jsx)(Jm.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,bc.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,Mo.jsx)(Jm.ToggleControl,{label:(0,bc.__)("Make title link to home"),onChange:()=>r({isLink:!l}),checked:l})}),l&&(0,Mo.jsx)(Jm.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,bc.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,Mo.jsx)(Jm.ToggleControl,{label:(0,bc.__)("Open in new tab"),onChange:y=>r({linkTarget:y?"_blank":"_self"}),checked:s==="_blank"})})]})}),b]})}var D6e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},L6e={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:Ut,isEligible({style:e}){return e?.typography?.fontFamily}},jse=[D6e,L6e];var Use=a($(),1),M6e={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Use.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},Gse=M6e;var{name:Wse}=tS,$se={icon:rP,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:Ose,transforms:Gse,deprecated:jse},A6e=()=>I({name:Wse,metadata:tS,settings:$se});var gR={};Z(gR,{init:()=>O6e,metadata:()=>JS,name:()=>qce,settings:()=>e8});var hR=a(B(),1);var $ce=a($(),1);var Yg=a(Ds(),1),XS=a(F(),1),cn=a(T(),1),uf=a(j(),1),lo=a(R(),1),Oce=a(fe(),1),On=a(B(),1);var jce=a($(),1);var fR=a(B(),1);var aS=a(D(),1),_A=a(v(),1),qse=()=>(0,_A.jsx)(aS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_A.jsx)(aS.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 nS=a(D(),1),xA=a(v(),1),Zse=()=>(0,xA.jsx)(nS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xA.jsx)(nS.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var iS=a(D(),1),kA=a(v(),1),Kse=()=>(0,kA.jsx)(iS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kA.jsx)(iS.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 lS=a(D(),1),wA=a(v(),1),Yse=()=>(0,wA.jsx)(lS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wA.jsx)(lS.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 sS=a(D(),1),CA=a(v(),1),ay=()=>(0,CA.jsx)(sS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CA.jsx)(sS.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 cS=a(D(),1),SA=a(v(),1),Qse=()=>(0,SA.jsx)(cS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SA.jsx)(cS.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 uS=a(D(),1),TA=a(v(),1),Xse=()=>(0,TA.jsx)(uS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TA.jsx)(uS.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 mS=a(D(),1),PA=a(v(),1),Jse=()=>(0,PA.jsx)(mS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PA.jsx)(mS.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 pS=a(D(),1),BA=a(v(),1),ece=()=>(0,BA.jsx)(pS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BA.jsx)(pS.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 dS=a(D(),1),EA=a(v(),1),tce=()=>(0,EA.jsx)(dS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EA.jsx)(dS.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 fS=a(D(),1),NA=a(v(),1),rce=()=>(0,NA.jsx)(fS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NA.jsx)(fS.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 hS=a(D(),1),IA=a(v(),1),oce=()=>(0,IA.jsx)(hS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IA.jsx)(hS.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 gS=a(D(),1),DA=a(v(),1),ace=()=>(0,DA.jsx)(gS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DA.jsx)(gS.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 vS=a(D(),1),LA=a(v(),1),nce=()=>(0,LA.jsx)(vS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LA.jsx)(vS.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 bS=a(D(),1),MA=a(v(),1),ice=()=>(0,MA.jsx)(bS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MA.jsx)(bS.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 yS=a(D(),1),AA=a(v(),1),lce=()=>(0,AA.jsx)(yS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AA.jsx)(yS.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 _S=a(D(),1),RA=a(v(),1),sce=()=>(0,RA.jsx)(_S.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RA.jsx)(_S.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 xS=a(D(),1),zA=a(v(),1),cce=()=>(0,zA.jsx)(xS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zA.jsx)(xS.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 kS=a(D(),1),VA=a(v(),1),uce=()=>(0,VA.jsx)(kS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VA.jsx)(kS.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 wS=a(D(),1),FA=a(v(),1),mce=()=>(0,FA.jsx)(wS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FA.jsx)(wS.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 CS=a(D(),1),HA=a(v(),1),pce=()=>(0,HA.jsx)(CS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HA.jsx)(CS.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 SS=a(D(),1),OA=a(v(),1),dce=()=>(0,OA.jsx)(SS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OA.jsx)(SS.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 TS=a(D(),1),jA=a(v(),1),fce=()=>(0,jA.jsx)(TS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jA.jsx)(TS.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 PS=a(D(),1),UA=a(v(),1),hce=()=>(0,UA.jsx)(PS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UA.jsx)(PS.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 BS=a(D(),1),GA=a(v(),1),gce=()=>(0,GA.jsx)(BS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GA.jsx)(BS.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 ES=a(D(),1),WA=a(v(),1),vce=()=>(0,WA.jsx)(ES.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WA.jsx)(ES.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 NS=a(D(),1),$A=a(v(),1),bce=()=>(0,$A.jsx)(NS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$A.jsx)(NS.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 IS=a(D(),1),qA=a(v(),1),yce=()=>(0,qA.jsx)(IS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qA.jsx)(IS.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 DS=a(D(),1),ZA=a(v(),1),_ce=()=>(0,ZA.jsx)(DS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZA.jsx)(DS.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 LS=a(D(),1),KA=a(v(),1),xce=()=>(0,KA.jsx)(LS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KA.jsx)(LS.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 MS=a(D(),1),YA=a(v(),1),kce=()=>(0,YA.jsx)(MS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YA.jsx)(MS.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 AS=a(D(),1),QA=a(v(),1),wce=()=>(0,QA.jsx)(AS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QA.jsx)(AS.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 RS=a(D(),1),XA=a(v(),1),Cce=()=>(0,XA.jsx)(RS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XA.jsx)(RS.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 zS=a(D(),1),JA=a(v(),1),Sce=()=>(0,JA.jsx)(zS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JA.jsx)(zS.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 VS=a(D(),1),eR=a(v(),1),Tce=()=>(0,eR.jsx)(VS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eR.jsx)(VS.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 FS=a(D(),1),tR=a(v(),1),Pce=()=>(0,tR.jsx)(FS.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,tR.jsx)(FS.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 HS=a(D(),1),rR=a(v(),1),Bce=()=>(0,rR.jsx)(HS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rR.jsx)(HS.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 OS=a(D(),1),oR=a(v(),1),Ece=()=>(0,oR.jsx)(OS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oR.jsx)(OS.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 jS=a(D(),1),aR=a(v(),1),Nce=()=>(0,aR.jsx)(jS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aR.jsx)(jS.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 US=a(D(),1),nR=a(v(),1),Ice=()=>(0,nR.jsx)(US.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nR.jsx)(US.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 GS=a(D(),1),iR=a(v(),1),Dce=()=>(0,iR.jsx)(GS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iR.jsx)(GS.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 WS=a(D(),1),lR=a(v(),1),Lce=()=>(0,lR.jsx)(WS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lR.jsx)(WS.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 $S=a(D(),1),sR=a(v(),1),Mce=()=>(0,sR.jsx)($S.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sR.jsx)($S.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 qS=a(D(),1),cR=a(v(),1),Ace=()=>(0,cR.jsx)(qS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,cR.jsx)(qS.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 ZS=a(D(),1),uR=a(v(),1),Rce=()=>(0,uR.jsx)(ZS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,uR.jsx)(ZS.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 KS=a(D(),1),mR=a(v(),1),zce=()=>(0,mR.jsx)(KS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,mR.jsx)(KS.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 YS=a(D(),1),pR=a(v(),1),Vce=()=>(0,pR.jsx)(YS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,pR.jsx)(YS.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 QS=a(D(),1),dR=a(v(),1),Fce=()=>(0,dR.jsx)(QS.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,dR.jsx)(QS.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 Hce(e){return e?.name?{icon:e?.icon??ay,label:e?.title??(0,fR.__)("Social Icon")}:{icon:ay,label:(0,fR.__)("Social Icon")}}var Yt=a(v(),1),R6e=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:n})=>{let{removeBlock:i}=(0,XS.useDispatch)(cn.store);return(0,Yt.jsx)(cn.URLPopover,{anchor:o,"aria-label":(0,On.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,Yt.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),r(!1),o?.focus()},children:(0,Yt.jsx)("div",{className:"block-editor-url-input",children:(0,Yt.jsx)(cn.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,On.__)("Enter social link"),label:(0,On.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![Yg.BACKSPACE,Yg.DELETE].includes(l.keyCode)||i(n)},suffix:(0,Yt.jsx)(lo.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Yt.jsx)(lo.Button,{icon:WT,label:(0,On.__)("Apply"),type:"submit",size:"small"})})})})})})},z6e=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,m=q(),{showLabels:p,iconColor:d,iconColorValue:f,iconBackgroundColor:h,iconBackgroundColorValue:g}=t,[b,y]=(0,uf.useState)(!1),_=w("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${h}-background-color`]:h}),[x,k]=(0,uf.useState)(null),S=(0,cn.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,XS.useSelect)(A=>{let{getActiveBlockVariation:M}=A(jce.store);return{activeVariation:M(i,e)}},[i,e]),{icon:E,label:P}=Hce(C),N=c.trim()===""?P:c,z=(0,uf.useRef)(),V=(0,cn.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,Oce.useMergeRefs)([k,z]),onClick:()=>y(!0),onKeyDown:A=>{A.keyCode===Yg.ENTER&&(A.preventDefault(),y(!0))}});return(0,Yt.jsxs)(Yt.Fragment,{children:[S&&p&&(0,Yt.jsx)(cn.BlockControls,{group:"other",children:(0,Yt.jsx)(lo.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:A,onToggle:M})=>(0,Yt.jsx)(lo.ToolbarButton,{onClick:M,"aria-haspopup":"true","aria-expanded":A,children:(0,On.__)("Text")}),renderContent:()=>(0,Yt.jsx)(lo.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,On.__)("Text"),help:(0,On.__)("Provide a text label or use the default."),value:c,onChange:A=>o({label:A}),placeholder:P})})}),(0,Yt.jsx)(cn.InspectorControls,{children:(0,Yt.jsx)(lo.__experimentalToolsPanel,{label:(0,On.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:m,children:(0,Yt.jsx)(lo.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,On.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,Yt.jsx)(lo.TextControl,{label:(0,On.__)("Text"),help:(0,On.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:A=>o({label:A}),placeholder:P})})})}),(0,Yt.jsx)(cn.InspectorControls,{group:"advanced",children:(0,Yt.jsx)(lo.TextControl,{label:(0,On.__)("Link relation"),help:(0,uf.createInterpolateElement)((0,On.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Yt.jsx)(lo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:A=>o({rel:A})})}),(0,Yt.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:g},children:[(0,Yt.jsxs)("button",{"aria-haspopup":"dialog",...V,role:"button",children:[(0,Yt.jsx)(lo.Icon,{icon:E}),(0,Yt.jsx)("span",{className:w("wp-block-social-link-label",{"screen-reader-text":!p}),children:N})]}),r&&b&&(0,Yt.jsx)(R6e,{url:l,setAttributes:o,setPopover:y,popoverAnchor:x,clientId:n})]})]})},Uce=z6e;var JS={$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 De=a(B(),1);var Gce=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,De._x)("WordPress","social link block variation name"),icon:Rce},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,De._x)("500px","social link block variation name"),icon:nce},{name:"amazon",attributes:{service:"amazon"},title:(0,De._x)("Amazon","social link block variation name"),icon:qse},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,De._x)("Bandcamp","social link block variation name"),icon:Zse},{name:"behance",attributes:{service:"behance"},title:(0,De._x)("Behance","social link block variation name"),icon:Kse},{name:"bluesky",attributes:{service:"bluesky"},title:(0,De._x)("Bluesky","social link block variation name"),icon:Yse},{name:"chain",attributes:{service:"chain"},title:(0,De._x)("Link","social link block variation name"),icon:ay},{name:"codepen",attributes:{service:"codepen"},title:(0,De._x)("CodePen","social link block variation name"),icon:Qse},{name:"deviantart",attributes:{service:"deviantart"},title:(0,De._x)("DeviantArt","social link block variation name"),icon:Xse},{name:"discord",attributes:{service:"discord"},title:(0,De._x)("Discord","social link block variation name"),icon:Jse},{name:"dribbble",attributes:{service:"dribbble"},title:(0,De._x)("Dribbble","social link block variation name"),icon:ece},{name:"dropbox",attributes:{service:"dropbox"},title:(0,De._x)("Dropbox","social link block variation name"),icon:tce},{name:"etsy",attributes:{service:"etsy"},title:(0,De._x)("Etsy","social link block variation name"),icon:rce},{name:"facebook",attributes:{service:"facebook"},title:(0,De._x)("Facebook","social link block variation name"),icon:oce},{name:"feed",attributes:{service:"feed"},title:(0,De._x)("RSS Feed","social link block variation name"),icon:ace},{name:"flickr",attributes:{service:"flickr"},title:(0,De._x)("Flickr","social link block variation name"),icon:ice},{name:"foursquare",attributes:{service:"foursquare"},title:(0,De._x)("Foursquare","social link block variation name"),icon:lce},{name:"goodreads",attributes:{service:"goodreads"},title:(0,De._x)("Goodreads","social link block variation name"),icon:sce},{name:"google",attributes:{service:"google"},title:(0,De._x)("Google","social link block variation name"),icon:cce},{name:"github",attributes:{service:"github"},title:(0,De._x)("GitHub","social link block variation name"),icon:uce},{name:"gravatar",attributes:{service:"gravatar"},title:(0,De._x)("Gravatar","social link block variation name"),icon:mce},{name:"instagram",attributes:{service:"instagram"},title:(0,De._x)("Instagram","social link block variation name"),icon:pce},{name:"lastfm",attributes:{service:"lastfm"},title:(0,De._x)("Last.fm","social link block variation name"),icon:dce},{name:"linkedin",attributes:{service:"linkedin"},title:(0,De._x)("LinkedIn","social link block variation name"),icon:fce},{name:"mail",attributes:{service:"mail"},title:(0,De._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:hce},{name:"mastodon",attributes:{service:"mastodon"},title:(0,De._x)("Mastodon","social link block variation name"),icon:gce},{name:"meetup",attributes:{service:"meetup"},title:(0,De._x)("Meetup","social link block variation name"),icon:vce},{name:"medium",attributes:{service:"medium"},title:(0,De._x)("Medium","social link block variation name"),icon:bce},{name:"patreon",attributes:{service:"patreon"},title:(0,De._x)("Patreon","social link block variation name"),icon:yce},{name:"pinterest",attributes:{service:"pinterest"},title:(0,De._x)("Pinterest","social link block variation name"),icon:_ce},{name:"pocket",attributes:{service:"pocket"},title:(0,De._x)("Pocket","social link block variation name"),icon:xce},{name:"reddit",attributes:{service:"reddit"},title:(0,De._x)("Reddit","social link block variation name"),icon:kce},{name:"skype",attributes:{service:"skype"},title:(0,De._x)("Skype","social link block variation name"),icon:wce,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,De._x)("Snapchat","social link block variation name"),icon:Cce},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,De._x)("SoundCloud","social link block variation name"),icon:Sce},{name:"spotify",attributes:{service:"spotify"},title:(0,De._x)("Spotify","social link block variation name"),icon:Tce},{name:"telegram",attributes:{service:"telegram"},title:(0,De._x)("Telegram","social link block variation name"),icon:Pce},{name:"threads",attributes:{service:"threads"},title:(0,De._x)("Threads","social link block variation name"),icon:Bce},{name:"tiktok",attributes:{service:"tiktok"},title:(0,De._x)("TikTok","social link block variation name"),icon:Ece},{name:"tumblr",attributes:{service:"tumblr"},title:(0,De._x)("Tumblr","social link block variation name"),icon:Nce},{name:"twitch",attributes:{service:"twitch"},title:(0,De._x)("Twitch","social link block variation name"),icon:Ice},{name:"twitter",attributes:{service:"twitter"},title:(0,De._x)("Twitter","social link block variation name"),icon:Dce},{name:"vimeo",attributes:{service:"vimeo"},title:(0,De._x)("Vimeo","social link block variation name"),icon:Lce},{name:"vk",attributes:{service:"vk"},title:(0,De._x)("VK","social link block variation name"),icon:Mce},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,De._x)("WhatsApp","social link block variation name"),icon:Ace},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,De._x)("X","social link block variation name"),icon:zce},{name:"yelp",attributes:{service:"yelp"},title:(0,De._x)("Yelp","social link block variation name"),icon:Vce},{name:"youtube",attributes:{service:"youtube"},title:(0,De._x)("YouTube","social link block variation name"),icon:Fce}];Gce.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var Wce=Gce;var{fieldsKey:F6e,formKey:H6e}=W($ce.privateApis),{name:qce}=JS,e8={icon:C1,edit:Uce,variations:Wce};window.__experimentalContentOnlyInspectorFields&&(e8[F6e]=[{id:"link",label:(0,hR.__)("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,hR.__)("Label"),type:"text"}],e8[H6e]={fields:["link","label"]});var O6e=()=>I({name:qce,metadata:JS,settings:e8});var bR={};Z(bR,{init:()=>Z6e,metadata:()=>r8,name:()=>eue,settings:()=>tue});var t8=a(T(),1),vR=a(v(),1),j6e=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},U6e=[{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:j6e,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,itemsJustification:o,size:n}}=e,i=w(n,{"has-icon-color":r,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":r,"--wp--social-links--icon-background-color":t};return(0,vR.jsx)("ul",{...t8.useBlockProps.save({className:i,style:l}),children:(0,vR.jsx)(t8.InnerBlocks.Content,{})})}}],Zce=U6e;var Kce=a(j(),1),wo=a(T(),1),fs=a(R(),1),un=a(B(),1),Yce=a(F(),1);var ia=a(v(),1),G6e=[{label:(0,un.__)("Default"),value:""},{label:(0,un.__)("Small"),value:"has-small-icon-size"},{label:(0,un.__)("Normal"),value:"has-normal-icon-size"},{label:(0,un.__)("Large"),value:"has-large-icon-size"},{label:(0,un.__)("Huge"),value:"has-huge-icon-size"}];function W6e(e){let{clientId:t,attributes:r,iconBackgroundColor:o,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:p,showLabels:d,size:f}=r,{hasSocialIcons:h,hasSelectedChild:g}=(0,Yce.useSelect)(P=>{let{getBlockCount:N,hasSelectedInnerBlock:z}=P(wo.store);return{hasSocialIcons:N(t)>0,hasSelectedChild:z(t)}},[t]),b=i||g,y=r.className?.includes("is-style-logos-only"),_=q();(0,Kce.useEffect)(()=>{if(y){let P;return l(N=>(P={iconBackgroundColor:N.iconBackgroundColor,iconBackgroundColorValue:N.iconBackgroundColorValue,customIconBackgroundColor:N.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...P})}},[y,l]);let x=w(f,{"has-visible-labels":d,"has-icon-color":n.color||m,"has-icon-background-color":o.color||u}),k=(0,wo.useBlockProps)({className:x}),S=(0,wo.useInnerBlocksProps)(k,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!h||b?wo.InnerBlocks.ButtonBlockAppender:void 0}),C=[{value:n.color||m,onChange:P=>{c(P),l({iconColorValue:P})},label:(0,un.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];y||C.push({value:o.color||u,onChange:P=>{s(P),l({iconBackgroundColorValue:P})},label:(0,un.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let E=(0,wo.__experimentalUseMultipleOriginColorsAndGradients)();return(0,ia.jsxs)(ia.Fragment,{children:[(0,ia.jsx)(wo.InspectorControls,{children:(0,ia.jsxs)(fs.__experimentalToolsPanel,{label:(0,un.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:_,children:[(0,ia.jsx)(fs.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,un.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,ia.jsx)(fs.SelectControl,{__next40pxDefaultSize:!0,label:(0,un.__)("Icon size"),onChange:P=>{l({size:P===""?void 0:P})},value:f??"",options:G6e})}),(0,ia.jsx)(fs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,un.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,ia.jsx)(fs.ToggleControl,{label:(0,un.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,ia.jsx)(fs.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,un.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>l({openInNewTab:!1}),children:(0,ia.jsx)(fs.ToggleControl,{label:(0,un.__)("Open links in new tab"),checked:p,onChange:()=>l({openInNewTab:!p})})})]})}),E.hasColorsOrGradients&&(0,ia.jsxs)(wo.InspectorControls,{group:"color",children:[C.map(({onChange:P,label:N,value:z,resetAllFilter:V})=>(0,ia.jsx)(wo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:z,label:N,onColorChange:P,isShownByDefault:!0,resetAllFilter:V,enableAlpha:!0,clearable:!0}],panelId:t,...E},`social-links-color-${N}`)),!y&&(0,ia.jsx)(wo.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})]}),(0,ia.jsx)("ul",{...S})]})}var $6e={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},Qce=(0,wo.withColors)($6e)(W6e);var r8={$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 o8=a(T(),1),Xce=a(v(),1);function Jce(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:r,showLabels:o,size:n}}=e,i=w(n,{"has-visible-labels":o,"has-icon-color":r,"has-icon-background-color":t}),l=o8.useBlockProps.save({className:i}),s=o8.useInnerBlocksProps.save(l);return(0,Xce.jsx)("ul",{...s})}var{name:eue}=r8,tue={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:C1,edit:Qce,save:Jce,deprecated:Zce},Z6e=()=>I({name:eue,metadata:r8,settings:tue});var yR={};Z(yR,{init:()=>tSe,metadata:()=>n8,name:()=>vue,settings:()=>bue});var rue=a(T(),1),oue=a(v(),1),K6e=[{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,oue.jsx)("div",{...rue.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],aue=K6e;var la=a(T(),1),uue=a(R(),1),Xg=a(j(),1),mue=a(D(),1),a8=a(F(),1);var Qg=a(B(),1),yc=a(T(),1),bl=a(R(),1),iue=a(fe(),1),lue=a(D(),1);var ny=0;var jn=a(v(),1),{useSpacingSizes:Y6e}=W(yc.privateApis);function nue({label:e,onChange:t,isResizing:r,value:o=""}){let n=(0,iue.useInstanceId)(bl.__experimentalUnitControl,"block-spacer-height-input"),i=Y6e(),[l]=(0,yc.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,bl.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,m]=(0,bl.__experimentalParseQuantityAndUnitFromRawValue)(o),p=(0,yc.isValueSpacingPreset)(o)?o:[u,r?"px":m].join("");return(0,jn.jsx)(jn.Fragment,{children:i?.length<2?(0,jn.jsx)(bl.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:ny,onChange:t,value:p,units:c,label:e,__next40pxDefaultSize:!0}):(0,jn.jsx)(lue.View,{className:"tools-panel-item-spacing",children:(0,jn.jsx)(yc.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function sue({setAttributes:e,orientation:t,height:r,width:o,isResizing:n}){let i=q();return(0,jn.jsx)(yc.InspectorControls,{children:(0,jn.jsxs)(bl.__experimentalToolsPanel,{label:(0,Qg.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,jn.jsx)(bl.__experimentalToolsPanelItem,{label:(0,Qg.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,jn.jsx)(nue,{label:(0,Qg.__)("Width"),value:o,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,jn.jsx)(bl.__experimentalToolsPanelItem,{label:(0,Qg.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,jn.jsx)(nue,{label:(0,Qg.__)("Height"),value:r,onChange:l=>e({height:l}),isResizing:n})})]})})}var yl=a(v(),1),{useSpacingSizes:Q6e}=W(la.privateApis),cue=({orientation:e,onResizeStart:t,onResize:r,onResizeStop:o,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=m=>e==="horizontal"?m.clientWidth:m.clientHeight,u=m=>`${c(m)}px`;return(0,yl.jsx)(uue.ResizableBox,{className:w("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(m,p,d)=>{let f=u(d);t(f),r(f)},onResize:(m,p,d)=>{r(u(d)),i||l(!0)},onResizeStop:(m,p,d)=>{let f=c(d);o(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},X6e=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,a8.useSelect)(Q=>Q(la.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:m,default:{type:p}={}}=i||{},d=m==="flex"||!m&&p==="flex",f=!u&&d?"horizontal":u||c,{height:h,width:g,style:b={}}=e,{layout:y={}}=b,{selfStretch:_,flexSize:x}=y,k=Q6e(),[S,C]=(0,Xg.useState)(!1),[E,P]=(0,Xg.useState)(null),[N,z]=(0,Xg.useState)(null),V=()=>o(!1),A=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:M}=(0,a8.useDispatch)(la.store),L=Q=>{A(),d&&r({style:{...b,layout:{...y,flexSize:Q,selfStretch:"fixed"}}}),r({height:Q}),P(null)},U=Q=>{A(),d&&r({style:{...b,layout:{...y,flexSize:Q,selfStretch:"fixed"}}}),r({width:Q}),z(null)},H=()=>{if(!d)return E||(0,la.getSpacingPresetCssVar)(h)||void 0},G=()=>{if(!d)return N||(0,la.getSpacingPresetCssVar)(g)||void 0},Y=f==="horizontal"?N||x:E||x,O={height:f==="horizontal"?24:H(),width:f==="horizontal"?G():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?Y:void 0,flexGrow:d&&S?0:void 0},te=Q=>Q==="horizontal"?(0,yl.jsx)(cue,{minWidth:ny,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Q,onResizeStart:V,onResize:z,onResizeStop:U,isSelected:t,isResizing:S,setIsResizing:C}):(0,yl.jsx)(yl.Fragment,{children:(0,yl.jsx)(cue,{minHeight:ny,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Q,onResizeStart:V,onResize:P,onResizeStop:L,isSelected:t,isResizing:S,setIsResizing:C})});(0,Xg.useEffect)(()=>{let Q=ce=>{M(),r(ce)};if(d&&_!=="fill"&&_!=="fit"&&x===void 0)if(f==="horizontal"){let ce=(0,la.getCustomValueFromPreset)(g,k)||(0,la.getCustomValueFromPreset)(h,k)||"100px";Q({width:"0px",style:{...b,layout:{...y,flexSize:ce,selfStretch:"fixed"}}})}else{let ce=(0,la.getCustomValueFromPreset)(h,k)||(0,la.getCustomValueFromPreset)(g,k)||"100px";Q({height:"0px",style:{...b,layout:{...y,flexSize:ce,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?Q(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||x)&&Q({...f==="horizontal"?{width:x}:{height:x},style:{...b,layout:{...y,flexSize:void 0,selfStretch:void 0}}})},[b,x,h,f,d,y,_,r,k,g,M]);let se=(0,la.useBlockEditingMode)();return(0,yl.jsxs)(yl.Fragment,{children:[(0,yl.jsx)(mue.View,{...(0,la.useBlockProps)({style:O,className:w(l,{"custom-sizes-disabled":s})}),children:se==="default"&&te(f)}),!d&&(0,yl.jsx)(sue,{setAttributes:r,height:E||h,width:N||g,orientation:f,isResizing:S})]})},pue=X6e;var n8={$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 due=a($(),1),eSe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,due.createBlock)("core/separator",{anchor:e||void 0})}]},fue=eSe;var iy=a(T(),1),hue=a(v(),1);function gue({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:n}={}}=o||{},i=n==="fill"||n==="fit"?void 0:t;return(0,hue.jsx)("div",{...iy.useBlockProps.save({style:{height:(0,iy.getSpacingPresetCssVar)(i),width:(0,iy.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:vue}=n8,bue={icon:bB,transforms:fue,edit:pue,save:gue,deprecated:aue},tSe=()=>I({name:vue,metadata:n8,settings:bue});var xR={};Z(xR,{init:()=>aSe,metadata:()=>b8,name:()=>Pue,settings:()=>Bue});var wue=a(B(),1),mf=a(T(),1),f8=a(F(),1),h8=a(j(),1);var d8=a(T(),1),Jg=a(R(),1),p8=a(B(),1),xue=a(F(),1);var _R=a(B(),1),yue=a($(),1),ly=a(T(),1),l8=a(R(),1),s8=a(F(),1),i8=a(v(),1);function ep({tabsClientId:e}){let{insertBlock:t,updateBlockAttributes:r,selectBlock:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,s8.useDispatch)(ly.store),{tabPanelsClientId:i,tabCount:l,tabListClientId:s}=(0,s8.useSelect)(u=>{if(!e)return{tabPanelsClientId:null,tabCount:0,tabListClientId:null};let{getBlocks:m}=u(ly.store),p=m(e),d=p.find(h=>h.name==="core/tab-panels"),f=p.find(h=>h.name==="core/tab-list");return{tabPanelsClientId:d?.clientId||null,tabCount:d?.innerBlocks?.length||0,tabListClientId:f?.clientId||null}},[e]);return(0,i8.jsx)(ly.BlockControls,{group:"other",children:(0,i8.jsx)(l8.ToolbarGroup,{children:(0,i8.jsx)(l8.ToolbarButton,{className:"components-toolbar__control",onClick:()=>{if(!i)return;let u=(0,yue.createBlock)("core/tab-panel",{label:(0,_R.__)("Tab")});t(u,void 0,i,!1);let m=l;n(),r(e,{editorActiveTabIndex:m}),s&&o(s)},text:(0,_R.__)("Add tab")})})})}var sy=a(T(),1),u8=a(R(),1),_ue=a(B(),1),m8=a(F(),1),c8=a(v(),1);function tp({tabsClientId:e}){let{removeBlock:t,updateBlockAttributes:r,selectBlock:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,m8.useDispatch)(sy.store),{activeTabPanelClientId:i,tabCount:l,editorActiveTabIndex:s,tabListClientId:c}=(0,m8.useSelect)(p=>{if(!e)return{activeTabPanelClientId:null,tabCount:0,editorActiveTabIndex:0,tabListClientId:null};let{getBlocks:d,getBlockAttributes:f}=p(sy.store),h=f(e),g=h?.editorActiveTabIndex??h?.activeTabIndex??0,b=d(e),y=b.find(S=>S.name==="core/tab-panels"),_=b.find(S=>S.name==="core/tab-list"),x=y?.innerBlocks||[];return{activeTabPanelClientId:x[g]?.clientId||null,tabCount:x.length,editorActiveTabIndex:g,tabListClientId:_?.clientId||null}},[e]),u=()=>{if(!i||l<=1)return;let p=s>=l-1?l-2:s;n(),r(e,{editorActiveTabIndex:p}),t(i,!1),c&&o(c)},m=l<=1||!i;return(0,c8.jsx)(sy.BlockControls,{group:"other",children:(0,c8.jsx)(u8.ToolbarGroup,{children:(0,c8.jsx)(u8.ToolbarButton,{className:"components-toolbar__control",onClick:u,text:(0,_ue.__)("Remove tab"),disabled:m})})})}var hs=a(v(),1);function kue({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,xue.useDispatch)(d8.store),n=q();return(0,hs.jsxs)(hs.Fragment,{children:[(0,hs.jsx)(ep,{tabsClientId:e}),(0,hs.jsx)(tp,{tabsClientId:e}),(0,hs.jsx)(d8.InspectorControls,{children:(0,hs.jsx)(Jg.__experimentalToolsPanel,{label:(0,p8.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,hs.jsx)(Jg.__experimentalToolsPanelItem,{label:(0,p8.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,hs.jsx)(Jg.CheckboxControl,{label:(0,p8.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var g8=a(v(),1),rSe=[["core/paragraph",{placeholder:(0,wue.__)("Type / to choose a block")}]];function Cue({clientId:e,context:t,isSelected:r}){let o=t["core/tabs-activeTabIndex"],i=t["core/tabs-editorActiveTabIndex"]??o,{blockIndex:l,hasInnerBlocksSelected:s,tabsClientId:c}=(0,f8.useSelect)(b=>{let{getBlockRootClientId:y,getBlockIndex:_,hasSelectedInnerBlock:x}=b(mf.store),k=y(e),S=y(k),C=_(e),E=x(e,!0);return{blockIndex:C,hasInnerBlocksSelected:E,tabsClientId:S}},[e]),{updateBlockAttributes:u,__unstableMarkNextChangeAsNotPersistent:m}=(0,f8.useDispatch)(mf.store);(0,h8.useEffect)(()=>{(r||s)&&c&&i!==l&&(m(),u(c,{editorActiveTabIndex:l}))},[r,s,c,i,l,u,m]);let p=i===l,d=o===l,f=(0,h8.useMemo)(()=>!!(r||s||p),[r,s,p]),h=(0,mf.useBlockProps)({hidden:!f,tabIndex:f?0:-1}),g=(0,mf.useInnerBlocksProps)(h,{template:rSe});return(0,g8.jsxs)("section",{...g,children:[(0,g8.jsx)(kue,{tabsClientId:c,blockIndex:l,isDefaultTab:d}),f&&g.children]})}var v8=a(T(),1),Sue=a(v(),1);function Tue(){let e=v8.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=v8.useInnerBlocksProps.save(e);return(0,Sue.jsx)("section",{...t})}var b8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,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-activeTabIndex","core/tabs-editorActiveTabIndex","core/tabs-id"],supports:{anchor:!0,html:!1,color:{background:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,spacing:{blockGap:!0,padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0}},visibility:!1},providesContext:{"core/tab-label":"label"},style:"wp-block-tab-panel"};var{name:Pue}=b8,Bue={icon:UB,edit:Cue,save:Tue},aSe=()=>I({name:Pue,metadata:b8,settings:Bue});var wR={};Z(wR,{init:()=>lSe,metadata:()=>_8,name:()=>Lue,settings:()=>Mue});var e0=a(T(),1),Eue=a(F(),1),kR=a(B(),1);var rp=a(v(),1),nSe=[["core/tab-panel",{label:(0,kR.__)("Tab")}],["core/tab-panel",{label:(0,kR.__)("Tab")}]];function Nue({clientId:e}){let t=(0,e0.useBlockProps)(),r=(0,e0.useInnerBlocksProps)(t,{template:nSe,templateLock:!1,renderAppender:!1}),o=(0,Eue.useSelect)(n=>n(e0.store).getBlockRootClientId(e),[e]);return(0,rp.jsxs)(rp.Fragment,{children:[(0,rp.jsx)(ep,{tabsClientId:o}),(0,rp.jsx)(tp,{tabsClientId:o}),(0,rp.jsx)("div",{...r})]})}var y8=a(T(),1),Iue=a(v(),1);function Due(){let e=y8.useBlockProps.save(),t=y8.useInnerBlocksProps.save(e);return(0,Iue.jsx)("div",{...t})}var _8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab-panels",title:"Tab Panels",description:"Container for tab panel content in a tabbed interface.",category:"design",textdomain:"default",parent:["core/tabs"],allowedBlocks:["core/tab-panel"],supports:{html:!1,visibility:!1,lock:!1,color:{background:!0,text:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var{name:Lue}=_8,Mue={icon:q0,edit:Nue,save:Due},lSe=()=>I({name:Lue,metadata:_8,settings:Mue});var LR={};Z(LR,{init:()=>CSe,metadata:()=>x8,name:()=>que,settings:()=>Zue});var _c=a(B(),1);var tr=a(T(),1),ot=a(v(),1),Aue={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},CR={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"}},sSe={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:CR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:CR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:CR}}}},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 s=(0,tr.__experimentalGetColorClassesAndStyles)(e),c=(0,tr.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!tr.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,ot.jsx)(h,{children:f.map(({cells:g},b)=>(0,ot.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k,colspan:S,rowspan:C},E)=>{let P=w({[`has-text-align-${k}`]:k});return(0,ot.jsx)(tr.RichText.Content,{className:P||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0,colSpan:S,rowSpan:C},E)})},b))})};return(0,ot.jsxs)("figure",{...tr.useBlockProps.save(),children:[(0,ot.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,ot.jsx)(p,{type:"head",rows:r}),(0,ot.jsx)(p,{type:"body",rows:o}),(0,ot.jsx)(p,{type:"foot",rows:n})]}),m&&(0,ot.jsx)(tr.RichText.Content,{tagName:"figcaption",value:i,className:(0,tr.__experimentalGetElementClassName)("caption")})]})}},SR={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"}},cSe={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:SR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:SR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:SR}}}},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 s=(0,tr.__experimentalGetColorClassesAndStyles)(e),c=(0,tr.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!tr.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,ot.jsx)(h,{children:f.map(({cells:g},b)=>(0,ot.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k},S)=>{let C=w({[`has-text-align-${k}`]:k});return(0,ot.jsx)(tr.RichText.Content,{className:C||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0},S)})},b))})};return(0,ot.jsxs)("figure",{...tr.useBlockProps.save(),children:[(0,ot.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,ot.jsx)(p,{type:"head",rows:r}),(0,ot.jsx)(p,{type:"body",rows:o}),(0,ot.jsx)(p,{type:"foot",rows:n})]}),m&&(0,ot.jsx)(tr.RichText.Content,{tagName:"figcaption",value:i})]})}},TR={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"}},uSe={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:TR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:TR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:TR}}}},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:l}=e;if(!r.length&&!o.length&&!n.length)return null;let c=(0,tr.getColorClassName)("background-color",i),u=w(c,{"has-fixed-layout":t,"has-background":!!c}),m=!tr.RichText.isEmpty(l),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,ot.jsx)(h,{children:f.map(({cells:g},b)=>(0,ot.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k},S)=>{let C=w({[`has-text-align-${k}`]:k});return(0,ot.jsx)(tr.RichText.Content,{className:C||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0},S)})},b))})};return(0,ot.jsxs)("figure",{...tr.useBlockProps.save(),children:[(0,ot.jsxs)("table",{className:u===""?void 0:u,children:[(0,ot.jsx)(p,{type:"head",rows:r}),(0,ot.jsx)(p,{type:"body",rows:o}),(0,ot.jsx)(p,{type:"foot",rows:n})]}),m&&(0,ot.jsx)(tr.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Aue&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Aue[e.backgroundColor]}}})},PR={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},mSe={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:PR}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:PR}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:PR}}}},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 s=(0,tr.getColorClassName)("background-color",i),c=w(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:m,rows:p})=>{if(!p.length)return null;let d=`t${m}`;return(0,ot.jsx)(d,{children:p.map(({cells:f},h)=>(0,ot.jsx)("tr",{children:f.map(({content:g,tag:b,scope:y},_)=>(0,ot.jsx)(tr.RichText.Content,{tagName:b,value:g,scope:b==="th"?y:void 0},_))},h))})};return(0,ot.jsxs)("table",{className:c,children:[(0,ot.jsx)(u,{type:"head",rows:r}),(0,ot.jsx)(u,{type:"body",rows:o}),(0,ot.jsx)(u,{type:"foot",rows:n})]})}},Rue=[sSe,cSe,uSe,mSe];var Un=a(j(),1),Co=a(T(),1),kt=a(B(),1),qr=a(R(),1);var pSe=["align"];function zue({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function dSe(e){if(!op(e.head))return e.head[0];if(!op(e.body))return e.body[0];if(!op(e.foot))return e.foot[0]}function Vue(e,t,r){let{sectionName:o,rowIndex:n,columnIndex:i}=t;return e[o]?.[n]?.cells?.[i]?.[r]}function BR(e,t,r){if(!t)return e;let o=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(o).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((m,p)=>fSe({sectionName:l,columnIndex:p,rowIndex:u},t)?r(m):m)})]))}function fSe(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 ER(e,{sectionName:t,rowIndex:r,columnCount:o}){let n=dSe(e),i=o===void 0?n?.cells?.length:o;return i?{[t]:[...e[t].slice(0,r),{cells:Array.from({length:i}).map((l,s)=>{let c=n?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([m])=>pSe.includes(m))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function Fue(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,n)=>n!==r)}}function Hue(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])=>op(n)?[o,n]:[o,n.map(i=>jue(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function Oue(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])=>op(n)?[o,n]:[o,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function NR(e,t){if(!op(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return ER(e,{sectionName:t,rowIndex:0,columnCount:r})}function op(e){return!e||!e.length||e.every(jue)}function jue(e){return!(e.cells&&e.cells.length)}var ut=a(v(),1),hSe=[{icon:r9,title:(0,kt.__)("Align column left"),align:"left"},{icon:e9,title:(0,kt.__)("Align column center"),align:"center"},{icon:i9,title:(0,kt.__)("Align column right"),align:"right"}],gSe={head:(0,kt.__)("Header cell text"),body:(0,kt.__)("Body cell text"),foot:(0,kt.__)("Footer cell text")},vSe={head:(0,kt._x)("Header label","table header"),foot:(0,kt._x)("Footer label","table footer")};function bSe({name:e,...t}){let r=`t${e}`;return(0,ut.jsx)(r,{...t})}function ySe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,Un.useState)(2),[u,m]=(0,Un.useState)(2),[p,d]=(0,Un.useState)(),f=(0,Co.__experimentalUseColorProps)(e),h=(0,Co.__experimentalUseBorderProps)(e),g=(0,Co.useBlockEditingMode)(),b=(0,Un.useRef)(),[y,_]=(0,Un.useState)(!1),x=q();function k(le){m(le)}function S(le){c(le)}function C(le){le.preventDefault(),t(zue({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function E(){t({hasFixedLayout:!n})}let P=(0,Un.useCallback)(function(le){p&&t(ee=>BR(ee,p,ve=>({...ve,content:le})))},[p,t]);function N(le){if(!p)return;let ee={type:"column",columnIndex:p.columnIndex},ve=BR(e,ee,Ne=>({...Ne,align:le}));t(ve)}function z(){if(p)return Vue(e,p,"align")}function V(){t(NR(e,"head"))}function A(){t(NR(e,"foot"))}function M(le){if(!p)return;let{sectionName:ee,rowIndex:ve}=p,Ne=ve+le;t(ER(e,{sectionName:ee,rowIndex:Ne})),d({sectionName:ee,rowIndex:Ne,columnIndex:0,type:"cell"})}function L(){M(0)}function U(){M(1)}function H(){if(!p)return;let{sectionName:le,rowIndex:ee}=p;d(),t(Fue(e,{sectionName:le,rowIndex:ee}))}function G(le=0){if(!p)return;let{columnIndex:ee}=p,ve=ee+le;t(Hue(e,{columnIndex:ve})),d({rowIndex:0,columnIndex:ve,type:"cell"})}function Y(){G(0)}function O(){G(1)}function te(){if(!p)return;let{sectionName:le,columnIndex:ee}=p;d(),t(Oue(e,{sectionName:le,columnIndex:ee}))}(0,Un.useEffect)(()=>{o||d()},[o]),(0,Un.useEffect)(()=>{y&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[y]);let se=["head","body","foot"].filter(le=>!op(e[le])),Q=[{icon:JB,title:(0,kt.__)("Insert row before"),isDisabled:!p,onClick:L},{icon:QB,title:(0,kt.__)("Insert row after"),isDisabled:!p,onClick:U},{icon:tE,title:(0,kt.__)("Delete row"),isDisabled:!p,onClick:H},{icon:qB,title:(0,kt.__)("Insert column before"),isDisabled:!p,onClick:Y},{icon:WB,title:(0,kt.__)("Insert column after"),isDisabled:!p,onClick:O},{icon:KB,title:(0,kt.__)("Delete column"),isDisabled:!p,onClick:te}],ce=se.map(le=>(0,ut.jsx)(bSe,{name:le,children:e[le].map(({cells:ee},ve)=>(0,ut.jsx)("tr",{children:ee.map((Ne,Re)=>{let Be=p?.sectionName===le&&p?.rowIndex===ve&&p?.columnIndex===Re;return(0,ut.jsx)(_Se,{name:le,rowIndex:ve,columnIndex:Re,onChange:Be?P:void 0,setSelectedCell:d,...Ne},Re)})},ve))},le)),Ee=!se.length;return(0,ut.jsxs)("figure",{...(0,Co.useBlockProps)({ref:b}),children:[!Ee&&g==="default"&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Co.BlockControls,{group:"block",children:(0,ut.jsx)(Co.AlignmentControl,{label:(0,kt.__)("Change column alignment"),alignmentControls:hSe,value:z(),onChange:le=>N(le)})}),(0,ut.jsx)(Co.BlockControls,{group:"other",children:(0,ut.jsx)(qr.ToolbarDropdownMenu,{icon:oE,label:(0,kt.__)("Edit table"),controls:Q})})]}),(0,ut.jsx)(Co.InspectorControls,{children:(0,ut.jsxs)(qr.__experimentalToolsPanel,{label:(0,kt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:x,children:[(0,ut.jsx)(qr.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,kt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,ut.jsx)(qr.ToggleControl,{label:(0,kt.__)("Fixed width table cells"),checked:!!n,onChange:E})}),!Ee&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(qr.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,kt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,ut.jsx)(qr.ToggleControl,{label:(0,kt.__)("Header section"),checked:!!(i&&i.length),onChange:V})}),(0,ut.jsx)(qr.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,kt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,ut.jsx)(qr.ToggleControl,{label:(0,kt.__)("Footer section"),checked:!!(l&&l.length),onChange:A})})]})]})}),!Ee&&(0,ut.jsx)("table",{className:w(f.className,h.className,{"has-fixed-layout":n,"has-individual-borders":(0,qr.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...h.style},children:ce}),Ee?(0,ut.jsx)(qr.Placeholder,{label:(0,kt.__)("Table"),icon:(0,ut.jsx)(Co.BlockIcon,{icon:H0,showColors:!0}),instructions:(0,kt.__)("Insert a table for sharing data."),children:(0,ut.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,ut.jsx)(qr.TextControl,{type:"number",label:(0,kt.__)("Column count"),value:u,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,ut.jsx)(qr.TextControl,{type:"number",label:(0,kt.__)("Row count"),value:s,onChange:S,min:"1",className:"blocks-table__placeholder-input"}),(0,ut.jsx)(qr.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,kt.__)("Create Table")})]})}):(0,ut.jsx)(ma,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,kt.__)("Table caption text"),showToolbarButton:o&&g==="default"})]})}var _Se=(0,Un.memo)(function({tag:e,name:t,scope:r,colspan:o,rowspan:n,rowIndex:i,columnIndex:l,align:s,content:c,onChange:u,setSelectedCell:m}){return(0,ut.jsx)(e,{scope:e==="th"?r:void 0,colSpan:o,rowSpan:n,className:w({[`has-text-align-${s}`]:s},"wp-block-table__cell-content"),children:(0,ut.jsx)(Co.RichText,{identifier:`${t}.${i}.cells.${l}.content`,value:c,onChange:u,onFocus:()=>{m({sectionName:t,rowIndex:i,columnIndex:l,type:"cell"})},"aria-label":gSe[t],placeholder:vSe[t]})})}),Uue=ySe;var x8={$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 _l=a(T(),1),gs=a(v(),1);function Gue({attributes:e}){let{hasFixedLayout:t,head:r,body:o,foot:n,caption:i}=e;if(!r.length&&!o.length&&!n.length)return null;let s=(0,_l.__experimentalGetColorClassesAndStyles)(e),c=(0,_l.__experimentalGetBorderClassesAndStyles)(e),u=w(s.className,c.className,{"has-fixed-layout":t}),m=!_l.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let h=`t${d}`;return(0,gs.jsx)(h,{children:f.map(({cells:g},b)=>(0,gs.jsx)("tr",{children:g.map(({content:y,tag:_,scope:x,align:k,colspan:S,rowspan:C},E)=>{let P=w({[`has-text-align-${k}`]:k});return(0,gs.jsx)(_l.RichText.Content,{className:P||void 0,"data-align":k,tagName:_,value:y,scope:_==="th"?x:void 0,colSpan:S,rowSpan:C},E)})},b))})};return(0,gs.jsxs)("figure",{..._l.useBlockProps.save(),children:[(0,gs.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,gs.jsx)(p,{type:"head",rows:r}),(0,gs.jsx)(p,{type:"body",rows:o}),(0,gs.jsx)(p,{type:"foot",rows:n})]}),m&&(0,gs.jsx)(_l.RichText.Content,{tagName:"figcaption",value:i,className:(0,_l.__experimentalGetElementClassName)("caption")})]})}var Wue=a($(),1);function IR(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var DR=({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"]}}}}),kSe=e=>({table:{children:{thead:{allowEmpty:!0,children:DR(e)},tfoot:{allowEmpty:!0,children:DR(e)},tbody:{allowEmpty:!0,children:DR(e)}}}}),wSe={from:[{type:"raw",selector:"table",schema:kSe,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((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,m)=>{let p=IR(m.getAttribute("rowspan")),d=IR(m.getAttribute("colspan")),{textAlign:f}=m.style||{},h;return(f==="left"||f==="center"||f==="right")&&(h=f),u.push({tag:m.nodeName.toLowerCase(),content:m.innerHTML,rowspan:p,colspan:d,align:h}),u},[]);return l.push({cells:c}),l},[]);return r[n]=i,r},{});return(0,Wue.createBlock)("core/table",t)}}]},$ue=wSe;var{name:que}=x8,Zue={icon:H0,example:{attributes:{head:[{cells:[{content:(0,_c.__)("Version"),tag:"th"},{content:(0,_c.__)("Jazz Musician"),tag:"th"},{content:(0,_c.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,_c.__)("Jaco Pastorius"),tag:"td"},{content:(0,_c.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,_c.__)("Betty Carter"),tag:"td"},{content:(0,_c.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,_c.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,_c.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:$ue,edit:Uue,save:Gue,deprecated:Rue},CSe=()=>I({name:que,metadata:x8,settings:Zue});var AR={};Z(AR,{init:()=>BSe,metadata:()=>k8,name:()=>cme,settings:()=>ume});var Pu=a(B(),1);var k8={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"design",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{anchor:!0,ariaLabel:!0,html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-table-of-contents"};var vs=a(T(),1),ome=a($(),1),Ao=a(R(),1),my=a(F(),1),ame=a(j(),1),Ft=a(B(),1),nme=a(fe(),1),ime=a(_r(),1);var xc=a(v(),1),Kue="wp-block-table-of-contents__entry";function t0({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,xc.jsx)(xc.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,xc.jsx)("a",{className:Kue,href:s,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:l}):(0,xc.jsx)("span",{className:Kue,children:l}),u=o?"ol":"ul";return(0,xc.jsxs)("li",{children:[c,n.children?(0,xc.jsx)(u,{children:(0,xc.jsx)(t0,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}function cy(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:cy(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}var Xue=a(Que(),1),Jue=a(F(),1),eme=a(Va(),1),tme=a(j(),1),uy=a(lr(),1),w8=a(T(),1);function TSe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:n,getClientIdsOfDescendants:i}=e(w8.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=r(t)??{},[m=""]=n("core/post-content"),p=i(m),d=1;if(s&&c){let b=p.indexOf(t);for(let[y,_]of p.entries()){if(y>=b)break;o(_)==="core/nextpage"&&d++}}let f=[],h=1,g=null;typeof l=="string"&&(g=s?(0,uy.addQueryArgs)(l,{page:h}):l);for(let b of p){let y=o(b);if(y==="core/nextpage"){if(h++,c&&h>d)break;typeof l=="string"&&(g=(0,uy.addQueryArgs)((0,uy.removeQueryArgs)(l,["page"]),{page:h}))}else if((!c||h===d)&&y==="core/heading"){let _=r(b);if(u&&_.level>u)continue;let x=typeof g=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,eme.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:x?`${g}#${_.anchor}`:null})}}return f}function PSe(e,t,r){let{getBlockAttributes:o}=e(w8.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(w8.store),l=o(r);if(l===null)return;let s=TSe(e,r);(0,Xue.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:s})})}function rme(e){let t=(0,Jue.useRegistry)();(0,tme.useEffect)(()=>t.subscribe(()=>PSe(t.select,t.dispatch,e)),[t,e])}var rr=a(v(),1);function MR({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:n,setAttributes:i}){rme(n);let l=(0,vs.useBlockProps)(),s=(0,nme.useInstanceId)(MR,"table-of-contents"),{createWarningNotice:c}=(0,my.useDispatch)(ime.store),u=y=>{y.preventDefault(),c((0,Ft.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},m=(0,my.useSelect)(y=>{let{getBlockRootClientId:_,canInsertBlockType:x}=y(vs.store),k=_(n);return x("core/list",k)},[n]),{replaceBlocks:p}=(0,my.useDispatch)(vs.store),d=q(),f=cy(e),h=(0,rr.jsxs)(vs.BlockControls,{children:[(0,rr.jsxs)(Ao.ToolbarGroup,{children:[(0,rr.jsx)(Ao.ToolbarButton,{icon:(0,Ft.isRTL)()?J0:e1,title:(0,Ft.__)("Unordered"),description:(0,Ft.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:o===!1}),(0,rr.jsx)(Ao.ToolbarButton,{icon:(0,Ft.isRTL)()?t1:Oi,title:(0,Ft.__)("Ordered"),description:(0,Ft.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:o===!0})]}),m&&(0,rr.jsx)(Ao.ToolbarGroup,{children:(0,rr.jsx)(Ao.ToolbarButton,{onClick:()=>p(n,(0,ome.createBlock)("core/list",{ordered:o,values:(0,ame.renderToString)((0,rr.jsx)(t0,{nestedHeadingList:f,ordered:o}))})),children:(0,Ft.__)("Convert to static list")})})]}),g=(0,rr.jsx)(vs.InspectorControls,{children:(0,rr.jsxs)(Ao.__experimentalToolsPanel,{label:(0,Ft.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,rr.jsx)(Ao.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Ft.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,rr.jsx)(Ao.ToggleControl,{label:(0,Ft.__)("Only include current page"),checked:t,onChange:y=>i({onlyIncludeCurrentPage:y}),help:t?(0,Ft.__)("Only including headings from the current page (if the post is paginated)."):(0,Ft.__)("Include headings from all pages (if the post is paginated).")})}),(0,rr.jsx)(Ao.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Ft.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,rr.jsx)(Ao.SelectControl,{__next40pxDefaultSize:!0,label:(0,Ft.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Ft.__)("All levels")},{value:"1",label:(0,Ft.__)("Heading 1")},{value:"2",label:(0,Ft.__)("Heading 2")},{value:"3",label:(0,Ft.__)("Heading 3")},{value:"4",label:(0,Ft.__)("Heading 4")},{value:"5",label:(0,Ft.__)("Heading 5")},{value:"6",label:(0,Ft.__)("Heading 6")}],onChange:y=>i({maxLevel:y?parseInt(y):void 0}),help:r?(0,Ft.__)("Only include headings up to and including this level."):(0,Ft.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("div",{...l,children:(0,rr.jsx)(Ao.Placeholder,{icon:(0,rr.jsx)(vs.BlockIcon,{icon:E1}),label:(0,Ft.__)("Table of Contents"),instructions:(0,Ft.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),g]}):(0,rr.jsxs)(rr.Fragment,{children:[(0,rr.jsx)("nav",{...l,children:(0,rr.jsx)(o?"ol":"ul",{children:(0,rr.jsx)(t0,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:o})})}),h,g]})}var lme=a(T(),1);var C8=a(v(),1);function sme({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let r=t?"ol":"ul";return(0,C8.jsx)("nav",{...lme.useBlockProps.save(),children:(0,C8.jsx)(r,{children:(0,C8.jsx)(t0,{nestedHeadingList:cy(e),ordered:t})})})}var{name:cme}=k8,ume={icon:E1,edit:MR,save:sme,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,Pu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Pu.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,Pu.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,Pu.__)("Subheading")}}],attributes:{headings:[{content:(0,Pu.__)("Heading"),level:2},{content:(0,Pu.__)("Subheading"),level:3},{content:(0,Pu.__)("Heading"),level:2},{content:(0,Pu.__)("Subheading"),level:3}]}}},BSe=()=>I({name:cme,metadata:k8,settings:ume});var zR={};Z(zR,{init:()=>DSe,metadata:()=>T8,name:()=>fme,settings:()=>hme});var mme=a(B(),1),zi=a(T(),1),S8=a(F(),1),ap=a(j(),1);var kc=a(v(),1),ESe=[];function NSe({attributes:e,clientId:t,context:r,__unstableLayoutClassNames:o}){let n=r["core/tabs-list"]||ESe,i=(0,zi.__experimentalUseColorProps)(e),l=(0,zi.__experimentalUseBorderProps)(e),s=(0,zi.__experimentalGetSpacingClassesAndStyles)(e),{tabsClientId:c,editorActiveTabIndex:u,activeTabIndex:m}=(0,S8.useSelect)(S=>{let{getBlockRootClientId:C,getBlockAttributes:E}=S(zi.store),P=C(t),N=P?E(P):{};return{tabsClientId:P,editorActiveTabIndex:N?.editorActiveTabIndex,activeTabIndex:N?.activeTabIndex??0}},[t]),p=u??m,{__unstableMarkNextChangeAsNotPersistent:d,updateBlockAttributes:f}=(0,S8.useDispatch)(zi.store),h=(0,ap.useCallback)(S=>{c&&S!==p&&(d(),f(c,{editorActiveTabIndex:S}))},[c,p,f,d]),g=(0,ap.useCallback)((S,C)=>{let E=n[S];E?.clientId&&f(E.clientId,{label:C})},[n,f]),b=(0,ap.useRef)(),y=(0,ap.useRef)(n.length);(0,ap.useEffect)(()=>{let S=y.current;if(y.current=n.length,!b.current||n.length===S)return;let C=E=>{window.requestAnimationFrame(()=>{let N=b.current?.querySelectorAll("button")?.[E];if(!N)return;let z=N.querySelector("[contenteditable]");z?z.focus():N.focus()})};n.length>S?C(n.length-1):C(p)},[n.length,p]);let _=(0,zi.useBlockProps)({role:"tablist",ref:b,className:o}),x=w(i.className,l.className),k={...i.style,...l.style,...s.style};return(0,kc.jsxs)(kc.Fragment,{children:[(0,kc.jsx)(ep,{tabsClientId:c}),(0,kc.jsx)(tp,{tabsClientId:c}),(0,kc.jsx)("div",{..._,children:n.map((S,C)=>(0,kc.jsx)("button",{type:"button",role:"tab","aria-selected":C===p,className:x||void 0,style:k,tabIndex:-1,onClick:P=>{P.preventDefault(),h(C)},children:(0,kc.jsx)(zi.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,mme.__)("Tab title"),value:S.label,onChange:P=>g(C,P)})},S.clientId||C))})]})}var pme=NSe;var np=a(T(),1),RR=a(v(),1);function dme({attributes:e}){let{tabs:t}=e,r=np.useBlockProps.save({role:"tablist"}),o=(0,np.__experimentalGetColorClassesAndStyles)(e),n=(0,np.__experimentalGetBorderClassesAndStyles)(e),i=(0,np.__experimentalGetSpacingClassesAndStyles)(e),l=w(o.className,n.className),s={...o.style,...n.style,...i.style};return(0,RR.jsx)("div",{...r,children:t.map((c,u)=>(0,RR.jsx)("button",{className:l||void 0,style:s,type:"button",role:"tab",children:c.label},u))})}var T8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,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:"string",source:"html"}},default:[]}},supports:{html:!1,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:"nowrap"},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"};var{name:fme}=T8,hme={icon:OB,edit:pme,save:dme},DSe=()=>I({name:fme,metadata:T8,settings:hme});var VR={};Z(VR,{init:()=>zSe,metadata:()=>E8,name:()=>Sme,settings:()=>Tme});var df=a(B(),1);var ip=a(T(),1),_me=a(F(),1),xme=a(j(),1);var pf=a(v(),1);function gme({clientId:e}){return(0,pf.jsxs)(pf.Fragment,{children:[(0,pf.jsx)(ep,{tabsClientId:e}),(0,pf.jsx)(tp,{tabsClientId:e})]})}var vme=a(T(),1),bme=a(F(),1),P8=a(j(),1);function yme({tabPanels:e,tabListClientId:t}){let{updateBlockAttributes:r,__unstableMarkNextChangeAsNotPersistent:o}=(0,bme.useDispatch)(vme.store),n=(0,P8.useRef)(null);(0,P8.useEffect)(()=>{if(!t)return;let i=e.map(s=>({label:s.attributes.label||""})),l=JSON.stringify(i);l!==n.current&&(n.current=l,o(),r(t,{tabs:i}))},[e,t,r,o])}var py=a(v(),1),LSe=[],MSe=[["core/tab-list"],["core/tab-panels"]];function ASe({clientId:e,attributes:t}){let{anchor:r,activeTabIndex:o,editorActiveTabIndex:n}=t,{tabPanels:i,tabListClientId:l}=(0,_me.useSelect)(m=>{let{getBlocks:p}=m(ip.store),d=p(e),f=d.find(g=>g.name==="core/tab-panels"),h=d.find(g=>g.name==="core/tab-list");return{tabPanels:f?.innerBlocks??LSe,tabListClientId:h?.clientId??null}},[e]);yme({tabPanels:i,tabListClientId:l});let s=(0,xme.useMemo)(()=>({"core/tabs-list":i.map((p,d)=>({id:p.attributes.anchor||`tab-${d}`,label:p.attributes.label||"",clientId:p.clientId,index:d})),"core/tabs-id":r,"core/tabs-activeTabIndex":o,"core/tabs-editorActiveTabIndex":n}),[i,r,o,n]),c=(0,ip.useBlockProps)(),u=(0,ip.useInnerBlocksProps)(c,{__experimentalCaptureToolbars:!0,template:MSe,templateLock:"all",renderAppender:!1});return(0,py.jsx)(ip.BlockContextProvider,{value:s,children:(0,py.jsxs)("div",{...u,children:[(0,py.jsx)(gme,{clientId:e}),u.children]})})}var kme=ASe;var B8=a(T(),1),wme=a(v(),1);function Cme(){let e=B8.useBlockProps.save(),t=B8.useInnerBlocksProps.save(e);return(0,wme.jsx)("div",{...t})}var E8={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,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}},providesContext:{"core/tabs-activeTabIndex":"activeTabIndex","core/tabs-editorActiveTabIndex":"editorActiveTabIndex"},usesContext:["core/tabs-list","core/tabs-id"],style:"wp-block-tabs",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:Sme}=E8,Tme={icon:nE,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,df.__)("Tab 1")},{label:(0,df.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,df.sprintf)((0,df.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,df.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]}))}]},edit:kme,save:Cme},zSe=()=>I({name:Sme,metadata:E8,settings:Tme});var HR={};Z(HR,{init:()=>USe,metadata:()=>N8,name:()=>Ame,settings:()=>Rme});var FR=a($(),1),VSe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,FR.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,FR.createBlock)("core/categories")}]},Pme=VSe;var N8={$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 Ht=a(R(),1),Nme=a(F(),1),mn=a(B(),1),r0=a(T(),1),Ime=a(X(),1),Dme=a(zu(),1),Lme=a(fe(),1);var gr=a(v(),1),HSe=1,OSe=100,Bme=.1,Eme=100;function jSe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:n,numberOfTags:i,smallestFontSize:l,largestFontSize:s}=e,[c]=(0,r0.useSettings)("spacing.units"),u=q(),m=(0,Ht.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,Nme.useSelect)(k=>k(Ime.store).getTaxonomies({per_page:-1}),[]),d=()=>{let k={label:(0,mn.__)("- Select -"),value:"",disabled:!0},S=(p??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[k,...S]},f=(k,S)=>{let[C,E]=(0,Ht.__experimentalParseQuantityAndUnitFromRawValue)(S);if(!Number.isFinite(C))return;let P={[k]:S};Object.entries({smallestFontSize:l,largestFontSize:s}).forEach(([N,z])=>{let[V,A]=(0,Ht.__experimentalParseQuantityAndUnitFromRawValue)(z);N!==k&&A!==E&&(P[N]=`${V}${E}`)}),t(P)},h=(0,gr.jsx)(r0.InspectorControls,{children:(0,gr.jsxs)(Ht.__experimentalToolsPanel,{label:(0,mn.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,gr.jsx)(Ht.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,mn.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,gr.jsx)(Ht.SelectControl,{__next40pxDefaultSize:!0,label:(0,mn.__)("Taxonomy"),options:d(),value:o,onChange:k=>t({taxonomy:k})})}),(0,gr.jsx)(Ht.__experimentalToolsPanelItem,{hasValue:()=>l!=="8pt"||s!=="22pt",label:(0,mn.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,gr.jsxs)(Ht.Flex,{gap:4,children:[(0,gr.jsx)(Ht.FlexItem,{isBlock:!0,children:(0,gr.jsx)(Ht.__experimentalUnitControl,{label:(0,mn.__)("Smallest size"),value:l,onChange:k=>{f("smallestFontSize",k)},units:m,min:Bme,max:Eme,size:"__unstable-large"})}),(0,gr.jsx)(Ht.FlexItem,{isBlock:!0,children:(0,gr.jsx)(Ht.__experimentalUnitControl,{label:(0,mn.__)("Largest size"),value:s,onChange:k=>{f("largestFontSize",k)},units:m,min:Bme,max:Eme,size:"__unstable-large"})})]})}),(0,gr.jsx)(Ht.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,mn.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,gr.jsx)(Ht.RangeControl,{__next40pxDefaultSize:!0,label:(0,mn.__)("Number of tags"),value:i,onChange:k=>t({numberOfTags:k}),min:HSe,max:OSe,required:!0})}),(0,gr.jsx)(Ht.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,mn.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,gr.jsx)(Ht.ToggleControl,{label:(0,mn.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:g,status:b,error:y}=(0,Dme.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),_=(0,Lme.useDisabled)(),x=(0,r0.useBlockProps)({ref:_});return(0,gr.jsxs)(gr.Fragment,{children:[h,b==="loading"&&(0,gr.jsx)("div",{...x,children:(0,gr.jsx)(Ht.Spinner,{})}),b==="error"&&(0,gr.jsx)("div",{...x,children:(0,gr.jsx)("p",{children:(0,mn.sprintf)((0,mn.__)("Error: %s"),y)})}),b==="success"&&(0,gr.jsx)(uo,{wrapperProps:x,html:g})]})}var Mme=jSe;var{name:Ame}=N8,Rme={icon:N1,example:{},edit:Mme,transforms:Pme},USe=()=>I({name:Ame,metadata:N8,settings:Rme});var WR={};Z(WR,{init:()=>QSe,metadata:()=>I8,name:()=>xpe,settings:()=>kpe});var bpe=a(X(),1),ype=a(F(),1);var GR=a($c(),1),_pe=a(Oo(),1);var I8={$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 upe=a($(),1),c0=a(F(),1),so=a(T(),1),Sc=a(R(),1),Fi=a(B(),1),vy=a(X(),1),mpe=a(j(),1),ppe=a(_r(),1);var sp=a(B(),1),hf=a(R(),1),jme=a(j(),1),Ume=a(F(),1),Gme=a(X(),1);var o0=a(F(),1),D8=a(X(),1),zme=a(T(),1),Vme=a(j(),1),Fme=a($(),1),OR=a(B(),1);function a0(e,t){let{templateParts:r,isResolving:o}=(0,o0.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(D8.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,Vme.useMemo)(()=>r?r.filter(i=>Ja(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function n0(e,t){return(0,o0.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(zme.store),l=n(t);return i(o,l)},[e,t])}function L8(e,t){let{saveEntityRecord:r}=(0,o0.useDispatch)(D8.store);return async(o=[],n=(0,OR.__)("Untitled Template Part"))=>{let i=L4(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,Fme.serialize)(o),area:e},s=await r("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function M8(e){return(0,o0.useSelect)(t=>{let r=t(D8.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,OR.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var Hme=a(j(),1),lp=a(B(),1),bs=a(R(),1),Bu=a(v(),1);function Ome({areaLabel:e,onClose:t,onSubmit:r}){let[o,n]=(0,Hme.useState)(""),i=l=>{l.preventDefault(),r(o)};return(0,Bu.jsx)(bs.Modal,{title:(0,lp.sprintf)((0,lp.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,Bu.jsx)("form",{onSubmit:i,children:(0,Bu.jsxs)(bs.__experimentalVStack,{spacing:"5",children:[(0,Bu.jsx)(bs.TextControl,{label:(0,lp.__)("Name"),value:o,onChange:n,placeholder:(0,lp.__)("Custom Template Part")}),(0,Bu.jsxs)(bs.__experimentalHStack,{justify:"right",children:[(0,Bu.jsx)(bs.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,lp.__)("Cancel")}),(0,Bu.jsx)(bs.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,lp.__)("Create")})]})]})})})}var ff=a(v(),1);function Wme({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:n}){let{templateParts:i,isResolving:l}=a0(e,r),s=n0(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,Ume.useSelect)(h=>{let{getCurrentTheme:g,canUser:b}=h(Gme.store);return{isBlockBasedTheme:g()?.is_block_theme,canCreateTemplatePart:b("create",{kind:"postType",name:"wp_template_part"})}},[]),[m,p]=(0,jme.useState)(!1),d=M8(e),f=L8(e,n);return(0,ff.jsxs)(hf.Placeholder,{icon:cg(d.icon),label:d.label,instructions:c?(0,sp.sprintf)((0,sp.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,sp.sprintf)((0,sp.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,ff.jsx)(hf.Spinner,{}),!l&&!!(i.length||s.length)&&(0,ff.jsx)(hf.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,sp.__)("Choose")}),!l&&c&&u&&(0,ff.jsx)(hf.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,sp.__)("Start blank")}),m&&(0,ff.jsx)(Ome,{areaLabel:d.label,onClose:()=>p(!1),onSubmit:h=>{f([],h)}})]})}var dy=a(j(),1),cp=a(B(),1),Zme=a(_r(),1),Kme=a(F(),1),Yme=a(T(),1),A8=a(R(),1);var $me=a($(),1);function qme(e){return{name:Ja(e.theme,e.slug),title:e.title.rendered,blocks:(0,$me.parse)(e.content.raw),templatePart:e}}var wc=a(v(),1);function Qme({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:n}){let[i,l]=(0,dy.useState)(""),{templateParts:s}=a0(o,r),c=(0,dy.useMemo)(()=>{let g=s.map(b=>qme(b));return Nv(g,i)},[s,i]),u=n0(o,n),m=(0,dy.useMemo)(()=>Nv(u,i),[u,i]),{createSuccessNotice:p}=(0,Kme.useDispatch)(Zme.store),d=g=>{e({slug:g.slug,theme:g.theme,area:void 0}),p((0,cp.sprintf)((0,cp.__)('Template Part "%s" inserted.'),g.title?.rendered||g.slug),{type:"snackbar"}),t()},f=!!c.length,h=!!m.length;return(0,wc.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,wc.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,wc.jsx)(A8.SearchControl,{onChange:l,value:i,label:(0,cp.__)("Search"),placeholder:(0,cp.__)("Search")})}),f&&(0,wc.jsxs)("div",{children:[(0,wc.jsx)("h2",{children:(0,cp.__)("Existing template parts")}),(0,wc.jsx)(Yme.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:g=>{d(g.templatePart)}})]}),!f&&!h&&(0,wc.jsx)(A8.__experimentalHStack,{alignment:"center",children:(0,wc.jsx)("p",{children:(0,cp.__)("No results found.")})})]})}var hy=a(X(),1),R8=a(R(),1),l0=a(B(),1),ope=a(F(),1),ape=a(T(),1);var Cc=a(B(),1),fy=a(j(),1),i0=a(F(),1),Vi=a(R(),1),UR=a(X(),1),tpe=a(_r(),1);var Gn=a($(),1);function Xme(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},Jme((0,Gn.createBlock)("core/legacy-widget",o))}let t=(0,Gn.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,Gn.createBlock)((0,Gn.getGroupingBlockName)(),void 0,jR(r.innerBlocks)):r.innerBlocks.length>0?(0,Gn.cloneBlock)(r,void 0,jR(r.innerBlocks)):r}function Jme(e){let t=(0,Gn.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,Gn.switchToBlockType)(e,t[0].name)}function jR(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Jme(t):(0,Gn.createBlock)(t.name,t.attributes,jR(t.innerBlocks))).filter(t=>!!t)}var Eu=a(v(),1),epe={per_page:-1,_fields:"id,name,description,status,widgets"};function rpe({area:e,setAttributes:t}){let[r,o]=(0,fy.useState)(""),[n,i]=(0,fy.useState)(!1),l=(0,i0.useRegistry)(),{sidebars:s,hasResolved:c}=(0,i0.useSelect)(f=>{let{getSidebars:h,hasFinishedResolution:g}=f(UR.store);return{sidebars:h(epe),hasResolved:g("getSidebars",[epe])}},[]),{createErrorNotice:u}=(0,i0.useDispatch)(tpe.store),m=L8(e,t),p=(0,fy.useMemo)(()=>{let f=(s??[]).filter(h=>h.id!=="wp_inactive_widgets"&&h.widgets.length>0).map(h=>({value:h.id,label:h.name}));return f.length?[{value:"",label:(0,Cc.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Eu.jsx)(Vi.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function d(f){if(f.preventDefault(),n||!r)return;i(!0);let h=p.find(({value:x})=>x===r),{getWidgets:g}=l.resolveSelect(UR.store),b=await g({sidebar:h.value,_embed:"about"}),y=new Set,_=b.flatMap(x=>{let k=Xme(x);return k||(y.add(x.id_base),[])});await m(_,(0,Cc.sprintf)((0,Cc.__)("Widget area: %s"),h.label)),y.size&&u((0,Cc.sprintf)((0,Cc.__)("Unable to import the following widgets: %s."),Array.from(y).join(", ")),{type:"snackbar"}),i(!1)}return(0,Eu.jsx)(Vi.__experimentalSpacer,{marginBottom:"4",children:(0,Eu.jsxs)(Vi.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Eu.jsx)(Vi.FlexBlock,{children:(0,Eu.jsx)(Vi.SelectControl,{label:(0,Cc.__)("Import widget area"),value:r,options:p,onChange:f=>o(f),disabled:!p.length,__next40pxDefaultSize:!0})}),(0,Eu.jsx)(Vi.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Eu.jsx)(Vi.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,Cc._x)("Import","button label")})})]})})}var ys=a(v(),1),{HTMLElementControl:WSe}=W(ape.privateApis);function npe({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,hy.useEntityProp)("postType","wp_template_part","area",o),[u,m]=(0,hy.useEntityProp)("postType","wp_template_part","title",o),d=(0,ope.useSelect)(f=>f(hy.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:h})=>({label:f,value:h}));return(0,ys.jsxs)(ys.Fragment,{children:[r&&(0,ys.jsxs)(ys.Fragment,{children:[(0,ys.jsx)(R8.TextControl,{label:(0,l0.__)("Title"),value:u,onChange:f=>{m(f)},onFocus:f=>f.target.select()}),(0,ys.jsx)(R8.SelectControl,{__next40pxDefaultSize:!0,label:(0,l0.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,ys.jsx)(WSe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,l0.sprintf)((0,l0.__)("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,ys.jsx)(rpe,{area:s,setAttributes:t})]})}var s0=a(X(),1),Wn=a(T(),1),gy=a(F(),1),ipe=a(j(),1),lpe=a($(),1),z8=a(v(),1);function $Se(e){if((0,Wn.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return Wn.InnerBlocks.ButtonBlockAppender}function spe(e){let t=(0,gy.useSelect)(o=>{let{getSettings:n}=o(Wn.store);return n()?.supportsLayout},[]),[r]=(0,Wn.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function qSe({postId:e,layout:t,tagName:r,blockProps:o}){(0,Wn.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,gy.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(s0.store),m=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:m.blocks,content:m.content}},[e]),l=(0,ipe.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,lpe.parse)(n))},[e,i,n]),s=(0,Wn.useInnerBlocksProps)(o,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:spe(t)});return(0,z8.jsx)(r,{...s})}function ZSe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let i=(0,gy.useSelect)(d=>d(Wn.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,s0.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,Wn.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:$Se(t),layout:spe(r)}),p=(0,Wn.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,z8.jsx)(o,{...u,...p})}function cpe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,gy.useSelect)(c=>({canViewTemplatePart:!!c(s0.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(s0.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,z8.jsx)(l?ZSe:qSe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}):null}var Ot=a(v(),1),dpe=["header","footer","navigation-overlay"];function KSe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=a0(t,r),l=!!i.length;return e&&l&&dpe.includes(t)?(0,Ot.jsx)(Sc.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,Fi.__)("Replace")}):null}function YSe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let n=n0(e,t);return r&&!!n.length&&dpe.includes(e)?(0,Ot.jsx)(Sc.PanelBody,{title:(0,Fi.__)("Design"),children:(0,Ot.jsx)(so.__experimentalBlockPatternsList,{label:(0,Fi.__)("Templates"),blockPatterns:n,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function fpe({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,c0.useDispatch)(ppe.store),{editEntityRecord:n}=(0,c0.useDispatch)(vy.store),i=(0,c0.useSelect)(A=>A(vy.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,m=Ja(s,l),p=(0,so.useHasRecursion)(m),[d,f]=(0,mpe.useState)(!1),{isResolved:h,hasInnerBlocks:g,isMissing:b,area:y,onNavigateToEntityRecord:_,title:x,canUserEdit:k,canUserEditBlock:S}=(0,c0.useSelect)(A=>{let{getEditedEntityRecord:M,hasFinishedResolution:L}=A(vy.store),{getBlockCount:U,getSettings:H,canEditBlock:G}=A(so.store),Y=["postType","wp_template_part",m],O=m?M(...Y):null,te=O?.area||e.area,se=m?L("getEditedEntityRecord",Y):!1,Q=se?A(vy.store).canUser("update",{kind:"postType",name:"wp_template_part",id:m}):!1;return{hasInnerBlocks:U(r)>0,isResolved:se,isMissing:se&&(!O||Object.keys(O).length===0),area:te,onNavigateToEntityRecord:H().onNavigateToEntityRecord,title:O?.title,canUserEdit:!!Q,canUserEditBlock:G(r)}},[m,e.area,r]),C=M8(y),E=(0,so.useBlockProps)(),P=!l,N=!P&&!b&&h,z=c||C.tagName,V=async A=>{await n("postType","wp_template_part",m,{blocks:A.blocks,content:(0,upe.serialize)(A.blocks)}),o((0,Fi.sprintf)((0,Fi.__)('Template Part "%s" updated.'),x||l),{type:"snackbar"})};return!g&&(l&&!s||l&&b)?(0,Ot.jsx)(z,{...E,children:(0,Ot.jsx)(so.Warning,{children:(0,Fi.sprintf)((0,Fi.__)("Template part has been deleted or is unavailable: %s"),l)})}):N&&p?(0,Ot.jsx)(z,{...E,children:(0,Ot.jsx)(so.Warning,{children:(0,Fi.__)("Block cannot be rendered inside itself.")})}):(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsxs)(so.RecursionProvider,{uniqueId:m,children:[N&&_&&k&&(0,Ot.jsx)(so.BlockControls,{group:"other",children:(0,Ot.jsx)(Sc.ToolbarButton,{onClick:()=>{_({postId:m,postType:"wp_template_part"})},children:(0,Fi.__)("Edit original")})}),k&&(0,Ot.jsx)(so.InspectorControls,{group:"advanced",children:(0,Ot.jsx)(npe,{tagName:c,setAttributes:t,isEntityAvailable:N,templatePartId:m,defaultWrapper:C.tagName,hasInnerBlocks:g,clientId:r})}),P&&(0,Ot.jsx)(z,{...E,children:(0,Ot.jsx)(Wme,{area:e.area,templatePartId:m,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Ot.jsx)(so.BlockSettingsMenuControls,{children:({selectedClientIds:A})=>!S||!(A.length===1&&r===A[0])?null:(0,Ot.jsx)(KSe,{isEntityAvailable:N,area:y,clientId:r,templatePartId:m,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f})}),(0,Ot.jsx)(so.InspectorControls,{group:"settings",children:(0,Ot.jsx)(YSe,{area:y,clientId:r,isEntityAvailable:N,onSelect:A=>V(A)})}),N&&(0,Ot.jsx)(cpe,{tagName:z,blockProps:E,postId:m,hasInnerBlocks:g,layout:u}),!P&&!h&&(0,Ot.jsx)(z,{...E,children:(0,Ot.jsx)(Sc.Spinner,{})})]}),d&&(0,Ot.jsx)(Sc.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Fi.sprintf)((0,Fi.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Ot.jsx)(Qme,{templatePartId:m,clientId:r,area:y,setAttributes:t,onClose:()=>f(!1)})})]})}var hpe=a(X(),1),gpe=a(F(),1);function vpe(e,t){if(t!=="core/template-part")return e;if(e.variations){let r=(n,i)=>{let{area:l,theme:s,slug:c}=n;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:m}=(0,gpe.select)(hpe.store),p=m("postType","wp_template_part",`${s||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:cg(n.icon)}}));return{...e,variations:o}}return e}var{name:xpe}=I8,kpe={icon:T1,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,ype.select)(bpe.store),n=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,_pe.decodeEntities)(n.title)||pX(n.slug||"")},edit:fpe},QSe=()=>{(0,GR.addFilter)("blocks.registerBlockType","core/template-part",vpe);let e=["core/post-template","core/post-content"];return(0,GR.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,r,o,{getBlock:n,getBlockParentsByBlockName:i})=>{if(r.name!=="core/template-part")return t;for(let l of e)if(n(o)?.name===l||i(o,l).length)return!1;return!0}),I({name:xpe,metadata:I8,settings:kpe})};var KR={};Z(KR,{init:()=>e8e,metadata:()=>V8,name:()=>Npe,settings:()=>Ipe});var V8={$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 gf=a(B(),1),F8=a(T(),1),Bpe=a(R(),1);var xl=a(R(),1),_s=a(v(),1),$R=(0,_s.jsx)(xl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_s.jsx)(xl.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"})}),wpe=(0,_s.jsx)(xl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_s.jsx)(xl.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"})}),Cpe=(0,_s.jsx)(xl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_s.jsx)(xl.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"})}),Spe=(0,_s.jsx)(xl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_s.jsx)(xl.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"})}),Tpe=(0,_s.jsx)(xl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_s.jsx)(xl.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 by=a(X(),1),qR=a(F(),1);function Ppe(e,t){let[r]=(0,by.useEntityProp)("taxonomy",t,"count",e),o=JSe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":o}}function JSe(){let t=(0,qR.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(by.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,qR.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(by.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].count||""},[r,o])}var up=a(v(),1),ZR={none:{label:(0,gf.__)("No brackets"),icon:$R},round:{label:(0,gf.__)("Round brackets"),icon:wpe,before:"(",after:")"},square:{label:(0,gf.__)("Square brackets"),icon:Cpe,before:"[",after:"]"},curly:{label:(0,gf.__)("Curly brackets"),icon:Spe,before:"{",after:"}"},angle:{label:(0,gf.__)("Angle brackets"),icon:Tpe,before:"<",after:">"}};function Epe({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:n}=e,l=Ppe(r,o)?.termCount||0,s=(0,F8.useBlockProps)(),c=Object.entries(ZR).map(([m,{label:p,icon:d}])=>({role:"menuitemradio",title:p,isActive:n===m,icon:d,onClick:()=>{t({bracketType:m})}})),u=(m,p)=>{let{before:d="",after:f=""}=ZR[p]||{};return`${d}${m}${f}`};return(0,up.jsxs)(up.Fragment,{children:[(0,up.jsx)(F8.BlockControls,{group:"block",children:(0,up.jsx)(Bpe.ToolbarDropdownMenu,{icon:ZR[n]?.icon??$R,label:(0,gf.__)("Change bracket type"),controls:c})}),(0,up.jsx)("div",{...s,children:u(l,n)})]})}var{name:Npe}=V8,Ipe={icon:lE,example:{},edit:Epe},e8e=()=>I({name:Npe,metadata:V8,settings:Ipe});var QR={};Z(QR,{init:()=>a8e,metadata:()=>H8,name:()=>zpe,settings:()=>Vpe});var H8={$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 Lpe=a(B(),1),Mpe=a(T(),1);var yy=a(X(),1),YR=a(F(),1);function Dpe(e,t){let[r,o,n]=(0,yy.useEntityProp)("taxonomy",t,"description",e),i=r8e(),l=!!(e&&t);return{hasContext:l,setDescription:o,termDescription:l?n?.rendered||r||"":i}}function r8e(){let t=(0,YR.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(yy.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,YR.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(yy.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]&&l[0].description||""},[r,o])}var mp=a(v(),1);function Ape({context:{termId:e,taxonomy:t}}){let{termDescription:r}=Dpe(e,t),o=(0,Mpe.useBlockProps)();return(0,mp.jsx)(mp.Fragment,{children:(0,mp.jsx)("div",{...o,children:r?(0,mp.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,mp.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,mp.jsx)("span",{children:(0,Lpe.__)("Term Description")})})})})}var o8e={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:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},Rpe=[o8e];var{name:zpe}=H8,Vpe={icon:cE,edit:Ape,example:{},deprecated:Rpe},a8e=()=>I({name:zpe,metadata:H8,settings:Vpe});var XR={};Z(XR,{init:()=>l8e,metadata:()=>O8,name:()=>jpe,settings:()=>Upe});var O8={$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:{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}}},style:"wp-block-term-name"};var _y=a(B(),1),Tc=a(T(),1),u0=a(R(),1),Hpe=a(Oo(),1);var j8=a(X(),1),U8=a(F(),1);function Fpe(e,t){let r=(0,U8.useSelect)(i=>!e||!t?null:i(j8.store).getEntityRecord("taxonomy",t,e),[e,t]),o=i8e(),n=!!(e&&t);return{hasContext:n,term:n?r:o}}function i8e(){let t=(0,U8.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(j8.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,U8.useSelect)(n=>{if(!r||!o)return null;let{getEntityRecords:i}=n(j8.store),l=i("taxonomy",r,{slug:o,per_page:1});return l&&l[0]?l[0]:null},[r,o])}var $n=a(v(),1);function Ope({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{textAlign:n,level:i=0,isLink:l,levelOptions:s}=e,{term:c}=Fpe(r,o),u=c?.name?(0,Hpe.decodeEntities)(c.name):(0,_y.__)("Term Name"),m=(0,Tc.useBlockProps)({className:w({[`has-text-align-${n}`]:n})}),p=q(),d=i===0?"p":`h${i}`,f=u;return l&&(f=(0,$n.jsx)("a",{href:"#term-name-pseudo-link",onClick:h=>h.preventDefault(),children:u})),(0,$n.jsxs)($n.Fragment,{children:[(0,$n.jsxs)(Tc.BlockControls,{group:"block",children:[(0,$n.jsx)(Tc.HeadingLevelDropdown,{value:i,options:s,onChange:h=>{t({level:h})}}),(0,$n.jsx)(Tc.AlignmentControl,{value:n,onChange:h=>{t({textAlign:h})}})]}),(0,$n.jsx)(Tc.InspectorControls,{children:(0,$n.jsx)(u0.__experimentalToolsPanel,{label:(0,_y.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,$n.jsx)(u0.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,_y.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,$n.jsx)(u0.ToggleControl,{label:(0,_y.__)("Make term name a link"),onChange:()=>t({isLink:!l}),checked:l})})})}),(0,$n.jsx)(d,{...m,children:f})]})}var{name:jpe}=O8,Upe={icon:uE,example:{},edit:Ope},l8e=()=>I({name:jpe,metadata:O8,settings:Upe});var az={};Z(az,{init:()=>h8e,metadata:()=>G8,name:()=>Nde,settings:()=>Ide});var G8={$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 kde=a(F(),1),wde=a(T(),1);var yde=a(j(),1),q8=a(T(),1);var xs=a(B(),1),Pc=a(R(),1),vde=a(T(),1);var Gpe=a(X(),1),Wpe=a(F(),1),$pe=a(j(),1);function W8(){let e=(0,Wpe.useSelect)(t=>t(Gpe.store).getTaxonomies({per_page:-1}),[]);return(0,$pe.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var qpe=a(R(),1);var Zpe=a(v(),1);function Kpe({value:e,onChange:t,...r}){let n=W8().map(i=>({label:i.name,value:i.slug}));return(0,Zpe.jsx)(qpe.SelectControl,{__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...r})}var xy=a(B(),1),Ype=a(R(),1),Qpe=a(v(),1);function Xpe({orderBy:e,order:t,onChange:r,...o}){return(0,Qpe.jsx)(Ype.SelectControl,{__next40pxDefaultSize:!0,options:[{label:(0,xy.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,xy.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,xy.__)("Count, high to low"),value:"count/desc"},{label:(0,xy.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");r(i,l)},...o})}var Jpe=a(R(),1),ede=a(v(),1);function tde({value:e,onChange:t,...r}){return(0,ede.jsx)(Jpe.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var rde=a(R(),1),ode=a(v(),1);function ade({value:e,onChange:t,...r}){return(0,ode.jsx)(rde.ToggleControl,{checked:e,onChange:t,...r})}var wy=a(R(),1),ky=a(B(),1),Cy=a(v(),1);function nde({value:e,onChange:t,label:r}){return(0,Cy.jsxs)(wy.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,ky.__)("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,ky.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,Cy.jsx)(wy.__experimentalToggleGroupControlOption,{value:"default",label:(0,ky.__)("Default")}),(0,Cy.jsx)(wy.__experimentalToggleGroupControlOption,{value:"custom",label:(0,ky.__)("Custom")})]})}var ide=a(B(),1),lde=a(R(),1),sde=a(v(),1);function cde({value:e,onChange:t,...r}){return(0,sde.jsx)(lde.RangeControl,{__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,ide.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var ude=a(B(),1),$8=a(T(),1);var JR=a(v(),1),{HTMLElementControl:c8e}=W($8.privateApis);function mde({TagName:e,setAttributes:t,clientId:r}){return(0,JR.jsx)($8.InspectorControls,{group:"advanced",children:(0,JR.jsx)(c8e,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,ude.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var dde=a(R(),1),ez=a(F(),1),tz=a(X(),1),Nu=a(j(),1),fde=a(fe(),1),rz=a(Oo(),1),hde=a(v(),1),vf=[],pde={order:"asc",_fields:"id,name",context:"view"};function gde({value:e,taxonomy:t,onChange:r,...o}){let[n,i]=(0,Nu.useState)(""),[l,s]=(0,Nu.useState)(vf),[c,u]=(0,Nu.useState)(vf),m=(0,fde.useDebounce)(i,250),{searchResults:p,searchHasResolved:d}=(0,ez.useSelect)(y=>{if(!n)return{searchResults:vf,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:x}=y(tz.store),k=["taxonomy",t,{...pde,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...k),searchHasResolved:x("getEntityRecords",k)}},[n,t,e]),f=(0,ez.useSelect)(y=>{if(!e?.length)return vf;let{getEntityRecords:_}=y(tz.store);return _("taxonomy",t,{...pde,include:e,per_page:e.length})},[e,t]);(0,Nu.useEffect)(()=>{if(e?.length||s(vf),!f?.length)return;let y=e.reduce((_,x)=>{let k=f.find(S=>S.id===x);return k&&_.push({id:x,value:(0,rz.decodeEntities)(k.name)}),_},[]);s(y)},[e,f]);let h=(0,Nu.useMemo)(()=>{if(!p?.length)return{names:vf,mapByName:{}};let y=[],_={};return p.forEach(x=>{let k=(0,rz.decodeEntities)(x.name);y.push(k),_[k]=x}),{names:y,mapByName:_}},[p]);(0,Nu.useEffect)(()=>{d&&u(h.names)},[h.names,d]);let g=(y,_)=>_?.id||y?.[_]?.id;return(0,hde.jsx)(dde.FormTokenField,{__next40pxDefaultSize:!0,value:l,onInputChange:m,suggestions:c,onChange:y=>{let _=Array.from(y.reduce((x,k)=>{let S=g(h.mapByName,k);return S&&x.add(S),x},new Set));u(vf),r(_)},help:"",...o})}var Rr=a(v(),1);function bde({attributes:e,setQuery:t,setAttributes:r,clientId:o,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:m,inherit:p,showNested:d,perPage:f,include:h}=i,g=q(),y=W8().find(M=>M.slug===s)?.hierarchical,_=!!p,x=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),k=y,S=!!h?.length,C=(0,xs.__)("Query type"),E=(0,xs.__)("Taxonomy"),P=(0,xs.__)("Order by"),N=(0,xs.__)("Show empty terms"),z=(0,xs.__)("Show nested terms"),V=(0,xs.__)("Max terms"),A=(0,xs.__)("Selected terms");return(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)(vde.InspectorControls,{children:(0,Rr.jsxs)(Pc.__experimentalToolsPanel,{label:(0,xs.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:g,children:[x&&(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Rr.jsx)(nde,{label:C,value:p,onChange:t})}),!_&&(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:E,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Rr.jsx)(Kpe,{label:E,value:s,onChange:M=>t({taxonomy:M,include:[]})})}),(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:P,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Rr.jsx)(Xpe,{label:P,orderBy:c,order:u,onChange:(M,L)=>{t({orderBy:M,order:L})},disabled:S,help:S?(0,xs.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>!!h?.length,label:A,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Rr.jsx)(gde,{label:A,taxonomy:s,value:h,onChange:M=>t({include:M})})}),(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>m!==!0,label:N,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Rr.jsx)(tde,{label:N,value:m,onChange:M=>t({hideEmpty:M})})}),k&&(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:z,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Rr.jsx)(ade,{label:z,value:d,onChange:M=>t({showNested:M}),disabled:S,help:S?(0,xs.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Rr.jsx)(Pc.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:V,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Rr.jsx)(cde,{label:V,value:f,onChange:M=>t({perPage:M})})})]})}),(0,Rr.jsx)(mde,{TagName:l,setAttributes:r,clientId:o})]})}var bf=a(v(),1),u8e=[["core/term-template"]];function _de({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:n}=e,i=(0,q8.useBlockProps)(),l=(0,q8.useInnerBlocksProps)(i,{template:u8e}),s=(0,yde.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,bf.jsxs)(bf.Fragment,{children:[(0,bf.jsx)(bde,{attributes:e,setQuery:s,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,bf.jsx)(n,{...l})]})}var Z8=a(F(),1),K8=a($(),1),m0=a(T(),1),oz=a(v(),1);function xde({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:n,scopeVariations:i}=(0,Z8.useSelect)(m=>{let{getActiveBlockVariation:p,getBlockType:d,getBlockVariations:f}=m(K8.store);return{blockType:d(r),activeBlockVariation:p(r,e),scopeVariations:f(r,"block")}},[r,e]),l=n?.icon?.src||n?.icon||o?.icon?.src,s=n?.title||o?.title,{replaceInnerBlocks:c}=(0,Z8.useDispatch)(m0.store),u=(0,m0.useBlockProps)();return(0,oz.jsx)("div",{...u,children:(0,oz.jsx)(m0.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:m=>{m.innerBlocks&&c(t,(0,K8.createBlocksFromInnerBlocksTemplate)(m.innerBlocks),!1)}})})}var Cde=a(v(),1),m8e=e=>{let r=(0,kde.useSelect)(o=>!!o(wde.store).getBlocks(e.clientId).length,[e.clientId])?_de:xde;return(0,Cde.jsx)(r,{...e})},Sde=m8e;var Y8=a(T(),1),Tde=a(v(),1);function Pde({attributes:{tagName:e="div"}}){let t=Y8.useBlockProps.save(),r=Y8.useInnerBlocksProps.save(t);return(0,Tde.jsx)(e,{...r})}var Sy=a(B(),1),p0=a(R(),1),Ty=a(v(),1),p8e=(0,Ty.jsx)(p0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Ty.jsx)(p0.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"})}),d8e=(0,Ty.jsx)(p0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,Ty.jsx)(p0.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"})}),Bde=["core/term-name",{isLink:!0}],f8e=[{name:"name",title:(0,Sy.__)("Name"),description:(0,Sy.__)("Display the terms' names."),attributes:{},icon:p8e,scope:["block"],innerBlocks:[["core/term-template",{},[Bde]]]},{name:"name-count",title:(0,Sy.__)("Name & Count"),description:(0,Sy.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:d8e,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[Bde,["core/term-count"]]]]]]}],Ede=f8e;var{name:Nde}=G8,Ide={icon:Np,edit:Sde,save:Pde,example:{},variations:Ede},h8e=()=>I({name:Nde,metadata:G8,settings:Ide});var nz={};Z(nz,{init:()=>x8e,metadata:()=>Q8,name:()=>Fde,settings:()=>Hde});var Q8={$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 Dde=a(R(),1);var d0=a(j(),1),Lde=a(F(),1),Py=a(B(),1),kl=a(T(),1),Mde=a(X(),1),sa=a(v(),1),v8e=[["core/term-name"]];function b8e({classList:e}){let t=(0,kl.useInnerBlocksProps)({className:w("wp-block-term",e)},{template:v8e,__unstableDisableLayoutClassNames:!0});return(0,sa.jsx)("li",{...t})}function y8e({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,kl.__experimentalUseBlockPreview)({blocks:e,props:{className:w("wp-block-term",r)}}),l=()=>{n(t)};return(0,sa.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:o?"none":void 0}})}var _8e=(0,d0.memo)(y8e);function Ade({clientId:e,attributes:{layout:t},setAttributes:r,context:{termQuery:{taxonomy:o,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:m}){let{type:p,columnCount:d=3}=t||{},[f,h]=(0,d0.useState)(),g={hide_empty:l,order:n,orderby:i,per_page:c||-1};!s&&!u?.length&&(g.parent=0),u?.length&&(g.include=u,g.orderby="include",g.order="asc");let{records:b}=(0,Mde.useEntityRecords)("taxonomy",o,g),y=(0,Lde.useSelect)(S=>S(kl.store).getBlocks(e),[e]),_=(0,kl.useBlockProps)({className:m}),x=(0,d0.useMemo)(()=>b?.map(S=>({taxonomy:o,termId:S.id,classList:`term-${S.id}`,termData:S})),[b,o]);if(!b)return(0,sa.jsx)("ul",{..._,children:(0,sa.jsx)("li",{className:"wp-block-term term-loading",children:(0,sa.jsx)("div",{className:"term-loading-placeholder"})})});if(!b.length)return(0,sa.jsxs)("p",{..._,children:[" ",(0,Py.__)("No terms found.")]});let k=S=>r(C=>({layout:{...C.layout,...S}}));return(0,sa.jsxs)(sa.Fragment,{children:[(0,sa.jsx)(kl.BlockControls,{children:(0,sa.jsx)(Dde.ToolbarGroup,{controls:[{icon:Ll,title:(0,Py._x)("List view","Term template block display setting"),onClick:()=>k({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:Dl,title:(0,Py._x)("Grid view","Term template block display setting"),onClick:()=>k({type:"grid",columnCount:d}),isActive:p==="grid"}]})}),(0,sa.jsx)("ul",{..._,children:x?.map(S=>(0,sa.jsxs)(kl.BlockContextProvider,{value:S,children:[S.termId===(f||x[0]?.termId)?(0,sa.jsx)(b8e,{classList:S.classList}):null,(0,sa.jsx)(_8e,{blocks:y,blockContextId:S.termId,classList:S.classList,setActiveBlockContextId:h,isHidden:S.termId===(f||x[0]?.termId)})]},S.termId))})]})}var Rde=a(T(),1),zde=a(v(),1);function Vde(){return(0,zde.jsx)(Rde.InnerBlocks.Content,{})}var{name:Fde}=Q8,Hde={icon:Ep,edit:Ade,save:Vde,example:{}},x8e=()=>I({name:Fde,metadata:Q8,settings:Hde});var iz={};Z(iz,{init:()=>C8e,metadata:()=>J8,name:()=>Wde,settings:()=>$de});var f0=a(B(),1),X8=a(R(),1),Bc=a(T(),1),Ode=a(Uf(),1),Hi=a(v(),1);function jde({attributes:e,setAttributes:t}){let{width:r,content:o,columns:n}=e;return(0,Ode.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,Hi.jsxs)(Hi.Fragment,{children:[(0,Hi.jsx)(Bc.BlockControls,{children:(0,Hi.jsx)(Bc.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,Hi.jsx)(Bc.InspectorControls,{children:(0,Hi.jsx)(X8.PanelBody,{children:(0,Hi.jsx)(X8.RangeControl,{__next40pxDefaultSize:!0,label:(0,f0.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,Hi.jsx)("div",{...(0,Bc.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,Hi.jsx)("div",{className:"wp-block-column",children:(0,Hi.jsx)(Bc.RichText,{tagName:"p",value:o?.[l]?.children,onChange:s=>{t({content:[...o.slice(0,l),{children:s},...o.slice(l+1)]})},"aria-label":(0,f0.sprintf)((0,f0.__)("Column %d text"),l+1),placeholder:(0,f0.__)("New Column")})},`column-${l}`))})]})}var J8={$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 t7=a(T(),1),e7=a(v(),1);function Ude({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,e7.jsx)("div",{...t7.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((n,i)=>(0,e7.jsx)("div",{className:"wp-block-column",children:(0,e7.jsx)(t7.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var r7=a($(),1),w8e={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,r7.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:n})=>(0,r7.createBlock)("core/column",{},[(0,r7.createBlock)("core/paragraph",{content:n})])))}]},Gde=w8e;var{name:Wde}=J8,$de={transforms:Gde,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:jde,save:Ude},C8e=()=>I({name:Wde,metadata:J8,settings:$de});var mz={};Z(mz,{init:()=>D8e,metadata:()=>n7,name:()=>Jde,settings:()=>l7});var uz=a(B(),1);var Xde=a($(),1);var yf=a(T(),1);var h0=a(v(),1),S8e={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,h0.jsx)(yf.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:he},T8e={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=w({[`has-text-align-${t}`]:t});return(0,h0.jsx)("pre",{...yf.useBlockProps.save({className:o}),children:(0,h0.jsx)(yf.RichText.Content,{value:r})})},migrate(e){return he(Ut(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},P8e={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=w({[`has-text-align-${t}`]:t});return(0,h0.jsx)("pre",{...yf.useBlockProps.save({className:o}),children:(0,h0.jsx)(yf.RichText.Content,{value:r})})},migrate:he,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},qde=[P8e,T8e,S8e];var lz=a(B(),1),o7=a(T(),1),a7=a($(),1);var Zde=a(v(),1);function Kde(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:n,insertBlocksAfter:i,style:l}=e,{content:s}=t;vt(e);let c=(0,o7.useBlockProps)({style:l});return(0,Zde.jsx)(o7.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{r({content:u})},"aria-label":(0,lz.__)("Poetry text"),placeholder:(0,lz.__)("Write poetry\u2026"),onRemove:n,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>i((0,a7.createBlock)((0,a7.getDefaultBlockName)()))})}var n7={$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,__experimentalDefaultControls:{backgroundImage:!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 i7=a(T(),1),sz=a(v(),1);function Yde({attributes:e}){let{content:t}=e;return(0,sz.jsx)("pre",{...i7.useBlockProps.save(),children:(0,sz.jsx)(i7.RichText.Content,{value:t})})}var cz=a($(),1),E8e={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,cz.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,cz.createBlock)("core/paragraph",e)}]},Qde=E8e;var{fieldsKey:N8e,formKey:I8e}=W(Xde.privateApis),{name:Jde}=n7,l7={icon:R1,example:{attributes:{content:(0,uz.__)(`WHAT was he doing, the great god Pan,
142 +`+t.content}}},XBe=()=>D({name:Spe,metadata:yS,settings:Tpe});var mF={};J(mF,{init:()=>cIe,metadata:()=>xS,name:()=>Dpe,settings:()=>Ape});var pF=a(L(),1);var ut=a(I(),1),Ppe=a(H(),1);var tg="is-style-solid-color";var Jt=a(y(),1),Bx={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 Epe(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function rg(e){e=e||"<p></p>";let r=`</p>${e}<p>`.split("</p><p>");return r.shift(),r.pop(),r.join("<br>")}var JBe={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=!ut.RichText.isEmpty(r);return(0,Jt.jsx)("figure",{...ut.useBlockProps.save({className:T({[`has-text-align-${t}`]:t})}),children:(0,Jt.jsxs)("blockquote",{children:[(0,Jt.jsx)(ut.RichText.Content,{tagName:"p",value:o}),n&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:r})]})})},isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},migrate:we},eIe={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=!ut.RichText.isEmpty(r);return(0,Jt.jsx)("figure",{...ut.useBlockProps.save({className:T({[`has-text-align-${t}`]:t})}),children:(0,Jt.jsxs)("blockquote",{children:[(0,Jt.jsx)(ut.RichText.Content,{value:o,multiline:!0}),n&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:r})]})})},migrate({value:e,...t}){return we({value:rg(e),...t})}},tIe={attributes:{...Bx},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(tg),u,d;if(c){let g=(0,ut.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,ut.getColorClassName)("color",n),m=T({"has-text-color":n||o,[p]:p}),f=p?void 0:{color:o};return(0,Jt.jsx)("figure",{...ut.useBlockProps.save({className:u,style:d}),children:(0,Jt.jsxs)("blockquote",{className:m,style:f,children:[(0,Jt.jsx)(ut.RichText.Content,{value:i,multiline:!0}),!ut.RichText.isEmpty(s)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let s=t?.includes(tg),l;return o&&(s?l={color:{background:o}}:l={border:{color:o}}),n&&l&&(l.color={...l.color,text:n}),we({value:rg(e),className:t,backgroundColor:s?r:void 0,borderColor:s?void 0:r,textAlign:s?"left":void 0,...i,style:l})}},rIe={attributes:{...Bx,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(tg),d,p;if(u){let h=(0,ut.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:Epe(c)});let m=(0,ut.getColorClassName)("color",o),f=(o||n)&&T("has-text-color",{[m]:m});return(0,Jt.jsx)("figure",{className:d,style:p,children:(0,Jt.jsxs)("blockquote",{className:f,style:m?void 0:{color:n},children:[(0,Jt.jsx)(ut.RichText.Content,{value:i,multiline:!0}),!ut.RichText.isEmpty(s)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,figureStyle:r,mainColor:o,customMainColor:n,customTextColor:i,...s}){let l=t?.includes(tg),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=Epe(r);if(u)return{value:rg(e),...s,className:t,style:{border:{color:u}}}}return we({value:rg(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,...s,style:c})}},oIe={attributes:Bx,save({attributes:e}){let{mainColor:t,customMainColor:r,textColor:o,customTextColor:n,value:i,citation:s,className:l}=e,c=l?.includes(tg),u,d;if(c)u=(0,ut.getColorClassName)("background-color",t),u||(d={backgroundColor:r});else if(r)d={borderColor:r};else if(t){let g=(0,Ppe.select)(ut.store).getSettings().colors??[];d={borderColor:(0,ut.getColorObjectByAttributeValues)(g,t).color}}let p=(0,ut.getColorClassName)("color",o),m=o||n?T("has-text-color",{[p]:p}):void 0;return(0,Jt.jsx)("figure",{className:u,style:d,children:(0,Jt.jsxs)("blockquote",{className:m,style:p?void 0:{color:n},children:[(0,Jt.jsx)(ut.RichText.Content,{value:i,multiline:!0}),!ut.RichText.isEmpty(s)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:s})]})})},migrate({value:e,className:t,mainColor:r,customMainColor:o,customTextColor:n,...i}){let s=t?.includes(tg),l={};return o&&(s?l={color:{background:o}}:l={border:{color:o}}),n&&l&&(l.color={...l.color,text:n}),we({value:rg(e),className:t,backgroundColor:s?r:void 0,borderColor:s?void 0:r,textAlign:s?"left":void 0,...i,style:l})}},nIe={attributes:{...Bx},save({attributes:e}){let{value:t,citation:r}=e;return(0,Jt.jsxs)("blockquote",{children:[(0,Jt.jsx)(ut.RichText.Content,{value:t,multiline:!0}),!ut.RichText.isEmpty(r)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"cite",value:r})]})},migrate({value:e,...t}){return{value:rg(e),...t}}},aIe={attributes:{...Bx,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,Jt.jsxs)("blockquote",{className:`align${o}`,children:[(0,Jt.jsx)(ut.RichText.Content,{value:t,multiline:!0}),!ut.RichText.isEmpty(r)&&(0,Jt.jsx)(ut.RichText.Content,{tagName:"footer",value:r})]})},migrate({value:e,...t}){return{value:rg(e),...t}}},Bpe=[JBe,eIe,tIe,rIe,oIe,nIe,aIe];var Ix=a(L(),1),k0=a(I(),1),_S=a(te(),1);var Ipe="figure";var Npe="blockquote";var Qu=a(y(),1);function iIe(e){let{attributes:t,setAttributes:r,isSelected:o,insertBlocksAfter:n}=e;Pt(e);let{citation:i,value:s}=t,l=(0,k0.useBlockProps)(),c=!k0.RichText.isEmpty(i)||o;return(0,Qu.jsx)(Qu.Fragment,{children:(0,Qu.jsx)(Ipe,{...l,children:(0,Qu.jsxs)(Npe,{children:[(0,Qu.jsx)(k0.RichText,{identifier:"value",tagName:"p",value:s,onChange:u=>r({value:u}),"aria-label":(0,Ix.__)("Pullquote text"),placeholder:(0,Ix.__)("Add quote")}),c&&(0,Qu.jsx)(k0.RichText,{identifier:"citation",tagName:"cite",style:{display:"block"},value:i,"aria-label":(0,Ix.__)("Pullquote citation text"),placeholder:(0,Ix.__)("Add citation"),onChange:u=>r({citation:u}),className:"wp-block-pullquote__citation",__unstableOnSplitAtEnd:n?()=>n((0,_S.createBlock)((0,_S.getDefaultBlockName)())):void 0})]})})})}var Mpe=iIe;var xS={$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},shadow:!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 w0=a(I(),1),C0=a(y(),1);function Lpe({attributes:e}){let{citation:t,value:r}=e,o=!w0.RichText.isEmpty(t);return(0,C0.jsx)("figure",{...w0.useBlockProps.save(),children:(0,C0.jsxs)("blockquote",{children:[(0,C0.jsx)(w0.RichText.Content,{tagName:"p",value:r}),o&&(0,C0.jsx)(w0.RichText.Content,{tagName:"cite",value:t})]})})}var Xu=a(te(),1),S0=a(vl(),1),lIe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,Xu.createBlock)("core/pullquote",{value:(0,S0.toHTMLString)({value:(0,S0.join)(e.map(({content:t})=>(0,S0.create)({html:t})),`
143 +`)}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,Xu.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,Xu.createBlock)("core/paragraph",{content:e})),t&&r.push((0,Xu.createBlock)("core/paragraph",{content:t})),r.length===0?(0,Xu.createBlock)("core/paragraph",{content:""}):r}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Xu.createBlock)("core/heading",{content:t});let r=(0,Xu.createBlock)("core/heading",{content:e});return t?[r,(0,Xu.createBlock)("core/heading",{content:t})]:r}}]},Rpe=lIe;var{name:Dpe}=xS,Ape={icon:MI,example:{attributes:{value:(0,pF.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,pF.__)("Matt Mullenweg")}},transforms:Rpe,edit:Mpe,save:Lpe,deprecated:Bpe},cIe=()=>D({name:Dpe,metadata:xS,settings:Ape});var IF={};J(IF,{init:()=>VIe,metadata:()=>kS,name:()=>lfe,settings:()=>cfe});var kS={$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 qme=a(H(),1),Zme=a(W(),1),Kme=a(I(),1);var Dx=a(H(),1),jme=a(_e(),1),N0=a(W(),1),qs=a(I(),1),M0=a(L(),1),Ume=a(ae(),1),Wme=a(br(),1);var qpe=a(F(),1),ig=a(L(),1);var Kc=a(H(),1),ng=a(W(),1),Nx=a(ae(),1),wS=a(I(),1),Ope=a($o(),1),og=a(L(),1),ag=a(te(),1),Mx=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}},dIe=(e,t)=>{let r=t.split("."),o=e;return r.forEach(n=>{o=o?.[n]}),o},fF=(e,t)=>(e||[]).map(r=>({...r,name:(0,Ope.decodeEntities)(dIe(r,t))})),Fpe=()=>{let e=(0,Kc.useSelect)(n=>{let{getPostTypes:i}=n(Nx.store),s=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!s.includes(u))},[]),t=(0,ng.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),r=(0,ng.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),o=(0,ng.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:r,postTypeFormatSupportMap:o}},CS=e=>{let t=(0,Kc.useSelect)(r=>{let{getTaxonomies:o,getPostType:n}=r(Nx.store);return n(e)?.taxonomies?.length>0?o({type:e,per_page:-1}):[]},[e]);return(0,ng.useMemo)(()=>t?.filter(({visibility:r})=>!!r?.publicly_queryable),[t])};function Vpe(e){return(0,Kc.useSelect)(t=>{let r=t(Nx.store).getPostType(e);return r?.viewable&&r?.hierarchical},[e])}function zpe(e){let t=(0,Kc.useSelect)(r=>!!r(Nx.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,ng.useMemo)(()=>{let r=[{label:(0,og.__)("Newest to oldest"),value:"date/desc"},{label:(0,og.__)("Oldest to newest"),value:"date/asc"},{label:(0,og.__)("A \u2192 Z"),value:"title/asc"},{label:(0,og.__)("Z \u2192 A"),value:"title/desc"}];return t&&r.push({label:(0,og.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,og.__)("Descending by order"),value:"menu_order/desc"}),r},[t])}function Hpe(e){return(0,Kc.useSelect)(t=>t(ag.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function hi(e,t){return e?e.includes(t):!0}var jpe=(e,t)=>{let{query:{postType:r,inherit:o},namespace:n}=t,i=e.map(c=>(0,ag.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 Upe(e,t){return(0,Kc.useSelect)(r=>{let o=r(ag.store).getActiveBlockVariation("core/query",t)?.name;if(!o)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(wS.store),s=n(e);return i(`core/query/${o}`,s).length>0?`core/query/${o}`:"core/query"},[e,t])}function Wpe(e){let{activeVariationName:t,blockVariations:r}=(0,Kc.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:s}=n(ag.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:s("core/query","block")}},[e]);return(0,ng.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 Gpe=(e,t)=>(0,Kc.useSelect)(r=>{let{getBlockRootClientId:o,getPatternsByBlockTypes:n}=r(wS.store),i=o(e);return n(t,i)},[t,e]),SS=e=>(0,Kc.useSelect)(t=>{let{getClientIdsOfDescendants:r,getBlockName:o}=t(wS.store),{getBlockSupport:n,getBlockType:i}=t(ag.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 $pe(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 Lx=a(y(),1);function Zpe({enhancedPagination:e,setAttributes:t,clientId:r}){let o=SS(r),n=(0,ig.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return o.length&&(n=(0,ig.sprintf)((0,ig.__)("Some blocks aren't supported: %s. Remove them to change this setting."),o.join((0,ig.__)(", ")))),(0,Lx.jsx)(Lx.Fragment,{children:(0,Lx.jsx)(qpe.ToggleControl,{label:(0,ig.__)("Reload full page"),help:n,checked:!e,disabled:!!o.length,onChange:i=>{t({enhancedPagination:!i})}})})}var kt=a(F(),1),_F=a(H(),1),xF=a(ae(),1),It=a(L(),1),Ome=a(_e(),1),PS=a(W(),1);var Kpe=a(F(),1),T0=a(L(),1),Ype=a(y(),1),pIe=[{label:(0,T0.__)("Newest to oldest"),value:"date/desc"},{label:(0,T0.__)("Oldest to newest"),value:"date/asc"},{label:(0,T0.__)("A \u2192 Z"),value:"title/asc"},{label:(0,T0.__)("Z \u2192 A"),value:"title/desc"}];function mIe({order:e,orderBy:t,orderByOptions:r=pIe,onChange:o}){return(0,Ype.jsx)(Kpe.SelectControl,{label:(0,T0.__)("Order by"),value:`${t}/${e}`,options:r,onChange:n=>{let[i,s]=n.split("/");o({order:s,orderBy:i})}})}var Qpe=mIe;var Xpe=a(L(),1),Jpe=a(F(),1),eme=a(H(),1),tme=a(ae(),1);var rme=a(y(),1),fIe={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function gIe({value:e,onChange:t}){let r=(0,eme.useSelect)(c=>{let{getUsers:u}=c(tme.store);return u(fIe)},[]);if(!r)return null;let o=Mx(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,rme.jsx)(Jpe.FormTokenField,{label:(0,Xpe.__)("Authors"),value:i,suggestions:o.names,onChange:l,help:""})}var ome=gIe;var ame=a(L(),1),ime=a(F(),1),gF=a(H(),1),hF=a(ae(),1),Ju=a(W(),1),sme=a(_e(),1);var lme=a(y(),1),sg=[],nme={order:"asc",_fields:"id,title",context:"view"};function hIe({parents:e,postType:t,onChange:r}){let[o,n]=(0,Ju.useState)(""),[i,s]=(0,Ju.useState)(sg),[l,c]=(0,Ju.useState)(sg),u=(0,sme.useDebounce)(n,250),{searchResults:d,searchHasResolved:p}=(0,gF.useSelect)(b=>{if(!o)return{searchResults:sg,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:v}=b(hF.store),w=["postType",t,{...nme,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:_(...w),searchHasResolved:v("getEntityRecords",w)}},[o,t,e]),m=(0,gF.useSelect)(b=>{if(!e?.length)return sg;let{getEntityRecords:_}=b(hF.store);return _("postType",t,{...nme,include:e,per_page:e.length})},[e,t]);(0,Ju.useEffect)(()=>{if(e?.length||s(sg),!m?.length)return;let b=Mx(fF(m,"title.rendered")),_=e.reduce((v,w)=>{let x=b.mapById[w];return x&&v.push({id:w,value:x.name}),v},[]);s(_)},[e,m]);let f=(0,Ju.useMemo)(()=>d?.length?Mx(fF(d,"title.rendered")):sg,[d]);(0,Ju.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let g=(b,_)=>{let v=_?.id||b?.[_]?.id;if(v)return v},h=b=>{let _=Array.from(b.reduce((v,w)=>{let x=g(f.mapByName,w);return x&&v.add(x),v},new Set));c(sg),r({parents:_})};return(0,lme.jsx)(ime.FormTokenField,{label:(0,ame.__)("Parents"),value:i,onInputChange:u,suggestions:l,onChange:h,help:""})}var cme=hIe;var TS=a(F(),1),bF=a(H(),1),yF=a(ae(),1),ed=a(W(),1),pme=a(_e(),1),mme=a($o(),1),ES=a(L(),1);var zp=a(y(),1),E0=[],ume={order:"asc",_fields:"id,name",context:"view"},bIe=(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 fme({onChange:e,query:t}){let{postType:r,taxQuery:o}=t,n=CS(r);return n?.length?(0,zp.jsx)(TS.__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,zp.jsxs)(ed.Fragment,{children:[(0,zp.jsx)(dme,{taxonomy:i,termIds:s,oppositeTermIds:l,onChange:u=>c(u,"include"),label:i.name}),(0,zp.jsx)(dme,{taxonomy:i,termIds:l,oppositeTermIds:s,onChange:u=>c(u,"exclude"),label:(0,ES.sprintf)((0,ES.__)("Exclude: %s"),i.name)})]},i.slug)})}):null}function dme({taxonomy:e,termIds:t,oppositeTermIds:r,onChange:o,label:n}){let[i,s]=(0,ed.useState)(""),[l,c]=(0,ed.useState)(E0),[u,d]=(0,ed.useState)(E0),p=(0,pme.useDebounce)(s,250),{searchResults:m,searchHasResolved:f}=(0,bF.useSelect)(b=>{if(!i)return{searchResults:E0,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:v}=b(yF.store),w=[...t,...r],x=["taxonomy",e.slug,{...ume,search:i,orderby:"name",exclude:w,per_page:20}];return{searchResults:_(...x),searchHasResolved:v("getEntityRecords",x)}},[i,e.slug,t,r]),g=(0,bF.useSelect)(b=>{if(!t?.length)return E0;let{getEntityRecords:_}=b(yF.store);return _("taxonomy",e.slug,{...ume,include:t,per_page:t.length})},[e.slug,t]);return(0,ed.useEffect)(()=>{if(t?.length||c(E0),!g?.length)return;let b=t.reduce((_,v)=>{let w=g.find(x=>x.id===v);return w&&_.push({id:v,value:w.name}),_},[]);c(b)},[t,g]),(0,ed.useEffect)(()=>{f&&d(m.map(b=>b.name))},[m,f]),(0,zp.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,zp.jsx)(TS.FormTokenField,{label:n,value:l,onInputChange:p,suggestions:u,displayTransform:mme.decodeEntities,onChange:b=>{let _=new Set;for(let v of b){let w=bIe(m,v);w&&_.add(w)}d(E0),o(Array.from(_))},help:""})})}var gme=a(F(),1),hme=a(H(),1),bme=a(ae(),1),Gs=a(L(),1),yme=a(y(),1),yIe=[{value:"aside",label:(0,Gs.__)("Aside")},{value:"audio",label:(0,Gs.__)("Audio")},{value:"chat",label:(0,Gs.__)("Chat")},{value:"gallery",label:(0,Gs.__)("Gallery")},{value:"image",label:(0,Gs.__)("Image")},{value:"link",label:(0,Gs.__)("Link")},{value:"quote",label:(0,Gs.__)("Quote")},{value:"standard",label:(0,Gs.__)("Standard")},{value:"status",label:(0,Gs.__)("Status")},{value:"video",label:(0,Gs.__)("Video")}].sort((e,t)=>{let r=e.label.toUpperCase(),o=t.label.toUpperCase();return r<o?-1:r>o?1:0});function vIe(e,t){return e.map(r=>t.find(o=>o.label.toLocaleLowerCase()===r.toLocaleLowerCase())?.value).filter(Boolean)}function vme({onChange:e,query:{format:t}}){let r=Array.isArray(t)?t:[t],{supportedFormats:o}=(0,hme.useSelect)(l=>({supportedFormats:l(bme.store).getThemeSupports().formats}),[]),n=yIe.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,yme.jsx)(gme.FormTokenField,{label:(0,Gs.__)("Formats"),value:i,suggestions:s,onChange:l=>{e({format:vIe(l,n)})},help:"",__experimentalExpandOnFocus:!0})}var _me=a(F(),1),lg=a(L(),1),xme=a(y(),1),_Ie=[{label:(0,lg.__)("Include"),value:""},{label:(0,lg.__)("Ignore"),value:"ignore"},{label:(0,lg.__)("Exclude"),value:"exclude"},{label:(0,lg.__)("Only"),value:"only"}];function kme({value:e,onChange:t}){return(0,xme.jsx)(_me.SelectControl,{label:(0,lg.__)("Sticky posts"),options:_Ie,value:e,onChange:t,help:(0,lg.__)("Sticky posts always appear first, regardless of their publish date.")})}var Sme=a(F(),1),Tme=a(L(),1),Eme=a(y(),1),wme=1,Cme=100,xIe=({perPage:e,offset:t=0,onChange:r})=>(0,Eme.jsx)(Sme.RangeControl,{label:(0,Tme.__)("Items per page"),min:wme,max:Cme,onChange:o=>{isNaN(o)||o<wme||o>Cme||r({perPage:o,offset:t})},value:parseInt(e,10)}),Pme=xIe;var Ime=a(F(),1),Nme=a(L(),1),Mme=a(y(),1),Bme=0,kIe=100,wIe=({offset:e=0,onChange:t})=>(0,Mme.jsx)(Ime.__experimentalNumberControl,{label:(0,Nme._x)("Offset","Number of posts to skip in a query"),value:e,min:Bme,onChange:r=>{isNaN(r)||r<Bme||r>kIe||t({offset:r})}}),Lme=wIe;var Rme=a(F(),1),vF=a(L(),1),Dme=a(y(),1),CIe=({pages:e,onChange:t})=>(0,Dme.jsx)(Rme.__experimentalNumberControl,{label:(0,vF.__)("Max pages to show"),value:e,min:0,onChange:r=>{isNaN(r)||r<0||t({pages:r})},help:(0,vF.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),Ame=CIe;var et=a(y(),1);function Fme(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:b,format:_,excludeCurrent:v}=i,w=Hpe(t),x=d==="post",{postTypesTaxonomiesMap:k,postTypesSelectOptions:C,postTypeFormatSupportMap:S}=Fpe(),P=CS(d),B=Vpe(d),N=ge=>{let Qe={postType:ge},ye=k[ge];if(ye?.length&&h){let de=rr=>Object.entries(rr||{}).reduce((Ft,[gr,Wo])=>(ye.includes(gr)&&(Ft[gr]=Wo),Ft),{}),re={},Pe=de(h.include);Object.keys(Pe).length&&(re.include=Pe);let Se=de(h.exclude);Object.keys(Se).length&&(re.exclude=Se),Qe.taxQuery=Object.keys(re).length?re:void 0}ge!=="post"&&(Qe.sticky=""),Qe.parents=[],S[ge]||(Qe.format=[]),r(Qe)},[E,M]=(0,PS.useState)(i.search),R=(0,PS.useMemo)(()=>(0,Ome.debounce)(ge=>{r({search:ge})},250),[r]),O=zpe(d),j=hi(w,"inherit"),V=!g&&hi(w,"postType"),G=(0,It.__)("Post type"),$=(0,It.__)("Select the type of content to display: posts, pages, or custom post types."),z=!g&&hi(w,"order"),K=!g&&x&&hi(w,"sticky"),q=j||V||z||K,Y=!!P?.length&&hi(w,"taxQuery"),oe=hi(w,"author"),Z=hi(w,"search"),U=hi(w,"parents")&&B,X=S[d],Q=(0,_F.useSelect)(ge=>{if(!X||!hi(w,"format"))return!1;let Qe=ge(xF.store).getThemeSupports();return Qe.formats&&Qe.formats.length>0&&Qe.formats.some(ye=>ye!=="standard")},[w,X]),ie=n&&hi(w,"excludeCurrent"),me=(0,_F.useSelect)(ge=>ge(xF.store).getPostType(d)?.labels?.singular_name,[d]),xe=Y||oe||Z||U||Q||ie,Be=ee(),se=hi(w,"postCount"),he=hi(w,"offset"),ze=hi(w,"pages"),qe=se||he||ze,ce=o&&g;return(0,et.jsxs)(et.Fragment,{children:[q&&(0,et.jsxs)(kt.__experimentalToolsPanel,{label:(0,It.__)("Settings"),resetAll:()=>{r({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:Be,children:[j&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!g,label:(0,It.__)("Query type"),onDeselect:()=>r({inherit:!0}),isShownByDefault:!0,children:(0,et.jsxs)(kt.__experimentalVStack,{spacing:4,children:[(0,et.jsxs)(kt.__experimentalToggleGroupControl,{label:(0,It.__)("Query type"),isBlock:!0,onChange:ge=>{r({inherit:ge==="default"})},help:g?(0,It.__)("Display a list of posts or custom post types based on the current template."):(0,It.__)("Display a list of posts or custom post types based on specific criteria."),value:g?"default":"custom",children:[(0,et.jsx)(kt.__experimentalToggleGroupControlOption,{value:"default",label:(0,It.__)("Default")}),(0,et.jsx)(kt.__experimentalToggleGroupControlOption,{value:"custom",label:(0,It.__)("Custom")})]}),ce&&(0,et.jsx)(kt.Notice,{status:"warning",isDismissible:!1,children:(0,It.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),V&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>d!=="post",label:G,onDeselect:()=>N("post"),isShownByDefault:!0,children:C.length>2?(0,et.jsx)(kt.SelectControl,{options:C,value:d,label:G,onChange:N,help:$}):(0,et.jsx)(kt.__experimentalToggleGroupControl,{isBlock:!0,value:d,label:G,onChange:N,help:$,children:C.map(ge=>(0,et.jsx)(kt.__experimentalToggleGroupControlOption,{value:ge.value,label:ge.label},ge.value))})}),z&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>s!=="desc"||l!=="date",label:(0,It.__)("Order by"),onDeselect:()=>r({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,et.jsx)(Qpe,{order:s,orderBy:l,orderByOptions:O,onChange:r})}),K&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!f,label:(0,It.__)("Sticky posts"),onDeselect:()=>r({sticky:""}),isShownByDefault:!0,children:(0,et.jsx)(kme,{value:f,onChange:ge=>r({sticky:ge})})})]}),!g&&qe&&(0,et.jsxs)(kt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,It.__)("Display"),resetAll:()=>{r({offset:0,pages:0})},dropdownMenuProps:Be,children:[(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Items per page"),hasValue:()=>p>0,children:(0,et.jsx)(Pme,{perPage:p,offset:m,onChange:r})}),(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It._x)("Offset","Number of posts to skip in a query"),hasValue:()=>m>0,onDeselect:()=>r({offset:0}),children:(0,et.jsx)(Lme,{offset:m,onChange:r})}),(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Max pages to show"),hasValue:()=>u>0,onDeselect:()=>r({pages:0}),children:(0,et.jsx)(Ame,{pages:u,onChange:r})})]}),!g&&xe&&(0,et.jsxs)(kt.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,It.__)("Filters"),resetAll:()=>{r({author:"",parents:[],search:"",taxQuery:null,format:[],excludeCurrent:null}),M("")},dropdownMenuProps:Be,children:[Y&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Taxonomies"),hasValue:()=>Object.values(h||{}).some(ge=>Object.values(ge||{}).some(Qe=>!!Qe?.length)),onDeselect:()=>r({taxQuery:null}),children:(0,et.jsx)(fme,{onChange:r,query:i})}),oe&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,It.__)("Authors"),onDeselect:()=>r({author:""}),children:(0,et.jsx)(ome,{value:c,onChange:r})}),Z&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!E,label:(0,It.__)("Search terms"),onDeselect:()=>{r({search:""}),M("")},children:(0,et.jsx)(kt.TextControl,{label:(0,It.__)("Search terms"),help:(0,It.__)("Filter the query by keywords that appear in the content, title, or excerpt."),value:E,onChange:ge=>{R(ge),M(ge)}})}),U&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,It.__)("Parents"),onDeselect:()=>r({parents:[]}),children:(0,et.jsx)(cme,{parents:b,postType:d,onChange:r})}),Q&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{hasValue:()=>!!_?.length,label:(0,It.__)("Formats"),onDeselect:()=>r({format:[]}),children:(0,et.jsx)(vme,{onChange:r,query:i})}),ie&&(0,et.jsx)(kt.__experimentalToolsPanelItem,{label:(0,It.__)("Exclude"),hasValue:()=>v!=null,onDeselect:()=>r({excludeCurrent:null}),children:(0,et.jsx)(kt.ToggleControl,{label:(0,It.__)("Exclude current"),help:(0,It.sprintf)((0,It.__)("Exclude the current %s from the query."),me),checked:!!v,onChange:ge=>{r({excludeCurrent:!!ge})}})})]})]})}var I0=a(F(),1),wF=a(L(),1),Hme=a(H(),1),NS=a(I(),1);var P0=a(W(),1),Vme=a(H(),1),IS=a(F(),1),B0=a(I(),1),BS=a(L(),1);var td=a(y(),1);function zme({clientId:e,attributes:t,setIsPatternSelectionModalOpen:r}){return(0,td.jsx)(IS.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,BS.__)("Choose a pattern"),onRequestClose:()=>r(!1),isFullScreen:!0,children:(0,td.jsx)(kF,{clientId:e,attributes:t})})}function Rx(e,t){let r=Upe(e,t),o=Gpe(e,r);return(0,P0.useMemo)(()=>o.filter(i=>i.blocks?.[0]?.name==="core/query"),[o])}function kF({clientId:e,attributes:t,showTitlesAsTooltip:r=!1,showSearch:o=!0}){let[n,i]=(0,P0.useState)(""),{replaceBlock:s,selectBlock:l}=(0,Vme.useDispatch)(B0.store),c=Rx(e,t),u=(0,P0.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),d=(0,P0.useMemo)(()=>N2(c,n),[c,n]),p=(m,f)=>{let{newBlocks:g,queryClientIds:h}=jpe(f,t);s(e,g),h[0]&&l(h[0])};return(0,td.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[o&&(0,td.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,td.jsx)(IS.SearchControl,{onChange:i,value:n,label:(0,BS.__)("Search"),placeholder:(0,BS.__)("Search")})}),(0,td.jsx)(B0.BlockContextProvider,{value:u,children:(0,td.jsx)(B0.__experimentalBlockPatternsList,{blockPatterns:d,onClickPattern:p,showTitlesAsTooltip:r})})]})}var cg=a(y(),1);function SIe({clientId:e,attributes:t,hasInnerBlocks:r}){if(!Rx(e,t).length)return null;let n=r?(0,wF.__)("Change design"):(0,wF.__)("Choose pattern");return(0,cg.jsx)(NS.BlockControls,{group:"other",children:(0,cg.jsx)(I0.__experimentalDropdownContentWrapper,{children:(0,cg.jsx)(I0.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:s})=>(0,cg.jsx)(I0.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:s,children:n}),renderContent:()=>(0,cg.jsx)(kF,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}function MS(e){return(0,Hme.useSelect)(r=>{let{isLockedBlock:o}=le(r(NS.store));return o(e.clientId)},[e.clientId])?null:(0,cg.jsx)(SIe,{...e})}var $s=a(y(),1),{HTMLElementControl:TIe}=le(qs.privateApis),EIe=3;function CF({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}=$pe(p),{__unstableMarkNextChangeAsNotPersistent:h}=(0,Dx.useDispatch)(qs.store),{createNotice:b}=(0,Dx.useDispatch)(Wme.store),_=SS(r),v=(0,jme.useInstanceId)(CF),w=(0,qs.useBlockProps)(),x=(0,qs.useInnerBlocksProps)(w),{postsPerPage:k}=(0,Dx.useSelect)(P=>{let{getSettings:B}=P(qs.store),{getEntityRecord:N,getEntityRecordEdits:E,canUser:M}=P(Ume.store),R=M("read",{kind:"root",name:"site"})?+N("root","site")?.posts_per_page:+B().postsPerPage;return{postsPerPage:+E("root","site")?.posts_per_page||R||EIe}},[]),C=f&&!d&&(l.postType===m||l.postType===g),S=(0,N0.useCallback)(P=>t(B=>({query:{...B.query,...P}})),[t]);return(0,N0.useEffect)(()=>{let P={};(d&&l.perPage!==k||!l.perPage&&k)&&(P.perPage=k),!C&&l.excludeCurrent!==void 0&&l.excludeCurrent!==null&&(P.excludeCurrent=null),Object.keys(P).length&&(h(),S(P))},[l.perPage,l.excludeCurrent,d,k,C,h,S]),(0,N0.useEffect)(()=>{Number.isFinite(s)||(h(),t({queryId:v}))},[s,v,h,t]),(0,N0.useEffect)(()=>{if(c&&_.length){h(),t({enhancedPagination:!1});let P=(0,M0.sprintf)((0,M0.__)(`"Reload full page" was enabled because some blocks inside the Query block aren't supported: %s.`),_.join((0,M0.__)(", ")));b("info",P,{type:"snackbar",id:"query-enhanced-pagination-disabled"})}},[c,_,h,t,b]),(0,$s.jsxs)($s.Fragment,{children:[i&&(0,$s.jsx)(MS,{clientId:r,attributes:e,hasInnerBlocks:!0}),(0,$s.jsx)(qs.InspectorControls,{children:(0,$s.jsx)(Fme,{name:n,attributes:e,setQuery:S,setAttributes:t,clientId:r,isSingular:f,shouldExcludeCurrentPost:C})}),(0,$s.jsxs)(qs.InspectorControls,{group:"advanced",children:[(0,$s.jsx)(TIe,{tagName:u,onChange:P=>t({tagName:P}),clientId:r,options:[{label:(0,M0.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,$s.jsx)(Zpe,{enhancedPagination:c,setAttributes:t,clientId:r})]}),(0,$s.jsx)(u,{...x})]})}var RS=a(H(),1),DS=a(te(),1),SF=a(W(),1),ug=a(I(),1),Ax=a(F(),1),LS=a(L(),1),Gme=a(_e(),1);var Yc=a(y(),1);function $me({attributes:e,clientId:t,name:r,openPatternSelectionModal:o,isSelected:n}){let[i,s]=(0,SF.useState)(!1),[l,c]=(0,SF.useState)(0),u=(0,Gme.useResizeObserver)(([v])=>{c(v.contentRect.width)}),p=l>0&&l<160,{blockType:m,activeBlockVariation:f}=(0,RS.useSelect)(v=>{let{getActiveBlockVariation:w,getBlockType:x}=v(DS.store);return{blockType:x(r),activeBlockVariation:w(r,e)}},[r,e]),g=!!Rx(t,e).length,h=f?.icon?.src||f?.icon||m?.icon?.src,b=f?.title||m?.title,_=(0,ug.useBlockProps)({ref:u});return i?(0,Yc.jsx)(PIe,{clientId:t,attributes:e,icon:h,label:b}):(0,Yc.jsxs)("div",{..._,children:[n&&(0,Yc.jsx)(MS,{clientId:t,attributes:e,hasInnerBlocks:!1}),(0,Yc.jsxs)(Ax.Placeholder,{className:"block-editor-media-placeholder",icon:!p&&h,label:!p&&b,instructions:!p&&(0,LS.__)("Choose a pattern for the query loop or start blank."),withIllustration:p,children:[!!g&&!p&&(0,Yc.jsx)(Ax.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,LS.__)("Choose")}),!p&&(0,Yc.jsx)(Ax.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{s(!0)},children:(0,LS.__)("Start blank")})]})]})}function PIe({clientId:e,attributes:t,icon:r,label:o}){let n=Wpe(t),{replaceInnerBlocks:i}=(0,RS.useDispatch)(ug.store),s=(0,ug.useBlockProps)();return(0,Yc.jsx)("div",{...s,children:(0,Yc.jsx)(ug.__experimentalBlockVariationPicker,{icon:r,label:o,variations:n,onSelect:l=>{l.innerBlocks&&i(e,(0,DS.createBlocksFromInnerBlocksTemplate)(l.innerBlocks),!1)}})})}var dg=a(y(),1),BIe=e=>{let{clientId:t,attributes:r}=e,[o,n]=(0,Zme.useState)(!1),s=(0,qme.useSelect)(l=>!!l(Kme.store).getBlocks(t).length,[t])?CF:$me;return(0,dg.jsxs)(dg.Fragment,{children:[(0,dg.jsx)(s,{...e,openPatternSelectionModal:()=>n(!0)}),o&&(0,dg.jsx)(zme,{clientId:t,attributes:r,setIsPatternSelectionModalOpen:n})]})},Yme=BIe;var AS=a(I(),1),Qme=a(y(),1);function Xme({attributes:{tagName:e="div"}}){let t=AS.useBlockProps.save(),r=AS.useInnerBlocksProps.save(t);return(0,Qme.jsx)(e,{...r})}var Ox=a(L(),1);var Qc=a(F(),1),rd=a(y(),1),Jme=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),efe=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),tfe=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),rfe=(0,rd.jsx)(Qc.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,rd.jsx)(Qc.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var TF=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],IIe=[{name:"title-date",title:(0,Ox.__)("Title & Date"),icon:Jme,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],TF]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Ox.__)("Title & Excerpt"),icon:efe,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,Ox.__)("Title, Date, & Excerpt"),icon:tfe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],TF,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Ox.__)("Image, Date, & Title"),icon:rfe,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],TF,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],ofe=IIe;var OS=a(te(),1),aa=a(I(),1);var pg=a(y(),1),{cleanEmptyObject:EF}=le(aa.privateApis),PF=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}},nfe=(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=EF({...r,color:void 0,elements:{...r.elements,link:void 0}})),NIe(t)){let u=t[0],p=r?.color||r?.elements?.link||u.attributes.style?EF({...u.attributes.style,color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0}):void 0,m=(0,OS.createBlock)("core/group",{...u.attributes,backgroundColor:o,gradient:n,textColor:i,style:p},u.innerBlocks);return[s,[m]]}let c=(0,OS.createBlock)("core/group",{backgroundColor:o,gradient:n,textColor:i,style:EF({color:r?.color,elements:r?.elements?.link?{link:r?.elements?.link}:void 0})},t);return[s,[c]]},NIe=(e=[])=>e.length===1&&e[0].name==="core/group",BF=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},afe=(e=[])=>{let t=null;for(let r of e)if(r.name==="core/post-template"){t=r;break}else r.innerBlocks.length&&(t=afe(r.innerBlocks));return t},ife=(e=[],t)=>(e.forEach((r,o)=>{r.name==="core/post-template"?e.splice(o,1,t):r.innerBlocks.length&&(r.innerBlocks=ife(r.innerBlocks,t))}),e),L0=(e,t)=>{let{displayLayout:r=null,...o}=e;if(!r)return[e,t];let n=afe(t);if(!n)return[e,t];let{type:i,columns:s}=r,l=i==="flex"?"grid":"default",c=(0,OS.createBlock)("core/post-template",{...n.attributes,layout:{type:l,...s&&{columnCount:s}}},n.innerBlocks);return[o,ife(t,c)]},MIe={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=PF(e),{layout:o,...n}=r,i={...n,displayLayout:r.layout};return L0(i,t)},save(){return(0,pg.jsx)(aa.InnerBlocks.Content,{})}},LIe={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=PF(e),[o,n]=nfe(r,t),i=BF(o);return L0(i,n)},save({attributes:{tagName:e="div"}}){let t=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})}},RIe={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]=nfe(e,t),n=BF(r);return L0(n,o)},save({attributes:{tagName:e="div"}}){let t=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})}},DIe={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=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let r=BF(e);return L0(r,t)}},AIe={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=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})},isEligible:({displayLayout:e})=>!!e,migrate:L0},OIe={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=aa.useBlockProps.save(),r=aa.useInnerBlocksProps.save(t);return(0,pg.jsx)(e,{...r})},isEligible:({query:{taxQuery:e}={}})=>!!e&&Object.keys(e).some(t=>!["include","exclude"].includes(t)),migrate(e,t){let r=PF(e);return L0(r,t)}},FIe=[OIe,AIe,DIe,RIe,LIe,MIe],sfe=FIe;var{name:lfe}=kS,cfe={icon:bm,edit:Yme,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:Xme,variations:ofe,deprecated:sfe},VIe=()=>D({name:lfe,metadata:kS,settings:cfe});var MF={};J(MF,{init:()=>jIe,metadata:()=>FS,name:()=>gfe,settings:()=>hfe});var NF=a(L(),1);var FS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,link:!0,heading:!0,button:!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},shadow:!0},style:"wp-block-query-no-results"};var VS=a(I(),1),ufe=a(y(),1);function dfe(){let e=(0,VS.useBlockProps)(),t=(0,VS.useInnerBlocksProps)(e);return(0,ufe.jsx)("div",{...t})}var pfe=a(I(),1),mfe=a(y(),1);function ffe(){return(0,mfe.jsx)(pfe.InnerBlocks.Content,{})}var HIe=[["core/paragraph",{placeholder:(0,NF.__)("Add text or blocks that will display when a query returns no results.")}]],{name:gfe}=FS,hfe={icon:bm,template:HIe,edit:dfe,save:ffe,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,NF.__)("No posts were found.")}}]}},jIe=()=>D({name:gfe,metadata:FS,settings:hfe});var DF={};J(DF,{init:()=>$Ie,metadata:()=>zS,name:()=>Efe,settings:()=>Pfe});var zS={$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,background:{gradient:!0},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 HS=a(L(),1),od=a(I(),1),jS=a(H(),1),Fx=a(F(),1),xfe=a(W(),1);var mg=a(L(),1),R0=a(F(),1),D0=a(y(),1);function bfe({value:e,onChange:t}){return(0,D0.jsxs)(R0.__experimentalToggleGroupControl,{label:(0,mg.__)("Arrow"),value:e,onChange:t,help:(0,mg.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,D0.jsx)(R0.__experimentalToggleGroupControlOption,{value:"none",label:(0,mg._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,D0.jsx)(R0.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,mg._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,D0.jsx)(R0.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,mg._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var LF=a(L(),1),yfe=a(F(),1),vfe=a(y(),1);function _fe({value:e,onChange:t}){return(0,vfe.jsx)(yfe.ToggleControl,{label:(0,LF.__)("Show label text"),help:(0,LF.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Zs=a(y(),1);function kfe({attributes:{paginationArrow:e,showLabel:t},setAttributes:r,clientId:o}){let n=(0,jS.useSelect)(u=>{let{getBlocks:d}=u(od.store);return d(o)?.find(m=>["core/query-pagination-next","core/query-pagination-previous"].includes(m.name))},[o]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,jS.useDispatch)(od.store),s=ee(),l=(0,od.useBlockProps)(),c=(0,od.useInnerBlocksProps)(l);return(0,xfe.useEffect)(()=>{e==="none"&&!t&&(i(),r({showLabel:!0}))},[e,r,t,i]),(0,Zs.jsxs)(Zs.Fragment,{children:[n&&(0,Zs.jsx)(od.InspectorControls,{children:(0,Zs.jsxs)(Fx.__experimentalToolsPanel,{label:(0,HS.__)("Settings"),resetAll:()=>{r({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:s,children:[(0,Zs.jsx)(Fx.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,HS.__)("Pagination arrow"),onDeselect:()=>r({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Zs.jsx)(bfe,{value:e,onChange:u=>{r({paginationArrow:u})}})}),e!=="none"&&(0,Zs.jsx)(Fx.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,HS.__)("Show text"),onDeselect:()=>r({showLabel:!0}),isShownByDefault:!0,children:(0,Zs.jsx)(_fe,{value:t,onChange:u=>{r({showLabel:u})}})})]})}),(0,Zs.jsx)("nav",{...c})]})}var wfe=a(I(),1),Cfe=a(y(),1);function Sfe(){return(0,Cfe.jsx)(wfe.InnerBlocks.Content,{})}var US=a(I(),1),RF=a(y(),1),WIe=[{save(){return(0,RF.jsx)("div",{...US.useBlockProps.save(),children:(0,RF.jsx)(US.InnerBlocks.Content,{})})}}],Tfe=WIe;var{name:Efe}=zS,GIe=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]],Pfe={icon:Iv,template:GIe,edit:kfe,save:Sfe,deprecated:Tfe},$Ie=()=>D({name:Efe,metadata:zS,settings:Pfe});var OF={};J(OF,{init:()=>KIe,metadata:()=>WS,name:()=>Ife,settings:()=>Nfe});var WS={$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,background:{gradient:!0},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 AF=a(L(),1),GS=a(I(),1),Vx=a(y(),1),ZIe={none:"",arrow:"\u2192",chevron:"\xBB"};function Bfe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=ZIe[r];return(0,Vx.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,GS.useBlockProps)(),children:[o&&(0,Vx.jsx)(GS.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,AF.__)("Next page link"),placeholder:(0,AF.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,Vx.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${r}`,"aria-hidden":!0,children:n})]})}var{name:Ife}=WS,Nfe={icon:Ev,edit:Bfe},KIe=()=>D({name:Ife,metadata:WS,settings:Nfe});var FF={};J(FF,{init:()=>XIe,metadata:()=>$S,name:()=>Lfe,settings:()=>Rfe});var $S={$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,background:{gradient:!0},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 Hx=a(L(),1),qS=a(I(),1),A0=a(F(),1);var ds=a(y(),1),zx=(e,t="a",r="")=>(0,ds.jsx)(t,{className:`page-numbers ${r}`,children:e},e),QIe=e=>{let t=[];for(let r=1;r<=e;r++)t.push(zx(r));t.push(zx(e+1,"span","current"));for(let r=1;r<=e;r++)t.push(zx(e+1+r));return t.push(zx("...","span","dots")),t.push(zx(e*2+3)),(0,ds.jsx)(ds.Fragment,{children:t})};function Mfe({attributes:e,setAttributes:t}){let{midSize:r}=e,o=QIe(parseInt(r,10)),n=ee();return(0,ds.jsxs)(ds.Fragment,{children:[(0,ds.jsx)(qS.InspectorControls,{children:(0,ds.jsx)(A0.__experimentalToolsPanel,{label:(0,Hx.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,ds.jsx)(A0.__experimentalToolsPanelItem,{label:(0,Hx.__)("Number of links"),hasValue:()=>r!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,ds.jsx)(A0.RangeControl,{label:(0,Hx.__)("Number of links"),help:(0,Hx.__)("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,ds.jsx)("div",{...(0,qS.useBlockProps)(),children:o})]})}var{name:Lfe}=$S,Rfe={icon:Pv,edit:Mfe,example:{}},XIe=()=>D({name:Lfe,metadata:$S,settings:Rfe});var zF={};J(zF,{init:()=>tNe,metadata:()=>ZS,name:()=>Afe,settings:()=>Ofe});var ZS={$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,background:{gradient:!0},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 VF=a(L(),1),KS=a(I(),1),jx=a(y(),1),eNe={none:"",arrow:"\u2190",chevron:"\xAB"};function Dfe({attributes:{label:e},setAttributes:t,context:{paginationArrow:r,showLabel:o}}){let n=eNe[r];return(0,jx.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,KS.useBlockProps)(),children:[n&&(0,jx.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${r}`,"aria-hidden":!0,children:n}),o&&(0,jx.jsx)(KS.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,VF.__)("Previous page link"),placeholder:(0,VF.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:Afe}=ZS,Ofe={icon:Bv,edit:Dfe},tNe=()=>D({name:Afe,metadata:ZS,settings:Ofe});var WF={};J(WF,{init:()=>iNe,metadata:()=>YS,name:()=>Gfe,settings:()=>$fe});var YS={$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,background:{gradient:!0},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 Ks=a(I(),1),Ys=a(F(),1),ur=a(L(),1);var HF=a(ae(),1),jF=a(H(),1);function Ffe(){let e=(0,jF.useSelect)(s=>{let{getCurrentPostId:l,getCurrentPostType:c,getCurrentTemplateId:u}=s("core/editor"),d=c(),p=u()||(d==="wp_template"?l():null);return p?s(HF.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,jF.useSelect)(s=>{let{getEntityRecords:l,getTaxonomy:c,getAuthors:u}=s(HF.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 Vfe=a(ae(),1),UF=a(H(),1);function zfe(e){let t=(0,UF.useSelect)(r=>{let{getCurrentPostType:o}=r("core/editor");return o()},[]);return(0,UF.useSelect)(r=>{let{getPostType:o}=r(Vfe.store),i=o(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var Dt=a(y(),1),oNe=["archive","search","post-type"];function Hfe(e){Pt(e);let{attributes:{type:t,level:r,levelOptions:o,showPrefix:n,showSearchTerm:i},setAttributes:s,context:{query:l}}=e,{archiveTypeLabel:c,archiveNameLabel:u}=Ffe(),{postTypeLabel:d}=zfe(l?.postType),p=ee(),m=r===0?"p":`h${r}`,f=(0,Ks.useBlockProps)({className:"wp-block-query-title__placeholder"});if(!oNe.includes(t))return(0,Dt.jsx)("div",{...f,children:(0,Dt.jsx)(Ks.Warning,{children:(0,ur.__)("Provided type is not supported.")})});let g;if(t==="archive"){let h;c?n?u?h=(0,ur.sprintf)((0,ur._x)("%1$s: %2$s","archive label"),c,u):h=(0,ur.sprintf)((0,ur.__)("%s: Name"),c):u?h=u:h=(0,ur.sprintf)((0,ur.__)("%s name"),c):h=n?(0,ur.__)("Archive type: Name"):(0,ur.__)("Archive title"),g=(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.InspectorControls,{children:(0,Dt.jsx)(Ys.__experimentalToolsPanel,{label:(0,ur.__)("Settings"),resetAll:()=>s({showPrefix:!0}),dropdownMenuProps:p,children:(0,Dt.jsx)(Ys.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,ur.__)("Show archive type in title"),onDeselect:()=>s({showPrefix:!0}),isShownByDefault:!0,children:(0,Dt.jsx)(Ys.ToggleControl,{label:(0,ur.__)("Show archive type in title"),onChange:()=>s({showPrefix:!n}),checked:n})})})}),(0,Dt.jsx)(m,{...f,children:h})]})}if(t==="search"&&(g=(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.InspectorControls,{children:(0,Dt.jsx)(Ys.__experimentalToolsPanel,{label:(0,ur.__)("Settings"),resetAll:()=>s({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,Dt.jsx)(Ys.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,ur.__)("Show search term in title"),onDeselect:()=>s({showSearchTerm:!0}),isShownByDefault:!0,children:(0,Dt.jsx)(Ys.ToggleControl,{label:(0,ur.__)("Show search term in title"),onChange:()=>s({showSearchTerm:!i}),checked:i})})})}),(0,Dt.jsx)(m,{...f,children:i?(0,ur.__)("Search results for: \u201Csearch term\u201D"):(0,ur.__)("Search results")})]})),t==="post-type"){let h;d?n?h=(0,ur.sprintf)((0,ur.__)('Post Type: "%s"'),d):h=d:h=n?(0,ur.__)("Post Type: Name"):(0,ur.__)("Name"),g=(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.InspectorControls,{children:(0,Dt.jsx)(Ys.__experimentalToolsPanel,{label:(0,ur.__)("Settings"),resetAll:()=>s({showPrefix:!0}),dropdownMenuProps:p,children:(0,Dt.jsx)(Ys.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,ur.__)("Show post type label"),onDeselect:()=>s({showPrefix:!0}),isShownByDefault:!0,children:(0,Dt.jsx)(Ys.ToggleControl,{label:(0,ur.__)("Show post type label"),onChange:()=>s({showPrefix:!n}),checked:n})})})}),(0,Dt.jsx)(m,{...f,children:h})]})}return(0,Dt.jsxs)(Dt.Fragment,{children:[(0,Dt.jsx)(Ks.BlockControls,{group:"block",children:(0,Dt.jsx)(Ks.HeadingLevelDropdown,{value:r,options:o,onChange:h=>s({level:h})})}),g]})}var fg=a(L(),1);var jfe=[{isDefault:!0,name:"archive-title",title:(0,fg.__)("Archive Title"),description:(0,fg.__)("Display the archive title based on the queried object."),icon:ml,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,fg.__)("Search Results Title"),description:(0,fg.__)("Display the search results title based on the queried object."),icon:ml,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,fg.__)("Post Type Label"),description:(0,fg.__)("Display the post type label based on the queried object."),icon:ml,attributes:{type:"post-type"},scope:["inserter"]}];jfe.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.type===r.type)});var Ufe=jfe;var nNe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},aNe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},Wfe=[nNe,aNe];var{name:Gfe}=YS,$fe={icon:ml,edit:Hfe,variations:Ufe,deprecated:Wfe},iNe=()=>D({name:Gfe,metadata:YS,settings:$fe});var qF={};J(qF,{init:()=>lNe,metadata:()=>QS,name:()=>Kfe,settings:()=>Yfe});var QS={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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}},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var XS=a(I(),1),JS=a(F(),1),O0=a(L(),1);var Hp=a(F(),1),gg=a(y(),1),GF=(0,gg.jsx)(Hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gg.jsx)(Hp.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),$F=(0,gg.jsx)(Hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gg.jsx)(Hp.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),qfe=(0,gg.jsx)(Hp.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,gg.jsx)(Hp.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 Zl=a(y(),1);function Zfe({attributes:e,setAttributes:t}){let{displayType:r}=e,o=(0,XS.useBlockProps)(),n=()=>{switch(r){case"total-results":return GF;case"range-display":return $F}},i=[{role:"menuitemradio",title:(0,O0.__)("Total results"),isActive:r==="total-results",icon:GF,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,O0.__)("Range display"),isActive:r==="range-display",icon:$F,onClick:()=>{t({displayType:"range-display"})}}],s=(0,Zl.jsx)(XS.BlockControls,{children:(0,Zl.jsx)(JS.ToolbarGroup,{children:(0,Zl.jsx)(JS.ToolbarDropdownMenu,{icon:n(),label:(0,O0.__)("Change display type"),controls:i})})});return(0,Zl.jsxs)("div",{...o,children:[s,r==="total-results"?(0,Zl.jsx)(Zl.Fragment,{children:(0,O0.__)("12 results found")}):r==="range-display"?(0,Zl.jsx)(Zl.Fragment,{children:(0,O0.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:Kfe}=QS,Yfe={icon:qfe,edit:Zfe},lNe=()=>D({name:Kfe,metadata:QS,settings:Yfe});var KF={};J(KF,{init:()=>vNe,metadata:()=>e8,name:()=>age,settings:()=>ige});var ZF=a(L(),1);var Ux=a(te(),1),vo=a(I(),1),Cn=a(y(),1),jp=e=>{let{value:t,...r}=e;return[{...r},t?(0,Ux.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:o})=>(0,Ux.createBlock)("core/paragraph",{content:o})):(0,Ux.createBlock)("core/paragraph")]},Qfe=["left","right","center"],hg=(e,t)=>{let{align:r,...o}=e;return[Qfe.includes(r)?{...o,textAlign:r}:e,t]},cNe=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],uNe={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})=>Qfe.includes(e),save({attributes:e}){let{align:t,citation:r}=e,o=T({[`has-text-align-${t}`]:t});return(0,Cn.jsxs)("blockquote",{...vo.useBlockProps.save({className:o}),children:[(0,Cn.jsx)(vo.InnerBlocks.Content,{}),!vo.RichText.isEmpty(r)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:r})]})},migrate:hg},dNe={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,Cn.jsxs)("blockquote",{...vo.useBlockProps.save({className:n}),children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})},migrate(e){return hg(...jp(e))}},pNe={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 hg(...jp(e))},save({attributes:e}){let{align:t,value:r,citation:o}=e;return(0,Cn.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})}},mNe={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 hg(...cNe(...jp(r)))}return hg(...jp(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,Cn.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"cite",value:o})]})}},fNe={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 hg(...jp(r))}return hg(...jp(e))},save({attributes:e}){let{align:t,value:r,citation:o,style:n}=e;return(0,Cn.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,Cn.jsx)(vo.RichText.Content,{multiline:!0,value:r}),!vo.RichText.isEmpty(o)&&(0,Cn.jsx)(vo.RichText.Content,{tagName:"footer",value:o})]})}},Xfe=[uNe,dNe,pNe,mNe,fNe];var Wx=a(L(),1),Qs=a(I(),1),Jfe=a(F(),1),F0=a(H(),1),ege=a(W(),1),tge=a(jm(),1);var nd=a(y(),1),gNe=(e,t)=>{let r=(0,F0.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:n,selectBlock:i}=(0,F0.useDispatch)(Qs.store);(0,ege.useEffect)(()=>{if(!e.value)return;let[s,l]=jp(e);(0,tge.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"});let c=r.select(Qs.store).hasSelectedInnerBlock(t,!0);r.batch(()=>{o(t,s),n(t,l),c&&i(t)})},[e.value])};function rge({attributes:e,setAttributes:t,insertBlocksAfter:r,clientId:o,className:n,isSelected:i}){let{textAlign:s,allowedBlocks:l}=e,{hasInnerBlocks:c}=(0,F0.useSelect)(p=>{let{getBlockCount:m}=p(Qs.store);return{hasInnerBlocks:m(o)>0}},[o]);gNe(e,o);let u=(0,Qs.useBlockProps)({className:T(n,{[`has-text-align-${s}`]:s})}),d=(0,Qs.useInnerBlocksProps)(u,{__experimentalCaptureToolbars:!0,renderAppender:c?!1:void 0,allowedBlocks:l});return(0,nd.jsxs)(nd.Fragment,{children:[(0,nd.jsx)(Qs.BlockControls,{group:"block",children:(0,nd.jsx)(Qs.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,nd.jsxs)(Jfe.BlockQuotation,{...d,children:[d.children,(0,nd.jsx)(Zo,{attributeKey:"citation",tagName:"cite",style:{display:"block"},isSelected:i,attributes:e,setAttributes:t,icon:h_,label:(0,Wx.__)("Quote citation"),placeholder:(0,Wx.__)("Add citation"),addLabel:(0,Wx.__)("Add citation"),removeLabel:(0,Wx.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:r})]})]})}var e8={$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}},shadow:!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 bg=a(I(),1),Gx=a(y(),1);function oge({attributes:e}){let{textAlign:t,citation:r}=e,o=T({[`has-text-align-${t}`]:t});return(0,Gx.jsxs)("blockquote",{...bg.useBlockProps.save({className:o}),children:[(0,Gx.jsx)(bg.InnerBlocks.Content,{}),!bg.RichText.isEmpty(r)&&(0,Gx.jsx)(bg.RichText.Content,{tagName:"cite",value:r})]})}var $x=a(I(),1),Qr=a(te(),1),bNe={from:[{type:"block",blocks:["core/verse"],transform:({content:e})=>(0,Qr.createBlock)("core/quote",{},[(0,Qr.createBlock)("core/paragraph",{content:e})])},{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:r,anchor:o,fontSize:n,style:i})=>(0,Qr.createBlock)("core/quote",{align:t,citation:r,anchor:o,fontSize:n,style:i},[(0,Qr.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Qr.createBlock)("core/quote",{},[(0,Qr.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Qr.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,Qr.createBlock)("core/quote",{},e.map(t=>(0,Qr.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,Qr.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,Qr.switchToBlockType)(t,"core/paragraph")!==null),transform:({},e)=>{let r=e.flatMap(o=>o.name==="core/paragraph"?o:(0,Qr.switchToBlockType)(o,"core/paragraph")||[]).map(({attributes:o})=>o.content||"").filter(Boolean).join("<br>");return(0,Qr.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,Qr.switchToBlockType)(o,"core/paragraph")!==null):!$x.RichText.isEmpty(e)},transform:({citation:e},t)=>{let r=t.flatMap(o=>o.name==="core/paragraph"?o:(0,Qr.switchToBlockType)(o,"core/paragraph")||[]);return $x.RichText.isEmpty(e)?r:[...r,(0,Qr.createBlock)("core/paragraph",{content:e})]}},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},r)=>(0,Qr.createBlock)("core/group",{anchor:t},$x.RichText.isEmpty(e)?r:[...r,(0,Qr.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>$x.RichText.isEmpty(e)?t:[...t,(0,Qr.createBlock)("core/paragraph",{content:e})]},nge=bNe;var{name:age}=e8,yNe=[["core/paragraph",{}]],ige={icon:AI,example:{attributes:{citation:(0,ZF.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,ZF.__)("In quoting others, we cite ourselves.")}}]},transforms:nge,template:yNe,templateInsertUpdatesSelection:!0,edit:rge,save:oge,deprecated:Xfe},vNe=()=>D({name:age,metadata:e8,settings:ige});var YF={};J(YF,{init:()=>MNe,metadata:()=>t8,name:()=>bge,settings:()=>yge});var fge=a(ae(),1),gge=a(H(),1),hge=a($o(),1);var t8={$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 Zx=a(H(),1),Kx=a(W(),1),V0=a(ae(),1),Xc=a(F(),1),qx=a(L(),1),Xr=a(I(),1),uge=a(lge(),1),dge=a(te(),1);var Er=a(y(),1),{useLayoutClasses:xNe}=le(Xr.privateApis),{isOverridableBlock:kNe}=le(uge.privateApis),wNe=["full","wide","left","right"],CNe=(e,t)=>{let r=(0,Kx.useRef)();return(0,Kx.useMemo)(()=>{if(!e?.length)return{};let o=r.current;if(o===void 0){let i=t?.type==="constrained",s=e.some(l=>wNe.includes(l.attributes.align));o=i&&s?"full":null,r.current=o}return{alignment:o,layout:o?t:void 0}},[e,t])};function SNe(){let e=(0,Xr.useBlockProps)();return(0,Er.jsx)("div",{...e,children:(0,Er.jsx)(Xr.Warning,{children:(0,qx.__)("Block cannot be rendered inside itself.")})})}var cge=()=>{};function pge(e){let{ref:t}=e.attributes;return(0,Xr.useHasRecursion)(t)?(0,Er.jsx)(SNe,{}):(0,Er.jsx)(Xr.RecursionProvider,{uniqueId:t,children:(0,Er.jsx)(PNe,{...e})})}function TNe({recordId:e,canOverrideBlocks:t,hasContent:r,handleEditOriginal:o,resetContent:n}){let i=(0,Zx.useSelect)(s=>!!s(V0.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,Er.jsxs)(Er.Fragment,{children:[i&&!!o&&(0,Er.jsx)(Xr.BlockControls,{group:"other",children:(0,Er.jsx)(Xc.ToolbarGroup,{children:(0,Er.jsx)(Xc.ToolbarButton,{onClick:o,children:(0,qx.__)("Edit original")})})}),t&&(0,Er.jsx)(Xr.BlockControls,{group:"other",children:(0,Er.jsx)(Xc.ToolbarGroup,{children:(0,Er.jsx)(Xc.ToolbarButton,{onClick:n,disabled:!r,children:(0,qx.__)("Reset")})})})]})}var ENe={};function PNe({name:e,attributes:{ref:t,content:r},__unstableParentLayout:o,setAttributes:n}){let{record:i,hasResolved:s}=(0,V0.useEntityRecord)("postType","wp_block",t),[l]=(0,V0.useEntityBlockEditor)("postType","wp_block",{id:t}),c=s&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,Zx.useDispatch)(Xr.store),{onNavigateToEntityRecord:d,hasPatternOverridesSource:p,supportedBlockTypesRaw:m}=(0,Zx.useSelect)(C=>{let{getSettings:S}=C(Xr.store);return{onNavigateToEntityRecord:S().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,dge.getBlockBindingsSource)("core/pattern-overrides"),supportedBlockTypesRaw:S().__experimentalBlockBindingsSupportedAttributes||ENe}},[]),f=(0,Kx.useMemo)(()=>{let C=Object.keys(m),S=P=>P?.some(B=>C.includes(B.name)&&kNe(B)?!0:S(B.innerBlocks));return p&&S(l)},[p,l,m]),{alignment:g,layout:h}=CNe(l,o),b=xNe({layout:h},e),_=(0,Xr.useBlockProps)({className:T("block-library-block__reusable-block-container",h&&b,{[`align${g}`]:g})}),v=(0,Xr.useInnerBlocksProps)(_,{layout:h,value:l,onInput:cge,onChange:cge,renderAppender:l?.length?void 0:Xr.InnerBlocks.ButtonBlockAppender}),w=()=>{d({postId:t,postType:"wp_block"})},x=()=>{r&&(u(),n({content:void 0}))},k=null;return c&&(k=(0,Er.jsx)(Xr.Warning,{children:(0,qx.__)("Block has been deleted or is unavailable.")})),s||(k=(0,Er.jsx)(Xc.Placeholder,{children:(0,Er.jsx)(Xc.Spinner,{})})),(0,Er.jsxs)(Er.Fragment,{children:[s&&!c&&(0,Er.jsx)(TNe,{recordId:t,canOverrideBlocks:f,hasContent:!!r,handleEditOriginal:d?w:void 0,resetContent:x}),k===null?(0,Er.jsx)("div",{...v}):(0,Er.jsx)("div",{..._,children:k})]})}var BNe=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,INe={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&&BNe(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}},NNe={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}}},mge=[INe,NNe];var{name:bge}=t8,yge={deprecated:mge,edit:pge,icon:aN,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,gge.select)(fge.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,hge.decodeEntities)(t.title)}},MNe=()=>D({name:bge,metadata:t8,settings:yge});var QF={};J(QF,{init:()=>RNe,metadata:()=>r8,name:()=>xge,settings:()=>kge});var _ge=a(L(),1);var r8={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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}},shadow:!0,interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var H0=a(I(),1),j0=a(F(),1),o8=a(te(),1),z0=a(L(),1);var Jc=a(y(),1);function vge({attributes:{content:e,linkTarget:t},setAttributes:r,insertBlocksAfter:o}){let n=(0,H0.useBlockProps)(),i=ee();return(0,Jc.jsxs)(Jc.Fragment,{children:[(0,Jc.jsx)(H0.InspectorControls,{children:(0,Jc.jsx)(j0.__experimentalToolsPanel,{label:(0,z0.__)("Settings"),resetAll:()=>r({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,Jc.jsx)(j0.__experimentalToolsPanelItem,{label:(0,z0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>r({linkTarget:"_self"}),children:(0,Jc.jsx)(j0.ToggleControl,{label:(0,z0.__)("Open in new tab"),onChange:s=>r({linkTarget:s?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,Jc.jsx)(H0.RichText,{identifier:"content",tagName:"a","aria-label":(0,z0.__)("\u201CRead more\u201D link text"),placeholder:(0,z0.__)("Read more"),value:e,onChange:s=>r({content:s}),__unstableOnSplitAtEnd:o?()=>o((0,o8.createBlock)((0,o8.getDefaultBlockName)())):void 0,withoutInteractiveFormatting:!0,...n})]})}var{name:xge}=r8,kge={icon:Pi,edit:vge,example:{attributes:{content:(0,_ge.__)("Read more")}}},RNe=()=>D({name:xge,metadata:r8,settings:kge});var XF={};J(XF,{init:()=>FNe,metadata:()=>n8,name:()=>Ege,settings:()=>Pge});var n8={$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}},shadow:!0,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var yg=a(I(),1),Et=a(F(),1),a8=a(W(),1);var Ut=a(L(),1),wge=a(qt(),1),Cge=a(bd(),1),Sge=a(_e(),1);var ft=a(y(),1),ANe=1,ONe=20;function Tge({attributes:e,setAttributes:t,name:r}){let[o,n]=(0,a8.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=ee();function b(B){return()=>{let N=e[B];t({[B]:!N})}}function _(B){B.preventDefault(),p&&(t({feedURL:(0,wge.prependHTTPS)(p)}),n(!1))}let{content:v,status:w,error:x}=(0,Cge.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),k=(0,Sge.useDisabled)(),C=(0,yg.useBlockProps)({ref:o?null:k}),S=(0,Ut.__)("RSS URL");if(o)return(0,ft.jsx)("div",{...C,children:(0,ft.jsx)(Et.Placeholder,{icon:Dv,label:S,instructions:(0,Ut.__)("Display entries from any RSS or Atom feed."),children:(0,ft.jsxs)("form",{onSubmit:_,className:"wp-block-rss__placeholder-form",children:[(0,ft.jsx)(Et.__experimentalInputControl,{label:S,type:"url",hideLabelFromVision:!0,placeholder:(0,Ut.__)("Enter URL here\u2026"),value:p,onChange:B=>t({feedURL:B}),className:"wp-block-rss__placeholder-input"}),(0,ft.jsx)(Et.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Ut.__)("Apply")})]})})});let P=[{icon:vm,title:(0,Ut.__)("Edit RSS URL"),onClick:()=>n(!0)},{icon:pl,title:(0,Ut._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:i==="list"},{icon:Ei,title:(0,Ut._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:i==="grid"}];return(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(yg.BlockControls,{children:(0,ft.jsx)(Et.ToolbarGroup,{controls:P})}),(0,ft.jsx)(yg.InspectorControls,{children:(0,ft.jsxs)(Et.__experimentalToolsPanel,{label:(0,Ut.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:h,children:[(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Number of items"),hasValue:()=>m!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,ft.jsx)(Et.RangeControl,{label:(0,Ut.__)("Number of items"),value:m,onChange:B=>t({itemsToShow:B}),min:ANe,max:ONe,required:!0})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Display author"),hasValue:()=>!!l,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Display author"),checked:l,onChange:b("displayAuthor")})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Display date"),hasValue:()=>!!c,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Display date"),checked:c,onChange:b("displayDate")})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Display excerpt"),hasValue:()=>!!u,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Display excerpt"),checked:u,onChange:b("displayExcerpt")})}),u&&(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Max number of words in excerpt"),hasValue:()=>d!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,ft.jsx)(Et.RangeControl,{label:(0,Ut.__)("Max number of words in excerpt"),value:d,onChange:B=>t({excerptLength:B}),min:10,max:100,required:!0})}),i==="grid"&&(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Columns"),hasValue:()=>s!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,ft.jsx)(Et.RangeControl,{label:(0,Ut.__)("Columns"),value:s,onChange:B=>t({columns:B}),min:2,max:6,required:!0})}),(0,ft.jsx)(Et.__experimentalToolsPanelItem,{label:(0,Ut.__)("Open links in new tab"),hasValue:()=>!!f,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,ft.jsx)(Et.ToggleControl,{label:(0,Ut.__)("Open links in new tab"),checked:f,onChange:B=>t({openInNewTab:B})})})]})}),(0,ft.jsx)(yg.InspectorControls,{group:"advanced",children:(0,ft.jsx)(Et.TextControl,{label:(0,Ut.__)("Link relation"),help:(0,a8.createInterpolateElement)((0,Ut.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,ft.jsx)(Et.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:g||"",onChange:B=>t({rel:B})})}),w==="loading"&&(0,ft.jsx)("div",{...C,children:(0,ft.jsx)(Et.Spinner,{})}),w==="error"&&(0,ft.jsx)("div",{...C,children:(0,ft.jsx)("p",{children:(0,Ut.sprintf)((0,Ut.__)("Error: %s"),x)})}),w==="success"&&(0,ft.jsx)(Eo,{wrapperProps:C,html:v})]})}var{name:Ege}=n8,Pge={icon:Dv,example:{attributes:{feedURL:"https://wordpress.org"}},edit:Tge},FNe=()=>D({name:Ege,metadata:n8,settings:Pge});var aV={};J(aV,{init:()=>jNe,metadata:()=>i8,name:()=>Oge,settings:()=>Fge});var nV=a(L(),1);var i8={$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 so=a(I(),1),s8=a(H(),1),Yx=a(W(),1),mr=a(F(),1),Mge=a(_e(),1);var At=a(L(),1),Lge=a(ma(),1),Rge=a(O_(),1),l8=a(A(),1);var JF=50,eV=350,tV=220;function rV(e){return e==="%"}var wt=a(y(),1),Bge={"":(0,At.__)("Lets the theme decide. Uses the <search> landmark element if the theme opts in, otherwise a <form>."),search:(0,At.__)("Wraps the block in a <search> landmark, announced as a search region by assistive technologies."),form:(0,At.__)('Uses a <form role="search"> wrapper for backward compatibility with existing theme styles.')},Ige="4px",Nge=[25,50,75,100],zNe=(0,wt.jsx)(l8.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,wt.jsx)(l8.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 Dge({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:b}=t,_=(0,s8.useSelect)(se=>{let{getBlockParentsByBlockName:he,wasBlockJustInserted:ze}=se(so.store);return!!he(i,"core/navigation")?.length&&ze(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:v}=(0,s8.useDispatch)(so.store);(0,Yx.useEffect)(()=>{_&&(v(),r({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[v,_,r]);let w=b?.border?.radius,x=(0,so.__experimentalUseBorderProps)(t);typeof w=="number"&&(x={...x,style:{...x.style,borderRadius:`${w}px`}});let k=(0,so.__experimentalUseColorProps)(t),[C,S]=(0,so.useSettings)("typography.fluid","layout"),P=(0,so.getTypographyClassesAndStyles)(t,{typography:{fluid:C},layout:{wideSize:S?.wideSize}}),N=`wp-block-search__width-${(0,Mge.useInstanceId)(mr.__experimentalUnitControl)}`,E=f==="button-inside",M=f==="button-outside",R=f==="no-button",O=f==="button-only",j=O&&!n,V=(0,Yx.useRef)(),G=(0,Yx.useRef)(),$=(0,mr.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":JF,px:eV}}),z=()=>T(e,E?"wp-block-search__button-inside":void 0,M?"wp-block-search__button-outside":void 0,R?"wp-block-search__no-button":void 0,O?"wp-block-search__button-only":void 0,!g&&!R?"wp-block-search__text-button":void 0,g&&!R?"wp-block-search__icon-button":void 0,j?"wp-block-search__searchfield-hidden":void 0),K=[{label:(0,At.__)("Button outside"),value:"button-outside"},{label:(0,At.__)("Button inside"),value:"button-inside"},{label:(0,At.__)("No button"),value:"no-button"},{label:(0,At.__)("Button only"),value:"button-only"}],q=()=>O?{}:{right:p!=="right",left:p==="right"},Y=()=>{let se=T("wp-block-search__input",R?k.className:void 0,E?void 0:x.className,P.className),he={...R?k.style:{},...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style,...P.style,textDecoration:void 0};return(0,wt.jsx)("input",{type:"search",className:se,style:he,"aria-label":(0,At.__)("Optional placeholder text"),placeholder:c?void 0:(0,At.__)("Optional placeholder\u2026"),value:c,onChange:ze=>r({placeholder:ze.target.value}),ref:V})},oe=()=>{let se=T("wp-block-search__button",k.className,P.className,E?void 0:x.className,g?"has-icon":void 0,(0,so.__experimentalGetElementClassName)("button")),he={...k.style,...P.style,...E?{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius}:x.style};return(0,wt.jsxs)(wt.Fragment,{children:[g&&(0,wt.jsx)("button",{type:"button",className:se,style:he,"aria-label":m?(0,Lge.__unstableStripHTML)(m):(0,At.__)("Search"),ref:G,children:(0,wt.jsx)(fa,{icon:zNe})}),!g&&(0,wt.jsx)(so.RichText,{identifier:"buttonText",className:se,style:he,"aria-label":(0,At.__)("Button text"),placeholder:(0,At.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:m,onChange:ze=>r({buttonText:ze})})]})},Z=ee(),U=(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(so.InspectorControls,{children:(0,wt.jsxs)(mr.__experimentalToolsPanel,{label:(0,At.__)("Settings"),resetAll:()=>{r({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside"})},dropdownMenuProps:Z,children:[(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,At.__)("Show label"),onDeselect:()=>{r({showLabel:!0})},isShownByDefault:!0,children:(0,wt.jsx)(mr.ToggleControl,{checked:l,label:(0,At.__)("Show label"),onChange:se=>r({showLabel:se})})}),(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,At.__)("Button position"),onDeselect:()=>{r({buttonPosition:"button-outside"})},isShownByDefault:!0,children:(0,wt.jsx)(mr.SelectControl,{value:f,label:(0,At.__)("Button position"),onChange:se=>{r({buttonPosition:se})},options:K})}),f!=="no-button"&&(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,At.__)("Use button with icon"),onDeselect:()=>{r({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,wt.jsx)(mr.ToggleControl,{checked:g,label:(0,At.__)("Use button with icon"),onChange:se=>r({buttonUseIcon:se})})}),(0,wt.jsx)(mr.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,At.__)("Width"),onDeselect:()=>{r({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,wt.jsxs)(mr.__experimentalVStack,{children:[(0,wt.jsx)(mr.__experimentalUnitControl,{label:(0,At.__)("Width"),id:N,min:rV(d)?0:tV,max:rV(d)?100:void 0,step:1,onChange:se=>{let he=se===""?void 0:parseInt(se,10);r({width:he})},onUnitChange:se=>{r({width:se==="%"?JF:eV,widthUnit:se})},__unstableInputWidth:"80px",value:`${u}${d}`,units:$}),(0,wt.jsx)(mr.__experimentalToggleGroupControl,{label:(0,At.__)("Percentage Width"),value:Nge.includes(u)&&d==="%"?u:void 0,hideLabelFromVision:!0,onChange:se=>{r({width:se,widthUnit:"%"})},isBlock:!0,children:Nge.map(se=>(0,wt.jsx)(mr.__experimentalToggleGroupControlOption,{value:se,label:(0,At.sprintf)((0,At.__)("%d%%"),se)},se))})]})})]})}),(0,wt.jsx)(so.InspectorControls,{group:"advanced",children:(0,wt.jsx)(mr.SelectControl,{label:(0,At.__)("HTML element"),value:h??"",options:[{label:(0,At.__)("Default"),value:""},{label:"<search>",value:"search"},{label:"<form>",value:"form"}],onChange:se=>{r({tagName:se}),(0,Rge.speak)(Bge[se].replace(/[<>]/g,""))},help:Bge[h??""]})})]}),X=se=>se!==void 0&&parseInt(se,10)!==0,Q=se=>X(se)?`calc(${se} + ${Ige})`:void 0,ie=()=>{let se=E?x.style:{borderRadius:x.style?.borderRadius,borderTopLeftRadius:x.style?.borderTopLeftRadius,borderTopRightRadius:x.style?.borderTopRightRadius,borderBottomLeftRadius:x.style?.borderBottomLeftRadius,borderBottomRightRadius:x.style?.borderBottomRightRadius};if(E){if(typeof w=="object"){let{borderTopLeftRadius:ze,borderTopRightRadius:qe,borderBottomLeftRadius:ce,borderBottomRightRadius:ge}=x.style;return{...se,borderTopLeftRadius:Q(ze),borderTopRightRadius:Q(qe),borderBottomLeftRadius:Q(ce),borderBottomRightRadius:Q(ge)}}let he=Number.isInteger(w)?`${w}px`:w;se.borderRadius=`calc(${he} + ${Ige})`}return se},me=(0,so.useBlockProps)({className:z(),style:{...P.style,textDecoration:void 0}}),xe=T("wp-block-search__label",P.className);return(0,wt.jsxs)(wt.Fragment,{children:[U,(0,wt.jsxs)(h==="search"?"search":"div",{...me,children:[l&&(0,wt.jsx)(so.RichText,{identifier:"label",className:xe,"aria-label":(0,At.__)("Label text"),placeholder:(0,At.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:s,onChange:se=>r({label:se}),style:P.style}),(0,wt.jsxs)(mr.ResizableBox,{size:{width:u===void 0?"auto":`${u}${d}`,height:"auto"},className:T("wp-block-search__inside-wrapper",E?x.className:void 0),style:ie(),minWidth:tV,enable:q(),onResizeStart:(se,he,ze)=>{r({width:parseInt(ze.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(se,he,ze,qe)=>{r({width:parseInt(u+qe.width,10)}),o(!0)},showHandle:n,children:[(E||M||O)&&(0,wt.jsxs)(wt.Fragment,{children:[Y(),oe()]}),R&&Y()]})]})]})}var oV=a(L(),1),HNe=[{name:"default",isDefault:!0,attributes:{buttonText:(0,oV.__)("Search"),label:(0,oV.__)("Search")}}],Age=HNe;var{name:Oge}=i8,Fge={icon:qI,example:{attributes:{buttonText:(0,nV.__)("Search"),label:(0,nV.__)("Search")},viewportWidth:400},variations:Age,edit:Dge},jNe=()=>D({name:Oge,metadata:i8,settings:Fge});var iV={};J(iV,{init:()=>qNe,metadata:()=>u8,name:()=>qge,settings:()=>Zge});var Up=a(I(),1),c8=a(F(),1),Xx=a(L(),1);var Qx=a(W(),1),Vge=a(_e(),1);function zge(e,t,r){let[o,n]=(0,Qx.useState)(!1),i=(0,Vge.usePrevious)(t);(0,Qx.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,Qx.useEffect)(()=>{e==="css"&&(o&&t||i&&t!==i)&&(r({opacity:"alpha-channel"}),n(!1))},[o,t,i])}var ad=a(y(),1),UNe=({tagName:e,setAttributes:t})=>(0,ad.jsx)(c8.SelectControl,{label:(0,Xx.__)("HTML element"),value:e,onChange:r=>t({tagName:r}),options:[{label:(0,Xx.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,Xx.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,Xx.__)("The <div> element should only be used if the block is a design element with no semantic meaning.")});function Hge({attributes:e,setAttributes:t}){let{backgroundColor:r,opacity:o,style:n,tagName:i}=e,s=(0,Up.__experimentalUseColorProps)(e),l=s?.style?.backgroundColor,c=!!n?.color?.background;zge(o,l,t);let u=(0,Up.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,ad.jsxs)(ad.Fragment,{children:[(0,ad.jsx)(Up.InspectorControls,{group:"advanced",children:(0,ad.jsx)(UNe,{tagName:i,setAttributes:t})}),(0,ad.jsx)(i==="hr"?c8.HorizontalRule:i,{...(0,Up.useBlockProps)({className:d,style:c?{color:l,backgroundColor:l}:void 0})})]})}var u8={$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 U0=a(I(),1),jge=a(y(),1);function Uge({attributes:e}){let{backgroundColor:t,style:r,opacity:o,tagName:n}=e,i=r?.color?.background,s=(0,U0.__experimentalGetColorClassesAndStyles)(e),l=(0,U0.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,jge.jsx)(n,{...U0.useBlockProps.save({className:c,style:u})})}var Wp=a(te(),1),GNe={from:[{type:"input",regExp:/^-{3,}$/,transform:()=>{let e=(0,Wp.getBlockVariations)("core/separator")?.find(t=>t.isDefault);return[(0,Wp.createBlock)("core/separator",e?.attributes??{}),(0,Wp.createBlock)((0,Wp.getDefaultBlockName)())]}},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,Wp.createBlock)("core/spacer",{anchor:e||void 0})}]},Wge=GNe;var Jx=a(I(),1),Gge=a(y(),1),$Ne={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:r}=e,o=(0,Jx.getColorClassName)("background-color",t),n=(0,Jx.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,Gge.jsx)("hr",{...Jx.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"}}},$ge=[$Ne];var{name:qge}=u8,Zge={icon:KI,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Wge,edit:Hge,save:Uge,deprecated:$ge},qNe=()=>D({name:qge,metadata:u8,settings:Zge});var lV={};J(lV,{init:()=>XNe,metadata:()=>h8,name:()=>ihe,settings:()=>she});var d8=a(L(),1),m8=a(I(),1),Kge=a(_e(),1),Yge=a(F(),1);var p8=a(y(),1);function sV({attributes:e,setAttributes:t}){let o=`blocks-shortcode-input-${(0,Kge.useInstanceId)(sV)}`;return(0,p8.jsx)("div",{...(0,m8.useBlockProps)(),children:(0,p8.jsx)(Yge.Placeholder,{icon:Ov,label:(0,d8.__)("Shortcode"),children:(0,p8.jsx)(m8.PlainText,{className:"blocks-shortcode__textarea",id:o,value:e.text,"aria-label":(0,d8.__)("Shortcode text"),placeholder:(0,d8.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var Qge=a(W(),1),Xge=a(y(),1);function Jge({attributes:e}){return(0,Xge.jsx)(Qge.RawHTML,{children:e.text})}var f8=a(the(),1),g8=a(te(),1),nhe=a(ohe(),1),ZNe=()=>(0,g8.getBlockTransforms)("from").filter(e=>e.type==="shortcode"&&e.blockName!=="core/shortcode"),KNe=(e,t)=>{let r=e.trim(),o=(0,nhe.next)(t,r);return!!o&&o.index===0&&o.content.length===r.length},YNe={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,f8.removep)((0,f8.autop)(t))}},priority:20}],get to(){return ZNe().map(e=>({type:"block",blocks:[e.blockName],isMatch:({text:t=""})=>[].concat(e.tag).some(r=>KNe(t,r)),transform:({text:t=""})=>(0,g8.rawHandler)({HTML:`<p>${t.trim()}</p>`})}))}},ahe=YNe;var h8={$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:ihe}=h8,she={icon:Ov,transforms:ahe,edit:sV,save:Jge},XNe=()=>D({name:ihe,metadata:h8,settings:she});var uV={};J(uV,{init:()=>nMe,metadata:()=>b8,name:()=>mhe,settings:()=>fhe});var b8={$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 cV=a(Ur(),1),eu=a(W(),1),_o=a(L(),1),Ot=a(F(),1),lhe=a(_e(),1),xo=a(I(),1),Gp=a(H(),1),W0=a(ae(),1);var che=a(br(),1);var $e=a(y(),1),y8=["image"],{mediaEditKey:eMe,openMediaEditorModalKey:tMe}=le(xo.privateApis),rMe=({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 b=(0,lhe.useViewportMatch)("medium"),v=!["wide","full"].includes(t)&&b,[{naturalWidth:w,naturalHeight:x},k]=(0,eu.useState)({}),C=(0,eu.useRef)(),{toggleSelection:S,__unstableMarkNextChangeAsNotPersistent:P}=(0,Gp.useDispatch)(xo.store),B=ee(),E=(0,xo.useBlockEditingMode)()==="contentOnly",{imageEditing:M,maxWidth:R,title:O,editMediaEntity:j,openMediaEditorModal:V}=(0,Gp.useSelect)(ce=>{let ge=ce(xo.store).getSettings();return{title:ce(W0.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:ge.imageEditing,maxWidth:ge.maxWidth,editMediaEntity:ge?.[eMe],openMediaEditorModal:ge?.[tMe]}},[]);(0,eu.useEffect)(()=>{s&&m!==f&&(P(),c({shouldSyncIcon:!1}))},[]);let G=({id:ce})=>{typeof ce=="number"&&u(ce)};function $(){S(!1)}function z(){S(!0)}let K=(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("img",{className:"custom-logo",src:d,alt:e,onLoad:ce=>{k({naturalWidth:ce.target.naturalWidth,naturalHeight:ce.target.naturalHeight})}}),(0,cV.isBlobURL)(d)&&(0,$e.jsx)(Ot.Spinner,{})]}),q=K;if(n&&(q=(0,$e.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:O,onClick:ce=>ce.preventDefault(),children:K})),!v||!w||!x)return(0,$e.jsx)("div",{style:{width:r,height:o},children:q});let Y=120,oe=r||Y,Z=w/x,U=oe/Z,X=w<x?Tc:Math.ceil(Tc*Z),Q=x<w?Tc:Math.ceil(Tc/Z),ie=R*2.5,me=!1,xe=!1;t==="center"?(me=!0,xe=!0):(0,_o.isRTL)()?t==="left"?me=!0:xe=!0:t==="right"?xe=!0:me=!0;let Be=m&&w&&x&&M&&!!j,se=!E,ze=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",qe=(0,eu.createInterpolateElement)((0,_o.__)("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,$e.jsx)("a",{href:ze,target:"_blank",rel:"noopener"})});return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(xo.InspectorControls,{children:(0,$e.jsxs)(Ot.__experimentalToolsPanel,{label:(0,_o.__)("Settings"),dropdownMenuProps:B,children:[(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!r,label:(0,_o.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,$e.jsx)(Ot.RangeControl,{label:(0,_o.__)("Image width"),onChange:ce=>c({width:ce}),min:X,max:ie,initialPosition:Math.min(Y,ie),value:r||"",disabled:!v})}),(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,_o.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,$e.jsx)(Ot.ToggleControl,{label:(0,_o.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,_o.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,$e.jsx)(Ot.ToggleControl,{label:(0,_o.__)("Open in new tab"),onChange:ce=>c({linkTarget:ce?"_blank":"_self"}),checked:i==="_blank"})}),h&&(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!s,label:(0,_o.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),g(void 0)},children:(0,$e.jsx)(Ot.ToggleControl,{label:(0,_o.__)("Use as Site Icon"),onChange:ce=>{c({shouldSyncIcon:ce}),g(ce?m:void 0)},checked:!!s,help:qe})})]})}),Be&&V&&se&&(0,$e.jsx)(xo.BlockControls,{group:"block",children:(0,$e.jsx)(Ot.ToolbarButton,{ref:C,onClick:()=>V({id:m,onUpdate:G,onClose:()=>C.current?.focus()}),"aria-haspopup":"dialog",icon:pm,label:(0,_o.__)("Edit image")})}),(0,$e.jsx)(Ot.ResizableBox,{size:{width:oe,height:U},showHandle:l&&se,minWidth:X,maxWidth:ie,minHeight:Q,maxHeight:ie/Z,lockAspectRatio:!0,enable:{top:!1,right:me,bottom:!0,left:xe},onResizeStart:$,onResizeStop:(ce,ge,Qe,ye)=>{z(),c({width:parseInt(oe+ye.width,10),height:parseInt(U+ye.height,10)})},children:q})]})};function uhe({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,Gp.useSelect)(z=>{let{canUser:K,getEntityRecord:q,getEditedEntityRecord:Y}=z(W0.store),oe=K("update",{kind:"root",name:"site"}),Z=oe?Y("root","site"):void 0,U=q("root","__unstableBase"),X=oe?Z?.site_logo:U?.site_logo,Q=Z?.site_icon,ie=X&&z(W0.store).getEntityRecord("postType","attachment",X,{context:"view"}),me=!!X&&!z(W0.store).hasFinishedResolution("getEntityRecord",["postType","attachment",X,{context:"view"}]);return{siteLogoId:X,canUserEdit:oe,url:U?.home,mediaItemData:ie,isRequestingMediaItem:me,siteIconId:Q}},[]),{getSettings:m}=(0,Gp.useSelect)(xo.store),[f,g]=(0,eu.useState)(),h=ee(),{editEntityRecord:b}=(0,Gp.useDispatch)(W0.store),_=(z,K=!1)=>{(i||K)&&v(z),b("root","site",void 0,{site_logo:z})},v=z=>b("root","site",void 0,{site_icon:z??null}),{alt_text:w,source_url:x}=d??{},k=z=>{if(i===void 0){let K=!u;r({shouldSyncIcon:K}),C(z,K);return}C(z)},C=(z,K=!1)=>{if(z){if(!z.id&&z.url){g(z.url),_(void 0);return}_(z.id,K)}},S=()=>{_(null),r({width:void 0})},{createErrorNotice:P}=(0,Gp.useDispatch)(che.store),B=z=>{P(z,{type:"snackbar"}),g()},N=z=>{m().mediaUpload({allowedTypes:y8,filesList:z,onFileChange([K]){if((0,cV.isBlobURL)(K?.url)){g(K.url);return}k(K)},onError:B,multiple:!1})},E={mediaURL:x,name:x?(0,_o.__)("Replace"):(0,_o.__)("Choose logo"),onSelect:C,onError:B,onReset:S},M=l&&(0,$e.jsx)(xo.BlockControls,{group:"other",children:(0,$e.jsx)(xo.MediaReplaceFlow,{...E,allowedTypes:y8,variant:"toolbar"})}),R,O=s===void 0||p;O&&(R=(0,$e.jsx)(Ot.Spinner,{})),(0,eu.useEffect)(()=>{x&&f&&g()},[x,f]),(x||f)&&(R=(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(rMe,{alt:w,attributes:e,className:t,isSelected:o,setAttributes:r,logoUrl:f||x,setLogo:_,logoId:d?.id||s,siteUrl:c,setIcon:v,iconId:u,canUserEdit:l}),l&&(0,$e.jsx)(Ot.DropZone,{onFilesDrop:N})]}));let j=z=>{let K=T("block-editor-media-placeholder",t);return(0,$e.jsx)(Ot.Placeholder,{className:K,preview:R,withIllustration:!0,style:{width:n},children:z})},V=T(t,{"is-default-size":!n,"is-transient":f}),G=(0,xo.useBlockProps)({className:V}),$=(l||x)&&(0,$e.jsx)(xo.InspectorControls,{children:(0,$e.jsx)(Ot.__experimentalToolsPanel,{label:(0,_o.__)("Media"),dropdownMenuProps:h,children:l?(0,$e.jsx)(Ot.__experimentalToolsPanelItem,{hasValue:()=>!!x,label:(0,_o.__)("Logo"),isShownByDefault:!0,children:(0,$e.jsx)(Zd,{mediaId:s,mediaUrl:x,filename:d?.media_details?.sizes?.full?.file||d?.slug,allowedTypes:y8,onSelect:C,onError:B,onReset:S,isUploading:!!f,emptyLabel:(0,_o.__)("Logo")})}):(0,$e.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,$e.jsx)(IR,{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,$e.jsxs)("div",{...G,children:[M,$,(!!x||!!f)&&R,(O||!f&&!x&&!l)&&(0,$e.jsx)(Ot.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:O&&(0,$e.jsx)("span",{className:"components-placeholder__preview",children:(0,$e.jsx)(Ot.Spinner,{})})}),!O&&!f&&!x&&l&&(0,$e.jsx)(xo.MediaPlaceholder,{onSelect:k,allowedTypes:y8,onError:B,placeholder:j,mediaLibraryButton:({open:z})=>(0,$e.jsx)(Ot.Button,{__next40pxDefaultSize:!0,icon:vu,variant:"primary",label:(0,_o.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{z()}})})]})}var dhe=a(te(),1),oMe={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,dhe.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},phe=oMe;var{name:mhe}=b8,fhe={icon:eN,example:{},edit:uhe,transforms:phe},nMe=()=>D({name:mhe,metadata:b8,settings:fhe});var pV={};J(pV,{init:()=>lMe,metadata:()=>v8,name:()=>vhe,settings:()=>_he});var v8={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},shadow:!0},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var ghe=a(H(),1),x8=a(ae(),1),$p=a(I(),1),_8=a(L(),1),k8=a(te(),1);var id=a(y(),1);function hhe(e){Pt(e);let{attributes:t,setAttributes:r,insertBlocksAfter:o}=e,{level:n,levelOptions:i}=t,s=(0,ghe.useSelect)(m=>m(x8.store).canUser("update",{kind:"root",name:"site"}),[]),[l,c]=(0,x8.useEntityProp)("root",s?"site":"__unstableBase","description",void 0),u=n===0?"p":`h${n}`,d=(0,$p.useBlockProps)({className:!s&&!l&&"wp-block-site-tagline__placeholder"}),p=s?(0,id.jsx)($p.RichText,{allowedFormats:[],onChange:c,"aria-label":(0,_8.__)("Site tagline text"),placeholder:(0,_8.__)("Write site tagline\u2026"),tagName:u,value:l,disableLineBreaks:!0,__unstableOnSplitAtEnd:o?()=>o((0,k8.createBlock)((0,k8.getDefaultBlockName)())):void 0,...d}):(0,id.jsx)(u,{...d,children:l||(0,_8.__)("Site Tagline placeholder")});return(0,id.jsxs)(id.Fragment,{children:[(0,id.jsx)($p.BlockControls,{group:"block",children:(0,id.jsx)($p.HeadingLevelDropdown,{value:n,options:i,onChange:m=>r({level:m})})}),p]})}var w8=a(F(),1),dV=a(y(),1),bhe=(0,dV.jsx)(w8.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,dV.jsx)(w8.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var iMe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},sMe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},yhe=[iMe,sMe];var{name:vhe}=v8,_he={icon:bhe,edit:hhe,deprecated:yhe},lMe=()=>D({name:vhe,metadata:v8,settings:_he});var fV={};J(fV,{init:()=>mMe,metadata:()=>C8,name:()=>The,settings:()=>Ehe});var C8={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},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},shadow:!0},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var xhe=a(H(),1),S8=a(ae(),1),tu=a(L(),1),Xs=a(I(),1),qp=a(F(),1),mV=a($o(),1);var rn=a(y(),1);function khe(e){Pt(e);let{attributes:t,setAttributes:r}=e,{level:o,levelOptions:n,isLink:i,linkTarget:s}=t,l=(0,xhe.useSelect)(h=>h(S8.store).canUser("update",{kind:"root",name:"site"}),[]),[c,u]=(0,S8.useEntityProp)("root",l?"site":"__unstableBase",l?"title":"name",void 0),d=ee(),p=(0,Xs.useBlockEditingMode)(),m=o===0?"p":`h${o}`,f=(0,Xs.useBlockProps)({className:!l&&!c&&"wp-block-site-title__placeholder"}),g=l?(0,rn.jsx)(m,{...f,children:(0,rn.jsx)(Xs.RichText,{tagName:i?"a":"span",href:i?"#site-title-pseudo-link":void 0,"aria-label":(0,tu.__)("Site title text"),placeholder:(0,tu.__)("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,mV.decodeEntities)(c)||(0,tu.__)("Site Title placeholder")}):(0,rn.jsx)("span",{children:(0,mV.decodeEntities)(c)||(0,tu.__)("Site Title placeholder")})});return(0,rn.jsxs)(rn.Fragment,{children:[p==="default"&&(0,rn.jsx)(Xs.BlockControls,{group:"block",children:(0,rn.jsx)(Xs.HeadingLevelDropdown,{value:o,options:n,onChange:h=>r({level:h})})}),(0,rn.jsx)(Xs.InspectorControls,{children:(0,rn.jsxs)(qp.__experimentalToolsPanel,{label:(0,tu.__)("Settings"),resetAll:()=>{r({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:d,children:[(0,rn.jsx)(qp.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,tu.__)("Make title link to home"),onDeselect:()=>r({isLink:!0}),isShownByDefault:!0,children:(0,rn.jsx)(qp.ToggleControl,{label:(0,tu.__)("Make title link to home"),onChange:()=>r({isLink:!i}),checked:i})}),i&&(0,rn.jsx)(qp.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,tu.__)("Open in new tab"),onDeselect:()=>r({linkTarget:"_self"}),isShownByDefault:!0,children:(0,rn.jsx)(qp.ToggleControl,{label:(0,tu.__)("Open in new tab"),onChange:h=>r({linkTarget:h?"_blank":"_self"}),checked:s==="_blank"})})]})}),g]})}var uMe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},dMe={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:or,isEligible({style:e}){return e?.typography?.fontFamily}},whe=[uMe,dMe];var Che=a(te(),1),pMe={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,Che.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},She=pMe;var{name:The}=C8,Ehe={icon:HB,example:{viewportWidth:350,attributes:{style:{typography:{textAlign:"center"}}}},edit:khe,transforms:She,deprecated:whe},mMe=()=>D({name:The,metadata:C8,settings:Ehe});var uz={};J(uz,{init:()=>bMe,metadata:()=>xT,name:()=>E1e,settings:()=>P1e});var G0=a(fc(),1),_T=a(H(),1),Aa=a(I(),1),vg=a(W(),1),ko=a(F(),1),k1e=a(_e(),1),bi=a(L(),1);var w1e=a(te(),1);var cz=a(L(),1);var T8=a(A(),1),gV=a(y(),1),Phe=()=>(0,gV.jsx)(T8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gV.jsx)(T8.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"})});var E8=a(A(),1),hV=a(y(),1),Bhe=()=>(0,hV.jsx)(E8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hV.jsx)(E8.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var P8=a(A(),1),bV=a(y(),1),Ihe=()=>(0,bV.jsx)(P8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bV.jsx)(P8.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 B8=a(A(),1),yV=a(y(),1),Nhe=()=>(0,yV.jsx)(B8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yV.jsx)(B8.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 I8=a(A(),1),vV=a(y(),1),ek=()=>(0,vV.jsx)(I8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vV.jsx)(I8.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})});var N8=a(A(),1),_V=a(y(),1),Mhe=()=>(0,_V.jsx)(N8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_V.jsx)(N8.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"})});var M8=a(A(),1),xV=a(y(),1),Lhe=()=>(0,xV.jsx)(M8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xV.jsx)(M8.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 L8=a(A(),1),kV=a(y(),1),Rhe=()=>(0,kV.jsx)(L8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kV.jsx)(L8.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 R8=a(A(),1),wV=a(y(),1),Dhe=()=>(0,wV.jsx)(R8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wV.jsx)(R8.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 D8=a(A(),1),CV=a(y(),1),Ahe=()=>(0,CV.jsx)(D8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CV.jsx)(D8.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 A8=a(A(),1),SV=a(y(),1),Ohe=()=>(0,SV.jsx)(A8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SV.jsx)(A8.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 O8=a(A(),1),TV=a(y(),1),Fhe=()=>(0,TV.jsx)(O8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TV.jsx)(O8.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 F8=a(A(),1),EV=a(y(),1),Vhe=()=>(0,EV.jsx)(F8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EV.jsx)(F8.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 V8=a(A(),1),PV=a(y(),1),zhe=()=>(0,PV.jsx)(V8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PV.jsx)(V8.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 z8=a(A(),1),BV=a(y(),1),Hhe=()=>(0,BV.jsx)(z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BV.jsx)(z8.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 H8=a(A(),1),IV=a(y(),1),jhe=()=>(0,IV.jsx)(H8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,IV.jsx)(H8.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 j8=a(A(),1),NV=a(y(),1),Uhe=()=>(0,NV.jsx)(j8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NV.jsx)(j8.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 U8=a(A(),1),MV=a(y(),1),Whe=()=>(0,MV.jsx)(U8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MV.jsx)(U8.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 W8=a(A(),1),LV=a(y(),1),Ghe=()=>(0,LV.jsx)(W8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LV.jsx)(W8.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 G8=a(A(),1),RV=a(y(),1),$he=()=>(0,RV.jsx)(G8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RV.jsx)(G8.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 $8=a(A(),1),DV=a(y(),1),qhe=()=>(0,DV.jsx)($8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DV.jsx)($8.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 q8=a(A(),1),AV=a(y(),1),Zhe=()=>(0,AV.jsx)(q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AV.jsx)(q8.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 Z8=a(A(),1),OV=a(y(),1),Khe=()=>(0,OV.jsx)(Z8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OV.jsx)(Z8.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"})});var K8=a(A(),1),FV=a(y(),1),Yhe=()=>(0,FV.jsx)(K8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FV.jsx)(K8.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})});var Y8=a(A(),1),VV=a(y(),1),Qhe=()=>(0,VV.jsx)(Y8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VV.jsx)(Y8.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 Q8=a(A(),1),zV=a(y(),1),Xhe=()=>(0,zV.jsx)(Q8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zV.jsx)(Q8.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 X8=a(A(),1),HV=a(y(),1),Jhe=()=>(0,HV.jsx)(X8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HV.jsx)(X8.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 J8=a(A(),1),jV=a(y(),1),e1e=()=>(0,jV.jsx)(J8.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jV.jsx)(J8.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 eT=a(A(),1),UV=a(y(),1),t1e=()=>(0,UV.jsx)(eT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UV.jsx)(eT.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 tT=a(A(),1),WV=a(y(),1),r1e=()=>(0,WV.jsx)(tT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WV.jsx)(tT.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 rT=a(A(),1),GV=a(y(),1),o1e=()=>(0,GV.jsx)(rT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GV.jsx)(rT.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 oT=a(A(),1),$V=a(y(),1),n1e=()=>(0,$V.jsx)(oT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$V.jsx)(oT.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 nT=a(A(),1),qV=a(y(),1),a1e=()=>(0,qV.jsx)(nT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qV.jsx)(nT.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 aT=a(A(),1),ZV=a(y(),1),i1e=()=>(0,ZV.jsx)(aT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZV.jsx)(aT.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 iT=a(A(),1),KV=a(y(),1),s1e=()=>(0,KV.jsx)(iT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KV.jsx)(iT.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 sT=a(A(),1),YV=a(y(),1),l1e=()=>(0,YV.jsx)(sT.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,YV.jsx)(sT.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 lT=a(A(),1),QV=a(y(),1),c1e=()=>(0,QV.jsx)(lT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,QV.jsx)(lT.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 cT=a(A(),1),XV=a(y(),1),u1e=()=>(0,XV.jsx)(cT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XV.jsx)(cT.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 uT=a(A(),1),JV=a(y(),1),d1e=()=>(0,JV.jsx)(uT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JV.jsx)(uT.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 dT=a(A(),1),ez=a(y(),1),p1e=()=>(0,ez.jsx)(dT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ez.jsx)(dT.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 pT=a(A(),1),tz=a(y(),1),m1e=()=>(0,tz.jsx)(pT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tz.jsx)(pT.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 mT=a(A(),1),rz=a(y(),1),f1e=()=>(0,rz.jsx)(mT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rz.jsx)(mT.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 fT=a(A(),1),oz=a(y(),1),g1e=()=>(0,oz.jsx)(fT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oz.jsx)(fT.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 gT=a(A(),1),nz=a(y(),1),h1e=()=>(0,nz.jsx)(gT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,nz.jsx)(gT.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 hT=a(A(),1),az=a(y(),1),b1e=()=>(0,az.jsx)(hT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,az.jsx)(hT.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 bT=a(A(),1),iz=a(y(),1),y1e=()=>(0,iz.jsx)(bT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iz.jsx)(bT.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 yT=a(A(),1),sz=a(y(),1),v1e=()=>(0,sz.jsx)(yT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sz.jsx)(yT.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 vT=a(A(),1),lz=a(y(),1),_1e=()=>(0,lz.jsx)(vT.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lz.jsx)(vT.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 x1e(e){return e?.name?{icon:e?.icon??ek,label:e?.title??(0,cz.__)("Social Icon")}:{icon:ek,label:(0,cz.__)("Social Icon")}}var dr=a(y(),1),fMe=({url:e,setAttributes:t,setPopover:r,popoverAnchor:o,clientId:n})=>{let{removeBlock:i}=(0,_T.useDispatch)(Aa.store);return(0,dr.jsx)(Aa.URLPopover,{anchor:o,"aria-label":(0,bi.__)("Edit social link"),onClose:()=>{r(!1),o?.focus()},children:(0,dr.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:s=>{s.preventDefault(),r(!1),o?.focus()},children:(0,dr.jsx)("div",{className:"block-editor-url-input",children:(0,dr.jsx)(Aa.URLInput,{value:e,onChange:s=>t({url:s}),placeholder:(0,bi.__)("Enter social link"),label:(0,bi.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:s=>{e||s.defaultPrevented||![G0.BACKSPACE,G0.DELETE].includes(s.keyCode)||i(n)},suffix:(0,dr.jsx)(ko.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,dr.jsx)(ko.Button,{icon:LB,label:(0,bi.__)("Apply"),type:"submit",size:"small"})})})})})})},gMe=({attributes:e,context:t,isSelected:r,setAttributes:o,clientId:n,name:i})=>{let{url:s,service:l,label:c="",rel:u}=e,d=ee(),{showLabels:p,iconColor:m,iconColorValue:f,iconBackgroundColor:g,iconBackgroundColorValue:h}=t,[b,_]=(0,vg.useState)(!1),v=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}),[w,x]=(0,vg.useState)(null),k=(0,Aa.useBlockEditingMode)()==="contentOnly",{activeVariation:C}=(0,_T.useSelect)(M=>{let{getActiveBlockVariation:R}=M(w1e.store);return{activeVariation:R(i,e)}},[i,e]),{icon:S,label:P}=x1e(C),B=c.trim()===""?P:c,N=(0,vg.useRef)(),E=(0,Aa.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,k1e.useMergeRefs)([x,N]),onClick:()=>_(!0),onKeyDown:M=>{M.keyCode===G0.ENTER&&(M.preventDefault(),_(!0))}});return(0,dr.jsxs)(dr.Fragment,{children:[k&&p&&(0,dr.jsx)(Aa.BlockControls,{group:"other",children:(0,dr.jsx)(ko.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:M,onToggle:R})=>(0,dr.jsx)(ko.ToolbarButton,{onClick:R,"aria-haspopup":"true","aria-expanded":M,children:(0,bi.__)("Text")}),renderContent:()=>(0,dr.jsx)(ko.TextControl,{className:"wp-block-social-link__toolbar_content_text",label:(0,bi.__)("Text"),help:(0,bi.__)("Provide a text label or use the default."),value:c,onChange:M=>o({label:M}),placeholder:P})})}),(0,dr.jsx)(Aa.InspectorControls,{children:(0,dr.jsx)(ko.__experimentalToolsPanel,{label:(0,bi.__)("Settings"),resetAll:()=>{o({label:void 0})},dropdownMenuProps:d,children:(0,dr.jsx)(ko.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,bi.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{o({label:void 0})},children:(0,dr.jsx)(ko.TextControl,{label:(0,bi.__)("Text"),help:(0,bi.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:M=>o({label:M}),placeholder:P})})})}),(0,dr.jsx)(Aa.InspectorControls,{group:"advanced",children:(0,dr.jsx)(ko.TextControl,{label:(0,bi.__)("Link relation"),help:(0,vg.createInterpolateElement)((0,bi.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,dr.jsx)(ko.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:M=>o({rel:M})})}),(0,dr.jsxs)("li",{role:"presentation",className:v,style:{color:f,backgroundColor:h},children:[(0,dr.jsxs)("button",{"aria-haspopup":"dialog",...E,role:"button",children:[(0,dr.jsx)(ko.Icon,{icon:S}),(0,dr.jsx)("span",{className:T("wp-block-social-link-label",{"screen-reader-text":!p}),children:B})]}),r&&b&&(0,dr.jsx)(fMe,{url:s,setAttributes:o,setPopover:_,popoverAnchor:w,clientId:n})]})]})},C1e=gMe;var xT={$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 We=a(L(),1);var S1e=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,We._x)("WordPress","social link block variation name"),icon:b1e},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,We._x)("500px","social link block variation name"),icon:zhe},{name:"amazon",attributes:{service:"amazon"},title:(0,We._x)("Amazon","social link block variation name"),icon:Phe},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,We._x)("Bandcamp","social link block variation name"),icon:Bhe},{name:"behance",attributes:{service:"behance"},title:(0,We._x)("Behance","social link block variation name"),icon:Ihe},{name:"bluesky",attributes:{service:"bluesky"},title:(0,We._x)("Bluesky","social link block variation name"),icon:Nhe},{name:"chain",attributes:{service:"chain"},title:(0,We._x)("Link","social link block variation name"),icon:ek},{name:"codepen",attributes:{service:"codepen"},title:(0,We._x)("CodePen","social link block variation name"),icon:Mhe},{name:"deviantart",attributes:{service:"deviantart"},title:(0,We._x)("DeviantArt","social link block variation name"),icon:Lhe},{name:"discord",attributes:{service:"discord"},title:(0,We._x)("Discord","social link block variation name"),icon:Rhe},{name:"dribbble",attributes:{service:"dribbble"},title:(0,We._x)("Dribbble","social link block variation name"),icon:Dhe},{name:"dropbox",attributes:{service:"dropbox"},title:(0,We._x)("Dropbox","social link block variation name"),icon:Ahe},{name:"etsy",attributes:{service:"etsy"},title:(0,We._x)("Etsy","social link block variation name"),icon:Ohe},{name:"facebook",attributes:{service:"facebook"},title:(0,We._x)("Facebook","social link block variation name"),icon:Fhe},{name:"feed",attributes:{service:"feed"},title:(0,We._x)("RSS Feed","social link block variation name"),icon:Vhe},{name:"flickr",attributes:{service:"flickr"},title:(0,We._x)("Flickr","social link block variation name"),icon:Hhe},{name:"foursquare",attributes:{service:"foursquare"},title:(0,We._x)("Foursquare","social link block variation name"),icon:jhe},{name:"goodreads",attributes:{service:"goodreads"},title:(0,We._x)("Goodreads","social link block variation name"),icon:Uhe},{name:"google",attributes:{service:"google"},title:(0,We._x)("Google","social link block variation name"),icon:Whe},{name:"github",attributes:{service:"github"},title:(0,We._x)("GitHub","social link block variation name"),icon:Ghe},{name:"gravatar",attributes:{service:"gravatar"},title:(0,We._x)("Gravatar","social link block variation name"),icon:$he},{name:"instagram",attributes:{service:"instagram"},title:(0,We._x)("Instagram","social link block variation name"),icon:qhe},{name:"lastfm",attributes:{service:"lastfm"},title:(0,We._x)("Last.fm","social link block variation name"),icon:Zhe},{name:"linkedin",attributes:{service:"linkedin"},title:(0,We._x)("LinkedIn","social link block variation name"),icon:Khe},{name:"mail",attributes:{service:"mail"},title:(0,We._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:Yhe},{name:"mastodon",attributes:{service:"mastodon"},title:(0,We._x)("Mastodon","social link block variation name"),icon:Qhe},{name:"meetup",attributes:{service:"meetup"},title:(0,We._x)("Meetup","social link block variation name"),icon:Xhe},{name:"medium",attributes:{service:"medium"},title:(0,We._x)("Medium","social link block variation name"),icon:Jhe},{name:"patreon",attributes:{service:"patreon"},title:(0,We._x)("Patreon","social link block variation name"),icon:e1e},{name:"pinterest",attributes:{service:"pinterest"},title:(0,We._x)("Pinterest","social link block variation name"),icon:t1e},{name:"pocket",attributes:{service:"pocket"},title:(0,We._x)("Pocket","social link block variation name"),icon:r1e},{name:"reddit",attributes:{service:"reddit"},title:(0,We._x)("Reddit","social link block variation name"),icon:o1e},{name:"skype",attributes:{service:"skype"},title:(0,We._x)("Skype","social link block variation name"),icon:n1e,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,We._x)("Snapchat","social link block variation name"),icon:a1e},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,We._x)("SoundCloud","social link block variation name"),icon:i1e},{name:"spotify",attributes:{service:"spotify"},title:(0,We._x)("Spotify","social link block variation name"),icon:s1e},{name:"telegram",attributes:{service:"telegram"},title:(0,We._x)("Telegram","social link block variation name"),icon:l1e},{name:"threads",attributes:{service:"threads"},title:(0,We._x)("Threads","social link block variation name"),icon:c1e},{name:"tiktok",attributes:{service:"tiktok"},title:(0,We._x)("TikTok","social link block variation name"),icon:u1e},{name:"tumblr",attributes:{service:"tumblr"},title:(0,We._x)("Tumblr","social link block variation name"),icon:d1e},{name:"twitch",attributes:{service:"twitch"},title:(0,We._x)("Twitch","social link block variation name"),icon:p1e},{name:"twitter",attributes:{service:"twitter"},title:(0,We._x)("Twitter","social link block variation name"),icon:m1e},{name:"vimeo",attributes:{service:"vimeo"},title:(0,We._x)("Vimeo","social link block variation name"),icon:f1e},{name:"vk",attributes:{service:"vk"},title:(0,We._x)("VK","social link block variation name"),icon:g1e},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,We._x)("WhatsApp","social link block variation name"),icon:h1e},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,We._x)("X","social link block variation name"),icon:y1e},{name:"yelp",attributes:{service:"yelp"},title:(0,We._x)("Yelp","social link block variation name"),icon:v1e},{name:"youtube",attributes:{service:"youtube"},title:(0,We._x)("YouTube","social link block variation name"),icon:_1e}];S1e.forEach(e=>{e.isActive||(e.isActive=(t,r)=>t.service===r.service)});var T1e=S1e;var{name:E1e}=xT,P1e={icon:Av,edit:C1e,variations:T1e},bMe=()=>D({name:E1e,metadata:xT,settings:P1e});var pz={};J(pz,{init:()=>CMe,metadata:()=>wT,name:()=>D1e,settings:()=>A1e});var kT=a(I(),1),dz=a(y(),1),yMe=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},vMe=[{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:yMe,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,dz.jsx)("ul",{...kT.useBlockProps.save({className:i,style:s}),children:(0,dz.jsx)(kT.InnerBlocks.Content,{})})}}],B1e=vMe;var I1e=a(W(),1),jo=a(I(),1),Kl=a(F(),1),Oa=a(L(),1),N1e=a(H(),1);var Sn=a(y(),1),_Me=[{label:(0,Oa.__)("Default"),value:""},{label:(0,Oa.__)("Small"),value:"has-small-icon-size"},{label:(0,Oa.__)("Normal"),value:"has-normal-icon-size"},{label:(0,Oa.__)("Large"),value:"has-large-icon-size"},{label:(0,Oa.__)("Huge"),value:"has-huge-icon-size"}];function xMe(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:b}=(0,N1e.useSelect)(N=>{let{getBlockCount:E,hasSelectedInnerBlock:M,hasSelectedBlockStyleState:R}=N(jo.store);return{hasSocialIcons:E(t)>0,hasSelectedChild:M(t),hasSelectedStyleState:R(t)}},[t]),_=i||h,v=r.className?.includes("is-style-logos-only"),w=ee();(0,I1e.useEffect)(()=>{if(v){let N;return s(E=>(N={iconBackgroundColor:E.iconBackgroundColor,iconBackgroundColorValue:E.iconBackgroundColorValue,customIconBackgroundColor:E.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>s({...N})}},[v,s]);let x=T(f,{"has-visible-labels":m,"has-icon-color":n.color||d,"has-icon-background-color":o.color||u}),k=(0,jo.useBlockProps)({className:x}),C=(0,jo.useInnerBlocksProps)(k,{templateLock:!1,orientation:r.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||_?jo.InnerBlocks.ButtonBlockAppender:void 0}),S=[{value:n.color||d,onChange:N=>{c(N),s({iconColorValue:N})},label:(0,Oa.__)("Icon color"),resetAllFilter:()=>{c(void 0),s({iconColorValue:void 0})}}];v||S.push({value:o.color||u,onChange:N=>{l(N),s({iconBackgroundColorValue:N})},label:(0,Oa.__)("Icon background"),resetAllFilter:()=>{l(void 0),s({iconBackgroundColorValue:void 0})}});let P=(0,jo.__experimentalUseMultipleOriginColorsAndGradients)(),B=P.hasColorsOrGradients&&!b;return(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsx)(jo.InspectorControls,{children:(0,Sn.jsxs)(Kl.__experimentalToolsPanel,{label:(0,Oa.__)("Settings"),resetAll:()=>{s({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:w,children:[(0,Sn.jsx)(Kl.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,Oa.__)("Icon size"),onDeselect:()=>s({size:void 0}),children:(0,Sn.jsx)(Kl.SelectControl,{label:(0,Oa.__)("Icon size"),onChange:N=>{s({size:N===""?void 0:N})},value:f??"",options:_Me})}),(0,Sn.jsx)(Kl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Oa.__)("Show text"),hasValue:()=>!!m,onDeselect:()=>s({showLabels:!1}),children:(0,Sn.jsx)(Kl.ToggleControl,{label:(0,Oa.__)("Show text"),checked:m,onChange:()=>s({showLabels:!m})})}),(0,Sn.jsx)(Kl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Oa.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>s({openInNewTab:!1}),children:(0,Sn.jsx)(Kl.ToggleControl,{label:(0,Oa.__)("Open links in new tab"),checked:p,onChange:()=>s({openInNewTab:!p})})})]})}),B&&(0,Sn.jsxs)(jo.InspectorControls,{group:"color",children:[S.map(({onChange:N,label:E,value:M,resetAllFilter:R})=>(0,Sn.jsx)(jo.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:M,label:E,onColorChange:N,isShownByDefault:!0,resetAllFilter:R,enableAlpha:!0,clearable:!0}],panelId:t,...P},`social-links-color-${E}`)),!v&&(0,Sn.jsx)(jo.ContrastChecker,{textColor:d,backgroundColor:u,isLargeText:!1})]}),(0,Sn.jsx)("ul",{...C})]})}var kMe={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},M1e=(0,jo.withColors)(kMe)(xMe);var wT={$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"}},background:{gradient:!0},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 CT=a(I(),1),L1e=a(y(),1);function R1e(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=CT.useBlockProps.save({className:i}),l=CT.useInnerBlocksProps.save(s);return(0,L1e.jsx)("ul",{...l})}var{name:D1e}=wT,A1e={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:Av,edit:M1e,save:R1e,deprecated:B1e},CMe=()=>D({name:D1e,metadata:wT,settings:A1e});var mz={};J(mz,{init:()=>NMe,metadata:()=>TT,name:()=>Y1e,settings:()=>Q1e});var O1e=a(I(),1),F1e=a(y(),1),SMe=[{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,F1e.jsx)("div",{...O1e.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],V1e=SMe;var Tn=a(I(),1),W1e=a(F(),1),q0=a(W(),1),ST=a(H(),1);var $0=a(L(),1),ru=a(I(),1),Js=a(F(),1),H1e=a(_e(),1);var tk=0;var yi=a(y(),1),{useSpacingSizes:TMe}=le(ru.privateApis);function z1e({label:e,onChange:t,isResizing:r,value:o=""}){let n=(0,H1e.useInstanceId)(Js.__experimentalUnitControl,"block-spacer-height-input"),i=TMe(),[s]=(0,ru.useSettings)("spacing.units"),l=s?s.filter(m=>m!=="%"):["px","em","rem","vw","vh"],c=(0,Js.__experimentalUseCustomUnits)({availableUnits:l,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,d]=(0,Js.__experimentalParseQuantityAndUnitFromRawValue)(o),p=(0,ru.isValueSpacingPreset)(o)?o:[u,r?"px":d].join("");return(0,yi.jsx)(yi.Fragment,{children:i?.length<2?(0,yi.jsx)(Js.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:tk,onChange:t,value:p,units:c,label:e}):(0,yi.jsx)("div",{className:"tools-panel-item-spacing",children:(0,yi.jsx)(ru.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:m})=>{t(m)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function j1e({setAttributes:e,orientation:t,height:r,width:o,isResizing:n}){let i=ee();return(0,yi.jsx)(ru.InspectorControls,{children:(0,yi.jsxs)(Js.__experimentalToolsPanel,{label:(0,$0.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,yi.jsx)(Js.__experimentalToolsPanelItem,{label:(0,$0.__)("Width"),isShownByDefault:!0,hasValue:()=>o!==void 0,onDeselect:()=>e({width:void 0}),children:(0,yi.jsx)(z1e,{label:(0,$0.__)("Width"),value:o,onChange:s=>e({width:s}),isResizing:n})}),t!=="horizontal"&&(0,yi.jsx)(Js.__experimentalToolsPanelItem,{label:(0,$0.__)("Height"),isShownByDefault:!0,hasValue:()=>r!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,yi.jsx)(z1e,{label:(0,$0.__)("Height"),value:r,onChange:s=>e({height:s}),isResizing:n})})]})})}var el=a(y(),1),{useSpacingSizes:EMe}=le(Tn.privateApis),U1e=({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,el.jsx)(W1e.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})},PMe=({attributes:e,isSelected:t,setAttributes:r,toggleSelection:o,context:n,__unstableParentLayout:i,className:s})=>{let l=(0,ST.useSelect)(Y=>Y(Tn.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:b={}}=e,{layout:_={}}=b,{selfStretch:v,flexSize:w}=_,x=EMe(),[k,C]=(0,q0.useState)(!1),[S,P]=(0,q0.useState)(null),[B,N]=(0,q0.useState)(null),E=()=>o(!1),M=()=>o(!0),{__unstableMarkNextChangeAsNotPersistent:R}=(0,ST.useDispatch)(Tn.store),O=Y=>{M(),m&&r({style:{...b,layout:{..._,flexSize:Y,selfStretch:"fixed"}}}),r({height:Y}),P(null)},j=Y=>{M(),m&&r({style:{...b,layout:{..._,flexSize:Y,selfStretch:"fixed"}}}),r({width:Y}),N(null)},V=()=>{if(!m)return S||(0,Tn.getSpacingPresetCssVar)(g)||void 0},G=()=>{if(!m)return B||(0,Tn.getSpacingPresetCssVar)(h)||void 0},$=f==="horizontal"?B||w:S||w,z={height:f==="horizontal"?24:V(),width:f==="horizontal"?G():void 0,minWidth:f==="vertical"&&m?48:void 0,flexBasis:m?$:void 0,flexGrow:m&&k?0:void 0},K=Y=>Y==="horizontal"?(0,el.jsx)(U1e,{minWidth:tk,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Y,onResizeStart:E,onResize:N,onResizeStop:j,isSelected:t,isResizing:k,setIsResizing:C}):(0,el.jsx)(el.Fragment,{children:(0,el.jsx)(U1e,{minHeight:tk,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:Y,onResizeStart:E,onResize:P,onResizeStop:O,isSelected:t,isResizing:k,setIsResizing:C})});(0,q0.useEffect)(()=>{let Y=oe=>{R(),r(oe)};if(m&&v!=="fill"&&v!=="fit"&&w===void 0)if(f==="horizontal"){let oe=(0,Tn.getCustomValueFromPreset)(h,x)||(0,Tn.getCustomValueFromPreset)(g,x)||"100px";Y({width:"0px",style:{...b,layout:{..._,flexSize:oe,selfStretch:"fixed"}}})}else{let oe=(0,Tn.getCustomValueFromPreset)(g,x)||(0,Tn.getCustomValueFromPreset)(h,x)||"100px";Y({height:"0px",style:{...b,layout:{..._,flexSize:oe,selfStretch:"fixed"}}})}else m&&(v==="fill"||v==="fit")?Y(f==="horizontal"?{width:void 0}:{height:void 0}):!m&&(v||w)&&Y({...f==="horizontal"?{width:w}:{height:w},style:{...b,layout:{..._,flexSize:void 0,selfStretch:void 0}}})},[b,w,g,f,m,_,v,r,x,h,R]);let q=(0,Tn.useBlockEditingMode)();return(0,el.jsxs)(el.Fragment,{children:[(0,el.jsx)("div",{...(0,Tn.useBlockProps)({style:z,className:T(s,{"custom-sizes-disabled":l})}),children:q==="default"&&K(f)}),!m&&(0,el.jsx)(j1e,{setAttributes:r,height:S||g,width:B||h,orientation:f,isResizing:k})]})},G1e=PMe;var TT={$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 $1e=a(te(),1),IMe={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,$1e.createBlock)("core/separator",{anchor:e||void 0})}]},q1e=IMe;var rk=a(I(),1),Z1e=a(y(),1);function K1e({attributes:e}){let{height:t,width:r,style:o}=e,{layout:{selfStretch:n}={}}=o||{},i=n==="fill"||n==="fit"?void 0:t;return(0,Z1e.jsx)("div",{...rk.useBlockProps.save({style:{height:(0,rk.getSpacingPresetCssVar)(i),width:(0,rk.getSpacingPresetCssVar)(r)},"aria-hidden":!0})})}var{name:Y1e}=TT,Q1e={icon:jI,transforms:q1e,edit:G1e,save:K1e,deprecated:V1e},NMe=()=>D({name:Y1e,metadata:TT,settings:Q1e});var hz={};J(hz,{init:()=>RMe,metadata:()=>RT,name:()=>s0e,settings:()=>l0e});var i0e=a(L(),1);var _g=a(I(),1),NT=a(H(),1),r0e=a(W(),1);var IT=a(I(),1),Y0=a(F(),1),BT=a(L(),1),e0e=a(H(),1);var gz=a(L(),1),PT=a(I(),1),ok=a(F(),1),J1e=a(H(),1);var X1e=a(te(),1),fz=a(I(),1),ET=a(H(),1);function Z0(e){let t=(0,ET.useRegistry)(),{insertBlock:r,removeBlock:o,moveBlocksToPosition:n,updateBlockAttributes:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,ET.useDispatch)(fz.store),l=()=>{let{getBlocks:p,getBlockAttributes:m}=t.select(fz.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,X1e.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,b=m[h];if(!b)return;let _=h>=g-1?g-2:h;s(),i(e,{editorActiveTabIndex:_}),o(b.clientId,!1)},moveTab:p=>{let{tabPanelsClientId:m,tabPanelBlocks:f,activeIndex:g}=l();if(!m)return;let h=g+p,b=f[g];!b||h<0||h>=f.length||(s(),i(e,{editorActiveTabIndex:h}),n([b.clientId],m,m,h))}}}var K0=a(y(),1);function Zp({tabsClientId:e}){let{insertTab:t,removeTab:r}=Z0(e),o=(0,J1e.useSelect)(n=>e?(n(PT.store).getBlocks(e).find(s=>s.name==="core/tab-panels")?.innerBlocks.length??0)<=1:!0,[e]);return(0,K0.jsx)(PT.BlockControls,{group:"other",children:(0,K0.jsxs)(ok.ToolbarGroup,{children:[(0,K0.jsx)(ok.ToolbarButton,{className:"components-toolbar__control",onClick:()=>t(),text:(0,gz.__)("Add tab")}),(0,K0.jsx)(ok.ToolbarButton,{className:"components-toolbar__control",onClick:()=>r(),text:(0,gz.__)("Remove tab"),disabled:o})]})})}var ou=a(y(),1);function t0e({tabsClientId:e,blockIndex:t,isDefaultTab:r}){let{updateBlockAttributes:o}=(0,e0e.useDispatch)(IT.store),n=ee();return(0,ou.jsxs)(ou.Fragment,{children:[(0,ou.jsx)(Zp,{tabsClientId:e}),(0,ou.jsx)(IT.InspectorControls,{children:(0,ou.jsx)(Y0.__experimentalToolsPanel,{label:(0,BT.__)("Settings"),resetAll:()=>{o(e,{activeTabIndex:0})},dropdownMenuProps:n,children:(0,ou.jsx)(Y0.__experimentalToolsPanelItem,{label:(0,BT.__)("Default tab"),hasValue:()=>r&&t!==0,onDeselect:()=>{o(e,{activeTabIndex:0})},isShownByDefault:!0,children:(0,ou.jsx)(Y0.CheckboxControl,{label:(0,BT.__)("Default tab"),checked:r,onChange:i=>{o(e,{activeTabIndex:i?t:0})}})})})})]})}var MT=a(y(),1);function o0e({clientId:e,isSelected:t}){let{activeTabIndex:r,editorActiveTabIndex:o,blockIndex:n,hasInnerBlocksSelected:i,tabsClientId:s}=(0,NT.useSelect)(h=>{let{getBlockRootClientId:b,getBlockIndex:_,hasSelectedInnerBlock:v,getBlockAttributes:w}=h(_g.store),x=b(e),k=b(x),C=w(k)??{},S=_(e),P=v(e,!0);return{activeTabIndex:C.activeTabIndex,editorActiveTabIndex:C.editorActiveTabIndex,blockIndex:S,hasInnerBlocksSelected:P,tabsClientId:k}},[e]),l=o??r,{updateBlockAttributes:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,NT.useDispatch)(_g.store);(0,r0e.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,_g.useBlockProps)({hidden:!m,tabIndex:m?0:-1}),g=(0,_g.useInnerBlocksProps)(f,{});return(0,MT.jsxs)("section",{...g,children:[(0,MT.jsx)(t0e,{tabsClientId:s,blockIndex:n,isDefaultTab:p}),m&&g.children]})}var LT=a(I(),1),n0e=a(y(),1);function a0e(){let e=LT.useBlockProps.save({role:"tabpanel",tabIndex:0}),t=LT.useInnerBlocksProps.save(e);return(0,n0e.jsx)("section",{...t})}var RT={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},html:!1,color:{background:!0,button:!0,heading:!0,link:!0,text:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0,shadow:!0,spacing:{blockGap:!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}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},visibility:!1},providesContext:{"core/tab-label":"label"},style:"wp-block-tab-panel"};var LMe=[["core/paragraph",{placeholder:(0,i0e.__)("Type / to choose a block")}]],{name:s0e}=RT,l0e={icon:sN,template:LMe,__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:o0e,save:a0e},RMe=()=>D({name:s0e,metadata:RT,settings:l0e});var bz={};J(bz,{init:()=>OMe,metadata:()=>AT,name:()=>m0e,settings:()=>f0e});var Q0=a(I(),1),c0e=a(H(),1);var xg=a(y(),1);function u0e({clientId:e}){let t=(0,Q0.useBlockProps)(),r=(0,Q0.useInnerBlocksProps)(t,{templateLock:!1,renderAppender:!1}),o=(0,c0e.useSelect)(n=>n(Q0.store).getBlockRootClientId(e),[e]);return(0,xg.jsxs)(xg.Fragment,{children:[(0,xg.jsx)(Zp,{tabsClientId:o}),(0,xg.jsx)("div",{...r})]})}var DT=a(I(),1),d0e=a(y(),1);function p0e(){let e=DT.useBlockProps.save(),t=DT.useInnerBlocksProps.save(e);return(0,d0e.jsx)("div",{...t})}var AT={$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,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},shadow:!0,spacing:{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}}};var AMe=[["core/tab-panel"],["core/tab-panel"]],{name:m0e}=AT,f0e={icon:Jb,template:AMe,edit:u0e,save:p0e},OMe=()=>D({name:m0e,metadata:AT,settings:f0e});var Ez={};J(Ez,{init:()=>eLe,metadata:()=>OT,name:()=>E0e,settings:()=>P0e});var nu=a(L(),1);var fr=a(I(),1),gt=a(y(),1),g0e={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},yz={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"}},FMe={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:yz}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yz}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yz}}}},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,gt.jsx)(g,{children:f.map(({cells:h},b)=>(0,gt.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x,colspan:k,rowspan:C},S)=>{let P=T({[`has-text-align-${x}`]:x});return(0,gt.jsx)(fr.RichText.Content,{className:P||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0,colSpan:k,rowSpan:C},S)})},b))})};return(0,gt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,gt.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,gt.jsx)(p,{type:"head",rows:r}),(0,gt.jsx)(p,{type:"body",rows:o}),(0,gt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,gt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:i,className:(0,fr.__experimentalGetElementClassName)("caption")})]})}},vz={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"}},VMe={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:vz}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vz}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:vz}}}},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,gt.jsx)(g,{children:f.map(({cells:h},b)=>(0,gt.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x},k)=>{let C=T({[`has-text-align-${x}`]:x});return(0,gt.jsx)(fr.RichText.Content,{className:C||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0},k)})},b))})};return(0,gt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,gt.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,gt.jsx)(p,{type:"head",rows:r}),(0,gt.jsx)(p,{type:"body",rows:o}),(0,gt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,gt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:i})]})}},_z={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"}},zMe={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:_z}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_z}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_z}}}},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,gt.jsx)(g,{children:f.map(({cells:h},b)=>(0,gt.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x},k)=>{let C=T({[`has-text-align-${x}`]:x});return(0,gt.jsx)(fr.RichText.Content,{className:C||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0},k)})},b))})};return(0,gt.jsxs)("figure",{...fr.useBlockProps.save(),children:[(0,gt.jsxs)("table",{className:u===""?void 0:u,children:[(0,gt.jsx)(p,{type:"head",rows:r}),(0,gt.jsx)(p,{type:"body",rows:o}),(0,gt.jsx)(p,{type:"foot",rows:n})]}),d&&(0,gt.jsx)(fr.RichText.Content,{tagName:"figcaption",value:s})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in g0e&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:g0e[e.backgroundColor]}}})},xz={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},HMe={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:xz}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xz}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xz}}}},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,gt.jsx)(m,{children:p.map(({cells:f},g)=>(0,gt.jsx)("tr",{children:f.map(({content:h,tag:b,scope:_},v)=>(0,gt.jsx)(fr.RichText.Content,{tagName:b,value:h,scope:b==="th"?_:void 0},v))},g))})};return(0,gt.jsxs)("table",{className:c,children:[(0,gt.jsx)(u,{type:"head",rows:r}),(0,gt.jsx)(u,{type:"body",rows:o}),(0,gt.jsx)(u,{type:"foot",rows:n})]})}},h0e=[FMe,VMe,zMe,HMe];var vi=a(W(),1),Uo=a(I(),1),Nt=a(L(),1),lo=a(F(),1);var jMe=["align"];function b0e({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function UMe(e){if(!Kp(e.head))return e.head[0];if(!Kp(e.body))return e.body[0];if(!Kp(e.foot))return e.foot[0]}function y0e(e,t,r){let{sectionName:o,rowIndex:n,columnIndex:i}=t;return e[o]?.[n]?.cells?.[i]?.[r]}function kz(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)=>WMe({sectionName:s,columnIndex:p,rowIndex:u},t)?r(d):d)})]))}function WMe(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 wz(e,{sectionName:t,rowIndex:r,columnCount:o}){let n=UMe(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])=>jMe.includes(d))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(r)]}:e}function v0e(e,{sectionName:t,rowIndex:r}){return{[t]:e[t].filter((o,n)=>n!==r)}}function _0e(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])=>Kp(n)?[o,n]:[o,n.map(i=>k0e(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:o==="head"?"th":"td"},...i.cells.slice(t)]})]))}function x0e(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])=>Kp(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 Cz(e,t){if(!Kp(e[t]))return{[t]:[]};let r=e.body?.[0]?.cells?.length??1;return wz(e,{sectionName:t,rowIndex:0,columnCount:r})}function Kp(e){return!e||!e.length||e.every(k0e)}function k0e(e){return!(e.cells&&e.cells.length)}var St=a(y(),1),GMe=[{icon:fP,title:(0,Nt.__)("Align column left"),align:"left"},{icon:pP,title:(0,Nt.__)("Align column center"),align:"center"},{icon:bP,title:(0,Nt.__)("Align column right"),align:"right"}],$Me={head:(0,Nt.__)("Header cell text"),body:(0,Nt.__)("Body cell text"),foot:(0,Nt.__)("Footer cell text")},qMe={head:(0,Nt._x)("Header label","table header"),foot:(0,Nt._x)("Footer label","table footer")};function ZMe({name:e,...t}){let r=`t${e}`;return(0,St.jsx)(r,{...t})}function KMe({attributes:e,setAttributes:t,insertBlocksAfter:r,isSelected:o}){let{hasFixedLayout:n,head:i,foot:s}=e,[l,c]=(0,vi.useState)(2),[u,d]=(0,vi.useState)(2),[p,m]=(0,vi.useState)(),f=(0,Uo.__experimentalUseColorProps)(e),g=(0,Uo.__experimentalUseBorderProps)(e),h=(0,Uo.useBlockEditingMode)(),b=(0,vi.useRef)(),[_,v]=(0,vi.useState)(!1),w=ee();function x(U){d(U)}function k(U){c(U)}function C(U){U.preventDefault(),t(b0e({rowCount:parseInt(l,10)||2,columnCount:parseInt(u,10)||2})),v(!0)}function S(){t({hasFixedLayout:!n})}let P=(0,vi.useCallback)(function(U){p&&t(X=>kz(X,p,Q=>({...Q,content:U})))},[p,t]);function B(U){if(!p)return;let X={type:"column",columnIndex:p.columnIndex},Q=kz(e,X,ie=>({...ie,align:U}));t(Q)}function N(){if(p)return y0e(e,p,"align")}function E(){t(Cz(e,"head"))}function M(){t(Cz(e,"foot"))}function R(U){if(!p)return;let{sectionName:X,rowIndex:Q}=p,ie=Q+U;t(wz(e,{sectionName:X,rowIndex:ie})),m({sectionName:X,rowIndex:ie,columnIndex:0,type:"cell"})}function O(){R(0)}function j(){R(1)}function V(){if(!p)return;let{sectionName:U,rowIndex:X}=p;m(),t(v0e(e,{sectionName:U,rowIndex:X}))}function G(U=0){if(!p)return;let{columnIndex:X}=p,Q=X+U;t(_0e(e,{columnIndex:Q})),m({rowIndex:0,columnIndex:Q,type:"cell"})}function $(){G(0)}function z(){G(1)}function K(){if(!p)return;let{sectionName:U,columnIndex:X}=p;m(),t(x0e(e,{sectionName:U,columnIndex:X}))}(0,vi.useEffect)(()=>{o||m()},[o]),(0,vi.useEffect)(()=>{_&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),v(!1))},[_]);let q=["head","body","foot"].filter(U=>!Kp(e[U])),Y=[{icon:pN,title:(0,Nt.__)("Insert row before"),isDisabled:!p,onClick:O},{icon:dN,title:(0,Nt.__)("Insert row after"),isDisabled:!p,onClick:j},{icon:mN,title:(0,Nt.__)("Delete row"),isDisabled:!p,onClick:V},{icon:cN,title:(0,Nt.__)("Insert column before"),isDisabled:!p,onClick:$},{icon:lN,title:(0,Nt.__)("Insert column after"),isDisabled:!p,onClick:z},{icon:uN,title:(0,Nt.__)("Delete column"),isDisabled:!p,onClick:K}],oe=q.map(U=>(0,St.jsx)(ZMe,{name:U,children:e[U].map(({cells:X},Q)=>(0,St.jsx)("tr",{children:X.map((ie,me)=>{let xe=p?.sectionName===U&&p?.rowIndex===Q&&p?.columnIndex===me;return(0,St.jsx)(YMe,{name:U,rowIndex:Q,columnIndex:me,onChange:xe?P:void 0,setSelectedCell:m,...ie},me)})},Q))},U)),Z=!q.length;return(0,St.jsxs)("figure",{...(0,Uo.useBlockProps)({ref:b}),children:[!Z&&h==="default"&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(Uo.BlockControls,{group:"block",children:(0,St.jsx)(Uo.AlignmentControl,{label:(0,Nt.__)("Align column content"),alignmentControls:GMe,value:N(),onChange:U=>B(U)})}),(0,St.jsx)(Uo.BlockControls,{group:"other",children:(0,St.jsx)(lo.ToolbarDropdownMenu,{icon:gN,label:(0,Nt.__)("Edit table"),controls:Y})})]}),(0,St.jsx)(Uo.InspectorControls,{children:(0,St.jsxs)(lo.__experimentalToolsPanel,{label:(0,Nt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:w,children:[(0,St.jsx)(lo.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,Nt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,St.jsx)(lo.ToggleControl,{label:(0,Nt.__)("Fixed width table cells"),checked:!!n,onChange:S})}),!Z&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)(lo.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,Nt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,St.jsx)(lo.ToggleControl,{label:(0,Nt.__)("Header section"),checked:!!(i&&i.length),onChange:E})}),(0,St.jsx)(lo.__experimentalToolsPanelItem,{hasValue:()=>s&&s.length,label:(0,Nt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,St.jsx)(lo.ToggleControl,{label:(0,Nt.__)("Footer section"),checked:!!(s&&s.length),onChange:M})})]})]})}),!Z&&(0,St.jsx)("table",{className:T(f.className,g.className,{"has-fixed-layout":n,"has-individual-borders":(0,lo.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...g.style},children:oe}),Z?(0,St.jsx)(lo.Placeholder,{label:(0,Nt.__)("Table"),icon:(0,St.jsx)(Uo.BlockIcon,{icon:Fb,showColors:!0}),instructions:(0,Nt.__)("Insert a table for sharing data."),children:(0,St.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:C,children:[(0,St.jsx)(lo.TextControl,{type:"number",label:(0,Nt.__)("Column count"),value:u,onChange:x,min:"1",className:"blocks-table__placeholder-input"}),(0,St.jsx)(lo.TextControl,{type:"number",label:(0,Nt.__)("Row count"),value:l,onChange:k,min:"1",className:"blocks-table__placeholder-input"}),(0,St.jsx)(lo.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Nt.__)("Create Table")})]})}):(0,St.jsx)(Zo,{attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:r,label:(0,Nt.__)("Table caption text"),showToolbarButton:o&&h==="default"})]})}var YMe=(0,vi.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,St.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,St.jsx)(Uo.RichText,{identifier:`${t}.${i}.cells.${s}.content`,value:c,onChange:u,onFocus:()=>{d({sectionName:t,rowIndex:i,columnIndex:s,type:"cell"})},"aria-label":$Me[t],placeholder:qMe[t]})})}),w0e=KMe;var OT={$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 tl=a(I(),1),Yl=a(y(),1);function C0e({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,tl.__experimentalGetColorClassesAndStyles)(e),c=(0,tl.__experimentalGetBorderClassesAndStyles)(e),u=T(l.className,c.className,{"has-fixed-layout":t}),d=!tl.RichText.isEmpty(i),p=({type:m,rows:f})=>{if(!f.length)return null;let g=`t${m}`;return(0,Yl.jsx)(g,{children:f.map(({cells:h},b)=>(0,Yl.jsx)("tr",{children:h.map(({content:_,tag:v,scope:w,align:x,colspan:k,rowspan:C},S)=>{let P=T({[`has-text-align-${x}`]:x});return(0,Yl.jsx)(tl.RichText.Content,{className:P||void 0,"data-align":x,tagName:v,value:_,scope:v==="th"?w:void 0,colSpan:k,rowSpan:C},S)})},b))})};return(0,Yl.jsxs)("figure",{...tl.useBlockProps.save(),children:[(0,Yl.jsxs)("table",{className:u===""?void 0:u,style:{...l.style,...c.style},children:[(0,Yl.jsx)(p,{type:"head",rows:r}),(0,Yl.jsx)(p,{type:"body",rows:o}),(0,Yl.jsx)(p,{type:"foot",rows:n})]}),d&&(0,Yl.jsx)(tl.RichText.Content,{tagName:"figcaption",value:i,className:(0,tl.__experimentalGetElementClassName)("caption")})]})}var S0e=a(te(),1);function Sz(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var Tz=({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"]}}}}),XMe=e=>({table:{children:{thead:{allowEmpty:!0,children:Tz(e)},tfoot:{allowEmpty:!0,children:Tz(e)},tbody:{allowEmpty:!0,children:Tz(e)}}}}),JMe={from:[{type:"raw",selector:"table",schema:XMe,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=Sz(d.getAttribute("rowspan")),m=Sz(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,S0e.createBlock)("core/table",t)}}]},T0e=JMe;var{name:E0e}=OT,P0e={icon:Fb,example:{attributes:{head:[{cells:[{content:(0,nu.__)("Version"),tag:"th"},{content:(0,nu.__)("Jazz Musician"),tag:"th"},{content:(0,nu.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,nu.__)("Jaco Pastorius"),tag:"td"},{content:(0,nu.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,nu.__)("Betty Carter"),tag:"td"},{content:(0,nu.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,nu.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,nu.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:T0e,edit:w0e,save:C0e,deprecated:h0e},eLe=()=>D({name:E0e,metadata:OT,settings:P0e});var Lz={};J(Lz,{init:()=>cLe,metadata:()=>FT,name:()=>W0e,settings:()=>G0e});var sd=a(L(),1);var I0e=a(I(),1),ps=a(y(),1),B0e="wp-block-table-of-contents__entry",tLe={headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},rLe={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 N0e(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:N0e(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}function M0e({nestedHeadingList:e,ordered:t=!0}){return(0,ps.jsx)(ps.Fragment,{children:e.map((r,o)=>{let{content:n,link:i}=r.heading,s=i?(0,ps.jsx)("a",{className:B0e,href:i,children:n}):(0,ps.jsx)("span",{className:B0e,children:n}),l=t?"ol":"ul";return(0,ps.jsxs)("li",{children:[s,r.children?(0,ps.jsx)(l,{children:(0,ps.jsx)(M0e,{nestedHeadingList:r.children,ordered:t})}):null]},o)})})}var oLe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),nLe={attributes:tLe,supports:rLe,isEligible:(e,t,{blockNode:r}={})=>oLe(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,ps.jsx)("nav",{...I0e.useBlockProps.save(),children:(0,ps.jsx)(r,{children:(0,ps.jsx)(M0e,{nestedHeadingList:N0e(e),ordered:t})})})}},L0e=[nLe];var FT={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{text:!0,background:!0,gradients:!0,link:!0},shadow:!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-table-of-contents"};var Ql=a(I(),1),z0e=a(te(),1),wo=a(F(),1),ik=a(H(),1),H0e=a(W(),1),Mt=a(L(),1),j0e=a(_e(),1),U0e=a(br(),1);var au=a(y(),1),R0e="wp-block-table-of-contents__entry";function Pz({nestedHeadingList:e,disableLinkActivation:t,onClick:r,ordered:o=!0}){return(0,au.jsx)(au.Fragment,{children:e.map((n,i)=>{let{content:s,link:l}=n.heading,c=l?(0,au.jsx)("a",{className:R0e,href:l,"aria-disabled":t||void 0,onClick:t&&typeof r=="function"?r:void 0,children:s}):(0,au.jsx)("span",{className:R0e,children:s}),u=o?"ol":"ul";return(0,au.jsxs)("li",{children:[c,n.children?(0,au.jsx)(u,{children:(0,au.jsx)(Pz,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof r=="function"?r:void 0,ordered:o})}):null]},i)})})}var Bz=a(te(),1),nk=a(P9(),1);function Iz(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:Iz(e.slice(o+1,n))})}else t.push({heading:r,children:null})}),t}function Nz(e,t){return e.map(({heading:{content:r,link:o},children:n})=>(0,Bz.createBlock)("core/list-item",{content:o?`<a href="${(0,nk.escapeAttribute)(o)}">${(0,nk.escapeEditableHTML)(r)}</a>`:(0,nk.escapeEditableHTML)(r)},n?.length?[(0,Bz.createBlock)("core/list",{ordered:t},Nz(n,t))]:[]))}var D0e=a(uee(),1),A0e=a(H(),1),O0e=a(ma(),1),F0e=a(W(),1),ak=a(qt(),1),VT=a(I(),1);function iLe(e,t){let{getBlockAttributes:r,getBlockName:o,getBlocksByName:n,getClientIdsOfDescendants:i}=e(VT.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 b=p.indexOf(t);for(let[_,v]of p.entries()){if(_>=b)break;o(v)==="core/nextpage"&&m++}}let f=[],g=1,h=null;typeof s=="string"&&(h=l?(0,ak.addQueryArgs)(s,{page:g}):s);for(let b of p){let _=o(b);if(_==="core/nextpage"){if(g++,c&&g>m)break;typeof s=="string"&&(h=(0,ak.addQueryArgs)((0,ak.removeQueryArgs)(s,["page"]),{page:g}))}else if((!c||g===m)&&_==="core/heading"){let v=r(b);if(u&&v.level>u)continue;let w=typeof h=="string"&&typeof v.anchor=="string"&&v.anchor!=="";f.push({content:(0,O0e.__unstableStripHTML)(v.content.replace(/(<br *\/?>)+/g," ")),level:v.level,link:w?`${h}#${v.anchor}`:null})}}return f}function sLe(e,t,r){let{getBlockAttributes:o}=e(VT.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(VT.store),s=o(r);if(s===null)return;let l=iLe(e,r);(0,D0e.default)(l,s.headings)||window.queueMicrotask(()=>{i(),n(r,{headings:l})})}function V0e(e){let t=(0,A0e.useRegistry)();(0,F0e.useEffect)(()=>t.subscribe(()=>sLe(t.select,t.dispatch,e)),[t,e])}var Wt=a(y(),1);function lLe({clientId:e,headingTree:t,ordered:r,setAttributes:o}){let n=(0,ik.useSelect)(c=>{let{getBlockRootClientId:u,canInsertBlockType:d}=c(Ql.store),p=u(e);return d("core/list",p)},[e]),{replaceBlocks:i}=(0,ik.useDispatch)(Ql.store),[s,l]=(0,H0e.useState)(!1);return(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsxs)(Ql.BlockControls,{children:[(0,Wt.jsxs)(wo.ToolbarGroup,{children:[(0,Wt.jsx)(wo.ToolbarButton,{icon:(0,Mt.isRTL)()?ly:cy,title:(0,Mt.__)("Unordered"),description:(0,Mt.__)("Convert to unordered list"),onClick:()=>o({ordered:!1}),isActive:r===!1}),(0,Wt.jsx)(wo.ToolbarButton,{icon:(0,Mt.isRTL)()?uy:vs,title:(0,Mt.__)("Ordered"),description:(0,Mt.__)("Convert to ordered list"),onClick:()=>o({ordered:!0}),isActive:r===!0})]}),n&&(0,Wt.jsx)(wo.ToolbarGroup,{children:(0,Wt.jsx)(wo.ToolbarButton,{onClick:()=>l(!0),children:(0,Mt.__)("Detach")})})]}),s&&(0,Wt.jsx)(wo.__experimentalConfirmDialog,{isOpen:!0,title:(0,Mt.__)("Detach Table of Contents"),__experimentalHideHeader:!1,confirmButtonText:(0,Mt.__)("Detach"),onConfirm:()=>{l(!1),i(e,(0,z0e.createBlock)("core/list",{ordered:r},Nz(t,r)))},onCancel:()=>l(!1),size:"medium",children:(0,Mt.__)("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 Mz({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:r,ordered:o=!0},clientId:n,setAttributes:i}){V0e(n);let s=(0,Ql.useBlockProps)(),l=(0,j0e.useInstanceId)(Mz,"table-of-contents"),{createWarningNotice:c}=(0,ik.useDispatch)(U0e.store),u=h=>{h.preventDefault(),c((0,Mt.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${l}`,type:"snackbar"})},d=ee(),p=Iz(e),m=(0,Wt.jsx)(lLe,{clientId:n,headingTree:p,ordered:o,setAttributes:i}),f=(0,Wt.jsx)(Ql.InspectorControls,{children:(0,Wt.jsxs)(wo.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,Wt.jsx)(wo.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Mt.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,Wt.jsx)(wo.ToggleControl,{label:(0,Mt.__)("Only include current page"),checked:t,onChange:h=>i({onlyIncludeCurrentPage:h}),help:t?(0,Mt.__)("Only including headings from the current page (if the post is paginated)."):(0,Mt.__)("Include headings from all pages (if the post is paginated).")})}),(0,Wt.jsx)(wo.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Mt.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,Wt.jsx)(wo.SelectControl,{label:(0,Mt.__)("Include headings down to level"),value:r||"",options:[{value:"",label:(0,Mt.__)("All levels")},{value:"1",label:(0,Mt.__)("Heading 1")},{value:"2",label:(0,Mt.__)("Heading 2")},{value:"3",label:(0,Mt.__)("Heading 3")},{value:"4",label:(0,Mt.__)("Heading 4")},{value:"5",label:(0,Mt.__)("Heading 5")},{value:"6",label:(0,Mt.__)("Heading 6")}],onChange:h=>i({maxLevel:h?parseInt(h):void 0}),help:r?(0,Mt.__)("Only include headings up to and including this level."):(0,Mt.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)("div",{...s,children:(0,Wt.jsx)(wo.Placeholder,{icon:(0,Wt.jsx)(Ql.BlockIcon,{icon:t_}),label:(0,Mt.__)("Table of Contents"),instructions:(0,Mt.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),f]}):(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)("nav",{...s,children:(0,Wt.jsx)(o?"ol":"ul",{children:(0,Wt.jsx)(Pz,{nestedHeadingList:p,disableLinkActivation:!0,onClick:u,ordered:o})})}),m,f]})}var{name:W0e}=FT,G0e={icon:t_,deprecated:L0e,edit:Mz,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,sd.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,sd.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,sd.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,sd.__)("Subheading")}}],attributes:{headings:[{content:(0,sd.__)("Heading"),level:2},{content:(0,sd.__)("Subheading"),level:3},{content:(0,sd.__)("Heading"),level:2},{content:(0,sd.__)("Subheading"),level:3}]}}},cLe=()=>D({name:W0e,metadata:FT,settings:G0e});var Az={};J(Az,{init:()=>mLe,metadata:()=>HT,name:()=>Y0e,settings:()=>Q0e});var J0=a(L(),1),ia=a(I(),1),eb=a(F(),1),kg=a(H(),1),wg=a(W(),1);var X0=a(L(),1),zT=a(I(),1),Rz=a(F(),1);var $0e=a(H(),1);var sk=a(y(),1);function q0e({tabsClientId:e}){let{moveTab:t}=Z0(e),{tabCount:r,activeIndex:o}=(0,$0e.useSelect)(n=>{if(!e)return{tabCount:0,activeIndex:0};let{getBlocks:i,getBlockAttributes:s}=n(zT.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,sk.jsxs)(zT.BlockControls,{group:"parent",children:[(0,sk.jsx)(Rz.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,X0.isRTL)()?zg:l5,label:(0,X0.__)("Move tab before"),onClick:()=>t(-1),disabled:o<=0,accessibleWhenDisabled:!0}),(0,sk.jsx)(Rz.ToolbarButton,{className:"wp-block-tab-list__mover-button",icon:(0,X0.isRTL)()?l5:zg,label:(0,X0.__)("Move tab after"),onClick:()=>t(1),disabled:o>=r-1,accessibleWhenDisabled:!0})]})}var _i=a(y(),1),uLe=[];function dLe({attributes:e,clientId:t,setAttributes:r,__unstableLayoutClassNames:o}){let{ariaLabel:n}=e,i=(0,ia.__experimentalUseColorProps)(e),s=(0,ia.__experimentalUseBorderProps)(e),l=(0,ia.__experimentalGetSpacingClassesAndStyles)(e),c=ee(),{tabsClientId:u,tabPanels:d,editorActiveTabIndex:p,activeTabIndex:m}=(0,kg.useSelect)(O=>{let{getBlockRootClientId:j,getBlockAttributes:V,getBlocks:G}=O(ia.store),$=j(t),z=V($),K=G($)?.find(q=>q.name==="core/tab-panels");return{tabsClientId:$,tabPanels:K?.innerBlocks??uLe,editorActiveTabIndex:z?.editorActiveTabIndex,activeTabIndex:z?.activeTabIndex??0}},[t]),f=(0,kg.useRegistry)(),{isBlockSelected:g,hasSelectedInnerBlock:h}=(0,kg.useSelect)(ia.store),{updateBlockAttributes:b,selectBlock:_,__unstableMarkNextChangeAsNotPersistent:v}=(0,kg.useDispatch)(ia.store),{insertTab:w,removeTab:x}=Z0(u),k=p??m,C=(0,wg.useMemo)(()=>d.map(O=>({label:O.attributes.label||"",clientId:O.clientId})),[d]);function S(O){u&&O!==k&&f.batch(()=>{_(t),v(),b(u,{editorActiveTabIndex:O})})}function P(O,j){let V=C[O];V?.clientId&&b(V.clientId,{label:j})}let B=(0,wg.useRef)(),N=(0,wg.useRef)(C.length);(0,wg.useEffect)(()=>{let O=N.current;if(N.current=C.length,!B.current||C.length===O||!g(u)&&!h(u,!0))return;(V=>{window.requestAnimationFrame(()=>{let G=B.current?.querySelectorAll("button")?.[V];(G?.querySelector("[contenteditable]")??G)?.focus()})})(k)},[k,h,g,u,C.length]);let E=(0,ia.useBlockProps)({role:"tablist",ref:B,className:o}),M=T(i.className,s.className),R={...i.style,...s.style,...l.style};return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsx)(ia.InspectorControls,{group:"settings",children:(0,_i.jsx)(eb.__experimentalToolsPanel,{label:(0,J0.__)("Settings"),resetAll:()=>r({ariaLabel:void 0}),dropdownMenuProps:c,children:(0,_i.jsx)(eb.__experimentalToolsPanelItem,{label:(0,J0.__)("Label"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>r({ariaLabel:void 0}),children:(0,_i.jsx)(eb.TextControl,{label:(0,J0.__)("Label"),help:(0,J0.__)("Briefly describe this tab section for screen reader users. Examples: Event information, Product details, and Account settings."),value:n||"",onChange:O=>r({ariaLabel:O||void 0})})})})}),(0,_i.jsx)(q0e,{tabsClientId:u}),(0,_i.jsx)(Zp,{tabsClientId:u}),(0,_i.jsx)("div",{...E,children:C.map((O,j)=>(0,_i.jsx)("button",{type:"button",role:"tab","aria-selected":j===k,className:M||void 0,style:R,tabIndex:-1,onFocus:()=>{S(j)},children:(0,_i.jsx)(ia.RichText,{tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,J0.__)("Tab title"),value:O.label,onChange:G=>P(j,G),__unstableOnSplitAtEnd:()=>w(j+1),onRemove:()=>x(j)})},O.clientId||j))})]})}var Z0e=dLe;var iu=a(I(),1),Dz=a(y(),1);function K0e({attributes:e}){let{tabs:t}=e,r=iu.useBlockProps.save({role:"tablist"}),o=(0,iu.__experimentalGetColorClassesAndStyles)(e),n=(0,iu.__experimentalGetBorderClassesAndStyles)(e),i=(0,iu.__experimentalGetSpacingClassesAndStyles)(e),s=T(o.className,n.className),l={...o.style,...n.style,...i.style};return(0,Dz.jsx)("div",{...r,children:t.map((c,u)=>(0,Dz.jsx)(iu.RichText.Content,{className:s||void 0,style:l,tagName:"button",value:c.label,type:"button",role:"tab"},u))})}var HT={$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:Y0e}=HT,Q0e={icon:iN,edit:Z0e,save:K0e},mLe=()=>D({name:Y0e,metadata:HT,settings:Q0e});var Oz={};J(Oz,{init:()=>yLe,metadata:()=>$T,name:()=>obe,settings:()=>nbe});var Cg=a(L(),1);var UT=a(I(),1);var jT=a(I(),1),lk=a(H(),1),X0e=a(W(),1),fLe=[];function J0e(e){let{tabPanels:t,tabListClientId:r}=(0,lk.useSelect)(s=>{let{getBlocks:l}=s(jT.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??fLe,tabListClientId:d?.clientId??null}},[e]),{updateBlockAttributes:o,__unstableMarkNextChangeAsNotPersistent:n}=(0,lk.useDispatch)(jT.store),{getBlockAttributes:i}=(0,lk.useSelect)(jT.store);(0,X0e.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 WT=a(y(),1);function gLe({clientId:e}){J0e(e);let t=(0,UT.useBlockProps)(),r=(0,UT.useInnerBlocksProps)(t,{__experimentalCaptureToolbars:!0,templateLock:"all",renderAppender:!1});return(0,WT.jsxs)("div",{...r,children:[(0,WT.jsx)(Zp,{tabsClientId:e}),r.children]})}var ebe=gLe;var GT=a(I(),1),tbe=a(y(),1);function rbe(){let e=GT.useBlockProps.save(),t=GT.useInnerBlocksProps.save(e);return(0,tbe.jsx)("div",{...t})}var $T={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{text:!0,background:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{text:!0,background:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},layout:{allowEditing:!1},html:!1,interactivity:!0,spacing:{blockGap:!0,margin:!0,padding:!0},shadow:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},usesContext:["core/tabs-list","core/tabs-id"],style:"wp-block-tabs",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:obe}=$T,bLe=[["core/tab-list"],["core/tab-panels"]],nbe={icon:hN,example:{innerBlocks:[{name:"core/tab-list",attributes:{tabs:[{label:(0,Cg.__)("Tab 1")},{label:(0,Cg.__)("Tab 2")}]}},{name:"core/tab-panels",innerBlocks:[1,2].map(e=>({name:"core/tab-panel",attributes:{anchor:`tab-${e}`,label:(0,Cg.sprintf)((0,Cg.__)("Tab %s"),e)},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Cg.__)("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:bLe,edit:ebe,save:rbe},yLe=()=>D({name:obe,metadata:$T,settings:nbe});var Vz={};J(Vz,{init:()=>CLe,metadata:()=>qT,name:()=>mbe,settings:()=>fbe});var Fz=a(te(),1),vLe={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,Fz.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,Fz.createBlock)("core/categories")}]},abe=vLe;var qT={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},html:!1,align:!0,color:{background:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},shadow:!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 er=a(F(),1),lbe=a(H(),1),Fa=a(L(),1),tb=a(I(),1),cbe=a(ae(),1),ube=a(bd(),1),dbe=a(_e(),1);var Pr=a(y(),1),xLe=1,kLe=100,ibe=.1,sbe=100;function wLe({attributes:e,setAttributes:t,name:r}){let{taxonomy:o,showTagCounts:n,numberOfTags:i,smallestFontSize:s,largestFontSize:l}=e,[c]=(0,tb.useSettings)("spacing.units"),u=ee(),d=(0,er.__experimentalUseCustomUnits)({availableUnits:c?[...c,"pt"]:["%","px","em","rem","pt"]}),p=(0,lbe.useSelect)(x=>x(cbe.store).getTaxonomies({per_page:-1}),[]),m=()=>{let x={label:(0,Fa.__)("- Select -"),value:"",disabled:!0},k=(p??[]).filter(C=>!!C.show_cloud).map(C=>({value:C.slug,label:C.name}));return[x,...k]},f=(x,k)=>{let[C,S]=(0,er.__experimentalParseQuantityAndUnitFromRawValue)(k);if(!Number.isFinite(C))return;let P={[x]:k};Object.entries({smallestFontSize:s,largestFontSize:l}).forEach(([B,N])=>{let[E,M]=(0,er.__experimentalParseQuantityAndUnitFromRawValue)(N);B!==x&&M!==S&&(P[B]=`${E}${S}`)}),t(P)},g=(0,Pr.jsx)(tb.InspectorControls,{children:(0,Pr.jsxs)(er.__experimentalToolsPanel,{label:(0,Fa.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:u,children:[(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Fa.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,Pr.jsx)(er.SelectControl,{label:(0,Fa.__)("Taxonomy"),options:m(),value:o,onChange:x=>t({taxonomy:x})})}),(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>s!=="8pt"||l!=="22pt",label:(0,Fa.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,Pr.jsxs)(er.Flex,{gap:4,children:[(0,Pr.jsx)(er.FlexItem,{isBlock:!0,children:(0,Pr.jsx)(er.__experimentalUnitControl,{label:(0,Fa.__)("Smallest size"),value:s,onChange:x=>{f("smallestFontSize",x)},units:d,min:ibe,max:sbe})}),(0,Pr.jsx)(er.FlexItem,{isBlock:!0,children:(0,Pr.jsx)(er.__experimentalUnitControl,{label:(0,Fa.__)("Largest size"),value:l,onChange:x=>{f("largestFontSize",x)},units:d,min:ibe,max:sbe})})]})}),(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>i!==45,label:(0,Fa.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,Pr.jsx)(er.RangeControl,{label:(0,Fa.__)("Number of tags"),value:i,onChange:x=>t({numberOfTags:x}),min:xLe,max:kLe,required:!0})}),(0,Pr.jsx)(er.__experimentalToolsPanelItem,{hasValue:()=>n!==!1,label:(0,Fa.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,Pr.jsx)(er.ToggleControl,{label:(0,Fa.__)("Show tag counts"),checked:n,onChange:()=>t({showTagCounts:!n})})})]})}),{content:h,status:b,error:_}=(0,ube.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:r}),v=(0,dbe.useDisabled)(),w=(0,tb.useBlockProps)({ref:v});return(0,Pr.jsxs)(Pr.Fragment,{children:[g,b==="loading"&&(0,Pr.jsx)("div",{...w,children:(0,Pr.jsx)(er.Spinner,{})}),b==="error"&&(0,Pr.jsx)("div",{...w,children:(0,Pr.jsx)("p",{children:(0,Fa.sprintf)((0,Fa.__)("Error: %s"),_)})}),b==="success"&&(0,Pr.jsx)(Eo,{wrapperProps:w,html:h})]})}var pbe=wLe;var{name:mbe}=qT,fbe={icon:u_,example:{},edit:pbe,transforms:abe},CLe=()=>D({name:mbe,metadata:qT,settings:fbe});var Wz={};J(Wz,{init:()=>MLe,metadata:()=>ZT,name:()=>Jbe,settings:()=>eye});var Ybe=a(ae(),1),Qbe=a(H(),1);var Uz=a(Kd(),1),Xbe=a($o(),1);var ZT={$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 jbe=a(te(),1),lb=a(H(),1),Co=a(I(),1),cu=a(F(),1),fs=a(L(),1),mk=a(ae(),1),Ube=a(W(),1),Wbe=a(br(),1);var Qp=a(L(),1),Tg=a(F(),1),_be=a(W(),1),xbe=a(H(),1),kbe=a(ae(),1);var rb=a(H(),1),KT=a(ae(),1),gbe=a(I(),1),hbe=a(W(),1),bbe=a(te(),1),zz=a(L(),1);function ob(e,t){let{templateParts:r,isResolving:o}=(0,rb.useSelect)(i=>{let{getEntityRecords:s,isResolving:l}=i(KT.store),c={per_page:-1};return{templateParts:s("postType","wp_template_part",c),isResolving:l("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,hbe.useMemo)(()=>r?r.filter(i=>Pa(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[r,e,t]),isResolving:o}}function nb(e,t){return(0,rb.useSelect)(r=>{let o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=r(gbe.store),s=n(t);return i(o,s)},[e,t])}function YT(e,t){let{saveEntityRecord:r}=(0,rb.useDispatch)(KT.store);return async(o=[],n=(0,zz.__)("Untitled Template Part"))=>{let i=Ih(n).replace(/[^\w-]+/g,"")||"wp-custom-part",s={title:n,slug:i,content:(0,bbe.serialize)(o),area:e},l=await r("postType","wp_template_part",s);t({slug:l.slug,theme:l.theme,area:void 0})}}function QT(e){return(0,rb.useSelect)(t=>{let r=t(KT.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,zz.__)("Template Part"),tagName:o?.area_tag??"div"}},[e])}var ybe=a(W(),1),Yp=a(L(),1),Xl=a(F(),1),ld=a(y(),1);function vbe({areaLabel:e,onClose:t,onSubmit:r}){let[o,n]=(0,ybe.useState)(""),i=s=>{s.preventDefault(),r(o)};return(0,ld.jsx)(Xl.Modal,{title:(0,Yp.sprintf)((0,Yp.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,ld.jsx)("form",{onSubmit:i,children:(0,ld.jsxs)(Xl.__experimentalVStack,{spacing:"5",children:[(0,ld.jsx)(Xl.TextControl,{label:(0,Yp.__)("Name"),value:o,onChange:n,placeholder:(0,Yp.__)("Custom Template Part")}),(0,ld.jsxs)(Xl.__experimentalHStack,{justify:"right",children:[(0,ld.jsx)(Xl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,Yp.__)("Cancel")}),(0,ld.jsx)(Xl.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!o.length,__next40pxDefaultSize:!0,children:(0,Yp.__)("Create")})]})]})})})}var Sg=a(y(),1);function wbe({area:e,clientId:t,templatePartId:r,onOpenSelectionModal:o,setAttributes:n}){let{templateParts:i,isResolving:s}=ob(e,r),l=nb(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,xbe.useSelect)(g=>{let{getCurrentTheme:h,canUser:b}=g(kbe.store);return{isBlockBasedTheme:h()?.is_block_theme,canCreateTemplatePart:b("create",{kind:"postType",name:"wp_template_part"})}},[]),[d,p]=(0,_be.useState)(!1),m=QT(e),f=YT(e,n);return(0,Sg.jsxs)(Tg.Placeholder,{icon:r0(m.icon),label:m.label,instructions:c?(0,Qp.sprintf)((0,Qp.__)("Choose an existing %s or create a new one."),m.label.toLowerCase()):(0,Qp.sprintf)((0,Qp.__)("Choose an existing %s."),m.label.toLowerCase()),children:[s&&(0,Sg.jsx)(Tg.Spinner,{}),!s&&!!(i.length||l.length)&&(0,Sg.jsx)(Tg.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:o,children:(0,Qp.__)("Choose")}),!s&&c&&u&&(0,Sg.jsx)(Tg.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,Qp.__)("Start blank")}),d&&(0,Sg.jsx)(vbe,{areaLabel:m.label,onClose:()=>p(!1),onSubmit:g=>{f([],g)}})]})}var ck=a(W(),1),Xp=a(L(),1),Tbe=a(br(),1),Ebe=a(H(),1),Pbe=a(I(),1),XT=a(F(),1);var Cbe=a(te(),1);function Sbe(e){return{name:Pa(e.theme,e.slug),title:e.title.rendered,blocks:(0,Cbe.parse)(e.content.raw),templatePart:e}}var su=a(y(),1);function Bbe({setAttributes:e,onClose:t,templatePartId:r=null,area:o,clientId:n}){let[i,s]=(0,ck.useState)(""),{templateParts:l}=ob(o,r),c=(0,ck.useMemo)(()=>{let h=l.map(b=>Sbe(b));return N2(h,i)},[l,i]),u=nb(o,n),d=(0,ck.useMemo)(()=>N2(u,i),[u,i]),{createSuccessNotice:p}=(0,Ebe.useDispatch)(Tbe.store),m=h=>{e({slug:h.slug,theme:h.theme,area:void 0}),p((0,Xp.sprintf)((0,Xp.__)('Template Part "%s" inserted.'),h.title?.rendered||h.slug),{type:"snackbar"}),t()},f=!!c.length,g=!!d.length;return(0,su.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,su.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,su.jsx)(XT.SearchControl,{onChange:s,value:i,label:(0,Xp.__)("Search"),placeholder:(0,Xp.__)("Search")})}),f&&(0,su.jsxs)("div",{children:[(0,su.jsx)("h2",{children:(0,Xp.__)("Existing template parts")}),(0,su.jsx)(Pbe.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:h=>{m(h.templatePart)}})]}),!f&&!g&&(0,su.jsx)(XT.__experimentalHStack,{alignment:"center",children:(0,su.jsx)("p",{children:(0,Xp.__)("No results found.")})})]})}var dk=a(ae(),1),JT=a(F(),1),ib=a(L(),1),Dbe=a(H(),1),Abe=a(I(),1);var lu=a(L(),1),uk=a(W(),1),ab=a(H(),1),ms=a(F(),1),jz=a(ae(),1),Lbe=a(br(),1);var xi=a(te(),1);function Ibe(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},Nbe((0,xi.createBlock)("core/legacy-widget",o))}let t=(0,xi.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let r=t[0];return r.name==="core/widget-group"?(0,xi.createBlock)((0,xi.getGroupingBlockName)(),void 0,Hz(r.innerBlocks)):r.innerBlocks.length>0?(0,xi.cloneBlock)(r,void 0,Hz(r.innerBlocks)):r}function Nbe(e){let t=(0,xi.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,xi.switchToBlockType)(e,t[0].name)}function Hz(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Nbe(t):(0,xi.createBlock)(t.name,t.attributes,Hz(t.innerBlocks))).filter(t=>!!t)}var cd=a(y(),1),Mbe={per_page:-1,_fields:"id,name,description,status,widgets"};function Rbe({area:e,setAttributes:t}){let[r,o]=(0,uk.useState)(""),[n,i]=(0,uk.useState)(!1),s=(0,ab.useRegistry)(),{sidebars:l,hasResolved:c}=(0,ab.useSelect)(f=>{let{getSidebars:g,hasFinishedResolution:h}=f(jz.store);return{sidebars:g(Mbe),hasResolved:h("getSidebars",[Mbe])}},[]),{createErrorNotice:u}=(0,ab.useDispatch)(Lbe.store),d=YT(e,t),p=(0,uk.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,lu.__)("Select widget area")},...f]:[]},[l]);if(!c)return(0,cd.jsx)(ms.__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:w})=>w===r),{getWidgets:h}=s.resolveSelect(jz.store),b=await h({sidebar:g.value,_embed:"about"}),_=new Set,v=b.flatMap(w=>{let x=Ibe(w);return x||(_.add(w.id_base),[])});await d(v,(0,lu.sprintf)((0,lu.__)("Widget area: %s"),g.label)),_.size&&u((0,lu.sprintf)((0,lu.__)("Unable to import the following widgets: %s."),Array.from(_).join(", ")),{type:"snackbar"}),i(!1)}return(0,cd.jsx)(ms.__experimentalSpacer,{marginBottom:"4",children:(0,cd.jsxs)(ms.__experimentalHStack,{as:"form",onSubmit:m,children:[(0,cd.jsx)(ms.FlexBlock,{children:(0,cd.jsx)(ms.SelectControl,{label:(0,lu.__)("Import widget area"),value:r,options:p,onChange:f=>o(f),disabled:!p.length})}),(0,cd.jsx)(ms.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,cd.jsx)(ms.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!r,children:(0,lu._x)("Import","button label")})})]})})}var Jl=a(y(),1),{HTMLElementControl:TLe}=le(Abe.privateApis);function Obe({tagName:e,setAttributes:t,isEntityAvailable:r,templatePartId:o,defaultWrapper:n,hasInnerBlocks:i,clientId:s}){let[l,c]=(0,dk.useEntityProp)("postType","wp_template_part","area",o),[u,d]=(0,dk.useEntityProp)("postType","wp_template_part","title",o),m=(0,Dbe.useSelect)(f=>f(dk.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:g})=>({label:f,value:g}));return(0,Jl.jsxs)(Jl.Fragment,{children:[r&&(0,Jl.jsxs)(Jl.Fragment,{children:[(0,Jl.jsx)(JT.TextControl,{label:(0,ib.__)("Title"),value:u,onChange:f=>{d(f)},onFocus:f=>f.target.select()}),(0,Jl.jsx)(JT.SelectControl,{label:(0,ib.__)("Area"),labelPosition:"top",options:m,value:l,onChange:c})]}),(0,Jl.jsx)(TLe,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:s,options:[{label:(0,ib.sprintf)((0,ib.__)("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,Jl.jsx)(Rbe,{area:l,setAttributes:t})]})}var sb=a(ae(),1),ki=a(I(),1),pk=a(H(),1),Fbe=a(W(),1),Vbe=a(te(),1),eE=a(y(),1);function ELe(e){if((0,ki.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return ki.InnerBlocks.ButtonBlockAppender}function zbe(e){let t=(0,pk.useSelect)(o=>{let{getSettings:n}=o(ki.store);return n()?.supportsLayout},[]),[r]=(0,ki.useSettings)("layout");if(t)return e?.inherit?r||{}:e}function PLe({postId:e,layout:t,tagName:r,blockProps:o}){(0,ki.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,pk.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(sb.store),d=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:d.blocks,content:d.content}},[e]),s=(0,Fbe.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,Vbe.parse)(n))},[e,i,n]),l=(0,ki.useInnerBlocksProps)(o,{value:s,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:zbe(t)});return(0,eE.jsx)(r,{...l})}function BLe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let i=(0,pk.useSelect)(m=>m(ki.store).getSettings().onNavigateToEntityRecord,[]),[s,l,c]=(0,sb.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,ki.useInnerBlocksProps)(n,{value:s,onInput:l,onChange:c,renderAppender:ELe(t),layout:zbe(r)}),p=(0,ki.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,eE.jsx)(o,{...u,...p})}function Hbe({postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:s}=(0,pk.useSelect)(c=>({canViewTemplatePart:!!c(sb.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(sb.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,eE.jsx)(s?BLe:PLe,{postId:e,hasInnerBlocks:t,layout:r,tagName:o,blockProps:n}):null}var tr=a(y(),1),Gbe=["header","footer","navigation-overlay"];function ILe({isEntityAvailable:e,area:t,templatePartId:r,isTemplatePartSelectionOpen:o,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=ob(t,r),s=!!i.length;return e&&s&&Gbe.includes(t)?(0,tr.jsx)(cu.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":o,"aria-haspopup":"dialog",children:(0,fs.__)("Replace")}):null}function NLe({area:e,clientId:t,isEntityAvailable:r,onSelect:o}){let n=nb(e,t);return r&&!!n.length&&Gbe.includes(e)?(0,tr.jsx)(cu.PanelBody,{title:(0,fs.__)("Design"),children:(0,tr.jsx)(Co.__experimentalBlockPatternsList,{label:(0,fs.__)("Templates"),blockPatterns:n,onClickPattern:o,showTitlesAsTooltip:!0})}):null}function $be({attributes:e,setAttributes:t,clientId:r}){let{createSuccessNotice:o}=(0,lb.useDispatch)(Wbe.store),{editEntityRecord:n}=(0,lb.useDispatch)(mk.store),i=(0,lb.useSelect)(M=>M(mk.store).getCurrentTheme()?.stylesheet,[]),{slug:s,theme:l=i,tagName:c,layout:u={}}=e,d=Pa(l,s),p=(0,Co.useHasRecursion)(d),[m,f]=(0,Ube.useState)(!1),{isResolved:g,hasInnerBlocks:h,isMissing:b,area:_,onNavigateToEntityRecord:v,title:w,canUserEdit:x,canUserEditBlock:k}=(0,lb.useSelect)(M=>{let{getEditedEntityRecord:R,hasFinishedResolution:O}=M(mk.store),{getBlockCount:j,getSettings:V,canEditBlock:G}=M(Co.store),$=["postType","wp_template_part",d],z=d?R(...$):null,K=z?.area||e.area,q=d?O("getEditedEntityRecord",$):!1,Y=q?M(mk.store).canUser("update",{kind:"postType",name:"wp_template_part",id:d}):!1;return{hasInnerBlocks:j(r)>0,isResolved:q,isMissing:q&&(!z||Object.keys(z).length===0),area:K,onNavigateToEntityRecord:V().onNavigateToEntityRecord,title:z?.title,canUserEdit:!!Y,canUserEditBlock:G(r)}},[d,e.area,r]),C=QT(_),S=(0,Co.useBlockProps)(),P=!s,B=!P&&!b&&g,N=c||C.tagName,E=async M=>{await n("postType","wp_template_part",d,{blocks:M.blocks,content:(0,jbe.serialize)(M.blocks)}),o((0,fs.sprintf)((0,fs.__)('Template Part "%s" updated.'),w||s),{type:"snackbar"})};return!h&&(s&&!l||s&&b)?(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(Co.Warning,{children:(0,fs.sprintf)((0,fs.__)("Template part has been deleted or is unavailable: %s"),s)})}):B&&p?(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(Co.Warning,{children:(0,fs.__)("Block cannot be rendered inside itself.")})}):(0,tr.jsxs)(tr.Fragment,{children:[(0,tr.jsxs)(Co.RecursionProvider,{uniqueId:d,children:[B&&v&&x&&(0,tr.jsx)(Co.BlockControls,{group:"other",children:(0,tr.jsx)(cu.ToolbarButton,{onClick:()=>{v({postId:d,postType:"wp_template_part"})},children:(0,fs.__)("Edit original")})}),x&&(0,tr.jsx)(Co.InspectorControls,{group:"advanced",children:(0,tr.jsx)(Obe,{tagName:c,setAttributes:t,isEntityAvailable:B,templatePartId:d,defaultWrapper:C.tagName,hasInnerBlocks:h,clientId:r})}),P&&(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(wbe,{area:e.area,templatePartId:d,clientId:r,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,tr.jsx)(Co.BlockSettingsMenuControls,{children:({selectedClientIds:M})=>!k||!(M.length===1&&r===M[0])?null:(0,tr.jsx)(ILe,{isEntityAvailable:B,area:_,clientId:r,templatePartId:d,isTemplatePartSelectionOpen:m,setIsTemplatePartSelectionOpen:f})}),(0,tr.jsx)(Co.InspectorControls,{group:"settings",children:(0,tr.jsx)(NLe,{area:_,clientId:r,isEntityAvailable:B,onSelect:M=>E(M)})}),B&&(0,tr.jsx)(Hbe,{tagName:N,blockProps:S,postId:d,hasInnerBlocks:h,layout:u}),!P&&!g&&(0,tr.jsx)(N,{...S,children:(0,tr.jsx)(cu.Spinner,{})})]}),m&&(0,tr.jsx)(cu.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,fs.sprintf)((0,fs.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,tr.jsx)(Bbe,{templatePartId:d,clientId:r,area:_,setAttributes:t,onClose:()=>f(!1)})})]})}var qbe=a(ae(),1),Zbe=a(H(),1);function Kbe(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,Zbe.select)(qbe.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:r0(n.icon)}}));return{...e,variations:o}}return e}var{name:Jbe}=ZT,eye={icon:jv,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:r,getEditedEntityRecord:o}=(0,Qbe.select)(Ybe.store),n=o("postType","wp_template_part",(t||r()?.stylesheet)+"//"+e);if(n)return(0,Xbe.decodeEntities)(n.title)||_q(n.slug||"")},edit:$be},MLe=()=>{(0,Uz.addFilter)("blocks.registerBlockType","core/template-part",Kbe);let e=["core/post-template","core/post-content"];return(0,Uz.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}),D({name:Jbe,metadata:ZT,settings:eye})};var Zz={};J(Zz,{init:()=>DLe,metadata:()=>tE,name:()=>lye,settings:()=>cye});var tE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!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-count"};var Eg=a(L(),1),rE=a(I(),1),iye=a(F(),1);var rl=a(F(),1),ec=a(y(),1),Gz=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),tye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),rye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),oye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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"})}),nye=(0,ec.jsx)(rl.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,ec.jsx)(rl.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 fk=a(ae(),1),$z=a(H(),1);function aye(e,t){let[r]=(0,fk.useEntityProp)("taxonomy",t,"count",e),o=RLe(),n=!!(e&&t);return{hasContext:n,termCount:n?r||"":o}}function RLe(){let t=(0,$z.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(fk.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,$z.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(fk.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]&&s[0].count||""},[r,o])}var Jp=a(y(),1),qz={none:{label:(0,Eg.__)("No brackets"),icon:Gz},round:{label:(0,Eg.__)("Round brackets"),icon:tye,before:"(",after:")"},square:{label:(0,Eg.__)("Square brackets"),icon:rye,before:"[",after:"]"},curly:{label:(0,Eg.__)("Curly brackets"),icon:oye,before:"{",after:"}"},angle:{label:(0,Eg.__)("Angle brackets"),icon:nye,before:"<",after:">"}};function sye({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{bracketType:n}=e,s=aye(r,o)?.termCount||0,l=(0,rE.useBlockProps)(),c=Object.entries(qz).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=""}=qz[p]||{};return`${m}${d}${f}`};return(0,Jp.jsxs)(Jp.Fragment,{children:[(0,Jp.jsx)(rE.BlockControls,{group:"block",children:(0,Jp.jsx)(iye.ToolbarDropdownMenu,{icon:qz[n]?.icon??Gz,label:(0,Eg.__)("Change bracket type"),controls:c})}),(0,Jp.jsx)("div",{...l,children:u(s,n)})]})}var{name:lye}=tE,cye={icon:bN,example:{},edit:sye},DLe=()=>D({name:lye,metadata:tE,settings:cye});var Yz={};J(Yz,{init:()=>VLe,metadata:()=>oE,name:()=>gye,settings:()=>hye});var oE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0}},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},shadow:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var dye=a(L(),1),pye=a(I(),1);var gk=a(ae(),1),Kz=a(H(),1);function uye(e,t){let[r,o,n]=(0,gk.useEntityProp)("taxonomy",t,"description",e),i=OLe(),s=!!(e&&t);return{hasContext:s,setDescription:o,termDescription:s?n?.rendered||r||"":i}}function OLe(){let t=(0,Kz.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(gk.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,Kz.useSelect)(n=>{if(!r||!o)return"";let{getEntityRecords:i}=n(gk.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]&&s[0].description||""},[r,o])}var em=a(y(),1);function mye({context:{termId:e,taxonomy:t}}){let{termDescription:r}=uye(e,t),o=(0,pye.useBlockProps)();return(0,em.jsx)(em.Fragment,{children:(0,em.jsx)("div",{...o,children:r?(0,em.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,em.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,em.jsx)("span",{children:(0,dye.__)("Term Description")})})})})}var FLe={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:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save:()=>null},fye=[FLe];var{name:gye}=oE,hye={icon:vN,edit:mye,example:{},deprecated:fye},VLe=()=>D({name:gye,metadata:oE,settings:hye});var Qz={};J(Qz,{init:()=>ULe,metadata:()=>nE,name:()=>xye,settings:()=>kye});var nE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},shadow:!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 hk=a(L(),1),tm=a(I(),1),cb=a(F(),1),yye=a($o(),1);var aE=a(ae(),1),iE=a(H(),1);function bye(e,t){let r=(0,iE.useSelect)(i=>!e||!t?null:i(aE.store).getEntityRecord("taxonomy",t,e),[e,t]),o=HLe(),n=!!(e&&t);return{hasContext:n,term:n?r:o}}function HLe(){let t=(0,iE.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:s,getCurrentTemplateId:l}=n("core/editor"),c=s(),u=l()||(c==="wp_template"?i():null);return u?n(aE.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,iE.useSelect)(n=>{if(!r||!o)return null;let{getEntityRecords:i}=n(aE.store),s=i("taxonomy",r,{slug:o,per_page:1});return s&&s[0]?s[0]:null},[r,o])}var gs=a(y(),1);function vye({attributes:e,setAttributes:t,context:{termId:r,taxonomy:o}}){let{level:n=0,isLink:i,levelOptions:s}=e,{term:l}=bye(r,o),c=l?.name?(0,yye.decodeEntities)(l.name):(0,hk.__)("Term Name"),u=(0,tm.useBlockProps)(),d=ee(),p=n===0?"p":`h${n}`,m=c;return i&&(m=(0,gs.jsx)("a",{href:"#term-name-pseudo-link",onClick:f=>f.preventDefault(),children:c})),(0,gs.jsxs)(gs.Fragment,{children:[(0,gs.jsx)(tm.BlockControls,{group:"block",children:(0,gs.jsx)(tm.HeadingLevelDropdown,{value:n,options:s,onChange:f=>{t({level:f})}})}),(0,gs.jsx)(tm.InspectorControls,{children:(0,gs.jsx)(cb.__experimentalToolsPanel,{label:(0,hk.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:d,children:(0,gs.jsx)(cb.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,hk.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,gs.jsx)(cb.ToggleControl,{label:(0,hk.__)("Make term name a link"),onChange:()=>t({isLink:!i}),checked:i})})})}),(0,gs.jsx)(p,{...u,children:m})]})}var jLe={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:we,isEligible(e){return!!e.textAlign},save:()=>null},_ye=[jLe];var{name:xye}=nE,kye={icon:xN,example:{},edit:vye,deprecated:_ye},ULe=()=>D({name:xye,metadata:nE,settings:kye});var oH={};J(oH,{init:()=>QLe,metadata:()=>sE,name:()=>cve,settings:()=>uve});var sE={$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 tve=a(H(),1),rve=a(I(),1);var Xye=a(W(),1),uE=a(I(),1);var tc=a(L(),1),uu=a(F(),1),Yye=a(I(),1);var wye=a(ae(),1),Cye=a(H(),1),Sye=a(W(),1);function lE(){let e=(0,Cye.useSelect)(t=>t(wye.store).getTaxonomies({per_page:-1}),[]);return(0,Sye.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var Tye=a(F(),1);var Eye=a(y(),1);function Pye({value:e,onChange:t,...r}){let n=lE().map(i=>({label:i.name,value:i.slug}));return(0,Eye.jsx)(Tye.SelectControl,{options:n,value:e,onChange:t,...r})}var bk=a(L(),1),Bye=a(F(),1),Iye=a(y(),1);function Nye({orderBy:e,order:t,onChange:r,...o}){return(0,Iye.jsx)(Bye.SelectControl,{options:[{label:(0,bk.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,bk.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,bk.__)("Count, high to low"),value:"count/desc"},{label:(0,bk.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,s]=n.split("/");r(i,s)},...o})}var Mye=a(F(),1),Lye=a(y(),1);function Rye({value:e,onChange:t,...r}){return(0,Lye.jsx)(Mye.ToggleControl,{checked:!e,onChange:o=>t(!o),...r})}var Dye=a(F(),1),Aye=a(y(),1);function Oye({value:e,onChange:t,...r}){return(0,Aye.jsx)(Dye.ToggleControl,{checked:e,onChange:t,...r})}var vk=a(F(),1),yk=a(L(),1),_k=a(y(),1);function Fye({value:e,onChange:t,label:r}){return(0,_k.jsxs)(vk.__experimentalToggleGroupControl,{label:r,isBlock:!0,onChange:o=>{t({inherit:o==="default"})},help:e?(0,yk.__)("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,yk.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,_k.jsx)(vk.__experimentalToggleGroupControlOption,{value:"default",label:(0,yk.__)("Default")}),(0,_k.jsx)(vk.__experimentalToggleGroupControlOption,{value:"custom",label:(0,yk.__)("Custom")})]})}var Vye=a(L(),1),zye=a(F(),1),Hye=a(y(),1);function jye({value:e,onChange:t,...r}){return(0,Hye.jsx)(zye.RangeControl,{value:e,min:0,max:100,onChange:t,help:(0,Vye.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...r})}var Uye=a(L(),1),cE=a(I(),1);var Xz=a(y(),1),{HTMLElementControl:GLe}=le(cE.privateApis);function Wye({TagName:e,setAttributes:t,clientId:r}){return(0,Xz.jsx)(cE.InspectorControls,{group:"advanced",children:(0,Xz.jsx)(GLe,{tagName:e,onChange:o=>t({tagName:o}),clientId:r,options:[{label:(0,Uye.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var $ye=a(F(),1),Jz=a(H(),1),eH=a(ae(),1),ud=a(W(),1),qye=a(_e(),1),tH=a($o(),1),Zye=a(y(),1),Pg=[],Gye={order:"asc",_fields:"id,name",context:"view"};function Kye({value:e,taxonomy:t,onChange:r,...o}){let[n,i]=(0,ud.useState)(""),[s,l]=(0,ud.useState)(Pg),[c,u]=(0,ud.useState)(Pg),d=(0,qye.useDebounce)(i,250),{searchResults:p,searchHasResolved:m}=(0,Jz.useSelect)(_=>{if(!n)return{searchResults:Pg,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:w}=_(eH.store),x=["taxonomy",t,{...Gye,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:v(...x),searchHasResolved:w("getEntityRecords",x)}},[n,t,e]),f=(0,Jz.useSelect)(_=>{if(!e?.length)return Pg;let{getEntityRecords:v}=_(eH.store);return v("taxonomy",t,{...Gye,include:e,per_page:e.length})},[e,t]);(0,ud.useEffect)(()=>{if(e?.length||l(Pg),!f?.length)return;let _=e.reduce((v,w)=>{let x=f.find(k=>k.id===w);return x&&v.push({id:w,value:(0,tH.decodeEntities)(x.name)}),v},[]);l(_)},[e,f]);let g=(0,ud.useMemo)(()=>{if(!p?.length)return{names:Pg,mapByName:{}};let _=[],v={};return p.forEach(w=>{let x=(0,tH.decodeEntities)(w.name);_.push(x),v[x]=w}),{names:_,mapByName:v}},[p]);(0,ud.useEffect)(()=>{m&&u(g.names)},[g.names,m]);let h=(_,v)=>v?.id||_?.[v]?.id;return(0,Zye.jsx)($ye.FormTokenField,{value:s,onInputChange:d,suggestions:c,onChange:_=>{let v=Array.from(_.reduce((w,x)=>{let k=h(g.mapByName,x);return k&&w.add(k),w},new Set));u(Pg),r(v)},help:"",...o})}var Jr=a(y(),1);function Qye({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=ee(),_=lE().find(R=>R.slug===l)?.hierarchical,v=!!p,w=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),x=_,k=!!g?.length,C=(0,tc.__)("Query type"),S=(0,tc.__)("Taxonomy"),P=(0,tc.__)("Order by"),B=(0,tc.__)("Show empty terms"),N=(0,tc.__)("Show nested terms"),E=(0,tc.__)("Max terms"),M=(0,tc.__)("Selected terms");return(0,Jr.jsxs)(Jr.Fragment,{children:[(0,Jr.jsx)(Yye.InspectorControls,{children:(0,Jr.jsxs)(uu.__experimentalToolsPanel,{label:(0,tc.__)("Settings"),resetAll:()=>{r({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:h,children:[w&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:C,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,Jr.jsx)(Fye,{label:C,value:p,onChange:t})}),!v&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>l!=="category",label:S,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,Jr.jsx)(Pye,{label:S,value:l,onChange:R=>t({taxonomy:R,include:[]})})}),(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:P,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Jr.jsx)(Nye,{label:P,orderBy:c,order:u,onChange:(R,O)=>{t({orderBy:R,order:O})},disabled:k,help:k?(0,tc.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!v&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:M,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,Jr.jsx)(Kye,{label:M,taxonomy:l,value:g,onChange:R=>t({include:R})})}),(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>d!==!0,label:B,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,Jr.jsx)(Rye,{label:B,value:d,onChange:R=>t({hideEmpty:R})})}),x&&(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>m!==!1,label:N,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,Jr.jsx)(Oye,{label:N,value:m,onChange:R=>t({showNested:R}),disabled:k,help:k?(0,tc.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,Jr.jsx)(uu.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:E,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,Jr.jsx)(jye,{label:E,value:f,onChange:R=>t({perPage:R})})})]})}),(0,Jr.jsx)(Wye,{TagName:s,setAttributes:r,clientId:o})]})}var Bg=a(y(),1);function Jye({attributes:e,setAttributes:t,clientId:r,context:o}){let{tagName:n}=e,i=(0,uE.useBlockProps)(),s=(0,uE.useInnerBlocksProps)(i,{}),l=(0,Xye.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,Bg.jsxs)(Bg.Fragment,{children:[(0,Bg.jsx)(Qye,{attributes:e,setQuery:l,setAttributes:t,clientId:r,templateSlug:o?.templateSlug}),(0,Bg.jsx)(n,{...s})]})}var dE=a(H(),1),pE=a(te(),1),ub=a(I(),1),rH=a(y(),1);function eve({attributes:e,clientId:t,name:r}){let{blockType:o,activeBlockVariation:n,scopeVariations:i}=(0,dE.useSelect)(d=>{let{getActiveBlockVariation:p,getBlockType:m,getBlockVariations:f}=d(pE.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,dE.useDispatch)(ub.store),u=(0,ub.useBlockProps)();return(0,rH.jsx)("div",{...u,children:(0,rH.jsx)(ub.__experimentalBlockVariationPicker,{icon:s,label:l,variations:i,onSelect:d=>{d.innerBlocks&&c(t,(0,pE.createBlocksFromInnerBlocksTemplate)(d.innerBlocks),!1)}})})}var ove=a(y(),1),$Le=e=>{let r=(0,tve.useSelect)(o=>!!o(rve.store).getBlocks(e.clientId).length,[e.clientId])?Jye:eve;return(0,ove.jsx)(r,{...e})},nve=$Le;var mE=a(I(),1),ave=a(y(),1);function ive({attributes:{tagName:e="div"}}){let t=mE.useBlockProps.save(),r=mE.useInnerBlocksProps.save(t);return(0,ave.jsx)(e,{...r})}var xk=a(L(),1),db=a(F(),1),kk=a(y(),1),qLe=(0,kk.jsx)(db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,kk.jsx)(db.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"})}),ZLe=(0,kk.jsx)(db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,kk.jsx)(db.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"})}),sve=["core/term-name",{isLink:!0}],KLe=[{name:"name",title:(0,xk.__)("Name"),description:(0,xk.__)("Display the terms' names."),attributes:{},icon:qLe,scope:["block"],innerBlocks:[["core/term-template",{},[sve]]]},{name:"name-count",title:(0,xk.__)("Name & Count"),description:(0,xk.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:ZLe,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[sve,["core/term-count"]]]]]]}],lve=KLe;var{name:cve}=sE,YLe=[["core/term-template"]],uve={icon:bm,template:YLe,edit:nve,save:ive,example:{},variations:lve},QLe=()=>D({name:cve,metadata:sE,settings:uve});var nH={};J(nH,{init:()=>nRe,metadata:()=>fE,name:()=>yve,settings:()=>vve});var fE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!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},shadow:!0},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var dve=a(F(),1);var pb=a(W(),1),pve=a(H(),1),wk=a(L(),1),ol=a(I(),1),mve=a(ae(),1),En=a(y(),1),JLe={type:"default"};function eRe({classList:e}){let t=(0,ol.useInnerBlocksProps)({className:T("wp-block-term",e)},{__unstableDisableLayoutClassNames:!0,layout:JLe});return(0,En.jsx)("li",{...t})}function tRe({blocks:e,blockContextId:t,classList:r,isHidden:o,setActiveBlockContextId:n}){let i=(0,ol.__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 rRe=(0,pb.memo)(tRe);function fve({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,pb.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:b}=(0,mve.useEntityRecords)("taxonomy",o,h),_=(0,pve.useSelect)(k=>k(ol.store).getBlocks(e),[e]),v=(0,ol.useBlockProps)({className:d}),w=(0,pb.useMemo)(()=>b?.map(k=>({taxonomy:o,termId:k.id,classList:`term-${k.id}`,termData:k})),[b,o]);if(!b)return(0,En.jsx)("ul",{...v,children:(0,En.jsx)("li",{className:"wp-block-term term-loading",children:(0,En.jsx)("div",{className:"term-loading-placeholder"})})});if(!b.length)return(0,En.jsxs)("p",{...v,children:[" ",(0,wk.__)("No terms found.")]});let x=k=>r(C=>({layout:{...C.layout,...k}}));return(0,En.jsxs)(En.Fragment,{children:[(0,En.jsx)(ol.BlockControls,{children:(0,En.jsx)(dve.ToolbarGroup,{controls:[{icon:pl,title:(0,wk._x)("List view","Term template block display setting"),onClick:()=>x({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:Ei,title:(0,wk._x)("Grid view","Term template block display setting"),onClick:()=>x({type:"grid",columnCount:m}),isActive:p==="grid"}]})}),(0,En.jsx)("ul",{...v,children:w?.map(k=>(0,En.jsxs)(ol.BlockContextProvider,{value:k,children:[k.termId===(f||w[0]?.termId)?(0,En.jsx)(eRe,{classList:k.classList}):null,(0,En.jsx)(rRe,{blocks:_,blockContextId:k.termId,classList:k.classList,setActiveBlockContextId:g,isHidden:k.termId===(f||w[0]?.termId)})]},k.termId))})]})}var gve=a(I(),1),hve=a(y(),1);function bve(){return(0,hve.jsx)(gve.InnerBlocks.Content,{})}var{name:yve}=fE,oRe=[["core/term-name"]],vve={icon:hm,template:oRe,edit:fve,save:bve,example:{}},nRe=()=>D({name:yve,metadata:fE,settings:vve});var aH={};J(aH,{init:()=>sRe,metadata:()=>hE,name:()=>Cve,settings:()=>Sve});var mb=a(L(),1),gE=a(F(),1),du=a(I(),1),_ve=a(jm(),1),hs=a(y(),1);function xve({attributes:e,setAttributes:t}){let{width:r,content:o,columns:n}=e;return(0,_ve.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,hs.jsxs)(hs.Fragment,{children:[(0,hs.jsx)(du.BlockControls,{children:(0,hs.jsx)(du.BlockAlignmentToolbar,{value:r,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,hs.jsx)(du.InspectorControls,{children:(0,hs.jsx)(gE.PanelBody,{children:(0,hs.jsx)(gE.RangeControl,{label:(0,mb.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,hs.jsx)("div",{...(0,du.useBlockProps)({className:`align${r} columns-${n}`}),children:Array.from({length:n}).map((i,s)=>(0,hs.jsx)("div",{className:"wp-block-column",children:(0,hs.jsx)(du.RichText,{tagName:"p",value:o?.[s]?.children,onChange:l=>{t({content:[...o.slice(0,s),{children:l},...o.slice(s+1)]})},"aria-label":(0,mb.sprintf)((0,mb.__)("Column %d text"),s+1),placeholder:(0,mb.__)("New Column")})},`column-${s}`))})]})}var hE={$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 yE=a(I(),1),bE=a(y(),1);function kve({attributes:e}){let{width:t,content:r,columns:o}=e;return(0,bE.jsx)("div",{...yE.useBlockProps.save({className:`align${t} columns-${o}`}),children:Array.from({length:o}).map((n,i)=>(0,bE.jsx)("div",{className:"wp-block-column",children:(0,bE.jsx)(yE.RichText.Content,{tagName:"p",value:r?.[i]?.children})},`column-${i}`))})}var vE=a(te(),1),iRe={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:r,width:o})=>(0,vE.createBlock)("core/columns",{align:o==="wide"||o==="full"?o:void 0,className:e,columns:t},r.map(({children:n})=>(0,vE.createBlock)("core/column",{},[(0,vE.createBlock)("core/paragraph",{content:n})])))}]},wve=iRe;var{name:Cve}=hE,Sve={transforms:wve,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:xve,save:kve},sRe=()=>D({name:Cve,metadata:hE,settings:Sve});var cH={};J(cH,{init:()=>mRe,metadata:()=>kE,name:()=>Mve,settings:()=>Lve});var Nve=a(L(),1);var Ig=a(I(),1);var fb=a(y(),1),lRe={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:r}=e;return(0,fb.jsx)(Ig.RichText.Content,{tagName:"pre",style:{textAlign:t},value:r})},migrate:we},cRe={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,fb.jsx)("pre",{...Ig.useBlockProps.save({className:o}),children:(0,fb.jsx)(Ig.RichText.Content,{value:r})})},migrate(e){return we(or(e))},isEligible({style:e,textAlign:t}){return e?.typography?.fontFamily||!!t}},uRe={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,fb.jsx)("pre",{...Ig.useBlockProps.save({className:o}),children:(0,fb.jsx)(Ig.RichText.Content,{value:r})})},migrate:we,isEligible(e){return!!e.textAlign||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)}},Tve=[uRe,cRe,lRe];var iH=a(L(),1),_E=a(I(),1),xE=a(te(),1);var Eve=a(y(),1);function Pve(e){let{attributes:t,setAttributes:r,mergeBlocks:o,onRemove:n,insertBlocksAfter:i,style:s}=e,{content:l}=t;Pt(e);let c=(0,_E.useBlockProps)({style:s});return(0,Eve.jsx)(_E.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:u=>{r({content:u})},"aria-label":(0,iH.__)("Poetry text"),placeholder:(0,iH.__)("Write poetry\u2026"),onRemove:n,onMerge:o,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:i?()=>i((0,xE.createBlock)((0,xE.getDefaultBlockName)())):void 0})}var kE={$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}},shadow:!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 wE=a(I(),1),sH=a(y(),1);function Bve({attributes:e}){let{content:t}=e;return(0,sH.jsx)("pre",{...wE.useBlockProps.save(),children:(0,sH.jsx)(wE.RichText.Content,{value:t})})}var lH=a(te(),1),pRe={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,lH.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,lH.createBlock)("core/paragraph",e)}]},Ive=pRe;var{name:Mve}=kE,Lve={icon:h_,example:{attributes:{content:(0,Nve.__)(`WHAT was he doing, the great god Pan,
101 144 Down in the reeds by the river?
102 145 Spreading ruin and scattering ban,
103 146 Splashing and paddling with hoofs of a goat,
104 147 And breaking the golden lilies afloat
105 - With the dragon-fly on the river.`)}},transforms:Qde,deprecated:qde,merge(e,t){return{content:e.content+`
148 + With the dragon-fly on the river.`)}},transforms:Ive,deprecated:Tve,merge(e,t){return{content:e.content+`
106 149
107 -`+t.content}},edit:Kde,save:Yde};window.__experimentalContentOnlyInspectorFields&&(l7[N8e]=[{id:"content",label:(0,uz.__)("Content"),type:"text",Edit:"rich-text"}],l7[I8e]={fields:["content"]});var D8e=()=>I({name:Jde,metadata:n7,settings:l7});var fz={};Z(fz,{init:()=>Z8e,metadata:()=>g0,name:()=>gfe,settings:()=>u7});var c7=a(B(),1);var hfe=a($(),1);var By=a(T(),1);var g0={$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"},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 efe=a(v(),1);function v0({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,efe.jsx)("track",{...o},r??o.src)})}var b0=a(v(),1),{attributes:M8e}=g0,A8e={attributes:M8e,save({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,b0.jsxs)("figure",{...By.useBlockProps.save(),children:[c&&(0,b0.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,b0.jsx)(v0,{tracks:m})}),!By.RichText.isEmpty(r)&&(0,b0.jsx)(By.RichText.Content,{tagName:"figcaption",value:r})]})}},R8e=[A8e],tfe=R8e;var sfe=a(Br(),1),_0=a(R(),1),dn=a(T(),1),x0=a(j(),1),Ny=a(B(),1),cfe=a(F(),1);var ufe=a(_r(),1),mfe=a(lr(),1);var Zr=a(B(),1),pn=a(R(),1),Ey=a(j(),1),ca=a(v(),1),z8e=[{value:"auto",label:(0,Zr.__)("Auto")},{value:"metadata",label:(0,Zr.__)("Metadata")},{value:"none",label:(0,Zr._x)("None","Preload value")}],V8e=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,Zr.__)("Autoplay may cause usability issues for some users."),u=(0,Ey.useCallback)(d=>d?c:null,[]),m=(0,Ey.useMemo)(()=>{let d=f=>h=>{e({[f]:h,...f==="autoplay"&&{muted:h,playsInline:h}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,Ey.useCallback)(d=>{e({preload:d})},[]);return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)(pn.__experimentalToolsPanelItem,{label:(0,Zr.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,ca.jsx)(pn.ToggleControl,{label:(0,Zr.__)("Autoplay"),onChange:m.autoplay,checked:!!r,help:u})}),(0,ca.jsx)(pn.__experimentalToolsPanelItem,{label:(0,Zr.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,ca.jsx)(pn.ToggleControl,{label:(0,Zr.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,ca.jsx)(pn.__experimentalToolsPanelItem,{label:(0,Zr.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,ca.jsx)(pn.ToggleControl,{label:(0,Zr.__)("Muted"),onChange:m.muted,checked:!!i,disabled:r,help:r?(0,Zr.__)("Muted because of Autoplay."):null})}),(0,ca.jsx)(pn.__experimentalToolsPanelItem,{label:(0,Zr.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,ca.jsx)(pn.ToggleControl,{label:(0,Zr.__)("Playback controls"),onChange:m.controls,checked:!!o})}),(0,ca.jsx)(pn.__experimentalToolsPanelItem,{label:(0,Zr.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,ca.jsx)(pn.ToggleControl,{label:(0,Zr.__)("Play inline"),onChange:m.playsInline,checked:!!l,disabled:r,help:r?(0,Zr.__)("Play inline enabled because of Autoplay."):(0,Zr.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,ca.jsx)(pn.__experimentalToolsPanelItem,{label:(0,Zr.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,ca.jsx)(pn.SelectControl,{__next40pxDefaultSize:!0,label:(0,Zr.__)("Preload"),value:s,onChange:p,options:z8e,hideCancelButton:!0})})]})},rfe=V8e;var Dt=a(B(),1),Je=a(R(),1),y0=a(T(),1);var afe=a(F(),1),_f=a(j(),1),nfe=a(lr(),1);var Ye=a(v(),1),{Badge:F8e}=W(Je.privateApis),ofe=["text/vtt"],H8e="subtitles",O8e=[{label:(0,Dt.__)("Subtitles"),value:"subtitles"},{label:(0,Dt.__)("Captions"),value:"captions"},{label:(0,Dt.__)("Descriptions"),value:"descriptions"},{label:(0,Dt.__)("Chapters"),value:"chapters"},{label:(0,Dt.__)("Metadata"),value:"metadata"}],ife={src:"",label:"",srcLang:"en",kind:H8e,default:!1};function j8e({tracks:e,onEditPress:t}){let r=e.map((o,n)=>(0,Ye.jsxs)(Je.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Ye.jsx)("span",{children:o.label}),(0,Ye.jsxs)(Je.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,Ye.jsx)(F8e,{children:(0,Dt.__)("Default")}),(0,Ye.jsx)(Je.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Dt.sprintf)((0,Dt._x)("Edit %s","text tracks"),o.label),children:(0,Dt.__)("Edit")})]})]},o.id??o.src));return(0,Ye.jsx)(Je.MenuGroup,{label:(0,Dt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function U8e({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:n}){let[i,l]=(0,_f.useState)({...ife,...e}),{src:s,label:c,srcLang:u,kind:m,default:p}=i,d=s.startsWith("blob:")?"":(0,nfe.getFilename)(s)||"";return(0,Ye.jsxs)(Je.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Ye.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,Dt.__)("Edit track")}),(0,Ye.jsxs)("span",{children:[(0,Dt.__)("File"),": ",(0,Ye.jsx)("b",{children:d})]}),(0,Ye.jsxs)(Je.__experimentalGrid,{columns:2,gap:4,children:[(0,Ye.jsx)(Je.TextControl,{onChange:f=>l(h=>({...h,label:f})),label:(0,Dt.__)("Label"),value:c,help:(0,Dt.__)("Title of track")}),(0,Ye.jsx)(Je.TextControl,{onChange:f=>l(h=>({...h,srcLang:f})),label:(0,Dt.__)("Source language"),value:u,help:(0,Dt.__)("Language tag (en, fr, etc.)")})]}),(0,Ye.jsxs)(Je.__experimentalVStack,{spacing:"4",children:[(0,Ye.jsx)(Je.SelectControl,{__next40pxDefaultSize:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:O8e,value:m,label:(0,Dt.__)("Kind"),onChange:f=>l(h=>({...h,kind:f}))}),(0,Ye.jsx)(Je.ToggleControl,{__next40pxDefaultSize:!0,label:(0,Dt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>l(h=>({...h,default:f}))}),(0,Ye.jsxs)(Je.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Ye.jsx)(Je.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Dt.__)("Remove track")}),(0,Ye.jsx)(Je.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Dt.__)("Apply")})]})]})]})}function lfe({tracks:e=[],onChange:t}){let r=(0,afe.useSelect)(c=>c(y0.store).getSettings().mediaUpload,[]),[o,n]=(0,_f.useState)(null),i=(0,_f.useRef)(),l=(c=[],u=!1)=>{let m=new Map(e.map(d=>[d.id,d])),p=c.map(({id:d,title:f,url:h})=>m.has(d)?m.get(d):{...ife,id:d,label:f||"",src:h});p.length!==0&&t([...u?e:[],...p])};function s(c){let u=c.target.files;r({allowedTypes:ofe,filesList:u,onFileChange:m=>{if(!Array.isArray(m))return;let p=m.filter(d=>!!d?.id);p.length&&l(p,!0)}})}return(0,_f.useEffect)(()=>{i.current?.focus()},[o]),r?(0,Ye.jsx)(Je.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Ye.jsx)(Je.ToolbarGroup,{children:(0,Ye.jsx)(Je.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Dt.__)("Text tracks")})}),renderContent:()=>o!==null?(0,Ye.jsx)(U8e,{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,Ye.jsxs)(Ye.Fragment,{children:[e.length===0&&(0,Ye.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Ye.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,Dt.__)("Text tracks")}),(0,Ye.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Dt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Ye.jsxs)(Je.NavigableMenu,{children:[(0,Ye.jsx)(j8e,{tracks:e,onEditPress:n}),(0,Ye.jsx)(Je.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Dt.__)("Add tracks"),children:(0,Ye.jsxs)(y0.MediaUploadCheck,{children:[(0,Ye.jsx)(y0.MediaUpload,{onSelect:l,allowedTypes:ofe,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Ye.jsx)(Je.MenuItem,{icon:s1,onClick:c,children:(0,Dt.__)("Open Media Library")})}),(0,Ye.jsx)(Je.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Ye.jsx)(Je.MenuItem,{icon:Ac,onClick:c,children:(0,Dt._x)("Upload","verb")})})]})})]})]})}):null}var vr=a(v(),1),pz=["video"];function G8e({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:n,onReplace:i}){let l=(0,x0.useRef)(),{id:s,controls:c,poster:u,src:m,tracks:p}=t,[d,f]=(0,x0.useState)(t.blob),h=q(),b=(0,dn.useBlockEditingMode)()==="default";Bs({url:d,allowedTypes:pz,onChange:y,onError:k}),(0,x0.useEffect)(()=>{l.current&&l.current.load()},[u]);function y(P){if(!P||!P.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),f();return}if((0,sfe.isBlobURL)(P.url)){f(P.url);return}o({blob:void 0,src:P.url,id:P.id,poster:P.image?.src!==P.icon?P.image?.src:void 0,caption:P.caption}),f()}function _(P){if(P!==m){let N=(0,mfe.prependHTTPS)(P),z=Yu({attributes:{url:N}});if(z!==void 0&&i){i(z);return}o({blob:void 0,src:N,id:void 0,poster:void 0}),f()}}let{createErrorNotice:x}=(0,cfe.useDispatch)(ufe.store);function k(P){x(P,{type:"snackbar"})}let S=P=>(0,vr.jsx)(_0.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:Mf,label:(0,Ny.__)("Video"),instructions:(0,Ny.__)("Drag and drop a video, upload, or choose from your library."),children:P}),C=w(r,{"is-transient":!!d}),E=(0,dn.useBlockProps)({className:C});return!m&&!d?(0,vr.jsx)("div",{...E,children:(0,vr.jsx)(dn.MediaPlaceholder,{icon:(0,vr.jsx)(dn.BlockIcon,{icon:Mf}),onSelect:y,onSelectURL:_,accept:"video/*",allowedTypes:pz,value:t,onError:k,placeholder:S})}):(0,vr.jsxs)(vr.Fragment,{children:[e&&(0,vr.jsxs)(vr.Fragment,{children:[(0,vr.jsx)(dn.BlockControls,{children:(0,vr.jsx)(lfe,{tracks:p,onChange:P=>{o({tracks:P})}})}),(0,vr.jsx)(dn.BlockControls,{group:"other",children:(0,vr.jsx)(dn.MediaReplaceFlow,{mediaId:s,mediaURL:m,allowedTypes:pz,accept:"video/*",onSelect:y,onSelectURL:_,onError:k,onReset:()=>y(void 0),variant:"toolbar"})})]}),(0,vr.jsx)(dn.InspectorControls,{children:(0,vr.jsxs)(_0.__experimentalToolsPanel,{label:(0,Ny.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:h,children:[(0,vr.jsx)(rfe,{setAttributes:o,attributes:t}),(0,vr.jsx)(_5,{poster:u,onChange:P=>o({poster:P?.url})})]})}),(0,vr.jsxs)("figure",{...E,children:[(0,vr.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:m||d,ref:l,children:(0,vr.jsx)(v0,{tracks:p})}),!!d&&(0,vr.jsx)(_0.Spinner,{}),(0,vr.jsx)(ma,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:n,label:(0,Ny.__)("Video caption text"),showToolbarButton:e&&b})]})]})}var pfe=G8e;var xf=a(T(),1);var k0=a(v(),1);function dfe({attributes:e}){let{autoplay:t,caption:r,controls:o,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,k0.jsxs)("figure",{...xf.useBlockProps.save(),children:[c&&(0,k0.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,k0.jsx)(v0,{tracks:m})}),!xf.RichText.isEmpty(r)&&(0,k0.jsx)(xf.RichText.Content,{className:(0,xf.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var s7=a(Br(),1),dz=a($(),1),W8e={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,dz.createBlock)("core/video",{blob:(0,s7.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,s7.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,dz.createBlock)("core/video",r)}}]},ffe=W8e;var{fieldsKey:$8e,formKey:q8e}=W(hfe.privateApis),{name:gfe}=g0,u7={icon:Mf,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,c7.__)("Wood thrush singing in Central Park, NYC.")}},transforms:ffe,deprecated:tfe,edit:pfe,save:dfe};window.__experimentalContentOnlyInspectorFields&&(u7[$8e]=[{id:"video",label:(0,c7.__)("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,c7.__)("Caption"),type:"text",Edit:"rich-text"}],u7[q8e]={fields:["video","caption"]});var Z8e=()=>I({name:gfe,metadata:g0,settings:u7});var bz={};Z(bz,{init:()=>X8e,metadata:()=>m7,name:()=>d7,settings:()=>Sfe});var Cfe=a(em(),1);var kf=a(T(),1),vfe=a(X(),1),Iy=a(B(),1),hz=a(R(),1);var wl=a(v(),1);function bfe({context:{postType:e,postId:t}}){let[r,o]=(0,vfe.useEntityProp)("postType",e,"meta",t),n=typeof r?.footnotes=="string",i=r?.footnotes?JSON.parse(r.footnotes):[],l=(0,kf.useBlockProps)();return n?i.length?(0,wl.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,wl.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,wl.jsx)(kf.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{o({...r,footnotes:JSON.stringify(i.map(m=>m.id===s?{content:u,id:s}:m))})}})," ",(0,wl.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,wl.jsx)("div",{...l,children:(0,wl.jsx)(hz.Placeholder,{icon:(0,wl.jsx)(kf.BlockIcon,{icon:Oi}),label:(0,Iy.__)("Footnotes"),instructions:(0,Iy.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,wl.jsx)("div",{...l,children:(0,wl.jsx)(hz.Placeholder,{icon:(0,wl.jsx)(kf.BlockIcon,{icon:Oi}),label:(0,Iy.__)("Footnotes"),instructions:(0,Iy.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var m7={$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 gz=a(B(),1);var _fe=a(em(),1),Iu=a(T(),1),w0=a(F(),1),xfe=a(X(),1),p7=a($(),1);var kfe=a(v(),1),vz="core/footnote",{usesContextKey:Y8e}=W(Iu.privateApis),yfe="core/post-content",Q8e="core/block",wfe={title:(0,gz.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[Y8e]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:n,postId:i}}){let l=(0,w0.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:m,getBlockParentsByBlockName:p}=l.select(Iu.store),d=(0,w0.useSelect)(b=>{if(!b(p7.store).getBlockType("core/footnotes"))return!1;let y=b(Iu.store).getSettings().allowedBlockTypes;if(y===!1||Array.isArray(y)&&!y.includes("core/footnotes")||typeof b(xfe.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:x,getSelectedBlockClientId:k,getBlockName:S}=b(Iu.store),C=k();if(!C||S(C)===d7)return!1;let E=x(C,Q8e);return!E||E.length===0},[n,i]),{selectionChange:f,insertBlock:h}=(0,w0.useDispatch)(Iu.store);if(!d)return null;function g(){l.batch(()=>{let b;if(o)b=t.replacements[t.start]?.attributes?.["data-fn"];else{b=mu();let S=(0,_fe.insertObject)(t,{type:vz,attributes:{"data-fn":b},innerHTML:`<a href="#${b}" id="${b}-link">*</a>`},t.end,t.end);S.start=S.end-1,r(S)}let y=s(),_=p(y,yfe),x=_.length?c(_[0]):c(),k=null;{let S=[...x];for(;S.length;){let C=S.shift();if(C.name==="core/footnotes"){k=C;break}S.push(...C.innerBlocks)}}if(!k){let S=u(y);for(;S&&m(S)!==yfe;)S=u(S);k=(0,p7.createBlock)("core/footnotes"),h(k,void 0,S)}f(k.clientId,b,0,0)})}return(0,kfe.jsx)(Iu.RichTextToolbarButton,{icon:Oi,title:(0,gz.__)("Footnote"),onClick:g,isActive:o})}};var{name:d7}=m7,Sfe={icon:Oi,edit:bfe},X8e=()=>{(0,Cfe.registerFormatType)(vz,wfe),I({name:d7,metadata:m7,settings:Sfe})};function yz(e){return e&&"__experimental"in e&&e.__experimental!==!1}var Bfe=a(j(),1),Dy=a(F(),1),Ec=a(Pfe(),1),_z=a(B(),1),Efe=a($(),1),xz=a(T(),1);function J8e(){let{registerShortcut:e}=(0,Dy.useDispatch)(Ec.store),{replaceBlocks:t}=(0,Dy.useDispatch)(xz.store),{getBlockName:r,getSelectedBlockClientId:o,getBlockAttributes:n}=(0,Dy.useSelect)(xz.store),i=(l,s)=>{l.preventDefault();let c=o();if(c===null)return;let u=r(c),m=u==="core/paragraph",p=u==="core/heading";if(!m&&!p)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(m&&s===0||p&&f.level===s)return;let h={content:f.content},g=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"&&(h.level=s),g&&(h.style={typography:{textAlign:g}}),t(c,(0,Efe.createBlock)(d,h))};return(0,Bfe.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,_z.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach(l=>{e({name:`core/block-editor/transform-paragraph-to-heading-${l}`,category:"block-library",description:(0,_z.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,Ec.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,Ec.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,Ec.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,Ec.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,Ec.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,Ec.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,Ec.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var Nfe=J8e;var kz={};cH(kz,{BlockKeyboardShortcuts:Nfe,NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:oc,NavigationLinkUI:c3});var f7=a(v(),1),Afe=()=>{let e=[jL,sD,qI,zI,vD,BD,JM,xE,kE,wE,CE,SE,AE,OE,GE,$E,lN,fN,gN,yN,SN,iI,lI,dI,vI,jI,QI,yD,cD,dD,AD,RD,zD,wL,IL,RL,PL,yM,_M,eA,rA,sA,cA,mA,gR,bR,yR,LR,HR,iz,mz,fz,bz,vL,yL,xL,dA,yA,gA,AM,WR,PE,hM,sM,uM,nM,QL,XL,eM,tM,aM,iM,dM,mM,pM,fM,FM,OM,jM,GM,RM,QM,tA,wN,TN,PN,EN,NN,IN,LN,ON,zN,FN,HN,AN,oM,AR,ZI,tD,ED,SL,KR,QR,XR,az,nz,ZM,JL,RE];return window?.__experimentalEnableFormBlocks&&(e.push(kI),e.push(CI),e.push(TI),e.push(PI)),window?.__experimentalEnableBlockExperiments&&(e.push(zR),e.push(VR),e.push(xR),e.push(wR),e.push(qL),e.push(KL)),e.push(cN),e.filter(Boolean)},Rfe=()=>Afe().filter(({metadata:e})=>!yz(e)),e7e=(e=Rfe())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=W((0,Dfe.select)(Cl.store)).getBootstrappedBlockType(t);(0,Cl.registerBlockType)(t,{...r,title:r?.title||t,...(r?.apiVersion??0)<3&&{apiVersion:3},edit:function({attributes:n}){let i=(0,Ife.useDisabled)(),l=(0,Lfe.useBlockProps)({ref:i}),{content:s,status:c,error:u}=(0,Mfe.useServerSideRender)({block:t,attributes:n});return c==="loading"?(0,f7.jsx)("div",{...l,children:(0,Ly.__)("Loading\u2026")}):c==="error"?(0,f7.jsx)("div",{...l,children:(0,Ly.sprintf)((0,Ly.__)("Error loading block: %s"),u)}):(0,f7.jsx)(uo,{wrapperProps:l,html:s})},save:()=>null})}),(0,Cl.setDefaultBlockName)(X3),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===rv)&&(0,Cl.setFreeformContentHandlerName)(rv),(0,Cl.setUnregisteredTypeHandlerName)(Ov),(0,Cl.setGroupingBlockName)(hw)},t7e=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];Afe().filter(({metadata:r})=>yz(r)).filter(({metadata:{__experimental:r}})=>r===!0||t.includes(r)).forEach(({init:r})=>r())};return the(r7e);})();
150 +`+t.content}},edit:Pve,save:Bve},mRe=()=>D({name:Mve,metadata:kE,settings:Lve});var pH={};J(pH,{init:()=>TRe,metadata:()=>gb,name:()=>Yve,settings:()=>Qve});var Kve=a(L(),1);var Ck=a(I(),1);var gb={$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},shadow:{__experimentalSkipSerialization:!0}},selectors:{shadow:".wp-block-video video"},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var Rve=a(y(),1);function hb({tracks:e=[]}){return e.map(t=>{let{id:r,...o}=t;return(0,Rve.jsx)("track",{...o},r??o.src)})}var bb=a(y(),1),{attributes:gRe}=gb,hRe={attributes:gRe,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,bb.jsxs)("figure",{...Ck.useBlockProps.save(),children:[c&&(0,bb.jsx)("video",{autoPlay:t,controls:o,loop:n,muted:i,poster:s,preload:l!=="metadata"?l:void 0,src:c,playsInline:u,children:(0,bb.jsx)(hb,{tracks:d})}),!Ck.RichText.isEmpty(r)&&(0,bb.jsx)(Ck.RichText.Content,{tagName:"figcaption",value:r})]})}},bRe=[hRe],Dve=bRe;var jve=a(Ur(),1),vb=a(F(),1),Bn=a(I(),1),_b=a(W(),1),Tk=a(L(),1),Uve=a(H(),1);var Wve=a(br(),1),Gve=a(qt(),1);var co=a(L(),1),Va=a(F(),1),Sk=a(W(),1),Pn=a(y(),1),yRe=[{value:"auto",label:(0,co.__)("Auto")},{value:"metadata",label:(0,co.__)("Metadata")},{value:"none",label:(0,co._x)("None","Preload value")}],vRe=({setAttributes:e,attributes:t})=>{let{autoplay:r,controls:o,loop:n,muted:i,playsInline:s,preload:l}=t,c=(0,co.__)("Autoplay may cause usability issues for some users."),u=(0,Sk.useCallback)(m=>m?c:null,[]),d=(0,Sk.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,Sk.useCallback)(m=>{e({preload:m})},[]);return(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!r,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Autoplay"),onChange:d.autoplay,checked:!!r,help:u})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Loop"),onChange:d.loop,checked:!!n})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Muted"),onChange:d.muted,checked:!!i,disabled:r,help:r?(0,co.__)("Muted because of Autoplay."):null})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>{e({controls:!0})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Playback controls"),onChange:d.controls,checked:!!o})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>{e({playsInline:!1})},children:(0,Pn.jsx)(Va.ToggleControl,{label:(0,co.__)("Play inline"),onChange:d.playsInline,checked:!!s,disabled:r,help:r?(0,co.__)("Play inline enabled because of Autoplay."):(0,co.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,Pn.jsx)(Va.__experimentalToolsPanelItem,{label:(0,co.__)("Preload"),isShownByDefault:!0,hasValue:()=>l!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,Pn.jsx)(Va.SelectControl,{label:(0,co.__)("Preload"),value:l,onChange:p,options:yRe,hideCancelButton:!0})})]})},Ave=vRe;var Gt=a(L(),1),ht=a(F(),1);var yb=a(I(),1);var Fve=a(H(),1),Ng=a(W(),1),Vve=a(qt(),1),ot=a(y(),1),Ove=["text/vtt"],_Re="subtitles",xRe=[{label:(0,Gt.__)("Subtitles"),value:"subtitles"},{label:(0,Gt.__)("Captions"),value:"captions"},{label:(0,Gt.__)("Descriptions"),value:"descriptions"},{label:(0,Gt.__)("Chapters"),value:"chapters"},{label:(0,Gt.__)("Metadata"),value:"metadata"}],zve={src:"",label:"",srcLang:"en",kind:_Re,default:!1};function kRe({tracks:e,onEditPress:t}){let r=e.map((o,n)=>(0,ot.jsxs)(ht.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,ot.jsx)("span",{children:o.label}),(0,ot.jsxs)(ht.__experimentalHStack,{justify:"flex-end",children:[o.default&&(0,ot.jsx)(EM,{intent:"none",children:(0,Gt.__)("Default")}),(0,ot.jsx)(ht.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Gt.sprintf)((0,Gt._x)("Edit %s","text tracks"),o.label),children:(0,Gt.__)("Edit")})]})]},o.id??o.src));return(0,ot.jsx)(ht.MenuGroup,{label:(0,Gt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:r})}function wRe({track:e,onChange:t,onClose:r,onRemove:o,allowSettingDefault:n}){let[i,s]=(0,Ng.useState)({...zve,...e}),{src:l,label:c,srcLang:u,kind:d,default:p}=i,m=l.startsWith("blob:")?"":(0,Vve.getFilename)(l)||"";return(0,ot.jsxs)(ht.__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,Gt.__)("Edit track")}),(0,ot.jsxs)("span",{children:[(0,Gt.__)("File"),": ",(0,ot.jsx)("b",{children:m})]}),(0,ot.jsxs)(ht.__experimentalGrid,{columns:2,gap:4,children:[(0,ot.jsx)(ht.TextControl,{onChange:f=>s(g=>({...g,label:f})),label:(0,Gt.__)("Label"),value:c,help:(0,Gt.__)("Title of track")}),(0,ot.jsx)(ht.TextControl,{onChange:f=>s(g=>({...g,srcLang:f})),label:(0,Gt.__)("Source language"),value:u,help:(0,Gt.__)("Language tag (en, fr, etc.)")})]}),(0,ot.jsxs)(ht.__experimentalVStack,{spacing:"4",children:[(0,ot.jsx)(ht.SelectControl,{className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:xRe,value:d,label:(0,Gt.__)("Kind"),onChange:f=>s(g=>({...g,kind:f}))}),(0,ot.jsx)(ht.ToggleControl,{label:(0,Gt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>s(g=>({...g,default:f}))}),(0,ot.jsxs)(ht.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,ot.jsx)(ht.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:o,children:(0,Gt.__)("Remove track")}),(0,ot.jsx)(ht.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),r()},children:(0,Gt.__)("Apply")})]})]})]})}function Hve({tracks:e=[],onChange:t}){let r=(0,Fve.useSelect)(c=>c(yb.store).getSettings().mediaUpload,[]),[o,n]=(0,Ng.useState)(null),i=(0,Ng.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):{...zve,id:m,label:f||"",src:g});p.length!==0&&t([...u?e:[],...p])};function l(c){let u=c.target.files;r({allowedTypes:Ove,filesList:u,onFileChange:d=>{if(!Array.isArray(d))return;let p=d.filter(m=>!!m?.id);p.length&&s(p,!0)}})}return(0,Ng.useEffect)(()=>{i.current?.focus()},[o]),r?(0,ot.jsx)(ht.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,ot.jsx)(ht.ToolbarGroup,{children:(0,ot.jsx)(ht.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,Gt.__)("Text tracks")})}),renderContent:()=>o!==null?(0,ot.jsx)(wRe,{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,Gt.__)("Text tracks")}),(0,ot.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,Gt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,ot.jsxs)(ht.NavigableMenu,{children:[(0,ot.jsx)(kRe,{tracks:e,onEditPress:n}),(0,ot.jsx)(ht.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Gt.__)("Add tracks"),children:(0,ot.jsxs)(yb.MediaUploadCheck,{children:[(0,ot.jsx)(yb.MediaUpload,{onSelect:s,allowedTypes:Ove,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,ot.jsx)(ht.MenuItem,{icon:$y,onClick:c,children:(0,Gt.__)("Open Media Library")})}),(0,ot.jsx)(ht.FormFileUpload,{onChange:l,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,ot.jsx)(ht.MenuItem,{icon:vu,onClick:c,children:(0,Gt._x)("Upload","verb")})})]})})]})]})}):null}var Br=a(y(),1),uH=["video"];function CRe({isSelected:e,attributes:t,className:r,setAttributes:o,insertBlocksAfter:n,onReplace:i}){let s=(0,_b.useRef)(),{id:l,controls:c,poster:u,src:d,tracks:p,width:m,height:f,autoplay:g,loop:h,muted:b,playsInline:_}=t,v=m&&f?`${m} / ${f}`:void 0,w={...v&&{aspectRatio:v},...(0,Bn.__experimentalGetShadowClassesAndStyles)(t).style},[x,k]=(0,_b.useState)(t.blob),C=ee(),P=(0,Bn.useBlockEditingMode)()==="default";ic({url:x,allowedTypes:uH,onChange:B,onError:M}),(0,_b.useEffect)(()=>{s.current&&s.current.load()},[u]);function B(V){if(!V||!V.url){o({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),k();return}if((0,jve.isBlobURL)(V.url)){k(V.url);return}o({blob:void 0,src:V.url,id:V.id,poster:V.image?.src!==V.icon?V.image?.src:void 0,caption:V.caption}),k()}function N(V){if(V!==d){let G=(0,Gve.prependHTTPS)(V),$=Od({attributes:{url:G}});if($!==void 0&&i){i($);return}o({blob:void 0,src:G,id:void 0,poster:void 0}),k()}}let{createErrorNotice:E}=(0,Uve.useDispatch)(Wve.store);function M(V){E(V,{type:"snackbar"})}let R=V=>(0,Br.jsx)(vb.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:gh,label:(0,Tk.__)("Video"),instructions:(0,Tk.__)("Drag and drop a video, upload, or choose from your library."),children:V}),O=T(r,{"is-transient":!!x}),j=(0,Bn.useBlockProps)({className:O});return!d&&!x?(0,Br.jsx)("div",{...j,children:(0,Br.jsx)(Bn.MediaPlaceholder,{icon:(0,Br.jsx)(Bn.BlockIcon,{icon:gh}),onSelect:B,onSelectURL:N,accept:"video/*",allowedTypes:uH,value:t,onError:M,placeholder:R})}):(0,Br.jsxs)(Br.Fragment,{children:[e&&(0,Br.jsxs)(Br.Fragment,{children:[(0,Br.jsx)(Bn.BlockControls,{children:(0,Br.jsx)(Hve,{tracks:p,onChange:V=>{o({tracks:V})}})}),(0,Br.jsx)(Bn.BlockControls,{group:"other",children:(0,Br.jsx)(Bn.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:uH,accept:"video/*",onSelect:B,onSelectURL:N,onError:M,onReset:()=>B(void 0),variant:"toolbar"})})]}),(0,Br.jsx)(Bn.InspectorControls,{children:(0,Br.jsxs)(vb.__experimentalToolsPanel,{label:(0,Tk.__)("Settings"),resetAll:()=>{o({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:C,children:[(0,Br.jsx)(Ave,{setAttributes:o,attributes:t}),(0,Br.jsx)(t3,{poster:u,onChange:V=>o({poster:V?.url})})]})}),(0,Br.jsxs)("figure",{...j,children:[(0,Br.jsx)("video",{controls:c,inert:e?void 0:"true",poster:u,src:d||x,ref:s,autoPlay:g,loop:h,muted:b,playsInline:_,width:m,height:f,style:Object.keys(w).length?w:void 0,children:(0,Br.jsx)(hb,{tracks:p})}),!!x&&(0,Br.jsx)(vb.Spinner,{}),(0,Br.jsx)(Zo,{attributes:t,setAttributes:o,isSelected:e,insertBlocksAfter:n,label:(0,Tk.__)("Video caption text"),showToolbarButton:e&&P})]})]})}var $ve=CRe;var dd=a(I(),1);var xb=a(y(),1);function qve({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,g={...f&&{aspectRatio:f},...(0,dd.__experimentalGetShadowClassesAndStyles)(e).style};return(0,xb.jsxs)("figure",{...dd.useBlockProps.save(),children:[c&&(0,xb.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:Object.keys(g).length?g:void 0,children:(0,xb.jsx)(hb,{tracks:d})}),!dd.RichText.isEmpty(r)&&(0,xb.jsx)(dd.RichText.Content,{className:(0,dd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:r})]})}var CE=a(Ur(),1),dH=a(te(),1),SRe={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,dH.createBlock)("core/video",{blob:(0,CE.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,CE.isBlobURL)(r.src)&&(r.blob=r.src,delete r.src),(0,dH.createBlock)("core/video",r)}}]},Zve=SRe;var{name:Yve}=gb,Qve={icon:gh,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,Kve.__)("Wood thrush singing in Central Park, NYC.")}},transforms:Zve,deprecated:Dve,edit:$ve,save:qve},TRe=()=>D({name:Yve,metadata:gb,settings:Qve});var yH={};J(yH,{init:()=>LRe,metadata:()=>SE,name:()=>EE,settings:()=>s_e});var i_e=a(vl(),1);var Mg=a(I(),1),Xve=a(ae(),1),Ek=a(L(),1),mH=a(F(),1);var nl=a(y(),1);function Jve({context:{postType:e,postId:t}}){let[r,o]=(0,Xve.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,Mg.useBlockProps)();return n?s.length?(0,nl.jsx)("ol",{...l,children:s.map(({id:c,content:u})=>(0,nl.jsxs)("li",{onMouseDown:d=>{d.target===d.currentTarget&&(d.target.firstElementChild.focus(),d.preventDefault())},children:[(0,nl.jsx)(Mg.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,nl.jsx)("a",{href:`#${c}-link`,children:"\u21A9\uFE0E"})]},c))}):(0,nl.jsx)("div",{...l,children:(0,nl.jsx)(mH.Placeholder,{icon:(0,nl.jsx)(Mg.BlockIcon,{icon:vs}),label:(0,Ek.__)("Footnotes"),instructions:(0,Ek.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,nl.jsx)("div",{...l,children:(0,nl.jsx)(mH.Placeholder,{icon:(0,nl.jsx)(Mg.BlockIcon,{icon:vs}),label:(0,Ek.__)("Footnotes"),instructions:(0,Ek.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var SE={$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,background:{backgroundImage:!0,backgroundSize:!0,gradient:!0,__experimentalDefaultControls:{backgroundImage:!0,gradient:!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,shadow:!0,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 In=[];for(let e=0;e<256;++e)In.push((e+256).toString(16).slice(1));function e_e(e,t=0){return(In[e[t+0]]+In[e[t+1]]+In[e[t+2]]+In[e[t+3]]+"-"+In[e[t+4]]+In[e[t+5]]+"-"+In[e[t+6]]+In[e[t+7]]+"-"+In[e[t+8]]+In[e[t+9]]+"-"+In[e[t+10]]+In[e[t+11]]+In[e[t+12]]+In[e[t+13]]+In[e[t+14]]+In[e[t+15]]).toLowerCase()}var PRe=new Uint8Array(16);function fH(){return crypto.getRandomValues(PRe)}function BRe(e,t,r){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():IRe(e,t,r)}function IRe(e,t,r){e=e||{};let o=e.random??e.rng?.()??fH();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 e_e(o)}var gH=BRe;var hH=a(L(),1);var r_e=a(vl(),1),pd=a(I(),1),kb=a(H(),1),o_e=a(ae(),1),TE=a(te(),1);var n_e=a(y(),1),bH="core/footnote",{usesContextKey:NRe}=le(pd.privateApis),t_e="core/post-content",MRe="core/block",a_e={title:(0,hH.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[NRe]:["postType","postId"],edit:function({value:t,onChange:r,isObjectActive:o,context:{postType:n,postId:i}}){let s=(0,kb.useRegistry)(),{getSelectedBlockClientId:l,getBlocks:c,getBlockRootClientId:u,getBlockName:d,getBlockParentsByBlockName:p}=s.select(pd.store),m=(0,kb.useSelect)(b=>{if(!b(TE.store).getBlockType("core/footnotes"))return!1;let _=b(pd.store).getSettings().allowedBlockTypes;if(_===!1||Array.isArray(_)&&!_.includes("core/footnotes")||typeof b(o_e.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:w,getSelectedBlockClientId:x,getBlockName:k}=b(pd.store),C=x();if(!C||k(C)===EE)return!1;let S=w(C,MRe);return!S||S.length===0},[n,i]),{selectionChange:f,insertBlock:g}=(0,kb.useDispatch)(pd.store);if(!m)return null;function h(){s.batch(()=>{let b;if(o)b=t.replacements[t.start]?.attributes?.["data-fn"];else{b=`fn-${gH()}`;let k=(0,r_e.insertObject)(t,{type:bH,attributes:{"data-fn":b},innerHTML:`<a href="#${b}" id="${b}-link">*</a>`},t.end,t.end);k.start=k.end-1,r(k)}let _=l(),v=p(_,t_e),w=v.length?c(v[0]):c(),x=null;{let k=[...w];for(;k.length;){let C=k.shift();if(C.name==="core/footnotes"){x=C;break}k.push(...C.innerBlocks)}}if(!x){let k=u(_);for(;k&&d(k)!==t_e;)k=u(k);x=(0,TE.createBlock)("core/footnotes"),g(x,void 0,k)}f(x.clientId,b,0,0)})}return(0,n_e.jsx)(pd.RichTextToolbarButton,{icon:vs,title:(0,hH.__)("Footnote"),onClick:h,isActive:o})}};var{name:EE}=SE,s_e={icon:vs,edit:Jve},LRe=()=>{(0,i_e.registerFormatType)(bH,a_e),D({name:EE,metadata:SE,settings:s_e})};function vH(e){return e&&"__experimental"in e&&e.__experimental!==!1}var _H={};Kq(_H,{NAVIGATION_OVERLAY_TEMPLATE_PART_AREA:Vc,NavigationLinkUI:V9});var PE=a(y(),1),p_e=()=>{let e=[kO,jD,TD,bD,YD,sA,KF,EN,PN,BN,IN,NN,ML,FL,HL,UL,$L,XL,eR,oR,cR,qR,ZR,JR,nD,xD,ID,XD,UD,$D,gA,hA,bA,nO,uO,gO,lO,zO,jO,dF,mF,YF,XF,aV,iV,lV,uz,pz,mz,Ez,Oz,Az,bz,hz,Vz,aH,cH,pH,yH,QA,eO,rO,uV,fV,pV,IF,Wz,LN,lF,tF,oF,XO,WO,GO,qO,ZO,QO,JO,iF,nF,aF,sF,DF,OF,FF,zF,MF,qF,QF,sR,uR,dR,mR,fR,gR,bR,SR,xR,wR,CR,vR,YO,Lz,ED,AD,lA,iO,Zz,Yz,Qz,oH,nH,WF,$O,LL];return window?.__experimentalEnableBlockExperiments,e.push(ZL),e.filter(Boolean)},m_e=()=>p_e().filter(({metadata:e})=>!vH(e)),RRe=(e=m_e())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let r=le((0,c_e.select)(al.store)).getBootstrappedBlockType(t);(0,al.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,l_e.useDisabled)(),l=(0,u_e.useBlockProps)({ref:s}),{content:c,status:u,error:d}=(0,d_e.useServerSideRender)({block:t,attributes:n,urlQueryArgs:{post_id:i?.postId}});return u==="loading"?(0,PE.jsx)("div",{...l,children:(0,Pk.__)("Loading\u2026")}):u==="error"?(0,PE.jsx)("div",{...l,children:(0,Pk.sprintf)((0,Pk.__)("Error loading block: %s"),d)}):(0,PE.jsx)(Eo,{wrapperProps:l,html:c})},save:()=>null})}),(0,al.setDefaultBlockName)(w6),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===n2)&&(0,al.setFreeformContentHandlerName)(n2),(0,al.setUnregisteredTypeHandlerName)(H2),(0,al.setGroupingBlockName)(Z3)},DRe=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];p_e().filter(({metadata:r})=>vH(r)).filter(({metadata:{__experimental:r}})=>r===!0||t.includes(r)).forEach(({init:r})=>r())};return N_e(ARe);})();
108 151 /*! Bundled license information:
109 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 +
110 164 fast-average-color/dist/index.esm.js:
111 165 (*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *)
112 166 */
167 +(window.wp ||= {}).blockLibrary = wp.blockLibrary;
168 +})();
113 169 //# sourceMappingURL=index.min.js.map